Duo Li

active

YouTube Bilingual Subtitles

Downloads YouTube and YouTube Kids videos and generates high-quality Chinese-English bilingual subtitles using Whisper ASR and an LLM, with automatic upload to Bilibili.

PythonWhisperLLM
View repository →

Overview

An automated pipeline for downloading YouTube videos and generating bilingual (Chinese/English) subtitles.

Features

  • Smart video download for YouTube and YouTube Kids, with retry and rate-limit handling
  • Subtitle generation via OpenAI Whisper transcription plus an LLM (Ollama, OpenAI or Claude)
  • Translation style adapts to video type — children's content, tech talks, interviews, documentaries
  • Caching to avoid reprocessing already-downloaded videos
  • Optional hardsub/softsub embedding, plus automatic upload to Bilibili

Lessons Learned

To be added.

Roadmap

To be added.