Tool
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.
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.