better pipes

This commit is contained in:
Zen 2020-07-23 01:25:42 +03:00
parent 0f744b0ce4
commit 3cb9cbfc9f

View file

@ -37,9 +37,7 @@ BaseManager.register('Counter', Counter)
def make_pipes(command):
f, e = command.split('|')
f = " ffmpeg -y -hide_banner -loglevel error " + f
f, e = f.split(), e.split()
ffmpeg_pipe = subprocess.Popen(f, stdout=PIPE, stderr=STDOUT)
pipe = subprocess.Popen(e, stdin=ffmpeg_pipe.stdout, stdout=PIPE,
stderr=STDOUT,