Centos7安装ffmpeg记录
发布日期:2021-09-14 23:18:03 浏览次数:8 分类:技术文章

本文共 896 字,大约阅读时间需要 2 分钟。

首先一般都是需要安装yasm的:

sudo wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gzsudo tar -zxvf yasm-1.3.0.tar.gzcd yasm-1.3.0sudo ./configuresudo make && make install

这是解决会出现如下报错:

yasm/nasm not found or too old. Use –disable-yasm for a crippled build.
If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file “config.log” produced by configure as this will help
solve the problem.

然后安装ffmpeg:

下载并解压:sudo wget http://www.ffmpeg.org/releases/ffmpeg-3.1.tar.gzsudo tar -zxvf ffmpeg-3.1.tar.gz安装:cd ffmpeg-3.1sudo ./configure --prefix=/usr/local/ffmpegsudo make && make install配置环境变量:vi /etc/profile在最后PATH添加环境变量:export PATH=$PATH:/usr/local/ffmpeg/bin保存退出查看是否生效source /ect/profile  设置生效查看版本:ffmpeg -version

转载地址:https://blog.csdn.net/weixin_43451928/article/details/114530434 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:linux下搭建nginx+rtmp服务器,并通过ffmpeg推流(Centos7)
下一篇:m3u8文件

发表评论

最新留言

哈哈,博客排版真的漂亮呢~
[***.90.31.176]2024年04月01日 14时35分28秒