Closed crumhirnd closed 1 year ago
Don't install ffmpeg with PIP. ffmpeg is not a python package. Whatever you installed with PIP is not the actual ffmpeg. I suggest uninstalling it, and then getting an ffmpeg build from one of these repos:
https://github.com/BtbN/FFmpeg-Builds
https://github.com/yt-dlp/FFmpeg-Builds#ffmpeg-static-auto-builds
How would I install it into the yt-dlp I installed through pip?
On Sun, 13 Nov 2022, 23:11 bashonly, @.***> wrote:
Don't install ffmpeg with PIP. ffmpeg is not a python package. Whatever you installed with PIP is not the actual ffmpeg. I suggest uninstalling it, and then getting an ffmpeg build from one of these repos:
https://github.com/BtbN/FFmpeg-Builds
https://github.com/yt-dlp/FFmpeg-Builds#ffmpeg-static-auto-builds
— Reply to this email directly, view it on GitHub https://github.com/yt-dlp/yt-dlp/issues/5521#issuecomment-1312715728, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT3KSN6AZ32GCB6X6TCANITWIDLG3ANCNFSM6AAAAAAR65Y6Q4 . You are receiving this because you authored the thread.Message ID: @.***>
ffmpeg is a misleading package, that only provides an API wrapper. There is also static-ffmpeg which installs the binaries into your Python environment.
But you still have to setup the paths, so yt-dlp will find it.
how would I do that?
After installation print out the paths (example):
> static_ffmpeg_paths
FFMPEG=c:\users\niteris\dev\static_ffmpeg\static_ffmpeg\bin\win32\ffmpeg.exe
FFPROBE=c:\users\niteris\dev\static_ffmpeg\static_ffmpeg\bin\win32\ffprobe.exe
Then you can add it to the PATH
variable (without the .exe file)
set PATH="%PATH%;c:\users\niteris\dev\static_ffmpeg\static_ffmpeg\bin\win32\"
Or you use the yt-dlp --ffmpeg-location <path> ...
how do I print the paths?
After installation you execute static_ffmpeg_paths.exe
I tried set PATH="%PATH%;C:\Users\onelu\AppData\Local\Programs\Python\Python310\lib\site-packages\static_ffmpeg\bin\win32\"
but it still doesn't work.
Which console are you using? cmd or powershell?
cmd, should I use powershell?
I tried adding to user environment variables, also not working.
Cmd is fine. I think the double quotes are wrong. Restart cmd and try again without the quotes:
set PATH=%PATH%;C:\Users\onelu\AppData\Local\Programs\Python\Python310\lib\site-packages\static_ffmpeg\bin\win32\
You can then quickly check with where ffmpeg
ok, it works now! thanks for the help. also could y'all add this to the readme? unless its already there (i ctrl+f'ed before asking here)
It's an actually an OS related issue and depends on the knowledge and preference of the user, since there are many ways to have ffmpeg installed.
Maybe the documentation should point out that pip install ffmpeg
is misleading...
For beginner users like me I think it would be helpful to have this information in the installation guide.
On Mon, 14 Nov 2022, 00:22 MMM, @.***> wrote:
It's an actually an OS related issue and depends on the knowledge and preference of the user, since there are many ways to have ffmpeg installed.
Maybe the documentation should point out that pip install ffmpeg is misleading...
— Reply to this email directly, view it on GitHub https://github.com/yt-dlp/yt-dlp/issues/5521#issuecomment-1312729579, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT3KSN4D44AM4FWAQ2IEPFLWIDTRJANCNFSM6AAAAAAR65Y6Q4 . You are receiving this because you authored the thread.Message ID: @.***>
The documentation already links to ffmpeg's webpage as well as to the custom builds, and not to the PiP package. There is nothing in the docs that suggests that pip install ffmpeg
is correct
If you want to add more detailed noob-friendly instructions for installing yt-dlp + dependencies, feel free to make a PR against https://github.com/yt-dlp/yt-dlp-wiki instead
DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE
Checklist
Please make sure the question is worded well enough to be understood
How do you get FFmpeg to work when installing via PIP?
I used pip install ffmpeg and pip install yt-dlp.
After that, I used the command
yt-dlp https://www.youtube.com/watch?v=CV9LyYzLUyQ --recode-video mp4 --add-metadata --embed-thumbnail
It says "ffmpeg not found."
Provide verbose output that clearly demonstrates the problem
yt-dlp -vU <your command line>
)[debug] Command-line config
) and insert it belowComplete Verbose Output