Add --pass argument

This commit is contained in:
Andrew Sun 2020-10-19 12:34:52 -04:00 committed by GitHub
parent 67ff6480af
commit 703d94be6b
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, '-']
) )
] ]