Skip to content

Missing FFmpeg

If you are using Windows, the pre-packaged version already includes ffmpeg, so no action is required. The source code contains an ffmpeg.7z file; simply extract it and place it in the software's root directory.

For Linux systems, Debian-based distributions can use apt-get install ffmpeg, or Fedora-based distributions can use yum install ffmpeg for installation.

Mac systems can use brew install ffmpeg for installation.

Installing FFmpeg

Why install it? If your AI project involves audio or video, you will almost certainly need it, so installation is recommended.

Download FFmpeg and set environment variables

FFmpeg Windows version download address:

https://www.gyan.dev/ffmpeg/builds/packages/ffmpeg-6.1.1-full_build.7z

More other versions download https://www.gyan.dev/ffmpeg/builds/

After downloading and extracting the file, navigate to the bin directory, where you will find three .exe files. Copy them to a directory with a name in English characters. For example, I copied them to the E:\sdk\ffmpeg folder. Then, add this path to the Path environment variable.

How to add to the Path environment variable: Press Win+Pause (on the upper right corner of the keyboard) to open the System window, then click --Advanced system settings--Environment Variables--System variables--find Path and double-click it.

Then click New--Browse in sequence, find the directory where the 3 exe files are located.

In the browse dialog box, find the directory where the aforementioned ffmpeg.exe is located, and then click OK.

Then you can see the newly added path on the left. Click OK to close, and click OK all the way to close all open dialog boxes.

Verifying successful installation

Open a cmd window and type ffmpeg, then press Enter. If the following is displayed, it means the installation is correct. If it prompts "ffmpeg is not a recognized command or...", it means there was an error when configuring the environment variable, please reconfigure it.