[Bug 696613] New: seeking in mkv files is not correct

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Mon Mar 25 23:43:15 PDT 2013


https://bugzilla.gnome.org/show_bug.cgi?id=696613
  GStreamer | gst-plugins | 1.0.6

           Summary: seeking in mkv files is not correct
    Classification: Platform
           Product: GStreamer
           Version: 1.0.6
        OS/Version: Windows
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-plugins
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: steffen.roeber at hella.com
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


If I play .mkv files in my app, then seeking to a position is not performed 
correctly.
I have an filesrc, decodbin and an appsink.
If I call 
    gst_element_seek(GST_ELEMENT(m_pipeline), 1.0, GST_FORMAT_DEFAULT, 
GST_SEEK_FLAG_FLUSH,
      GST_SEEK_TYPE_SET, qMin(i_stamp, m_duration), GST_SEEK_TYPE_NONE, 
GST_CLOCK_TIME_NONE);


    gst_element_query_position(GST_ELEMENT(m_pipeline), 
GST_FORMAT_DEFAULT, &stamp);

then stamp contains same value as i_stamp, the stamp I want to set. It 
does not matter if I use stamp or frame mode (GST_FORMAT_DEFAULT or 
GST_FORMAT_TIME) behaviour is same in both modes.
The problem is that the next buffer I get in my appsink has a stamp which 
is about 2-3 frames behind the frame or stamp I set. The problem occurs only in
some .mkv files.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list