当前位置:网站首页>EasyCVR接入设备开启音频后,视频无法正常播放是什么原因?
EasyCVR接入设备开启音频后,视频无法正常播放是什么原因?
2022-07-06 09:38:00 【EasyCVR】
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平台可在复杂的网络环境中,将分散的各类视频资源进行统一汇聚、整合、集中管理,实现视频资源的鉴权管理、按需调阅、全网分发、智能分析等,围绕“视频汇聚、数据融合、共享共用”原则,将视频能力赋能到各行业与领域,满足多元化的业务场景需求。
边栏推荐
- [rapid environment construction] openharmony 10 minute tutorial (cub pie)
- MySQL basic addition, deletion, modification and query of SQL statements
- C# WinForm系列-Button简单使用
- 03个人研发的产品及推广-计划服务配置器V3.0
- 自动化运维利器-Ansible-Playbook
- [elastic] elastic lacks xpack and cannot create template unknown setting index lifecycle. name index. lifecycle. rollover_ alias
- [reverse primary] Unique
- JVM class loading subsystem
- Kali2021 installation and basic configuration
- The problem of "syntax error" when uipath executes insert statement is solved
猜你喜欢
PySpark算子处理空间数据全解析(4): 先说说空间运算
Automatic operation and maintenance sharp weapon ansible Foundation
Junit单元测试
Development and practice of lightweight planning service tools
C#版Selenium操作Chrome全屏模式显示(F11)
BearPi-HM_ Nano development board "flower protector" case
BearPi-HM_ Nano development environment
Yarn: unable to load file d:\programfiles\nodejs\yarn PS1, because running scripts is prohibited on this system
[reverse] repair IAT and close ASLR after shelling
集成开发管理平台
随机推荐
The most complete tcpdump and Wireshark packet capturing practice in the whole network
Xin'an Second Edition: Chapter 26 big data security demand analysis and security protection engineering learning notes
Grafana 9 正式发布,更易用,更酷炫了!
The solution to the left-right sliding conflict caused by nesting Baidu MapView in the fragment of viewpager
Flink analysis (I): basic concept analysis
C WinForm series button easy to use
【MMdetection】一文解决安装问题
灵活报表v1.0(简单版)
mysql高級(索引,視圖,存儲過程,函數,修改密碼)
How to submit data through post
PostgreSQL 14.2, 13.6, 12.10, 11.15 and 10.20 releases
Summary of study notes for 2022 soft exam information security engineer preparation
mysql高级(索引,视图,存储过程,函数,修改密码)
Junit单元测试
Xin'an Second Edition; Chapter 11 learning notes on the principle and application of network physical isolation technology
应用服务配置器(定时,数据库备份,文件备份,异地备份)
Case: check the empty field [annotation + reflection + custom exception]
Example of batch update statement combining update and inner join in SQL Server
【MySQL入门】第三话 · MySQL中常见的数据类型
轻量级计划服务工具研发与实践