video-to-text

Video to text converter. Downloads videos from Bilibili using bilibili-api, from other sites using yt-dlp, then transcribes audio using faster-whisper. Use when you need to convert video content (B站/YouTube/local files) into text transcripts or subtitles.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "video-to-text" with this command: npx skills add lkyyyy320/video-to-text-2

Video to Text

Convert video URLs or local files to text transcripts.

Usage

python3 scripts/video_to_text.py <video_url_or_local_file> [options]

Arguments

ArgumentDescriptionDefault
urlVideo URL or local file path (required)-
-m, --modelWhisper model sizebase
-l, --languageSpecify language codeAuto-detect
-o, --outputOutput file pathPrint to terminal
--keep-filesKeep downloaded audio/video filesNo
--sessdataBilibili SESSDATAFrom config
--bili-jctBilibili bili_jctFrom config
--buvid3Bilibili buvid3From config

Model Selection

ModelSizeSpeedAccuracy
tiny~75MBFastestLowest
base~150MBFastBasic
small~500MBMediumGood
medium~1.5GBSlowVery Good
large~3GBSlowestBest

Examples

# Bilibili video (requires auth)
python3 scripts/video_to_text.py "https://www.bilibili.com/video/BVxxx"

# Specify Chinese language
python3 scripts/video_to_text.py "https://www.bilibili.com/video/BVxxx" -l zh

# Local file
python3 scripts/video_to_text.py "/path/to/video.mp4" -m small

# Save to file
python3 scripts/video_to_text.py "https://www.bilibili.com/video/BVxxx" -o result.txt

Supported Platforms

  • Bilibili (bilibili.com) - Requires auth
  • YouTube - via yt-dlp
  • TikTok/Douyin - via yt-dlp
  • Twitter/X - via yt-dlp
  • Any site supported by yt-dlp
  • Local files - supports mp4, wav, m4a, webm, mkv, etc.

Bilibili Auth Setup

Method 1: Config File

Edit BILIBILI_CREDENTIALS dict in the script:

BILIBILI_CREDENTIALS = {
    "sessdata": "your_sessdata",
    "bili_jct": "your_bili_jct",
    "buvid3": "your_buvid3"
}

Method 2: Command Line

python3 scripts/video_to_text.py "https://www.bilibili.com/video/BVxxx" \
    --sessdata "xxx" \
    --bili-jct "xxx" \
    --buvid3 "xxx"

How to Get Auth Info

  1. Login to Bilibili web (bilibili.com)
  2. Press F12 to open Developer Tools
  3. Application -> Cookies -> bilibili.com
  4. Copy these values:
    • SESSDATA
    • bili_jct
    • buvid3

WARNING: These are your login credentials. Don't share with others!

Installation

# Install dependencies
pip3 install bilibili-api-python yt-dlp faster-whisper aiohttp requests

# Ensure ffmpeg is installed
# Ubuntu/Debian: sudo apt install ffmpeg
# CentOS: sudo yum install ffmpeg

Dependencies

  • bilibili-api-python - Bilibili API
  • yt-dlp - Video download
  • ffmpeg - Audio/video processing
  • faster-whisper - Speech transcription
  • aiohttp - Async HTTP
  • requests - HTTP requests

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Wangdongjie Cfo Skill

基于王东杰26年实战经验,提供A+H双市场IPO操盘、资本杠杆设计、业财融合和AI数字化风控咨询。

Registry SourceRecently Updated
General

Hk Stock Morning Report

Generate HK stock market morning report (股市晨報) for Chinese bank trading desk. Use when user asks "生成晨报", "股市晨报", "今日股市", "港股晨報", or any similar HK stock mark...

Registry SourceRecently Updated
General

Nansen Mpp Payment

Pay-per-call access to the Nansen API via MPP (Tempo). Use when a user wants anonymous Nansen access without an API key and without managing their own Base/S...

Registry SourceRecently Updated
General

Etsy Autolist

Auto-create and manage digital product listings on Etsy. Creates listings from existing digital product files (PDFs, templates, spreadsheets) using Etsy Open...

Registry SourceRecently Updated