def compose_2_pass(self, a: Project, c: Chunk, output: str) -> MPCommands: return [ CommandPair( Encoder.compose_ffmpeg_pipe(a), ['rav1e', '-', '-q', '-y', '--first-pass', f'{c.fpf}.stat', *a.video_params, '--output', os.devnull] ), CommandPair( Encoder.compose_ffmpeg_pipe(a), ['rav1e', '-', '-y', '--second-pass', f'{c.fpf}.stat', *a.video_params, '--output', output] ) ]
def compose_2_pass(self, a: Args, c: Chunk, output: str) -> MPCommands: return [ CommandPair(Encoder.compose_ffmpeg_pipe(a), [ 'aomenc', '--passes=2', '--pass=1', *a.video_params, f'--fpf={c.fpf}.log', '-o', os.devnull, '-' ]), CommandPair(Encoder.compose_ffmpeg_pipe(a), [ 'aomenc', '--passes=2', '--pass=2', *a.video_params, f'--fpf={c.fpf}.log', '-o', output, '-' ]) ]
def compose_2_pass(self, a: Args, c: Chunk, output: str) -> MPCommands: return [ CommandPair(Encoder.compose_ffmpeg_pipe(a), [ 'x265', '--log-level', 'error', '--no-progress', '--pass', '1', '--y4m', *a.video_params, '--stats', f'{c.fpf}.log', '-', '-o', os.devnull ]), CommandPair(Encoder.compose_ffmpeg_pipe(a), [ 'x265', '--log-level', 'error', '--pass', '2', '--y4m', *a.video_params, '--stats', f'{c.fpf}.log', '-', '-o', output ]) ]
def compose_2_pass(self, a: Args, c: Chunk, output: str) -> MPCommands: return [ 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, '-' ]), 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, '-' ]) ]
def compose_1_pass(self, a: Args, c: Chunk, output: str) -> MPCommands: return [ CommandPair(Encoder.compose_ffmpeg_pipe(a), [ 'x264', '--stitchable', '--log-level', 'error', '--demuxer', 'y4m', *a.video_params, '-', '-o', output ]) ]
def compose_1_pass(self, a: Project, c: Chunk, output: str) -> MPCommands: return [ CommandPair(Encoder.compose_ffmpeg_pipe(a), [ 'x265', '--y4m', '--frames', str(c.frames), *a.video_params, '-', '-o', output ]) ]
def compose_1_pass(self, a: Project, c: Chunk, output: str) -> MPCommands: return [ CommandPair( Encoder.compose_ffmpeg_pipe(a), ['rav1e', '-', '-y', *a.video_params, '--output', output] ) ]
def compose_1_pass(self, a: Args, c: Chunk, output: str) -> MPCommands: return [ CommandPair(Encoder.compose_ffmpeg_pipe(a), [ 'SvtAv1EncApp', '-i', 'stdin', '--progress', '2', *a.video_params, '-b', output, '-' ]) ]
def compose_1_pass(self, a: Project, c: Chunk, output: str) -> MPCommands: return [ CommandPair( Encoder.compose_ffmpeg_pipe(a), ['vpxenc', '--passes=1', *a.video_params, '-o', output, '-'] ) ]