[Bug 797155] New: Snapshot doesn't produce a good image for mpeg-ts video

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon Sep 17 01:52:10 UTC 2018


https://bugzilla.gnome.org/show_bug.cgi?id=797155

            Bug ID: 797155
           Summary: Snapshot doesn't produce a good image for mpeg-ts
                    video
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-plugins-base
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: gregoire at gentil.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

When using the snapshot application:

https://github.com/GStreamer/gst-plugins-base/blob/master/tests/examples/snapshot/snapshot.c

The only modification to the code I made is to put 50/100 (50% instead of 5%).

gcc snapshot.c `pkg-config --cflags --libs gstreamer-1.0 gtk+-3.0`

it's working well with a mp4 file but it generates a gray image for a mpeg-ts
file. See two examples here:

http://gentil.com/tmp/snapshot.zip

I think that the reason is that the mpeg-ts has less information about
timestamp so it needs a few frames before it decodes properly a key frame.

How can the source code be patched so that multiple successive frames are
decoded before the sample is taken?

Note that if I play the mpeg-ts file and I seek, the first 0.2s is also gray
for the same reason explained above.

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