Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Screenshots and app previews for iOS apps on the App Store
App Screenshots:
3 sizes are required for universal apps (iPhone and iPad)
- 5.5in screens: run simulator with "iPhone 6s+" and take screenshots (1242x2208) video=1080x1920
- 6.5in screens: run simulator with "iPhone XR" and take screenshots (1242x2688) video=886x1920
- 12.9in screens: run simulator with "iPad (2nd or 3d generation" and take screenshots (2048×2732) video=1200x1600
App Preview videos:
1 - Record simulator video: xcrun simctl io booted recordVideo in.mp4
2 - Scale correctly and encode at 30fps:
- iPhone 6.5in: ffmpeg -i in.mp4 -acodec copy -crf 12 -r 30 -vf scale=886:1920,setsar=1:1 out.mp4
- iPhone 5.5in: ffmpeg -i in.mp4 -acodec copy -crf 12 -r 30 -vf scale=1080:1920,setsar=1:1 out.mp4
- iPad 2nd/3rd: ffmpeg -i in.mp4 -acodec copy -crf 12 -r 30 -vf scale=1200:1600,setsar=1:1 out.mp4
3 - Add music: ffmpeg -i out.mp4 -i cute.mp3 -shortest -c copy -map 0:v:0 -map 1:a:0 out.mkv
4 - Convert mkv back to mp4: ffmpeg -i out.mkv out.mp4
5 - Make it less than 30 seconds: ffmpeg -i out.mp4 -ss 00:00:03 -t 00:00:29 -async 1 out30.mp4
(-ss is start time, -t is duration, here 29 seconds)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.