diff options
author | sr55 <[email protected]> | 2019-11-14 20:30:08 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2019-11-14 20:31:37 +0000 |
commit | 57eeacb1007aca7e00d3c7bca32a3d7722ee02d3 (patch) | |
tree | 45928c352a3ab9b08b735199d0269d5063589505 | |
parent | f7bc55eb2cf06759b2cbe339c858d1d6a6b2d831 (diff) |
VCE: Force the rate control method for the VCE encoder to see if it helps with rate control problems. #2414
-rw-r--r-- | libhb/encavcodec.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libhb/encavcodec.c b/libhb/encavcodec.c index f462650c8..55cd34778 100644 --- a/libhb/encavcodec.c +++ b/libhb/encavcodec.c @@ -314,6 +314,11 @@ int encavcodecInit( hb_work_object_t * w, hb_job_t * job ) av_dict_set( &av_opts, "rc", "cbr_hq", 0 ); hb_log( "encavcodec: encoding at rc=cbr_hq Bitrate %d", job->vbitrate ); } + + if ( job->vcodec == HB_VCODEC_FFMPEG_VCE_H264 || job->vcodec == HB_VCODEC_FFMPEG_VCE_H265 ) { + av_dict_set( &av_opts, "rc", "vbr_peak", 0 ); + hb_log( "encavcodec: encoding at rc=vbr_peak Bitrate %d", job->vbitrate ); + } } else { |