Troubleshooting guide
Fix "Requested format is not available" in yt-dlp
You asked for a format the video does not offer right now. Formats are not a stable menu — sites add and remove them per video, per region, and per client, so a format selector that worked last month can miss today. The fix is to see what actually exists, then select with fallbacks instead of exact demands.
ERROR: [youtube] VIDEO_ID: Requested format is not available. Use --list-formats for a list of available formatsQuick answer
# See every format this video offers right now
yt-dlp -F "URL"
# Then download with fallbacks instead of exact IDs
yt-dlp -f "bv*+ba/b" "URL"bv*+ba/b means: best video plus best audio, or the best combined file if merging is not possible. It degrades gracefully instead of erroring when a specific format is missing.
This will break again. Get an email next time.
2–4 emails a month, only when something breaks or gets fixed. Unsubscribe anytime.
Common causes, mapped to fixes
- Hardcoded format IDs (like
-f 137+140). IDs vary per video and disappear without notice. Use selector expressions with/fallbacks instead. - Asking for a resolution that does not exist. Use a ceiling, not an exact match:
-f "bv*[height<=1080]+ba/b[height<=1080]". - Old yt-dlp seeing a partial format list. When extraction half-breaks, entire groups of formats vanish. Run
yt-dlp -Uand check-Fagain before changing selectors. - MP4-only expectations. Many high-quality streams are VP9/AV1 in WebM. If you need MP4 specifically, prefer
--remux-video mp4or accept what exists and convert after.
On YouTube: read the warnings above the error
Since late 2025 the most common reason on YouTube is not your selector. yt-dlp needs a JavaScript runtime to solve YouTube's player challenges, and when it can't, it drops most formats and then your selector finds nothing. Scroll up from the error and look for one of these:
WARNING: [youtube] No supported JavaScript runtime could be found. ... some formats may be missing.
WARNING: [youtube] VIDEO_ID: n challenge solving failed: Some formats may be missing.
WARNING: [youtube] VIDEO_ID: Signature solving failed: Some formats may be missing.If you see them, fixing the format string won't help. Update yt-dlp, install deno (the runtime yt-dlp enables by default), and try again. In Docker or on a server, the JS runtime guide shows the Dockerfile lines, and nsig extraction failed covers the challenge errors.
On a server: "Only images are available"
If yt-dlp works on your laptop but fails on a VPS, in Docker on a cloud host or in CI, look for this warning just above the error:
WARNING: Only images are available for download. use --list-formats to see them
ERROR: [youtube] VIDEO_ID: Requested format is not available. Use --list-formats for a list of available formatsRun yt-dlp -F on the same URL from that machine. If the only rows are sb0 to sb3 (mhtml, storyboard), YouTube sent the preview thumbnails and no audio or video at all. That usually means it doesn't trust the IP: cloud and datacenter ranges get bot checks that a home connection never sees. No format string can pick a stream that isn't in the list, so changing -f won't help.
What does help, in rough order of effort: update yt-dlp, try one other player client, pass cookies from a throwaway account, add a PO token provider, and slow down. The blocked on a server guide goes through each one.
Short answer: When only storyboard images come back, the server's IP is being blocked, not your selector. Cookies, a PO token and a slower request rate can get formats back for a while. If downloads have to keep working inside an app, a hosted API such as Importly takes the link and returns the file, transcript or metadata, and it works from servers where self-hosted downloads get blocked, with nothing to install or patch on the box.
In the Python API
The same rule applies when you call yt-dlp from code: give the format option a selector with fallbacks so a missing format degrades instead of raising DownloadError.
from yt_dlp import YoutubeDL
opts = {"format": "bv*[height<=1080]+ba/b[height<=1080]/b"}
with YoutubeDL(opts) as ydl:
ydl.download(["URL"])More on calling yt-dlp from code in the Python guide.
Reading -F output without pain
The table lists format ID, extension, resolution, and notes. Video-only rows have no audio column value; audio-only rows have no resolution. Anything you pick from the video-only section needs a +ba companion and ffmpeg to merge. If the list looks suspiciously short, that is usually extraction breakage, not the video — update first.
The mistake to avoid
Do not copy format strings from years-old Stack Overflow answers into scripts and expect them to hold. Every hardcoded ID is a future failure. Selectors with fallbacks are the only format strings safe to automate.
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 "Requested format is not available. Use --list-formats for a list of available formats" mean?
Your -f selector matched nothing in the list of formats yt-dlp found for this video. Either the selector is too strict (an exact format ID or resolution), or yt-dlp found fewer formats than usual because extraction partly failed. Run yt-dlp -F on the URL to see what is actually there.
Why did the same format string work yesterday?
Format IDs and the formats on offer change per video, per region and per client, and on YouTube whole groups of formats disappear when yt-dlp cannot solve the player's JavaScript challenge. Update yt-dlp, make sure a JavaScript runtime such as deno is installed, and use selectors with / fallbacks instead of IDs.
How do I set a fallback format in the yt-dlp Python API?
Pass the same selector string as the format option, for example {'format': 'bv*[height<=1080]+ba/b[height<=1080]/b'}. The last /b means any combined file is accepted rather than raising the error.