1,下载ffmpeg源码包
wget http://ffmpeg.org/releases/ffmpeg-3.0.2.tar.bz2
tar -jxvf ffmpeg-3.0.2.tar.bz2
2,编译配置
root@ts-test:~/ffmpeg-3.0.2# ./configure --enable-shared --prefix=/usr/local/ffmpeg
yasm/nasm not found or too old. Use --disable-yasm for a crippled build.
报错,搜我们需要
apt-get install yasm
3,配置安装
./configure --enable-shared --prefix=/usr/local/ffmpeg
make
make install