You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-09-16 08:36:51 +02:00
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 <aicommander@gmail.com>
This commit is contained in:
committed by
Zhao Zhili
parent
4691c56238
commit
d87210745e
@@ -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);
|
||||
|
Reference in New Issue
Block a user