File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -314,14 +314,16 @@ def process_input(path)
314314 *subtitle_options
315315 ]
316316
317- case @mode
318- when :h264
319- encoder_options = "vbv-maxrate=#{ @vbv_size } :vbv-bufsize=#{ @vbv_size } "
320- when :nvenc_hevc
321- encoder_options = 'spatial_aq=1:rc-lookahead=32'
322- encoder_options += ':b_ref_mode=2' if @bframe_refs
323- else
324- encoder_options = nil
317+ encoder_options = nil
318+
319+ unless @extra_options . include? 'encoder'
320+ case @mode
321+ when :h264
322+ encoder_options = "vbv-maxrate=#{ @vbv_size } :vbv-bufsize=#{ @vbv_size } "
323+ when :nvenc_hevc
324+ encoder_options = 'spatial_aq=1:rc-lookahead=32'
325+ encoder_options += ':b_ref_mode=2' if @bframe_refs
326+ end
325327 end
326328
327329 @extra_options . each do |name , value |
You can’t perform that action at this time.
0 commit comments