I'm writing a bot that joins the voice channel and plays a sound on my PC. Problem is, every time the command is issued, I get a big ol' error ending with: " Command raised an exception: ClientException: ffmpeg/avconv was not found in your PATH environment variable ". Now, I've checked my PATH variable multiple times, and it correctly points to the ffmpeg\bin folder. Any fixes? Thanks.
Same issue here, If you find a solution can you please post.
Thanks :D
If you're on Windows
ffmpeg.exe or avconv.exeC:\ffmpeg\bin:
C:\ffmpeg\bin;C:\Windows\..., for example.)cmd).ffmpeg or avconv. If you get a bunch of help spam, you've updated your PATH correctly.
If you're on Linux
avconv or ffmpeg executable (or a symlink to it)./home/myuser/ffmpeg/bin:
/bin, /usr/bin, /usr/local/bin then you may not need to edit PATH at all, and can skip directly to 3.~/.bashrc and ~/.bash_profile that it, and some other shells, use to set up the environment. ~/.bash_profile is the preferred option, as it is used in more cases.nano or etc to include export PATH=/home/myuser/ffmpeg/bin:$PATH (substitute my example path for your own) to add your ffmpeg/avconv path to PATH whenever your shell loads.source ~/.bash_profile to immediately apply the effects to the current shell.ffmpeg or avconv into your shell. If it comes up with a lot of help spam, you've added ffmpeg to your PATH correctly.
Hi I've followed the guide for windows all the way up to the path variable and I've put the exact location of the path "C:ffmpeg\bin" and I still get the 'ffmpeg' is not a recognised as an internal or external command.....
If I enter C:ffmpeg\binffmpeg.exe -codecs it does work so not sure what is going wrong.
@JohnReilly70 Could you show what your PATH looks like, and through what method you're starting your bot?
sorry for late reply but I realised my issue was a missing semi-colon in one of the other programs which meant anything after it did not run.
Its now all working correctly. Apologise for my idiocy!
Hi,
I have an issue about ffmpeg
this is my command :
pydub.AudioSegment.converter = r"C:\Program Files\ffmpeg\bin\ffmpeg.exe"
I have added the Path as in the docs, but I am still not able to find my mp3 file.
Any thoughts ?
Most helpful comment
If you're on Windows
ffmpeg.exeoravconv.exeC:\ffmpeg\bin:C:\ffmpeg\bin;C:\Windows\..., for example.)cmd).ffmpegoravconv. If you get a bunch of help spam, you've updated your PATH correctly.If you're on Linux
avconvorffmpegexecutable (or a symlink to it)./home/myuser/ffmpeg/bin:/bin,/usr/bin,/usr/local/binthen you may not need to edit PATH at all, and can skip directly to 3.~/.bashrcand~/.bash_profilethat it, and some other shells, use to set up the environment.~/.bash_profileis the preferred option, as it is used in more cases.nanoor etc to includeexport PATH=/home/myuser/ffmpeg/bin:$PATH(substitute my example path for your own) to add your ffmpeg/avconv path to PATH whenever your shell loads.source ~/.bash_profileto immediately apply the effects to the current shell.ffmpegoravconvinto your shell. If it comes up with a lot of help spam, you've added ffmpeg to your PATH correctly.