PyVideoTrans is a comprehensive tool designed for automated video translation and dubbing. It streamlines the process of taking a video in one language and producing a version in another, complete with synchronized subtitles and localized voiceovers.
The software integrates several high-performance speech recognition models, including faster-whisper, openai-whisper, Google Speech, and Alibaba’s Chinese-specific model (zh_recogn).
Users can choose from a wide array of translation services to suit their needs: Microsoft Translate, Google Translate, Baidu Translate, Tencent Translate, ChatGPT, Azure AI, Gemini, DeepL, DeepLX, and offline translation via OTT.
To provide natural-sounding dubbing, PyVideoTrans supports numerous TTS engines: Microsoft Edge TTS, Google TTS, Azure AI TTS, OpenAI TTS, Elevenlabs TTS, custom TTS API servers, GPT-SoVITS, clone-voice, and ChatTTS-ui.
sp.exe to launch. If you encounter permission errors, right-click the file and select "Run as administrator."sp.exe to a different folder after extraction./bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"eval $(brew --config) brew install libsndfile ffmpeg git [email protected]export PATH="/usr/local/opt/[email protected]/bin:$PATH"
source ~/.bash_profile
source ~/.zshrcgit clone https://github.com/jianchang512/pyvideotrans
cd pyvideotrans
python -m venv venv
source ./venv/bin/activate
(Your command prompt should now display (venv). All subsequent commands must be executed within this environment.)pip install -r requirements.txt --no-deps
If the installation fails, switch to the Alibaba mirror:
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
pip config set install.trusted-host mirrors.aliyun.com
Then retry. If issues persist, try:
pip install -r requirements.txt --ignore-installed --no-depspython sp.pyCentOS / RHEL
sudo yum update
sudo yum groupinstall "Development Tools"
sudo yum install openssl-devel bzip2-devel libffi-devel
cd /tmp
wget https://www.python.org/ftp/python/3.10.4/Python-3.10.4.tgz
tar xzf Python-3.10.4.tgz
cd Python-3.10.4
./configure --enable-optimizations
sudo make && sudo make install
sudo alternatives --install /usr/bin/python3 python3 /usr/local/bin/python3.10
sudo yum install -y ffmpegUbuntu / Debian
Install Python 3.10:
apt update && apt upgrade -y
apt install software-properties-common -y
add-apt-repository ppa:deadsnakes/ppa
apt update
sudo apt-get install libxcb-cursor0
apt install python3.10
curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10
(Verify the pip version; it should indicate pip 23.2.1 or similar from the Python 3.10 site-packages.)
sudo update-alternatives --install /usr/bin/python python /usr/local/bin/python3.10
sudo update-alternatives --config python
apt-get install ffmpeg
Verify the installation: python3 -V should return 3.10.4.
Create a folder (no spaces or Chinese characters in the path) and open the Terminal in that location.
Run the following:
git clone https://github.com/jianchang512/pyvideotrans
cd pyvideotrans
python -m venv venv
source ./venv/bin/activate
(Ensure the prompt shows (venv).)
Install dependencies:
pip install -r requirements.txt --no-deps
If this fails, use the Alibaba mirror (refer to the MacOS instructions) and retry.
For CUDA acceleration (NVIDIA GPU and CUDA 11.8+ required):
pip uninstall -y torch torchaudio
pip install torch torchaudio --index-url https://download.pytorch.org/whl/cu118
pip install nvidia-cublas-cu11 nvidia-cudnn-cu11
Extract the ffmpeg.zip file into the source folder, overwriting existing files when prompted. Once finished, the ffmpeg directory must contain ffmpeg.exe, ffprobe.exe, and ytwin32.exe.
Launch the tool: python sp.py
cmd in the File Explorer address bar to open a command prompt in that folder.git clone https://github.com/jianchang512/pyvideotrans
cd pyvideotrans
python -m venv venv
.\venv\scripts\activate
(The prompt should now display (venv).)pip install -r requirements.txt --no-deps
If the process fails, switch to the Alibaba mirror as described previously.pip uninstall -y torch torchaudio
pip install torch torchaudio --index-url https://download.pytorch.org/whl/cu118ffmpeg.zip into the source folder. Overwrite files if prompted. Ensure the ffmpeg folder contains ffmpeg.exe, ffprobe.exe, and ytwin32.exe.python sp.pyThe default ctranslate2 version is 4.x, which requires CUDA 12.x. If your hardware only supports an older version of CUDA and you cannot upgrade, run the following:
pip uninstall -y ctranslate2
pip install ctranslate2==3.24.0
If you encounter a "module not found" error, open requirements.txt, locate the missing module, and remove the == and the version number. Save the file and reinstall the dependencies.
AI Multi-Agent Stock Trading System: GPT-5 and Claude 4.5 Sonnet
Sora 2 AI Watermark Remover: Remove Sora Watermarks Cleanly
SE-Agent: Self-Evolving AI Agent Tops SWE-bench Verified
Halo Docker Compose Deployment Guide – Requirements & Setup
Open Deep Research: Customizable AI Agents for Automated Report Generation
Checkmate: Open-Source Server Monitoring with Uptime Alerts
Larachat: Build a Real-Time AI Chat App with Laravel and React
Helicone AI Gateway: A High-Performance Rust-Powered LLM Proxy
How to Install and Use Vosk Offline Speech Recognition
SelfyAI: Build Your Own AI Agent as a Virtual World Asset
ChineseBQB: The Ultimate Archive of Chinese Memes—Search, Download, and Win Every Group Chat
AgentCPM-GUI: A Local LLM Agent for Navigating Chinese Mobile Apps