VIDEO TOOL

Video Compressor

Compress MP4 video in your browser with WebAssembly FFmpeg.

The media engine runs in your browser. Its WebAssembly core is loaded on demand from a public CDN.

About Video Compressor

This tool shrinks an MP4 by re-encoding it with FFmpeg compiled to WebAssembly, which runs inside your browser tab. You choose the file, press Compress video, and when the run finishes your browser saves the result as eldosa-compressed-video.mp4. The original is not changed, and nothing about your video is sent to a conversion server.

The settings are fixed and visible in the code. Video is encoded with the H.264 codec at constant rate factor 30 using the veryfast preset, and audio is encoded as AAC at 96 kbps. A higher rate factor means lower quality and a smaller file, and 30 is a fairly strong squeeze, noticeable on detailed footage. The veryfast preset favors encoding speed over squeezing out every last byte.

There are no sliders, no target file size and no resolution change, so what you get is whatever that quality level produces for your clip. It works best on high-bitrate recordings, such as phone or screen captures, that you want to email or upload somewhere with a size limit. Because encoding runs on your own processor, a long or large video takes a long time and a lot of memory.

How to use Video Compressor

  1. Choose the MP4 file using the file picker. Only MP4 files are accepted, and the button stays idle until a file is selected.
  2. Select Compress video. The page first shows Loading media engine while it fetches the FFmpeg core from a public CDN, which needs an internet connection.
  3. Wait while the browser encodes the video. The button reads Processing, and the page shows no percentage, so keep the tab open and be patient with longer clips.
  4. When the message changes to Done, your browser saves eldosa-compressed-video.mp4. Check your downloads folder if you do not see it.
  5. Play the saved file and compare its size and quality with the original before you delete or share anything.

When this tool helps

Shrink a phone recording

Videos from a phone are often recorded at a very high bitrate. Re-encoding at this quality level can make them far easier to attach to an email or send in a message.

Reduce a screen recording

Screen captures of slides or demos usually contain large flat areas that compress well, so the output is often much smaller while staying readable for a tutorial or bug report.

Prepare a clip for an upload limit

Forms, forums and support portals often cap attachment sizes. Compress the clip first, check the file size, and if it is still too large, trim the video before running it again.

Compress without installing software

On a locked-down work or school computer you may be unable to install an encoder. A browser-based version needs only a modern browser, though you should still try a short clip first.

Tips for better results

  • Test with a short clip first. A 20-second sample shows you the quality at this setting and roughly how long the full video will take, before you commit to a long run.
  • Keep the tab in the foreground and the computer plugged in. Browsers can slow down background tabs, and heavy encoding drains a laptop battery quickly.
  • Close other tabs and applications before starting. The whole file is held in memory while it is processed, and freeing memory lowers the chance of the run failing on a larger video.
  • Compare file sizes afterward. If your source was already heavily compressed, the result may be only slightly smaller or even larger, in which case keep the original.
  • Trim unneeded sections in a video editor before compressing. Removing a minute of footage saves more than any encoder setting, and it shortens the processing time as well.

Good to know

  • Large files can fail. The video is loaded into browser memory and then copied into the WebAssembly engine, so multi-gigabyte files may exhaust memory on some devices and the tab may crash or report an error.
  • Encoding runs on your own device and is slower than desktop software, because FFmpeg runs in WebAssembly in the browser. A long clip can take many minutes, and the page shows no progress bar, only a processing message.
  • Settings cannot be changed: CRF 30, the veryfast preset and AAC at 96 kbps. There is no target size, resolution or frame rate option, and only MP4 input is accepted. Very high or very low quality needs are better met elsewhere.

Privacy and your data

Encoding runs in your browser, and the video file is not intentionally sent to a server. The FFmpeg WebAssembly core is fetched on demand from a public CDN, so your device contacts that CDN when you start.

Video Compressor FAQ

How is the MP4 video compressed?

The tool runs FFmpeg in your browser with H.264 video at CRF 30 and the veryfast preset, plus AAC audio at 96 kbps. It re-encodes the whole file, which is how it reduces the size of high-bitrate recordings.

Does my video get uploaded anywhere?

The video is processed on your device and is not intentionally sent to a server. What the page does download is the FFmpeg WebAssembly core, which it loads from a public CDN when you press Compress video.

How big a video can I compress?

The code sets no size limit, but the file has to fit in your browser's memory during processing. Short clips usually work, while very large files can fail, depending on your device, available memory and browser.

Why is there no progress bar?

The page only shows a status message, such as Loading media engine and Processing, then Done. Encoding in the browser can take a while, so leave the tab open and wait until the status changes.

Can I choose the quality or resolution?

No. The quality setting is fixed at CRF 30, with the veryfast preset and 96 kbps AAC audio, and the resolution and frame rate are left as they are in the source. If you need other values, use desktop encoding software.

Why is the compressed file not much smaller?

If the original was already encoded efficiently, for example by a previous compression or a streaming service, there is little left to remove. Re-encoding can then save little or even increase the size, so keep the original in that case.

Browse all ELDOSA tools →