Bug 385416

Summary: Unusable slow video playback after system upgrade
Product: [Applications] kdenlive Reporter: F Hammer <f.hammer>
Component: Rendering & ExportAssignee: Jean-Baptiste Mardelle <jb>
Status: RESOLVED WORKSFORME    
Severity: major CC: bartoloni
Priority: NOR    
Version First Reported In: 16.12.3   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description F Hammer 2017-10-05 19:52:06 UTC
I'am on Kubuntu 17.04 with a Tuxedo i7, 16GB RAM and SSD for editing "HDV 1080p 50"

I worked on a project for weeks without any problems. Yesterday i did an normal Kubuntu upgrade. Unfortunately i'm not sure which packages where changed :-(

When i restarted the laptop today i could not work any longer on kdenlive because every video playback is incredibly slow and it is stuttering!

I already tried playing the same video files via ffplay which works fine! 

I also tried updating to kdenlive-stable PPA (17.04.3) but that does not help. 

Any idea what could be wrong and howto workaround, please?
Comment 1 F Hammer 2017-10-05 20:06:44 UTC
I've just tried playing the video file via melt and there i also get the same playback issue. Unuseable slow video playback. Here is the verbose output: 

doitux@doitux-W65-67SZ:~/Projekte/kdenlive/NVDH/Folge-11/HD1$ melt -verbose 00144.MTS 
[mpegts @ 0x561109ab4ae0] parser not found for codec hdmv_pgs_subtitle, packets or times may be invalid.
[mpegts @ 0x561109ab4ae0] parser not found for codec hdmv_pgs_subtitle, packets or times may be invalid.                                                                                     
[h264 @ 0x561109ab95e0] Reinit context to 1920x1088, pix_fmt: yuv420p                                                                                                                        
[NULL @ 0x561109ab95e0] Ignoring NAL type 9 in extradata                                                                                                                                     
[NULL @ 0x561109ab95e0] Ignoring NAL type 9 in extradata                                                                                                                                     
[NULL @ 0x561109ab95e0] Ignoring NAL type 9 in extradata                                                                                                                                     
[NULL @ 0x561109ab95e0] Ignoring NAL type 9 in extradata                                                                                                                                     
[NULL @ 0x561109ab95e0] Ignoring NAL type 9 in extradata                                                                                                                                     
[NULL @ 0x561109ab95e0] Ignoring NAL type 9 in extradata                                                                                                                                     
[NULL @ 0x561109ab95e0] Ignoring NAL type 9 in extradata                                                                                                                                     
[mpegts @ 0x561109abc660] parser not found for codec hdmv_pgs_subtitle, packets or times may be invalid.                                                                                     
[mpegts @ 0x561109abc660] parser not found for codec hdmv_pgs_subtitle, packets or times may be invalid.                                                                                     
[h264 @ 0x561109ad8b80] Reinit context to 1920x1088, pix_fmt: yuv420p                                                                                                                        
[mpegts @ 0x561109b0ace0] parser not found for codec hdmv_pgs_subtitle, packets or times may be invalid.                                                                                     
[mpegts @ 0x561109b0ace0] parser not found for codec hdmv_pgs_subtitle, packets or times may be invalid.                                                                                     
[h264 @ 0x561109b0b740] Reinit context to 1920x1088, pix_fmt: yuv420p                                                                                                                        
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 6 max_channels 6
[mpegts @ 0x561109aff440] parser not found for codec hdmv_pgs_subtitle, packets or times may be invalid.
[mpegts @ 0x561109aff440] parser not found for codec hdmv_pgs_subtitle, packets or times may be invalid.                                                                                     
[h264 @ 0x561109b01ea0] Reinit context to 1920x1088, pix_fmt: yuv420p                                                                                                                        
[NULL @ 0x561109b01ea0] Ignoring NAL type 9 in extradata                                                                                                                                     
[NULL @ 0x561109b01ea0] Ignoring NAL type 9 in extradata                                                                                                                                     
[NULL @ 0x561109b01ea0] Ignoring NAL type 9 in extradata                                                                                                                                     
[NULL @ 0x561109b01ea0] Ignoring NAL type 9 in extradata                                                                                                                                     
[NULL @ 0x561109b01ea0] Ignoring NAL type 9 in extradata                                                                                                                                     
[NULL @ 0x561109b01ea0] Ignoring NAL type 9 in extradata                                                                                                                                     
[NULL @ 0x561109b01ea0] Ignoring NAL type 9 in extradata                                                                                                                                     
[mpegts @ 0x561109b06540] parser not found for codec hdmv_pgs_subtitle, packets or times may be invalid.                                                                                     
[mpegts @ 0x561109b06540] parser not found for codec hdmv_pgs_subtitle, packets or times may be invalid.                                                                                     
[h264 @ 0x561109b07780] Reinit context to 1920x1088, pix_fmt: yuv420p                                                                                                                        
[mpegts @ 0x561109c58bc0] parser not found for codec hdmv_pgs_subtitle, packets or times may be invalid.                                                                                     
[mpegts @ 0x561109c58bc0] parser not found for codec hdmv_pgs_subtitle, packets or times may be invalid.                                                                                     
[h264 @ 0x561109c4c4c0] Reinit context to 1920x1088, pix_fmt: yuv420p                                                                                                                        
[h264 @ 0x561109b072e0] Ignoring NAL type 9 in extradata                                                                                                                                     
[NULL @ 0x561109b07780] Ignoring NAL type 9 in extradata                                                                                                                                     
[NULL @ 0x561109b07780] Ignoring NAL type 9 in extradata                                                                                                                                     
[NULL @ 0x561109b07780] Ignoring NAL type 9 in extradata                                                                                                                                     
[NULL @ 0x561109b07780] Ignoring NAL type 9 in extradata                                                                                                                                     
[h264 @ 0x561109b072e0] Reinit context to 1920x1088, pix_fmt: yuv420p                                                                                                                        
[swscaler @ 0x56110a8ae180] YUV color matrix differs for YUV->YUV, using intermediate RGB to convert                                                                                         
[swscaler @ 0x56110acfca40] Warning: data is not aligned! This can lead to a speedloss
[mpegts @ 0x561109aa51e0] parser not found for codec hdmv_pgs_subtitle, packets or times may be invalid.
[mpegts @ 0x561109aa51e0] parser not found for codec hdmv_pgs_subtitle, packets or times may be invalid.                                                                                     
[h264 @ 0x561109b0f280] Reinit context to 1920x1088, pix_fmt: yuv420p                                                                                                                        
[NULL @ 0x561109b0f280] Ignoring NAL type 9 in extradata                                                                                                                                     
[NULL @ 0x561109b0f280] Ignoring NAL type 9 in extradata                                                                                                                                     
[NULL @ 0x561109b0f280] Ignoring NAL type 9 in extradata                                                                                                                                     
[NULL @ 0x561109b0f280] Ignoring NAL type 9 in extradata                                                                                                                                     
[NULL @ 0x561109b0f280] Ignoring NAL type 9 in extradata                                                                                                                                     
[NULL @ 0x561109b0f280] Ignoring NAL type 9 in extradata                                                                                                                                     
[NULL @ 0x561109b0f280] Ignoring NAL type 9 in extradata                                                                                                                                     
[mpegts @ 0x561109b0aa00] parser not found for codec hdmv_pgs_subtitle, packets or times may be invalid.                                                                                     
[mpegts @ 0x561109b0aa00] parser not found for codec hdmv_pgs_subtitle, packets or times may be invalid.                                                                                     
[h264 @ 0x561109ab4ae0] Reinit context to 1920x1088, pix_fmt: yuv420p                                                                                                                        
[mpegts @ 0x561109aa3d00] parser not found for codec hdmv_pgs_subtitle, packets or times may be invalid.                                                                                     
[mpegts @ 0x561109aa3d00] parser not found for codec hdmv_pgs_subtitle, packets or times may be invalid.                                                                                     
[h264 @ 0x561109b0ba80] Reinit context to 1920x1088, pix_fmt: yuv420p                                                                                                                        
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 6 max_channels 6
+-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+
|1=-10| |2= -5| |3= -2| |4= -1| |5=  0| |6=  1| |7=  2| |8=  5| |9= 10|
+-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+
+---------------------------------------------------------------------+
|               H = back 1 minute,  L = forward 1 minute              |
|                 h = previous frame,  l = next frame                 |
|           g = start of clip, j = next clip, k = previous clip       |
|                0 = restart, q = quit, space = play                  |
+---------------------------------------------------------------------+
[mpegts @ 0x7f7f18002300] parser not found for codec hdmv_pgs_subtitle, packets or times may be invalid.
[mpegts @ 0x7f7f18002300] parser not found for codec hdmv_pgs_subtitle, packets or times may be invalid.                                                                                     
[h264 @ 0x7f7f18006e00] Reinit context to 1920x1088, pix_fmt: yuv420p                                                                                                                        
[NULL @ 0x7f7f18006e00] Ignoring NAL type 9 in extradata                                                                                                                                     
[NULL @ 0x7f7f18006e00] Ignoring NAL type 9 in extradata                                                                                                                                     
[NULL @ 0x7f7f18006e00] Ignoring NAL type 9 in extradata                                                                                                                                     
[NULL @ 0x7f7f18006e00] Ignoring NAL type 9 in extradata                                                                                                                                     
[NULL @ 0x7f7f18006e00] Ignoring NAL type 9 in extradata                                                                                                                                     
[NULL @ 0x7f7f18006e00] Ignoring NAL type 9 in extradata                                                                                                                                     
[NULL @ 0x7f7f18006e00] Ignoring NAL type 9 in extradata                                                                                                                                     
[mpegts @ 0x7f7f180099a0] parser not found for codec hdmv_pgs_subtitle, packets or times may be invalid.                                                                                     
[mpegts @ 0x7f7f180099a0] parser not found for codec hdmv_pgs_subtitle, packets or times may be invalid.                                                                                     
[h264 @ 0x7f7f1806a660] Reinit context to 1920x1088, pix_fmt: yuv420p                                                                                                                        
[mpegts @ 0x7f7f1806cf60] parser not found for codec hdmv_pgs_subtitle, packets or times may be invalid.                                                                                     
[mpegts @ 0x7f7f1806cf60] parser not found for codec hdmv_pgs_subtitle, packets or times may be invalid.                                                                                     
[h264 @ 0x7f7f180936c0] Reinit context to 1920x1088, pix_fmt: yuv420p                                                                                                                        
[h264 @ 0x7f7f1806a1c0] Ignoring NAL type 9 in extradata                                                                                                                                     
[NULL @ 0x7f7f1806a660] Ignoring NAL type 9 in extradata                                                                                                                                     
[NULL @ 0x7f7f1806a660] Ignoring NAL type 9 in extradata                                                                                                                                     
[NULL @ 0x7f7f180936c0] Ignoring NAL type 9 in extradata                                                                                                                                     
[NULL @ 0x7f7f1806a660] Ignoring NAL type 9 in extradata                                                                                                                                     
[NULL @ 0x7f7f1806a660] Ignoring NAL type 9 in extradata                                                                                                                                     
[NULL @ 0x7f7f1806a660] Ignoring NAL type 9 in extradata                                                                                                                                     
[NULL @ 0x7f7f1806a660] Ignoring NAL type 9 in extradata                                                                                                                                     
[h264 @ 0x7f7f1806a1c0] Reinit context to 1920x1088, pix_fmt: yuv420p                                                                                                                        
[consumer sdl] dropped video frame 1
[consumer sdl] dropped video frame 2
[consumer sdl] dropped video frame 3
[consumer sdl] dropped video frame 4
[consumer sdl] dropped video frame 1
[consumer sdl] dropped video frame 2
[consumer sdl] dropped video frame 3
[consumer sdl] dropped video frame 4
[consumer sdl] dropped video frame 5
[consumer sdl] dropped video frame 5
[consumer sdl] dropped video frame 6
[consumer sdl] dropped video frame 6
[consumer sdl] dropped video frame 7
[consumer sdl] dropped video frame 8
[consumer sdl] dropped video frame 9
[consumer sdl] dropped video frame 10
[consumer sdl] dropped video frame 11
[consumer sdl] too many frames dropped - forcing next frame
[consumer sdl] dropped video frame 12
[consumer sdl] dropped video frame 7
[consumer sdl] dropped video frame 8
[consumer sdl] dropped video frame 9
[consumer sdl] dropped video frame 10
[consumer sdl] dropped video frame 11
[consumer sdl] dropped video frame 12
[consumer sdl] dropped video frame 13
[consumer sdl] dropped video frame 14
[consumer sdl] dropped video frame 15
[consumer sdl] dropped video frame 16
[consumer sdl] dropped video frame 17
[consumer sdl] too many frames dropped - forcing next frame
[consumer sdl] dropped video frame 18
[consumer sdl] dropped video frame 13
[consumer sdl] dropped video frame 14
[consumer sdl] dropped video frame 15
[consumer sdl] dropped video frame 16
[consumer sdl] dropped video frame 17
[consumer sdl] dropped video frame 18
[consumer sdl] dropped video frame 19
[consumer sdl] dropped video frame 20
[consumer sdl] dropped video frame 21
[consumer sdl] dropped video frame 22
[consumer sdl] dropped video frame 23
[consumer sdl] too many frames dropped - forcing next frame
[consumer sdl] dropped video frame 24
[consumer sdl] dropped video frame 19
[consumer sdl] dropped video frame 20
[consumer sdl] dropped video frame 21
[consumer sdl] dropped video frame 22
[consumer sdl] dropped video frame 23
[consumer sdl] dropped video frame 24
[consumer sdl] dropped video frame 25
[consumer sdl] dropped video frame 26
[consumer sdl] dropped video frame 27
[consumer sdl] dropped video frame 28
[consumer sdl] dropped video frame 29
[consumer sdl] too many frames dropped - forcing next frame
Comment 2 Davy Bartoloni 2018-05-11 10:54:55 UTC
can you try a more recent build of kdenlive?
Comment 3 Christoph Feck 2018-06-06 20:55:02 UTC
If you can provide the information requested in comment #2, please add it.

You can download newer Kdenlive versions as an AppImage or Flatpak from https://kdenlive.org/en/download/
Comment 4 F Hammer 2018-06-07 07:20:07 UTC
With the current ubuntu version 17.12.3 it works without problems.
Comment 5 Christoph Feck 2018-06-07 08:13:46 UTC
Thanks for the update; changing status.