当前位置:网站首页>EasyCVR接入设备开启音频后,视频无法正常播放是什么原因?
EasyCVR接入设备开启音频后,视频无法正常播放是什么原因?
2022-07-05 17:42:00 【TSINGSEE青犀视频】
EasyCVR是我们接入协议最广泛的视频管理平台,除了标准协议GB28181、RTSP/Onvif、RTMP等,还支持厂家的私有协议与SDK,如海康Ehome、海康SDK、大华SDK等。平台支持海量视频汇聚与管理,基于云边端一体化架构,具有强大的数据接入、处理及分发能力,在功能上,可提供视频直播、云端录像、云存储、录像检索与回看、智能告警、平台级联、智能分析等。
我们在测试时发现,EasyCVR的接入设备开启音频后,出现了无法播放的情况,于是对此进行了排查。
排查中分析原因,是由于程序没有解析设备传过来的音频数据。
添加如下参考代码,设置通道音频参数,传递给设备播放,之后在设备发过来的回调数据中,解析出具体的音视频数据,再进行转码播放即可。
multi := utils.Conf().Section("ehome").Key("enable_realplay_multi_port").MustInt(0)
if multi == 0 {
enableEHomeChannel(channel, devID, 1, false)
return enableEHomeChannel(channel, devID, 0, false)
} else {
playPortPoolLock.Lock()
defer playPortPoolLock.Unlock()
port := setPort(devID, channel, 1, 0)
enableEHomeChannelV2(channel, devID, 1, port, false)
port = setPort(devID, channel, 0, 0)
return enableEHomeChannelV2(channel, devID, 0, port, false)
}再次测试播放,此时视频已经能够正常播放了。
EasyCVR平台可在复杂的网络环境中,将分散的各类视频资源进行统一汇聚、整合、集中管理,实现视频资源的鉴权管理、按需调阅、全网分发、智能分析等,围绕“视频汇聚、数据融合、共享共用”原则,将视频能力赋能到各行业与领域,满足多元化的业务场景需求。
边栏推荐
- 漏洞复现----48、Airflow dag中的命令注入(CVE-2020-11978)
- ISPRS2022/云检测:Cloud detection with boundary nets基于边界网的云检测
- Disabling and enabling inspections pycharm
- flask接口响应中的中文乱码(unicode)处理
- ELK日志分析系统
- Cartoon: how to multiply large integers? (next)
- "Xiaodeng in operation and maintenance" is a single sign on solution for cloud applications
- c#图文混合,以二进制方式写入数据库
- Zabbix
- 使用QT设计师界面类创建2个界面,通过按键从界面1切换到界面2
猜你喜欢

每日一练:关于日期的一系列

求解为啥all(())是True, 而any(())是FALSE?

ISPRS2022/云检测:Cloud detection with boundary nets基于边界网的云检测

Leetcode daily question: merge two ordered arrays

ISPRS2020/云检测:Transferring deep learning models for cloud detection between Landsat-8 and Proba-V

統計php程序運行時間及設置PHP最長運行時間

IDC report: Tencent cloud database ranks top 2 in the relational database market!

提高應用程序性能的7個DevOps實踐

MATLAB查阅

企业数字化发展中的六个安全陋习,每一个都很危险!
随机推荐
Server configuration jupyter environment
请问下为啥有的表写sql能查到数据,但在数据地图里查不到啊,查表结构也搜不到
ITK Example
基于YOLOv3的口罩佩戴检测
Count the running time of PHP program and set the maximum running time of PHP
C # mixed graphics and text, written to the database in binary mode
如何保存训练好的神经网络模型(pytorch版本)
Zabbix
Flask solves the problem of CORS err
Daily exercise: a series of dates
网络威胁分析师应该具备的十种能力
Binder开辟线程数过多导致主线程ANR异常
Action avant ou après l'enregistrement du message teamcenter
Beijing internal promotion | the machine learning group of Microsoft Research Asia recruits full-time researchers in nlp/ speech synthesis and other directions
外盘黄金哪个平台正规安全,怎么辨别?
MATLAB查阅
Configure pytorch environment in Anaconda - win10 system (small white packet meeting)
服务器配置 jupyter环境
Humi analysis: the integrated application of industrial Internet identity analysis and enterprise information system
排错-关于clion not found visual studio 的问题