youtube-downloader
Skill1.4k starsChanged 8 months agoMITView on GitHub
Download YouTube videos and HLS streams (m3u8) from platforms like Mux, Vimeo, etc. using yt-dlp and ffmpeg. Use this skill when users request downloading videos, extracting audio, handling protected streams with authentication headers, or troubleshooting download issues like nsig extraction failures, 403 errors, or cookie extraction problems.
- Installs packages
26 other projects use a version of this, 1 of them edited.
Trending
Less talk lately.thin dataabout the whole repository
Most recently taken up by
- BrightGold70/skillstheir own version, first seen Sep 29, 2026
- OpenMinis/MinisSkillstheir own version, first seen Sep 4, 2026
- wlzh/skillstheir own version, first seen Aug 28, 2026
- Hassaan146/claude-skillstheir own version, first seen Jul 25, 2026
- agrivisionai/claude-skillstheir own version, first seen Jul 14, 2026
- Sydneygotoman/skillstheir own version, first seen Jul 6, 2026
Who's talking about daymade/claude-code-skills
- Ven0m0/claude-config“Add a structured external integration plan to the root TODO backlog”GitHub · Mar 18, 2026 · 4 reactions
- Ven0m0/claude-config“TODO list”GitHub · Jan 31, 2026 · 1 reactions
- sudosubin/agents.nix“claude-code-plugins.github.daymade.claude-code-skills: init at 1.64.0”GitHub · Oct 4, 2026
- sudosubin/agents.nix“claude-code-marketplaces.github.daymade.claude-code-skills: init at 1.64.0”GitHub · Oct 4, 2026
- sudosubin/agents.nix“agent-skills.github.daymade.claude-code-skills: init at 1.64.0”GitHub · Sep 26, 2026
The biggest 5 of 14 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 14
Talked about on GitHub (14 times).
On GitHub · 14
- Mar 18, 2026Add a structured external integration plan to the root TODO backlog — Ven0m0/claude-config4 reactions · 4 comments
- Jan 31, 2026TODO list — Ven0m0/claude-config1 reaction · 18 comments
- Oct 4, 2026claude-code-plugins.github.daymade.claude-code-skills: init at 1.64.0 — sudosubin/agents.nix0 reactions
- Oct 4, 2026claude-code-marketplaces.github.daymade.claude-code-skills: init at 1.64.0 — sudosubin/agents.nix0 reactions
- Sep 26, 2026agent-skills.github.daymade.claude-code-skills: init at 1.64.0 — sudosubin/agents.nix0 reactions
9 more on GitHub
- Aug 28, 2026candidate: scrapling-skill — BigPengSays/awesome-creator-skills0 reactions
- Aug 24, 2026candidate: scrapling-skill — BigPengSays/awesome-creator-skills0 reactions
- Aug 23, 2026candidate: scrapling-skill — BigPengSays/awesome-creator-skills0 reactions
- Jul 5, 2026[Skills Review Weekly] 2026-07-06 — nozomiishii/dotfiles0 reactions
- May 30, 2026Add daymade-skills plugin marketplace to project settings — fmassonmips/mips-platform0 reactions
- Apr 11, 2026Mac 磁盘撑爆了怎么办? — vv13/blog0 reactions
- Mar 19, 2026feat: prompt manager — gohypergiant/agent-skills0 reactions · 3 comments
- Feb 6, 2026🟢 Importar skills de pesquisa, otimização e verificação (claude-code-skills) — arbgjr/sdlc_agentico0 reactions
- Nov 23, 2025Explore github-ops skill — PaulRBerg/dot-claude0 reactions · 1 comment
Used with
Projects with it also use twitter-algorithm-optimizer.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
trendinuxSkilltwitter-algorithm-optimizer
Analyze and optimize tweets for maximum reach using Twitter's open-source algorithm insights. Rewrite and edit user tweets to improve engagement and visibility based on how the recommendation system ranks content.
Also in 9 projects that use this
Other versions26 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- GoogleMakesMeBetter/claude-skills-collection★ 1100% same
Wrote their own version · 25
- ComposioHQ/awesome-claude-skills★ 77ksame name
- composio-community/awesome-codex-skills★ 17ksame name
- wlzh/skills★ 617same name
- OpenMinis/MinisSkills★ 438same name
- ArogyaReddy/ComposioHQ-awesome-claude-skills★ 49same name
- aviz85/claude-skills-library★ 49same name
- frostant/awesome-claude-skills★ 45same name
- crazynomad/skills★ 27same name
- Hassaan146/claude-skills★ 18same name
- Engineer1999/A-Curated-List-of-Awesome-Claude-Skills★ 4same name
15 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository55 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- daymade-skill/CLAUDE.mdCLAUDE.md
- auto-repo-setupSkill
- bilibili-sourceSkill
- cli-demo-generatorSkill
- cloudflare-troubleshootingSkill
- competitors-analysisSkill
- data-visualization-disciplineSkill
- debugging-network-issuesSkill
- deep-researchSkill
- douban-skillSkill
- download-gemini-imagesSkill
- excalidraw-useSkill
- fact-checkerSkill
- feishu-doc-scraperSkill
- frontend-visual-qaSkill
- gemini-history-analyzerSkill
- ghostty-useSkill
- github-contributorSkill
- github-opsSkill
- github-review-prSkill
- github-sensitive-data-cleanupSkill
- git-safety-netSkill
- i18n-expertSkill
- ima-copilotSkill
- kimi-useSkill
- llm-eval-harnessSkill
- llm-icon-finderSkill
- llm-wiki-setupSkill
- marketplace-health-checkSkill
- meme-creatorSkill
- notify-wecomSkill
- openclaw-model-switchSkill
- openclawSkill
- peer-messageSkill
- product-analysisSkill
- promptfoo-evaluationSkill
- prompt-optimizerSkill
- qa-expertSkill
- repomix-safe-mixerSkill
- repomix-unmixerSkill
- report-with-htmlSkill
- scrapling-skillSkill
- setup-notifications-via-wecomSkill
- slides-creatorSkill
- teams-channel-post-writerSkill
- terraform-skillSkill
- tibo-reset-codexSkill
- tunnel-doctorSkill
- twitter-readerSkill
- ui-designerSkill
- video-comparerSkill
- windows-remote-desktop-connection-doctorSkill
- wps-doc-scraperSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
57 rules. 0 are common, 43 are distinctive, and 14 are very specific to this project.
0
Common
Most of the 25 edited versions we read keep these.
43
Distinctive
This author's own choices. Worth a look.
14
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
Ask for the URL (if not provided).
- Very specific: line 22
If yt-dlp is blocked by “confirm you’re not a bot”, fall back to YouTube oEmbed for title/uploader/thumbnail (duration may be unknown).
- Very specific: line 38
If metadata includes a thumbnail URL, include it using Markdown image syntax: !Thumbnail.
- Distinctive: line 43
Ask before extracting browser cookies.
- Distinctive: line 44
If using cookies, never mention cookie counts or raw cookie details in user-facing responses.
- Distinctive: line 45
If verification is required, automatically set up a local PO Token helper (no user actions).
- Distinctive: line 69
If blocked by a 403, automatically set up the verification helper and retry.
- Distinctive: line 73
Follow this SOP to avoid common failures and confusion:
- Very specific: line 76
Ensure proxy is active for both yt-dlp and PO Token providers (HTTP_PROXY/HTTPS_PROXY/ALL_PROXY).
- Distinctive: line 77
If you see “Sign in to confirm you’re not a bot”, request permission and use browser cookies.
- Distinctive: line 78
Start a PO Token provider before downloading (fail fast if it cannot start).
- Distinctive: line 79
Use Docker bgutil provider when available.
- Distinctive: line 80
If Docker is missing or fails, switch to browser-based WPC provider.
- Very specific: line 81
If cookies are in use, prefer the web_safari player client.
- Distinctive: line 82
Keep the browser window open while WPC is minting tokens.
- Distinctive: line 83
If you get “Only images are available” or “Requested format is not available”, treat it as a PO Token failure and retry after fixing token …
- Distinctive: line 84
If you get SSL EOF or fragment errors, treat it as a proxy/network issue.
- Very specific: line 88
Run scripts/download_video.py URL --info (add --cookies-from-browser chrome if permission granted) to fetch metadata and thumbnail.
- Very specific: line 89
If yt-dlp metadata fails, rely on the script’s oEmbed fallback for title/uploader/thumbnail and note that duration may be unavailable.
- Distinctive: line 90
If a thumbnail URL is present, render it in the response with Markdown image syntax.
- Distinctive: line 91
Ask the user to choose video vs.
- Distinctive: line 92
Use a friendly default save location (Downloads folder) unless the user specifies a folder.
- Distinctive: line 94
After download, report file name, size, and resolution (if video) in plain language.
- Distinctive: line 95
If download fails with 403/fragment errors, retry once with non-m3u8 progressive formats.
- Very specific: line 96
If “Sign in to confirm you’re not a bot” appears, request cookie access and retry with cookies + web_safari.
- Distinctive: line 97
If “Only images are available” appears, treat it as PO Token failure and retry after fixing provider/browser state.
- Very specific: line 98
Start the PO Token provider before downloads (--auto-po-token default).
- Distinctive: line 99
If Docker-based provider fails (common in China), automatically fall back to the browser-based WPC provider (it may briefly open a browser …
- Distinctive: line 100
If the WPC provider is used, keep the browser window open until download starts.
- Distinctive: line 101
If the PO Token provider times out, restart it once and retry.
- Very specific: line 102
If a system proxy is configured, pass it into the provider container.
- Distinctive: line 112
Ask about downloading YouTube content in specific quality (1080p, 4K, etc.)
- Distinctive: line 126
If not installed or outdated (< 2025.10.22):
- Distinctive: line 138
Before downloading, check available formats:
- Very specific: line 160
Verification: Run yt-dlp -F "VIDEO_URL" again.
- Distinctive: line 192
If PO token provider setup is problematic, use browser cookies:
- Distinctive: line 204
Must be logged into YouTube in the specified browser.
- Distinctive: line 206
Do not use Android client with cookies (Android client does not support cookies).
- Distinctive: line 274
Ensure the browser and yt-dlp use the same IP/proxy.
- Distinctive: line 282
Verify PO Token provider is running before download.
- Distinctive: line 283
Keep the browser window open if using WPC.
- Very specific: line 284
If cookies are in use, prefer web_safari client and retry.
- Distinctive: line 294
Update yt-dlp to latest version
- Very specific: line 296
If still failing and PO tokens are disabled, use Android client: yt-dlp --extractor-args "youtube:player_client=android" "VIDEO_URL"
- Distinctive: line 305
Avoid closing the PO token browser window during download.
- Distinctive: line 326
Use this convenience wrapper to auto-start a PO Token provider by default for high-quality downloads.
- Distinctive: line 355
Note: Use the Android client only when PO tokens are disabled.
- Distinctive: line 393
Check the Network tab to see which headers the browser sends.
- Very specific: line 397
Use ffmpeg with the -headers flag for protected streams:
- Distinctive: line 458
Verify Referer header matches the video source website
- Distinctive: line 459
Check if additional headers (Origin, User-Agent) are needed
- Distinctive: line 460
Ensure the m3u8 URL includes all query parameters from browser
- Distinctive: line 466
Solution: Use ffmpeg directly instead of yt-dlp for HLS streams.
- Distinctive: line 481
Look for rendition URLs with updated signature parameters
- Very specific: line 486
No re-encoding with -c copy (fastest)
- Distinctive: line 488
Use absolute output paths to avoid directory confusion
- Distinctive: line 499
After downloading, if the user's goal involves getting text from the video (transcription, subtitles, meeting notes), proactively suggest:
“Common” is measured: kept by at least 6 in 10 of the 25 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
YouTube Downloader
Overview
Enable reliable video and audio downloads from YouTube and HLS streaming platforms (Mux, Vimeo, etc.) using yt-dlp and ffmpeg. This skill provides workflows for:
- YouTube downloads (up to 4K) using PO token providers or browser cookies
- HLS stream downloads with authentication headers
- Handling protected content and troubleshooting common download failures
Non-Technical User Experience (Default)
Assume the user is non-technical. Do not ask them to run commands. Execute everything yourself and report progress in plain language. Avoid mentioning tooling unless the user asks.
Default flow:
- Ask for the URL (if not provided).
- Fetch video metadata (title/uploader/duration/thumbnail) and confirm it matches the user's intent.
- If yt-dlp is blocked by “confirm you’re not a bot”, fall back to YouTube oEmbed for title/uploader/thumbnail (duration may be unknown).
- Offer simple choices (video vs. audio-only, quality, subtitles, save location).
- Proceed with sensible defaults if the user does not specify:
- Video download at best quality
- MP4 merged output
- Single video only (no playlists)
- Download and report the final file path, file size, and resolution (if video).
Offer choices in user-friendly terms:
- “Download the video in best quality (default)”
- “Download audio only (MP3)”
- “Pick a quality: 1080p / 720p / 480p / 360p”
- “Include subtitles (if available)”
- “Save to the Downloads folder (default) or tell me another folder”
Always render the thumbnail when available:
- If metadata includes a thumbnail URL, include it using Markdown image syntax:
.
Ask before doing extra work:
- Confirm playlist downloads (can be large).
- Confirm installing/upgrading dependencies if missing.
- Ask before extracting browser cookies.
- If using cookies, never mention cookie counts or raw cookie details in user-facing responses. Say “used your Chrome login session”.
- If verification is required, automatically set up a local PO Token helper (no user actions). If Docker is missing or fails, do not attempt to install Docker—switch to the browser-based PO Token provider instead.
Legal/Safety reminder (brief):
- Proceed only if the user has the rights or permission to download the content.
Response template (use plain language, no commands):

Title: …
Channel: …
Duration: …
I can help you:
1) Download the video (best quality, MP4)
2) Download audio only (MP3)
3) Pick a specific quality (1080p/720p/480p/360p)
4) Include subtitles (if available)
Where should I save it? (Default: Downloads folder)If the user says “just download”:
- Proceed with defaults and confirm when the download finishes.
- If blocked by a 403, automatically set up the verification helper and retry.
Reliable Download SOP (Internal)
Follow this SOP to avoid common failures and confusion:
- Quote URLs in shell commands (zsh treats
?as a glob). Example:'https://www.youtube.com/watch?v=VIDEO_ID'. - Ensure proxy is active for both yt-dlp and PO Token providers (HTTP_PROXY/HTTPS_PROXY/ALL_PROXY).
- If you see “Sign in to confirm you’re not a bot”, request permission and use browser cookies. Do not proceed without cookies.
- Start a PO Token provider before downloading (fail fast if it cannot start).
- Use Docker bgutil provider when available.
- If Docker is missing or fails, switch to browser-based WPC provider.
- If cookies are in use, prefer the
web_safariplayer client. Otherwise prefermwebfor PO tokens. - Keep the browser window open while WPC is minting tokens. Ensure Chrome can reach YouTube through the same proxy.
- If you get “Only images are available” or “Requested format is not available”, treat it as a PO Token failure and retry after fixing token provider/browser state.
- If you get SSL EOF or fragment errors, treat it as a proxy/network issue. Retry with progressive formats and/or a better proxy.
Agent Execution Checklist (Internal)
- Run
scripts/download_video.py URL --info(add--cookies-from-browser chromeif permission granted) to fetch metadata and thumbnail. - If yt-dlp metadata fails, rely on the script’s oEmbed fallback for title/uploader/thumbnail and note that duration may be unavailable.
- If a thumbnail URL is present, render it in the response with Markdown image syntax.
- Ask the user to choose video vs. audio-only and (optionally) a quality preset.
- Use a friendly default save location (Downloads folder) unless the user specifies a folder.
- For subtitles, run with
--subtitlesand the requested--sub-lang. - After download, report file name, size, and resolution (if video) in plain language.
- If download fails with 403/fragment errors, retry once with non-m3u8 progressive formats.
- If “Sign in to confirm you’re not a bot” appears, request cookie access and retry with cookies +
web_safari. - If “Only images are available” appears, treat it as PO Token failure and retry after fixing provider/browser state.
- Start the PO Token provider before downloads (
--auto-po-tokendefault). Fail fast if it cannot start. - If Docker-based provider fails (common in China), automatically fall back to the browser-based WPC provider (it may briefly open a browser window).
- If the WPC provider is used, keep the browser window open until download starts. If the browser fails to launch, set the Chrome path explicitly.
- If the PO Token provider times out, restart it once and retry.
- If a system proxy is configured, pass it into the provider container. If the proxy points to 127.0.0.1/localhost, rewrite it to
host.docker.internalfor Docker.
When to Use This Skill
This skill should be invoked when users:
- Request downloading YouTube videos or playlists
- Want to extract audio from YouTube videos
- Experience yt-dlp download failures or limited format availability
- Need help with format selection or quality options
- Report only low-quality (360p) formats available
- Ask about downloading YouTube content in specific quality (1080p, 4K, etc.)
- Need to convert downloaded WebM videos to MP4 format for wider compatibility
- Request downloading HLS streams (m3u8) from platforms like Mux, Vimeo, or other streaming services
- Need to download protected streams that require authentication headers
Prerequisites
1. Verify yt-dlp Installation (Run this yourself)
which yt-dlp
yt-dlp --versionIf not installed or outdated (< 2025.10.22):
brew upgrade yt-dlp # macOS
# or
pip install --upgrade yt-dlp # Cross-platformCritical: Outdated yt-dlp versions cause nsig extraction failures and missing formats.
2. Check Current Quality Access (Run this yourself)
Before downloading, check available formats:
yt-dlp -F "https://youtu.be/VIDEO_ID"If only format 18 (360p) appears: PO token provider setup needed for high-quality access.
High-Quality Download Workflow
Step 1: Install PO Token Provider (One-time Setup)
For 1080p/1440p/4K access, install a PO token provider plugin into yt-dlp's Python environment:
# Find yt-dlp's Python path (interpreter used by yt-dlp)
head -1 $(which yt-dlp)
# Install plugin using the interpreter from the line above
<YTDLP_PYTHON> -m pip install bgutil-ytdlp-pot-providerVerification: Run yt-dlp -F "VIDEO_URL" again. Look for formats 137 (1080p), 271 (1440p), or 313 (4K).
See references/po-token-setup.md for detailed setup instructions and troubleshooting.
Step 2: Download with Best Quality
Once PO token provider is installed:
# Download best quality up to 1080p
yt-dlp -f "bestvideo[height<=1080]+bestaudio/best" "VIDEO_URL"
# Download best available quality (4K if available)
yt-dlp -f "bestvideo+bestaudio/best" "VIDEO_URL"Step 3: Verify Download Quality
# Check video resolution
ffprobe -v error -select_streams v:0 -show_entries stream=width,height,codec_name -of default=noprint_wrappers=1 video.mp4Expected output for 1080p:
codec_name=vp9
width=1920
height=1080Alternative: Browser Cookies Method
If PO token provider setup is problematic, use browser cookies:
# Firefox
yt-dlp --cookies-from-browser firefox -f "bestvideo[height<=1080]+bestaudio/best" "VIDEO_URL"
# Chrome
yt-dlp --cookies-from-browser chrome -f "bestvideo[height<=1080]+bestaudio/best" "VIDEO_URL"Benefits: Access to age-restricted and members-only content. Requirements:
- Must be logged into YouTube in the specified browser.
- Browser and yt-dlp must use the same IP/proxy.
- Do not use Android client with cookies (Android client does not support cookies).
Common Tasks
Audio-Only Download (Run this yourself)
Extract audio as MP3:
yt-dlp -x --audio-format mp3 "VIDEO_URL"Custom Output Directory (Run this yourself)
yt-dlp -P ~/Downloads/YouTube "VIDEO_URL"Download with Subtitles (Run this yourself)
yt-dlp --write-subs --sub-lang en "VIDEO_URL"Playlist Download (Run this yourself)
yt-dlp -f "bestvideo[height<=1080]+bestaudio/best" "PLAYLIST_URL"Convert WebM to MP4 (Run this yourself)
YouTube high-quality downloads often use WebM format (VP9 codec). Convert to MP4 for wider compatibility:
# Check if ffmpeg is installed
which ffmpeg || brew install ffmpeg # macOS
# Convert WebM to MP4 with good quality settings
ffmpeg -i "video.webm" -c:v libx264 -preset medium -crf 23 -c:a aac -b:a 128k "video.mp4"Parameters explained:
-c:v libx264: Use H.264 video codec (widely compatible)-preset medium: Balance between encoding speed and file size-crf 23: Constant Rate Factor for quality (18-28 range, lower = better quality)-c:a aac: Use AAC audio codec-b:a 128k: Audio bitrate 128 kbps
Tip: Conversion maintains 1080p resolution and provides ~6x encoding speed on modern hardware.
Troubleshooting Quick Reference
Only 360p Available (Format 18)
Cause: Missing PO token provider or outdated yt-dlp.
Solution:
- Update yt-dlp:
brew upgrade yt-dlp - Install PO token provider (see Step 1 above)
- Or use browser cookies method
Sign in to Confirm You’re Not a Bot
Cause: YouTube requires authentication to proceed.
Solution:
- Request permission and use browser cookies (
--cookies-from-browser chrome). - Ensure the browser and yt-dlp use the same IP/proxy.
- Retry with
web_safariclient if needed.
Only Images Available / Requested Format Not Available
Cause: PO tokens not applied or provider/browser verification failed.
Solution:
- Verify PO Token provider is running before download.
- Keep the browser window open if using WPC.
- If cookies are in use, prefer
web_safariclient and retry.
nsig Extraction Failed
Symptoms:
WARNING: [youtube] nsig extraction failed: Some formats may be missingSolution:
- Update yt-dlp to latest version
- Install PO token provider
- If still failing and PO tokens are disabled, use Android client:
yt-dlp --extractor-args "youtube:player_client=android" "VIDEO_URL"
SSL EOF / Fragment Errors
Cause: Proxy or network instability.
Solution:
- Retry with progressive formats (non-m3u8).
- Switch to a more stable proxy/node.
- Avoid closing the PO token browser window during download.
Slow Downloads or Network Errors
For users in China or behind restrictive proxies:
- Downloads may be slow due to network conditions
- Allow sufficient time for completion
- yt-dlp automatically retries on transient failures
PO Token Warning (Harmless)
WARNING: android client https formats require a GVS PO TokenAction: Ignore if download succeeds. This indicates Android client has limited format access without PO tokens.
Bundled Script Reference
scripts/download_video.py
Use this convenience wrapper to auto-start a PO Token provider by default for high-quality downloads. Use it yourself and report results to the user without asking them to run commands.
Basic usage:
scripts/download_video.py "VIDEO_URL"Arguments:
url- YouTube video URL (required)-o, --output-dir- Output directory--output-template- Output filename template (yt-dlp syntax)-f, --format- Format specification-q, --quality- Quality preset (best, 1080p, 720p, 480p, 360p, worst). Default: best (skipped for--audio-only)-a, --audio-only- Extract audio as MP3--subtitles- Download subtitles if available--sub-lang- Subtitle languages (comma-separated, default: en)--cookies-from-browser- Load cookies from a browser (e.g., chrome, firefox)--cookies-file- Load cookies from a cookies.txt file--player-client- Use a specific YouTube player client (e.g., web_safari)--auto-po-token- Auto-start PO Token provider (default; uses Docker if available, otherwise switches to browser-based provider)--no-auto-po-token- Disable auto PO Token setup--proxy- Proxy URL for yt-dlp and the PO Token provider (e.g., http://127.0.0.1:1082)--wpc-browser-path- Browser executable path for WPC provider-F, --list-formats- List available formats--merge-format- Merge output container (e.g., mp4, mkv). Default: mp4--playlist- Allow playlist downloads (default: single video only)--info- Print title/uploader/duration/thumbnail and exit--no-android-client- Disable Android client fallback
Note: Use the Android client only when PO tokens are disabled. Keep PO tokens enabled for high quality.
Quality Expectations
| Setup | 360p | 720p | 1080p | 1440p | 4K |
| Auto PO token (default) | ✓ | ✓ | ✓ | ✓ | ✓ |
| Android client only | ✓ | ✗ | ✗ | ✗ | ✗ |
| PO token provider (manual) | ✓ | ✓ | ✓ | ✓ | ✓ |
| Browser cookies | ✓ | ✓ | ✓ | ✓ | ✓ |
HLS Stream Downloads (m3u8)
For streaming platforms like Mux, Vimeo, and other HLS-based services, use ffmpeg as the primary tool. These streams often require authentication headers that yt-dlp may not handle correctly.
Identifying HLS Streams
HLS streams use .m3u8 playlist files:
- Master playlist: Lists multiple quality options
- Rendition playlist: Contains actual video/audio segment URLs
Download Workflow
Step 1: Obtain the Stream URL
Get the m3u8 URL from the video source. For protected streams:
- Open browser DevTools → Network tab
- Play the video
- Filter for "m3u8" to find the playlist URLs
- Copy the rendition URL (usually contains quality info like "rendition.m3u8")
Step 2: Identify Required Headers
Many CDNs require authentication headers:
- Referer: Origin website (e.g.,
https://maven.com/) - Origin: Same as Referer for CORS
- User-Agent: Browser identification
Check the Network tab to see which headers the browser sends.
Step 3: Download with ffmpeg
Use ffmpeg with the -headers flag for protected streams:
ffmpeg -headers "Referer: https://example.com/" \
-protocol_whitelist file,http,https,tcp,tls,crypto,httpproxy \
-i "https://cdn.example.com/path/rendition.m3u8?params" \
-c copy -bsf:a aac_adtstoasc \
output.mp4Key parameters:
-headers: Set HTTP headers (critical for authentication)-protocol_whitelist: Enable required protocols for HLS-c copy: Stream copy (no re-encoding, faster)-bsf:a aac_adtstoasc: Fix AAC audio compatibility
Common header patterns:
# Single header
-headers "Referer: https://example.com/"
# Multiple headers
-headers "Referer: https://example.com/" \
-headers "User-Agent: Mozilla/5.0..."
# Alternative syntax
-headers $'Referer: https://example.com/\r\nUser-Agent: Mozilla/5.0...'Handling Separate Audio/Video Streams
Some platforms (like Mux) deliver audio and video separately:
- Download audio stream:
ffmpeg -headers "Referer: https://example.com/" \
-protocol_whitelist file,http,https,tcp,tls,crypto,httpproxy \
-i "https://cdn.example.com/audio/rendition.m3u8" \
-c copy audio.m4a- Download video stream:
ffmpeg -headers "Referer: https://example.com/" \
-protocol_whitelist file,http,https,tcp,tls,crypto,httpproxy \
-i "https://cdn.example.com/video/rendition.m3u8" \
-c copy video.mp4- Merge streams:
ffmpeg -i video.mp4 -i audio.m4a -c copy merged.mp4Troubleshooting HLS Downloads
403 Forbidden Errors
Cause: Missing or incorrect authentication headers.
Solution:
- Verify Referer header matches the video source website
- Check if additional headers (Origin, User-Agent) are needed
- Ensure the m3u8 URL includes all query parameters from browser
yt-dlp Stuck on Cookie Extraction
Symptom: Extracting cookies from chrome hangs indefinitely.
Solution: Use ffmpeg directly instead of yt-dlp for HLS streams.
Protocol Not Whitelisted
Error: Protocol 'https' not on whitelist 'file,crypto,data'
Solution: Add -protocol_whitelist file,http,https,tcp,tls,crypto,httpproxy
Empty Segments or No Streams
Cause: Expired signatures in the m3u8 URLs.
Solution:
- Get fresh URLs from browser DevTools
- Download immediately after obtaining URLs
- Look for rendition URLs with updated signature parameters
Performance Tips
- HLS downloads typically run at 10-15x realtime speed
- No re-encoding with
-c copy(fastest) - Monitor download with real-time progress display
- Use absolute output paths to avoid directory confusion
Further Reading
- PO Token Setup: See
references/po-token-setup.mdfor detailed installation and troubleshooting - Internal SOP:
references/internal-sop.md— the short list of yt-dlp failures that look like something else (URLs unquoted in zsh, proxy not reaching the PO Token provider). Read it first when a download fails for no obvious reason - yt-dlp Documentation: https://github.com/yt-dlp/yt-dlp
- Format Selection Guide: https://github.com/yt-dlp/yt-dlp#format-selection
Next Step: Transcribe Downloaded Audio/Video
After downloading, if the user's goal involves getting text from the video (transcription, subtitles, meeting notes), proactively suggest:
Download complete: [filename]
If you need the spoken content as text, I can transcribe it for you.
Options:
A) Transcribe with /daymade-audio:asr-transcribe-to-text (Recommended for speech-to-text)
B) No thanks — I just needed the video fileDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

