当前位置:网站首页>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 ).
边栏推荐
- LSTM applied to MNIST dataset classification (compared with CNN)
- 无密码身份验证如何保障用户隐私安全?
- Detailed explanation of MATLAB cov function
- The first product of Sepp power battery was officially launched
- How to introduce devsecops into enterprises?
- C language current savings account management system
- Go language learning notes - analyze the first program
- Modulenotfounderror: no module named 'scratch' ultimate solution
- 【Office】Excel中IF函数的8种用法
- Applet framework taro
猜你喜欢
Codeforces Round #804 (Div. 2)
About the use of Vray 5.2 (self research notes)
Wechat nucleic acid detection appointment applet system graduation design completion (8) graduation design thesis template
基础篇——REST风格开发
How to introduce devsecops into enterprises?
Lombok makes ⽤ @data and @builder's pit at the same time. Are you hit?
Wechat nucleic acid detection appointment applet system graduation design completion (7) Interim inspection report
32: Chapter 3: development of pass service: 15: Browser storage media, introduction; (cookie,Session Storage,Local Storage)
Basic testing process of CSDN Software Testing Introduction
关于vray 5.2的使用(自研笔记)
随机推荐
How can gbase 8C database view the login information of the login user, such as the date, time and IP of the last login authentication?
使用GBase 8c数据库过程中报错:80000305,Host ips belong to different cluster ,怎么解决?
数据类型 ntext 和 varchar 在not equal to 运算符中不兼容 -九五小庞
Explanation of full vulnerability script of network security C module of secondary vocational group script containing 4 vulnerabilities
DGL中的消息传递相关内容的讲解
How can edge computing be combined with the Internet of things?
GBase 8c数据库如何查看登录用户的登录信息,如上一次登录认证通过的日期、时间和IP等信息?
Lombok makes ⽤ @data and @builder's pit at the same time. Are you hit?
Three paradigms of database
Web Security
uniapp
Codeforces Round #804 (Div. 2)
Leetcode 185 All employees with the top three highest wages in the Department (July 4, 2022)
基础篇——REST风格开发
Operation of simulated examination platform of special operation certificate examination question bank for safety production management personnel of hazardous chemical production units in 2022
磨砺·聚变|知道创宇移动端官网焕新上线,开启数字安全之旅!
2022 Pengcheng cup Web
Question bank and answers of special operation certificate examination for main principals of hazardous chemical business units in 2022
[Oracle] use DataGrid to connect to Oracle Database
一次edu证书站的挖掘