Skip to content

Instantly share code, notes, and snippets.

@trecloux
Created February 7, 2018 16:20
Show Gist options
  • Save trecloux/10b0fc2793c277d752b4a5b54a8026e0 to your computer and use it in GitHub Desktop.
Save trecloux/10b0fc2793c277d752b4a5b54a8026e0 to your computer and use it in GitHub Desktop.
Ch'tiJUG video mixer
ffmpeg -i laptop.mov -i speaker.mov -i background.png -filter_complex "
nullsrc=size=1920x1080 [base];
[0:v] setpts=PTS-STARTPTS, scale=1280x720 [laptop];
[1:v] setpts=PTS-STARTPTS, scale=1280x720, crop=w=640:h=720:x=320:y=0 [speaker];
[2:v] scale=1920x1080 [background];
[base][background] overlay=shortest=0 [base+background];
[base+background][laptop] overlay=shortest=1:y=180 [background+laptop];
[background+laptop][speaker] overlay=shortest=1:x=1280:y=180
" -map 0:a output.mov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment