当前位置:网站首页>How to solve the problem that the device video cannot be played due to the missing CGO playback callback parameters of easycvr platform?
How to solve the problem that the device video cannot be played due to the missing CGO playback callback parameters of easycvr platform?
2022-07-24 01:29:00 【EasyCVR】
EasyCVR The platform can support playing video of devices ( Passed the national standard GB28181 agreement 、 The sea, Ehome Access Agreement ), When a video file is stored in the device , stay EasyCVR The platform can see the device video , And can support retrieval 、 Playback and other operations .

We found in the test EasyCVR Failed to play the video of the device , Use VLC The playback of video stream also failed . Today, let's share with you the analysis and solution steps .

Cause analysis :
1) First check C++ Set up , Whether the device recording parameters can get the callback data stream .

2) Save the callback stream as a file , Use ffplay -i Command play , The file can be played successfully .
3) Let's look at GO Whether the layer processing back flow is correct .
4) Breakpoint debugging GO Layer calls C++ Playback parameters , And get the return parameter , See if it's right .

5) Check the callback function of playback , Whether the information parameters are correct .


6) As shown in the figure above , The last parameter is the callback of playback . Finally, it is found that initialization is in progress Dahua_Init In the last parameter , Missing a callback parameter , This will lead to incorrect parameters , Thus parsing data failed .
Solution steps :
1)Dahua_Init Parameters are void*, Therefore, type parameter detection will not be carried out . as follows :

2) The above abnormal problem is caused by the missing parameters of the callback function , Add the missing parameters . Here's the picture :

3) The playback effect after modification is as follows :

EasyCVR It is the most comprehensive video platform we support , It can support mainstream protocols, including national standards GB/T28181、RTMP、RTSP/Onvif etc. , And the private agreement of the manufacturer , Like Haikang Ehome、 The sea, SDK、 Dahua SDK etc. . The platform can provide live video surveillance 、 Cloud video 、 Cloud storage 、 Video retrieval and review 、 Intelligent alarm 、 Platform cascading 、 Intelligent analysis and other video services , It is widely used in offline scenes , Such as smart construction site 、 Smart campus 、 Smart community 、 Intelligent buildings, etc . Interested users can go to the demonstration platform for experience or deployment testing .
边栏推荐
猜你喜欢

Hcip day 6 notes

Hcip third day notes

OSPF(第五天笔记)

MGRE experiment

为什么博途V17及以下的HMI面板不能与1500固件版本2.9或1200版本4.5 的CPU建立连接?

Hcip experiment

Research on retinal vascular segmentation based on GAN using few samples

Arm architecture and programming 4 -- serial port (based on Baiwen arm architecture and programming tutorial video)
Just started to use, ask some questions and tutorials or share posts

HCIP第五天笔记
随机推荐
Talk about moment of inertia
Explanation of terms in Polymer Physics
Collation of key knowledge of high voltage technology
Hcip day 8 notes
SCM learning notes 5--stm32 clock system (based on Baiwen STM32F103 series tutorials)
Hcip third day notes
SCM learning notes 9 -- Serial Communication (based on Baiwen STM32F103 series tutorials)
Add of cmake_ dependencies
代码阅读方法与最佳实践
Hcip day 6_ Comprehensive experiment in special areas
Use and understanding of string functions (1)
c语言支持yaml配置文件通用方法
cmake之add_dependencies
HCIP第十一天笔记
HCIP第七天笔记
HCIP第二天笔记
Redis - configuration and Application
win11系统之win11亮点
Vessel Segmentation in Retinal Image Based on Retina-GAN
EFCore高级Saas系统下一个DbContext如何支持多数据库迁移