cd ~/ffmpeg_sources wget https://www.nasm.us/pub/nasm/releasebuilds/2.13.03/nasm-2.13.03.tar.bz2 tar xjvf nasm-2.13.03.tar.bz2 cd nasm-2.13.03 ./autogen.sh PATH="$HOME/bin:$PATH" ./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" make make install
YASM
1
sudo apt-get install yasm
安装编解码库
libx264
1
sudo apt-get install libx264-dev
libx265
1
sudo apt-get install libx265-dev
libvpx
1
sudo apt-get install libvpx-dev
libfdk-aac
1
sudo apt-get install libfdk-aac-dev
libmp3lame
1
sudo apt-get install libmp3lame-dev
libopus
1
sudo apt-get install libopus-dev
安装 SDL2
否则无法使用 ffplay 命令,使用时会报错:The program 'ffplay' is currently not installed.