After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 700127 - seek/position query fails with mpeg-ts video file
seek/position query fails with mpeg-ts video file
Status: RESOLVED DUPLICATE of bug 698050
Product: GStreamer
Classification: Platform
Component: dont know
1.0.6
Other Linux
: Normal normal
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-05-11 16:27 UTC by lips.john
Modified: 2013-05-11 17:29 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
stdout without debug (349 bytes, application/octet-stream)
2013-05-11 16:27 UTC, lips.john
Details
stdout with debug (8.32 KB, application/octet-stream)
2013-05-11 16:29 UTC, lips.john
Details
source for testing (10.86 KB, application/octet-stream)
2013-05-11 16:34 UTC, lips.john
Details

Description lips.john 2013-05-11 16:27:59 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");
Comment 1 lips.john 2013-05-11 16:29:29 UTC
Created attachment 243855 [details]
stdout with debug
Comment 2 lips.john 2013-05-11 16:34:45 UTC
Created attachment 243856 [details]
source for testing
Comment 3 lips.john 2013-05-11 16:47:45 UTC
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?
Comment 4 lips.john 2013-05-11 16:49:26 UTC
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?
Comment 5 lips.john 2013-05-11 16:53:52 UTC
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.
Comment 6 lips.john 2013-05-11 17:03:21 UTC
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.
Comment 7 lips.john 2013-05-11 17:15:19 UTC
A test mpeg-ts video file can be downloaded from:

http://rapidshare.com/files/3517203356/test.mpg
Comment 8 Tim-Philipp Müller 2013-05-11 17:29:10 UTC
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 ***