How to dynamically receive RTP streams?
Joshua Kurland
joshua.kurland at adtecdigital.net
Wed Jan 22 13:18:39 PST 2014
Hi,
My application needs to receive and play an RTP video stream. The format
of the video stream could be either mpeg4/h264 or mpeg2-ts, but the
receiver will not know in advance which one it is, and it does not
communicate with the transmitter at all. How can I set the caps of the
udpsrc without knowing the video format? One option that has been
suggested was to use typefind, but I don't understand how this can work.
In order to receive the stream the caps need to be set already. And to
get the caps using typefind, the video needs to be available. Do I need to
hard-code the caps, get the stream, check the caps with typefind then reset
the caps?
I plan on using decodebin to decode the stream once it arrives. However I
have not had any experience with using decodebin. Am I able to link the
rtpbin to the decodebin as soon as I have a live stream, or do I need to
wait for the 'pad-added' signal of the decodebin then link them inside of a
callback function?
Lastly, my code is already using the playbin to set the source and sink
elements. Is their some way to keep that portion of code, but use the
rtpbin instead of the uri to attach the stream to playbin?
Thank you,
Josh Kurland
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140122/4fdf09c3/attachment.html>
More information about the gstreamer-devel
mailing list