CN106303617A - 基于ZeroMQ和MessagePack的通用视频分发技术 - Google Patents

基于ZeroMQ和MessagePack的通用视频分发技术 Download PDF

Info

Publication number
CN106303617A
CN106303617A CN201610731198.XA CN201610731198A CN106303617A CN 106303617 A CN106303617 A CN 106303617A CN 201610731198 A CN201610731198 A CN 201610731198A CN 106303617 A CN106303617 A CN 106303617A
Authority
CN
China
Prior art keywords
server end
zeromq
publisher server
video
messagepack
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610731198.XA
Other languages
English (en)
Inventor
陈友明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Honghe Communication Co Ltd
Original Assignee
Sichuan Honghe Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sichuan Honghe Communication Co Ltd filed Critical Sichuan Honghe Communication Co Ltd
Priority to CN201610731198.XA priority Critical patent/CN106303617A/zh
Publication of CN106303617A publication Critical patent/CN106303617A/zh
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26208Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • H04N21/6437Real-time Transport Protocol [RTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/647Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
    • H04N21/64723Monitoring of network processes or resources, e.g. monitoring of network load

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明公开了基于ZeroMQ和MessagePack的通用视频分发技术,本发明通过ZeroMQ和MessagePack实现网络通信,使传输速度更快,数据压缩质量更高,降低网络带宽资源消耗,具有跨语言的特性。本发明通过ONVIF标准网络视频设备之间的信息交换通用协议和RTSP实时流传输协议相结合使不同厂商生产的网络视频产品具有互通性,如果当前节点不能满足需求时,分发Manager会自动在创建一个或N个Publisher服务器端来处理视频分发需求,并由分发Manager自动管理所有的Publisher服务器端,有利于实现负载均衡。

Description

基于ZeroMQ和MessagePack的通用视频分发技术
技术领域
本发明涉及视频分发技术领域,特别是基于ZeroMQ和MessagePack的通用视频分发技术。
背景技术
在相关技术中,不同厂商是针对不同品牌的网络视频产品来实现网络视频流分发技术,导致不同厂商生产的网络视频产品不具有互通性。如果某一平台需要接入多种不同厂商生产的网络视频产品,那么就需要写多套接口来与不同厂商生产的网络视频产品对接。这样会造成购买或使用此技术的开发人员对接难度增大,编码工作量加大,后期维护成本加大,可扩展性不强,增加开发成本。
目前视频分发技术未做到通用性,对于不同品牌的网络视频产品获取视频流需要用到不同的SDK包进行开发对接。这样既加大了开发人员的编码工作量,也不利于程序扩展性。
专利申请号:201110319599.1公开了视频分发系统和视频分发方法,其一个目的是提供高质量视频分发服务,其保证NGN上的QoS而不对现有技术的门户服务器和视频分发服务器作出较大修改。视频分发系统包括用户终端、SIP会话控制器和视频分发服务器。当SIP会话控制器收到建立会话的请求时,SIP会话控制器建立用户终端和视频分发服务器间的会话,并控制带宽控制器在用户终端和视频分发服务器间的通信路径中保留视频内容分发的带宽。视频分发服务器发送带宽改变请求,请求SIP会话控制器改变带宽以根据分发视频内容所需带宽的一部分保留带宽。响应于带宽改变请求,SIP会话控制器进一步在用户终端和视频分发服务器间的通信路径中保证用于视频内容分发的带宽。
发明内容
本发明的目的在于克服现有技术的不足,提供基于ZeroMQ和MessagePack的通用视频分发技术,本发明实现网络通信,使视频传输速度更快,数据压缩质量更高,降低网络带宽资源的消耗,具有跨语言的特性。
本发明的目的是通过以下技术方案来实现的:基于ZeroMQ和MessagePack的通用视频分发技术,包括以下步骤:
S1、启动分发Manager,分发Manager自动获取当前网络中的可用网络视频产品,并主动与网络视频产品建立数据链接;
S2、检测网络视频产品是否有对应的Publisher服务器端在处理数据,如果没有则由分发Manager自动分配一个Publisher服务器端,如果一个Publisher服务器端处理不过来时,分发Manager会自动再创建新的Publisher服务器端来处理此网络视频产品的数据;
S3、通过MessagePack对网络视频产品请求的数据进行序列化操作,并通过ZeroMQ向分发Manager发起请求,分发Manager会返回网络视频产品对应的Publisher服务器端地址给应用程序;
S4、应用程序获取到Publisher服务器端地址后,通过ZeroMQ向Publisher服务器端发起请求获取网络视频产品视频流数据。
本发明中,设定Publisher服务器端会向所有订阅者广播视频流数据。
本发明中,设定分发Manager下有多个的节点,当分发Manager监测到节点不够用或故障时会自动分配新节点,所述节点分为活动节点和备用节点。
本发明中,Publisher服务器端一直不断向网络视频产品广播视频流数据,如果中途有与网络视频产品相连的用户退出,并不影响Publisher服务器端的持续性广播,当退出后的用户再连接上来的时候,收到的就是后来发送的新的视频流数据。
本发明中,Publisher服务器端和网络视频产品之间的通信方式为ONVIF协议和RTSP协议。
本发明中,用户和Publisher服务器端通信方式是ZeroMQ和MessagePack。
本发明的有益效果是:
(1)实现网络通信,使视频传输速度更快,数据压缩质量更高,降低网络带宽资源的消耗,具有跨语言的特性;
(2)通过ONVIF标准网络视频设备之间的信息交换通用协议和RTSP实时流传输协议相结合使不同厂商生产的网络视频产品具有互通性;
(3)如果当前节点不能满足需求时,分发Manager会自动在创建一个或N个Publisher服务器端来处理视频分发需求,并由分发Manager自动管理所有的Publisher服务器端,有利于实现负载均衡。
附图说明
图1为本发明的流程图。
具体实施方式
下面结合附图进一步详细描述本发明的技术方案,但本发明的保护范围不局限于以下所述。
在本公开使用的术语是仅仅处于描述特定实施例的目的,而非旨在限制本公开。在本公开和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其含义,还应当理解,本文中使用的术语“分发Manager”即为“分发管理器”,“MessagePack”即为数据包,“Publisher服务器端”即为视频提供服务器端,“”
“和/或”是指并包含一个或多个相关联的例出项目的任何或所有可能的组合。
实施例:
如图1所示,基于ZeroMQ和MessagePack的通用视频分发技术,包括以下步骤:
S1、启动分发Manager,分发Manager自动获取当前网络中的可用网络视频产品,并主动与网络视频产品建立数据链接;
S2、检测网络视频产品是否有对应的Publisher服务器端在处理数据,如果没有则由分发Manager自动分配一个Publisher服务器端,如果一个Publisher服务器端处理不过来时,分发Manager会自动再创建新的Publisher服务器端来处理此网络视频产品的数据;
S3、通过MessagePack对网络视频产品请求的数据进行序列化操作,并通过ZeroMQ向分发Manager发起请求,分发Manager会返回网络视频产品对应的Publisher服务器端地址给应用程序;
S4、应用程序获取到Publisher服务器端地址后,通过ZeroMQ向Publisher服务器端发起请求获取网络视频产品视频流数据。
本发明中,设定Publisher服务器端会向所有订阅者广播视频流数据。
本发明中,设定分发Manager下有多个的节点,当分发Manager监测到节点不够用或故障时会自动分配新节点,所述节点分为活动节点和备用节点。
本发明中,Publisher服务器端一直不断向网络视频产品广播视频流数据,如果中途有与网络视频产品相连的用户退出,并不影响Publisher服务器端的持续性广播,当退出后的用户再连接上来的时候,收到的就是后来发送的新的视频流数据。
本发明中,Publisher服务器端和网络视频产品之间的通信方式为ONVIF协议和RTSP协议。
本发明中,用户和Publisher服务器端通信方式是ZeroMQ和MessagePack。
分发Manager具有两个特性:高可用性集群和自动监测分配节点。 高可用性集群和自动监测分配节点,是保证业务连续性的有效解决方案,分发Manager下可以有多个的节点,当分发Manager监测到节点不够用或故障时会自动分配新节点,所有节点分为活动节点及备用节点。当活动节点出现问题,导致正在运行的任务不能正常运行时,备用节点此时就会侦测到,并立即接续活动节点来执行业务。从而实现业务的不中断或短暂中断。
Publisher服务器端一直不断的广播网络视频产品视频流数据,如果中途有与网络视频产品相连的用户退出,并不影响他继续的广播,当用户再连接上来的时候,收到的就是后来发送的新的视频流数据。这对比较晚加入的,或者是中途离开的订阅者,必然会丢失掉一部分视频流数据。如果与网络视频产品相连的视频提供者中途离开,所有的用户会变成等待状态,等待视频提供者再上线的时候,会继续接收视频流数据。
设备是不同厂商生产的支持ONVIF标准网络视频设备之间信息交换协议的网络视频产品,Publisher服务器端和设备之间的通信方式是采用ONVIF协议+RTSP。Publisher服务器端通过ONVIF协议获取设备信息,设备返回RTSP视频流信息及地址。
用户是任何语言的支持ZeroMQ和MessagePack的应用程序。用户和视频提供者通信方式是ZeroMQ+MessagePack。采用ZeroMQ进行网络通信,采用MessagePack对数据进行序列化,节省用户的流量。需要注意的是订阅的通道出错了的话,用户是不会收到Publisher服务器端发送过来的数据。
以上所述实施例仅表达了本发明的具体实施方式,其描述较为具体和详细,但并不能因此而理解为对本发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。

Claims (6)

1.基于ZeroMQ和MessagePack的通用视频分发技术,其特征在于,包括以下步骤:
S1、启动分发Manager,分发Manager自动获取当前网络中的可用网络视频产品,并主动与网络视频产品建立数据链接;
S2、检测网络视频产品是否有对应的Publisher服务器端在处理数据,如果没有则由分发Manager自动分配一个Publisher服务器端,如果一个Publisher服务器端处理不过来时,分发Manager会自动再创建新的Publisher服务器端来处理此网络视频产品的数据;
S3、通过MessagePack对网络视频产品请求的数据进行序列化操作,并通过ZeroMQ向分发Manager发起请求,分发Manager会返回网络视频产品对应的Publisher服务器端地址给应用程序;
S4、应用程序获取到Publisher服务器端地址后,通过ZeroMQ向Publisher服务器端发起请求获取网络视频产品视频流数据。
2.根据权利要求1所述基于ZeroMQ和MessagePack的通用视频分发技术,其特征在于,设定Publisher服务器端会向所有订阅者广播视频流数据。
3.根据权利要求1所述基于ZeroMQ和MessagePack的通用视频分发技术,其特征在于,设定分发Manager下有多个的节点,当分发Manager监测到节点不够用或故障时会自动分配新节点,所述节点分为活动节点和备用节点。
4.根据权利要求1所述基于ZeroMQ和MessagePack的通用视频分发技术,其特征在于,Publisher服务器端一直不断向网络视频产品广播视频流数据,如果中途有与网络视频产品相连的用户退出,并不影响Publisher服务器端的持续性广播,当退出后的用户再连接上来的时候,收到的就是后来发送的新的视频流数据。
5.根据权利要求1所述基于ZeroMQ和MessagePack的通用视频分发技术,其特征在于,Publisher服务器端和网络视频产品之间的通信方式为ONVIF协议和RTSP协议。
6.根据权利要求1所述基于ZeroMQ和MessagePack的通用视频分发技术,其特征在于,用户和Publisher服务器端通信方式是ZeroMQ和MessagePack。
CN201610731198.XA 2016-08-26 2016-08-26 基于ZeroMQ和MessagePack的通用视频分发技术 Pending CN106303617A (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610731198.XA CN106303617A (zh) 2016-08-26 2016-08-26 基于ZeroMQ和MessagePack的通用视频分发技术

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610731198.XA CN106303617A (zh) 2016-08-26 2016-08-26 基于ZeroMQ和MessagePack的通用视频分发技术

Publications (1)

Publication Number Publication Date
CN106303617A true CN106303617A (zh) 2017-01-04

Family

ID=57676475

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610731198.XA Pending CN106303617A (zh) 2016-08-26 2016-08-26 基于ZeroMQ和MessagePack的通用视频分发技术

Country Status (1)

Country Link
CN (1) CN106303617A (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109218104A (zh) * 2018-09-30 2019-01-15 天津天地伟业电子工业制造有限公司 一种基于Onvif协议实现QoS网络优化的方法及装置

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1905455A (zh) * 2005-07-26 2007-01-31 深圳高新区信息网有限公司 基于互联网和流媒体技术的开放式多媒体传输系统
CN101039329A (zh) * 2006-12-28 2007-09-19 中兴通讯股份有限公司 基于媒体交付的网络电视系统的媒体交付系统
CN101170687A (zh) * 2007-11-28 2008-04-30 武汉烽火网络有限责任公司 基于视频监控的前端录像点播穿越nat的方法
CN103139082A (zh) * 2011-11-29 2013-06-05 苏州达联信息科技有限公司 一种视频直播分发网络的动态路由方法及装置
US8555309B2 (en) * 2002-05-16 2013-10-08 Intel Corporation Converged communication server with transaction management
CN105872453A (zh) * 2015-12-15 2016-08-17 乐视致新电子科技(天津)有限公司 网络摄像头监控方法、服务器及系统

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8555309B2 (en) * 2002-05-16 2013-10-08 Intel Corporation Converged communication server with transaction management
CN1905455A (zh) * 2005-07-26 2007-01-31 深圳高新区信息网有限公司 基于互联网和流媒体技术的开放式多媒体传输系统
CN101039329A (zh) * 2006-12-28 2007-09-19 中兴通讯股份有限公司 基于媒体交付的网络电视系统的媒体交付系统
CN101170687A (zh) * 2007-11-28 2008-04-30 武汉烽火网络有限责任公司 基于视频监控的前端录像点播穿越nat的方法
CN103139082A (zh) * 2011-11-29 2013-06-05 苏州达联信息科技有限公司 一种视频直播分发网络的动态路由方法及装置
CN105872453A (zh) * 2015-12-15 2016-08-17 乐视致新电子科技(天津)有限公司 网络摄像头监控方法、服务器及系统

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
A. YAMASHITA, M. KAGO: "A NEWMESSAGE-BASED DATA ACQUISITION SYSTEM FOR ACCELERATOR CONTROL", 《PROCEEDINGS OF ICALEPCS2013, SAN FRANCISCO, CA, USA 2013》 *
王文寿,王珂: "《网管员必备宝典 Windows Server 2003网络管理》", 31 January 2007 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109218104A (zh) * 2018-09-30 2019-01-15 天津天地伟业电子工业制造有限公司 一种基于Onvif协议实现QoS网络优化的方法及装置

Similar Documents

Publication Publication Date Title
CN107743698B (zh) 用于多路径媒体传递的方法和装置
CN104272758B (zh) 用于管理虚拟管道中多媒体流使用的网络资源的方法和设备
CN109787801B (zh) 一种网络服务管理方法、装置和系统
WO2017142771A1 (en) Call leg quality differentiation in network telephony systems
JP6860942B2 (ja) eMBMS MooDのための高度切替ポリシ
JP2007524294A (ja) データ送信のためのネットワークアーキテクチャ
CN109964467A (zh) 用于辅助数据流传输的基于节点类型的控制
CN103220165B (zh) 一种服务器主动宕机的处理方法和装置
US20140025800A1 (en) Systems and methods for multi-blade load balancing
WO2018192884A1 (en) Method for enhanced handling of multicast data streams within a broadband access network of a telecommunications network, telecommunications network, and system for enhanced handling of multicast data streams within a broadband access network of a telecommunications network, program and computer program product
CN106936729A (zh) 一种终端设备接入的控制方法、系统及宽带接入网系统
CN104639415A (zh) 一种虚拟机的迁移方法和软件定义网络sdn控制器
JP2007004361A (ja) 負荷分散装置
CN106572009A (zh) 一种多运营商链路环境下报文转发方法和装置
KR20130063413A (ko) 멀티미디어 컨텐트 전송 시스템에서 적응적 스트리밍을 이용한 트래픽 제어 방법 및 장치
CN106817267B (zh) 一种故障检测方法和设备
JP2018170699A (ja) 通信端末、通信システム、通信方法及び通信プログラム
CN106303617A (zh) 基于ZeroMQ和MessagePack的通用视频分发技术
CN112333690B (zh) 数据传输方法、装置、存储介质、终端及网络接入点设备
CN106209952A (zh) 服务节点分配方法、装置、cdn管理服务器及系统
US10425458B2 (en) Adaptive bit rate streaming with multi-interface reception
CN110557381B (zh) 基于媒体流热迁移机制的媒体高可用系统
CN102970236B (zh) 一种组播分发树切换方法和装置
CN114143569B (zh) 一种网页录制和直播方法及系统
US10587569B2 (en) Streaming service providing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170104

RJ01 Rejection of invention patent application after publication