ffmpeg 预设的值 加速
centos 安装ffmpeg
编译安装
官网获取最新的linux ffmpeg 代码
https://ffmpeg.org//releases/
mkdir -p /data/app/ffmpeg
cd /data/app/ffmpeg
wget http://www.ffmpeg.org/releases/ffmpeg-7.1.tar.gz
tar -zxvf ffmpeg-7.1.tar.gz
#安装所需的编译环境
yum install -y \
nasm yasm pkgconfig libtool \
gcc gcc-c++ make automake \
cmake zlib-devel \
bzip2 bzip2-devel \
xz xz-devel \
libffi-devel \
freetype-devel \
fontconfig-devel \
SDL2-devel
cd ffmpeg-7.1
./configure --prefix=/data/app/ffmpeg
make && make install
sudo yum install epel-release -y
sudo yum install https://download1.rpmfusion.org/free/el/rpmfusion-free-release-$(rpm -E %rhel).noarch.rpm -y
sudo yum install ffmpeg ffmpeg-devel -y
ffmpeg -version
ultrafast: Fastest encoding, but lowest compression (largest file size).
superfast
veryfast
faster
fast
medium (default)
slow
slower
veryslow: Slowest encoding, but the best compression (smallest file size and highest quality).