← Back to Leaderboard
Pjianchang512

jianchang512/pyvideotrans

Self-hostable Python pipeline for video translation, subtitles, and dubbing

Open-Source AI AppQuickstart ↓
Engineering Health (Methodology)
A+ · 88/100
Maintenance Activity
● Updated yesterday
Latest Release
v4.20
Commercial License Check
GPL-3.0 · Copyleft Warning

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption22/25
Release Cadence20/20
License Clarity11/20
DockerSelf-HostedLocal AICLIGPUAPI
Total Stars
★ 19,939
24h Growth
+10
7d Growth
+88
Forks
2,494

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

jianchang512/pyvideotrans Star History (2023-10-06 - 2026-12-03) ALL-TIME STAR HISTORY (2023-10 – 2026-12) +19.9k in 1154d · avg +17/day 21.1k 10.5k 0 2023-10-06: ★ 12023-12-16: ★ 2,1672024-02-24: ★ 3,7302024-05-04: ★ 5,3602024-07-13: ★ 7,7412024-09-21: ★ 9,6042024-11-30: ★ 10,4782025-02-08: ★ 11,2952025-04-19: ★ 12,1252025-06-28: ★ 12,7452025-09-06: ★ 13,7352025-11-15: ★ 14,8472026-01-24: ★ 15,6022026-04-04: ★ 16,5022026-06-13: ★ 17,7302026-08-22: ★ 18,6442026-12-03: ★ 19,939 ★ 19.9k 2023-10 2025-05 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

pyVideoTrans is a Python 3.10 application that orchestrates four stages: ASR, subtitle translation, TTS, and video synthesis. Timed subtitles are the boundary users can inspect and edit between stages; SRT is both a transcription output and an input for standalone translation and speech synthesis. FFmpeg handles media processing, including the final assembly of audio and video.

The application package lives under videotrans/, with sp.py, cli.py, and webui.py as the desktop, headless, and Gradio browser entrypoints. Backend selection happens per stage: a local recognizer can feed either a local translator or a provider API, independently of the TTS choice. This is a selectable-backend architecture, not evidence of a public plugin SDK or a versioned job API.

Key Capabilities & Differentiators

The end-to-end mode produces dubbed, subtitled video, but the stages can also run independently. cli.py --task stt --name ./audio.wav --model_name large-v3 is one route to a timed subtitle track. The application supports batch audio and video transcription, speaker diarization, and timestamp alignment through options such as WhisperX and Parakeet. It can assign a different synthetic voice to each speaker and pause for manual review of recognition, translation, or dubbing.

ASR choices include local Faster-Whisper and services such as Alibaba Qwen3-ASR and Azure. Translation can use offline HY-MT2 or M2M100, local Ollama, or providers such as DeepSeek and Gemini. TTS options include online Edge-TTS and Azure as well as integrations with F5-TTS, CosyVoice, and GPT-SoVITS for voice cloning. The utility set covers vocal separation, subtitle merging, audio-video alignment, and transcript matching, which is useful when an existing subtitle track needs repair rather than regeneration.

Trade-offs & Limitations

Faster-Whisper alone is the simpler choice when the job ends at transcription. pyVideoTrans earns its additional dependencies when translation, per-speaker voices, timing, and final muxing must stay in one workflow. The review checkpoints matter because a misattributed speaker can receive the wrong voice, and a longer translated line can sound rushed or overrun its original time slot. Compared with a managed dubbing service, self-hosting gives more control over backend choice and where processing occurs, but shifts model and media-runtime maintenance to the operator.

Local throughput and peak RAM or VRAM depend on the selected ASR and TTS models, clip duration, and concurrent jobs. Benchmark a representative dialogue clip and a long input before setting batch capacity; the CPU container is an option, not a performance guarantee. Cloud backends reduce the local inference burden but add data transfers, provider fees, and service dependencies. GPL-3.0 applies to the application code; model licenses, provider terms, and permission to use source media or replicate a voice require separate review.

Hardware & Deployment Guide

Windows 10/11 users can run the packaged sp.exe. The source path uses Python 3.10, FFmpeg, and uv sync; macOS and Ubuntu/Debian setup also calls for libsndfile packages. The default sync does not install WebUI or Whisper.NET extras. For browser access, run uv sync --extra webui and then uv run webui.py; use uv run cli.py for headless jobs.

The Dockerfile selects python:3.10-slim by default or nvidia/cuda:12.8.0-cudnn-runtime-ubuntu22.04 with USE_CUDA=true. Gradio binds to 0.0.0.0:7860; restrict network access before exposing the port. The volume example mounts /app/output and all of /app/videotrans, so check the latter before copying the command: an empty host directory can hide the application package. Releases v4.18 through v4.20 retain the packaged Windows and source-based macOS/Linux paths. An offline run requires local backends and their model files for every stage used.

Pipeline: ASR → subtitle translation → TTS → FFmpeg-backed video synthesis, with manual review checkpoints.
Workflow interfaces: sp.py for desktop, webui.py for browser access, and cli.py with vtv, stt, sts, and tts tasks.
Backend choice: local Faster-Whisper and HY-MT2/M2M100 can replace cloud services at the ASR and translation stages.
Speaker handling: diarization informs per-speaker voice assignment; WhisperX and Parakeet are listed for alignment and diarization.
Dubbing: F5-TTS, CosyVoice, and GPT-SoVITS integrations support voice cloning; Edge-TTS and Azure provide online synthesis options.
Container runtime: Gradio WebUI on port 7860 with CPU and CUDA 12.8 builds.
Best For

Localization teams and creators who need reviewable subtitles, speaker-specific dubbing, and a choice of local or online backends before rendering a final video.

Skip If

You only need transcription, or you require a supported managed job API and predictable throughput without maintaining models, FFmpeg, or provider integrations.

Reviewed on 2026-12-01 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

DockerSelf-HostedLocal AICLI
brew install libsndfile  git  python@3.10
	
	brew uninstall --ignore-dependencies ffmpeg
	
	brew tap homebrew-ffmpeg/ffmpeg
	
	brew install homebrew-ffmpeg/ffmpeg/ffmpeg

Comparison vs. Top Voice, Vision & Video Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
pyvideotrans ★19.9k+88PythonGPL-3.0Self-hostable Python pipeline for video translation, subtitles, and dubbing
voice-pro13.5k+34PythonGPL-3.0Self-hosted Gradio studio for transcription, translation, and dubbing
speech-to-speech13.9k+137PythonApache-2.0A modular speech cascade for self-hosted voice agents over OpenAI Realtime
ComfyUI149.9k+945PythonGPL-3.0A node-graph engine for building and running multimodal AI workflows locally

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/jianchang512/pyvideotrans.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

jianchang512/pyvideotrans Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about pyvideotrans

How do I integrate pyVideoTrans without using the desktop app?

Use cli.py for subprocess integration: --task vtv takes a video, stt turns media into subtitles, sts translates an SRT, and tts synthesizes speech from an SRT. This lets you keep subtitle review or translation in another system. Provider API integrations are not a substitute for an application API contract; the CLI and WebUI are the confirmed integration surfaces.

Can I start on CPU, and how much VRAM should I budget?

A CPU WebUI image is available, but that does not guarantee that every local backend runs acceptably on CPU. Size against the actual ASR and TTS models, clip lengths, and job concurrency. Measure peak RAM or VRAM, elapsed time, and FFmpeg processing time on representative jobs before setting worker limits. There is no universal VRAM requirement across backends.

Can I self-host it for commercial localization?

Self-hosting is supported, but GPL-3.0 covers the project code, not the models, online services, or outputs. Review GPL obligations if you distribute a modified build, check model licenses and provider terms for commercial use, and confirm rights to the source media and consent for any cloned voices. A self-hosted app still sends data to any cloud backends you select.

When is it a better choice than standalone Faster-Whisper or a managed dubbing service?

Use Faster-Whisper on its own if a transcription or subtitle track is the final deliverable. Choose pyVideoTrans if you also need translation, speaker-specific casting, review checkpoints, and a dubbed video. A managed dubbing service can reduce runtime and model maintenance if its data handling, costs, and review controls meet your requirements.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining jianchang512/pyvideotrans? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature jianchang512/pyvideotrans on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

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

Saved in your browser · Export Markdown RFC tables or jump into /vs compare