Multiple webcam streaming over network using raspberrypi3

Eric Marks bigmarkslp at gmail.com
Thu Aug 31 21:27:17 UTC 2017


You won't be able to use the hardware encoder (omxh264enc) in more than one
stream at a time.  I'd use a software encoder (like avdec_h264 )  on one (or
both) of your streams.  You may need to use something like mjpeg encoding
since it is less CPU intensive than h264 (but it will use more bandwidth).

Something like this works for me:

gst-launch-1.0 rpicamsrc preview=0 !
image/jpeg,width=640,height=480,framerate=30/1 ! queue
max-size-time=50000000 leaky=upstream ! jpegparse ! rtpjpegpay  ! udpsink
host=192.168.1.169 port=9000 sync=false

udpsrc port=9000 caps=application/x-rtp retrieve-sender-address=false !
rtpjpegdepay ! jpegdec ! queue ! glupload ! glcolorconvert ! glimagesink

If you use "gst-inspect-1.0 | grep 264" you can pull up a list of h264
related plugins.  Then to see what each plugin accepts or outputs you can
run "gst-inspect-1.0 pluginname" to help you chain together a working
pipeline.

If you are using the onboard webcam, check out rpicamsrc as an alternative
to v4l2src:
https://github.com/thaytan/gst-rpicamsrc



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list