Skip to content

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

  1. It is recommended to use uv for installation. If you haven't installed uv yet, please execute the following command to install it first:

curl -LsSf https://astral.sh/uv/install.sh | sh

  1. Download the source code by executing the following commands:
    git clone https://github.com/jianchang512/pyvideotrans
    cd pyvideotrans
  2. Execute the command uv sync to 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/
  3. Execute the command uv run sp.py to 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.