GNOME Bugzilla – Bug 341736
[patch] H.263/QDesign Music v.2 movie has great playback problems
Last modified: 2007-03-07 11:08:36 UTC
Hi, with the latest version of gst-ffmpeg, gstreamer 0.10.5.2, gst-plugins-base 0.10.6.2 the following video has some great playback problems: http://ds9a.nl/pdns/balmer.mov The video stutters, there's a grey bar in the bottom, seeking is impossible, there's a large black border around the video and it seems that audio gets out of sync. mplayer/xine plays the movie just fine, pitfdll (the 0.10 variant from CVS) explodes on it (segfault) too. Bye Ubuntu Bug: https://launchpad.net/distros/ubuntu/+source/gstreamer0.10-ffmpeg/+bug/44519
Created attachment 65509 [details] [review] fix state changes and qt audio plugin a quick patch to fix the obvious errors in pitfdll. Timestamps are still off but the file plays without crashing.
Hmm, the patch doesn't fix it completely... when running normally the video just stops with the first frame and nothing else happens, no segfault, no progress, no nothing ;) When running it with GST_DEBUG=3 GST_DEBUG_NO_COLOR=1 gst-launch-0.10 playbin uri=file:///home/slomo/temp/tests/balmer.mov it works most of the time without crashing so I expect some kind of timing problem somewhere
When running it with gst-launch-0.10 without debugging output it has the same behaviour as with totem btw...
This commit makes it play properly for me. Remaining issues are the borders, which need cropping based on info from the quicktime container. * ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_chain): Fix timestamping some more by actually using the ffmpeg parsers correctly. Fixes #341736
* ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_open), (gst_ffmpegdec_setcaps), (gst_ffmpegdec_negotiate), (get_output_buffer), (gst_ffmpegdec_video_frame), (clip_audio_buffer), (gst_ffmpegdec_audio_frame), (gst_ffmpegdec_frame), (gst_ffmpegdec_chain), (gst_ffmpegdec_register): Use caps to clip output images. Fixes #341736