FFmpeg编译
下载代码:git clone https://git.ffmpeg.org/ffmpeg.git
然后输入命令进行编译:找到下载的目录下,然后用命令进入这个文件夹下cd ffmpeg,然后输入./configure。
竟然没有编译过出现错误是
nasm/yasm not found or too old. Use --disable-x86asm 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 "ffbuild/config.log" produced by configure as this will help
solve the problem.

分析:yasm是汇编编译器,ffmpeg为了提高效率使用了汇编指令,如MMX和SSE等。所以系统中未安装yasm时,就会报上面错误。

解决错误:安装yasm编译器。安装方法如下:

1)下载:[yasm的下载链接](http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz)

2)解压:把下载下来的压缩包进行解压

3)切换路径: cd yasm-1.3.0

4)执行配置: ./configure

5)编译:make

6)安装:make install(提示:Permission denied,就执行sudo make install)

这样ffmpeg就安装成功了。

ffplay: command not found
如果你要用到ffplay的时候,发现没有这个命令的时候,是因为ffplay和ffmpeg不是在一起的,需要单独下载。ffplay下载地址 http://evermeet.cx/ffmpeg/ 。把下载下来的文件双击打开运行,如果提示Permission denied,到系统偏好设置,打开安全与隐私,允许ffplay运行就可以了。运行完之后,再在.bash_profile文件配置ffplay path就可以了(这个路径就是ffplay文件的位置)。

./configure --prefix=/usr/local/ffmpeg --enable-gpl --enable-small --arch=x86_64 --enable-nonfree --enable-libfdk-aac --enable-libx264 --enable-filter=delogo --enable-debug --disable-optimizations --enable-shared --enable-libfreetype

##安装libx264
下载地址http://download.videolan.org/pub/videolan/x264/snapshots/
./configure --enable-shared
#make
#make install
————————————————
版权声明:本文为CSDN博主「厚德.」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qqqq245425070/article/details/83961218

最新文章

  1. Redis——学习之路一(初识redis)
  2. Thinking in java学习笔记之String的不可变性
  3. opencv4-highgui之视频的输入和输出以及滚动条
  4. 攻城狮在路上(叁)Linux(二十四)--- linux设置开机挂载及镜像文件挂载
  5. c#语句 类
  6. Click Models for Web Search(1) - Basic Click Models
  7. 强大的JS数组
  8. php大文件下载
  9. nodejs 改变全局前缀
  10. Oralce9 的新方法: Merge into Using
  11. validate()的配置项
  12. 用ahk脚本自己主动删除flashcookies
  13. openstack dhcp调试
  14. 字符编码(ASCII、ANSI、GB2312、UTF-8等)系统梳理
  15. 《Exception团队》第二次作业:团队项目选题报告
  16. Cesium 中由 Logarithmic Depth Buffer 引起的模型显示不完整的问题
  17. File相关操作
  18. Spring Day 1
  19. Sqlcmd使用详解
  20. java给时间格式化

热门文章

  1. [转]将已有项目代码加入svn版本控制
  2. snf快速开发平台试用演示地址
  3. C++ Map运用实例
  4. leetcode No.242 有效的字母异位词 valid-anagram (Python3实现)
  5. Classic BAdi and New BAdi
  6. 常用的js片段
  7. CentOS7 初始化硬盘分区、挂载、重启自动挂载
  8. Intellij IDEA设置类注释和方法注释
  9. jquery如何生成图片验证码
  10. python3.5+tornado学习