<div dir="ltr"><div dir="ltr">Hi,</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El jue, 22 jun 2023 a las 17:39, Nicolas Dufresne via gstreamer-devel (<<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
Le mercredi 21 juin 2023 à 12:45 +0200, Alejandro Vazquez via gstreamer-devel a<br>
écrit :<br>
> Hi, All.<br>
> <br>
> Is it possible to detect encoding types from rtsp streaming?<br>
> I saw that the element typefind can determine the media-type of a<br>
> stream but the only examples I found always use a file.<br>
> <br>
> I use the example from<br>
> <a href="https://gstreamer.freedesktop.org/documentation/application-development/advanced/autoplugging.html?gi-language=c" rel="noreferrer" target="_blank">https://gstreamer.freedesktop.org/documentation/application-development/advanced/autoplugging.html?gi-language=c</a><br>
> and replace the plugin filesrc with rtspsrc but I get a error.<br>
> <br>
> So I imagine that It is not possible or that I need something more to<br>
> get success.<br>
<br>
I suggest to use GstDiscoverer for the purpose.<br></blockquote><div><br></div><div>But wouldn't GstDiscoverer open the connection to the specified URI, try to detect, and then close?</div><div>i.e. after using GstDiscoverer a second connection would still be necessary to actually fetch the data.</div><div><br></div><div>Isn't it possible to detect the type "on the fly" using typefind? Assuming that we know that it is always a RTSP stream.</div><div><br></div><div>BR,</div><div><br></div><div>Guillermo</div><div><br></div></div></div>