Sending Multiple Streams via UDP While Limiting Bandwidth

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

Sending Multiple Streams via UDP While Limiting Bandwidth

hoene
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?



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