We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
--avbr
1 parent 216fd41 commit 13d0837Copy full SHA for 13d0837
bin/transcode-video
@@ -1009,8 +1009,13 @@ HERE
1009
signal_hrd = true
1010
when :avbr
1011
handbrake_options['vb'] = bitrate.to_s
1012
- encoder_options['ratetol'] = 'inf'
1013
- encoder_options['mbtree'] = '0'
+
+ if encoder =~ /^x264(?:_10bit)?$/
1014
+ encoder_options['ratetol'] = 'inf'
1015
+ encoder_options['mbtree'] = '0'
1016
+ else
1017
+ fail UsageError, "`--avbr` not available with the `#{encoder}` encoder"
1018
+ end
1019
when :raw
1020
handbrake_options['vb'] = bitrate.to_s unless @handbrake_options.has_key? 'quality'
1021
end
0 commit comments