当前位置:网站首页>EasyGBS视频平台TCP主动模式拉流异常情况修复
EasyGBS视频平台TCP主动模式拉流异常情况修复
2022-06-24 17:35:00 【TSINGSEE青犀视频】
EasyGBS是基于国标GB28181协议的视频平台,可支持视频直播、录像、云存储、检索与回放、云台控制、告警上报、语音对讲等功能。EasyGBS平台功能全面、综合性强、视频能力灵活,能够涵盖所有视频监控领域的需求,已经在大量的项目中落地应用,如明厨亮灶、平安乡村、雪亮工程等。
EasyGBS平台可以设置三种拉流模式,UDP、TCP主动、TCP被动。
1)UDP: 服务端监听UDP端口,通过INVITE信令告知设备端口,设备主动向服务端发起流传输。
2)TCP被动: 服务端监听TCP端口,通过INVITE信令告知设备端口,设备向服务端发起流传输。
3)TCP主动: 设备端告知服务端监听的TCP端口情况,服务端主动向设备拉流,但是此种场景较少。
在某用户的项目中,EasyGBS作为上级平台,下级设备拉流设置为TCP被动,那么相对应上级EasyGBS要设置TCP主动模式拉流,但是在用户现场,则是一直拉流超时报错,于是我们对此情况进行了排查。查看主动模式拉流代码是否存在问题。
TCP主动模式中,EasyGBS需要向设备端发送INVITE消息,等待收流前发送SYN消息与下级建立连接,而现场则在发送SYN的时候,一直报端口占用(如下图)错误,于是我们分析是在发送SYN之前,程序已经对本次的拉流端口进行监听了。
查看代码发现,在拉流的时候,判断主动模式未成功,进入了TCP被动模式中,所以一直无法使用TCP主动拉流,修改后如下图:
修改后,上述问题已经成功解决。
EasyGBS强大的视频能力既可以作为业务平台,也能作为视频能力平台进行调用。通过GB28181标准协议实现平台之间的级联,可实现与其他平台系统的数据共享共用,在应用场景中达到视频资源汇聚、协同监督、平台联动等目的,感兴趣的用户可以前往演示平台进行体验或部署测试。
边栏推荐
- Cloud MySQL importing cloud data warehouse PostgreSQL best practices
- 1. Leveldb getting started
- Memory alignment in golang
- Realize business development on behalf of small programs, and 99% restore the function of service category management in the background of official account
- Explore cloudera manager management software tuning (1)
- [play with Tencent cloud] check 9 popular Tencent cloud products
- A solution to the problem that the separator of WordPress title - is escaped as -
- Open up the construction of enterprise digital procurement, and establish a new and efficient service mode for raw material enterprises
- Tiktok Kwai, e-commerce enters the same river
- IBM: supporting AI and enterprise digital reshaping in the cloud era with modern architecture
猜你喜欢

LC 300. Longest increasing subsequence

NVM download, installation and use
Issue 39: MySQL time class partition write SQL considerations

How to create simple shapes in illustrator 2022

Error reported after NPM I

The 'ng' entry cannot be recognized as the name of a cmdlet, function, script file, or runnable program. Check the spelling of the name. If you include a path, make sure the path is correct, and then
Using consistent hash algorithm in Presto to enhance the data cache locality of dynamic clusters

Mengyou Technology: tiktok current limiting? Teach you to create popular copywriting + popular background music selection

Etching process flow for PCB fabrication
SQL basic tutorial (learning notes)
随机推荐
[kotlin] constructor summary
Etching process flow for PCB fabrication
The RTSP video image intelligent analysis platform easynvr cascades to the superior platform through the national standard for playback optimization
Easycvr, an urban intelligent video monitoring image analysis platform, plays national standard equipment videos and captures unstable packets for troubleshooting
Can yangjianyun's new media operation in 2021 bear all the expectations of the enterprise's private domain traffic demand?
2021-04-02: given a square or rectangular matrix, zigzag printing can be realized.
Constantly changing the emergency dialing of harmonyos ETS during the new year
"Gambler" bubble Matt turns around
What is the reason for the worse website SEO ranking?
Cloud native monitoring via blackbox_ Exporter monitoring website
Contributed code to famous projects for the first time, a little nervous
New MySQL 8.0 feature - enhanced logical backup recovery
Mengyou Technology: tiktok current limiting? Teach you to create popular copywriting + popular background music selection
Redis source code analysis RDB
Erc-721 Standard Specification
How much does the page length affect the ranking?
04. Tencent cloud IOT device side learning - network connection and device authentication
The 'ng' entry cannot be recognized as the name of a cmdlet, function, script file, or runnable program. Check the spelling of the name. If you include a path, make sure the path is correct, and then
5g brings opportunities and challenges. Are you ready to defend against DDoS?
LC 300. Longest increasing subsequence