Computing

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…

1 year ago

Merrimu Reservoir drone images

Merrimu Reservoir from drone. Click images to view larger.

1 year ago

FTP getting array of file details such as size using PHP

Using FTP and PHP to get an array of file details such as size and…

2 years ago

Creating Laravel form requests

Creating and using Laravel form requests to create cleaner code, separation and reusability for your…

2 years ago

Improving the default Laravel login and register views

Improving the default Laravel login and register views in such a simple manner but making…

2 years ago

Laravel validation for checking if value exists in the database

Laravel validation for checking if a field value exists in the database. The validation rule…

2 years ago