Skip to content

Create app preview video

merlos edited this page Jan 12, 2025 · 2 revisions

How to create the app preview video:

Step 1:

Record a video using Simulator recording feature or commandline

xcrun simctl io booted recordVideo preview.mp4

Or just click Command + R in the

Step 2:

You can run the following command to resize the videos to the required resolution

ffmpeg -i preview.mp4 -vf scale=886x1920,fps=25 -aspect:v 886:1920 preview_fix_resolution.mp4
ffmpeg -f lavfi -i anullsrc=channel_layout=stereo:sample_rate=44100 -i preview_fix_resolution.mp4 -c:v copy -c:a aac -shortest preview_final.mp4

The first command is to convert a video to 887x1920 (required for 6.5” devices). The second command is to fix the audio codec so that App Store Connect will accept our video.

Done, now you can upload the preview_final.mp4 video to the App Store without any problem.

I created this script

#!/bin/zsh

# Install ffmpeg
# brew install ffmpeg
#
# Usage
#
# ./app_preview.sh preview.mp4

ffmpeg -i $1 -vf scale=886x1920,fps=25 -aspect:v 886:1920 resolution-$1
ffmpeg -f lavfi -i anullsrc=channel_layout=stereo:sample_rate=44100 -i resolution-$1 -c:v copy -c:a aac -shortest final-$1

Sources: https://antran.app/2021/app_preview/ https://stackoverflow.com/questions/12368151/adding-silent-audio-in-ffmpeg/12375018#12375018

Clone this wiki locally