Open liangmx17 opened 4 years ago
How to fix this ?
I was experiencing this problem but was able to fix it by deleting and reinstalling ffmpeg. There is an older issue that was solved where this was the fix. It is caused by having a customize output location for ffmpeg which Pydub does not expect.
try to run ffmpeg
in terminal
mine issue was
dyld: Library not loaded: /usr/local/opt/libffi/lib/libffi.6.dylib
Running brew doctor
I saw that fontconfig
wasn't linked, after linking it everything was working
Has there been a dedicated fix for this or is it an external error? I've followed the recommendations and the issues persists. I'm running ffmpeg v4.2 and can confirm that running ffmpeg in the terminal provides the expected results.
I also am having a lot of problems with this. I'm not able to run FFmpeg in the terminal on a mac because I can't find it. I have downloaded it with brew, but after that I don't know where it goes. When I look for it with the spotlight all I get is some ffmpeg in python folders. I have also tried brew doctor
and then linking some things but that did not work.
I got it working. In short, it is an ffmpeg problem not a pydub problem. I had to reinstall ffmpeg not once but twice and it took a lot of work to get it to work and I've forgotten how I did it. In any case, if you can get this line in Terminal to work ffmpeg -i input.mp3 output.avi
then pydub should work.
@kylefoley76 do you by chance happen to have the flags you used when you compiled FFmpeg handy? running into this issue right now
I installed ffmpeg with conda and problem solved. Try this
conda install -c conda-forge ffmpeg
Solved for MacOS using Anaconda3 by downloading ffmpeg and and ffprobe binaries from https://ffbinaries.com/downloads and putting them in my "usr/anaconda3/bin" folder (this directory primarily has executable files). I think the issue occurred because even though I had uninstalled and reinstalled pydub and ffmpeg several times, it was still running an old version of the executables that I had installed from a year ago!
problem solved in windows 10 py3.8 by reinstalling ffmpeg using
conda install -c conda-forge ffmpeg
this is probably because chinese windows system use gbk code instead of utf-8
it can't get the output from Popen that is gbk encoded
besides, in windows, path seems is not work. https://stackoverflow.com/questions/5658622/python-subprocess-popen-environment-path it needs to restart the pycharm.
Expected behavior
open a mp3 with no error
Actual behavior
I used the script below:
and there is a JSONDecodeError
more detail:
Your System configuration