Multiple video sstreams over RTP

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Multiple video sstreams over RTP

Biloute
Hi Everyone. I have to machines. One that acts as a server and one that acts as a client. On the server, I want to multiplex 2 video streams and send them over to the client via RTP On the client, I want to watch these 2 videos sources with VLC simply by listening to the port 5000 I will run: vlc udp://@:5000 Building the blocks step by steps, I can output to a TS file my 2 video sources and the audio. VLC opens it and plays it nicely. I used this pipeline: gst-launch --gst-debug=2 videotestsrc name ="alpha" pattern="snow" \ ! 'video/x-raw-yuv, format=(fourcc)I420, width=240, height=120, framerate=(fraction)25/1' \ ! x264enc bitrate=512 ! muxer. \ videotestsrc name ="beta" \ ! 'video/x-raw-yuv, format=(fourcc)I420, width=640, height=480, framerate=(fraction)25/1' \ ! textoverlay text="Hello and welcome to GStreamer!" valignment=3 \ ! x264enc bitrate=512 ! muxer. \ audiotestsrc freq=450 num-buffers=440 ! 'audio/x-raw-int,rate=44100,channels=2'\ ! audioconvert ! faac ! queue ! muxer. flutsmux name="muxer" ! \ filesink location=test_123.ts Next I want to send out these streams to the client via RTP and this is where things become complicated. I've tried to use: gst-launch --gst-debug=2 videotestsrc name ="alpha" pattern="snow" \ ! 'video/x-raw-yuv, format=(fourcc)I420, width=240, height=120, framerate=(fraction)25/1' \ ! x264enc bitrate=512 ! muxer. \ videotestsrc name ="beta" \ ! 'video/x-raw-yuv, format=(fourcc)I420, width=640, height=480, framerate=(fraction)25/1' \ ! textoverlay text="Hello and welcome to GStreamer!" valignment=3 \ ! x264enc bitrate=512 ! muxer. flutsmux name="muxer" ! rtpmp2tpay ! \ udpsink host=192.168.100.2 port=5000 ts-offset=0 But I am getting some warnings saying that the latency cannot be set and in VLC nothing opens. I've also tried to replace flutsmux by mpegtsmux, but no luck either. I'm pretty sure it's coming from the mux. If anyone could help with this one, I'd be very grateful as I've already spent a good while on it. Thanks a lot Biloute

View this message in context: Multiple video sstreams over RTP
Sent from the GStreamer-devel mailing list archive at Nabble.com.

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel