<div dir="ltr"><div>If you look into rtsp-media-factory.c in the default-construct method you will find the following:<br><br>  g_mutex_lock (factory->medias_lock);<br>  if (key) {<br>    /* we have a key, see if we find a cached media */<br>
    media = g_hash_table_lookup (factory->medias, key);<br>    if (media)<br>      g_object_ref (media);<br>  }<br><br></div>This shows you how to get the media object from a URL. You can look at the code to see how the hash table is built and maintained and work your code from there.<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Aug 6, 2013 at 7:39 AM, Dexter Metzger <span dir="ltr"><<a href="mailto:dexter.metzger@gmail.com" target="_blank">dexter.metzger@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Thanks for the response. But it's not clear to me how I can obtain the RTSP Media object. The only function I can find that returns an object of that type is "gst_rtsp_media_factory_construct". However, the documentation of this function is vague and it takes a URL object (which I don't see in any of the examples I've been following) as a parameter. Is there another function or object I'm missing? If not, would you (or someone) be able to explain the use of gst_rtsp_media_factory_construct to me? </div>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Aug 5, 2013 at 5:12 PM, Chuck Crisler <span dir="ltr"><<a href="mailto:ccrisler@mutualink.net" target="_blank">ccrisler@mutualink.net</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">There isn't anything special about an RTSP server pipeline. It is just a pipeline. The RTSP Media object has a pipeline pointer. You can access that object and iterate the pipeline elements and do anything you want to do, just like a any other pipeline. Just remember that the pipeline you specify is wrapped by a gstrtpbin object.<br>


</div><div class="gmail_extra"><br><br><div class="gmail_quote"><div>On Mon, Aug 5, 2013 at 4:46 PM, Dexter Metzger <span dir="ltr"><<a href="mailto:dexter.metzger@gmail.com" target="_blank">dexter.metzger@gmail.com</a>></span> wrote:<br>


</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div><div dir="ltr"><div>Does anyone have any examples on using AppSrc with rtsp-server? This question has been asked multiple times in the past, but has never been answered. I'm unable to find any documentation describing how it can be done.</div>



<div> </div><div>The problem with RTSP server is that it envelops the pipeline, restricting access to the elements. This prevents a developer from making calls on the "appsrc" element. I found one post that describes a partial solution (<a href="http://lists.freedesktop.org/archives/gstreamer-devel/2012-November/037854.html" target="_blank">http://lists.freedesktop.org/archives/gstreamer-devel/2012-November/037854.html</a>) but it lacks a complete implementation and I'm not able to get a program working using its concepts.</div>



</div>
<br></div>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div>