FFmpeg 学习笔记

论坛 期权论坛 脚本     
匿名网站用户   2020-12-21 09:07   23   0


1、ffmpeg 环境配置

http://blog.csdn.net/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、运行编译所遇到的问题

  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();







分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:1136255
帖子:227251
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP