当前位置:网站首页>How to deal with the situation of repeated streaming and chaotic live broadcast in easydss?
How to deal with the situation of repeated streaming and chaotic live broadcast in easydss?
2022-06-23 21:52:00 【Tsingsee green rhino video】
Our common video stream access protocols include RTSP agreement 、RTMP agreement 、GB28181 There are three kinds of agreements , For these three kinds of agreements ,TSINGSEE Qingxi video has developed different video solutions , among EasyDSS It supports streaming protocol RTMP Access platform , It's different from other platforms in that EasyDSS It can support live video and on demand at the same time .
Of course we do EasyDSS It can also be customized according to the needs of the project , Many projects have used customized versions of EasyDSS. In a custom version ,EasyDSS There will be repeated push flow , Show the chaos of live broadcast .
In this article, we will talk about how to deal with this problem in the project , You can try it by yourself according to the method in this article .
First of all, let's talk about the problem of repeated streaming , This needs to be modified mediaserver/tsingsee.ini Inside repeat_push_enable=false, This parameter is used to turn off the function of allowing repeated streaming :
Then add a judgment at the place where the flow is pushed for protection , Because the user's version is pushed directly by the kernel flv flow , Therefore, before streaming, query whether there is a stream in the kernel , If there is a stream pushing, it will not be pushed again .
Then let's look at the chaotic state of the live broadcast , The live broadcast status displayed on the virtual live broadcast page switches frequently in multiple states :
Look up the code and find that the place where the state is modified in the program is very messy , Therefore, the logic of modifying the state is optimized , And write a public function to modify the State , Before modification, the kernel state will be queried for judgment , Modify the live broadcast status in the database through the status of the kernel :
边栏推荐
- Xgboost implements text classification and sklearn NLP library tfidfvectorizer
- Data visualization: summer without watermelon is not summer
- Shanghai benchmarking enterprise · Schneider Electric visited benchmarking learning lean production, smart logistics supply chain and digital transformation
- Error running PyUIC: Cannot start process, the working directory ‘-m PyQt5. uic. pyuic register. ui -o
- 数据可视化之:没有西瓜的夏天不叫夏天
- Tencent cloud commercial password compliance solution appears at the 2021 high-end Seminar on commercial password application innovation
- HR SaaS is finally on the rise
- What is the process of opening a mobile card account? Is online account opening safe?
- 微信小程序中发送网络请求
- 北大、加州伯克利大学等联合| Domain-Adaptive Text Classification with Structured Knowledge from Unlabeled Data(基于未标记数据的结构化知识的领域自适应文本分类)
猜你喜欢

Find my information | Apple may launch the second generation airtag. Try the Lenz technology find my solution

ACL2022 | MVR:面向开放域检索的多视角文档表征

Data visualization: summer without watermelon is not summer

Polar cycle graph and polar fan graph of high order histogram

Selenium batch query athletes' technical grades

实验五 模块、包和库

Embedded development: embedded foundation -- the difference between restart and reset

微信小程序中发送网络请求

Outlook开机自启+关闭时最小化

高阶柱状图之极环图与极扇图
随机推荐
Question: how to understand the network protocol and why the OSI reference model is divided into seven layers
Analysis of a series a e-commerce app docommandnative
How does the hybrid cloud realize the IP sec VPN cloud networking dedicated line to realize the interworking between the active and standby intranet?
How to use the serial port assistant in STC ISP?
SAP Migo mobile type 311 attempts to determine the batch, and the system reports an error -batch determination not Po
德国弗莱堡大学、希尔德斯海姆大学等联合 | Zero-Shot AutoML with Pretrained Models(基于预训练模型的零样本AutoML)
Polar cycle graph and polar fan graph of high order histogram
How to download offline versions of Firefox and chrome
The most common usage scenarios for redis
Modify jar package
Start /affinity specifies the number of vcpu to run OpenSSL speed to test the performance of a single vcpu
The 10th Blue Bridge Cup single chip microcomputer
How to deploy the API gateway? Is it OK not to use the API gateway?
发现一个大佬云集的宝藏硕博社群!
Warpspeed 2021 DFINITY × IAF hacker song demo day ends, and 10 teams win awards
Coding website hosting migration Tencent cloud cloud development webify
What can RFID fixed assets management system bring to enterprises?
Phpkf CMS 3.00 beta y6 remote code execution
How to make a label for an electric fan
Who do you want to open a stock account? Is it safe to open an account online?