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. Execute the following commands to download the source code:
git clone https://github.com/jianchang512/pyvideotrans cd pyvideotrans - Run the command
uv syncto install the modules. Depending on your network, this may take a few 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/ - Run the command
uv run sp.pyto launch the software interface.
To use CUDA acceleration, execute the following commands separately
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