avformat_open_input返回-1094995529

  • avformat_open_input() 返回"Invalid data found when processing input" 错误码为-1094995529

avformat_open_input() 返回"Invalid data found when processing input" 错误码为-1094995529

遇到这个问题时,我一脸黑人问号。由于项目限制,之前在使用ffmpeg项目时,configure编译选项没有做筛选,导致编译出来的库十分巨大。后面发现库包含的许多功能都是用不上的,就把没必要的功能都去除了,但是当重新运行程序段时发现在打开输入流时一直失败,定位到是 avformat_open_input() 这个函数这里出的问题。网上查到的资料也只是说要添加

av_register_all();
avcodec_register_all()

但是这两个接口已经废弃了啊!!于是又查了很多资料,最终看到别人遇到类似的错误:
FFmpeg Invalid data found when processing input.
里面提到重新编译就OK了,但是也没给出具体细节。后面自己摸索,终于是解决了这个问题。
编译的时候添加上
–enable-demuxers --enable-parsers --enable-ffprobe**

这三个选项就可以了,具体是什么原因引起的,我没继续去深入了解,简单的记录一下,免得以后又遇到这个问题。ffmpeg中其他函数的问题也可能是因为编译时某些功能被去掉引起的,出错的时候要考虑这方面的原因。


红色部分由于有换行,没有执行这些条件

avformat_open_input返回-1094995529 “Invalid data found when processing input“相关推荐

  1. ijkplayer使用ffmpeg为视频添加水印avfilter_graph_parse_ptr返回Invalid data found when processing input

    在确定代码逻辑和流程没有问题过后返回这个问题,通过多方验证确定是avfilter_graph_parse_ptr第二个参数导致的,此处我的输入参数是 const char *strFilter=&qu ...

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

    按顺序调用 av_register_all(); avcodec_register_all(); avformat_network_init(); 调用 avformat_open_input() 打 ...

  3. Invalid data found when processing input

    ffmpeg--Invalid data found when processing input 一.问题描述 二.原因 三.解决方案 一.问题描述 流程描述:我把每一帧原始YUV图像数据,构造成Y4 ...

  4. FFmpeg Invalid data found when processing input

    说一下自己用ffmpeg合并视频出现的bug吧   直接上代码 /*** 批量转换某文件夹的视频 转换为ts文件 并生成txt文件* */String videoPathList = "C: ...

  5. arm ffmpeg报错:Invalid data found when processing input(没解决)(在ubuntu上能正常运行)(重新交叉编译后问题解决)

    文章目录 报错 原因分析 报错 如图,运行ffmpeg指令时,报错: ffmpeg -i 1e1fee9790f26fa3_20221421292.264 -vcodec copy -f mp4 te ...

  6. av_interleaved_write_frame错误 Invalid data found when processing input

    问题描述: 调用av_interleaved_write_frame接口发送AAC格式的音频数据时,报错:Invalid data found when processing input. 解决方案: ...

  7. 07-----关于ffmpeg Invalid data found when processing input错误

    1 关于ffmpeg Invalid data found when processing input错误 ffmpeg库不支持,例如ffmpeg -i 1.mkv -vcodec lib264 2. ...

  8. FFmpeg m3u8文件返回Invalid data found when processing input错误

    结论 1.检查存储访问权限是否正常,因为你可能有m3u8文件的访问权限却不一定有分片视频文件的访问权限. 2.给avformat_open_input增加配置("allowed_extens ...

  9. pyav Invalid data found when processing input (libav.h264: no frame!)

    for packet in video.demux(stream):if(packet.size<60):continue

最新文章

  1. bootstrap框架下 单选按钮组的选中以及取值问题
  2. Longest Palindrome CodeForces - 1304B(思维)
  3. 使用curl登陆上网账号
  4. 创建接口匿名实现类的对象的四种方法
  5. Qt开发技巧:编写.pro文件,在构建流程中加入命令行的方法
  6. C++ —— C++高手之路
  7. Linux多线程实践(2) --线程基本API
  8. 1 WM配置-企业结构-定义-创建仓库号(Warehouse Number)
  9. 思科计算机网络题目及翻译3,思科计算机网络题目及翻译1.doc
  10. Spring Boot:(三)开发Web应用之Thymeleaf篇
  11. 网易云基于 Kubernetes 的深度定制化实践
  12. win10系统WiFi突然消失打不开,终极解决方法
  13. java swing GUI 俄罗斯方块小游戏,适合初级小白
  14. 番茄社区多门店系统介绍
  15. laravel-admin Model does not exists添加模型报错
  16. mdio clause22 clause45以及marvell直接寻址/间接寻址的使用说明--基于mv88e6390 交换机
  17. 常见的相似度计算方式
  18. 创宇技能表_[OPEN]知道创宇研发技能表
  19. Matlab神经网络语音增强,基于BP神经网络的语音增强研究
  20. java poi-tl处理world动态表格

热门文章

  1. SQL学习之决胜秋招
  2. 哥哥与弟弟的游戏故事
  3. Linux查看网络连接情况ss,Linux网络状态工具netstat和ss使用详解
  4. 超声波测距仪设计制作
  5. c语言程序延时10s,单片机C语言程序设计:10s 的秒表
  6. 三极管的三个工作状态和作用
  7. 【vs quick】winmm.lib 解决 timeBeginPeriod 找不到
  8. 基于香蕉派平台的Raspberry Pi操作系统安装与配置
  9. matlab弹钢琴卡农,【matlab】寂寞的理科生用matlab演奏卡农
  10. Win7减肥攻略及小技巧