Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Autoresize Video for AppStore
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