diff --git a/pytranscoder/processor.py b/pytranscoder/processor.py index dc08632..3b35c99 100644 --- a/pytranscoder/processor.py +++ b/pytranscoder/processor.py @@ -28,12 +28,12 @@ def run_remote(self, sshcli: str, user: str, ip: str, params: list, event_callba def execute_and_monitor(self, params, event_callback, monitor) -> Optional[int]: self.last_command = ' '.join([self.path, *params]) with subprocess.Popen( - # [self.path, *params], - self.last_command, + [self.path, *params], + #self.last_command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, universal_newlines=True, - shell=True) as p: + shell=False) as p: for stats in monitor(p): if event_callback is not None: diff --git a/pytranscoder/transcode.py b/pytranscoder/transcode.py index 815371a..210e4cb 100755 --- a/pytranscoder/transcode.py +++ b/pytranscoder/transcode.py @@ -442,7 +442,7 @@ def start(): if cluster is None: files.extend([(f, profile or template, mixins) for f in tmpfiles]) else: - files.extend([(f, cluster, profile or template) for f in tmpfiles]) + files.extend([(f, cluster, profile or template, mixins) for f in tmpfiles]) if len(files) == 0: print(crayons.yellow(f'Nothing to do'))