예제 #1
0
파일: aom.py 프로젝트: Nova-Aurora/Av1an
 def compose_2_pass(self, a: Project, 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,
                 "-",
             ],
         ),
     ]
예제 #2
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,
             ],
         ),
     ]
예제 #3
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
         ])
     ]
예제 #4
0
파일: aom.py 프로젝트: zhangjinrong/Av1an
 def compose_2_pass(self, a: Project, 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, '-'
         ])
     ]
예제 #5
0
 def compose_2_pass(self, a: Project, c: Chunk, output: str) -> MPCommands:
     return [
         CommandPair(Encoder.compose_ffmpeg_pipe(a), [
             'SvtAv1EncApp', '-i', 'stdin', '--progress', '2',
             '--irefresh-type', '2', *a.video_params, '--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, '--pass', '2',
             '--stats', f'{c.fpf}.stat', '-b', output, '-'
         ])
     ]
예제 #6
0
파일: aom.py 프로젝트: Nova-Aurora/Av1an
 def compose_1_pass(self, a: Project, c: Chunk, output: str) -> MPCommands:
     return [
         CommandPair(
             Encoder.compose_ffmpeg_pipe(a),
             ["aomenc", "--passes=1", *a.video_params, "-o", output, "-"],
         )
     ]
예제 #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],
         )
     ]
예제 #8
0
 def compose_1_pass(self, a: Project, c: Chunk, output: str) -> MPCommands:
     return [
         CommandPair(Encoder.compose_ffmpeg_pipe(a), [
             'SvtAv1EncApp', '-i', 'stdin', '--progress', '2',
             *a.video_params, '-b', output, '-'
         ])
     ]
예제 #9
0
파일: aom.py 프로젝트: natis1/Pav1n
 def compose_1_pass(self, a: Project, c: Chunk, output: str) -> MPCommands:
     return [
         CommandPair(
             Encoder.compose_ffmpeg_pipe(a),
             ['aomenc', '--passes=1', *a.video_params, '-o', output, '-']
         )
     ]
예제 #10
0
파일: svtav1.py 프로젝트: wonlee2019/Av1an
 def compose_2_pass(self, a: Project, c: Chunk, output: str) -> MPCommands:
     return [
         CommandPair(
             Encoder.compose_ffmpeg_pipe(a),
             [
                 "SvtAv1EncApp",
                 "-i",
                 "stdin",
                 "--progress",
                 "2",
                 "--irefresh-type",
                 "2",
                 *a.video_params,
                 "--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,
                 "--pass",
                 "2",
                 "--stats",
                 f"{c.fpf}.stat",
                 "-b",
                 output,
                 "-",
             ],
         ),
     ]
예제 #11
0
 def compose_1_pass(self, a: Project, c: Chunk, output: str) -> MPCommands:
     return [
         CommandPair(
             Encoder.compose_ffmpeg_pipe(a),
             [
                 "SvtAv1EncApp",
                 "-i",
                 "stdin",
                 "--progress",
                 "2",
                 *a.video_params,
                 "-b",
                 output,
             ],
         )
     ]
예제 #12
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])
     ]