From 67ff6480af3312be5dae2541ab3add1b5f432408 Mon Sep 17 00:00:00 2001 From: Andrew Sun Date: Mon, 19 Oct 2020 11:23:46 -0400 Subject: [PATCH 1/2] Fix SVT-AV1 two-pass command syntax --- Encoders/svtav1.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Encoders/svtav1.py b/Encoders/svtav1.py index 1a334ee..7ceff6f 100644 --- a/Encoders/svtav1.py +++ b/Encoders/svtav1.py @@ -33,12 +33,12 @@ class SvtAv1(Encoder): CommandPair( Encoder.compose_ffmpeg_pipe(a), ['SvtAv1EncApp', '-i', 'stdin', '--progress', '2', '--irefresh-type', '2', *a.video_params, - '-output-stat-file', f'{c.fpf}.stat', '-b', os.devnull, '-'] + '--output-stat-file', f'{c.fpf}.stat', '-b', os.devnull, '-'] ), CommandPair( Encoder.compose_ffmpeg_pipe(a), ['SvtAv1EncApp', '-i', 'stdin', '--progress', '2', '--irefresh-type', '2', *a.video_params, - '-input-stat-file', f'{c.fpf}.stat', '-b', output, '-'] + '--input-stat-file', f'{c.fpf}.stat', '-b', output, '-'] ) ] From 703d94be6b36ee7e297a5eb23b982f4281af883e Mon Sep 17 00:00:00 2001 From: Andrew Sun Date: Mon, 19 Oct 2020 12:34:52 -0400 Subject: [PATCH 2/2] Add --pass argument --- Encoders/svtav1.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Encoders/svtav1.py b/Encoders/svtav1.py index 7ceff6f..c8bdd21 100644 --- a/Encoders/svtav1.py +++ b/Encoders/svtav1.py @@ -33,12 +33,12 @@ class SvtAv1(Encoder): CommandPair( Encoder.compose_ffmpeg_pipe(a), ['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( Encoder.compose_ffmpeg_pipe(a), ['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, '-'] ) ]