Raspberry Pi3 Raspbian-stretch本地编译安装FFmpeg【2018-01-21】

声明:个人参考,不喜勿喷

下载x264、lame、faac、FFmpeg

cd /home/pi/Downloads
wget http://download.videolan.org/x264/snapshots/x264-snapshot-20171019-2245.tar.bz2
wget http://jaist.dl.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz
wget http://downloads.sourceforge.net/faac/faac-1.28.tar.gz 
wget http://ffmpeg.org/releases/ffmpeg-3.0.7.tar.gz 

解压x264、lame、faac、FFmpeg

tar -jxvf x264-snapshot-20171019-2245.tar.bz2
tar -zxvf lame-3.99.5.tar.gz
tar -zxvf faac-1.28-tar.gz
tar -zxvf ffmpeg-3.0.7.tar.gz

安装x264、lame、faac、FFmpeg

安装x264

cd /home/pi/Downloads/x264-snapshot-20171019-2245
sudo ./configure --prefix=/usr/local/x264 --enable-shared --enable-static
sudo make
sudo make install

安装lame

cd /home/pi/Downloads/lame-3.99.5
sudo ./configure --prefix=/usr/local/lame --enable-shared --enable-static
sudo make
sudo make install

安装faac

cd /home/pi/Downloads/faac-1.28
sudo ./configure --prefix=/usr/local/faac
sudo make
sudo make install

安装FFmpeg

cd /home/pi/Downloads/ffmpeg-3.0.7
sudo ./configure --prefix=/usr/local/ffmpeg --enable-libx264 --enable-gpl --enable-nonfree --enable-version3 --enable-libmp3lame --enable-libfaac --enable-x11grab --enable-shared  --extra-cflags=-I/usr/local/x264/include --extra-ldflags=-L/usr/local/x264/lib
sudo make
sudo make install

你可能感兴趣的:(Raspberry Pi3 Raspbian-stretch本地编译安装FFmpeg【2018-01-21】)