CentOS7安装ffmpeg4.1+libx264
跳到导航
跳到搜索
gcc
安装yasm
wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz 三步曲
安装nasm
wget http://www.nasm.us/pub/nasm/releasebuilds/2.13/nasm-2.13.tar.gz 三步曲
.安装libx264
git clone https://code.videolan.org/videolan/x264.git 2.进入x264目录 cd x264 3.编译和安装 执行1:./configure --enable-shared 执行2:make 执行3:make install
配置lib
执行vim /etc/ld.so.conf 在include ld.so.conf.d/*.conf后换行添加 /usr/local/lib cat /etc/profile export PATH=$PATH:/usr/local/bin
安装ffmpeg4.1
安装ffmpeg4.1 wget https://git.ffmpeg.org/gitweb/ffmpeg.git/snapshot/refs/heads/release/4.1.tar.gz ./configure --prefix=/usr/local/ffmpeg41 --enable-gpl --enable-libx264 3236 2022-03-29 20:14:44 make -j 8 3237 2022-03-29 20:18:34 make install /usr/local/ffmpeg41/bin/ffmpeg --version