1、ffmpeg 环境配置
http://blog.youkuaiyun.com/Lotheve/article/details/51517875
2、运行 IJKMediaFramework
出现,iOS Undefined symbols for architecture armv7 std::basic_string<char, std::char_traits<char>
注意:不是修改Build Setting里面的设置,而是添加一个libstdc++.dylib, 搞定!
3、运行编译所遇到的问题
-
编译报 include“libavformat/avformat.h” file not found 错误。在Build Settings中找到Search Paths,设置Header Search Pahts 和 Library Search Paths。修改Header search paths 里的路径:$(PROJECT_DIR)/FFmpeg-iOS/include
-
Directly in the engineering of "TARGETS" - > "BuildSettings" - > "Other Linker Flags" click on the "+" to add a "- liconv" item, if you have any questions, welcome to leave a message
XCODE里 Build Phases--》Link Binary With Libraries--> 里添加 libiconv.dylib
https://my.oschina.net/asjoker/blog/614794
4、FFmpeg 编译使用
http://www.cnblogs.com/XYQ-208910/p/5651166.html
5、 avformat_open_input 打开文件失败
新版ffmpeg 的代码流程发生变化:
新 ffpemg 在 avformat_open_input 之前要 av_register_all();
老ffpemg 在avformat_open_input之前要 avcodec_register_all();
新版用av_register_all() 取代了 avcodec_register_all();
这篇博客详细记录了FFmpeg的环境配置过程,包括在iOS上运行IJKMediaFramework时遇到的库缺失问题,解决编译时头文件找不到的错误,以及如何在Xcode中配置Header Search Paths和Library Search Paths。同时,博主分享了FFmpeg的编译使用方法和avformat_open_input打开文件失败的解决方案,强调了新版FFmpeg代码流程的变化。
645

被折叠的 条评论
为什么被折叠?



