Skip to content

Instantly share code, notes, and snippets.

@marshallmassengill
Created April 12, 2022 20:32
Show Gist options
  • Save marshallmassengill/b2cc79ae4a249dbca60ac5ab4057024b to your computer and use it in GitHub Desktop.
Save marshallmassengill/b2cc79ae4a249dbca60ac5ab4057024b to your computer and use it in GitHub Desktop.
gst-launch for FRC 2022
On the server side (read: Robot):
gst-launch-1.0 --no-fault v4l2src device=/dev/video0 ! "image/jpeg,width=480,height=240,framerate=30/1" ! jpegparse ! jpegdec ! videoscale ! video/x-raw,width=160,height=120 ! jpegenc ! rtpjpegpay mtu=512 ! udpsink host=127.0.0.1 port=5804
On the receiver side (read: Driver Station):
gst-launch-1.0 -e -v udpsrc port=5804 ! application/x-rtp, encoding-name=JPEG, payload=26 ! rtpjpegdepay ! jpegdec ! autovideosink
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment