FFmpeg 安装配置
依赖包
sudo apt-get install -y autoconf automake bzip2 cmake freetype-devel gcc gcc-c++ git libtool make mercurial pkgconfig zlib-devel x264-devel
sudo apt-get install yasm -y
安装
wget https://ffmpeg.org/releases/ffmpeg-4.2.3.tar.bz2
tar -jxvf ffmpeg-4.2.3.tar.bz2
cd ffmpeg-4.2.3
./configure --prefix=/usr/local/ffmpeg
sudo make && sudo make install
系统配置
sudo vim /etc/bash.bashrc
export FFMPEG_HOME=/usr/local/ffmpeg
export PATH=$FFMPEG_HOME/bin:$PATH
source ~/.zshrc
sudo vim /etc/ld.so.conf
include ld.so.conf.d/*.conf
/usr/local/ffmpeg/lib/
sudo ldconfig
ln -s /usr/local/ffmpeg/bin/ffmpeg /usr/bin/ffmpeg