yt2bb
agent
Warn
Health Warn
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 4 GitHub stars
Code Pass
- Code scan — Scanned 1 files during light audit, no dangerous patterns found
Permissions Pass
- Permissions — No dangerous permissions requested
Purpose
This tool is a Claude Code skill that automates downloading YouTube videos, transcribing the audio, translating the subtitles into Chinese, and burning bilingual subtitles into the video using ffmpeg. It outputs a localized video file and publishing metadata ready for Bilibili.
Security Assessment
The automated workflow poses a High inherent risk due to its heavy reliance on executing external shell commands and managing network connections. The tool uses `yt-dlp` and `ffmpeg`, which require executing system-level commands. It also makes external network requests to download videos and calls external APIs (like OpenAI's Whisper) for transcription. While the automated code scan found no hardcoded secrets or dangerous code patterns, it only scanned a single file. The tool also accesses your Chrome browser cookies automatically to bypass YouTube's restrictions, which exposes highly sensitive session data.
Quality Assessment
The project is relatively new and lacks community validation, evidenced by a very low visibility warning with only 4 GitHub stars. However, it is actively maintained (last push was today) and is properly licensed under the standard MIT license. The code relies on well-known, reputable underlying tools (whisper, yt-dlp, ffmpeg), but the wrapper itself currently has a low community trust level.
Verdict
Use with caution: the lightweight code itself is safe and MIT-licensed, but the underlying workflow requires executing external binaries, accessing sensitive browser cookies, and managing heavy network operations.
This tool is a Claude Code skill that automates downloading YouTube videos, transcribing the audio, translating the subtitles into Chinese, and burning bilingual subtitles into the video using ffmpeg. It outputs a localized video file and publishing metadata ready for Bilibili.
Security Assessment
The automated workflow poses a High inherent risk due to its heavy reliance on executing external shell commands and managing network connections. The tool uses `yt-dlp` and `ffmpeg`, which require executing system-level commands. It also makes external network requests to download videos and calls external APIs (like OpenAI's Whisper) for transcription. While the automated code scan found no hardcoded secrets or dangerous code patterns, it only scanned a single file. The tool also accesses your Chrome browser cookies automatically to bypass YouTube's restrictions, which exposes highly sensitive session data.
Quality Assessment
The project is relatively new and lacks community validation, evidenced by a very low visibility warning with only 4 GitHub stars. However, it is actively maintained (last push was today) and is properly licensed under the standard MIT license. The code relies on well-known, reputable underlying tools (whisper, yt-dlp, ffmpeg), but the wrapper itself currently has a low community trust level.
Verdict
Use with caution: the lightweight code itself is safe and MIT-licensed, but the underlying workflow requires executing external binaries, accessing sensitive browser cookies, and managing heavy network operations.
YouTube to Bilibili video repurposing with bilingual subtitles
README.md
yt2bb - YouTube to Bilibili Video Repurposing
A Claude Code skill that repurposes YouTube videos for Bilibili with bilingual (EN/ZH) hardcoded subtitles.
Compatible with Claude Code, OpenClaw, Hermes Agent, and indexed by SkillsMP.
Workflow
YouTube → yt-dlp → whisper → validate → translate → merge → ffmpeg → publish_info → Bilibili
| Step | Tool | Output |
|---|---|---|
| Download | yt-dlp |
.mp4 |
| Transcribe | whisper |
_{lang}.srt |
| Validate/Fix | srt_utils.py |
_{lang}.srt (fixed) |
| Translate | Claude | _zh.srt |
| Merge | srt_utils.py |
_bilingual.srt |
| Burn | ffmpeg |
_bilingual.mp4 |
| Publish Info | Claude | publish_info.md |
Usage
/yt2bb https://www.youtube.com/watch?v=VIDEO_ID
Installation
Claude Code
git clone https://github.com/Agents365-ai/yt2bb.git ~/.claude/skills/yt2bb
OpenClaw
git clone https://github.com/Agents365-ai/yt2bb.git ~/.openclaw/skills/yt2bb
Hermes Agent
git clone https://github.com/Agents365-ai/yt2bb.git ~/.hermes/skills/media/yt2bb
Prerequisites
- Python 3
- ffmpeg
- yt-dlp
- openai-whisper
- YouTube account logged in via Chrome browser (yt-dlp extracts cookies automatically)
Utility Script
# Merge EN and ZH subtitles
python3 srt_utils.py merge en.srt zh.srt output.srt
# Validate timing issues
python3 srt_utils.py validate input.srt
# Fix timing overlaps
python3 srt_utils.py fix input.srt output.srt
# Generate slug from title
python3 srt_utils.py slugify "Video Title"
License
MIT License
Support
If this project helps you, consider supporting the author:
WeChat Pay |
Alipay |
Buy Me a Coffee |
探索未至之境
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found