What Codec Do I Need for This Video?

You usually cannot answer that from the filename alone. The safest first step is to identify the video and audio streams inside the file, then choose the playback fix that matches what you actually have.

Quick answer

Do not choose a codec from the file extension alone. MP4, MKV, MOV, and AVI are containers that can hold different video and audio codecs. Inspect the file first. If the video stream is HEVC, AV1, H.264, or another codec, and the audio is AAC, AC3, DTS, FLAC, or something else, you can then decide whether Windows already supports it or needs additional playback support.

Check the file with File Inspector

The extension tells you the container, not necessarily the codec

FilenameContainerPossible videoPossible audio
movie.mp4MP4H.264, HEVC, AV1AAC, AC3, EAC3
movie.mkvMatroska / MKVH.264, HEVC, AV1, MPEG-2AAC, AC3, EAC3, DTS, FLAC, TrueHD
clip.movQuickTime / MOVH.264, HEVC, ProResAAC, PCM and others
archive.aviAVIDivX, Xvid, MJPEG, DV and othersMP3, PCM, AC3 and others

If the picture is missing

The video decoder may be missing or unsupported. Common examples include HEVC/H.265, AV1, ProRes, DivX, Xvid, or older specialist codecs.

Video codec not supported →

If the picture works but sound does not

The video stream may already be supported while the audio stream is not. AC3, EAC3, DTS, TrueHD, FLAC, or an output-device issue can be involved.

Audio codec not supported →

How to choose the right next step

1. Inspect the file2. Identify container + streams3. Test a known-good file4. Fix the actual cause
  1. Identify the streams. Check the container, video codec, audio codec, and basic file properties.
  2. Test another file. If ordinary H.264/AAC MP4 files play normally, the player itself is probably working.
  3. Match the symptom. Black video points toward the video path; picture with no sound points toward audio; one broken file can indicate corruption or an incomplete transfer.
  4. Add playback support only when appropriate. A codec pack can help Windows applications that rely on system decoders, but it is not a file-repair tool.

When a codec pack can help

Do not install extra codecs just because one file fails. A single file may be incomplete, damaged, DRM-protected, unusually encoded, or copied before cloud synchronisation finished.

Frequently asked questions

Can I tell which codec I need from the file extension?

No, not reliably. The extension normally identifies the container. Different files with the same extension can use different video and audio codecs.

Is MKV a codec?

No. MKV is a container. An MKV can hold H.264, HEVC, AV1, or other video together with AAC, AC3, DTS, FLAC, subtitles, and metadata.

Do I always need a codec pack if a video will not play?

No. Additional codec support can help when decoding support is missing, but it cannot repair a corrupt file or fix every player, driver, DRM, hardware, or audio-output problem.

Related guides