Rename _FFmpegCommand to _FFmpegProcess

pull/357/head
nyanpasu64 2018-08-27 21:01:36 -07:00
rodzic 97c8f88c20
commit 970fffef0c
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -49,7 +49,7 @@ def register_output(config_t: Type[IOutputConfig]):
# FFmpeg command line generation
class _FFmpegCommand:
class _FFmpegProcess:
def __init__(self, templates: List[str], ovgen_cfg: 'Config'):
self.templates = templates
self.ovgen_cfg = ovgen_cfg
@ -147,7 +147,7 @@ class FFmpegOutput(PipeOutput):
def __init__(self, ovgen_cfg: 'Config', cfg: FFmpegOutputConfig):
super().__init__(ovgen_cfg, cfg)
ffmpeg = _FFmpegCommand([FFMPEG, '-y'], ovgen_cfg)
ffmpeg = _FFmpegProcess([FFMPEG, '-y'], ovgen_cfg)
ffmpeg.add_output(cfg)
ffmpeg.templates.append(cfg.args)
@ -174,7 +174,7 @@ class FFplayOutput(PipeOutput):
def __init__(self, ovgen_cfg: 'Config', cfg: FFplayOutputConfig):
super().__init__(ovgen_cfg, cfg)
ffmpeg = _FFmpegCommand([FFMPEG], ovgen_cfg)
ffmpeg = _FFmpegProcess([FFMPEG], ovgen_cfg)
ffmpeg.add_output(cfg)
ffmpeg.templates.append('-f nut')