Troubleshooting guide
Fix "ffmpeg not found" in yt-dlp
This error usually means one of two things: ffmpeg is not installed, or it is installed but your terminal cannot find it. yt-dlp needs ffmpeg for audio extraction, post-processing, and combining separate video and audio streams.
Quick answer
Check whether ffmpeg is available first.
ffmpeg -versionIf that command fails, yt-dlp is not the real problem yet. Install ffmpeg and make sure your shell can see it.
Install ffmpeg by platform
# macOS
brew install ffmpeg
# Windows
winget install Gyan.FFmpeg
# Ubuntu / Debian
sudo apt install ffmpegAfter installation, close and reopen the terminal before testing again. PATH updates often do not appear in an old shell session.
Which ffmpeg error did you get?
yt-dlp words the error by what it was trying to do when it needed ffmpeg. The fix is the same for all of them (install ffmpeg or tell yt-dlp where it is), but the message tells you which step needs it.
ERROR: Postprocessing: ffprobe and ffmpeg not found. Please install or provide the path using --ffmpeg-location
A post-processing step ran (-x / --extract-audio, --audio-format, --embed-thumbnail, --remux-video) after the download finished. The file is already on disk; only the conversion failed.
ERROR: Postprocessing: ffmpeg not found. Please install or provide the path using --ffmpeg-location
Same as above, but yt-dlp found ffprobe and not ffmpeg. Usually a half-installed or partly copied ffmpeg folder.
You have requested merging of multiple formats but ffmpeg is not installed
Your format asks for separate video and audio (the default bv*+ba, or -f bestvideo+bestaudio). Without ffmpeg yt-dlp cannot join them, and with --abort-on-error it stops.
You have requested downloading the video partially, but ffmpeg is not installed
You used --download-sections to cut a clip. Cutting needs ffmpeg.
ffmpeg is installed but yt-dlp still can't find it
Point yt-dlp at it directly with --ffmpeg-location. It takes the ffmpeg binary or the folder that holds ffmpeg and ffprobe:
# Linux / macOS
yt-dlp -x --audio-format mp3 --ffmpeg-location /usr/local/bin "URL"
# Windows (the bin folder of the ffmpeg zip)
yt-dlp -x --audio-format mp3 --ffmpeg-location "C:\ffmpeg\bin" "URL"To stop passing it every time, add the same --ffmpeg-location line to your yt-dlp config file. If the folder you pass doesn't exist, yt-dlp warns "does not exist! Continuing without ffmpeg" and you get the same error again, so check the path.
On a server or in Docker
Slim Python images and most serverless runtimes don't include ffmpeg, so code that works on your laptop fails with these errors once deployed. Install it in the image:
FROM python:3.12-slim
RUN apt-get update && apt-get install -y --no-install-recommends ffmpeg \
&& rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir -U yt-dlpWhere you can't install packages (AWS Lambda, some PaaS builds), ship a static ffmpeg build with the app and pass its folder with --ffmpeg-location. See the server and Docker guide and the Lambda guide for the rest of the setup.
Why yt-dlp needs ffmpeg
- • merging separate best-video and best-audio streams
- • converting extracted audio to MP3 or another format
- • remuxing or post-processing media outputs
If you only download a simple combined stream, you might avoid ffmpeg for a while. But as soon as you want better quality or audio conversion, you usually need it.
Most common causes
- • ffmpeg was never installed
- • it was installed, but not added to PATH
- • the terminal needs to be restarted
- • you have multiple shells or environments and installed it in one but not the one running yt-dlp
The mistake to avoid
Do not keep changing yt-dlp flags while ffmpeg is still unavailable. If ffmpeg -version fails, fix that first. Otherwise you are debugging the wrong layer.
If it keeps breaking
Tired of fixing this every time a site changes?
Paste a link to see what a managed import API returns — the one that stays current so your workflow doesn't break.
Building this into an app? See the API your backend calls instead
Frequently asked questions
What does "ffprobe and ffmpeg not found" mean in yt-dlp?
yt-dlp downloaded the file but could not run a post-processing step, such as converting to MP3 with -x, because it cannot find the ffmpeg and ffprobe programs. Install ffmpeg (it includes ffprobe) and reopen the terminal, or point yt-dlp at the folder with --ffmpeg-location.
How do I tell yt-dlp where ffmpeg is?
Pass --ffmpeg-location with either the ffmpeg binary or the folder that holds ffmpeg and ffprobe, for example --ffmpeg-location "C:\ffmpeg\bin" on Windows or --ffmpeg-location /opt/ffmpeg/bin on Linux. To make it permanent, put the same line in your yt-dlp config file.
Can I use yt-dlp without ffmpeg?
Yes, if you ask for a single file that already has video and audio together, for example -f b, and skip conversions. You lose the best quality on YouTube, because the highest resolutions come as separate video and audio streams that need ffmpeg to merge.
Why does yt-dlp find ffmpeg on my laptop but not on the server or in Docker?
Slim base images such as python:3.12-slim and most serverless runtimes do not include ffmpeg. Install it in the image (apt-get install -y ffmpeg) or ship a static build and pass its folder with --ffmpeg-location.