Linux Source Code Deployment
Install ffmpeg. On CentOS, run
yum install ffmpeg; on Ubuntu, runapt-get install ffmpeg.It is recommended to use uv for installation. If you do not have uv yet, install it by running the command
curl -LsSf https://astral.sh/uv/install.sh | sh.Download the source code by executing the following commands:
git clone https://github.com/jianchang512/pyvideotrans cd pyvideotransRun the command
uv syncto install the modules. Depending on your network conditions, this may take several minutes to over ten minutes. Users in mainland China can use a mirror to speed up the installation with the command:uv sync --index https://mirrors.aliyun.com/pypi/simple/.
By default, local channels for qwen-tts, qwen-asr, moss-tts, and chatterbox are not installed. If needed, run
uv sync --all-extra.
- Run the command
uv run sp.pyto open the software interface.
To use CUDA acceleration, execute the following commands respectively:
Example
uv remove torch torchaudio
uv add --reinstall torch torchaudio --index-url https://download.pytorch.org/whl/cu126
uv add nvidia-cublas-cu12 nvidia-cudnn-cu12