Hi, gstreamer-devel:<br><br>&nbsp;&nbsp;&nbsp; OK. I think you can read the source code of decodebin for reference. Decodebin add a &quot;typefind&quot; element in it and &quot;typefind&quot; will tell it what the caps of the source media; Then, &quot;find_compatibles&quot; search in the element registry and find out elements which are compatible with this caps; At last, &quot;try_to_link_1&quot; loop through the elements which &quot;find_compatibles&quot; found and try to link it with source.<br>
<br>&nbsp;&nbsp;&nbsp; So, I think if you read the source codes of &quot;gst_decode_bin_init&quot;, &quot;find_compatibles&quot; and &quot;try_to_link_1&quot;, you can figure out the way which makes your work done. You can find these 3 functions in gstdecodebin.c.<br>
<br>Eric Zhang<br><br><div class="gmail_quote">2008/12/26 Jyoti D <span dir="ltr">&lt;<a href="mailto:jyoti.d@allaboutif.com">jyoti.d@allaboutif.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks for the response Eric. <br>Basically I want my application to act as an RTSP server. So I need to stream the media file contents as rtp packets. For this I encode the given stream into its native format, for eg. if my media file is of type Mpeg4 then I want to encode it into Mpeg4 and then use the compatible RTP payloader element and stream it over the server. <br>

<br>The client may be a VLC player which should play media file. <br><br>So for this I need to dynamically find encoder and rtppayloader to stream media content of file on the server. I need help to dynamically link the compatible encoder and rtppayloader.<br>

<br>Thanks,<br><font color="#888888">Jyoti</font><div><div></div><div class="Wj3C7c"><br>&nbsp;<br><br><div class="gmail_quote">On Thu, Dec 25, 2008 at 3:03 PM, Eric Zhang <span dir="ltr">&lt;<a href="mailto:nicolas.m.zhang@gmail.com" target="_blank">nicolas.m.zhang@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi, gstreamer-devel:<br><br>&nbsp;&nbsp;&nbsp; 1. Consider &quot;decodebin&quot; for demux &amp; decode your media file automatically.<br><br>&nbsp;&nbsp;&nbsp; 2. You mentioned &quot;encode this file into a perticular format&quot;, so why you wanna find encoder &amp; rtppayloader dynamically ? You should link your specified encoder to decodebin then link rtppayloader, that&#39;s all.<br>


<br>Eric Zhang<br><br><div class="gmail_quote">2008/12/24 Jyoti D <span dir="ltr">&lt;<a href="mailto:jyoti.d@allaboutif.com" target="_blank">jyoti.d@allaboutif.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div><div></div><div>
Hi all,<br><br>I am writing an application where I need to do the following:<br>1. read a media file from the disk<br>2. encode this file into a particular format<br>3. use the rtp payloaders to send the data on to the server<br>



<br>To my understanding to use an encode I need to demux and then decode the file data <br>to a raw format and then encode this data using the encoder and then payload the same using rtp payloaders.<br><br>Now I want to find the encoder dynamically and link with the decoder.<br>



Similarly I also need to dynamically link the rtp payloaders.<br><br>But I am not able to do it. Could anyone help me regarding the same.<br><br>Thanks,<br><font color="#888888">Jyoti<br>
</font><br></div></div>------------------------------------------------------------------------------<br>
<br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br>
<br>------------------------------------------------------------------------------<br>
<br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br>
</div></div><br>------------------------------------------------------------------------------<br>
<br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br>