Skip to content

Instantly share code, notes, and snippets.

@anselmobattisti
Created October 4, 2019 23:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anselmobattisti/4d8d2107f1a60cc4b44ae6d9af2bdd39 to your computer and use it in GitHub Desktop.
Save anselmobattisti/4d8d2107f1a60cc4b44ae6d9af2bdd39 to your computer and use it in GitHub Desktop.
get two videos from udp src and stream it combined using videomixer and send it using udpsink
gst-launch-1.0 \
videomixer name=m sink_1::xpos=10 sink_1::ypos=10 sink_2::xpos=170 sink_2::ypos=10 \
! x264enc \
! rtph264pay \
! udpsink host=localhost port=5000 \
videotestsrc pattern=white \
! video/x-raw, format=I420, framerate=5/1, width=330, height=170 \
! m. \
udpsrc port=10001 caps = "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96" \
! rtph264depay \
! decodebin \
! videoconvert \
! videoscale \
! video/x-raw,width=150,height=150 \
! queue \
! m. \
udpsrc port=10003 caps = "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96" \
! rtph264depay \
! decodebin \
! videoconvert \
! videoscale \
! video/x-raw,width=150,height=150 \
! queue \
! m.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment