<html><head></head><body><div><br></div><div>On Mon, 2022-08-22 at 15:04 +0200, Tomy Elrond via gstreamer-devel wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div dir="ltr"><div>"</div><div><div><b>// ------- Method 1: my previous solution -------</b></div><div>gchar *opaque_stream_id = gst_pad_get_stream_id(pad);</div><div><b>g_print("opaque_stream_id: %s\n", opaque_stream_id); // <b> prints the SHA256 of the URI</b></b></div></div><div><br></div><div><b>// ------- Method 2: your proposed method -------</b></div><div>GstEvent *sticky_event = NULL;</div><div>sticky_event = gst_pad_get_sticky_event(pad, GST_EVENT_STREAM_START, 0);</div><div>const gchar *stream_id = NULL;</div><div>gst_event_parse_stream_start(sticky_event, &stream_id);</div><div><b>g_print("stream_id: %s\n", stream_id); // Also prints the SHA256 of the URI</b></div><div>"</div><div>But your proposed method also prints the same hash as the previous method, so I'm still not able to distinguish the input streams. Or isn't my code correct?</div><div>My question is still the same: How do I find out which stream_id belongs to which video input? <br></div></div></blockquote><div><br></div><div>You'd get the stream-id from the source pad of the funnel in your case. You probably want to use a pad probe to get notified about whenever the STREAM_START event changes and a new stream-id is in use.</div><div><br></div><div><span><pre>-- <br></pre><div data-evo-paragraph="" class="" style="width: 71ch;" data-evo-signature-plain-text-mode="">Sebastian Dröge, Centricular Ltd · <a href="http://www.centricular.com">https://www.centricular.com</a></div><div data-evo-paragraph="" class="" style="width: 71ch;"><br></div></span></div></body></html>