Why Won't My Video Play? Codecs Explained
You double-click a video and get a black screen, no sound, or an error. The file is rarely broken. More often your player does not understand how it was compressed.
Container versus codec
MP4, MOV and MKV are containers. Inside each is a video stream and an audio stream, each encoded with a codec. A browser might support the container but not the codec inside.
Common causes
- HEVC (H.265) from an iPhone. Safari plays it. Chrome and Firefox support depends on your hardware and operating system.
- ProRes or other professional codecs. Browsers do not play them.
- Unsupported audio. Codecs such as AC-3 or DTS give you picture with no sound.
- MKV files. Support varies, and browsers may not play them.
- Incomplete downloads. The file may have been cut off, so it has no index at the end.
How to fix it
- Try another player such as VLC, which includes its own codecs.
- Try Safari for iPhone HEVC videos.
- Convert to MP4 with H.264 and AAC using HandBrake or FFmpeg.
- On an iPhone, set Settings, Camera, Formats, Most Compatible for future recordings.
- Download the file again if it may be incomplete.
One command that fixes most files
With FFmpeg installed: ffmpeg -i input.mov -c:v libx264 -c:a aac output.mp4