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 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!
发表评论
最新留言
哈哈,博客排版真的漂亮呢~
[***.90.31.176]2024年04月01日 14时35分28秒
关于作者
喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!
推荐文章
【面试篇】 Java对象拷贝(对象克隆 对象复制)
2019-04-26
【Leetcode刷题篇】leetcode64 最小路径和
2019-04-26
【Leetcode刷题篇】leetcode79 单词搜索
2019-04-26
【Leetcode刷题篇】leetcode300 最长上升子序列
2019-04-26
【Leetcode刷题篇】leetcode394 字符串解码
2019-04-26
【Leetcode刷题篇】leetcode152 乘积最大数组
2019-04-26
【Leetcode刷题篇】leetcode56 合并区间
2021-06-29
【Leetcode刷题篇】leetcode210 课程表II
2021-06-29
【Leetcode刷题篇】leetcode207 课程表
2021-06-29
【Leetcode刷题篇】leetcode322 零钱兑换
2019-04-26
【Leetcode刷题篇】leetcode437 路径总和III
2019-04-26
【Leetcode刷题篇】leetcode416 分割等和子集
2019-04-26
【Leetcode刷题篇】leetcode31 下一个排列
2019-04-26
【Leetcode刷题篇】leetcode621 任务调度器
2019-04-26
【Leetcode刷题篇/面试篇】通俗易懂详解动态规划-背包问题详解
2019-04-26
【面试篇】HashMap1.7和HashMap1.8的详细区别对比
2019-04-26
【面试篇】ConcurrentHashMap1.8 扩容细节
2019-04-26
【面试篇】ConcurrentHashMap1.7和1.8详解对比
2019-04-26
HashMap的有关知识点大综述
2019-04-26
【面试篇】Java容器面试大集合
2019-04-26