# Fix "Requested format is not available" in yt-dlp

Fix 'Requested format is not available. Use --list-formats' in yt-dlp: check -F, read the JavaScript-runtime warnings above it on YouTube, and use fallback selectors in the CLI or Python.

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.

```bash
ERROR: [youtube] VIDEO_ID: Requested format is not available. Use --list-formats for a list of available formats
```

## Quick answer

```bash
# 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.

<BreakageAlerts />

## 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 -U` and check `-F` again before changing selectors.
- **MP4-only expectations**. Many high-quality streams are VP9/AV1 in WebM. If you need MP4 specifically, prefer `--remux-video mp4` or 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:

```bash
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](/guides/yt-dlp-docker-js-runtime) shows the Dockerfile lines, and [nsig extraction failed](/guides/fix-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:

```bash
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 formats
```

Run `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](/guides/yt-dlp-youtube-player-client), pass [cookies](/guides/yt-dlp-cookies) from a throwaway account, add a [PO token provider](/guides/yt-dlp-po-token-server), and [slow down](/guides/yt-dlp-rate-limit-avoid-blocks). The [blocked on a server guide](/guides/yt-dlp-blocked-on-server) goes through each one.

<HostedAnswer>
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.
</HostedAnswer>

## 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`.

```python
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](/guides/yt-dlp-python).

## 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.

<DocCta variant="troubleshooting-soft" />

<Faq />

## Related guides

- [yt-dlp format selection explained](/guides/yt-dlp-format-selection)
- [Fix "The downloaded file is empty" (fragment HTTP 500)](/guides/yt-dlp-fragment-500-empty-file)
- [Fix "nsig extraction failed"](/guides/fix-nsig-extraction-failed)
- [Fix "ffmpeg not found"](/guides/fix-ffmpeg-not-found)
- [Fix common yt-dlp errors](/guides/fix-yt-dlp-errors)