Skip to content

Instantly share code, notes, and snippets.

For anyone else who is looking for an automated solution to convert their 6.7 screen recorded videos to Apple's required 6.5/5.5 dimensions,
here are some recent ffmpeg commands I wrote which helped me:
Note: The instructions below assume you're the on-screen recorder to capture a portrait-mode video
on the iPhone 12 Pro Max ( using the native 888x1920 resolution )
// Convert to 6.5 ( 886x1920 requirement ) using a centered cutout ( by shaving 1 pixel off sides )
ffmpeg -i input_6.7.mov -vf crop=886:1920:1:1 -r 30 -crf 18 output_6.5.mov
// Convert to 5.5 ( 1080x1920 requirement ) using a centered cutout ( by subtracting 128px-height menu bar so we can keep aspect ratio )
# syncroadtrip.py -A convenience script that will generate a split-screen of two synchronized videos
# For more context: http://joeycato.com/articles/reenacted-roadtrips/
import re
import math
import os
from decimal import Decimal
from subprocess import check_output
# Note: This script has only been tested on a Win64 machine