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 783261 - rtpptdemux: uniquify stream id.
rtpptdemux: uniquify stream id.
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
unspecified
Other All
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-05-31 04:11 UTC by Mathieu Duponchelle
Modified: 2018-11-03 15:19 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
rtpptdemux: uniquify stream id. (1.61 KB, patch)
2017-05-31 04:11 UTC, Mathieu Duponchelle
none Details | Review
rtpptdemux: uniquify stream id. (2.48 KB, patch)
2017-05-31 04:35 UTC, Mathieu Duponchelle
none Details | Review
rtpptdemux: uniquify stream id. (2.48 KB, patch)
2017-05-31 04:36 UTC, Mathieu Duponchelle
none Details | Review
rtpptdemux: uniquify stream id. (2.51 KB, patch)
2017-05-31 17:34 UTC, Mathieu Duponchelle
rejected Details | Review

Description Mathieu Duponchelle 2017-05-31 04:11:43 UTC
By appending ("/%d", payload_type) to the upstream stream id.
Comment 1 Mathieu Duponchelle 2017-05-31 04:11:47 UTC
Created attachment 352917 [details] [review]
rtpptdemux: uniquify stream id.
Comment 2 Mathieu Duponchelle 2017-05-31 04:14:21 UTC
This is just a proposal, for now when using rtspsrc we sometimes (undeterministically) end up with the same stream id for both streams, as a "single part", ie with no "/".

With this patch at least the part after the "/" is now deterministic, though potentially not that unique.

Curious if anyone has a better idea ?
Comment 3 Mathieu Duponchelle 2017-05-31 04:15:41 UTC
In that specific case, it could make sense to hash the content of the first buffer maybe ?
Comment 4 Mathieu Duponchelle 2017-05-31 04:35:26 UTC
Created attachment 352919 [details] [review]
rtpptdemux: uniquify stream id.

By appending ("/%d", payload_type) to the upstream stream id.
Comment 5 Mathieu Duponchelle 2017-05-31 04:36:36 UTC
Created attachment 352920 [details] [review]
rtpptdemux: uniquify stream id.

By appending ("/%s", payload_hash) to the upstream stream id.
Comment 6 Mathieu Duponchelle 2017-05-31 04:37:08 UTC
Alternate proposal, it is both deterministic and way more likely to be unique
Comment 7 Sebastian Dröge (slomo) 2017-05-31 07:14:58 UTC
Why a hash? ptdemux is demuxing based on the payload type, so use that :)
Comment 8 Mathieu Duponchelle 2017-05-31 17:34:47 UTC
Created attachment 352960 [details] [review]
rtpptdemux: uniquify stream id.

By appending ("/%s", payload_hash) to the upstream stream id.
Comment 9 Sebastian Dröge (slomo) 2017-05-31 17:46:18 UTC
Review of attachment 352960 [details] [review]:

::: gst/rtpmanager/gstrtpptdemux.c
@@ +404,3 @@
+          g_compute_checksum_for_data (G_CHECKSUM_MD5,
+              gst_rtp_buffer_get_payload (&rtp),
+              gst_rtp_buffer_get_payload_len (&rtp)));

Why not:
stream_id = gst_pad_create_stream_id_printf(srcpad, rtpdemux, "%u", pt)?
Comment 10 Mathieu Duponchelle 2017-06-01 00:17:13 UTC
Closing, new proposal at https://bugzilla.gnome.org/show_bug.cgi?id=783307
Comment 11 Mathieu Duponchelle 2017-06-01 00:17:29 UTC
Review of attachment 352960 [details] [review]:

Obsolete
Comment 12 Sebastian Dröge (slomo) 2017-06-01 06:15:10 UTC
Not really, rtpptdemux should set unique stream ids in any case.
Comment 13 GStreamer system administrator 2018-11-03 15:19:19 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/375.