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'
相关推荐
FIT2CLOUD飞致云1 天前
操作教程|使用Cursor工具连接JumpServer资产
运维·开源
会飞的小蛮猪1 天前
Jenkins运维之路(Slave容器节点)
运维·ci/cd·jenkins
做运维的阿瑞1 天前
15 分钟图解 Linux 内核到发行版:运维选型不再纠结
linux
刘立军2 天前
内网的服务如何能在公网使用?
运维
Java陈序员2 天前
直播录制神器!一款多平台直播流自动录制客户端!
python·docker·ffmpeg
飞询2 天前
docker 部署 sftp
运维·docker
LH_R3 天前
OneTerm开源堡垒机实战(四):访问授权与安全管控
运维·后端·安全
用户31187945592183 天前
Kylin Linux 10 安装 glib2-devel-2.62.5-7.ky10.x86_64.rpm 方法(附安装包)
linux
Raymond运维3 天前
MariaDB源码编译安装(二)
运维·数据库·mariadb
涛啊涛3 天前
Centos7非LVM根分区容量不足后扩容,对调硬盘挂载/
linux·磁盘管理