diff options
author | sr55 <[email protected]> | 2020-07-21 19:10:08 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2020-07-21 19:10:08 +0100 |
commit | bddc272b56a41f094baa623afe31a402dae5b3ce (patch) | |
tree | 26d26e8fe4020386be7aa5285ed97d14c20ffee4 /libhb/encavcodec.c | |
parent | 2677f9fe9e91f9dfeccaf8c265615a703e20efa5 (diff) |
NVEnc: Allow bitrate to be variable for Average Bitrate Mode in HB. Fixes #3020
Diffstat (limited to 'libhb/encavcodec.c')
-rw-r--r-- | libhb/encavcodec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libhb/encavcodec.c b/libhb/encavcodec.c index 30b5c6d4a..9ac0e926e 100644 --- a/libhb/encavcodec.c +++ b/libhb/encavcodec.c @@ -312,8 +312,8 @@ int encavcodecInit( hb_work_object_t * w, hb_job_t * job ) if ( job->vcodec == HB_VCODEC_FFMPEG_NVENC_H264 || job->vcodec == HB_VCODEC_FFMPEG_NVENC_H265 ) { - av_dict_set( &av_opts, "rc", "cbr_hq", 0 ); - hb_log( "encavcodec: encoding at rc=cbr_hq Bitrate %d", job->vbitrate ); + av_dict_set( &av_opts, "rc", "vbr_hq", 0 ); + hb_log( "encavcodec: encoding at rc=vbr_hq Bitrate %d", job->vbitrate ); } if ( job->vcodec == HB_VCODEC_FFMPEG_VCE_H264 || job->vcodec == HB_VCODEC_FFMPEG_VCE_H265 ) { @@ -375,7 +375,7 @@ int encavcodecInit( hb_work_object_t * w, hb_job_t * job ) av_dict_set( &av_opts, "init_qpP", quality, 0 ); av_dict_set( &av_opts, "init_qpB", qualityB, 0 ); av_dict_set( &av_opts, "init_qpI", qualityI, 0 ); - hb_log( "encavcodec: encoding at rc=vbr %.2f", job->vquality ); + hb_log( "encavcodec: encoding at rc=vbr_hq %.2f", job->vquality ); } else if ( job->vcodec == HB_VCODEC_FFMPEG_VCE_H264 || job->vcodec == HB_VCODEC_FFMPEG_VCE_H265 ) { |