当前位置:网站首页>EasyGBS级联时,上级平台重启导致推流失败、画面卡住该如何解决?
EasyGBS级联时,上级平台重启导致推流失败、画面卡住该如何解决?
2022-07-07 18:10:00 【TSINGSEE青犀视频】
EasyGBS平台具有视频直播监控、云端录像、云存储、检索回放、智能告警、语音对讲等功能,其中平台级联能力是一项非常实用的功能,它可以实现平台之间的互联互通、资源共享、数据协同等等。基于国标GB28181协议,EasyGBS可以让下级平台(包含摄像机、支持GB28181的视频平台)级联到EasyGBS,也可以作为下级平台,通过GB28181方式级联到支持GB28181的上级平台。
有用户反馈,在现场使用过程中,下级EasyGBS存在一个问题:如果上级EasyGBS平台重启,下级往上级推流会失败,这样会出现上级EasyGBS平台的视频画面卡住(画面定格)。
因为上级EasyGBS平台重新启动,但是下级的视频画面并没有停止,会一直往上级EasyGBS平台推流,而上级重启时,会导致平台的端口连接暂时关闭,所以此时下级往上级推流是无效的,这样会存在以下两种情况,引起tcp或者udp连接发生变化。
1)如果是自身的ip,那么上级tcp或者udp连接断开时,需要将下级的tcp或udp同时断开。这样下次进行tcp或者udp连接时,就不会出现不推流的情况,会重新建立连接并推流。
2)另外一种情况,如果上级走的不是自身的ip,走的是负载均衡。那么就需要判断唯一键值是否还在发送流。如果还在发流且ip和端口改变,则需要将之前的tcp或者udp断开,并重新建立新的tcp或者udp连接,视频流依旧正常发送给上级即可。
上述两种情况均会导致上级EasyGBS平台播放画面卡住的现象。可通过以下两种方法进行解决:
1)如果是自身ip,则解决如下:
如果发送数据流失败,可将tcp和udp给个回调,并断开连接。参考代码如下:
2)如果是非自身ip,则解决如下:
非自身ip时,不会发送tcp和udp失败,这样就需要检测唯一键值进行判断。ip不一样,将之前的断开即可,并重新连接新的地址。参考代码如下:
EasyGBS平台功能全面、综合性强,既可以作为业务平台,也能作为视频能力平台进行调用。平台视频能力灵活,能够涵盖所有视频监控领域的需求,已经在大量的项目中落地应用,如明厨亮灶、平安乡村、雪亮工程等。
边栏推荐
- 线性基
- Cloud 组件发展升级
- 搞定带WebKitFormBoundary post登录
- Training IX basic configuration of network services
- 841. 字符串哈希
- 【解决】package ‘xxxx‘ is not in GOROOT
- Some arrangements about oneself
- About cv2 dnn. Readnetfromonnx (path) reports error during processing node with 3 inputs and 1 outputs [exclusive release]
- Version selection of boot and cloud
- Precautions for cjson memory leakage
猜你喜欢

使用高斯Redis实现二级索引

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

Detailed explanation of Flink parallelism and slot

Simulate the implementation of string class

Welcome to the markdown editor

vulnhub之Funfox2

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

Leetcode force buckle (Sword finger offer 36-39) 36 Binary search tree and bidirectional linked list 37 Serialize binary tree 38 Arrangement of strings 39 Numbers that appear more than half of the tim

Vulnhub tre1

Compiler optimization (4): inductive variables
随机推荐
The DBSCAN function of FPC package of R language performs density clustering analysis on data, checks the clustering labels of all samples, and the table function calculates the two-dimensional contin
JVM class loading mechanism
TS quick start - Generic
[philosophy and practice] the way of program design
ASP. Net learning & ASP's one word
torch. nn. functional. Pad (input, pad, mode= 'constant', value=none) record
Navicat连接2002 - Can‘t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock‘解决
【剑指offer】剑指 Offer II 012. 左右两边子数组的和相等
九章云极DataCanvas公司获评36氪「最受投资人关注的硬核科技企业」
强化学习-学习笔记8 | Q-learning
With st7008, the Bluetooth test is completely grasped
Force buckle 1232 Dotted line
equals 方法
ASP.NET学习& asp‘s one word
Data island is the first danger encountered by enterprises in their digital transformation
Vulnhub's funfox2
有了ST7008, 蓝牙测试完全拿捏住了
【STL】vector
Boot 和 Cloud 的版本选型
Solve the problem of incomplete display around LCD display of rk3128 projector