FFmpeg 学习笔记


1、ffmpeg 环境配置

http://blog.csdn.net/Lotheve/article/details/51517875



2、运行 IJKMediaFramework 

出现,iOS Undefined symbols for architecture armv7 std::basic_string

注意:不是修改Build Setting里面的设置,而是添加一个libstdc++.dylib, 搞定!



3、运行编译所遇到的问题

  1. 编译报 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

  2. 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 学习笔记)