<div dir="ltr"><div>Thank you!</div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-im">But how can I access the <b>stream_id</b> after the <b>funnel</b> element to know which <b>stream_id</b> belongs to which video <b>input</b>? <br></span></blockquote></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div> </div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div> You can get the STREAM_START sticky event via a pad probe, or by using gst_pad_get_sticky_event() at any time.</div></blockquote><div><br></div><div>I tried the following:<br></div><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><br></div><div>Thank you</div><div>Tommy</div><div><br></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">po 22. 8. 2022 v 8:24 odesílatel Sebastian Dröge <<a href="mailto:sebastian@centricular.com">sebastian@centricular.com</a>> napsal:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div>On Sun, 2022-08-21 at 20:55 +0200, Tomy Elrond wrote:</div><blockquote type="cite" style="margin:0px 0px 0px 0.8ex;border-left:2px solid rgb(114,159,207);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>But how can I access the <b>stream_id</b> after the <b>funnel</b> element to know which <b>stream_id</b> belongs to which video <b>input</b>? </div></div></div></blockquote><div><br></div><div>You can get the STREAM_START sticky event via a pad probe, or by using gst_pad_get_sticky_event() at any time.</div><div><br></div><div><span><pre>-- <br></pre><div style="width:71ch">Sebastian Dröge, Centricular Ltd · <a href="http://www.centricular.com" target="_blank">https://www.centricular.com</a></div><div style="width:71ch"><br></div></span></div></div>
</blockquote></div>