cd /home/moli/soft/ffmpeg
tar -xvf ffmpeg_4.3.1.orig.tar.xz
cd ffmpeg-4.3.1/
./configure --enable-shared --prefix=/home/moli/videoSoft/ffmpeg --disable-yasm
make
等待10分钟左右...
make install
添加本次软件安装的 bin 目录 及 依赖 库到 .bashrc ,比如我的是:
export PATH="/home/moli/videoSoft/ffmpeg/bin:$PATH"
export LD_LIBRARY_PATH=/home/moli/videoSoft/ffmpeg/lib:$LD_LIBARARY_PATH
source .bashrc
测试:
ffmpeg -version