Using Codecs and Viewing Video Files

Most video files are compressed to reduce file size. To play them correctly, your computer needs support for the video codec, the audio codec, and the file container.

A codec is the method used to compress and decompress audio or video. A container is the file wrapper that holds the video, audio, subtitles, chapters, and metadata. Common container extensions include .mp4, .mov, .mkv, .webm, .avi, and .m2ts.

For example, an .mp4 file is not automatically “one format.” It may contain H.264 video, H.265/HEVC video, AV1 video, AAC audio, AC-3 audio, subtitles, or other streams. That is why one MP4 file may play everywhere while another MP4 file may fail on the same computer.

Best First Step: Try VLC Media Player

For most users, the simplest fix is to install a modern media player that includes broad codec support instead of installing random codec packs.

How to Identify the Codec in a Video File

If a video still will not play, first identify what is inside the file. Do not guess and do not install codec packs blindly.

Common Video and Audio Codecs

Codec or Format What It Is Typical Use
H.264 / AVC Very common video codec Best general compatibility for computers, phones, browsers, TVs, and sharing
H.265 / HEVC Newer, more efficient video codec 4K video, iPhone video, HDR video, smaller files; may require extra support on some Windows PCs
AV1 Modern high-efficiency video codec Streaming, web video, and newer devices; older computers may play it slowly
VP9 Open video codec widely used online Web video, especially streaming sites
MPEG-2 Older video codec DVDs, broadcast video, and older camera files
AAC Common compressed audio codec MP4 video, phones, streaming, and web video
AC-3 / E-AC-3 Dolby audio formats DVD, Blu-ray, TV recordings, and surround sound files
Opus Modern open audio codec Web video, streaming, voice, and WebM files
FLAC Lossless audio codec High-quality music and archival audio

Best Format for Sharing or Compatibility

If you need a video that plays on the widest range of computers, phones, tablets, TVs, and web browsers, use:

For smaller file sizes or 4K HDR video, H.265/HEVC or AV1 may be better, but compatibility can be more complicated on older PCs and older smart TVs.

Converting a Video File

If a file will not play on a specific device, conversion is often safer than installing system-wide codecs.

Windows 10 and Windows 11 Notes

Windows can play many common media types, but some files may require additional Microsoft extensions or a player with built-in codec support.

macOS Notes

macOS includes built-in support for many modern media files, especially files created by iPhones and iPads. If an HEVC or HEIF file does not open, update macOS first. For maximum compatibility with older devices or non-Apple systems, export or convert the video to MP4 with H.264 video and AAC audio.

Browser Playback

If a video is meant for a website, do not assume every browser supports every codec. For broad compatibility, MP4 with H.264 video and AAC audio is still the safest default. WebM with VP9 or AV1 can be useful for modern browsers, but test it before publishing.

When a Video Does Not Play

Use this checklist before downloading anything:

  1. Try VLC. If VLC plays the file, the file is probably fine.
  2. Check the file with MediaInfo. Look for the video codec, audio codec, bit depth, HDR format, and subtitle format.
  3. Try another copy of the file. Incomplete downloads often cause playback errors.
  4. Update your player and operating system. Old software may not support HEVC, AV1, HDR, or newer subtitle formats.
  5. Check whether the file is DRM-protected. DRM-protected files usually require the official app, browser, or service account. A codec will not fix DRM restrictions.
  6. Convert the file. For compatibility, convert to MP4 with H.264 video and AAC audio.

Common Symptoms and Likely Causes

Problem Likely Cause What to Try
Video plays but there is no sound Unsupported audio codec, wrong audio track, or muted player Check the audio track in VLC; convert audio to AAC if needed
Sound plays but the picture is black Unsupported video codec or GPU decoding problem Try VLC; update graphics drivers; disable hardware decoding in the player
Video stutters or uses 100% CPU 4K, HEVC, AV1, high frame rate, or no hardware acceleration Use a lower-resolution copy, enable hardware decoding, or convert to H.264
Colors look washed out or too dark HDR video displayed on an SDR screen or unsupported HDR metadata Use a player with HDR tone mapping or convert to SDR
Subtitles do not appear Unsupported subtitle format or subtitles are disabled Enable subtitles in the player; convert image-based subtitles if necessary
File will not open at all Corrupt file, incomplete download, DRM, or unsupported container Download again, inspect with MediaInfo, or try another player

Safe Download Rules

Codec downloads have long been abused by malware distributors. Treat “missing codec” pop-ups and unknown codec installers as suspicious.

Recommended Tools

Tool Best For Link
VLC media player Playing most video files without separate codec downloads videolan.org/vlc
MediaInfo Identifying codecs, containers, bitrate, resolution, HDR, and audio tracks mediaarea.net/MediaInfo
HandBrake Converting video files for compatibility handbrake.fr
FFmpeg Advanced command-line conversion, repair attempts, and batch processing ffmpeg.org
ffprobe Command-line inspection of media streams ffmpeg.org/ffprobe.html
OBS Studio Recording your own screen, presentations, camera input, or permitted live streams obsproject.com
VirusTotal Checking suspicious files and URLs before running them virustotal.com

Viewing Video on Phones, Tablets, TVs, and Game Consoles

For the fewest problems across devices, convert the video to MP4 with H.264 video and AAC audio. This is the safest choice for family sharing, USB playback on TVs, older laptops, and many web uploads.

For newer devices, HEVC can provide smaller files and better 4K support, but test playback first. Some TVs, phones, and computers support HEVC only for specific profiles, resolutions, frame rates, audio formats, or HDR types.

Capturing Streaming Video

Do not use random websites or browser extensions that promise to “download any streaming video.” Many are unreliable, violate site terms, or expose users to malware and privacy risks.

Use safe and legal options:

Bottom Line

Do not start by hunting for codecs. Start with VLC. If the file still fails, inspect it with MediaInfo, then decide whether you need a Microsoft Store extension, a player update, a file conversion, or a fresh copy of the file. For sharing, MP4 with H.264 video and AAC audio remains the safest general-purpose choice.