[FFmpeg-devel] Constant quality for H.264/265 encoding with VideoToolBox on M1

Aleksid beautyofnorth at gmail.com
Sat Jan 2 15:24:48 EET 2021


Do you plan to add support in FFmpeg for constant quality compression H.264
/ H.265 using VideoToolBox on macOS 11 on new M1 Macs?

CQ mode for video compression was added in new Macs on Apple M1 chip.

Handbrake 1.4 Beta for Apple M1 already supports constant quality (CQ)
mode. I tested this mode on Macbook Air M1 and it works great, like CRF in
libx264, or NVENC with CQ on NVIDIA cards.

It seems that Hanbrake is using kVTCompressionPropertyKey_Quality option in
VideoToolBox to implement CQ compression for video. Earlier this flag was
used only for JPEG compression.


More information about the ffmpeg-devel mailing list