Multiple video sstreams over RTP

Biloute l_coquerel at yahoo.co.uk
Fri Dec 9 23:27:28 PST 2011


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: http://gstreamer-devel.966125.n4.nabble.com/Multiple-video-sstreams-over-RTP-tp4179527p4179527.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20111209/d9bb6ae3/attachment.html>


More information about the gstreamer-devel mailing list