Skip to content

Commit

Permalink
ffmpeg File Not Found Error on Unix systems fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
aliparlakci committed Jun 4, 2020
1 parent af1f9fd commit 5dee5f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/downloaders/vreddit.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def _mergeAudio(video,audio,filename,shortFilename,directory):

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)

0 comments on commit 5dee5f8

Please sign in to comment.