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 561406 - [qtmux] Dirac stream has wrong duration and initial timestamps
[qtmux] Dirac stream has wrong duration and initial timestamps
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal normal
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-11-18 18:09 UTC by Mark Nauwelaerts
Modified: 2009-08-10 23:49 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Possible patch (1.69 KB, patch)
2008-11-18 18:13 UTC, Mark Nauwelaerts
none Details | Review

Description Mark Nauwelaerts 2008-11-18 18:09:40 UTC
Assumption:
schroenc's initial buffer can have dts (= OFFSET_END) < 0
[seems to be possible given the present code path that exists for this contingency, and so confirmed by test]

In the above case, when processing first buffers, scaled_dts is calculated < 0, and then also scaled_duration < 0 (or "equivalently" >> 0).
This is passed to lower layers, leading to a first "delta" >> 0, and therefore wrong duration overall (and timestamp).
Comment 1 Mark Nauwelaerts 2008-11-18 18:13:22 UTC
Created attachment 122971 [details] [review]
Possible patch

* Initialize last_dts with initial upstream provided dts.
Comment 2 David Schleef 2008-11-18 18:33:59 UTC
I modified the behavior slightly in schroedinger, however, I'm not completely happy with the added complexity:

 video/x-qt-part
 - BUFFER_OFFSET() is the "composition time" (or whatever quicktime calls it), and should start at 0 and increment at the frame rate.  This means it is never negative.

 video/x-mp4-part
 - BUFFSET_OFFSET() is the DTS, which might be negative for the first few buffers.

It is unclear to me why we should care about the distinction.  qtdemux can easily take DTS and convert to composition time.
Comment 3 Sebastian Dröge (slomo) 2009-07-29 14:06:24 UTC
What's the status of this bug? This seems to be fixed in schro now and the attached patch is obsolete. Correct?
Comment 4 David Schleef 2009-07-29 18:17:37 UTC
Yes.