Skip to content

Instantly share code, notes, and snippets.

@anselmobattisti
Created October 4, 2019 21:37
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anselmobattisti/e1f290faf8225af2e262581edcf48dca to your computer and use it in GitHub Desktop.
Save anselmobattisti/e1f290faf8225af2e262581edcf48dca to your computer and use it in GitHub Desktop.
Combine two videos and place than side by side gstreamer
gst-launch-1.0 \
videomixer name=m sink_1::xpos=50 sink_1::ypos=50 sink_2::xpos=400 sink_2::ypos=50 \
! x264enc \
! rtph264pay \
! udpsink host=localhost port=5000 \
videotestsrc pattern=white \
! video/x-raw, format=I420, framerate=5/1, width=740, height=480 \
! m. \
videotestsrc pattern=red \
! videobox left=100 \
! video/x-raw, format=I420, framerate=5/1, width=300, height=200 \
! queue \
! m. \
videotestsrc pattern=green \
! videobox left=500 \
! video/x-raw, format=I420, framerate=5/1, width=300, height=200 \
! queue \
! m.
@SinaAlisedaghat
Copy link

Good project

@SinaAlisedaghat
Copy link

Nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment