Closed gabsens closed 8 years ago
It seems that for whatever reason, subprocess isn't able to run FFmpeg. I'm not entirely sure why, but I'll look into this. Thanks.
Some guy offered me a link to an ISO for OSX so I'll try to debug this on a VM ASAP.
Now that I think of it, this could be a problem with shell=False
in subprocess.call
. However, shell=True
poses a security risk and I don't really want to package something as dangerous as that.
But, can you try adding shell=True
to the subprocess.call(cmd)
command in the convert_audio
function in ffmpeg.py
? Like so:
subprocess.call(cmd, shell=True)
If that doesn't work, try:
subprocess.call(cmd.split())
The edit you suggested is not consistent with the source, but adding shell=True
in the subprocess.check_output
arguments has indeed fixed the problem !
To be clear, I replaced the very last line of ffmpeg.py
with return subprocess.check_output(cmd, stderr=subprocess.STDOUT, shell=True)
.
Ah right, my bad.
I still need to find out a fix that doesn't involve shell=True, which is most likely going to be running the command subprocess.check_output(cmd.split(), stderr=subprocess.STDOUT, shell=False)
After selecting the input and output folders for the audio converter and clicking on "OK",, I get the following error
The problem is not ffmpeg, nor the command you're sending to ffmpeg, because when I type
in the Terminal, the conversion is done without any problem.
INFORMATION:
LOG: