美文网首页
03 centos7中安装ffmpeg

03 centos7中安装ffmpeg

作者: 张力的程序园 | 来源:发表于2020-11-03 19:57 被阅读0次

这一节我们了解一下如何在centos7中安装ffmpeg。

1、环境约束

  • Centos 7
  • ffmpeg-4-1

2、操作步骤

  • 使用xshell或者putty以root登录到centos7
  • 执行以下的命令,安装yasm
#下载源码包
wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz
# 解压
tar zxvf yasm-1.3.0.tar.gz
#进入目录
cd yasm-1.3.0  
#配置 
./configure 
#编译安装
make && make install 
  • 执行以下命令,安装ffmpeg
# 进到家目录
cd
# 下载安装包
wget https://johnvansickle.com/ffmpeg/release-source/ffmpeg-4.1.tar.xz
# 解压
tar -xvf ffmpeg-4.1.tar.xz
# 进入文件夹
cd ffmpeg-4.1
# 配置
./configure
# 编译安装
make && make install
  • 测试,确保ffmpeg-4.1文件夹下已经存在wanho.mp4
./ffmpeg -i wanho.mp4 -force_key_frames "expr:gte(t,n_forced*10)" -c:v libx264 -hls_time 10 -hls_list_size 0 -c:a aac -strict -2 -f hls wanho.m3u8

以上就是在centos7中安装和使用ffmpeg的过程。

相关文章

  • 03 centos7中安装ffmpeg

    这一节我们了解一下如何在centos7中安装ffmpeg。 1、环境约束 Centos 7 ffmpeg-4-1 ...

  • 音/视频工具 FFmpeg 简易安装文档

    Mac 安装步骤 Ubuntu 安装步骤 Centos7 安装步骤 提醒:CentOS 此方式安装 FFmpeg ...

  • 15_Centos7中安装VirtualBox虚拟机

    时间:2018-07-03 作者:魏文应 一、安装说明 在Centos7中安装VirtualBox虚拟机。 V...

  • CentOS7下编译FFMPEG源代码

    一、CentOs7下编译FFMpeg相关资料 找到一篇关于在CentOS7下编译FFMPEG源代码的文章,地址为:...

  • centos7源码安装ffmpeg

    简介: 如果正常只编译安装ffmpeg 会出缺少lib264 的情况 系统版本:centos7 其他软件版本:  ...

  • CentOS7安装ffmpeg

    1、安装步骤如下 2、编译FFmgeg执行./configure 时会报此错误。 再次编译 3、修改vi /etc...

  • centos7 安装 ffmpeg

    安装EPEL Release,因为安装需要使用其他的repo源,所以需要EPEL支持: yum install -...

  • Centos7 安装ffmpeg

    # yum localinstall --nogpgcheck https://download1.rpmfusi...

  • Centos7 安装ffmpeg

    介绍 由于需要做微信和坐席IM通话音频转换处理,所以需要在centos7服务器上安装ffmpeg。 下载 首先需要...

  • Centos7 安装FFmpeg

    1.官网地址http://ffmpeg.org/download.html2.本次使用的文件为gitHub上下载下...

网友评论

      本文标题:03 centos7中安装ffmpeg

      本文链接:https://www.haomeiwen.com/subject/xfnbvktx.html