video-download — video-下载
v2下载 videos from 1800+ 网页sites and 生成 subtitles using Faster Whisper AI. Use when user wants to 下载 videos from YouTube, Bilibili, Twitter, TikTok, Facebook, Vimeo, or any other supported video site, 提取 audio, or transcribe video content to text/subtitles.
运行时依赖
安装命令
点击复制技能文档
Video 下载 & Subtitle Generation
This 技能 下载s videos from 1800+ 网页sites and 生成s subtitles using Faster Whisper AI.
Supported 网页sites
This 技能 supports 下载ing from virtually any video 网页site thanks to yt-dlp. Some popular ones include:
Video 平台s:
YouTube, YouTube Shorts Bilibili (哔哩哔哩), Niconico (ニコニコ動画) TikTok, Douyin (抖音) Twitter/X, Facebook, Instagram Vimeo, DAIlymotion Twitch (命令行工具ps, VODs), Kick Rutube, VK Video
Chinese 平台s:
iQiyi (爱奇艺), Youku (优酷), MangoTV (芒果TV) Weibo Video, Douyu (斗鱼), Huya (虎牙)
International:
Netflix, Disney+, HBO Max, Amazon Prime Video BBC iPlayer, ITV, Channel 4 ARD, ZDF, Arte
For the complete 列出 of 1800+ supported sites, see: yt-dlp supported 提取器s Local document about supported sites: references/supportedsites.md
导入ant: If you see an error like 签名 in to confirm you’re not a 机器人, you should use the cookiefile parameter for 认证d 下载s. See the cookiefile usage section at the end of this document.
Prerequisites
Ensure the following Python packages are 安装ed:
yt-dlp - For 下载ing videos from any supported site yt-dlp-ejs - External JavaScript for yt-dlp supporting many 运行times ffmpeg-python - For audio 提取ion faster-whisper - For speech-to-text transcription (faster and more memory-efficient than openAI-whisper). Note: The first 运行 will 下载 模型s from HuggingFace (default: small, ~3GB). A VPN is required for mAInland China users. tqdm - For 进度 bar display during transcription
安装 via pip:
pip 安装 yt-dlp yt-dlp-ejs ffmpeg-python faster-whisper tqdm
ffmpeg must also be 安装ed on your 系统
Usage Command Line python scripts/video_解析器.py '{"urls":["https://www.youtube.com/watch?v=VIDEO_ID"],"输出":"./下载s"}'
Parameters Parameter Type Required Description urls array Yes 列出 of video URLs from any supported 网页site 输出 string No 输出 directory (default: "./下载s") 模型 string No Faster Whisper 模型 size: tiny, base, small, medium, large, large-v2, large-v3, turbo (default: "small") transcribe boolean No Whether to transcribe video to subtitle (default: true) subtitle_格式化 string No Subtitle 格式化: txt, srt, vtt, json (default: "txt") 下载_subtitle boolean No 下载 video's built-in subtitles if avAIlable (default: false) onlysubtitle boolean No Only 下载 subtitles. When true, the script uses skip_下载 + writesubtitles + writeautomaticsub internally (default: false) overwrite_subtitle boolean No Overwrite existing subtitle files (default: true, 设置 to false to skip if exists) cookie string No Cookie header string; injected into http_headers.Cookie (default: "") cookiesfrombrowser string No Read cookies from browser (default: ""; injected only when non-empty) cookiefile string No Netscape-格式化 cookie file path (default: ""; injected only when non-empty) 输出
The 技能 will:
创建 a folder for each video (named after the video title) 下载 the video file to that folder 提取 audio as WAV file 生成 transcript using Faster Whisper Save subtitle as .txt file
输出 structure:
下载s/ └── Video Title/ ├── Video Title.mp4 ├── Video Title.wav └── Video Title.txt
Examples 下载 YouTube video: python scripts/video_解析器.py '{"urls":["https://www.youtube.com/watch?v=dQw4w9WgXcQ"],"输出":"./my_videos"}'
下载 Bilibili video: python scripts/video_解析器.py '{"urls":["https://www.bilibili.com/video/BV1xx411c7XD"],"输出":"./下载s"}'
下载 TikTok video: python scripts/video_解析器.py '{"urls":["https://www.tiktok.com/@username/video/1234567890"],"输出":"./tiktok"}'
下载 multiple videos from different sites: python scripts/video_解析器.py '{"urls":["https://www.youtube.com/watch?v=VIDEO1","https://www.bilibili.com/video/BV1xx","https://twitter.com/user/状态/123"],"输出":"./videos"}'
下载 Twitch 命令行工具p: python scripts/video_解析器.py '{"urls":["https://www.twitch.tv//channel/命令行工具p/命令行工具pName"],"输出":"./命令行工具ps"}'
下载 only (without transcription): python scripts/video_解析器.py '{"urls":["https://www.youtube.com/watch?v=VIDEO_ID"],"输出":"./下载s","transcribe":false}'
生成 SRT subtitle: python scripts/video_解析器.py '{"urls":["https://www.youtube.com/watch?v=VIDEO_ID"],"输出":"./下载s","subtitle_格式化":"srt"}'
生成 VTT subtitle: python scripts/video_解析器.py '{"urls":["https://www.youtube.com/watch?v=VIDEO_ID"],"输出":"./下载s","subtitle_格式化":"vtt"}'
下载 video with built-in subtitles: python scripts/video_解析器.py '{"urls":["https://www.youtube.com/watch?v=VIDEO_ID"],"输出":"./下载s","下载_subtitle":true}'
下载 with custom Faster Whisper 模型: python scripts/video_解析器.py '{"urls":["https://www.youtube.com/watch?v=VIDEO_ID"],"输出":"./下载s","模型":"large"}'
Skip transcription if subtitle already exists: python scripts/video_解析器.py '{"urls":["https://www.youtube.com/watch?v=VIDEO_ID"],"输出":"./下载s","