liuzhao1225/YouDub-Desktop
Electron and FastAPI workbench for video translation, subtitles, and local dubbing
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
YouDub separates the desktop shell in apps/desktop, the Vite 8 and React 19 SPA in apps/web, and the Python runtime. Electron handles native window and directory controls, updates, the safeStorage credential bridge, and FastAPI process supervision. backend/app/server/ is the single control plane: it serves /api/*, funnels progress through one SSE endpoint at /api/events, and combines SQLite WAL persistence with a task queue and DAG scheduler.
The ResourceManager launches heavy inference in separate Python subprocesses so their GPU allocations can be reclaimed when the stages finish. backend/app/v1/ contains Whisper, SentenceX, Demucs, Qwen Aligner, VoxCPM2, and FFmpeg stages. The main points of configurability are the node graph and the translation provider protocols: users can set stage-specific options, pause for review, and rerun a corrected node instead of treating localization as a single opaque render.
Key Capabilities & Differentiators
Inputs include local video files and YouTube, Shorts, Bilibili, and b23.tv links. Whisper defaults to large-v3-turbo; SentenceX uses word timestamps to reconstruct sentence boundaries while retaining timing mappings. Translation supports the OpenAI, Anthropic, and Gemini protocols, uses sliding context across sentences, and persists progress at sentence granularity so interrupted work can resume.
The workflow can keep the original audio and burn in translated subtitles, produce a dub with optional separated background audio, or export both subtitles and a dub with optional forced alignment. For voice cloning, VoxCPM2 uses the source audio from the corresponding sentence as its reference. The task library exposes stage progress, errors, and artifacts, with controls for cancellation, retry, regeneration, playback, and downloads.
Trade-offs & Limitations
Compared with a Whisper-plus-FFmpeg script, YouDub adds persisted task state, editable graphs, dubbing, and targeted reruns, but brings a larger dependency and model footprint. Compared with a managed dubbing service, it gives operators more control over local media processing and review while leaving them responsible for model setup, GPU compatibility, and failures in URL ingestion. Local inference also does not make a workflow offline if translation sends text to a remote provider or ingestion fetches a video URL.
The app sets no fixed input cap on duration, size, resolution, or frame rate, but practical capacity depends on the chosen models, input characteristics, and concurrent work. The recent VoxCPM2 fixes address specific memory failure modes, not a guaranteed VRAM envelope. For adoption, test representative long clips and listen for voice consistency across sentence boundaries: per-sentence references preserve the mapping to source audio, but they do not establish uniform output quality.
Hardware & Deployment Guide
The documented desktop downloads target Windows x64 and macOS arm64. First launch prepares the base environment, checks FFmpeg and yt-dlp, and lets users prepare dependencies and model weights for the chosen workflow. Source development requires Node.js ^22.19.0 || >=24.0.0, Python 3.12, npm, and Git. Install the web and desktop dependencies separately, then use npm run build and npm start; npm run dev:web runs the local frontend and backend without Electron. The full developer requirements include all inference groups, whereas desktop setup installs selected groups. A CUDA 12.8 PyTorch requirements file is present, but that is not a universal CUDA requirement.
v0.1.4 moves VoxCPM2 AudioVAE encoding to the CPU and uses 64-frame causal decoding chunks to reduce peak VRAM. v0.1.5 adds platform-aware FFmpeg H.264 hardware encoding with a YOUDUB_VIDEO_ENCODER override and automatic fallback to libx264 after partial output is cleaned up. That fallback covers video encoding, not model inference.
/api/events.@xyflow/react graph exposes node settings, human-review pauses, and node-level correction and reruns.libx264.Creators and localization teams with cleared source media who need local dubbing, subtitle review, and targeted reruns, and can maintain model dependencies.
A simple subtitle script meets your needs, or you need a zero-maintenance hosted service or a turnkey offline translation stack.
Quick Start & Installation
npm --prefix apps/web ci --registry=https://registry.npmmirror.com npm --prefix apps/desktop ci --registry=https://registry.npmmirror.com npm run build npm start
Comparison vs. Top Voice, Vision & Video Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| YouDub-Desktop ★ | 5.9k | +30 | TypeScript | Apache-2.0 | Electron and FastAPI workbench for video translation, subtitles, and local dubbi |
| hyperframes | 95.5k | +4.4k | TypeScript | Apache-2.0 | HTML timelines for editable video projects and frame-by-frame rendering |
| openmotion | 18.6k | +1.6k | TypeScript | Apache-2.0 | An HTML-first video studio for turning references into editable branded motion g |
| pyvideotrans | 19.9k | +88 | Python | GPL-3.0 | Self-hostable Python pipeline for video translation, subtitles, and dubbing |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/liuzhao1225/YouDub-Desktop.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about YouDub-Desktop
Can I run or integrate YouDub without the desktop shell?
npm run dev:web runs the React frontend and FastAPI without Electron. The control plane exposes /api/* REST endpoints and streams task events over SSE at /api/events. That is an integration surface, not evidence of a stable public SDK or a production multi-user deployment. Electron supplies the native safeStorage credential bridge.Do the VoxCPM2 fixes mean a 12 GB GPU is sufficient?
Can we use it commercially and keep processing in-house?
THIRD_PARTY_NOTICES.md and check the terms for the specific model weights and providers you use. The code license does not grant rights to source footage, music, or a speaker's voice. If translation uses an external API, include the text sent to that provider in your data-handling review.When is YouDub preferable to a subtitle script or a hosted dubbing service?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy