]> granicus.if.org Git - handbrake/commitdiff
Nvenc: Don't override rc-lookahead or spartial-aq settings.
authorsr55 <sr55.hb@outlook.com>
Sat, 24 Nov 2018 14:42:08 +0000 (14:42 +0000)
committersr55 <sr55.hb@outlook.com>
Sat, 24 Nov 2018 14:42:08 +0000 (14:42 +0000)
libhb/encavcodec.c

index d0be88661312d789cb41f035c1ad7bb13dd903c2..d7c525a9115a188842012745190551a4b2d2ed50 100644 (file)
@@ -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