Version 2 (modified by slhck, 5 years ago) (diff)


FFmpeg and H.265 Encoding Guide

The goal of this guide is to inform new users how to create a high-quality H.265 video using the encoder x265.

Passing options to libx265

The encoding is done by libx265, which is under heavy development. As of now, options such as CRF or psy-rd has to be passed using the -x265-params options.

Simple example (crf)

ffmpeg -i input -c:v libx265 -preset medium -x265-params crf=28 -c:a copy output

The CRF of 28 corresponds to the default value and should be visually equivalent to libx264 video at CRF 23.