Prompt
How do I convert videos for web and mobile playback compatibility?
Latest observation
Oct 4, 2026
OpenAI APIWeb search: off
To convert videos for web and mobile playback compatibility, you generally want to encode them in a widely supported container + codec combination with sensible bitrate/resolution settings.
Best formats to use
For broad compatibility
- MP4 container
- H.264 video
- AAC audio
This is the safest choice for:
- browsers
- iPhones/iPads
- Android devices
- most smart TVs and media players
For newer, smaller files
- WebM container
- VP9 or AV1 video
- Opus audio
This can be good for modern browsers, but compatibility is not as universal as MP4/H.264.
Recommended settings for web/mobile
Video
- Codec: H.264
- Profile: Main or High
- Level: auto or appropriate for resolution
- Resolution: 720p or 1080p depending on source/needs
- Frame rate: keep original if possible
- Bitrate: around 2–8 Mbps depending on resolution and quality
Audio
- Codec: AAC
- Sample rate: 44.1 kHz or 48 kHz
- Bitrate: 128–192 kbps stereo
Using FFmpeg
FFmpeg is the most common tool for conversion.
Basic MP4 conversion
ffmpeg -i input.mov -c:v libx264 -preset medium -crf 23 -c:a aac -b:a 128k output.mp4
More web-friendly MP4 with fast start
This moves metadata to the beginning so playback can start before the file fully downloads:
ffmpeg -i input.mov -c:v libx264 -preset medium -crf 23 -c:a aac -b:a 128k -movflags +faststart output.mp4
Resize to 720p while preserving aspect ratio
ffmpeg -i input.mov -vf "scale=-2:720" -c:v libx264 -crf 23 -c:a aac -b:a 128k -movflags +faststart output.mp4
For adaptive streaming
If you need smooth playback across different network speeds, convert videos into HLS or DASH:
- HLS is especially common for Apple devices and web streaming
- DASH is widely used on the web
These usually involve:
- splitting video into chunks
- creating playlists/manifest files
- encoding multiple quality levels
Important compatibility tips
- Avoid uncommon codecs like WMV, RMVB, or older MPEG variants for web/mobile
- Keep filenames simple
- Use H.264 + AAC in MP4 if you want the highest chance of working everywhere
- For Safari/iPhone compatibility, MP4/H.264 is especially important
- Ensure the video is progressive scan rather than interlaced if possible
Quick recommendation
If you just want one file that works almost everywhere:
- MP4
- H.264
- AAC
- faststart enabled
If you want, I can also give you:
- a one-line FFmpeg command for your exact source file, or
- a preset conversion recipe for YouTube/web/mobile/social media.
Brands