源码编译安装:
1.下载yasm安装包http://yasm.tortall.net/Download.html
Source.tar.gz
2.安装yasm
tar -zxzf yasm-1.3.0.tar.gz
cd yasm-1.3.0/
./configure
make
make install
3.下载ffmpe源码包
git clone git:
//source
.ffmpeg.org
/ffmpeg
.git ffmpeg
4.安装ffmpeg
先安装依赖库
sudo
apt-get
install
-y autoconf automake build-essential git libass-dev libfreetype6-dev libsdl2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev libxcb1-dev libxcb-shm0-dev libxcb-xfixes0-dev pkg-config texinfo wget zlib1g-dev
sudo apt
install
libavformat-dev
sudo apt
install
libavcodec-dev
sudo apt install
libswresample-dev
sudo apt install
libswscale-dev
sudo apt install
libavutil-dev
sudo apt install
libsdl1.2-dev
再安装ffmpeg
cd ffmpeg
.
/configure
--
enable
-shared --prefix=
/usr/local/ffmpeg
make
sudo make install
成功后查看版本:ffmpeg -version
命令安装:
sudo apt-get install yasm
sudo apt-get install ffmpeg