<div dir="ltr"><div dir="ltr"><div>Thank you.</div><div> </div><blockquote type="cite" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Or is there some other way to find out stream ids (for example first input -> 0, second input -> 1)?</blockquote><br></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Via the STREAM_START event.</blockquote><div> </div><div>In the doc I can read for <i><b>gst_event_new_stream_start</b></i> function:</div><div>"</div><div>Source elements, demuxers and other elements that create new streams are supposed to send this event as the first event of a new stream. <br></div><div>"</div><div>In my pipeline before the funnel, the uridecodebin is used, so <i><b>gst_event_new_stream_start</b></i> function should be already sent by uridecodebin. 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><br></div><div>Thank you!</div><div>Tommy<br></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">ne 21. 8. 2022 v 18:12 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 Sat, 2022-08-20 at 15:25 +0200, Tomy Elrond via gstreamer-devel 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><br></div><div>These "hashes" must be related with input names, because for each input name it generates the same hash every time. For example:</div><div>"</div><div>input name: "file:///tmp/input_video_1.mp4" -> generated hash: "0b70cf574e1fef0b694a8a449a94732091cda1ce67bc4bf7c71c59d6c331f5b1/001"<br>input name: "file:///tmp/input_video_2.mp4" -> generated hash: "7960608e8835f3eeaf8fba46351367dd76199a9e133117d4aeeccb862e8da9aa/001"<br></div><div>"</div><div>Is there any way how to "decode" these hashes to the original string (path of video file?</div></div></blockquote><div><br></div><div>It's the SHA256 of the URI, currently. You can't decode that and you must not rely on that staying the same forever.</div><div><br></div><div>The stream IDs are opaque IDs that only allow you to distinguish different streams / find same streams.</div><div><br></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>Or is there some other way to find out stream ids (for example first input -> 0, second input -> 1)?</div></div></blockquote><div><br></div><div>Via the STREAM_START event.</div><blockquote type="cite" style="margin:0px 0px 0px 0.8ex;border-left:2px solid rgb(114,159,207);padding-left:1ex"></blockquote><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></div>