Skip to main content

FFmpeg Presets: Speed vs Quality vs File Size

FFmpeg presets (-preset ultrafast to veryslow) trade encoding speed for file size in x264 and x265. Benchmarks, the best choice for each job, and commands.

Convert MKV to MP4

Optimized encoding preset applied automatically

MKV MP4

Tap to choose your file

or

Supports M4A, WAV, FLAC, OGG, AAC, WMA, AIFF, OPUS • Max 100 MB

How to Use -preset in FFmpeg

  • ffmpeg -i input.mkv -c:v libx264 -preset slow -crf 23 -c:a aac -b:a 192k output.mp4 — H.264 (x264).
  • ffmpeg -i input.mkv -c:v libx265 -preset medium -crf 28 -tag:v hvc1 -c:a aac -b:a 192k output.mp4 — H.265 (x265) uses the same preset names.
  • ffmpeg -i input.mkv -c:v h264_nvenc -preset p5 -rc vbr -cq 23 -b:v 0 -c:a aac -b:a 192k output.mp4 — NVIDIA GPU encoding uses presets p1 (fastest) to p7 (best quality).
  • -tune film, animation, grain, stillimage, fastdecode or zerolatency — an optional x264 tune adjusts the settings to the content; it works on top of the preset.

Old .ffpreset files (for example libx264-ipod640.ffpreset, loaded with -vpre or -fpre) are a separate, legacy mechanism. For x264 and x265, use -preset.

What Are FFmpeg Presets?

When encoding video with x264 (H.264) or x265 (H.265), the preset controls how many compression algorithms the encoder uses. More algorithms = better compression = smaller files, but slower encoding.

The 10 x264 presets, from fastest to slowest:

  1. ultrafast
  2. superfast
  3. veryfast
  4. faster
  5. fast
  6. medium (default)
  7. slow
  8. slower
  9. veryslow
  10. placebo (not recommended — negligible improvement over veryslow)

A critical point: at the same CRF, all presets aim for about the same visual quality. The main difference is file size and encoding speed. Slower presets don't look better — they compress better.

Benchmark Table: All Presets Compared

Encoding a 1-minute 1080p video at CRF 23 on an 8-core CPU (representative benchmarks):

Preset Speed (fps) Encode Time File Size Size vs Medium
ultrafast ~120 fps ~15s ~95 MB +58%
superfast ~90 fps ~20s ~80 MB +33%
veryfast ~70 fps ~25s ~70 MB +17%
faster ~55 fps ~33s ~65 MB +8%
fast ~42 fps ~43s ~62 MB +3%
medium ~30 fps ~60s ~60 MB baseline
slow ~15 fps ~2 min ~52 MB -13%
slower ~8 fps ~3.5 min ~50 MB -17%
veryslow ~4 fps ~7.5 min ~48 MB -20%

The Sweet Spots

Three presets stand out as the best choices for different scenarios:

medium — General Use (Our Default)

The default for a reason. It offers the best balance of encoding speed and file size. For an online converter where users are waiting for results, medium provides fast turnaround without excessive file bloat.

slow — Best Size Savings Worth the Wait

Compared to medium, slow takes about 2x longer but produces files 10–15% smaller. If you're encoding a large library for archival and time isn't a factor, slow is the best preset. The savings compound across many files. If each file must hit an exact size, read about two-pass encoding vs CRF.

veryfast — When Speed Is Critical

About 2.3x faster than medium at the cost of 17% larger files. Ideal for batch processing, quick previews, or when encoding speed is the bottleneck. The quality is identical — only file size increases.

Diminishing Returns

The critical insight: the slower you go, the less you gain per step.

  • veryfast → medium: -17% size (significant, worth the 2.3x slower encoding)
  • medium → slow: -13% size (still significant, worth it for archival)
  • slow → slower: -4% size (marginal, 2x slower for little gain)
  • slower → veryslow: -3% size (marginal, 2x slower for almost nothing)

This is why veryslow and placebo are rarely worth using. The encoding time doubles or triples for single-digit percentage improvements in file size.

Practical recommendation: Use medium unless you have a specific reason not to. If file size matters and you have time, use slow. Never use placebo — it's effectively identical to veryslow at 3–5x the encoding time.

Preset + CRF Interaction

Presets and CRF work together but control different things:

  • CRF controls quality level (what you see)
  • Preset controls compression efficiency (how many bytes it takes to achieve that quality)

At CRF 23 with ultrafast, the video looks nearly the same as CRF 23 with veryslow. But the veryslow file is 40–50% smaller because the encoder spent more time finding efficient ways to represent the same visual information.

This means you can achieve smaller files in two ways:

  1. Increase CRF (e.g., 23 → 28) — reduces quality and file size
  2. Use a slower preset (e.g., medium → slow) — reduces file size only, quality stays the same

Our Converter Settings

Our online converter uses the medium preset with CRF 23. This was chosen for the best user experience:

  • Fast processing: Users don't want to wait 10 minutes for a 1-minute video
  • Excellent quality: CRF 23 produces visually indistinguishable output
  • Reasonable file size: medium provides good compression without excessive encoding time

For users who need maximum compression, downloading FFmpeg and running the slow preset locally is the best option for large file libraries. For the other levers, such as CRF, resolution and codec, see how to compress video without losing quality.

Which Presets CleverUtils Video Tools Use

Tool x264 preset CRF
Video to MP4, MOV and MKV converters medium 23
Compress Video veryfast 18 / 23 / 28 / 32 (Highest to Smallest)
Resize Video, Trim Video fast 18
Reverse Video fast 23

In the benchmark above, veryfast files are about 17% larger than medium at the same CRF, so in the compressor the CRF choice is what really sets the output size.

Ready to Convert?

Convert your video with optimized encoding settings

MKV MP4

Tap to choose your file

or

Supports M4A, WAV, FLAC, OGG, AAC, WMA, AIFF, OPUS • Max 100 MB

Frequently Asked Questions

At the same CRF, presets aim for about the same visual quality. Slower presets achieve the same quality in a smaller file. Faster presets produce larger files with the same quality. The preset never degrades what you see.

medium for most cases. slow if you want 10–15% smaller files and don't mind longer encoding times. veryfast if speed is your top priority and you can accept 17% larger files.

Ultrafast encodes roughly 30x faster than veryslow but produces files about 50% larger. At the same CRF, both look about the same — the difference is purely in file size and encoding time.

Veryslow offers diminishing returns over slow — only 2–5% smaller files for 3–5x longer encoding. For online conversion, the extra wait time is rarely justified. The slow preset captures most of the compression benefit at a fraction of the time.

For encoding speed, yes: NVIDIA NVENC, Intel Quick Sync and Apple VideoToolbox encode many times faster than x264 on the CPU. At the same bitrate they usually compress less efficiently, so files are larger for the same quality.

The name combines “FF” for “fast forward” with MPEG, the video standards group. FFmpeg is a free, open-source set of libraries and command-line tools for converting audio and video.

More MKV to MP4 Guides

MKV vs MP4: Which Container Should You Choose?
MKV vs MP4 compared: codec support, subtitle tracks, device compatibility, and when to use each container format.
H.264 vs H.265 (HEVC): Which Video Codec Is Better?
H.264 vs H.265 codec comparison: quality, file size, encoding speed, hardware support, and compatibility.
MKV to MP4 Without Losing Quality: Complete Guide
Convert MKV to MP4 losslessly via remuxing or with minimal quality loss. CRF settings and codec compatibility explained.
Container vs Codec: What's the Difference?
Understand the difference between video containers (MKV, MP4, AVI) and codecs (H.264, H.265, VP9). Essential knowledge for video conversion.
CRF Quality Guide: H.264 & H.265 Settings Explained
Master CRF (Constant Rate Factor) settings for H.264 and H.265. Quality vs file size tradeoffs with visual examples.
Frame Rate Guide: 24 vs 30 vs 60 FPS Explained
Video frame rates explained: 24 fps for film, 30 fps for TV, 60 fps for gaming. When to change FPS during conversion.
Pixel Format YUV420p: Why It Matters for Video Compatibility
Why yuv420p is required for universal video playback. Chroma subsampling, color depth, and compatibility with every device.
Two-Pass Encoding vs CRF: Which Is Better?
Compare two-pass encoding and CRF for video quality. When to use each method and how they affect file size and quality.
MKV Subtitles: How to Handle Multiple Tracks
Handle MKV subtitle tracks during conversion: extract SRT, burn-in SSA/ASS, and preserve subtitle data when converting to MP4.
Back to MKV to MP4 Converter

Request a Feature

0 / 2000