随机笔记

  • 首页
  • 软件·服务器
  • 电子电气
  • 安装维修
  • 科学与自然
  • AE
  • Photoshop
  • 文摘语录
  • 足迹
Kratos
一款专注于用户阅读体验的响应式博客主题
  1. 首页
  2. 软件·服务器
  3. 正文

Centos6.5使用yum命令安装最新版ffmpeg

2020年5月20日 2365点热度 0人点赞 0条评论

直接是用yum命令安装的ffmpeg版本非常非常低,居然还是0.60的版本,现在官方都更新到3.0.1了;

过低的版本很多功能都不支持,所以很有必要安装最新版来获取ffmpeg更多功能格式的支持;

首先安装编译环境

yum install -y automake autoconf libtool gcc gcc-c++ 
yum install make 
yum install svn 
yum search ** 
yum install **

使用git获取官方最新ffmpeg版本

git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg

执行完该命令会在当前目录下产生一个ffmpeg的文件夹,用cd命令切换到这个ffmpeg文件夹当中

执行ffmpeg安装命令

yum  install  yasm
./configure --prefix=/usr
make 
make install

如果在执行./configure –prefix=/usr 时出现了错误无法正常安装

yasm not found, use –disable-yasm for a crippled build

If you think configure made a mistake, make sure you are using the latestversion from SVN. If the latest version fails, report the problem to theffmpeg-user@mplayerhq.hu mailing list or IRC #ffmpeg on irc.freenode.net.Include the log file “config.log” produced by configure as this will help solving the problem.

那是因为没有安装yasm的缘故导致无法继续,安装yasm环境就行了

安装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 Linux
最后更新:2020年5月20日

楚盟

这个人很懒,什么都没留下

点赞
< 上一篇
下一篇 >

文章评论

您需要 登录 之后才可以评论

COPYRIGHT © 2022 随机笔记. ALL RIGHTS RESERVED.

友情链接: 张一极 代码和段子手 南通伍林堂文化传播有限公司 懋和道人