Skip to content

Instantly share code, notes, and snippets.

@5lineofcode
Last active December 11, 2019 02:26
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 5lineofcode/ba6fc90ed7628c3acf11a735437c7944 to your computer and use it in GitHub Desktop.
Save 5lineofcode/ba6fc90ed7628c3acf11a735437c7944 to your computer and use it in GitHub Desktop.
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