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'
相关推荐
chatexcel1 小时前
元空AI+Clawdbot:7×24 AI办公智能体新形态详解(长期上下文/自动化任务/工具粘合)
运维·人工智能·自动化
kida_yuan1 小时前
【Linux】运维实战笔记 — 我常用的方法与命令
linux·运维·笔记
@syh.1 小时前
【linux】进程控制
linux
假装我不帅2 小时前
ffmpeg操作mp3去除封面信息
ffmpeg
何中应3 小时前
vmware的linux虚拟机如何设置以命令行方式启动
linux·运维·服务器
江畔何人初3 小时前
kubernet与docker的关系
linux·运维·云原生
bubuly4 小时前
软件开发全流程注意事项:从需求到运维的全方位指南
大数据·运维·数据库
百炼成神 LV@菜哥4 小时前
Kylin Linux V10 aarch64 安装启动 TigerVNC-Server
linux·服务器·kylin
佑白雪乐4 小时前
<Linux基础11集>电流+二极管+晶体管+存储器
linux
嵌入式郑工4 小时前
RK3566 LubanCat 开发板 USB Gadget 配置完整复盘
linux·驱动开发·ubuntu