Tool

HEVC/AV1 to H.264 Compatibility Conversion Planner

When HEVC or AV1 video won't play on a TV, an older laptop, a car display or a messaging app, converting it to H.264, the most widely playable codec, is a common fix. Enter the source codec, resolution, frame rate, file size and length, and the tool shows the CRF for your quality target, the expected size at the same quality (as a multiple of our measurements) and VMAF, and an FFmpeg command with the profile and level set. Your file is never uploaded, and the calculation happens only inside this browser.

1. The file you have

The lab's x265 (medium) stands in for the source codec.

The source's overall average bitrate is about 6,667 kbps (including audio).

2. Playback device and quality target

H.264 profile

The lab used x264's default settings, and x264 is known to use the High profile when none is specified. We did not measure the size or quality difference when restricted to Main.

Quality target (VMAF)

VMAF scores how similar a video is to its reference on a 0 to 100 scale. Here the “reference” is the near-lossless master of each lab clip, not your HEVC or AV1 file.

Loading the lab data…

3. Estimated result (from our measurements)

Loading…

Note: this ratio compares first-generation encodes of a clean source with each codec. We did not measure the generation loss of re-compressing an already compressed HEVC or AV1 file, so the resulting quality is the same as or worse than the source and the actual size can differ.

4. Output level and FFmpeg command

1080p (1920×1080) at 30 fps needs H.264 level 4.0 or higher (calculated from the spec's per-second and per-frame macroblock limits).

Audio

Copying can fail with audio formats MP4 doesn't support (for example some DTS and TrueHD), so converting to AAC is the safer choice when compatibility is the goal.

ffmpeg -i input.mkv -c:v libx264 -preset medium -crf 23 -profile:v high -level 4.0 -pix_fmt yuv420p -c:a aac -b:a 160k -movflags +faststart output_h264.mp4
  • -c:v libx264 -preset medium -crf 23 — the same encoder and preset as the lab.
  • -profile:v high -level 4.0 — set so the output stays within the profile and level your player allows.
  • -pix_fmt yuv420p — forces 8-bit 4:2:0, which most devices can play.
  • -movflags +faststart — puts the playback info at the start of the file so it can start right away on the web and in some players.

The ratios are read from the CRF lab data (1080p25, four 10-second clips, x264 and x265 at medium, SVT-AV1 at preset 6). All calculations happen inside this browser and nothing is sent.

How is it calculated?

In the size and quality by CRF lab test, we encoded four clips with x264, x265 and SVT-AV1 at six CRF steps each and measured VMAF. The tool first reads, for each clip, the x264 CRF that reaches your target VMAF, and uses the integer that fits the most demanding clip as the recommended CRF. It then reads the VMAF and bitrate x264 produced at that CRF, finds the bitrate x265 (or SVT-AV1) needed to reach the same VMAF, and takes the ratio of the two as the multiplier. The multiplier times the source size you entered is the estimated size. Because the value differs by clip, it is shown per clip and as a minimum-to-maximum range.

The level is not measured; it is calculated from the H.264 spec's limits (macroblocks per second and per frame). For example, 1080p30 comes out as level 4.0 or higher (4.0 and 4.1 have the same limits here), and 4K30 needs level 5.1 or higher.

How to read the result

  • If the multiplier is above 1, the file gets bigger at the same quality. Converting HEVC or AV1 to H.264 for compatibility usually lands here. Check the table to see how much it varies by clip: the multiplier differs a lot depending on the kind of video.
  • The VMAF column is the quality of encoding a “clean source” at this CRF. Your file has already been compressed once, so it loses a little more on top of that quality.
  • Try changing the CRF yourself. Lowering the value raises both the VMAF and the multiplier. If you have a size cap, raise the CRF until it fits, then see how far the VMAF drops.

How to use it

Limitations worth knowing

  • The multiplier compares first-generation encodes of a clean source with each codec. We did not measure the generation loss of re-compressing an already compressed file to H.264. To make it look the same, you may need a lower CRF, and then the size will be larger than this tool's value.
  • The lab data is from four 10-second 1080p25 clips, 8-bit, on one PC, with x264 and x265 at medium and SVT-AV1 at preset 6. The resolution and fps you enter are used only for the level calculation, not for the multiplier. For 4K, 60 fps, HDR or 10-bit, the multiplier may be different.
  • HEVC or AV1 made by a camera, a smartphone or a GPU hardware encoder may be less efficient than x265 or SVT-AV1, so the real multiplier may be smaller than the table.
  • The estimated size is the multiplier times the whole source file size, so it assumes audio and subtitles change by the same ratio. If you copy the audio, that part neither shrinks nor grows.
  • The difference between the High and Main profiles, Baseline, and what each device actually supports (for example, which level a particular TV handles) are not in the data. Follow the supported specs in your device's manual. For speed (encoding time), estimate it separately with the Encode Time Estimator.