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 793094 - rtpbasepayload: inconsistent units for running-time in stats
rtpbasepayload: inconsistent units for running-time in stats
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2018-02-01 16:07 UTC by Michael Tretter
Modified: 2018-11-03 12:03 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
0001-rtpbasepayload-always-report-running_time-in-ns.patch (4.05 KB, patch)
2018-02-20 16:18 UTC, Michael Tretter
none Details | Review

Description Michael Tretter 2018-02-01 16:07:18 UTC
The rtpbasepayloader reports the running time of the last processed buffer in the stats property. The unit of running time can be either ns or rtptime ticks depending on the setting of perfect-rtptime.

The gst-rtsp-server uses the running time to calculate the clock base for the RTP-Info header and assumes that running time is in ns and scales it to rtptime ticks afterwards. If the streams do not start at the same time, this can lead to an erroneous clock-base in the RTP-info and out of sync streams on the receiver.

I would expect that the running time in the stats is always in ns, but I am not sure about the actually intended design. Even the test-case for the rptbasepayloader rtp_base_payload_property_stats_test() switches the units of running time depending on the setting of perfect-rtptime.
Comment 1 Olivier Crête 2018-02-06 13:19:55 UTC
The running-time should definitely always be in the same unit (ns), so this looks like a bug. If anyone needs it in rtp clock units, then we should add an extra entry to the stats buffer with a new name.
Comment 2 Michael Tretter 2018-02-20 16:18:15 UTC
Created attachment 368657 [details] [review]
0001-rtpbasepayload-always-report-running_time-in-ns.patch

I attached a patch to always calculate running_time in ns and fix the related test case.

I'm not completely sure about the perfect-rtptime=true path and would appreciate someone having a close look at it.
Comment 3 GStreamer system administrator 2018-11-03 12:03:14 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-base/issues/417.