From 2b2bf33f4753cfb257d480ae94caec7bd6accdb1 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sat, 24 Nov 2018 14:42:08 +0000 Subject: [PATCH] Nvenc: Don't override rc-lookahead or spartial-aq settings. --- libhb/encavcodec.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/libhb/encavcodec.c b/libhb/encavcodec.c index d0be88661..d7c525a91 100644 --- a/libhb/encavcodec.c +++ b/libhb/encavcodec.c @@ -352,12 +352,6 @@ int encavcodecInit( hb_work_object_t * w, hb_job_t * job ) av_dict_set( &av_opts, "init_qpP", "1", 0 ); av_dict_set( &av_opts, "init_qpB", "1", 0 ); av_dict_set( &av_opts, "init_qpI", "1", 0 ); - av_dict_set( &av_opts, "rc-lookahead", "16", 0 ); // also adds b-frames (h264 only it seems for now), max 32 causes errors - if( job->vcodec == HB_VCODEC_FFMPEG_NVENC_H265 ) { - av_dict_set( &av_opts, "spatial_aq", "1", 0 ); // oops, nvenc_hevc.c uses an underscore - } else { - av_dict_set( &av_opts, "spatial-aq", "1", 0 ); // oops, nvenc_h264.c uses a dash - } hb_log( "encavcodec: encoding at rc=vbr CQ %.2f", job->vquality ); //This value was chosen to make the bitrate high enough -- 2.40.0