PR #20453 opened by cgutman URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20453 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20453.patch
`kVTVideoEncoderSpecification_EnableLowLatencyRateControl` was supported only for H.264 on Intel Macs, but it can be used with both H.264 and HEVC on Apple Silicon. >From d59660b787c940076a87583597bb8cbf28015d91 Mon Sep 17 00:00:00 2001 From: Cameron Gutman <aicomman...@gmail.com> Date: Fri, 5 Sep 2025 23:42:52 -0500 Subject: [PATCH] avcodec/videotoolboxenc: allow low latency RC with HEVC It is supported only for H.264 on Intel Macs, but it can be used with both H.264 and HEVC on Apple Silicon. Signed-off-by: Cameron Gutman <aicomman...@gmail.com> --- libavcodec/videotoolboxenc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/videotoolboxenc.c b/libavcodec/videotoolboxenc.c index e423da6933..f0d3a15897 100644 --- a/libavcodec/videotoolboxenc.c +++ b/libavcodec/videotoolboxenc.c @@ -1709,7 +1709,8 @@ static int vtenc_configure_encoder(AVCodecContext *avctx) #endif // low-latency mode: eliminate frame reordering, follow a one-in-one-out encoding mode - if ((avctx->flags & AV_CODEC_FLAG_LOW_DELAY) && avctx->codec_id == AV_CODEC_ID_H264) { + if ((avctx->flags & AV_CODEC_FLAG_LOW_DELAY) && + ((avctx->codec_id == AV_CODEC_ID_H264) || (TARGET_CPU_ARM64 && avctx->codec_id == AV_CODEC_ID_HEVC))) { CFDictionarySetValue(enc_info, compat_keys.kVTVideoEncoderSpecification_EnableLowLatencyRateControl, kCFBooleanTrue); -- 2.49.1 _______________________________________________ ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org To unsubscribe send an email to ffmpeg-devel-le...@ffmpeg.org