Pre-installation of 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 VPN/Proxy 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 command: brew install ffmpeg libsndfile git
Confirm that everything executed correctly without errors, then proceed below.
Download Source Code
- It is recommended to use
uvfor installation. If you haven't installeduvyet, please 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 commands:
git clone https://github.com/jianchang512/pyvideotrans cd pyvideotrans - Execute the command
uv syncto install modules. Depending on network conditions, this may take anywhere from 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/ - Execute the command
uv run sp.pyto open the software interface.
How to Open the Software Again
Every time you open the software, you need to open a terminal within the software directory and execute the command uv run sp.py to launch it.
