[FFmpeg-cvslog] avcodec/nvenc: Handle minqp-only case in set_vbr
Timo Rothenpieler
git at videolan.org
Tue May 31 17:04:53 CEST 2016
ffmpeg | branch: master | Timo Rothenpieler <timo at rothenpieler.org> | Tue May 31 17:00:07 2016 +0200| [971351b6642e9beb96db64f1fd627404ce9d72de] | committer: Timo Rothenpieler
avcodec/nvenc: Handle minqp-only case in set_vbr
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=971351b6642e9beb96db64f1fd627404ce9d72de
---
libavcodec/nvenc.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index f440f5a..409a7b7 100644
--- a/libavcodec/nvenc.c
+++ b/libavcodec/nvenc.c
@@ -531,6 +531,14 @@ static av_cold void set_vbr(AVCodecContext *avctx)
rc->maxQP.qpIntra = avctx->qmax;
qp_inter_p = (avctx->qmax + 3 * avctx->qmin) / 4; // biased towards Qmin
+ } else if (avctx->qmin >= 0) {
+ rc->enableMinQP = 1;
+
+ rc->minQP.qpInterB = avctx->qmin;
+ rc->minQP.qpInterP = avctx->qmin;
+ rc->minQP.qpIntra = avctx->qmin;
+
+ qp_inter_p = avctx->qmin;
} else {
qp_inter_p = 26; // default to 26
}
More information about the ffmpeg-cvslog
mailing list