[Bug 679466] New: [0.11] GStreamer doesn't support negative DTS

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu Jul 5 11:49:51 PDT 2012


https://bugzilla.gnome.org/show_bug.cgi?id=679466
  GStreamer | gstreamer (core) | 0.11.x

           Summary: [0.11] GStreamer doesn't support negative DTS
    Classification: Platform
           Product: GStreamer
           Version: 0.11.x
        OS/Version: Mac OS
            Status: UNCONFIRMED
          Severity: major
          Priority: Normal
         Component: gstreamer (core)
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: matej.knopp at gmail.com
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


[I'm not hoping for this to get fixed for 1.0; filing the bug to raise
awareness anyway]

x264 generates one or two frames with negative DTS (one with b-frames enabled,
two with b-pyramid).

This is necessary for sequence such as
IPBPP  (PTS=0,2,1,3,4 DTS=-1,0,1,2,3) 
to be decoded properly - B frame in the middle has PTS 1, but needs two frames
(I, B) decoded before it can be displayed.

In GStreamer there is currently no way to represent a negative DTS. There are
few hacks around this (encoder could compress the DTS - i.e. 0, 0.5, 1, 2, 3)
or the DTS can be shifted in the encoder and shifted back in muxer, but these
are either ugly or not entirely legal (compression).

If anyone has a nicer/or simpler solution I'm all ears.

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