Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By Agents365-aiv0.5.0MITIn 1 marketplace
Sorts a Bilibili episode or local video into scenery shots and per-character image folders. Needs a Bilibili cookies file for 1080p+ and non-preview episodes, and handles anime art only; it claims to upload nothing.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
English · 中文
A skill that turns a Bilibili video (a bangumi episode, a UP upload, or a local file) into organized per-character image groups and scenery shots. It downloads the video, extracts scene-change keyframes, splits frames into scenery vs character crops with anime-specific person detection, and then either clusters everyone or pulls out one specific character using CCIP character-identity embeddings. Works with Claude Code and any agent compatible with the Agent Skills format.
Read-only download for personal offline viewing/analysis — it uploads nothing. Anime / 2.5D-render art only (not live-action).
# required
brew install ffmpeg # or your platform's ffmpeg
pip install yt-dlp dghs-imgutils
# optional, only for --clean (subtitle/watermark removal)
pip install rapidocr-onnxruntime simple-lama-inpainting
First run downloads ~300 MB of anime detection + CCIP models from HuggingFace (cached after).
A Bilibili cookie (cookies.txt) is needed to download non-preview / 1080p+ episodes;
resolution order is --cookies > $BILIBILI_COOKIES > ~/bb_up/bb_cookies/www.bilibili.com_cookies.txt.
Run on CPU for the CCIP step — do not set
ONNX_MODE=CoreML(CCIP crashes there; the script pops it automatically before clustering/matching). Person detection is fine on CoreML.
SKILL=skills/bangumi-frames/scripts/bangumi_frames.py
# Mode 1 — cluster everyone into char_NN groups
python3 $SKILL https://www.bilibili.com/video/BV15qVm68E2h --out ~/frames
python3 $SKILL ep1231575 --out ~/frames # ep / BV id also accepted
python3 $SKILL ~/local.mp4 --out ~/frames # local file, skips download
# Mode 2 — pull out ONE character (ref folder = ~200 crops of that character)
python3 $SKILL BV15qVm68E2h --ref ~/refs/紫灵 --ref-eps 0.04 --out ~/frames
# Mode 2, several characters at once — ref folder of per-character subfolders
# ~/refs/凡人/{韩立,紫灵,南宫婉}/*.jpg -> matched/{韩立,紫灵,南宫婉}/
python3 $SKILL BV15qVm68E2h --ref ~/refs/凡人 --ref-eps 0.04 --out ~/frames
# Optional: strip burned-in subtitles + watermark before analysis
python3 $SKILL ep1231575 --clean --out ~/frames
<out>/<id>/ # id = BV id / ep id / local filename
├── frames/ frames.json # keyframes + timestamps
├── scenery/ # frames with no detected character
├── crops/ features.npy # character crops + cached CCIP features
├── detect.json # frame -> person boxes / crops
├── characters/ # MODE 1: char_NN_crop/ + char_NN_full/ (paired), _unsorted/, _montage.png
├── matched/ # MODE 2: 0.012_<crop>.jpg (distance-prefixed) + index.json
│ # (multi-character: matched/<name>/ per subfolder)
├── matched_montage.png # MODE 2 sample montage (single-character)
└── index.json # MODE 1: char group -> {crop, frame, time}
Look at characters/_montage.png (mode 1) or matched_montage.png (mode 2) first to judge
quality, then read index.json.
input → download → extract → (clean) → classify → cluster | match
Each stage is idempotent (skipped when its output exists); clustering/matching always re-runs off the cached features. Full per-stage flags, the CPU/CoreML rule, and the threshold lore are in the skill's reference docs:
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground
npx claudepluginhub agents365-ai/365-skills --plugin bangumi-frames