From 5dee5f89a5e9247bf74edfeede3eb0dbc1ca95a4 Mon Sep 17 00:00:00 2001 From: Ali Date: Thu, 4 Jun 2020 12:01:29 +0300 Subject: [PATCH] ffmpeg File Not Found Error on Unix systems fixed --- src/downloaders/vreddit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/downloaders/vreddit.py b/src/downloaders/vreddit.py index 521f112..4e87f0e 100644 --- a/src/downloaders/vreddit.py +++ b/src/downloaders/vreddit.py @@ -51,7 +51,7 @@ class VReddit: FNULL = open(os.devnull, 'w') cmd = f"ffmpeg -i {inputAudio} -i {inputVideo} -c:v copy -c:a aac -strict experimental {str(directory / filename)}" - subprocess.call(cmd, stdout=FNULL, stderr=subprocess.STDOUT) + subprocess.call(cmd.split(), stdout=FNULL, stderr=subprocess.STDOUT) os.remove(directory / video) os.remove(directory / audio) \ No newline at end of file