GNOME Bugzilla – Bug 700127
seek/position query fails with mpeg-ts video file
Last modified: 2013-05-11 17:29:10 UTC
Created attachment 243854 [details] stdout without debug As you can see in test_output pos_ns jumps around forward and back despite the fact that this is the output for four one second skips forward as defined here (in fullscreen02.c): gint64 dur_ns, pos_ns, seek_ns; GstFormat format; format = GST_FORMAT_TIME; if ( !gst_element_query_position(pipeline,format,&pos_ns) ) g_print("query position failed\n"); seek_ns = pos_ns + 10*GST_SECOND; g_print ("pos_ns: %li, seek_ns: %li\n",pos_ns,seek_ns); g_print ("position: %" GST_TIME_FORMAT "\n", GST_TIME_ARGS (seek_ns)); if ( !gst_element_seek_simple (pipeline, GST_FORMAT_TIME, GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_KEY_UNIT, seek_ns) ) g_print ("Seek failed!\n");
Created attachment 243855 [details] stdout with debug
Created attachment 243856 [details] source for testing
I tried to upload mpeg-ts video segment, but getting one smaller than 1600 kb is not practical and I have no where to upload the file to. Any suggestions?
This is the pipeline I used: pipeline = gst_parse_launch("filesrc location=test.mpg ! decodebin name=decoder decoder. ! queue ! audioconvert ! audioresample ! alsasink decoder. ! deinterlace ! videoconvert ! xvimagesink",&error); Although I get the same behavior using playbin within the same C program.
A better description of the problem is located here: http://stackoverflow.com/questions/16493607/gstreamer-1-0-seeking-within-an-mpegts-not-working-as-expected I thought I could edit the description of the bug once committed, but I was wrong.
A test mpeg-ts video file can be downloaded from: http://rapidshare.com/files/3517203356/test.mpg
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of bug 698050 ***