Merge pull request #182 from as-com/patch-1

Fix SVT-AV1 two-pass command syntax
This commit is contained in:
Zen 2020-10-20 16:37:56 +03:00 committed by GitHub
commit 7776b9db3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,12 +33,12 @@ class SvtAv1(Encoder):
CommandPair( CommandPair(
Encoder.compose_ffmpeg_pipe(a), Encoder.compose_ffmpeg_pipe(a),
['SvtAv1EncApp', '-i', 'stdin', '--progress', '2', '--irefresh-type', '2', *a.video_params, ['SvtAv1EncApp', '-i', 'stdin', '--progress', '2', '--irefresh-type', '2', *a.video_params,
'-output-stat-file', f'{c.fpf}.stat', '-b', os.devnull, '-'] '--pass', '1', '--stats', f'{c.fpf}.stat', '-b', os.devnull, '-']
), ),
CommandPair( CommandPair(
Encoder.compose_ffmpeg_pipe(a), Encoder.compose_ffmpeg_pipe(a),
['SvtAv1EncApp', '-i', 'stdin', '--progress', '2', '--irefresh-type', '2', *a.video_params, ['SvtAv1EncApp', '-i', 'stdin', '--progress', '2', '--irefresh-type', '2', *a.video_params,
'-input-stat-file', f'{c.fpf}.stat', '-b', output, '-'] '--pass', '2', '--stats', f'{c.fpf}.stat', '-b', output, '-']
) )
] ]