Skip to content

Writing Criteria

Every guide in this repo is written to the same standard. If you're adding or editing a guide — human or AI — hold it to these.

  1. Plain words, real ideas. Simple language, never dumbed-down concepts. Explain jargon on first use; collect terms in the glossary.
  2. No hype. No marketing adjectives, no "revolutionary," no promises about what something will do for the reader.
  3. Honest about limits. Say what the thing can't do. State uncertainty instead of smoothing it over. Validation notes include what remains unverified.
  4. No invented numbers. Benchmarks, defaults, and specs are either measured or qualified with "depends on your setup." If it wasn't tested, say so.
  5. Checkable. Commands are meant to be run, with "Check:" blocks showing what success looks like. Sources are linked, not asserted.
  6. Respect the reader's setup. Call out Windows/Mac/Linux differences. Don't assume a GPU, a budget, or prior experience.
  7. Safety isn't skipped. Real risks get stated plainly, not buried.
  8. Scoped. Each guide says what it covers and points elsewhere for the rest. No guide pretends to be the whole subject.
  9. Structure over prose. Tables, before/after examples, symptom → fix. Scannable beats essay.

Verification notes for this guide

Built and verified 2026-10-24/25 against yt-dlp 2026.10.21 (installed with pip into a Python 3.12.3 venv) and ffmpeg/ffprobe 8.1.2, on an Ubuntu 24.04 sandbox machine reaching the web from a datacenter address. This build reports 1,755 extractors. All downloads were of freely licensed material from public pages; no account, login or cookie was used anywhere in the lab.

Primary behaviour read from live runs, not remembered: format tables and selector semantics (PeerTube and TED), the download archive's early blocking, config-file discovery in the current folder, and the fragment downloader's failure mode all come from the lab's own transcripts below; option names and the cookie workflow in chapter 9 follow the project's documentation and are labelled documented-only where the lab could not exercise them.

The refusal, declared. The sandbox reaches the web from a datacenter address, and YouTube distrusts such addresses. Its one attempted interaction (transcript t01) returned HTTP 429 and then "Sign in to confirm you're not a bot", with a companion warning that no JavaScript runtime is installed. The usual remedy — presenting a logged-in browser session's cookies — was deliberately not used: the lab held no such session and does not borrow one. YouTube downloads are therefore documented only in this guide, and every YouTube-adjacent claim is confined to what t01 shows. Readers on residential connections should expect the same commands to behave as documented; the guide does not claim it proved so.

Ran for real (transcripts in yt-dlp-lab/transcripts/; progress-bar redraws trimmed, errors kept):

  • t00 — versions: yt-dlp 2026.10.21, ffmpeg/ffprobe 8.1.2, Python 3.12.3.
  • t01 — the YouTube refusal, kept whole: 429 retries, the missing-JS-runtime warning, and the bot-check error demanding cookies.
  • t02 — -F on PeerTube (Blender Foundation's instance): Big Buck Bunny as four progressive MP4 formats, 240p–720p; the benign description-400 warning visible.
  • t03 — a real download: the 480p format, 78,466,566 bytes on disk, ffprobe confirming 852x480 h264 and 5.1 AAC, duration 9:56.57.
  • t04 — -F on archive.org: derivative and original 720p formats. The first attempt died on a metadata read timeout; the listing shown is the --socket-timeout 60 retry.
  • t05 — selector semantics, simulated: default picks 720p, b[height<=480] picks 480p, w picks 240p, -S res:360 picks 360p; --print of title, duration, ID and extractor.
  • t06 — TED subtitles: --list-subs (dozens of languages, all VTT) and a real subtitle download, the English track at 33,594 bytes, first cue checked against the talk's opening.
  • t07 — --list-subs answering "has no subtitles" for two PeerTube films and a media.ccc.de talk: extraction works; the material has no tracks.
  • t08 — audio extraction failing honestly: the archive.org clip has no audio stream (ffprobe: one video stream only), and -x ends in the ffprobe postprocessing error.
  • t09 — audio extraction succeeding: the 240p film download converted to a 17,702,452-byte MP3, ffprobe duration 9:56.57 — the film's full length.
  • t10 — the TED merge failing: the native fragment downloader stalls at about fragment 110 of 193 as TED's segment host refuses connections (417 refusals in the full log).
  • t11 — the same merge with --downloader ffmpeg: one MP4, 22,977,736 bytes, ffprobe showing the merged h264 video (320x180) and AAC audio, duration 19:11.85.
  • t12 — playlists: --flat-playlist lists the Blender Open Movies channel's 23 items (durations NA); --playlist-items 1 downloads the OVERGROWN teaser (34,857,250 bytes) under a padded-index template. The format filter fell through to the 2578x1080 variant — that item's formats carry no numeric height — and the transcript and chapter 5 say so rather than tidying it away.
  • t13 — config and archive: the lab config (yt-dlp-lab/yt-dlp.conf) drives a download unaided; the second run is skipped as already archived. The coda is real too: the folder's config was auto-read by the later t11 and t12 runs, which recorded themselves in its archive (tedtalk 66, peertube gaGB17Qu1F5…), and a later -F was refused on archive grounds until --no-config. Chapter 9 teaches from it.

Documented only, and labelled as such in the chapters: all YouTube downloads and every cookie workflow (--cookies-from-browser, --cookies); subtitle embedding (--embed-subs), subtitle conversion (--convert-subs), and automatic captions (--write-auto-subs); downloading a whole playlist (one item of 23 was fetched, not the channel's catalogue); external downloaders (--external-downloader); installing a JavaScript runtime (deno) and everything that depends on it; the standalone-binary and distro-package install routes (the lab used pip in a venv); and every site not among the five exercised — PeerTube, archive.org, ted.com, media.ccc.de, and the refused youtube.com.

Fixtures: all material is real and freely licensed — Blender Foundation open movies via video.blender.org, an Internet Archive copy of a 10-second Big Buck Bunny clip, and a public TED talk. Nothing was fabricated, no account was used, and no example is modelled on any real person, organisation or event beyond the published works themselves. Downloaded media was deleted after verification; the transcripts are the record that remains.