Skip to content

Instantly share code, notes, and snippets.

@playerx
Last active August 5, 2025 14:52
Show Gist options
  • Select an option

  • Save playerx/be18c9521097de56be83cc894c9d9d25 to your computer and use it in GitHub Desktop.

Select an option

Save playerx/be18c9521097de56be83cc894c9d9d25 to your computer and use it in GitHub Desktop.
Script for preparing AppStore App Preview video
# for iPhone
ffmpeg -i iphone_video.mp4 -i audio.mp3 \
-t 30 \ # Trim to 30 sec, it's max for app preview videos
-r 30 \ # Frame rate set to 30
-vf scale=886:1920,setsar=1:1 \ # resolution should be 886:1920 if it's portrait
-c:v prores_ks -profile:v 3 -pix_fmt yuv422p10le \ # use AppleProRes format. H.264 format didn't work for me.
iphone_output.mov
# for iPad
ffmpeg -i ipad_video.mp4 -i audio.m4a \
-t 30 \
-r 30 \
-vf scale=1200:1600,setsar=1:1 \
-c:v prores_ks -profile:v 3 -pix_fmt yuv422p10le \
ipad_output.mov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment