Pre-install Dependencies
Use brew to install ffmpeg on MacOS. If your Mac does not support the brew command, you need to install Homebrew first.
Use this command to install Homebrew: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
The above command requires a scientific internet connection to execute successfully. If it fails, please use the command below.
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
Open a terminal and execute the following commands: brew install ffmpeg libsndfile git
Ensure all commands execute correctly without errors before proceeding.
Download and Extract Source Code
- It is recommended to use uv for installation. If you do not have uv yet, execute the following command to install it first.
curl -LsSf https://astral.sh/uv/install.sh | sh
- Download the source code by executing the following command:
git clone https://github.com/jianchang512/pyvideotrans cd pyvideotrans - Execute the command
uv syncto install 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 installation with the command:uv sync --index https://mirrors.aliyun.com/pypi/simple/ - Execute the command
uv run sp.pyto open the software interface.
How to Open the Software Again
Each time you want to open the software, you need to open a terminal within the software directory and execute the command uv run sp.py to launch the software.
