ffmpeg安装亲测有效果

git clone git://git.videolan.org/x264.git

cd x264

./configure --enable-static  --enable-shared    --disable-asm

make && make install

cd lame

./configure --enable-static  --enable-shared

make && make install

cd ffmpeg-4.4

./configure --prefix=/usr/local/ffmpeg --enable-shared --enable-yasm --enable-libx264 --enable-gpl --enable-pthreads --extra-cflags=-I/usr/local/x264/include --extra-ldflags=-L/usr/local/x264/lib

make && make install

# 替换

mv /usr/local/bin/ffmpeg  /usr/local/bin/ffmpeg_ccc

cp -r /usr/local/ffmpeg/bin/ffmpeg /usr/local/bin/ffmpeg

你可能感兴趣的:(ffmpeg安装亲测有效果)