summaryrefslogtreecommitdiffstats
path: root/libhb/encavcodec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libhb/encavcodec.c')
-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
{