GNOME Bugzilla – Bug 310996
problem when retrieving the data of a frame (seek problem)
Last modified: 2006-01-12 19:27:08 UTC
With a basic pipeline (see the file main.c in the attachment below), when I try to retrieve the frame data, I only get a black image. You can use the file http://www.iecn.u-nancy.fr/~torri/files/gstreamer_pb/blood.mkv to test the program. The program seeks to frame #175 and creates a test.ppm file that should be the frame. I only get black image. The name of the file is hardcoded.
Created attachment 49456 [details] small test program video filename and frame number are hardcoded. The video is supposed to be in I420. If it's in YV12, U and V must be swapped.
i have added an avi test file (http://www.iecn.u-nancy.fr/~torri/files/gstreamer_pb/blood.avi) and i have improved a bit the test program (see attachment below) It seems that it's more a seek problem. With this avi file: 1) If I seek to frame 175 (that is, 7s) the buffer timestamp is 171798696.135s and the frame is black. 2) If I seek to frame 1000 (that is, 40s), the buffer is good, but the buffer timestamp is 38.655s, so a shift of 1.345s. So i think that I do not display the frame # 1000.
Created attachment 49848 [details] improved test program Usage : ./main /path/to/file frame_number
Seeking was improved quite a bit in 0.10. I don't think anyone is going to look at this one in 0.8. Give 0.10 a try, and if you find problems please file new bugs.