Last active
December 11, 2019 02:26
-
-
Save 5lineofcode/ba6fc90ed7628c3acf11a735437c7944 to your computer and use it in GitHub Desktop.
Autoresize Video for AppStore
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
INPUT_VIDEO=app_preview.mov | |
mkdir -p 6.5 | |
mkdir -p 5.5 | |
mkdir -p 12.9 | |
WIDTH=886 | |
HEIGHT=1920 | |
OUTPUT_VIDEO=6.5/app_preview.mov | |
rm -f $OUTPUT_VIDEO | |
ffmpeg -i $INPUT_VIDEO -qscale 0 -r 24 -y -vf scale=$WIDTH:$HEIGHT,setsar=1:1 $OUTPUT_VIDEO | |
WIDTH=1080 | |
HEIGHT=1920 | |
OUTPUT_VIDEO=5.5/app_preview.mov | |
rm -f $OUTPUT_VIDEO | |
ffmpeg -i $INPUT_VIDEO -qscale 0 -r 24 -y -vf scale=$WIDTH:$HEIGHT,setsar=1:1 $OUTPUT_VIDEO | |
WIDTH=1200 | |
HEIGHT=1600 | |
OUTPUT_VIDEO=12.9/app_preview.mov | |
rm -f $OUTPUT_VIDEO | |
ffmpeg -i $INPUT_VIDEO -qscale 0 -r 24 -y -vf scale=$WIDTH:$HEIGHT,setsar=1:1 $OUTPUT_VIDEO |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment