New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning) #348
Comments
same on ubuntu 18.04 |
For ubuntu 18.04 just install ffmpeg
|
@Rajan-sust how do i do that on windows10? |
pip install ffmpeg In cmd |
I installed ffmpeg on windows using "python3 -m pip install ffmpeg" and it successfully installed, but I still get the same error message. |
first download ffmpeg from official website and include it in your path. then do |
I'm sorry but I'm a beginner. What does "include it in your path" mean? Do I need to download the source code file to a specific location? |
Yes done. Thank you so much. It worked! |
doesn't work for me :) |
@CJSparrow, does running the command "ffmpeg" work? |
Yeah it does work |
just add the class path for mac-OS export PATH="/Users/yourmacname/Downloads/ffmpeg-20200608-d29aaf1-macos64-static/bin:$PATH" |
e.
["Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning"] |
If python couldn't find ffmpeg, possbile reasons(but not limited to) are:
|
Similar situation, but I can use it from the Windows 10 command prompt, but not Anaconda. I've tried all of the techniques previously mentioned. Does Python get the directory from the Windows path? Or should I refer to something in my Anaconda folder? |
I don't know what actually causes this behaviour. But, try including ffmpeg path in user variables, not just system variables. |
I have installed ffmpeg for windows but I get this error.
|
Can you guys please help me with this error I tried everything like adding it to env and all that stuff but it's still giving me the same error? I'm trying to do large audio files to text. |
If you're on Windows and Anaconda, try installing the |
Thanks @karol-nowakowski, the |
I have the same problem: "Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work". But I already download ffmpeg, add path to user and system variable, uninstall and install ffmpeg and pydub by pip, but nothing can help. I don't know what I can do more. The problem the same I windows 7 and in windows server. Please help me. |
If get the warning import os; print(os.environ["PATH"].split(os.pathsep)) We should really be showing the user the output of this whenever there's a problem finding ffmpeg, |
for me pip install ffmpeg-python worked after I added ffmpeg to path |
if you already install ffmeg and add it to path, just reopen your IDE in my case it was vscode and you are ready to go. |
Additionally I had to relogin user to make it to work on windows. |
After install ffmepg and adding it to the system variables path i had to restart my IDE |
Worked for me, the ones that are in trouble installing packages on anaconda, always try using: conda package install command, because it organizes better the path in order to work fine with anaconda enviroments. Thanks bro. |
conda install -c main ffmpeg worked for me |
For windows users: Install chocolatey (https://chocolatey.org/install) then run |
Thank you so much it worked |
You're my life saver😅 |
what this -c does? |
It specifies which repository (channel) to take the package from (in this case, |
It working for me. |
This worked well. |
After adding the path C:\ffmpeg\bin to the environment variables, close any opened command line window, before the change takes effect. |
but what if i want to make a game i cant tell people to go download that and do a bunch of stuff for it to work |
I second @MicheleAwada. How would you package this? |
For folks making games, you can set the path to ffmpeg explicitly. Alternatively, pydub will also look for ffmpeg in the current working directory for your program |
I made a folder for an edited version of Pydub and included ffmpeg/ffprobe/ffplay in a folder, and changed the utils.py file to point to those executables, and works great. I should be able to package it with the rest of the app when I get to pyinstaller. |
it's work for me, thanks. |
It worked for me like a charm! Thank you. |
I did |
I followed this tutorial on Win10 and it solved it for me. |
#- download the ffmpeg from the website (https://ffmpeg.org/download.html) |
how to do this thing in Mac OS |
I installed ffmpeg and added it to PATH successfully. I verified with the command |
This helped me. Thank You @samycrash |
This helped me on m2:
|
It solved my problem very effectively! |
Steps to reproduce
from pydub import AudioSegment
Expected behavior
load the library
Actual behavior
C:\Users\DELL\Anaconda3\lib\site-packages\pydub\utils.py:165: RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work
warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)
Your System configuration
The text was updated successfully, but these errors were encountered: