ffmpeg安装

第一步:下载libx264

git clone https://code.videolan.org/videolan/x264.git libx264

第二步:安装nasm2.13.03

wget http://www.nasm.us/pub/nasm/releasebuilds/2.13.03/nasm-2.13.03.tar.xz
xz -d nasm-2.13.03.tar.xz
tar -xvf nasm-2.13.03.tar
cd nasm-2.13.03
./configure  --prefix=/usr 
make
make install

第三步:安装libx264

apt-get install libx264-dev
./configure --enable-static --enable-shared
make
make install

打开/etc/ld.so.conf

添加/usr/local/lib

运行

ldconfig

第四步:安装ffmpeg

git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg
./configure  --enable-gpl --enable-version3 --enable-nonfree --enable-pthreads --enable-libx264 --enable-shared
make
make install

打开 /etc/ld.so.conf

加入/usr/local/ffmpeg/lib

更新环境变量ldconfig

打开/etc/profile

加入export PATH="/usr/local/ffmpeg/bin:$PATH"

运行

source /etc/profile

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值