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
查阅了网上资料是可能是编译问题 (编译的文件协议未打开),尝试重新编译了一下导入库 就不报这个错了。
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
查阅了网上资料是可能是编译问题 (编译的文件协议未打开),尝试重新编译了一下导入库 就不报这个错了。
相关文章推荐
- 开始写博客!!今天第一个:FFmpeg解码网络rtsp流的一般流程和这几天遇到的问题,尤其是avformat_input_open解析错误的网络串流长时间不返回!
- ffmpeg avformat_open_input返回失败的解决办法
- ffmpeg avformat_open_input返回失败的解决办法
- FFMPEG-avformat_open_input
- ffmpeg设置avformat_open_input( )超时 -stimeout
- 图解FFMPEG打开媒体的函数avformat_open_input
- FFmpeg源代码简单分析:avformat_open_input
- ffmpeg调用 avformat_open_input失败,返回 -2
- FFmpeg源代码简单分析:avformat_open_input()
- ffmpeg avformat_open_input返回失败的解决办法
- FFmpeg avformat_open_input函数打开acc,h264失败的错误问题
- FFmpeg源代码简单分析:avformat_open_input()
- FFmpeg avformat_open_input简化方案
- ffmpeg学习五:avformat_open_input函数源码分析(以mp4文件为例)
- ffmpeg源码分析--3.avformat_alloc_context与avformat_open_input
- FFMPEG函数avformat_open_input()-输入url为rtmp
- ffmpeg avformat_open_input详解
- FFmpeg源代码简单分析:avformat_open_input()
- FFmpeg(2)-avformat_open_input()函数详解并示例打开mp4文件
- FFMPEG源码分析:avformat_open_input()(媒体打开函数)