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.
- Recommended player: VLC media player
- Why use it: VLC is free, open source, available for Windows, macOS, Linux, iOS, and Android, and can play many common formats without separate codec downloads.
- Windows tip: Download VLC from the official VideoLAN website, the Microsoft Store, or a trusted installer service such as Ninite. Avoid download buttons on ad-heavy third-party sites.
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.
- Beginner-friendly: MediaInfo shows the container, video codec, audio codec, resolution, frame rate, bitrate, HDR information, subtitle tracks, and more.
- Built into VLC: Open the file in VLC, then select Tools > Codec Information on Windows or Window > Media Information on macOS.
- Advanced users: ffprobe, included with FFmpeg, can inspect files from the command line.
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:
- Container: MP4
- Video codec: H.264 / AVC
- Audio codec: AAC
- Frame rate: Keep the original frame rate when possible
- Resolution: 1080p is safest for general sharing; 4K is fine for newer devices
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.
- Recommended converter: Online File Viewer, HandBrake
- Good general setting: MP4 container, H.264 video, AAC audio
- For iPhone, iPad, Android, smart TVs, or game consoles: start with a built-in device preset, then test a short sample before converting a large file
- Advanced converter: FFmpeg
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.
- HEVC / H.265 files: Install HEVC Video Extensions from the Microsoft Store if you want HEVC support in Microsoft video apps.
- AV1 files: Install AV1 Video Extension from the Microsoft Store if needed.
- VLC alternative: Use VLC when you do not want to add codecs to Windows system components.
- Codec packs: Avoid them unless you know why you need one. If you must use one, use the official K-Lite Codec Pack site, choose a conservative installation, and avoid unrelated add-ons.
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:
- Try VLC. If VLC plays the file, the file is probably fine.
- Check the file with MediaInfo. Look for the video codec, audio codec, bit depth, HDR format, and subtitle format.
- Try another copy of the file. Incomplete downloads often cause playback errors.
- Update your player and operating system. Old software may not support HEVC, AV1, HDR, or newer subtitle formats.
- 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.
- 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.
- Download players and tools only from official project websites, the Microsoft Store, the Mac App Store, or trusted package managers.
- Do not install a codec because a random website says “this video requires a special codec.”
- Avoid installer bundles, browser extensions, download managers, and “video fixer” utilities from unknown sites.
- Before running an installer from an unfamiliar source, scan it with your security software or upload it to VirusTotal.
- Keep Windows Security, macOS security updates, and your browser up to date.
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:
- Use the official download or offline-viewing feature provided by the video service.
- For videos you own, use the creator dashboard or export feature from the platform.
- For presentations, webinars, training sessions, or live streams where recording is permitted, use OBS Studio.
- For DRM-protected movies, shows, rentals, and subscription videos, use the official app or website. A codec, downloader, or converter will not bypass DRM legally or reliably.
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.