[go: up one dir, main page]

CN1859525A - Method for realizing stream media switching and stream media server - Google Patents

Method for realizing stream media switching and stream media server Download PDF

Info

Publication number
CN1859525A
CN1859525A CN 200510135981 CN200510135981A CN1859525A CN 1859525 A CN1859525 A CN 1859525A CN 200510135981 CN200510135981 CN 200510135981 CN 200510135981 A CN200510135981 A CN 200510135981A CN 1859525 A CN1859525 A CN 1859525A
Authority
CN
China
Prior art keywords
streaming media
local
live
switching
streaming
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.)
Granted
Application number
CN 200510135981
Other languages
Chinese (zh)
Other versions
CN100596157C (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN200510135981A priority Critical patent/CN100596157C/en
Publication of CN1859525A publication Critical patent/CN1859525A/en
Application granted granted Critical
Publication of CN100596157C publication Critical patent/CN100596157C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

本发明公开了一种实现流媒体切换的方法,在小区多播(CMB)业务中,本地流媒体服务器接收到来自本地内容管理系统(CMS)的启动本地流媒体直播的切换请求,停止接收中心直播的全局流媒体,切换为接收和转发本地直播的区域流媒体;在本地流媒体服务器检测到本地直播播放完成后,所述本地流媒体服务器结束本地直播服务,切换回接收和转发全局流媒体。本发明还公开了一种流媒体服务器,通过在本地流媒体服务器中设置用于控制全局/区域流媒体直播切换的切换模块,实现了全局/区域流媒体的切换播放。通过本发明方案,实现了全局/区域流媒体直播的切换,保证了CMB业务中流媒体直播的时效性,从而满足了本地用户的需求。

Figure 200510135981

The invention discloses a method for realizing streaming media switching. In a cell multicast (CMB) service, a local streaming media server receives a switching request from a local content management system (CMS) to start a local streaming media live broadcast, and stops the receiving center The live global streaming media is switched to receiving and forwarding the local live streaming media; after the local streaming media server detects that the local live broadcasting is completed, the local streaming media server ends the local live streaming service and switches back to receiving and forwarding the global streaming media . The invention also discloses a streaming media server, which realizes switching and playing of global/regional streaming media by setting a switching module in the local streaming media server for controlling the switching of global/regional streaming media live broadcasting. Through the solution of the invention, the switching of global/regional streaming media live broadcasting is realized, the timeliness of streaming media live broadcasting in the CMB service is ensured, and the requirements of local users are satisfied.

Figure 200510135981

Description

一种实现流媒体切换的方法及流媒体服务器A method and streaming media server for realizing streaming media switching

技术领域technical field

本发明涉及移动通信广播技术,尤指一种小区多播(CMB,Cell MultipleBroadcast)业务中实现流媒体切换的方法及流媒体服务器。The invention relates to mobile communication broadcasting technology, in particular to a method and a streaming media server for realizing streaming media switching in a cell multicast (CMB, Cell Multiple Broadcast) service.

背景技术Background technique

第三代合作伙伴计划版本6(3GPP R6)协议中可以实现多媒体广播多播业务,但是R6协议目前还没有制定完成,成熟的产品推出市场也需要较长的时间。宽带码分多址(WCDMA)R99、R4协议的产品已经实现商用,但是只能够为每一个用户提供点对点流媒体直播及点播服务。The 3rd Generation Partnership Project Release 6 (3GPP R6) protocol can implement multimedia broadcast and multicast services, but the R6 protocol has not yet been formulated, and it will take a long time for mature products to be launched on the market. Wideband Code Division Multiple Access (WCDMA) products of R99 and R4 protocols have been commercialized, but they can only provide point-to-point live streaming and on-demand services for each user.

鉴于此,现有技术提供了小区多播(CMB,Cell Multiple Broadcast)业务,可以在WCDMA R99、R4协议产品中实现广播/组播业务。In view of this, the prior art provides Cell Multiple Broadcast (CMB, Cell Multiple Broadcast) service, which can realize broadcast/multicast service in WCDMA R99, R4 protocol products.

CMB业务是针对WCDMA系统开展的简化的多媒体广播/组播服务(MBMS)业务,其特点就是在现有WCDMA系统上开展无线组播业务。CMB业务的优点在于,一个广播流媒体可以满足多个用户终端的需求,避免了目前采用的单播(splitting)方式占用大量无线带宽的问题。CMB无线组播网络由内容提供商/服务提供商(CP/SP)、移动运营商和移动终端用户组成。其中,CP/SP组织提供流媒体源、移动运营商提供无线组播网路环境和流媒体传送能力、移动终端用户通过获取流媒体消费CMB业务。目前,CMB业务最适合开展的业务就是移动终端电视如手机电视等,即利用无线环境的组播功能,为移动终端用户提供电视广播业务,实现流媒体直播。The CMB service is a simplified Multimedia Broadcast/Multicast Service (MBMS) service aimed at the WCDMA system, and its characteristic is to carry out the wireless multicast service on the existing WCDMA system. The advantage of the CMB service is that one broadcast streaming media can meet the needs of multiple user terminals, avoiding the problem of occupying a large amount of wireless bandwidth in the currently adopted unicast (splitting) mode. The CMB wireless multicast network consists of content providers/service providers (CP/SP), mobile operators and mobile terminal users. Among them, CP/SP organizations provide streaming media sources, mobile operators provide wireless multicast network environment and streaming media transmission capabilities, and mobile terminal users consume CMB services through obtaining streaming media. At present, the most suitable service for CMB business is mobile terminal TV, such as mobile TV, which uses the multicast function of the wireless environment to provide mobile terminal users with TV broadcasting services and realize live streaming.

CMB业务中流媒体直播包括中心直播和本地直播两部分,且均只能播放已经编排好的内容,不能实时播放新内容。比如在某地区出现紧急事件时,不能立即向公众发布该紧急事件,而只能通过调整节目编排表,再播放该紧急事件内容。目前,CMB业务中流媒体直播缺乏时效性。Live streaming in the CMB service includes central live streaming and local live streaming, both of which can only play programmed content and cannot play new content in real time. For example, when an emergency event occurs in a certain area, the emergency event cannot be released to the public immediately, but the content of the emergency event can only be played by adjusting the program schedule. At present, live streaming of CMB services lacks timeliness.

图1是现有技术中心/本地流媒体直播原理示意图,如图1所示,中心/本地控制流媒体直播的功能单元主要包括:CP/SP、内容管理系统(CMS)和流媒体系统,CP/SP通过CMS发布直播并控制流媒体系统启动直播,流媒体系统制作流媒体内容并发布该流媒体。其中,流媒体系统由直播编码器和流媒体服务器组成,流媒体服务器包括媒体制作子系统(media creatorsubsystem)和媒体服务子系统(media service subsystem)两部分:媒体制作子系统负责采集视音频模拟信号,将采集到的模拟信号转换为数字信号,并通过直播编码器将数字信号转换成符合3GPP/MP4规范的实时传输协议(RTP)媒体流,以单播或组播形式发送该RTP媒体流、或者通过离线编码器将源媒体文件转换成符合3GPP/MP4规范的媒体文件并存储在中央内容库(central content storage)中;媒体服务子系统中的模拟直播器根据已生成的模拟直播频道表,将存储在中央内容库的媒体文件转换成视音频数据,以单播或组播形式发送该数据。如图1所示,中心包括中心CP/SP、中心CMS和中心流媒体系统,本地包括本地CP/SP、本地CMS和本地流媒体系统。Fig. 1 is a schematic diagram of the prior art center/local streaming media live broadcasting principle, as shown in Fig. /SP releases the live broadcast through the CMS and controls the streaming media system to start the live broadcast, and the streaming media system produces streaming media content and publishes the streaming media. Among them, the streaming media system is composed of a live encoder and a streaming media server. The streaming media server includes two parts: a media creator subsystem and a media service subsystem: the media creator subsystem is responsible for collecting video and audio analog signals , convert the collected analog signal into a digital signal, and convert the digital signal into a real-time transport protocol (RTP) media stream conforming to the 3GPP/MP4 specification through a live encoder, and send the RTP media stream in the form of unicast or multicast, Or convert the source media file into a media file conforming to the 3GPP/MP4 specification by an offline encoder and store it in the central content storage; the analog live broadcast device in the media service subsystem is based on the generated analog live channel table, Convert the media files stored in the central content library into video and audio data, and send the data in the form of unicast or multicast. As shown in Figure 1, the center includes a central CP/SP, a central CMS, and a central streaming media system, and the local includes a local CP/SP, a local CMS, and a local streaming media system.

图1中,粗单箭头曲线表示中心流媒体直播的传送方向,中心CP/SP通过中心CMS控制中心流媒体服务器中的控制模块启动发送流媒体;中心CP/SP收到中心流媒体服务器中的控制模块的启动响应后,控制中心流媒体服务器启动中心直播编码器;之后,在中心CMS的控制下,中心直播编码器发送直播媒体数据到中心流媒体服务器中的媒体传送模块,中心流媒体服务器中的媒体传送模块接收媒体数据并转发给本地流媒体服务器,本地流媒体服务器将来自中心流媒体服务器的媒体数据经无线网络转发给用户终端,完成全局流媒体直播,实现全局性CMB业务。图1中未示出中心流媒体服务器中包括控制模块和媒体传送模块。In Fig. 1, the thick single arrow curve represents the transmission direction of the central streaming media live broadcast, and the central CP/SP starts to send streaming media through the control module in the central CMS control center streaming media server; the central CP/SP receives the central streaming media server After the start-up response of the control module, the control center streaming media server starts the central live encoder; afterward, under the control of the central CMS, the central live encoder sends live media data to the media delivery module in the central streaming server, and the central streaming server The media transmission module in the system receives media data and forwards it to the local streaming media server. The local streaming media server forwards the media data from the central streaming media server to the user terminal through the wireless network to complete the global streaming media live broadcast and realize the global CMB service. Fig. 1 does not show that the central streaming media server includes a control module and a media transmission module.

具体来讲,中心到本地的中心流媒体直播包括中心直播和中心模拟直播两种。其中,中心直播是将来自卫星电视、模拟电视、普通摄像头等类型视音频设备的模拟信号,转换成数字视音频信号并实时编码成符合3GPP/MP4规范的RTP媒体流,以单播或组播形式发送给指定IP地址的本地流媒体系统;中心模拟直播是将源媒体文件如mpeg2、avi或mpeg1文件,转换成符合3GPP/MP4规范的目标媒体文件如3gp或mp4文件,以单播或组播形式发送给指定IP地址的本地流媒体系统上。Specifically, the center-to-local center streaming media live broadcast includes two types: center live broadcast and center simulated live broadcast. Among them, the central live broadcast is to convert the analog signals from satellite TV, analog TV, ordinary camera and other types of video and audio equipment into digital video and audio signals and encode them into RTP media streams in accordance with 3GPP/MP4 specifications in real time, and broadcast them in unicast or multicast The format is sent to the local streaming media system with the specified IP address; the center simulates the live broadcast to convert the source media files such as mpeg2, avi or mpeg1 files into the target media files conforming to the 3GPP/MP4 specification such as 3gp or mp4 files, in unicast or group The broadcast form is sent to the local streaming media system with the specified IP address.

图1中,粗单箭头虚曲线表示本地流媒体直播的传送方向,本地流媒体直播实现的是区域性CMB业务,具体实现与中心流媒体直播一致,这里不再重述。本地流媒体系统将接收到的中心流媒体直播或本地流媒体直播发送到无线网络控制器(RNC);RNC将接收到的流媒体直播发送到指定的组播IP地址和端口上;用户终端向RNC发送点播请求,取得组播IP地址和端口,加入组播组后,即可通过该组播IP地址和端口获取媒体流。本地流媒体直播同样包括本地直播和本地模拟直播两种,具体实现分别与中心直播和中心模拟直播一致,这里不再详述只是相关物理实体处于不同的地理位置上。需要说明的是,本地流媒体服务器同样包括控制模块和媒体发送模块,图1中未示出。本地流媒体服务器中的控制模块接收来自本地CMS的控制,而本地流媒体服务器中的媒体发送模块用于向用户转发来自中心流媒体服务器或本地直播编码器的流媒体。In Figure 1, the dotted curve of the thick single arrow indicates the transmission direction of the local live streaming media. The local live streaming media implements the regional CMB service. The specific implementation is consistent with the central streaming media live broadcasting and will not be repeated here. The local streaming media system sends the received central streaming media live broadcast or local streaming media live broadcast to the radio network controller (RNC); the RNC sends the received streaming media live broadcast to the designated multicast IP address and port; the user terminal sends The RNC sends an on-demand request to obtain the multicast IP address and port, and after joining the multicast group, the media stream can be obtained through the multicast IP address and port. The local streaming media live broadcast also includes local live broadcast and local simulated live broadcast. The specific implementation is the same as that of the central live broadcast and the central simulated live broadcast respectively. It will not be detailed here, but the relevant physical entities are located in different geographical locations. It should be noted that the local streaming media server also includes a control module and a media sending module, which are not shown in FIG. 1 . The control module in the local streaming media server receives the control from the local CMS, and the media sending module in the local streaming media server is used to forward the streaming media from the central streaming media server or the local live encoder to the user.

对于本地流媒体系统来说,要么转发来自中心流媒体服务器的媒体数据,实现全局CMB业务;要么将来自本地直播编码器的媒体数据经无线网络转发给用户终端,实现区域CMB业务,两种方式之间互不关联,独立存在且同一时刻只能存在一种方式。在本地流媒体系统转发中心流媒体时,即使本地在某地区出现紧急事件,也不能立即向公众发布该紧急事件,使得CMB业务中流媒体直播缺乏时效性。For the local streaming media system, either forward the media data from the central streaming media server to realize the global CMB service; or forward the media data from the local live encoder to the user terminal through the wireless network to realize the regional CMB service. They are not related to each other, exist independently and can only exist in one way at the same time. When the local streaming media system forwards the central streaming media, even if an emergency occurs locally in a certain area, the emergency event cannot be released to the public immediately, which makes the streaming media live broadcast in the CMB service lack of timeliness.

从现有技术CMB业务中流媒体直播的方法来看,流媒体直播只能播放已经编排好的内容,不能实时播放新内容,特别地,由于中心流媒体直播与本地流媒体直播之间不关联,不能实现全局/区域流媒体直播的切换,在某地区出现紧急事件如紧急公告,本地特色广告、本地新闻等时,系统不能立即向公众发布该紧急事件,使得CMB业务中流媒体直播缺乏时效性,不能满足本地用户的需求。From the point of view of the streaming media live broadcast method in the prior art CMB business, the streaming media live broadcast can only play the content that has been edited, and cannot play new content in real time. Global/regional live streaming cannot be switched. When an emergency event occurs in a certain area, such as emergency announcements, local featured advertisements, local news, etc., the system cannot immediately release the emergency event to the public, making live streaming in the CMB business lack of timeliness. Can not meet the needs of local users.

发明内容Contents of the invention

有鉴于此,本发明的主要目的在于提供一种实现流媒体切换的方法,能够实现全局/区域流媒体直播的切换,保证CMB业务中流媒体直播的时效性,从而满足本地用户的需求。In view of this, the main purpose of the present invention is to provide a method for realizing streaming media switching, which can realize the switching of global/regional streaming media live broadcasting, and ensure the timeliness of streaming media live broadcasting in the CMB service, thereby meeting the needs of local users.

本发明的另一目的在于提供一种流媒体服务器,能够实现全局/区域流媒体直播的切换,保证CMB业务中流媒体直播的时效性,从而满足本地用户的需求。Another object of the present invention is to provide a streaming media server, which can realize the switching of global/regional live streaming media, and ensure the timeliness of streaming media live streaming in the CMB service, so as to meet the needs of local users.

为达到上述目的,本发明的技术方案具体是这样实现的:In order to achieve the above object, the technical solution of the present invention is specifically realized in the following way:

一种实现流媒体切换的方法,该方法包括:A method for realizing streaming media switching, the method comprising:

本地流媒体服务器接收到来自本地内容管理系统CMS的启动本地流媒体直播的切换请求,停止接收中心直播的流媒体,接收和转发本地直播的流媒体。The local streaming media server receives the switching request from the local content management system CMS to start the local live streaming media, stops receiving the live streaming media of the center, and receives and forwards the local live streaming media.

所述本地流媒体服务器接收到切换请求之前,该方法还包括:所述本地流媒体服务器接收并转发中心直播的流媒体。Before the local streaming media server receives the switch request, the method further includes: the local streaming media server receives and forwards the live streaming media of the center.

该方法还包括:所述本地流媒体服务器停止接收中心直播的流媒体后,向本地CMS发送切换成功响应。The method further includes: after the local streaming media server stops receiving the streaming media broadcast live by the center, sending a switching success response to the local CMS.

该方法还包括:The method also includes:

所述本地流媒体服务器检测出本地直播的流媒体播放完成后,所述本地流媒体服务器结束本地直播,接收和转发中心直播的流媒体。After the local streaming media server detects that the local live streaming media playback is completed, the local streaming media server ends the local live streaming, and receives and forwards the central live streaming media.

该方法还包括:所述本地流媒体服务器接收中心直播的流媒体后,向本地CMS发送切换完成响应。The method further includes: the local streaming media server sends a switching completion response to the local CMS after receiving the live streaming media from the center.

所述切换请求包括:流媒体开始播放时间、流媒体标识、流媒体名称、流媒体类型和流媒体播放路径。The switching request includes: streaming media start time, streaming media identifier, streaming media name, streaming media type and streaming media playing path.

在本地系统时间到达所述开始播放时间时,所述本地流媒体服务器停止接收中心直播的流媒体,接收和转发本地直播的流媒体。When the local system time reaches the playing start time, the local streaming media server stops receiving the live streaming media of the center, and receives and forwards the local live streaming media.

所述切换请求还包括:流媒体英文名称、和/或流媒体片断起始时间、和/或流媒体播放时长。The switching request further includes: the English name of the streaming media, and/or the start time of the streaming media segment, and/or the playback duration of the streaming media.

所述切换请求包括流媒体开始播放时间和流媒体播放时长,所述检测本地直播的流媒体播放完成的方法为:The switching request includes streaming media start time and streaming media playback duration, and the method for detecting the completion of local live streaming media playback is:

根据所述流媒体开始播放时间和流媒体播放时长获得结束播放时间,所述本地流媒体服务器实时监测系统时间是否到达所述结束播放时间,在系统时间到达结束播放时间时,所述本地流媒体服务器检测出本地直播的流媒体播放完成;According to the streaming media start playing time and the streaming media playing duration, the end playing time is obtained, and whether the local streaming media server real-time monitors whether the system time reaches the ending playing time, and when the system time reaches the ending playing time, the local streaming media The server detects that the streaming media playback of the local live broadcast is completed;

或者在所述流媒体播放时长到达时,所述本地流媒体服务器检测出本地直播的流媒体播放完成。Or when the streaming media playing duration arrives, the local streaming media server detects that the local live streaming media playing is completed.

一种流媒体服务器,包括控制模块和媒体传送模块,还进一步设置有控制全局/区域流媒体直播切换的切换模块;A streaming media server, including a control module and a media transmission module, is further provided with a switching module for controlling global/regional live streaming switching;

用于在接收到来自本地CMS的启动本地流媒体直播的切换请求时,通知所述媒体传送模块停止接收来自中心流媒体系统的流媒体,接收和转发来自本地直播编码器的流媒体。It is used for notifying the media delivery module to stop receiving streaming media from the central streaming media system, and to receive and forward streaming media from the local live streaming encoder when receiving a switch request from the local CMS to start the local streaming media live broadcast.

所述切换模块与本地CMS之间设置有所述切换模块向所述本地CMS发送切换成功响应或切换完成响应的连接。A connection for the switching module to send a switching success response or a switching completion response to the local CMS is set between the switching module and the local CMS.

所述切换模块为独立的模块,或者所述切换模块为所述控制模块中增加的具有控制全局/区域流媒体直播切换功能的逻辑功能模块。The switching module is an independent module, or the switching module is a logical function module added to the control module with the function of controlling global/regional streaming live broadcast switching.

由上述技术方案可见,本发明基于CMB无线组播网络环境,在本地流媒体服务器中设置用于控制全局/区域流媒体直播切换的切换模块,切换模块可以是独立的模块,也可以是在已有控制模块中增加的具有控制全局/区域流媒体直播切换功能的逻辑功能模块;在本地流媒体服务器接收并转发中心流媒体,实现全局CMB业务时,若本地流媒体服务器中的切换模块或控制模块接收到来自本地CMS的启动本地流媒体直播的切换请求,所述切换模块或控制模块控制流媒体服务器中已有的媒体传送模块停止接收中心直播的流媒体,切换为接收和转发本地直播的流媒体,并发送切换成功响应给本地CMS;当根据切换请求本地流媒体服务器检测出本地直播播放完成后,所述切换模块或控制模块控制所述媒体传送模块结束本地直播服务,切换回接收和转发中心直播的流媒体,并向本地CMS发送切换成功响应,通知本地直播实时切换服务完成。It can be seen from the above technical scheme that the present invention is based on the CMB wireless multicast network environment, and a switching module for controlling global/regional streaming live switching is set in the local streaming server. The switching module can be an independent module, or it can be an existing There is a logical function module added in the control module with the function of controlling global/regional streaming media live switching; when the local streaming server receives and forwards the central streaming media to realize the global CMB service, if the switching module or control in the local streaming server The module receives the switching request from the local CMS to start the local live streaming, and the switching module or control module controls the existing media delivery module in the streaming server to stop receiving the live streaming of the center and switch to receiving and forwarding the local live streaming. Streaming media, and send the switching success response to local CMS; After the local streaming media server detects that the local live broadcasting is completed according to the switching request, the switching module or the control module control the media delivery module to end the local live broadcasting service, switch back to receiving and The forwarding center broadcasts the streaming media, and sends a switch success response to the local CMS, notifying the local live broadcast that the real-time switching service is completed.

本发明方案,本地运营商可以在提供全局CMB业务的基础上,自行开展区域性CMB业务,利用已经具有一定影响力的流媒体直播频道,实时传递新内容,通过全局/区域流媒体直播的切换,保证了CMB业务中流媒体直播的时效性,从而满足了本地用户的需求。本发明提到的CMB业务可以是手机电视业务等。According to the solution of the present invention, local operators can carry out regional CMB services on their own on the basis of providing global CMB services, and use streaming media live broadcast channels that already have a certain influence to deliver new content in real time, through the switching of global/regional live streaming media , which ensures the timeliness of streaming media live broadcast in the CMB service, thereby meeting the needs of local users. The CMB service mentioned in the present invention may be a mobile TV service or the like.

附图说明Description of drawings

图1是现有技术中心/本地流媒体直播原理示意图;Fig. 1 is a schematic diagram of the prior art center/local live streaming principle;

图2是本发明中心/本地流媒体切换原理示意图;Fig. 2 is a schematic diagram of the present invention center/local streaming media switching principle;

图3是本发明实现中心/本地流媒体切换的流程图。Fig. 3 is a flow chart of the present invention for realizing center/local streaming media switching.

具体实施方式Detailed ways

本发明的核心思想是:本地流媒体服务器接收到来自本地CMS的启动本地流媒体直播的切换请求,停止接收中心直播的全局流媒体,接收和转发本地直播的区域流媒体;在本地流媒体服务器检测到本地直播播放完成后,所述本地流媒体服务器结束本地直播服务,接收和转发全局流媒体。The core idea of the present invention is: the local stream media server receives the switching request from the start local stream media live broadcast of local CMS, stops receiving the global stream media of center live broadcast, receives and forwards the area stream media of local live broadcast; In local stream media server After detecting that the local live broadcast is completed, the local streaming media server ends the local live broadcast service, receives and forwards the global streaming media.

本发明通过在本地流媒体服务器中设置用于控制全局/区域流媒体直播切换的切换模块,来实现全局/区域流媒体的切换播放。The present invention realizes the switching and playing of the global/regional streaming media by setting a switching module for controlling the switching of the global/regional streaming media live broadcast in the local streaming media server.

为使本发明的目的、技术方案及优点更加清楚明白,以下参照附图并举较佳实施例,对本发明进一步详细说明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and preferred embodiments.

图2是本发明中心/本地流媒体切换原理示意图,在本地流媒体服务器中设置用于控制全局/区域流媒体直播切换的切换模块,切换模块可以是独立的模块,也可以是在已有控制模块中增加的具有控制全局/区域流媒体直播切换功能的逻辑功能模块。这里假设切换模块是独立的模块。Fig. 2 is a schematic diagram of the center/local streaming media switching principle of the present invention, a switching module for controlling global/regional live streaming switching is set in the local streaming server, the switching module can be an independent module, or can be in an existing control The logical function module added in the module has the function of controlling global/regional live streaming switching. It is assumed here that the switching module is an independent module.

如图2所示,若本地流媒体服务器中的切换模块接收到来自本地CMS的启动本地流媒体直播的切换请求,所述切换模块按照切换请求控制流媒体服务器中已有的媒体传送模块停止接收来自中心流媒体系统的全局流媒体,接收和转发来自本地直播编码器的区域流媒体给用户;切换模块完成切换后,向本地CMS发送切换成功响应;当切换模块根据切换请求检测到本地直播播放完成后,控制所述媒体传送模块结束本地直播,切换回接收和转发中心直播的全局流媒体给用户,向本地CMS发送切换完成响应,表示本地直播实时切换服务完成。As shown in Figure 2, if the switching module in the local streaming media server receives the switching request from the local CMS to start the local streaming media live broadcast, the switching module controls the existing media transmission module in the streaming media server according to the switching request to stop receiving The global streaming media from the central streaming media system receives and forwards the regional streaming media from the local live encoder to the user; after the switching module completes the switching, it sends a switching success response to the local CMS; when the switching module detects the local live broadcasting according to the switching request After completion, control the media transmission module to end the local live broadcast, switch back to receive and forward the global streaming media of the center live broadcast to the user, and send a switching completion response to the local CMS, indicating that the local live broadcast real-time switching service is completed.

图3是本发明实现中心/本地流媒体切换的流程图,结合图2,详细描述本发明流媒体切换的方法:Fig. 3 is the flow chart that the present invention realizes center/local streaming media switch, in conjunction with Fig. 2, describe the method for streaming media switching of the present invention in detail:

步骤300~步骤301:中心流媒体服务器接收到来自中心CMS的启动中心直播的流媒体请求后,在中心CMS的控制下,中心直播编码器经中心流媒体服务器和本地流媒体服务器,将流媒体数据转发给用户,实现全局性CMB业务。这两个步骤实现了全局流媒体直播,具体实现属于现有技术,这里不再详述。Step 300~Step 301: After the central streaming media server receives the streaming media request from the central CMS to start the central live streaming, under the control of the central CMS, the central live streaming encoder transmits the streaming media via the central streaming media server and the local streaming media server. The data is forwarded to the user to realize the global CMB service. These two steps realize the global streaming media live broadcast, and the specific implementation belongs to the prior art, and will not be described in detail here.

步骤302~步骤303:本地CMS向本地流媒体服务器发送启动本地流媒体直播的切换请求,本地流媒体服务器解析该切换请求,在本地系统时间到达切换时间时,暂停接收中心直播的流媒体,切换为接收和转发本地直播的流媒体。Steps 302 to 303: The local CMS sends a switching request to the local streaming server to start the local live streaming. The local streaming server analyzes the switching request, and when the local system time reaches the switching time, it suspends the live streaming of the receiving center and switches For receiving and forwarding local live streaming.

切换请求中可以携带以下属性项:The following attribute items can be carried in the switching request:

开始播放时间,表示流媒体开始播放的绝对时间,该属性项为必选项,可以采用字符型表示,格式可以采用年-月-日小时:分钟:秒钟(yy-mm-ddhh:mm:ss)。对于轮播方式,该项属性可以为空。当该项属性值为00-00-0000:00:00时,表示立即播放;Playback start time, which indicates the absolute time when the streaming media starts to play. This attribute item is mandatory and can be expressed in character type. The format can be year-month-day hour:minute:second (yy-mm-ddhh:mm:ss ). For the carousel mode, this attribute can be empty. When the attribute value of this item is 00-00-0000:00:00, it means playing immediately;

流媒体标识,用于标识全局唯一的流媒体文件或RTP流媒体,该属性项为必选项,可以采用字符型表示。比如RTP流媒体为手机电视节目,则流媒体标识为直播节目标识;Streaming media identifier, which is used to identify a globally unique streaming media file or RTP streaming media. This attribute item is mandatory and can be expressed in character type. For example, if the RTP streaming media is a mobile TV program, then the streaming media logo is the live program logo;

流媒体名称,用于标识流媒体文件或RTP流媒体的名称,该属性项为必选项,可以采用字符型表示。比如RTP流媒体为手机电视节目,则流媒体名称为直播节目的名称;The name of the streaming media is used to identify the name of the streaming media file or RTP streaming media. This attribute item is mandatory and can be expressed in characters. For example, if the RTP streaming media is a mobile TV program, the name of the streaming media is the name of the live program;

流媒体类型,用于标识直播的是流媒体文件,还是RTP流媒体,该属性项为必选项,可以采用整型表示。比如:该项属性值为0时,表示直播流媒体文件即模拟直播,该项属性值为1时,表示直播RTP流媒体如节目;Streaming media type, which is used to identify whether the live broadcast is a streaming media file or RTP streaming media. This attribute item is mandatory and can be represented by an integer. For example: when the value of this attribute is 0, it means that the live streaming media file is a simulated live broadcast; when the value of this attribute is 1, it means that the live RTP streaming media such as a program;

流媒体英文名称,用于标识流媒体文件或RTP流媒体的英文名称,该属性项为可选项,可以采用字符型表示;The English name of the streaming media is used to identify the English name of the streaming media file or RTP streaming media. This attribute item is optional and can be expressed in characters;

流媒体播放路径,用于标识流媒体的播放路径如统一资源定位器URL地址,该属性项为必选项,可以采用字符型表示;Streaming media playback path, which is used to identify the streaming media playback path, such as the URL address of the Uniform Resource Locator. This attribute item is mandatory and can be expressed in characters;

流媒体片断起始时间,只针对流媒体文件有效,是相对于流媒体文件头的一相对时间。若设置该属性项,则表示从流媒体文件中的该相对时间开始播放;若未设置该属性项,则默认为从流媒体文件头开始播放。该属性项为可选项,可以采用长整型表示,格式可以采用年-月-日小时:分钟:秒钟(yy-mm-dd hh:mm:ss)。当该项属性值为“00-00-0000:00:00”时,表示立即播放;The start time of a streaming media segment is only valid for streaming media files, and is a relative time relative to the streaming media file header. If this property item is set, it means to start playing from the relative time in the streaming media file; if this property item is not set, the default is to start playing from the beginning of the streaming media file. This attribute item is optional and can be represented by a long integer. The format can be year-month-day hour:minute:second (yy-mm-dd hh:mm:ss). When the attribute value of this item is "00-00-0000:00:00", it means to play immediately;

流媒体播放时长,表示流媒体播放的总时长。如果不设置此属性项,对于流媒体文件,表示播放到该流媒体文件结束,对于RTP流媒体,表示一直不停地播放,直至源RTP流媒体停止。该属性项为可选项,可以采用长整型表示。Streaming media playback duration, indicating the total duration of streaming media playback. If this property item is not set, for a streaming media file, it means playing until the end of the streaming media file; for RTP streaming media, it means playing continuously until the source RTP streaming media stops. This attribute item is optional and can be represented by a long integer.

本步骤中提到的切换时间也就是切换请求中携带的开始播放时间,The switching time mentioned in this step is also the start playing time carried in the switching request.

步骤304:流媒体服务器完成切换后,向本地CMS发送切换成功响应。本步骤可以省略。Step 304: After the streaming media server finishes switching, it sends a switching success response to the local CMS. This step can be omitted.

步骤305:本地直播编码器经本地流媒体服务器,将本地直播的流媒体发送给用户。本步骤实现了区域流媒体直播,具体实现属于现有技术,这里不再详述。强调的是,本地流媒体服务器按照切换请求中携带的属性项,从属性项指定的播放路径转发指定流媒体类型、指定流媒体标识和名称的流媒体给用户。Step 305: the local live encoder sends the local live streaming media to the user via the local streaming media server. This step realizes the live broadcast of regional streaming media, and the specific implementation belongs to the prior art, and will not be described in detail here. It is emphasized that, according to the attribute item carried in the switching request, the local streaming media server forwards the streaming media of the specified streaming media type, specified streaming media identifier and name to the user from the playback path specified by the attribute item.

步骤306:在区域流媒体播放过程中,本地流媒体服务器实时监测系统时间是否到达结束播放时间,当系统时间到达结束播放时间时,本地流媒体服务器停止本地直播的流媒体,重新切换回中心直播。Step 306: During the regional streaming media playback, the local streaming media server monitors in real time whether the system time reaches the end playback time, and when the system time reaches the end playback time, the local streaming media server stops the local live streaming media and switches back to the central live broadcast .

本步骤中,假设切换请求中携带的流媒体播放时长属性项,所述结束播放时间是根据切换请求中携带的流媒体开始播放时间和流媒体播放时长获得的,即流媒体开始播放时间与流媒体播放时长之和得到结束播放时间。In this step, assuming the streaming media playback duration attribute item carried in the switch request, the end playback time is obtained according to the streaming media start playback time and streaming media playback duration carried in the switching request, that is, the streaming media start playback time and the streaming media playback duration The sum of the media playback durations is the end playback time.

另外,本地流媒体服务器也可以根据流媒体播放时长设定定时结束本地直播,即流媒体播放时长到达时,停止本地直播的流媒体,重新切换回中心直播。In addition, the local streaming media server can also end the local live broadcast at a fixed time according to the streaming media playback duration, that is, when the streaming media playback duration reaches, stop the local live streaming media and switch back to the central live broadcast again.

步骤307:流媒体服务器切换回接收中心直播的流媒体后,向本地CMS发送切换完成响应。本步骤可以省略。Step 307: After the streaming media server switches back to the receiving center's live streaming media, it sends a switching completion response to the local CMS. This step can be omitted.

步骤308实现了全局流媒体直播,属于现有技术,这里不再重述。Step 308 implements the global streaming media live broadcast, which belongs to the prior art and will not be repeated here.

本发明方法强调的是,在本地流媒体系统中,实现了全局流媒体直播与区域流媒体直播的切换,在不改变用户终端的使用习惯和方法的前提下,本地运营商可以在提供全局CMB业务的基础上,自行开展区域性CMB业务,利用已经具有一定影响力的流媒体直播频道,实时传递新内容,实现了全局/区域流媒体直播的切换,保证了CMB业务中流媒体直播的时效性,从而满足了本地用户的需求。The method of the present invention emphasizes that in the local streaming media system, the switch between the global streaming media live broadcast and the regional streaming media live broadcast is realized. On the basis of the business, develop the regional CMB business by itself, use the already influential live streaming channel to deliver new content in real time, realize the switching of global/regional live streaming, and ensure the timeliness of live streaming in the CMB business , so as to meet the needs of local users.

以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围,凡在本发明的精神和原则之内所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above is only a preferred embodiment of the present invention, and is not used to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present invention shall include Within the protection scope of the present invention.

Claims (12)

1.一种实现流媒体切换的方法,其特征在于,该方法包括:1. A method for realizing streaming media switching, characterized in that the method comprises: 本地流媒体服务器接收到来自本地内容管理系统CMS的启动本地流媒体直播的切换请求,停止接收中心直播的流媒体,接收和转发本地直播的流媒体。The local streaming media server receives the switching request from the local content management system CMS to start the local live streaming media, stops receiving the live streaming media of the center, and receives and forwards the local live streaming media. 2.根据权利要求1所述的方法,其特征在于,所述本地流媒体服务器接收到切换请求之前,该方法还包括:所述本地流媒体服务器接收并转发中心直播的流媒体。2. The method according to claim 1, characterized in that, before the local streaming media server receives the switch request, the method further comprises: the local streaming media server receiving and forwarding the live streaming media of the center. 3.根据权利要求1所述的方法,其特征在于,该方法还包括:所述本地流媒体服务器停止接收中心直播的流媒体后,向本地CMS发送切换成功响应。3. The method according to claim 1, further comprising: after the local streaming media server stops receiving live streaming media from the center, sending a switching success response to the local CMS. 4.根据权利要求1或3所述的方法,其特征在于,该方法还包括:4. The method according to claim 1 or 3, characterized in that the method further comprises: 所述本地流媒体服务器检测出本地直播的流媒体播放完成后,所述本地流媒体服务器结束本地直播,接收和转发中心直播的流媒体。After the local streaming media server detects that the local live streaming media playback is completed, the local streaming media server ends the local live streaming, and receives and forwards the central live streaming media. 5.根据权利要求4所述的方法,其特征在于,该方法还包括:所述本地流媒体服务器接收中心直播的流媒体后,向本地CMS发送切换完成响应。5 . The method according to claim 4 , further comprising: after the local streaming media server receives the live streaming media from the center, sending a handover completion response to the local CMS. 5 . 6.根据权利要求1所述的方法,其特征在于,所述切换请求包括:流媒体开始播放时间、流媒体标识、流媒体名称、流媒体类型和流媒体播放路径。6 . The method according to claim 1 , wherein the switching request includes: streaming media start time, streaming media identifier, streaming media name, streaming media type, and streaming media playing path. 7.根据权利要求6所述的方法,其特征在于,在本地系统时间到达所述开始播放时间时,所述本地流媒体服务器停止接收中心直播的流媒体,接收和转发本地直播的流媒体。7. The method according to claim 6, wherein, when the local system time reaches the playing start time, the local streaming media server stops receiving the live streaming media of the center, and receives and forwards the local live streaming media. 8.根据权利要求6所述的方法,其特征在于,所述切换请求还包括:流媒体英文名称、和/或流媒体片断起始时间、和/或流媒体播放时长。8 . The method according to claim 6 , wherein the switch request further includes: the English name of the streaming media, and/or the start time of the streaming media segment, and/or the playback duration of the streaming media. 9.根据权利要求4所述的方法,其特征在于,所述切换请求包括流媒体开始播放时间和流媒体播放时长,所述检测本地直播的流媒体播放完成的方法为:9. The method according to claim 4, wherein the switch request includes streaming media start time and streaming media playback duration, and the method for detecting the completion of local live streaming media playback is: 根据所述流媒体开始播放时间和流媒体播放时长获得结束播放时间,所述本地流媒体服务器实时监测系统时间是否到达所述结束播放时间,在系统时间到达结束播放时间时,所述本地流媒体服务器检测出本地直播的流媒体播放完成;According to the streaming media start playing time and the streaming media playing duration, the end playing time is obtained, and whether the local streaming media server real-time monitors whether the system time reaches the ending playing time, and when the system time reaches the ending playing time, the local streaming media The server detects that the streaming media playback of the local live broadcast is completed; 或者在所述流媒体播放时长到达时,所述本地流媒体服务器检测出本地直播的流媒体播放完成。Or when the streaming media playing duration arrives, the local streaming media server detects that the local live streaming media playing is completed. 10.一种流媒体服务器,包括控制模块和媒体传送模块,其特征在于,还进一步设置有控制全局/区域流媒体直播切换的切换模块;10. A streaming media server, comprising a control module and a media transmission module, is characterized in that, it is further provided with a switching module controlling global/area streaming media live switching; 用于在接收到来自本地CMS的启动本地流媒体直播的切换请求时,通知所述媒体传送模块停止接收来自中心流媒体系统的流媒体,接收和转发来自本地直播编码器的流媒体。It is used for notifying the media delivery module to stop receiving streaming media from the central streaming media system, and to receive and forward streaming media from the local live streaming encoder when receiving a switch request from the local CMS to start the local streaming media live broadcast. 11.根据权利要求10所述的流媒体服务器,其特征在于,所述切换模块与本地CMS之间设置有所述切换模块向所述本地CMS发送切换成功响应或切换完成响应的连接。11. The streaming media server according to claim 10, characterized in that, a connection for the switching module to send a switching success response or a switching completion response to the local CMS is set between the switching module and the local CMS. 12.根据权利要求10或11所述的流媒体服务器,其特征在于,所述切换模块为独立的模块,或者所述切换模块为所述控制模块中增加的具有控制全局/区域流媒体直播切换功能的逻辑功能模块。12. The streaming media server according to claim 10 or 11, characterized in that, the switching module is an independent module, or the switching module is an increase in the control module with the ability to control global/regional live streaming switching Logical function modules for functions.
CN200510135981A 2005-12-29 2005-12-29 A method and streaming media server for realizing streaming media switching Expired - Fee Related CN100596157C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200510135981A CN100596157C (en) 2005-12-29 2005-12-29 A method and streaming media server for realizing streaming media switching

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200510135981A CN100596157C (en) 2005-12-29 2005-12-29 A method and streaming media server for realizing streaming media switching

Publications (2)

Publication Number Publication Date
CN1859525A true CN1859525A (en) 2006-11-08
CN100596157C CN100596157C (en) 2010-03-24

Family

ID=37298386

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200510135981A Expired - Fee Related CN100596157C (en) 2005-12-29 2005-12-29 A method and streaming media server for realizing streaming media switching

Country Status (1)

Country Link
CN (1) CN100596157C (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009006820A1 (en) * 2007-07-05 2009-01-15 Huawei Technologies Co., Ltd. Method and system for providing media flow during swith of media servers
WO2009117917A1 (en) * 2008-03-28 2009-10-01 华为技术有限公司 A stream media service switching method, system and device
CN101242581B (en) * 2008-02-28 2011-04-06 华为技术有限公司 Mobile stream media managing method, system and device
CN101540947B (en) * 2009-04-03 2011-12-07 中兴通讯股份有限公司 Analog live broadcasting method of mobile streaming media and content switching method thereof
CN101399844B (en) * 2007-09-26 2012-03-07 中兴通讯股份有限公司 Method for fast switching content in mobile stream media service
CN101626396B (en) * 2008-07-08 2014-01-08 华为技术有限公司 Method, device and system for building multi-user service and controlling channel transfer
CN106937131A (en) * 2017-03-31 2017-07-07 广州华多网络科技有限公司 video stream switching method, device and equipment
CN110832871A (en) * 2017-04-17 2020-02-21 索尼互动娱乐有限责任公司 Live broadcast

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009006820A1 (en) * 2007-07-05 2009-01-15 Huawei Technologies Co., Ltd. Method and system for providing media flow during swith of media servers
CN101399844B (en) * 2007-09-26 2012-03-07 中兴通讯股份有限公司 Method for fast switching content in mobile stream media service
CN101242581B (en) * 2008-02-28 2011-04-06 华为技术有限公司 Mobile stream media managing method, system and device
WO2009117917A1 (en) * 2008-03-28 2009-10-01 华为技术有限公司 A stream media service switching method, system and device
CN101547143B (en) * 2008-03-28 2012-10-03 华为技术有限公司 Method and device for switching streaming media service
CN101626396B (en) * 2008-07-08 2014-01-08 华为技术有限公司 Method, device and system for building multi-user service and controlling channel transfer
CN101540947B (en) * 2009-04-03 2011-12-07 中兴通讯股份有限公司 Analog live broadcasting method of mobile streaming media and content switching method thereof
CN106937131A (en) * 2017-03-31 2017-07-07 广州华多网络科技有限公司 video stream switching method, device and equipment
CN110832871A (en) * 2017-04-17 2020-02-21 索尼互动娱乐有限责任公司 Live broadcast
CN110832871B (en) * 2017-04-17 2022-04-08 索尼互动娱乐有限责任公司 Method, server system and computer readable medium for real-time incorporation of user-generated content into a broadcast media stream

Also Published As

Publication number Publication date
CN100596157C (en) 2010-03-24

Similar Documents

Publication Publication Date Title
CN1852421A (en) Method for realizing switch-over between living broadcasting and time-shifting broadcasting
TWI714602B (en) Middleware delivery of dash client qoe metrics
CN1240223C (en) Method and system for delivering media over a network
EP2373051B1 (en) Method and apparatus for providing timeshift service in digital broadcasting system and system thereof
US7558870B2 (en) Multimedia content delivery system
US20090052450A1 (en) Apparatus, system, and method for video delivery using dual multicast streams with one being delayed
CN1528088A (en) Method and system for delivering media selections over a network
CN1674693A (en) Method and apparatus for converging broadcast service and multicast service in a mobile communication system
CN1949876A (en) Method and system for supporting media data of multi-coding formats
WO2010139172A1 (en) Unified management method and system for channel service as well as services on demand of stream media
AU2011233856B2 (en) Method and apparatus for providing timeshift service in digital broadcasting system and system thereof
CN1976442A (en) IPTV application system and quasi video frequency request program broadcasting method and system
EP1880520A2 (en) Scheduling client feedback during streaming sessions
WO2014208377A1 (en) Content supply device, content supply method, program, terminal device, and content supply system
WO2010020193A1 (en) Multimedia system for providing real-time scene and implementing method thereof
CN1859525A (en) Method for realizing stream media switching and stream media server
CN101031073A (en) System and method for monitoring mobile video signals
EP4029279A1 (en) Method for broadcasting dash/hls hybrid multimedia streams
WO2020135562A1 (en) Multicast method, device, apparatus, and computer storage medium
CN1555633A (en) Method and apparatus for receiving broadcasted content
US9998514B2 (en) Method and apparatus for handling files in association with media content delivery
CN1716830A (en) Method for realizing multimedia broadcast and multi cast service by air interface
EP3072302A1 (en) A method, node and computer programe for providing live content streaming
WO2009121274A1 (en) A coding method, device and a switching system for media stream
CN100426886C (en) Method for realizing stream media service

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100324

Termination date: 20121229