video-download
Skill0 starsChanged 29 days agoMITView on GitHub
统一视频下载与本地归档(B 站 + YouTube)。基于本机已装的 yt-dlp + ffmpeg(brew,免费开源工具), 支持匿名直下、浏览器 Cookie 登录画质、批量清单下载、断点续跑、字幕抓取、风控应对与归档边界。 当用户提到「下载视频」「下这个视频」「下载 B 站视频」「下载 YouTube 视频」「下这个 BV / 这个 YouTube 链接」 「把这条视频存下来」「视频本体下载」「video download」「帮我存一下这个视频」, 或给出 B 站视频链接 / BV 号 / YouTube URL 要求下载时触发。 与平台数据爬取(B 站搜索元数据、YouTube API 元数据)是两套东西:数据侧走项目里的 requests/API 脚本, 本 skill 只负责把视频文件本体落盘。
- Installs packages
Files
Video Download
统一处理 B 站与 YouTube 的视频本体下载。工具链不打包进本目录——yt-dlp 与 ffmpeg 已在 brew 安装(/opt/homebrew/bin/),本 skill 定义方法、参数与边界。
前置检查
yt-dlp --version # 本机 2026.03.17,过期时 brew upgrade yt-dlp
ffmpeg -version # dash 流音视频合并必需,缺失时 brew install ffmpeg两者缺一则先装好再继续,不要试图用 requests 拼视频流。
平台差异总表
| 维度 | B 站 | YouTube |
| 匿名可下画质 | 360P / 480P | 1080P 及以下(多数视频) |
| 登录 Cookie 增益 | 720P / 1080P(普通账号);1080P 高码率 / 4K(大会员) | 年龄限制视频解锁;缓解节流 |
| 专享内容 | 大会员专享需对应 Cookie | 会员/租购内容需对应 Cookie |
| 字幕 | 需 --write-subs 且 UP 上传了字幕 | 自动字幕可用 --write-auto-subs(ASR 生成) |
| 风控特征 | 连续请求 412 限流 | 无 Cookie 批量请求被节流(429 变慢) |
| 地区限制 | 少 | 部分视频有地区限制,需要代理 |
Cookie 统一用浏览器现有登录态(--cookies-from-browser safari 或 chrome),不要导出 Cookie 文件落盘进项目。
命令范式
B 站
yt-dlp -f "bv*+ba/b" --cookies-from-browser safari \
-o "%(title)s [%(id)s].%(ext)s" \
"https://www.bilibili.com/video/BVxxxxxxxx"bv*+ba/b:最佳视频流+最佳音频流合并(ffmpeg),失败回退单文件- 匿名下载去掉
--cookies-from-browser一行 - 只要音频(讲座/播客转写用):
-f "ba/b" -x --audio-format m4a - 字幕(UP 已上传时):加
--write-subs --sub-langs "zh-Hans,zh" --skip-download
YouTube
yt-dlp -f "bv*+ba/b" --cookies-from-browser safari \
-o "%(title)s [%(id)s].%(ext)s" \
"https://www.youtube.com/watch?v=xxxxxxxxxxx"- 1080P 以内通常匿名即可;年龄限制/批量场景加 Cookie
- 自动字幕(ASR,转写用):
--write-auto-subs --sub-langs "zh-Hans,en" --skip-download - 字幕+音频一起(转录管线输入):
-f "ba/b" -x --audio-format m4a --write-auto-subs --sub-langs "zh-Hans,en"
批量下载(两平台通用)
从 URL 清单文件(每行一个视频链接;B 站可用 BV 号清单,数据采集脚本产出):
yt-dlp -f "bv*+ba/b" --cookies-from-browser safari \
--download-archive downloaded.txt \
-o "%(title)s [%(id)s].%(ext)s" \
--batch-file url-list.txt--download-archive downloaded.txt:断点续跑不重复下载- 批量间隔
--sleep-requests 3 --sleep-interval 5:B 站防 412、YouTube 缓节流
风控与合规
- B 站 412 限流:连续请求必然触发。批量务必加 sleep 参数;被 412 后用浏览器 Cookie 重试(数据侧 buvid3 缓解经验同样适用)
- YouTube 节流:无 Cookie 连续请求会越来越慢(429 降速),批量时带 Cookie 或加大间隔
- 失败重试:
--retries 5 --fragment-retries 5 - 版权边界:下载仅限个人研究/学习/存档用途;不对外再分发,不把视频文件放入对外发布的资料包。B 站/YouTube 条款均禁止未经许可的下载——这是工具能做什么与应该做什么的分界
归档路径
| 场景 | 路径 | 说明 |
| 研究项目素材 | 706-production-research/{project}/media/ | 视频本体在本地,不在语料库正文 |
| 媒体素材 | 706-media/inbox/ 待 media-ingest 分流 | 按媒体库惯例 |
| 语料项目引用 | 只记平台 ID(BV / video id)+ 元数据 + 本地路径指针 | 语料 CSV 里不放视频文件 |
《大退出》bilibili 语料的经验同样适用于 YouTube:先采元数据,按需下载本体,不要整库拉视频。
与上下游的衔接
工作流顺序:
- 数据侧(requests/API 脚本,非本 skill):B 站关键词搜索 →
bilibili-great-exit-master-final.csv这类清单;YouTube 侧已有collect_youtube_samples.py与youtube-search-sample-*.csv实践 - 本体侧(本 skill):从清单提取链接 →
--batch-file批量下载 → 本地归档 - 转录侧(
706-audio-transcribe-archive):下载的音频/视频 → MLX Whisper 转写 + 说话人对齐 + 入库
本 skill 不重新实现平台元数据采集;已有脚本继续留在项目 source/ 原位。
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- calesthio/OpenMontage★ 74ksame name
- maystudios/claude-skills★ 21same name
- LinHao-city/StoryMind★ 10same name
- csfuwwc/md-skills★ 4same name
- pilotgetup855/bbshare-skills★ 2same name
- SocialKit-API/skills★ 2same name
- aiaaaa4/video-download★ 0same name
- andfrancot-alt/claude-skills★ 0same name
- Gopyr/gopyr-skills-hub★ 0same name
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.
Used alongsideProjects with it also use avatar-video, canvas-procedural-animation and 7 more.
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.
LinHao-citySkillavatar-video
Create AI avatar videos with precise control over avatars, voices, scripts, scenes, and backgrounds using HeyGen's v2 API. Use when: (1) Choosing a specific avatar and voice for a video, (2) Writing exact scripts for an avatar to speak, (3) Building multi-scene videos with different backgrounds per scene, (4) Creating transparent WebM videos for compositing, (5) Using talking photos as video presenters, (6) Integrating HeyGen avatars with Remotion, (7) Batch video generation with exact specs, (8) Brand-consistent production videos with precise control.
Also in 3 projects that use this
LinHao-citySkillcanvas-procedural-animation
Use p5.js/canvas for local procedural character effects: particles, weather, squash/stretch, walk cycles, and environmental motion.
Also in 3 projects that use this
alexsnchzSkillframer-motion
Expert skill for Motion (formerly Framer Motion) — the React animation library. Use this skill whenever the user asks to animate React components, add transitions, implement gesture interactions (drag, hover, tap), create scroll-linked effects, animate route/component presence, or build shared-element transitions. Also triggers for: page transitions, spring animations, layout animations, AnimatePresence, variants, useMotionValue, useScroll, useTransform, whileHover, whileTap, stagger effects, motion values, or any 'how do I animate X in React' question. Invoke even if the user doesn't mention 'framer-motion' by name — if they want smooth UI animations in React, this skill applies.
Also in 3 projects that use this
VercelSkillremotion-best-practices
Best practices for Remotion - Video creation in React
Also in 3 projects that use this
VercelSkillweb-design-guidelines
Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".
Also in 3 projects that use this
VercelSkillvercel-react-best-practices
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
Also in 3 projects that use this
- +3 more from LinHao-city
In this repository40 other files it gives its agents.
- 706-audio-transcribe-archiveSkill
- 706-ghostwriterSkill
- 706-long-article-distillingSkill
- 706-notion-writerSkill
- author-style-mimicrySkill
- binance-4h-signalSkill
- browserSkill
- content-intelligence-searchSkill
- debotton-chen-nan-rewriteSkill
- debotton-chen-nan-writeSkill
- gdocs-mcpSkill
- harness-goal-runnerSkill
- image-ocrSkill
- image-to-htmlSkill
- lark-docx-editorSkill
- literature-searchSkill
- md-to-pdf-songtiSkill
- media-ingestSkill
- medium-research-report-harnessSkill
- moments-work-diarySkill
- panel-curatorSkill
- personal-decision-harnessSkill
- prewritingSkill
- resume-from-evidenceSkill
- resume-hr-reviewSkill
- rhetorical-structure-harnessSkill
- scholar-analyst-rewriteSkill
- skill-creatorSkill
- skill-optimizerSkill
- speech-to-attention-videoSkill
- task-distributionSkill
- task-syncSkill
- wechat-article-smart-archiveSkill
- wechat-designSkill
- wechat-image-archiveSkill
- wechat-publish-2.0Skill
- wechat-publishSkill
- wechat-slidesSkill
- xhs-copywriterSkill
- xiaohongshu-posterSkill
Does 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.

