当前位置:网站首页>Ffmpeg calls avformat_ open_ Error -22 returned during input (invalid argument)
Ffmpeg calls avformat_ open_ Error -22 returned during input (invalid argument)
2022-07-05 11:13:00 【Mango sauce】
One FFmpeg Report a mistake -22(Invalid argument)
This mistake really wasted my night , Why? , Because I open rtsp The address of can be played , But instead http://xxx/HD.live.mp4?auth_key=xxx After this address with authentication , Report illegal parameters .
Cut a long story short , The reason for this error may be :
- 1)err = avformat_open_input(&ic, is->_filename.c_str(), is->_iformat, &is->_format_opts); Of _filename The file name is incorrect .
- 2) No call av_register_all().
- 3)ffmpeg Wrong version .
The first 1 It's quite common , But what I want to say is that I didn't cause it this time , It is ffmpeg Wrong version , Because I tried to call av_register_all(), But still not , And I have confirmed that the stream address is vlc And my own other broadcasts demo No problem .
So how did I guess it might be ffmpeg The problem of the version Library ,
- 1) Because I can play it myself demo It's the same code as the error report , The only difference is ffmpeg Version Library , So I try to replace the Library , The result is good .
- 2) And it's wrong ffmpeg The version can be opened rtsp Address and play , But instead http://xxx/HD.live.mp4?auth_key=xxx After this address with authentication , Report illegal parameters . It is estimated that this version is not accurate in parsing some characters , For example, with a question mark 、 Equal sign, etc , You can see the source code by yourself .
Wrong version :ffmpeg-4.3.1,64 position ( I downloaded this from the official website ). Switch to ffmpeg-4.2.1,64 It's no problem ( This is compiled by my own source code ).
边栏推荐
- shell脚本文件遍历 str转数组 字符串拼接
- Wechat nucleic acid detection appointment applet system graduation design completion (8) graduation design thesis template
- Wechat nucleic acid detection appointment applet system graduation design completion (7) Interim inspection report
- Golang application topic - channel
- Repair animation 1K to 8K
- spark调优(一):从hql转向代码
- Basic testing process of CSDN Software Testing Introduction
- 数据库三大范式
- Basics - rest style development
- The art of communication III: Listening between people
猜你喜欢

无密码身份验证如何保障用户隐私安全?

go语言学习笔记-初识Go语言

Huawei equipment configures channel switching services without interruption

关于 “原型” 的那些事你真的理解了吗?【上篇】

Three suggestions for purchasing small spacing LED display

Characteristics and electrical parameters of DDR4

Talk about the understanding of fault tolerance mechanism and state consistency in Flink framework

【Oracle】使用DataGrip连接Oracle数据库

Bidirectional RNN and stacked bidirectional RNN

go语言学习笔记-分析第一个程序
随机推荐
Cross page communication
技术分享 | 常见接口协议解析
Process control
TSQL – identity column, guid, sequence
Some understandings of heterogeneous graphs in DGL and the usage of heterogeneous graph convolution heterographconv
Huawei equipment configures channel switching services without interruption
The art of communication III: Listening between people
Four departments: from now on to the end of October, carry out the "100 day action" on gas safety
PWA (Progressive Web App)
数据类型 ntext 和 varchar 在not equal to 运算符中不兼容 -九五小庞
Detailed explanation of DDR4 hardware schematic design
关于 “原型” 的那些事你真的理解了吗?【上篇】
How can edge computing be combined with the Internet of things?
uboot的启动流程:
Characteristics and electrical parameters of DDR4
-26374 and -26377 errors during coneroller execution
Go-3-the first go program
Ddrx addressing principle
【广告系统】Parameter Server分布式训练
32:第三章:开发通行证服务:15:浏览器存储介质,简介;(cookie,Session Storage,Local Storage)