Prompt
I need predictable compression settings for web and mobile playback
Latest observation
Nov 1, 2026
OpenAI APIWeb search: off
For predictable playback on web and mobile, aim for widely supported codecs + fixed encoding settings + consistent container choices.
Recommended baseline
Video
- Codec:
H.264 / AVC - Profile:
HighorMain - Level: choose based on resolution/frame rate
- Container:
MP4 - Pixel format:
yuv420p- This is important for broad device compatibility.
Audio
- Codec:
AAC-LC - Sample rate:
48 kHzor44.1 kHz - Channels: stereo
- Bitrate:
128–192 kbps
Suggested encoding settings
For general web/mobile playback
- Resolution: keep source or scale to a standard size like:
- 1920x1080
- 1280x720
- 854x480
- Frame rate: keep constant, usually
30 fpsor24 fps - Bitrate control: use
CRFfor quality consistency, orCBR/target bitrate for predictabilityCRF 18–23is common- Lower = better quality, larger files
- GOP/keyframe interval:
2 secondsis a good default- Example:
60frames at 30 fps
- Example:
If you need very predictable file sizes
Use CBR or constrained VBR instead of CRF.
Example targets:
- 1080p: 5–8 Mbps
- 720p: 2.5–5 Mbps
- 480p: 1–2 Mbps
Example FFmpeg settings
Web/mobile compatible MP4
ffmpeg -i input.mov \
-c:v libx264 -profile:v high -pix_fmt yuv420p \
-preset medium -crf 20 \
-c:a aac -b:a 128k \
-movflags +faststart \
output.mp4
More predictable bitrate
ffmpeg -i input.mov \
-c:v libx264 -profile:v high -pix_fmt yuv420p \
-preset medium -b:v 5M -maxrate 5M -bufsize 10M \
-c:a aac -b:a 128k \
-movflags +faststart \
output.mp4
If you want adaptive web delivery
Create multiple renditions:
- 1080p
- 720p
- 480p
Then package as:
- HLS for broad web/mobile support
- Codec still usually
H.264 + AAC
Avoid if you want maximum compatibility
H.265/HEVCfor general web unless you know target device supportVP9/AV1if you need guaranteed mobile playback across older devices- Variable frame rate, unusual audio sample rates, or non-
yuv420ppixel formats
If you want, I can give you:
- best settings for FFmpeg,
- settings for Premiere/HandBrake, or
- a web + iPhone + Android compatibility preset.