MrLunk

raspberry pi usb webcam video gstreamer pipeline

Oct 28th, 2018
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. --> Here are the GSTREAMER SCRIPTS used on the Raspberry PI:
  2.  
  3. SEND VIDEO FROM THE PI's USB WEBCAM to the remote operator:
  4. gst-launch-1.0 -v v4l2src ! video/x-raw,width=320,height=240 ! videoconvert ! jpegenc ! rtpjpegpay ! udpsink host=192.168.1.101 port=5200
  5.  
  6. SEND AUDIO FROM THE PI's USB WEBCAM MIC to the remote OP:
  7. gst-launch-1.0 alsasrc device=plughw:1 ! queue ! audiorate ! audioconvert ! audioresample ! opusenc ! rtpopuspay ! udpsink host=192.168.1.101 port=4444
  8.  
  9. --> Here are the GSTREAMER SCRIPTS used at the remote OP's station:
  10.  
  11. RECEIVE VIDEO from the PI's USB WEBCAM looking at the RADIO
  12. gst-launch-1.0 -v udpsrc port=5200 ! application/x-rtp, encoding-name=JPEG,payload=26 ! rtpjpegdepay ! jpegdec ! videoconvert ! autovideosink
  13.  
  14. RECEIVE AUDIO from the PI's USB WEBCAM microphone:
  15. gst-launch-1.0 -v udpsrc port=4444 caps="application/x-rtp,channels=1" ! queue ! rtpjitterbuffer latency=100 ! rtpopusdepay ! opusdec plc=true ! queue ! audioconvert ! audioresample ! jackaudiosink buffer-time=25000
  16.  
  17. From: https://www.youtube.com/watch?v=8in38aO69Vs
Add Comment
Please, Sign In to add comment