Install
openclaw skills install @xunx33/video-transcribeopenclaw skills install @xunx33/video-transcribeExtract text from video links (Douyin, Bilibili, YouTube, Kuaishou, etc.) with timestamps.
pip install yt-dlp openai-whisper
winget install ffmpeg # Windows
# brew install ffmpeg # macOS
# sudo apt install ffmpeg # Linux
Whisper large-v3 model is ~2.9GB. Set cache to a non-system drive:
# Windows PowerShell (permanent, User-level):
[Environment]::SetEnvironmentVariable("WHISPER_DOWNLOAD_ROOT", "X:\whisper_cache", "User")
# macOS/Linux (~/.zshrc or ~/.bashrc):
export WHISPER_DOWNLOAD_ROOT="~/whisper_cache"
# Windows PowerShell:
[Environment]::SetEnvironmentVariable("VIDEO_DOWNLOAD_DIR", "X:\video_downloads", "User")
# macOS/Linux:
export VIDEO_DOWNLOAD_DIR="~/video_downloads"
# Windows: Create %APPDATA%\yt-dlp\config (one line):
-o X:\video_downloads\%(title)s.%(ext)s
# macOS/Linux: Create ~/.config/yt-dlp/config (one line):
-o ~/video_downloads/%(title)s.%(ext)s
python transcribe.py "<video_url>" [model] [prompt]
model: large-v3 (default, best quality) or turbo (faster)prompt: optional context hint for better recognitionpython transcribe.py "<video_url>"
[0.0s-8.0s] Text here...
[8.0s-20.0s] More text...
yt-dlp supports 1000+ sites: Douyin, TikTok, Bilibili, YouTube, Kuaishou, Weibo, Xiaohongshu, Xigua Video, etc.
WHISPER_DOWNLOAD_ROOT directory