Skip to content

Instantly share code, notes, and snippets.

@anselmobattisti
Created September 8, 2019 13:30
Show Gist options
  • Save anselmobattisti/ed5a57332731843ad35a53bd75570a11 to your computer and use it in GitHub Desktop.
Save anselmobattisti/ed5a57332731843ad35a53bd75570a11 to your computer and use it in GitHub Desktop.
Send video from webcam to two destinations via UDP using gstreamer
gst-launch-1.0 v4l2src device=/dev/video0 \
! tee name=t \
! queue \
! decodebin \
! x264enc \
! rtph264pay \
! udpsink host=localhost port=5000 \
t. \
! queue \
! decodebin \
! x264enc \
! rtph264pay \
! udpsink host=localhost port=5001 \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment