GNOME Bugzilla – Bug 320927
corrupted image after seek in AVI
Last modified: 2006-01-23 12:46:37 UTC
with a filesrc, a decodebin and a fakesink in a pipeline, I want to seek to some frame number, get the frame data and then display it. With an avi file, the seek is accurate, but the data that I retrieve when the "handoff" signal is sent is not good. You can see an example of the problem here : http://www.iecn.u-nancy.fr/~torri/files/gstreamer_seek/gst_seek.png With an mkv file, the seek is not accurate. It seems to go to the next key frame, and not the previous one, before doing the seek. The problem with the data remains. The videos that I use are here : http://www.iecn.u-nancy.fr/~torri/files/gstreamer_pb/ the video stream has been encoded with xvid. The above screen shot is obtained with the blood.avi file, frame #120 and with the program attached below
Created attachment 54446 [details] test program Test program that shows the problem when seeking to a specific frame Usage : ./seek video_file frame_number
Created attachment 57930 [details] test program updated for 0.10 (and working)
This is not a bug in GStreamer. This is a bug in your test program. You're not using correct strides for the I420 video frame when converting from yuv to rgb.