linux离线安装ffmpeg

亲测不会有各种坑!!!

我需要在一台内网环境的centos7.6(192.168.1.33)上安装ffmpeg

可以借助一台有网的服务器,来操作

静态编译FFmpeg

复制代码
./configure --enable-static --disable-shared --prefix=/usr/local/ffmpeg-static
make -j$(nproc)
make install

此时可以看到出现了

复制代码
ffmpeg ffprobe config.h doc/ libav*/ fftools/

打包编译好的二进制文件

复制代码
tar czvf ffmpeg-static.tar.gz /usr/local/ffmpeg-static

在离线服务器上解压即可使用

复制代码
tar xzvf ffmpeg-static.tar.gz -C /usr/local
export PATH=/usr/local/ffmpeg-static/bin:$PATH

查看

复制代码
[root@host-136-64-250-219 ffmpeg]# ffmpeg
ffmpeg version 6.1.1 Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-44)
  configuration: --enable-static --disable-shared --prefix=/usr/local/ffmpeg-static
  libavutil      58. 29.100 / 58. 29.100
  libavcodec     60. 31.102 / 60. 31.102
  libavformat    60. 16.100 / 60. 16.100
  libavdevice    60.  3.100 / 60.  3.100
  libavfilter     9. 12.100 /  9. 12.100
  libswscale      7.  5.100 /  7.  5.100
  libswresample   4. 12.100 /  4. 12.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'
相关推荐
Johny_Zhao9 小时前
OpenClaw安装部署教程
linux·人工智能·ai·云计算·系统运维·openclaw
chlk1232 天前
Linux文件权限完全图解:读懂 ls -l 和 chmod 755 背后的秘密
linux·操作系统
舒一笑2 天前
Ubuntu系统安装CodeX出现问题
linux·后端
改一下配置文件2 天前
Ubuntu24.04安装NVIDIA驱动完整指南(含Secure Boot解决方案)
linux
碳基沙盒2 天前
OpenClaw 多 Agent 配置实战指南
运维
深紫色的三北六号2 天前
Linux 服务器磁盘扩容与目录迁移:rsync + bind mount 实现服务无感迁移(无需修改配置)
linux·扩容·服务迁移
SudosuBash2 天前
[CS:APP 3e] 关于对 第 12 章 读/写者的一点思考和题解 (作业 12.19,12.20,12.21)
linux·并发·操作系统(os)
哈基咪怎么可能是AI3 天前
为什么我就想要「线性历史 + Signed Commits」GitHub 却把我当猴耍 🤬🎙️
linux·github
十日十行4 天前
Linux和window共享文件夹
linux
木心月转码ing4 天前
WSL+Cpp开发环境配置
linux