[FFmpeg-cvslog] avcodec/nvenc: notify users about rc_lookahead clipping
Timo Rothenpieler
git at videolan.org
Mon Dec 5 22:22:26 EET 2022
ffmpeg | branch: master | Timo Rothenpieler <timo at rothenpieler.org> | Mon Dec 5 21:18:42 2022 +0100| [45216e33e295f27b52bb0e829284f682ba48b7c8] | committer: Timo Rothenpieler
avcodec/nvenc: notify users about rc_lookahead clipping
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=45216e33e295f27b52bb0e829284f682ba48b7c8
---
libavcodec/nvenc.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index 30c10f394a..8a776e5737 100644
--- a/libavcodec/nvenc.c
+++ b/libavcodec/nvenc.c
@@ -1089,6 +1089,9 @@ static av_cold void nvenc_setup_rate_control(AVCodecContext *avctx)
ctx->encode_config.rcParams.lookaheadDepth,
ctx->encode_config.rcParams.disableIadapt ? "disabled" : "enabled",
ctx->encode_config.rcParams.disableBadapt ? "disabled" : "enabled");
+ if (ctx->encode_config.rcParams.lookaheadDepth < ctx->rc_lookahead)
+ av_log(avctx, AV_LOG_WARNING, "Clipping lookahead depth to %d (from %d) due to lack of surfaces/delay",
+ ctx->encode_config.rcParams.lookaheadDepth, ctx->rc_lookahead);
}
}
More information about the ffmpeg-cvslog
mailing list