Multiple Streams via UDP While Limiting Bandwidth

hoene mrathbun at buffalo.edu
Fri Apr 29 02:26:47 UTC 2016


My goal is to send two video streams from one computer to another and limit
the bandwidth being used as much as possible. I have no problem doing this
in one pipeline if I just send each source to a different port. However, I
figured it would be better to mux the streams together when transmitting and
demux when receiving. I have tried using mpegtsmux and tsdemux, but I can't
find how to split the streams apart on the receiving end.

-Here is the transmitting pipeline:

gst.parse_launch('mpegtsmux name="muxer" ! udpsink host=' + self.homeIP + '
port=1234 v4l2src device=/dev/video' + str(self.cam) + ' ! video/x-raw-yuv,
framerate=' + str(self.fps) + '/1, width=640, height=480 ! x264enc pass=qual
quantizer=20 tune=zerolatency ! muxer. v4l2src device=/dev/video' +
str(self.cam + 1) + ' ! video/x-raw-yuv, framerate=' + str(self.fps) + '/1,
width=640, height=480 ! x264enc pass=qual quantizer=20 tune=zerolatency !
muxer.')

And here is a receiving pipeline that receives the video from the first
stream:

gst.parse_launch('udpsrc port=1234 caps="video/mpegts,
systemstream=(boolean)true, packetsize=(int)188" ! tsdemux ! ffdec_h264 !
xvimagesink sync=false')

I need to figure out how I can access both streams. Or is streaming to
separate ports fine?



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Multiple-Streams-via-UDP-While-Limiting-Bandwidth-tp4677216.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list