Detailed tutorial for installing ffmpeg under linux
- 2021-08-17 01:49:21
- OfStack
1. Install ffmpeg under centos linux
1. Download and decompress
wget http://www.ffmpeg.org/releases/ffmpeg-3.1.tar.gz
tar -zxvf ffmpeg-3.1.tar.gz
2. Enter the extracted directory and enter the following command/usr/local/ffmpeg to specify the installation directory for yourself
cd ffmpeg-3.1
./configure --prefix=/usr/local/ffmpeg
make && make install
3. Configure variables
vi /etc/profile
At the end PATH Add environment variables:
export PATH=$PATH:/usr/local/ffmpeg/bin
Save Exit
Check whether it is effective
source /ect/profile Set to take effect
4. View the version
ffmpeg -version View version
Note:
If the following errors occur during installation:
yasm/nasm not found or too old. Use disable-yasm for a crippled build.
If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config. log" produced by configure as this will help
solve the problem.
yasm needs to be installed
wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz
tar -zxvf yasm-1.3.0.tar.gz
cd yasm-1.3.0
./configure
make && make install
2. debian Install ffmpeg
1. Edit/etc/apt/sources. list join
deb http://www.deb-multimedia.org jessie main
2. Install ffmpeg
sudo apt-get update
sudo apt-get install deb-multimedia-keyring
sudo apt-get install ffmpeg