> ## Content Index
> Fetch the complete content index at: https://ffmpeguru.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Compress video with H.265 (HEVC) for 30 to 50% smaller files than H.264
- URL: https://ffmpeguru.com/compress-video-with-h-265-hevc-for-30-to-50-smaller-files-than-h-264/
- Published: 2026-10-27T09:00:00.000Z
- Updated: 2026-10-27T09:00:02.000Z
- Author: FFmpeguru
- Tags: ffmpeg

H.265, also called HEVC, is the successor to H.264 and compresses roughly twice as well at the same visual quality. It is widely supported on modern devices, browsers with hardware acceleration, and all major streaming platforms. The trade-off is encode speed: H.265 is 5 to 10 times slower than H.264 on CPU.

## The command

```
ffmpeg -i input.mp4 -c:v libx265 -crf 28 output.mp4
```

## What it does

FFmpeg encodes to H.265 via libx265\. CRF 28 is the H.265 default and corresponds roughly to CRF 23 in H.264 in terms of perceived quality. The output container stays MP4 unless you change it; HEVC inside MP4 is a common combination for delivery.

## When to use it

For delivery to modern devices, especially mobile. H.265 saves 30 to 50% on bitrate compared to H.264 at the same quality, which translates directly to bandwidth savings and storage. Avoid it for compatibility with older devices or non-technical recipients, and avoid it for live workflows where encode latency matters more than size.

## Video and hardware requirements

H.265 encoding is computationally expensive. On CPU, it is 5 to 10 times slower than H.264\. For production use, hardware acceleration is effectively required: NVIDIA NVENC supports HEVC on Turing and later (RTX 20 series and up), Intel QSV supports it on Skylake and later, Apple VideoToolbox supports it on all Apple Silicon. Use `-c:v hevc_nvenc`, `-c:v hevc_qsv`, or `-c:v hevc_videotoolbox` for hardware paths, with `-crf` swapped for `-qp` or `-global_quality` depending on the encoder.

## Things to avoid

- Using CPU encoding for long-form delivery. A 2-hour 1080p encode takes hours. Use hardware or accept overnight renders.
- Forgetting the 10-bit flag. H.265 supports 10-bit natively; `-pix_fmt yuv420p10le` gives you HDR and better banding at low bitrates.
- Assuming browser support. Safari and Edge handle HEVC; Chrome and Firefox do not. For the open web, serve a VP9 or AV1 version alongside.
- Choosing H.265 for real-time workflows. The CPU encoding latency is too high; use a hardware encoder with `-tune zerolatency` if you must.