`

centos上安装ffmpeg

 
阅读更多

 1. 

yum -y install gcc cc cl


2.

 

wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz
tar -xvf yasm-1.3.0.tar.gz
cd yasm-1.3.0/
./configure && make && make install

 

3.

wget http://download.videolan.org/x264/snapshots/last_stable_x264.tar.bz2

tar -jxvf last_stable_x264.tar.bz2

cd last_stable_x264

./configure --enable-shared --enable-static --disable-asm && make && make install 

 

 

 

4.

wget http://www.ffmpeg.org/releases/ffmpeg-4.2.tar.gz
 tar -xvf ffmpeg-4.2.tar.gz
 cd ffmpeg-4.2/
 ./configure --enable-shared --enable-gpl --enable-libx264 && make && make install 

 

5. vi .bash_profile

   export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics