Created
January 21, 2022 14:09
-
-
Save lizell/98ff1e0e09f88ed1bee16bc2a67e25b2 to your computer and use it in GitHub Desktop.
App Store app preview ffmpeg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ffmpeg-app-preview.sh input.mp4 output.mp4 | |
# Keeps aspect ratio and pads with black | |
ffmpeg -i $1 -vf "scale=w=1600:h=1200:force_original_aspect_ratio=1,pad=1600:1200:(ow-iw)/2:(oh-ih)/2,setsar=1" $2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment