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).
原文地址:https://blog.csdn.net/qq_22823581/article/details/144060131
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!