[Bug 723076] New: Failed to seek some frames in a matroska video file

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Mon Jan 27 01:24:45 PST 2014


https://bugzilla.gnome.org/show_bug.cgi?id=723076
  GStreamer | gst-plugins-good | 1.2.4

           Summary: Failed to seek some frames in a matroska video file
    Classification: Platform
           Product: GStreamer
           Version: 1.2.4
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: major
          Priority: Normal
         Component: gst-plugins-good
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: adrien.schwartzentruber at gmail.com
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


Created an attachment (id=267277)
 --> (https://bugzilla.gnome.org/attachment.cgi?id=267277)
Test case

Issue : Some frame aren't seekable in a matroska video file

Real case : 
1. Reverse playback multiple video file.
2. Snapshot of a video file

How to reproduce : 

Create a video sample : 
gst-launch-1.0 videotestsrc num-buffers=3000 ! timeoverlay ! x264enc !
matroskamux ! filesink location=~/test.mkv

This previous command will create a mkv file, with a duration of 100s and with
a last frame at 99.967. These information can be validate with the mkvinfo tool
(don't forget to activate Show all elements in the UI). 

Gstreamer test case : 
Goal, try to seek the last frame of the video file.
Pipeline : filesrc ! matroskademux ! h264parse ! avdec_h264 ! videoconvert !
xvimagesink
Code : http://pastebin.com/yf47niDL
Observations : 
When we try to seek to the last frame, the last full gop is sent to the
decoder, including the last frame. The decoder doesn't output the last frame,
and the demux forward an EOS event (in my case, dropped). The result is that
the last frame, isn't seekable, and will not be displayed.

Note : This behavior can be validated with other frames in the video file (a
bit before the last frame), but I can't say how many frames aren't seekable. 

Hypothesis : 
Could be a segment problem ?

External : Mailing list discussion :
http://gstreamer-devel.966125.n4.nabble.com/How-to-get-the-last-frame-of-a-video-file-td4664849.html

-- 
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