当前位置:网站首页>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平台可在复杂的网络环境中,将分散的各类视频资源进行统一汇聚、整合、集中管理,实现视频资源的鉴权管理、按需调阅、全网分发、智能分析等,围绕“视频汇聚、数据融合、共享共用”原则,将视频能力赋能到各行业与领域,满足多元化的业务场景需求。
边栏推荐
- Ordinary programmers look at the code, and top programmers look at the trend
- Zabbix
- 漏洞复现----48、Airflow dag中的命令注入(CVE-2020-11978)
- 得知女儿被猥亵,35岁男子将对方打至轻伤二级,法院作出不起诉决定
- Leetcode daily question: merge two ordered arrays
- Tkinter window preload
- The comprehensive competitiveness of Huawei cloud native containers ranks first in China!
- MySQL之知识点(七)
- Configure pytorch environment in Anaconda - win10 system (small white packet meeting)
- leetcode每日一题:字符串中的第一个唯一字符
猜你喜欢
Zabbix
GFS distributed file system
7 pratiques devops pour améliorer la performance des applications
C # mixed graphics and text, written to the database in binary mode
MySQL之知识点(六)
求解为啥all(())是True, 而any(())是FALSE?
Oracle Recovery Tools ----oracle数据库恢复利器
LeetCode每日一题:合并两个有序数组
Leetcode daily question: the first unique character in the string
Short the command line via jar manifest or via a classpath file and rerun
随机推荐
ITK Example
leetcode每日一题:字符串中的第一个唯一字符
证券网上开户安全吗?证券融资利率一般是多少?
Clickhouse (03) how to install and deploy Clickhouse
Kafaka technology lesson 1
ICML 2022 | Meta提出魯棒的多目標貝葉斯優化方法,有效應對輸入噪聲
What are the requirements for PMP certification? How much is it?
较文心损失一点点性能提升很多
IDC report: Tencent cloud database ranks top 2 in the relational database market!
c#图文混合,以二进制方式写入数据库
解决“双击pdf文件,弹出”请安装evernote程序
论文阅读_中文NLP_LTP
Disabling and enabling inspections pycharm
GFS distributed file system
漏洞复现----48、Airflow dag中的命令注入(CVE-2020-11978)
ITK Example
Data access - entityframework integration
每日一练:关于日期的一系列
EPM相关
Force deduction solution summary 1200 minimum absolute difference