Exemple #1
0
 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]
         )
     ]
Exemple #2
0
 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, '-'
         ])
     ]
Exemple #3
0
 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
         ])
     ]
Exemple #4
0
 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, '-'
         ])
     ]
Exemple #5
0
 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
         ])
     ]
Exemple #6
0
 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
         ])
     ]
Exemple #7
0
 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]
         )
     ]
Exemple #8
0
 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, '-'
         ])
     ]
Exemple #9
0
 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, '-']
         )
     ]