美文网首页
CentOS7安装ffmpeg

CentOS7安装ffmpeg

作者: 景贤游子_小跟班 | 来源:发表于2020-05-26 08:46 被阅读0次

1、安装步骤如下

wget http://www.ffmpeg.org/releases/ffmpeg-3.1.tar.gz
tar -zxvf ffmpeg-3.1.tar.gz
cd ffmpeg-3.1
./configure --prefix=/usr/local/ffmpeg
make && make install 

2、编译FFmgeg执行./configure 时会报此错误。

nasm/yasm not found or too old. Use --disable-x86asm for a crippled build.
yum install -y yasm

再次编译

./configure --prefix=/usr/local/ffmpeg
make && make install 

3、修改vi /etc/ld.so.conf 内容如下,执行ldconfig 是生效。

include ld.so.conf.d/*.conf
/usr/local/ffmpeg/lib/

4、添加环境变量 vi /etc/profile 末尾追加如下内容

PATH=$PATH:/usr/local/ffmpeg/bin
export PATH
source /etc/profile

5、查看版本

[root@localhost]#  ffmpeg -version
ffmpeg version 3.4.1 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-28)
configuration: --prefix=/usr/local/ffmpeg
libavutil      55. 78.100 / 55. 78.100
libavcodec     57.107.100 / 57.107.100
libavformat    57. 83.100 / 57. 83.100
libavdevice    57. 10.100 / 57. 10.100
libavfilter     6.107.100 /  6.107.100
libswscale      4.  8.100 /  4.  8.100
libswresample   2.  9.100 /  2.  9.100

到此安装结束,如果对你有帮助,请支持下作者,谢谢了。

相关文章

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

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

  • 03 centos7中安装ffmpeg

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

  • 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上下载下...

  • 视频切片转m3u8

    1、安装ffmpeg brew install ffmpeg 2. 安装ffmpeg依赖 查看安装信息 brew ...

网友评论

      本文标题:CentOS7安装ffmpeg

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