开源 一个Linux系统下的 ffmpeg编译安装工具
默认编译的最新 ffmpeg 8.0.0 版本
可以修改 version.txt 里的版本号 重新拉取 就可以指定版本了
特性
全源码编译:从源码编译 FFmpeg,集成 40+ 编解码器与库版本统一管理:所有组件版本定义于 versions.txt(单一数据源)断点续编:通过 .done_* 标记支持断点续编,已构建模块自动跳过多系统支持:Ubuntu 22.04、Rocky Linux 9 及兼容发行版可选功能:CUDA/NVENC、Intel QSV、静态链接、PATH/ldconfig 集成
# 官方网站
# 开源仓库
# Deploy
cd /opt
# 克隆仓库
cd /opt
# Clone repository
git clone
cd ffmpegtoolkit
chmod +x -R ./
# 1. 安装编译依赖(需 root)
sudo ./build.sh deps
# 2. 下载所有源码包
./build.sh fetch
# 3. 编译(默认安装到 /opt/ffmpeg-toolkit)
./build.sh build
# 4. 将 ffmpeg/ffprobe 软链接到 /usr/local/bin(可选)
./build.sh --link
# 5. 注册共享库(解决 "cannot open shared object")
./build.sh ldconfig
# 验证
ffmpeg -version
ffmpeg version 8.0.1 Copyright (c) 2000-2025 the FFmpeg developers
built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04.2)
configuration: --prefix=/opt/ffmpeg-toolkit --pkg-config-flags=--static --extra-cflags=-I/opt/ffmpeg-toolkit/include --extra-ldflags='-L/opt/ffmpeg-toolkit/lib -L/opt/ffmpeg-toolkit/lib64' --extra-libs='-lstdc++ -lpthread -lm' --enable-gpl --enable-version3 --enable-static --enable-libx264 --enable-libx265 --enable-libvpx --enable-libaom --enable-libsvtav1 --enable-libopenh264 --enable-libvmaf --enable-libilbc --enable-libjxl --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libtheora --enable-libwebp --enable-libass --enable-libfreetype --enable-libfribidi --enable-libzimg --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-swscale --enable-avfilter --disable-debug --enable-runtime-cpudetect --enable-libfdk-aac --enable-nonfree
libavutil 60. 8.100 / 60. 8.100
libavcodec 62. 11.100 / 62. 11.100
libavformat 62. 3.100 / 62. 3.100
libavdevice 62. 1.100 / 62. 1.100
libavfilter 11. 4.100 / 11. 4.100
libswscale 9. 1.100 / 9. 1.100
libswresample 6. 1.100 / 6. 1.100
复制代码
亲测 ubuntu 22 和 almalinux 9 在 Linode的8核测试通过
耗时30m 其它系统还没测试
N卡CUDA和Intel核显QSV硬件没机器 还没测试
后面在搞
默认编译的最新 ffmpeg 8.0.0 版本
可以修改 version.txt 里的版本号 重新拉取 就可以指定版本了
特性
全源码编译:从源码编译 FFmpeg,集成 40+ 编解码器与库版本统一管理:所有组件版本定义于 versions.txt(单一数据源)断点续编:通过 .done_* 标记支持断点续编,已构建模块自动跳过多系统支持:Ubuntu 22.04、Rocky Linux 9 及兼容发行版可选功能:CUDA/NVENC、Intel QSV、静态链接、PATH/ldconfig 集成
# 官方网站
# 开源仓库
# Deploy
cd /opt
# 克隆仓库
cd /opt
# Clone repository
git clone
cd ffmpegtoolkit
chmod +x -R ./
# 1. 安装编译依赖(需 root)
sudo ./build.sh deps
# 2. 下载所有源码包
./build.sh fetch
# 3. 编译(默认安装到 /opt/ffmpeg-toolkit)
./build.sh build
# 4. 将 ffmpeg/ffprobe 软链接到 /usr/local/bin(可选)
./build.sh --link
# 5. 注册共享库(解决 "cannot open shared object")
./build.sh ldconfig
# 验证
ffmpeg -version
ffmpeg version 8.0.1 Copyright (c) 2000-2025 the FFmpeg developers
built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04.2)
configuration: --prefix=/opt/ffmpeg-toolkit --pkg-config-flags=--static --extra-cflags=-I/opt/ffmpeg-toolkit/include --extra-ldflags='-L/opt/ffmpeg-toolkit/lib -L/opt/ffmpeg-toolkit/lib64' --extra-libs='-lstdc++ -lpthread -lm' --enable-gpl --enable-version3 --enable-static --enable-libx264 --enable-libx265 --enable-libvpx --enable-libaom --enable-libsvtav1 --enable-libopenh264 --enable-libvmaf --enable-libilbc --enable-libjxl --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libtheora --enable-libwebp --enable-libass --enable-libfreetype --enable-libfribidi --enable-libzimg --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-swscale --enable-avfilter --disable-debug --enable-runtime-cpudetect --enable-libfdk-aac --enable-nonfree
libavutil 60. 8.100 / 60. 8.100
libavcodec 62. 11.100 / 62. 11.100
libavformat 62. 3.100 / 62. 3.100
libavdevice 62. 1.100 / 62. 1.100
libavfilter 11. 4.100 / 11. 4.100
libswscale 9. 1.100 / 9. 1.100
libswresample 6. 1.100 / 6. 1.100
复制代码
亲测 ubuntu 22 和 almalinux 9 在 Linode的8核测试通过
耗时30m 其它系统还没测试
N卡CUDA和Intel核显QSV硬件没机器 还没测试
后面在搞