Skip to content

Instantly share code, notes, and snippets.

@Erkaman
Created June 8, 2018 07:26
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Erkaman/d0c5874d57ab6d7b2ec70e9736761052 to your computer and use it in GitHub Desktop.
Save Erkaman/d0c5874d57ab6d7b2ec70e9736761052 to your computer and use it in GitHub Desktop.
example script, that uses ffmpeg to make a video that shows three videos side by side
# Example video made by this script: https://twitter.com/erkaman2/status/990873258416361472
ffmpeg \
-y \
-i vid1.mp4 \
-i vid2.mp4 \
-i vid3.mp4 \
-filter_complex '[0:v]pad=iw*3:ih[int];[int][1:v]overlay=W*0.33:0[temp];[temp][2:v]overlay=W*0.66:0[vid]' \
-map [vid] \
-c:v libx264 \
-b:v 50M \
output.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment