Skip to content

Instantly share code, notes, and snippets.

@SZanlongo
Last active March 31, 2022 15:35
Show Gist options
  • Save SZanlongo/1c87817b956b320d7c95928b4e11e864 to your computer and use it in GitHub Desktop.
Save SZanlongo/1c87817b956b320d7c95928b4e11e864 to your computer and use it in GitHub Desktop.

Host

gst-launch-1.0 -v v4l2src device=/dev/video0
! "image/jpeg,width=1280, height=720,framerate=30/1"
! rtpjpegpay
! udpsink host=$myip port=$myport

Client

gst-launch-1.0 -e -v udpsrc port=$myport !
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