Troubleshooting
Start every diagnosis the same way:
update first (pip install -U yt-dlp,
or yt-dlp -U for the standalone file),
then re-run with the same command. Sites
change weekly; a remarkable share of
errors are an old extractor meeting a
new page. What survives an update gets
read below — symptom, cause, fix. Every
entry was met in the lab unless marked
documented.
"Sign in to confirm you're not a bot"
The host distrusts your address and wants a logged-in session. Seen from datacenter addresses (transcript t01). Fix: present your own session's cookies (chapter 9), or try from a connection the host treats as residential. No cookie file of anyone else's, ever — it is their session key.
"HTTP Error 429: Too Many Requests"
You (or everyone sharing your address)
asked too often. Wait — minutes to hours;
retrying immediately extends it. For
repeat work, --sleep-requests 1 spaces
requests out before the host insists.
Fragment downloads dying mid-stream
Hundreds of "Connection refused" retries,
then skips (transcript t10): the host's
segment server is refusing the built-in
fragment downloader's pace. Fix that
worked in the lab: --downloader ffmpeg,
same command otherwise (transcript t11).
Waiting and retrying also resumes from
the .part and .ytdl state rather than
starting over.
"Postprocessing: unable to obtain file audio codec"
ffmpeg's probe found no audio to extract
— in the lab, because the clip truly had
none (transcript t08). Fix: ffprobe
<file> and read the streams. If there is
no audio stream, no option creates one.
ffmpeg not found / merging unavailable
Downloads finish but merges and -x
fail: ffmpeg is missing or not where
yt-dlp looks. Install it (chapter 3) or
point with --ffmpeg-location. A merged
format (bv+ba) requires it; there is
no merge without a merger.
"has already been recorded in the archive" — for something new
A download archive is being read that you
did not pass — almost always from a
config file in the current folder
(transcript t13, chapter 9). Fix:
--ignore-config to prove it, then
decide whether that config should exist.
The same stray config explains options
you never typed taking effect.
The filter picked something huge
-f "b[height<=480]" returned the biggest
format going: the filter matched nothing
(missing metadata — transcript t12) and
a / fallback took over. Fix: read -F,
dry-run selectors with --simulate
--print format_id (transcript t05), and
write fallbacks you actually mean.
"Unsupported URL"
No extractor takes that address shape.
Fix: try the item's canonical address
rather than a listing or account page
(chapter 8's two channel addresses),
confirm the site in --list-extractors,
update. If the site truly has none, the
generic extractor gets one attempt —
sometimes enough for embedded media.
Metadata reads timing out
The lab's first archive.org listing died
on a read timeout and succeeded retried
with --socket-timeout 60 (transcript
t04). Slow hosts and big pages both do
this; raise the timeout before blaming
the extractor.
"No supported JavaScript runtime could be found"
A warning on sites (YouTube above all)
that now expect the downloader to run
JavaScript. Install deno and the
warning goes; whether the site then
cooperates is the separate question
answered by the bot-check entry above.
(Documented; the lab left the runtime
absent and recorded the consequence.)
It worked last month
Yes — that is the normal failure mode of
this entire category of software. Update,
then read the new error; the chapters'
transcripts were all produced by the
version named in criteria.md, and the
next version will differ in details
nobody can promise in advance.