Missing ffmpeg
If it is a Windows system, the pre-packaged version already contains ffmpeg, so no processing is required. The source code contains the ffmpeg.7z file, which can be extracted and stored in the software's root directory.
If it is a Linux system, Debian-based systems can use apt-get install ffmpeg
or Fedora-based systems can use yum install ffmpeg
to install it.
Mac systems use brew install ffmpeg
to install.
Install ffmpeg
Why install it? If the AI project involves audio or video, it will almost certainly use it, so it is recommended to install it.
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, go to the bin directory, you will see 3 exe files. Copy them to an English directory, for example, I copied them to the E:\sdk\ffmpeg
folder, and then add this path to the Path environment variable.
How to add a Path environment variable: Hold down the Win key + Pause key (top right), click --Advanced system settings--Environment Variables--System variables--find the Path line and double-click.
Then click New--Browse in sequence, find the directory where the 3 exe files are located.
In the browse dialog, find the directory where the previously mentioned 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 the open dialog boxes.
Verify whether the installation is successful
Open a cmd window at will, enter ffmpeg and press Enter. If the following is displayed, it means the installation is correct. If it prompts "ffmpeg is not an available command or...", it means that you made a mistake when configuring the environment variables. Please reconfigure.