centos6.8 快速安装ffmpeg3.4

http://ffmpeg.org/download.html 下载地址

wget -c ftp://ftp.videolan.org/pub/x264/snapshots/x264-snapshot-20120718-2245-stable.tar.bz2
cd  x264-snapshot-20120718-2245-stable
 ./configure --enable-shared  --enable-static
 make -j16 && make install


tar -zxvf ffmpeg-3.4.tar.gz
cd  ffmpeg-3.4
./configure --prefix=/usr/local/ffmpeg --enable-gpl --enable-version3 --enable-nonfree --enable-shared --enable-zlib --enable-bzlib --enable-libx264 --enable-pic
make -j16 && make install


vim /enable-pic

vim /etc/ld.so.conf

添加 /usr/local/ffmpeg/lib

ldconfig

vim /etc/profile
添加  export PATH=$PATH:/usr/local/ffmpeg/bin

. /etc/profile




转码命令:'ffmpeg   -i  http://hrslive-keane.oss-cn-hangzhou.aliyuncs.com/record/hrs/991109260337217636.m3u8 -y -f mp4 -c:v h264 -c:a aac -preset:v fast -profile:v baseline -bitrate 9600 -pass 1  -vol 2 -v quiet output20.mp4'


参考连接:
https://trac.ffmpeg.org/wiki/CompilationGuide/Centos
http://www.bijishequ.com/detail/203060?p=

你可能感兴趣的:(centos6.8 快速安装ffmpeg3.4)