# pyvideotrans

> Translate the video from one language to another and embed dubbing & subtitles

- Type: agent or tool
- Field: Audio & Video
- Repository: https://github.com/jianchang512/pyvideotrans
- GitHub stars: 19826
- Licence: GPL-3.0
- Language: Python
- Last push: 2026-11-24
- Page: https://imutechz.in/agents/pyvideotrans

## What it is
pyVideoTrans is an open-source tool for converting videos from one language to another. It runs a full workflow of speech recognition, subtitle translation, multi-role dubbing and audio-video synchronization, and can be deployed locally offline or used with mainstream online APIs. It is aimed at people who need translated videos, subtitles or AI dubbing, and offers a desktop app, a WebUI and a CLI.

## Features
- One-click pipeline: speech recognition, subtitle translation, speech synthesis, video synthesis
- Batch audio/video to SRT subtitles with speaker diarization
- Multi-role AI dubbing with different voices per speaker
- Voice cloning via F5-TTS, CosyVoice and GPT-SoVITS
- Pause and manually proofread at recognition, translation and dubbing stages
- CLI for headless use and WebUI for browser access

## Best for
- Translating videos into other languages with dubbed audio and subtitles
- Generating SRT subtitles from audio or video in batch
- Assigning separate AI voices to different speakers
- Server or batch processing through the command line

## Pros
- Supports local offline deployment and many online APIs
- Lets you pause and proofread at each stage
- Includes utility tools such as vocal separation and audio-video alignment
- Pre-packaged Windows exe needs no Python setup

## Cons
- Source deployment requires Python 3.10 and FFmpeg configured in the environment
- GPU acceleration requires an NVIDIA GPU with CUDA 12.8 and cuDNN 9.11
- Windows exe must be extracted to a path without Chinese characters or spaces

Tags: video-translation, dubbing, subtitles, speech-recognition, text-to-speech, voice-cloning, ffmpeg, python
