当前位置:网站首页>When easygbs cascades, how to solve the streaming failure and screen jam caused by the restart of the superior platform?
When easygbs cascades, how to solve the streaming failure and screen jam caused by the restart of the superior platform?
2022-07-07 20:16:00 【Tsingsee green rhino video】
EasyGBS The platform has live video monitoring 、 Cloud video 、 Cloud storage 、 Retrieval playback 、 Intelligent alarm 、 Voice intercom and other functions , Among them, the platform cascading capability is a very practical function , It can realize the interconnection between platforms 、 Resource sharing 、 Data collaboration, etc . Based on national standard GB28181 agreement ,EasyGBS Lower level platforms can ( Including cameras 、 Support GB28181 Video platform for ) Cascade to EasyGBS, It can also be used as a lower level platform , adopt GB28181 Methods cascade to support GB28181 Our superior platform .
There's user feedback , During on-site use , subordinate EasyGBS There is a problem : If the superior EasyGBS Platform restart , Lower level to higher level streaming will fail , In this way, there will be superiors EasyGBS The video picture of the platform is stuck ( Picture freeze ).
Because the superior EasyGBS Platform restart , But the video screen of the subordinate didn't stop , Will go all the way to the superior EasyGBS Platform streaming , When the superior restarts , It will cause the port connection of the platform to be temporarily closed , Therefore, it is invalid for subordinates to push streams to superiors , There are two situations , cause tcp perhaps udp The connection changes .
1) If it's your own ip, So the superior tcp perhaps udp When the connection is disconnected , It is necessary to transfer the subordinate tcp or udp Simultaneous disconnection . So next time tcp perhaps udp When the connection , There will be no non streaming , Will reestablish the connection and push the stream .
2) Another situation , If the superior is not his own ip, Load balancing . Then you need to judge whether the unique key value is still sending the stream . If it's still flowing and ip And port changes , You need to change the previous tcp perhaps udp To break off , And re-establish a new tcp perhaps udp Connect , The video stream can still be sent to the superior normally .
Both of the above situations will lead to superiors EasyGBS The platform plays pictures stuck . It can be solved in the following two ways :
1) If it's self ip, The solution is as follows :
If sending data stream fails , Can be tcp and udp Give a callback , And disconnect . The reference codes are as follows :
2) If it is not itself ip, The solution is as follows :
Non self ip when , Don't send tcp and udp Failure , In this way, it is necessary to detect the unique key value for judgment .ip Dissimilarity , Just disconnect the previous , And reconnect to the new address . The reference codes are as follows :
EasyGBS The platform has comprehensive functions 、 Comprehensive , It can be used as a business platform , It can also be called as a video capability platform . Flexible platform video capability , It can cover the needs of all video surveillance fields , It has been applied in a large number of projects , Such as bright kitchen and bright stove 、 Safe country 、 Snow project, etc .
边栏推荐
- How to implement safety practice in software development stage
- vulnhub之school 1
- 写了个 Markdown 命令行小工具,希望能提高园友们发文的效率!
- mock. JS returns an array from the optional data in the object array
- 整型int的拼接和拆分
- Solve the problem of incomplete display around LCD display of rk3128 projector
- 力扣 643. 子数组最大平均数 I
- CSDN语法说明
- Force buckle 912 Sort array
- Force buckle 674 Longest continuous increasing sequence
猜你喜欢

YoloV6:YoloV6+Win10---训练自己得数据集

【mysql篇-基础篇】事务

写了个 Markdown 命令行小工具,希望能提高园友们发文的效率!

Detailed explanation of Flink parallelism and slot

Yolov6:yolov6+win10--- train your own dataset

Flink并行度和Slot详解

MRS离线数据分析:通过Flink作业处理OBS数据

Machine learning notes - explore object detection datasets using streamlit

Compiler optimization (4): inductive variables

Mrs offline data analysis: process OBS data through Flink job
随机推荐
国家网信办公布《数据出境安全评估办法》:累计向境外提供10万人信息需申报
vulnhub之Funfox2
Boot 和 Cloud 的版本选型
MSE API learning
Traversal of Oracle stored procedures
[solution] package 'XXXX' is not in goroot
Classification automatique des cellules de modules photovoltaïques par défaut dans les images de lecture électronique - notes de lecture de thèse
Machine learning notes - explore object detection datasets using streamlit
841. 字符串哈希
使用高斯Redis实现二级索引
php 获取图片信息的方法
【剑指offer】剑指 Offer II 012. 左右两边子数组的和相等
vulnhub之tre1
Chapter 9 Yunji datacanvas company won the highest honor of the "fifth digital finance innovation competition"!
CSDN语法说明
如何在软件研发阶段落地安全实践
线性基
Opencv learning notes high dynamic range (HDR) imaging
深度学习模型压缩与加速技术(七):混合方式
mock. JS returns an array from the optional data in the object array