Categories: ComputingDevelopment

FFmpeg preset comparison x265 2019; Encode speed and file size

FFmpeg preset is the value in which speed the media encode will traverse at.

Part 1 was x264

In this part 2 of FFmpeg encoding comparisons I look at x265 presets, their speed and output file size.

x265 or HEVC is a more modern codex than x264 (h.264), it is harder on the CPU and takes longer. Not all devices can play (decode) x265 either, although in recent years this has become less of a problem.

You can read more about x265 here.

The unspecified source video file used for this comparison was: 24,000,564KB in size, 1920×1080 @ 19,194Kb/s .MKV format.

The server i used to run these FFmpeg encoding comparisons was: 2x E5-2650 v2 @2.60GHz (16 cores, 32 threads), 64GB ram, SSD.

Before undertaking the testing I was well aware that x265 will take longer to encode and the files sizes will be smaller than the same preset with x264.

Preset comparisons

Lets see:

FFmpeg x265 preset encode comparison

Charts

Graph showing the encode speeds for all FFmpeg x265 presets, time is in seconds

ffmpeg comparison x265 encode time chart

Graph showing the encoded output file size for all FFmpeg x265 presets (KB)

ffmpeg comparison x265 output size chart

Graph showing the Kbit rate encoded for all FFmpeg x265 presets

ffmpeg comparison x265 encode kbit chart

x265 is a better encoder than x264, that’s technology progression. You will find that veryslow is bigger than ultrafast because the ultrafast file will be poorer quality. x265 is about quality rather than speed/size. The ‘slower’ presets actually take the time to better analyze and encode the media than a fast preset which is all about compacting the file quickly.

Fast and faster is the sweet spot for speed to file size. As you push down to medium and slow the time grows massively.

Part 3 compares x264 to x265

Share

Recent Posts

Kennington reservoir drained drone images

A drained and empty Kennington reservoir images from a drone in early July 2024. The…

2 years ago

Merrimu Reservoir drone images

Merrimu Reservoir from drone. Click images to view larger.

2 years ago

Early September spring shots

Some early September spring shots from a bushwalk, It is still too early for wildflowers.

3 years ago

Cloning an NVMe to SK Hynix Platinum P41 NVMe

I recently needed to clone over a smaller NVMe to a 2TB SK Hynix Platinum…

3 years ago

Using Laravel’s deleteDirectory to delete folders and their contents

If you ever needed a simple solution in Laravel to delete an entire directory and…

3 years ago

How to allow only 1 user to register in a Laravel application

How to enforce only one user to register or be registered in a Laravel web…

3 years ago