Skip to content

Instantly share code, notes, and snippets.

@allanlei
Created September 7, 2019 06:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save allanlei/2ebc76cdfb4f59b48de1ce4eb03ceb37 to your computer and use it in GitHub Desktop.
Save allanlei/2ebc76cdfb4f59b48de1ce4eb03ceb37 to your computer and use it in GitHub Desktop.
FFmpeg Filtergraph to split inputs (with scaling)
ffmpeg -i source.mp4 -filter_complex \
"[0:v]split=2[360p][720p]; \
[360p]scale=-2:360[360p]; \
[720p]scale=-2:720[720p]" \
-map "[360p]" 360p.mp4 \
-map "[720p]" 720p.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment