H.264, H.265, VP9 or AV1: which video codec should you choose after downloading?

You downloaded a video, but your phone, computer, or TV refuses to play it? The problem isn't necessarily the file extension. A video can be named "video.mp4" while using a codec the device can't decode.

H.264, H.265, VP9 and AV1 are among the most common video codecs today. They all share the same goal: reducing the amount of data needed to store and transmit a video while maintaining satisfactory image quality. However, they do not all offer the same level of compression, the same speed, or the same compatibility.

The choice of codec can determine file size, image quality, battery consumption, playback smoothness, and whether the video can be viewed on an older device.

Here's how to distinguish the main codecs and choose the one that best matches your use.

What is a video codec?

The term codec comes from the contraction of the words "encoder" and "decoder." When creating or converting a video, the codec encodes the images to reduce the file size. During playback, the device must perform the reverse operation to display the images.

A raw video would take up a huge amount of space. The codec therefore analyzes successive frames and avoids storing elements that change little more than once. It can also simplify certain visual details to achieve greater compression.

The more efficient the codec, the more it can produce a smaller file at comparable visual quality. However, a newer codec sometimes requires more processing power and may not be supported by older phones, TVs, or software.

Codec and container: what's the difference?

The codec should not be confused with the container. MP4, MKV, MOV, WEBM and AVI are primarily containers. They bundle different elements into a single file:

  • A video track.
  • One or more audio tracks.
  • Subtitles.
  • Chapters.
  • Metadata.
  • Sometimes multiple angles or versions of the content.

The codec defines how the video track is compressed. An MP4 file can therefore contain H.264, H.265 or AV1 video. Two files with the same extension can behave differently on the same device.

To better understand containers, see our comparison of formats MP4, MOV, WEBM and AVI.

H.264: the best choice for compatibility

H.264, also known as AVC, is one of the most widely recognized codecs. It can be played by the vast majority of computers, phones, tablets, browsers, consoles, media players and TVs, both recent and relatively old.

Its main advantage is compatibility. When a video needs to work on as many devices as possible, the MP4 container with H.264 and AAC is generally the safest choice.

Advantages of H.264

  • Very broad hardware and software compatibility.
  • Smooth playback on many older devices.
  • Encoding is generally fast.
  • Good balance between quality and file size.
  • Frequently supported by editing software.
  • Suitable for Full HD and many online uses.

The limitations of H.264

  • Compression is less efficient than newer codecs.
  • Files may be larger in 4K.
  • Less suitable for archiving large quantities of high-definition video.
  • Quality is harder to maintain when the bitrate becomes very low.

H.264 is still recommended for sending a video to others, playing it on a Smart TV, embedding it in a presentation, or avoiding compatibility issues.

H.265 or HEVC: better compression for 4K

H.265, also called HEVC, succeeds H.264. It was designed to compress videos more efficiently, especially high-resolution ones.

At comparable visual quality, an H.265 file is generally smaller than an H.264 version. The exact result depends on the content, encoder settings, and bitrate used.

This codec is particularly useful for:

  • 4K videos.
  • HDR videos.
  • Personal archiving.
  • Recent devices.
  • Large video libraries.
  • Files that should retain good quality while keeping a small file size.

Advantages of H.265

  • More efficient compression than H.264.
  • Well suited for 4K and HDR videos.
  • Possible reduction in storage space.
  • Good quality with a reasonable bitrate.
  • Hardware decoding is available on many recent devices.

Limitations of H.265

  • Reduced compatibility on older devices.
  • Longer encoding time than H.264.
  • More demanding playback without hardware acceleration.
  • Support may be incomplete in some browsers.
  • A codec or additional extension may sometimes be required on a computer.

If an HEVC video refuses to open, don’t immediately conclude the file is corrupted. The player or the system may simply lack the required decoder.

VP9: a codec designed for web video

VP9 is an open codec developed as part of the WebM project. It is frequently paired with the WEBM container and used for online video streaming.

It offers efficient compression and can support high-definition and 4K videos, and in some cases HDR. It's particularly suitable for use in browsers and environments that are compatible with WebM.

Advantages of VP9

  • Open codec usable in the WebM ecosystem.
  • Good compression efficiency.
  • Suitable for online video streaming.
  • Supported by many browsers.
  • Compatible with high definition and 4K.

Limitations of VP9

  • Variable compatibility with editing software.
  • Playback may be unreliable on some older TVs.
  • Encoding may be slower than H.264.
  • Less convenient for devices that prefer the MP4 container.

VP9 can be a good choice for publishing or storing a video intended primarily for web use. For direct sharing with users on varied devices, H.264 often remains simpler.

AV1: a modern codec for reducing video file size

AV1 is an open codec developed by the Alliance for Open Media. It was designed to provide efficient compression, particularly for high-resolution content and online streaming.

The codec supports modern use cases such as 4K, 8K and HDR. With comparable settings, it can produce smaller files while maintaining good image quality.

The advantages of AV1

  • Particularly efficient compression.
  • Open codec.
  • Suitable for high-resolution video.
  • Useful for reducing bandwidth.
  • A good option for archiving when devices are compatible.
  • Growing adoption in recent browsers and devices.

The limits of AV1

  • Encoding is often slower.
  • Difficult playback on some older devices.
  • Software decoding can sometimes be demanding on the CPU.
  • Incomplete support in some editing software.
  • Lack of hardware decoding on older phones or TVs.

AV1 is useful when file size is a priority and the video will be played on recent devices. It is less appropriate when immediate universal compatibility is required.

H.264, H.265, VP9, or AV1: which produces the smallest file?

There is no single valid answer for all videos. The file size also depends on:

  • Resolution.
  • The frame rate.
  • Video bitrate.
  • Duration.
  • Movement level.
  • Noise present in the image.
  • Codec profile.
  • The quality specified during encoding.

At comparable visual settings, newer codecs like H.265 and AV1 can generally produce smaller files than H.264. However, poor configuration can negate this advantage.

Reducing the bitrate too much will cause a loss of detail, soft edges, and blocking in motion scenes. The best codec cannot compensate for a bitrate that is far too low.

If your goal is only to save space, see our method for reduce the size of an MP4 video without losing too much quality.

Which codec should you choose for an Android phone?

Most Android phones play H.264 without issues. Recent models may also support H.265, VP9, and AV1 thanks to their graphics chip.

For maximum compatibility across different Android phones, choose:

  • An MP4 file.
  • An H.264 video.
  • An AAC audio track.
  • Full HD resolution if 4K isn't necessary.

For your own recent phone, H.265 or AV1 can reduce file size. However, check that hardware decoding is available, because playback that relies solely on the CPU may drain more battery.

Which codec should you choose for an iPhone, iPad, or Mac?

H.264 remains the safest choice for sharing a video across different models of iPhone, iPad, and Mac. Recent Apple devices also support H.265, notably for high-definition and HDR video.

The choice therefore depends on the recipient:

  • H.264 for a video intended for multiple devices.
  • H.265 to reduce file size on newer devices.
  • AV1 only after checking hardware and software compatibility.

If you can't find the file after downloading it, consult our guide explaining where to find downloaded files on iPhone and Android.

Which codec should you choose for a Smart TV?

For a TV, compatibility should take precedence over compression. A very small file is useless if the TV won't play it.

The safest choice is generally MP4 with H.264 video and AAC audio. H.265 is suitable for recent TVs, especially for 4K. VP9 and AV1 depend more on the model and year of manufacture.

  • Refer to the TV manual.
  • Check the codecs supported by the USB player.
  • Control the maximum resolution.
  • Check compatible profiles and levels.
  • Test a short sample before converting a large collection.

Our guide also explains how play a downloaded video on a Smart TV with a USB drive, HDMI, or wireless casting.

Which codec should you choose for WhatsApp and social media?

To send a video or publish it on different platforms, H.264 remains the most universal choice. It reduces the risk of rejection, black screens, or unpredictable conversion.

Preferably use:

  • The MP4 container.
  • The H.264 video codec.
  • The AAC audio codec.
  • A standard frame rate.
  • A resolution appropriate for the platform.

Social networks generally recompress uploaded videos. Uploading a very large file therefore doesn’t guarantee better quality after publication.

For direct sending, also see how to send a video on WhatsApp in HD without it becoming blurry.

Which codec should you choose for video editing?

A codec that's very efficient for streaming isn't always the easiest to use during editing. H.265 and AV1 require more processing power to decode frames, especially if the computer lacks compatible hardware acceleration.

On a low-powered machine, an H.264 video may play more smoothly in the timeline. For a heavy project, the editing software can create proxy files that are easier to handle.

  • H.264 for simple editing and broad compatibility.
  • H.265 for 4K footage when the hardware supports it.
  • VP9 for some web projects.
  • Prefer AV1 for final delivery rather than for editing on an older computer.

Always test before converting all your files. Some software may import the video but reject the audio or produce choppy playback.

Why does a video become choppy with a recent codec?

A video can be perfectly intact yet difficult to play back smoothly. The CPU or GPU must decode each frame fast enough to maintain the intended frame rate.

Stuttering may be related to:

  • A processor that is too old.
  • Lack of hardware decoding.
  • High 4K or 8K resolution.
  • A frame rate of 60 frames per second or higher.
  • A particularly high bitrate.
  • An outdated media player.
  • External storage that is too slow.

Before converting the video, try another player, update the system and check CPU usage. If the problem persists, convert the file to H.264 or reduce its resolution.

Find all the checks in our guide dedicated to a downloaded video that stutters or freezes.

Why won't an H.265 or AV1 video open?

The file may use a codec not present on the system or a profile not supported by the device. The player sometimes recognizes the container but cannot decode the video track.

The most common symptoms are:

  • A black screen with audio.
  • A message indicating that the codec is missing.
  • Visible thumbnail, but playback impossible.
  • Green or distorted images.
  • Extremely slow playback.
  • Player closing suddenly.

Start by testing the video with an up-to-date player. If it works on another device, the file is probably not corrupted. You can then legally install the required component or convert a copy to H.264.

Follow our complete procedure when a downloaded video cannot be played and must be converted.

The image works, but why is the audio missing?

The video codec and the audio codec are independent. Your device may decode H.264 while rejecting the format used for the audio track.

The most common audio codecs include AAC, MP3, Opus, AC-3, and E-AC-3. Their compatibility varies depending on the container, the system, and the playback device.

For general compatibility, MP4 with H.264 and AAC remains a common combination. If the visual is already fine, you may be able to convert only the audio track to avoid recompressing the video.

Consult our diagnostic when a downloaded video has no sound.

How can I find out which codec a video uses?

The file extension is not enough. To identify the codec, open the file's detailed properties or use the technical information provided by your media player.

Look for the following:

  • AVC or H.264.
  • HEVC or H.265.
  • VP9.
  • AV1 or AV01.
  • Resolution.
  • Frame rate.
  • Video bitrate.
  • The audio codec.

This information helps explain why a video works on a recent computer but not on an older TV or phone.

Should you always convert a downloaded video?

No. Any lossy conversion can slightly degrade the image. It also takes time and can increase the file size when settings are poorly chosen.

Keep the original file if:

  • It plays correctly on your devices.
  • Its size remains reasonable.
  • You want to edit it later.
  • It is your best available copy.

Consider converting if:

  • The file doesn't open on the target device.
  • The video constantly stutters.
  • The codec is not supported by the software.
  • The file size exceeds available storage.
  • You need to send the file to multiple people.
  • The TV doesn't recognize the codec.

Always convert a copy and keep the original until the new file has been fully verified.

Which codec should you choose based on your priority?

For maximum compatibility

Choose H.264 in an MP4 container with an AAC audio track. This combination is generally the best choice for sharing, presenting, or playing a video on different devices.

For a lighter 4K video

Choose H.265 if the devices being used are recent enough. Check compatibility before deleting the original file.

For primarily web use

VP9 in a WebM container can be a good choice, especially when the browser and the platform properly support this format.

For modern and efficient compression

AV1 is useful for recent devices, high resolutions, and reducing bandwidth. However, encoding can take longer.

For an older computer or TV

Prefer H.264 and a reasonable resolution. A newer codec may cause stuttering or be completely rejected.

Frequently asked questions about video codecs

Are H.264 and MP4 the same thing?

No. H.264 is a video codec, whereas MP4 is a container that can hold H.264, H.265, or video encoded with another compatible codec.

Does H.265 still offer better quality?

Not automatically. The result depends on bitrate, settings, the source, and the encoder. Its main advantage is more efficient compression.

Which codec is most compatible?

H.264 is generally still the safest codec to ensure playback across a wide range of devices and software.

Which codec is the lightest?

AV1 and H.265 can produce smaller files than H.264 at comparable quality, but the result depends heavily on the settings used.

Why is my computer asking for an HEVC codec?

The video track is probably encoded in H.265. The system or player doesn’t have the required decoder, even if the MP4 container is recognized.

Does AV1 work on all phones?

No. Recent devices increasingly support it, but older models may not play it or may use software decoding that's less smooth.

Does changing the extension change the codec?

No. Renaming a WEBM file to MP4 does not convert either the container or the codec. A true conversion requires software capable of decoding and then re-encoding the video.

Conclusion

The best video codec depends on your priority. H.264 remains the safest option for sharing a file and ensuring broad compatibility. H.265 is particularly useful for 4K videos and archiving on recent devices. VP9 is well suited to web use, while AV1 offers modern compression suited to high resolution.

Before converting a video, identify its codec, container, resolution and the audio codec used. Then test the file on the destination device. This check prevents unnecessary conversion and loss of quality.

For a universal solution, use an MP4 file containing H.264 video and an AAC audio track. To reduce size further, choose H.265 or AV1 only when all target devices are compatible.