Linux Source Code Deployment
- Install FFmpeg. Run
yum install ffmpegon CentOS, orapt-get install ffmpegon Ubuntu. - It is recommended to use
uvfor installation. Ifuvis not yet installed, please run the following command to install it:curl -LsSf https://astral.sh/uv/install.sh | sh - Download the source code. Execute the following commands:
git clone https://github.com/jianchang512/pyvideotrans cd pyvideotrans - Run
uv syncto install dependencies. Depending on network conditions, this may take a few to several minutes. Users in Mainland China can use a mirror to accelerate the installation using the command:uv sync --index https://mirrors.aliyun.com/pypi/simple/ - Run
uv run sp.pyto launch the software interface.
To enable 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