Thanks.<br><br><div class="gmail_quote">On Mon, Dec 29, 2008 at 8:55 AM, Eric Zhang <span dir="ltr"><<a href="mailto:nicolas.m.zhang@gmail.com">nicolas.m.zhang@gmail.com</a>></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> OK. I think you can read the source code of decodebin for reference. Decodebin add a "typefind" element in it and "typefind" will tell it what the caps of the source media; Then, "find_compatibles" search in the element registry and find out elements which are compatible with this caps; At last, "try_to_link_1" loop through the elements which "find_compatibles" found and try to link it with source.<br>
<br> So, I think if you read the source codes of "gst_decode_bin_init", "find_compatibles" and "try_to_link_1", 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"><<a href="mailto:jyoti.d@allaboutif.com" target="_blank">jyoti.d@allaboutif.com</a>></span><div><div></div><div class="Wj3C7c"><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><br> <br><br><div class="gmail_quote">On Thu, Dec 25, 2008 at 3:03 PM, Eric Zhang <span dir="ltr"><<a href="mailto:nicolas.m.zhang@gmail.com" target="_blank">nicolas.m.zhang@gmail.com</a>></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> 1. Consider "decodebin" for demux & decode your media file automatically.<br><br> 2. You mentioned "encode this file into a perticular format", so why you wanna find encoder & rtppayloader dynamically ? You should link your specified encoder to decodebin then link rtppayloader, that's all.<br>
<br>Eric Zhang<br><br><div class="gmail_quote">2008/12/24 Jyoti D <span dir="ltr"><<a href="mailto:jyoti.d@allaboutif.com" target="_blank">jyoti.d@allaboutif.com</a>></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" 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></div></div><br>
<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>