summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsr55 <[email protected]>2019-11-14 20:30:08 +0000
committersr55 <[email protected]>2019-11-15 22:31:17 +0000
commitf7f0368f112e63cf75c9633d1939c7f9eefde82c (patch)
treee12d02941adb95f1ac4bdfa4567cfc1de655703e
parent732e13ad4bf890ed745d87856d135aa9f6e4fd77 (diff)
VCE: Force the rate control method for the VCE encoder to see if it helps with rate control problems. #2414
(cherry picked from commit 57eeacb1007aca7e00d3c7bca32a3d7722ee02d3)
-rw-r--r--libhb/encavcodec.c5
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
{