When you shrink the videos piling up on an external drive for archiving, it is hard to know “what CRF will make everything fit on this disk.” Enter your video list (duration, resolution) and the free space you have for the results, and the tool finds the lowest CRF that fits the budget for each codec and preset on our measured curves, together with the expected VMAF and the total encoding time. All calculation happens inside this browser.
1. Videos to archive
Durations can be written as 1:32:10 (h:m:s), 45:30 (m:s), 90m, 1h30m or 5400s. Resolution can be 1920x1080, 1080p or 4k, fps as 30fps, and several files of the same format as x12. It is safer to leave file names out. You can also paste several ffprobe outputs (Duration: … Video: …). Lines starting with # are skipped.
Read 6 videos, total duration 4.7 hours (4 lines used the defaults because no resolution or fps was given)
2. Disk and footage type
1 GB is counted as 1000 MB. Windows Explorer shows 1024-based units (GiB), so a disk shown there as '931 GB' is about 1000 GB here. If you want to keep the output on the same disk before deleting the originals, enter the free space available right now, without counting the space the originals occupy.
Budget used in the calculation: 450 GB
Which is your footage closer to?
The CRF that fits the budget is found based on the average of the 4 clips. The same CRF gives very different file sizes depending on the footage (see the ranges in the table below), so if you are unsure, check with 'Demanding footage' too.
3. Codec and CRF that fit the budget (measured)
Loading…
4. The other way round: size needed for each target quality
Enter the video list to see results.
The measurements are 1080p25, four 10-second clips, 8-bit, one PC (4 threads, IDLE priority). Resolutions other than 1080p and videos other than 25 fps are converted on the assumption that size scales with the same bits per pixel, and were not measured directly. All calculation happens inside this browser, and nothing you enter is sent anywhere.
Steps
Write the videos you want to archive, one per line. Examples: 1:32:10 1080p, 0:12:05 2160p x3 (three 4K videos, each 12 minutes 5 seconds long). If you have hundreds of files, group the ones with the same duration and format and add xCount. You can also paste several ffprobe outputs one after another; the tool reads the Duration: and Video: lines.
Enter the free space available for the output files and a safety margin. If you plan to delete the originals only after encoding is finished, enter the space that is empty right now, not the space the originals already occupy.
Choose whether your footage is ‘easy’ (simple, like scenery or indoor scenes) or ‘demanding’ (complex, like water ripples or foliage). If you do not know, start with ‘Average’ and check with ‘Demanding footage’ as well.
Pick the codec and CRF you like from table 3. For a script that covers a whole folder, build one with the batch folder encode script builder. Before running everything, we recommend encoding one or two representative files first and measuring the actual size.
How is it calculated?
Data: the raw data of our measurement of encoding one hour of 1080p video. We encoded four 10-second 1080p25 clips at three CRF levels per codec and preset, and measured bitrate, VMAF and elapsed time. The measurements were taken on a single AMD Ryzen 5 PRO 4650G (6 cores, 12 threads) with FFmpeg 9.0.2 (gyan.dev full_build), using 4 threads per job at IDLE priority.
Size: for each integer CRF, the tool reads each clip’s bitrate between the measured points (interpolating the bitrate on a log scale) and adds up bitrate × duration for every video. If the resolution is not 1080p, size is taken to scale with pixel count, and if fps is not 25, with fps. For example, 720p is 0.44 times the pixel count of 1080p, and 4K is 4 times. This conversion is an assumption, not a measurement.
Finding the CRF: within the measured CRF range, the tool starts at the lowest value and goes up, and picks the first integer that fits the budget. Since a lower CRF means higher quality, this is ‘the highest quality you can get within the budget.’ It does not extrapolate outside the measured range, so if it fits even at the lowest CRF it shows “Fits even at the lowest measured CRF,” and if it does not fit even at the highest CRF it shows “Over budget.”
Total encoding time: total frame count × pixel-count ratio × measured time per frame (average of the 4 clips). If you enter a speed factor, the time is divided by it. Time is also assumed to scale with resolution.
VMAF is a 0–100 score of how similar the encoded result is to the original. The range in the table is the lowest to highest read from the 4 clips at each CRF, so the score can differ a lot between clips even at the same CRF.
Example: check it yourself with the numbers in the table
In the measured CSV, the per-clip bitrates for x264 medium CRF 26 are 3322.0, 3142.9, 14654.1 and 2954.7 kbps. One hour of video (3600 seconds) is bitrate × 3600 ÷ 8000 MB, so that is about 1.5, 1.4, 6.6 and 1.3 GB per clip, and about 2.7 GB for the 4-clip average (6018.4 kbps). In the same way, x265 medium CRF 28 has per-clip bitrates of 2481.5, 1873.7, 9535.6 and 1644.7 kbps, which is about 1.1, 0.8, 4.3 and 0.7 GB per hour and about 1.7 GB on average. Even for the same hour of 1080p25 video, the size can differ by up to about 5 to 6 times depending on the clip, which is why the tool shows the ‘easy to demanding’ range separately. (These two lines use different CRFs, so the quality is not the same; this is not a comparison for deciding which codec is better.)
How to read the result
The criterion is whether the bold total size fits the budget; the range in the small text below it is from the easiest to the most demanding footage. If the upper end of the range goes over the budget, the tool shows “Over budget if the footage is demanding.” If many of your videos have complex scenes (water ripples, leaves, crowds, snowstorms and so on), leave more headroom.
If a clip’s VMAF shows below 90, it is a sign that at that CRF the quality of some footage may be too low for archiving. This threshold matches the other tools on this site, which treat 90 as ‘phone / general’ and 95 as ‘archival’; how big a difference people actually see depends on the footage and the screen. The VMAF score interpreter shows what each score range looks like.
Table 4 is the other way round: “how much total space do I need if I aim for VMAF 95, 90 or 80?” Table 3 is “the quality that fits this disk”, while table 4 is “the disk needed for the quality I want”, so use it when deciding whether to buy a new disk.
The setting with the highest expected average VMAF is the one with the highest average score within the same budget, and the setting with the shortest time is the one with the shortest total encoding time. If they differ (they usually do), you are trading time against size, so check the time column carefully when you have many videos. The time difference between codecs and presets at the same quality is covered in detail in the encoding time measurement.
How to use it
Cleaning up an external drive: add up the durations per folder and write one line each (12:30:00 1080p), and you can pick a different CRF for each folder. The ffprobe command for summing durations is in the description of the batch encode script tool.
When time is the problem: if the total comes out as several days, compare presets with the encode time estimator, and enter the ratio between your PC and the test PC as the speed factor (for example, 1.5 if your PC is 1.5 times faster).
Checking quality: after encoding a representative file with the CRF you chose, compare it with the original by eye using the quality comparison slider.
Limitations to keep in mind
This is a measurement of four 10-second clips, 8-bit, on one PC. Because the bitrates of the 4 clips differ so much (see the example above), the real size of your footage can fall outside the ‘easy to demanding’ range. Always measure a representative file first.
The resolution and fps conversions are assumptions. The measurements are only 1080p25, so 720p, 4K and 30/60 fps are calculated as scaling with pixel count and frame count and were not measured directly. At a different resolution, quality at the same bits per pixel can differ.
Speed is for reference only. It was measured with 4 threads per job at IDLE priority, and it changes when other work overlaps. A different core count or running several files at once changes the total time, and the ratios between codecs can also differ on other CPUs.
Re-compressing files that are already compressed was not measured. The measurements are first-time encodes from clean originals, so a file that is already at a low bitrate may not shrink, or may even grow, when re-encoded at the same CRF. In that case the re-encode-came-out-bigger diagnoser can help. The VMAF in this tool is relative to a clean original, not to an already compressed source.
Only the measured codecs and presets are covered (x264 medium/slow, x265 medium, SVT-AV1 preset 8/4). Hardware encoders (NVENC, QSV, AMF), VP9 and VVC are not included in this tool. Audio, subtitles, chapters and container overhead are not included, so add them separately with the audio bitrate tool.
Converting HDR or 10-bit originals to 8-bit changes their quality characteristics, so do not delete originals that are valuable to keep; clean up only after you have checked the results thoroughly. This tool neither reads nor deletes your files.