Skip to content

Instantly share code, notes, and snippets.

@miguelraz
Created January 21, 2022 04:45
Show Gist options
  • Save miguelraz/34feb3c7766010c7311333b417d7f8cd to your computer and use it in GitHub Desktop.
Save miguelraz/34feb3c7766010c7311333b417d7f8cd to your computer and use it in GitHub Desktop.
ffmpeg -i intro.mp4 -i "Algorithmi.mp4" -filter_complex "[0:v]scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:-1:-1,setsar=1,fps=30,format=yuv420p[v0];
[1:v]scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:-1:-1,setsar=1,fps=30,format=yuv420p[v1];
[v0][0:a][v1][1:a]concat=n=2:v=1:a=1[v][a]" -map "[v]" -map "[a]" -c:v h264_nvenc -c:a aac -movflags +faststart "processed/postervideos/Algorithmi.mp4"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment