您的位置:首页 > 运维架构

FFMPEG学习遇到avformat_open_input Invalid data found when processing input

2018-01-20 23:35 2719 查看
按顺序调用

        av_register_all();
        avcodec_register_all();
        avformat_network_init();
调用 avformat_open_input()

打开本地文件的时候 总是打不开视频文件

添加了打印错误消息后

 char buf[] =
"";
        av_strerror(openResult, buf,
1024);
 看到显示的错误  avformat_open_input Invalid data found when processing input

查阅了网上资料是可能是编译问题 (编译的文件协议未打开),尝试重新编译了一下导入库 就不报这个错了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  iOS FFmpeg