Tool

Windows Right-Click ‘Compress Video’ Menu Builder

If typing a command or opening a program every time you shrink a video is a hassle, you can build a menu that compresses a file as soon as you right-click it or send it with ‘Send to’. Pick a purpose, and the tool reads the CRF that matches the target quality from the data we measured and puts it in compress.bat. It also generates a .reg that installs the menu and a second .reg that removes it.

1. Purpose and codec

The purpose only sets the target quality (VMAF). This one is a balanced setting. Actual chat-app size limits differ by service, and this tool does not know them.

H.264 plays almost anywhere. HEVC makes a smaller file at the same quality, but the receiving device or app may not be able to open it.

Audio

With “copy”, a file can fail if its audio codec cannot go into MP4. Audio was not measured.

Loading measured data…

3. Install location and menu name

4. Get the files

Set a CRF (if the target quality is outside the measured range, enter one yourself).

All calculation and file generation happen only inside this browser; folder names and files are not sent anywhere. This tool only creates files; it does not install or run them. Speeds in our measurements were taken with 4 threads per job at IDLE priority, so treat them as a reference only.

What does it create?

  • compress.bat: a batch file that takes video file paths and shrinks them with ffmpeg. It leaves the original alone and creates name_compressed.mp4 in the same folder. If it receives several files, it processes them one after another, and it skips any file whose result already exists.
  • Install .reg: adds an entry to the right-click menu of files with the extensions you specify. It writes only to the current user’s area (HKEY_CURRENT_USER), so it is known not to need administrator rights.
  • Uninstall .reg: deletes the keys the install .reg created. The - in front of a key name is the ‘delete’ marker. Delete the compress.bat file and its folder yourself.

Installation steps

  1. First, check that ffmpeg is ready. Run the commands below in Command Prompt; if a version and a location are printed, you are set. If you see ‘not recognized as an internal or external command’, the folder that holds ffmpeg.exe is not on PATH.
ffmpeg -version
where ffmpeg
  1. In the tool above, choose the purpose, codec and install folder, then save compress.bat. Create the install folder shown (default C:\codec-lab-menu) and put the file in it. If you change the folder, download the .reg again.
  2. To use it from the right-click menu, double-click the install .reg and merge it by answering ‘Yes’. Now the menu entry appears when you right-click a video file. On Windows 11 it is known not to appear in the default right-click menu; you have to click ‘Show more options’ (Shift+F10 also works).
  3. To use it from ‘Send to’, type shell:sendto into Win+R, copy compress.bat into the folder that opens, and rename it to something like ‘Compress video’ (a shortcut works too). Then you can use it with right-click → Send to → ‘Compress video’. This is simpler if you would rather not touch the registry.
  4. The easiest way: dragging a file onto the compress.bat icon runs the same process.
  5. For your first run, try one short video and play the result before relying on it.

How was the CRF chosen?

  • Data: the raw data from our measurement of encoding time for an hour of 1080p video. We encoded four 10-second 1080p25 clips at three CRF values per codec and preset, and measured bitrate and VMAF. This tool uses only the medium preset of x264 and x265.
  • How it is read: for each clip, the points between measurements are joined with straight lines, and the CRF that corresponds to the target VMAF (chat apps 80, general 90, archive 95) is read off. Of the four, the lowest value (set by the most demanding clip) is rounded down to an integer. That is why easier videos end up with a higher VMAF than the target. You can see the relationship between CRF and VMAF in finer steps in the CRF sweep measurement.
  • Size summary: the bitrate and size range in the middle box of the tool is the per-clip value read at the same CRF, multiplied by the length. It is wide because the clips differ a lot. Audio and container size are not included.
  • This is not a quality guarantee: it is a baseline read from four clips, so it does not mean your video will get the same score. For an important video, compare it yourself with the quality comparison slider, and enter a different value in the CRF box if needed.

What compress.bat does

  • ffmpeg check: at startup it checks PATH with where ffmpeg, and if ffmpeg is missing it prints a message and stops. If an error message looks unfamiliar, try the FFmpeg error log explainer; to see whether your ffmpeg includes x265, use the FFmpeg build capability checker.
  • Keeping an interrupted file from being mistaken for a finished one: during conversion it writes to a temporary .part.mp4 name, and renames it to the final name only when ffmpeg succeeds. If it fails, the temporary file is deleted.
  • Size summary when finished: it prints one line, “original ○ MB → result ○ MB (○% of the original)”. The calculation is done in PowerShell because arithmetic in a batch file itself gives wrong results above 2 GB.
  • What it keeps: only the first video stream and all audio streams; subtitles are not included. -pix_fmt yuv420p forces 8-bit 4:2:0, so a 10-bit source becomes 8-bit. For HEVC it adds -tag:v hvc1 for compatibility with Apple devices. If you need finer settings, use the FFmpeg command builder.
  • If you want to shrink a whole folder at once, the batch folder encode script fits better than this approach. This tool is tuned for picking files and shrinking them right away.

Limits worth knowing

  • This tool only creates files; it does not install or run them, and we could not test the generated files on every Windows environment. Behavior may differ with the Windows version, non-ASCII characters, spaces or special characters in the path, and security software settings. These files change the registry, so read the contents once before merging. What is shown in the boxes above is exactly what gets saved.
  • If you select several files and right-click, a separate window is known to open for each file, so for bulk jobs ‘Send to’ or drag and drop is better. We did not verify this behavior ourselves. If several windows open and ffmpeg runs concurrently, your PC can slow down.
  • If a file name contains %, the batch file may misread the name. The install folder name is blocked from containing %. Characters such as & in file names are handled by wrapping them in quotes, but we did not test every case.
  • The measurements are four 10-second clips, 8-bit, on one PC. Speeds were measured with 4 threads per job at IDLE priority, so treat them as a reference. Hardware encoders (NVENC, QSV, AMF) and per-resolution CRF were not measured. 4K, vertical video and HDR are not specially adjusted. If your video is HDR, look at the HDR10 metadata-preserving encode helper first.
  • Chat-app size limits are not built in. Limits differ by service and can change, so check the expected size in the middle box of the tool and adjust it yourself. For fitting a size limit, the bitrate and file size calculator is a better fit.
  • Subtitles and chapters are not included, and we did not check whether metadata is preserved. The original is not touched, but it is not deleted either, so clean up yourself after checking the result.