FFmpeg is a set of open source computer programs that can be used to record, convert digital audio and video, and convert them into streams. It provides a complete solution for recording, converting and streaming audio and video. F Fmpeg is developed under the Linux platform, but it can also be compiled and run in other operating system environments, including Windows , Mac OS X , etc. The FFmpeg encoding library can use GPU acceleration.
Download the linux version of ffmpeg from the official website , official website link: Index of /ffmpeg/release-source
# Unzip the compressed package
cd /soft/ffmpeg
tar xvJf ffmpeg-4.1.tar.xz
#Install
gcc and yasm compilers
_
cd ffmpeg-4.1
yum install gcc
yum install yasm
#Specify
the installation directory
/root/ffmpeg
./configure --enable-shared --prefix=/root/ffmpeg
#Execute
make
_
make
#execute
make
install
make install
#Modify
the file
/etc/ld.so.conf
vim /etc/ld.so.conf
/root/ffmpeg/lib/
#Make
the modified file
/etc/ld.so.conf
take effect
ldconfig
#View
version
./ffmpeg -version
#Configure
environment variables
vim /etc/profile
export PATH=$PATH:/soft/ffmpeg/bin
#
Make the environment variable take effect
Add
a source /etc/profile in ~/.bashrc
Then execute
source ~/.bashrc once
to make the file take effect
#Check
ffmpeg version
_
ffmpeg –version
#Install
the ffmpeg package after
activating
the python environment
conda install -c conda-forge ffmpeg