File-size problems

Reduce video size without losing quality: what actually works

Updated 4 fixes3 sources

Short answer

You cannot shrink a video with zero loss, but you can stay visually near-lossless: trim unneeded footage, re-encode with x264 at CRF 18 to 23 and a slow preset, keep the original resolution, and use AAC at 128 to 160 kbps. The FFmpeg wiki calls 17 or 18 visually lossless or nearly so and notes that +6 CRF roughly halves the file size.

Key takeaways

  • Trimming is the only reduction that costs no quality.
  • CRF 17 to 18 is near lossless; 20 to 23 is a sound range for uploads.
  • Slower presets save size at the same quality.
  • Resolution cuts size but costs detail; use it last.

Find your case

What you seeWhat it usually meansDo this
File is huge from a screen recorderVery high bitrate captureRe-encode at CRF 20 to 23 (step 2)
Need it under a limit but sharpTrade-off between size and detailTrim, then CRF 23 to 26 (steps 1 and 2)
Already compressed onceFurther loss is more visibleCompress from the original (step 4)
Result is still too bigQuality target higher than the size limit allowsRaise CRF by 2 steps or cut length (steps 1 and 2)

Fix it step by step

  1. Trim first

    Cut footage you do not need; every second removed saves bits without changing quality.

    Trim video →

  2. Re-encode with CRF

    ffmpeg -i in.mov -c:v libx264 -crf 20 -preset slow -pix_fmt yuv420p -c:a aac -b:a 160k out.mp4.

    Source: FFmpeg Wiki: Encode/H.264 (CRF, presets) · Compress video →

  3. Pick a slower preset

    Use the slowest preset you have the patience for; it improves compression at equal quality.

    Source: FFmpeg Wiki: Encode/H.264 (CRF, presets)

  4. Compress from the original

    Every extra generation of lossy compression adds loss. Keep the source and re-encode from it.

Order of operations

  1. Trim.
  2. Keep resolution.
  3. Encode with CRF and a slow preset.
  4. Fix audio bitrate.
  5. Compare at full screen, then upload.

Check your file

Extension and MIME type are labels, not proof of the container. Dimensions and duration come from this browser's media reader. This does not detect codecs, bitrate, corruption or platform upload compatibility. Files and measurements are not sent anywhere.

Frequently asked questions

Can I reduce video size without losing quality?

Only by trimming. Re-encoding is lossy, but CRF 17 to 18 is visually near lossless according to the FFmpeg wiki.

What is the best CRF for sharp uploads?

20 to 23 is a good range; 18 for maximum quality when size allows.

Does HEVC make files smaller?

Yes, usually, but not every platform accepts it; Pinterest lists H.265, YouTube recommends H.264.

Sources

Reviewed 2026-10-06. Steps not attributed to a source are general video practice or computed above.