diff options
Diffstat (limited to 'libhb/encavcodec.c')
-rw-r--r-- | libhb/encavcodec.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libhb/encavcodec.c b/libhb/encavcodec.c index fb7f1adee..a43175b45 100644 --- a/libhb/encavcodec.c +++ b/libhb/encavcodec.c @@ -343,6 +343,15 @@ int encavcodecInit( hb_work_object_t * w, hb_job_t * job ) if ( job->vcodec == HB_VCODEC_FFMPEG_VCE_H264 || job->vcodec == HB_VCODEC_FFMPEG_VCE_H265 ) { av_dict_set( &av_opts, "rc", "vbr_peak", 0 ); + //Work around an ffmpeg issue mentioned in issue #3447 + if (job->vcodec == HB_VCODEC_FFMPEG_VCE_H265) + { + av_dict_set( &av_opts, "min_qp_i", 1, 0 ); + av_dict_set( &av_opts, "min_qp_p", 1, 0 ); + + av_dict_set( &av_opts, "max_qp_i", 51, 0 ); + av_dict_set( &av_opts, "max_qp_p", 51, 0 ); + } hb_log( "encavcodec: encoding at rc=vbr_peak Bitrate %d", job->vbitrate ); } |