当前位置:网站首页>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 .
边栏推荐
猜你喜欢

Retinal network based on enhanced spatial attention (ESA UNET)
刚开始使用,请教些问题和教程或分享帖子

Hcip seventh day notes

Rip --- routing information protocol

HCIA的复习

Research on retinal vascular segmentation based on GAN using few samples

Hcip day 10 notes

SCM learning notes 5--stm32 clock system (based on Baiwen STM32F103 series tutorials)

1000个Okaleido Tiger首发上线Binance NFT,引发抢购热潮

罗克韦尔AB PLC RSLogix5000中的位指令使用方法介绍
随机推荐
Hcip experiment
Openresty模板实时渲染 lua-resty-template
Just started to use, ask some questions and tutorials or share posts
Arm architecture and programming 5 -- GCC and makefile (based on Baiwen arm architecture and programming tutorial video)
Measurement and acquisition of permanent magnet motor parameters (inductance, resistance, pole number, flux linkage constant)
Add of cmake_ dependencies
SCM learning notes 5--stm32 clock system (based on Baiwen STM32F103 series tutorials)
Code reading methods and best practices
MGRE实验
After the interview with 20 or 30 companies, there is no offer that you can't get after the Android interview
Problèmes de localisation et de planification des itinéraires (Lingo, mise en œuvre de MATLAB)
网络 类型
Create.Img image file
1000个Okaleido Tiger首发上线Binance NFT,引发抢购热潮
Vessel Segmentation in Retinal Image Based on Retina-GAN
2022全球开发者薪资曝光:中国排第19名,平均年薪23,790美元
Hcip day 11 notes
小熊派简介和环境搭建
Rip (notes of the second day)
Hcip network type, PPP session, data link layer protocol