Skip to content

Missing ffmpeg

If you are using Windows, the pre-packaged version already includes ffmpeg, so no action is required. If you're using the source code, you'll find a ffmpeg.7z file. Extract it and place the extracted folder in the software's root directory.

If you are using a Linux system, you can install it using apt-get install ffmpeg for Debian-based systems or yum install ffmpeg for Fedora-based systems.

For Mac systems, use brew install ffmpeg to install it.

Installing ffmpeg

Why install it? If your AI project involves audio or video, you'll almost certainly need it. Therefore, 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, navigate to the bin directory. You will see 3 .exe files. Copy them to a directory with English characters, for example, I copied them to E:\sdk\ffmpeg. Then, add this path to the Path environment variable.

How to Add to the Path Environment Variable: Press the Win key + Pause key (top right), in the window that opens, click in sequence -- Advanced System Settings -- Environment Variables -- System variables -- find the Path row and double-click it.

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

In the browse dialog, find the directory where ffmpeg.exe is located as mentioned earlier, and then click OK.

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

Verifying Successful Installation

Open any 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 valid command or...", it means you made a mistake when configuring the environment variables. Please reconfigure.