FFmpeg
FFmpeg-iOS-build-script Shell scripts to build FFmpeg for iOS and tvOS
1 | ./build-ffmpeg.sh arm64 armv7 armv7s i386 x86_64 |
— - - — - - — - -
致敬雷神 - 最简单的基于FFmpeg的移动端例子:IOS HelloWorld
FFMPEG跨平台iOS&Android高级开发实践视频教程..
链接: https://pan.baidu.com/s/1nv4WsD7
密码: 3knk
FFmpeg iOS 篇
“一键编译”的脚本
iOS下使用FFMPEG的一些总结
FFmpeg Mac OS X 篇
编译流程
(一)下载FFMPEG源代码生成静态包
1.官网下载链接:
->Get the Sources
[地址下载](http://ffmpeg.org/download.html#build-mac)
2.由以上github链接下载名为 FFmpeg-master源代码
`git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg`*
3.终端进入源代码文件夹,依次执行以下指令
1 | $ ./configure --disable-yasm --enable-shared |
4.生成的文件包在
1 | $sudo make install 内会有提示 |
此时进入路径/usr/local中将lib中与ffmpeg相关的.a拷出; 进入路径/usr/local中将include中lib中与ffmpeg相关的文件夹拷出放入自定义创建的ffmpeg_static_311文件中
[注意]!!!: 至于如何对比是否与ffmpeg相关可以参考以下链接的描述 static FFmpeg binaries for Mac OS X Intel 64bit
(二) Xcode Demo编译
1.将得到的ffmpeg_static_311文件,拷入项目中开始编译:
1 | error: /Users/andy/Desktop/FFMPEG-MACOSX-DEMO/FFMPEG-MACOSX-DEMO/ffmpeg_static_311/lib/pkgconfig/../../Cellar/python/2.7.11/lib/pkgconfig/python-2.7.pc: No such file or directory |
解决方案: 剔除ffmpeg_static_311/lib中的pkgconfig文件夹
- 本文作者: 醉疏狂
- 本文链接: https://hubin97.github.io/2017/02/12/FFmpeg小结/
- 版权声明: 本博客所有文章除特别声明外,均采用 MIT 许可协议。转载请注明出处!