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 785195 - matroskamux: opus timestamps
matroskamux: opus timestamps
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
1.x
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-07-20 21:52 UTC by Nicola
Modified: 2018-11-03 15:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
tentative patch (909 bytes, patch)
2017-07-20 21:52 UTC, Nicola
none Details | Review

Description Nicola 2017-07-20 21:52:08 UTC
Created attachment 356070 [details] [review]
tentative patch

please try this pipeline:


gst-launch-1.0 -v audiotestsrc ! opusenc ! matroskamux ! fakesink silent=false

you have something like this:


(16 bytes, dts: none, pts: 0:00:47.080000000
(3 bytes, dts: none, pts: 0:00:47.080000000
(19 bytes, dts: none, pts: 0:00:47.080000000
(160 bytes, dts: 0:00:47.073500000, pts: 0:00:47.073500000

with the attached patch ebml timestamp match buffer timestamp, I'm not 100% sure that this patch is correct
Comment 1 Sebastian Dröge (slomo) 2017-07-24 07:28:49 UTC
That probably makes sense to keep the PTS increasing but also not such much OTOH as the original timestamp is the actual timestamp for presentation (and the demuxer corrects for that again). I think the patch is fine as-is though.

What problems does it cause for you specifically?
Comment 2 Nicola 2017-07-24 07:42:41 UTC
(In reply to Sebastian Dröge (slomo) from comment #1)
> That probably makes sense to keep the PTS increasing but also not such much
> OTOH as the original timestamp is the actual timestamp for presentation (and
> the demuxer corrects for that again). I think the patch is fine as-is though.
> 

good!

> What problems does it cause for you specifically?

I saw the correction in the demuxer so I was unsure if this is the right approach, in one of my GStreamer app I treat non monotonic timestamps as a special case so the actual behaviour for opus fill my logs with warnings ...
Comment 3 Nicola 2017-08-02 19:24:35 UTC
Hi Sebastian,

based on your comments this patch seems good, if so can you please push to git master? Thanks
Comment 4 GStreamer system administrator 2018-11-03 15:20:49 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/issues/389.