Bug 348938

Summary: 15.04.1 Unusable - extremely slow timeline
Product: [Applications] kdenlive Reporter: Torsten Römer <dode>
Component: User InterfaceAssignee: Jean-Baptiste Mardelle <jb>
Status: RESOLVED FIXED    
Severity: grave CC: dode, snd.noise
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Torsten Römer 2015-06-09 19:32:15 UTC
Using 15.04.1 for the first time, I could add video clips and play them in the clip monitor just fine and also add them to the timeline. Placing the marker in the timeline however takes about 15 seconds at all 4 cores 100% until the marker is set and the monitor is updated.

This basically renders kdenlive unusable.

This was not an issue in the previous 15.04.0.

Reproducible: Always

Steps to Reproduce:
1. Start kdenlive, add a clip, add it to the timeline
2. Click in the timeline to place the marker somewhere

Actual Results:  
Max. CPU load for 15 seconds until marker position and monitor updated

Expected Results:  
It should be possible to fluently set and move the marker over the timeline
Comment 1 Torsten Römer 2015-07-02 00:07:48 UTC
From https://forum.kde.org/viewtopic.php?f=265&t=125359&p=337364#p337364
Could you give more details about scrubbing problems :
distro version, FFmpeg version, MLT version, video driver version ?
does it fail with any source codec or is it improved by transcoding the source (just for a test case, I know it is a too long process for general use)

Distro: kubuntu 15.04 (Vivid Vervet), KDE-Plasma-Version 5.3.1, Qt-Version 5.4.1
FFmpeg version: Libav 6:11.2-1 (universe)
MLT version: 0.9.4-0ubuntu1~ubuntu15.04~ppa3 (universe)
Video driver version: Kernel driver in use: i915
OpenGL vendor string:                   Intel Open Source Technology Center
OpenGL renderer string:                 Mesa DRI Intel(R) Sandybridge Mobile 
OpenGL version string:                  3.3 (Core Profile) Mesa 10.5.2
OpenGL shading language version string: 3.30
Driver:                                 Intel
GPU class:                              SandyBridge
OpenGL version:                         3.3
GLSL version:                           3.30
Mesa version:                           10.5.2
X server version:                       1.17.1
Linux kernel version:                   3.19
Requires strict binding:                yes
GLSL shaders:                           yes
Texture NPOT support:                   yes
Virtual Machine:                        no
Direct rendering: true

The problem seems to only occur with 1080p 50fps AVCHD material from a Panasonic video camera:

dode@linus:/media/dode/WD4TB/data.ext/Video/FET$ mediainfo 00027.MTS 
General
ID                                       : 1 (0x1)
Complete name                            : 00027.MTS
Format                                   : BDAV
Format/Info                              : Blu-ray Video
File size                                : 265 MiB
Duration                                 : 1mn 26s
Overall bit rate mode                    : Variable
Overall bit rate                         : 25.6 Mbps
Maximum Overall bit rate                 : 28.0 Mbps

Video
ID                                       : 4113 (0x1011)
Menu ID                                  : 1 (0x1)
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4.2
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 2 frames
Format settings, GOP                     : M=3, N=24
Codec ID                                 : 27
Duration                                 : 1mn 26s
Bit rate mode                            : Variable
Bit rate                                 : 24.2 Mbps
Maximum bit rate                         : 25.0 Mbps
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 50.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.233
Stream size                              : 249 MiB (94%)

Audio
ID                                       : 4352 (0x1100)
Menu ID                                  : 1 (0x1)
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Mode extension                           : CM (complete main)
Format settings, Endianness              : Big
Codec ID                                 : 129
Duration                                 : 1mn 26s
Bit rate mode                            : Constant
Bit rate                                 : 384 Kbps
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Compression mode                         : Lossy
Delay relative to video                  : -40ms
Stream size                              : 3.96 MiB (1%)

Text
ID                                       : 4608 (0x1200)
Menu ID                                  : 1 (0x1)
Format                                   : PGS
Codec ID                                 : 144
Duration                                 : 1mn 25s
Delay relative to video                  : -40ms

If I transcode such material to i.e. DNxHD 1080p 50fps 120Mb/s it works like a charm.
Even if I just remux it to i.e. mp4 (ffmpeg -i 00028.MTS -c:v copy -c:a copy 00028.mp4) it works fine, but of course not as fluent as with DNxHD.
Also other material such as MPEG-2 works fine.
Comment 2 farid 2016-02-16 22:58:57 UTC
check this out, maybe it helps:

https://forum.kde.org/viewtopic.php?f=265&t=131079
Comment 3 farid 2016-06-22 04:21:27 UTC
Have you tested with latest version 16.04.2? Can you reproduce? If not please mark as solved.
Comment 4 Torsten Römer 2016-06-23 18:32:52 UTC
Sorry for being a bit unresponsive - I just tested 15.12.3 which is installed on my system and already there it works just fine.

So I am marking as solved.

Thanks!