AI Agent Hub
Back to skills
Bilibili and Video Site Downloader (yt-dlp) icon

Bilibili and Video Site Downloader (yt-dlp)

Data Analysis Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please install @user_3ff3c268/bilibili-video-downloader-pro according to https://skillhub.cn/install/skillhub.md.

About this skill

Problem

Engineers working on automation, content archiving, or offline playback often need to retrieve a single video file from Bilibili or another supported site. Passing a web link to a script is not enough, because videos are usually split into audio and video streams, and quality selection, login state, and multi-part logic all affect the final artifact. This skill wraps yt-dlp downloading, format selection, and ffmpeg merging into a clear workflow, reducing the cost of assembling manual parameters.

How It Works

The skill runs downloads through scripts/download_video.py, with these core steps:
- Confirm the save directory: missing directories are created automatically, and the final file is named after the video title.
- Select quality: it defaults to the best available option, or supports 1080, 720, 480, and audio.
- Download and merge: the script installs yt-dlp automatically, selects formats, and uses ffmpeg to merge the result into .mp4.
- Verify the result: after completion, it checks that an MP4 file named after the title exists in the target directory and returns the full path.

b23.tv short links and Bilibili links with ?t= parameters can be passed directly, without stripping the playback position. When VIP access or higher bitrates are needed, a cookies file path can be provided to unlock better quality.

Boundaries

By default, the skill downloads only the current video; downloading an entire multi-part set requires changing the noplaylist setting. Anime, member-only, strongly authenticated, or copyright-restricted content may fail. The environment requires Python 3.10+ and ffmpeg; if ffmpeg is missing, the merge step will fail. If a download cannot be completed, the limitation should be reported honestly instead of claiming the file was saved.

Use Cases

  • After receiving a Bilibili BV link, save a single tutorial video to the project docs directory as MP4.
  • When viewing Zhihu, Weibo, or YouTube videos in an offline intranet, first download the online video locally.
  • During editing, extract the audio track from a specific video by selecting the audio mode and saving it.
  • When higher bitrate content is needed, use a cookies file to download VIP or 1080P high-bitrate video.

Best For

  • Engineers maintaining internal knowledge bases who need to archive Bilibili tutorial videos offline.
  • Video editors organizing media assets who need to save online videos as local MP4 or audio files.
  • Backend engineers building automation who want to wrap yt-dlp downloading and ffmpeg merging steps.
  • Content operations staff handling licensed assets who need to distinguish single videos, multi-part sets, and cookie limits.