Allow overriding the x264 binary name to use

This commit is contained in:
Steven Robertson 2014-12-20 18:34:36 -08:00
parent b882d6587d
commit b073b7e22e

View File

@ -124,13 +124,13 @@ class X264Output(Output, ClsMod):
{ 'normal': '--profile high444 --level 4.2' { 'normal': '--profile high444 --level 4.2'
, '': '' , '': ''
}) })
base = ('x264 --no-progress --input-depth 16 --sync-lookahead 0 ' base = ('--no-progress --input-depth 16 --sync-lookahead 0 '
'--rc-lookahead 5 --muxer raw -o - - --log-level debug') '--rc-lookahead 5 --muxer raw -o - - --log-level debug')
def __init__(self, profile='normal', csp='i444', crf=15, def __init__(self, profile='normal', csp='i444', crf=15,
x264opts='', alpha=False): command='x264', x264opts='', alpha=False):
super(X264Output, self).__init__() super(X264Output, self).__init__()
self.args = ' '.join([self.base, self.profiles[profile], self.args = ' '.join([command, self.base, self.profiles[profile],
'--crf', str(crf), x264opts]).split() '--crf', str(crf), x264opts]).split()
self.alpha = alpha self.alpha = alpha
self.csp = csp self.csp = csp