[Linux] ffmpeg installation tutorial

Reference from: https://www.cnblogs.com/freeweb/p/6897907.html

ffmpeg is a very fast video and audio converter, you can also grab from live audio / video source. It polyphase filter can be switched between any sampling rates, and use of high-quality video dynamically adjust the size.

Download  https://ffmpeg.org/download.html

Documentation Tutorial  https://ffmpeg.org/documentation.html

yasm do not know what Download http://yasm.tortall.net/Download.html

First, download the source package ffmpeg

wget https://ffmpeg.org/releases/ffmpeg-4.0.2.tar.bz2

tar -xjvf ffmpeg-4.0.2.tar.bz2 

Second, download the source package yasm

(Looks like you can use --disable-yasm disable this option to compile)

wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz
//解压
tar -xvzf yasm-1.3.0.tar.gz
//进入解压出来的文件夹
cd yasm-1.3.0.tar.gz
//安装
./configure
make
make install

Third, install ffmpeg

//进入 ffmpeg文件夹
cd ../ffmpeg-4.0.2.tar.bz2
//编译 安装
./configure --enable-shared --prefix=/monchickey/ffmpeg
make
make install
//巴拉巴拉的贼鸡儿久
//打开配置文件(不存在则新建)
vim /etc/ld.so.conf.d/ffmpeg.conf

Finally, insert a line in ffmpeg.conf file / monchickey / ffmpeg / lib then save and exit
and then update the configuration

ldconfig

After ffmpeg Bahrain will have a monchickey file in the root folder

Check whether the installation was successful

/monchickey/ffmpeg/bin/ffmpeg -version

 

Such a thing appears the installation was successful.

ffmpeg command Detailed reference to the bar  https://blog.csdn.net/sunliangyuan/article/details/23265727

Do you want to organize an audio processing section under consideration again

Published 35 original articles · won praise 18 · views 370 000 +

Guess you like

Origin blog.csdn.net/TXX_c/article/details/83548348