WO2011095118A1 - Method, apparatus and system for processing network time shift - Google Patents

Method, apparatus and system for processing network time shift Download PDF

Info

Publication number
WO2011095118A1
WO2011095118A1 PCT/CN2011/070771 CN2011070771W WO2011095118A1 WO 2011095118 A1 WO2011095118 A1 WO 2011095118A1 CN 2011070771 W CN2011070771 W CN 2011070771W WO 2011095118 A1 WO2011095118 A1 WO 2011095118A1
Authority
WO
WIPO (PCT)
Prior art keywords
time shift
media stream
user terminal
time
unicast
Prior art date
Application number
PCT/CN2011/070771
Other languages
French (fr)
Chinese (zh)
Inventor
孙兵
杨佩林
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2011095118A1 publication Critical patent/WO2011095118A1/en

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/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
    • H04N21/26616Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel for merging a unicast channel into a multicast channel, e.g. in a VOD application, when a client served by unicast channel catches up a multicast channel to save bandwidth
    • 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/61Network physical structure; Signal processing
    • H04N21/6106Network physical structure; Signal processing specially adapted to the downstream path of the transmission network
    • H04N21/6125Network physical structure; Signal processing specially adapted to the downstream path of the transmission network involving transmission via Internet
    • 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/64Addressing
    • H04N21/6405Multicasting
    • 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/64Addressing
    • H04N21/6408Unicasting

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

Embodiments of the present invention disclose a method, apparatus and system for processing a network time shift, relate to the communication field, and enable a switch from a unicast transmission manner to a multicast transmission manner after a time shift, so as to reduce the system width cost and improve the system performance. The method of the invention includes the following steps: according to the time and/or location information needed for playing media streams when a time shift occurs in a user terminal, a time shift server determines whether to switch a media stream corresponding to a time shift playing request message from a unicast transmission to a multicast transmission, if yes, increases the unicast transmission rate of sending the media stream to said user terminal, and sends a time shift request response message to said user terminal; said user terminal obtains the rate of playing the media stream according to the response message, and plays the media stream according to said rate; when the unicast transmission progress is consistent with the multicast transmission progress of said media stream, said media stream is switched to a multicast manner and transmitted to said user terminal.

Description

说 明 书  Description
网络时移的处理方法、 装置及系统 技术领域  Network time shift processing method, device and system
本发明涉及通信领域, 尤其涉及一种网络时移的处理方法、 装置及系统。 背景技术  The present invention relates to the field of communications, and in particular, to a method, device and system for processing network time shift. Background technique
IPTV (网络电视)等视频业务越来越普及, 这些视频业务带来的好处就是, 允许用户在接收视频业务时能够进行暂停、 快进、 快退等功能, 给用户提供互 动的感觉, 给用户带来了全新的视频体验。 这些功能常常称为视频业务的时移 功能 (Time- Shif ted ) 。  Video services such as IPTV (Internet TV) are becoming more and more popular. The advantage of these video services is that they can allow users to pause, fast forward, rewind and other functions when receiving video services, and provide users with an interactive feeling. Brought a new video experience. These features are often referred to as Time-Shifted for video services.
目前时移功能的实现基本上有两种方法, 一种是基于终端设备实现网络时 移的处理, 另外一种是基于网絡设备实现网络时移的处理。 其中, 基于终端设 备实现网络时移的处理, 通常需要视频终端设备有大容量的存储空间, 该视频 终端把接收到的视频业务存储到其大容量的存储空间内, 用户通过从该存储空 间中获取视频码流, 实现暂停、 快进或快退等时移功能后的正常视频业务的播 放。 基于网络设备实现网络时移的处理, 是基于单播实现的, 当用户进入暂停、 快进或快退等时移后, 服务器需要对每个时移用户终端都建立一条单播传输信 道, 利用单播传输方式将相应的视频码流传输给对应的用户终端, 从而实现暂 停、 快进或快退等时移功能后的正常视频业务的播放。  At present, there are basically two methods for implementing the time shift function. One is based on the terminal device to implement network time shift processing, and the other is based on network device to implement network time shift processing. The video terminal device has a large-capacity storage space, and the video terminal stores the received video service into a large-capacity storage space, and the user passes through the storage space. Get the video stream to play the normal video service after the time shift function such as pause, fast forward or fast reverse. The network time-shifting processing based on the network device is implemented based on unicast. After the user enters the pause, fast forward or fast rewind, the server needs to establish a unicast transmission channel for each time-shifted user terminal. The unicast transmission mode transmits the corresponding video code stream to the corresponding user terminal, thereby realizing the playback of the normal video service after the time shift function such as pause, fast forward or fast reverse.
在实现上述网络时移的处理过程中, 发明人发现现有技术中至少存在如下 问题: 当采用基于终端设备实现时移的处理时, 首先要求终端必须支持大容量 的存储空间, 增加了终端的成本; 其次终端只能时移其已经接收到的视频, 也 就是说, 如果终端没有存储视频内容, 就没法实现时移; 当采用基于网络设备 实现时移的处理时, 基于单播传输的特性, 随着时移用户数量的增加, 系统带 宽的消耗也随之逐渐增大, 系统性能将大大降低。 发明内容  In the process of implementing the network time shift described above, the inventors have found that at least the following problems exist in the prior art: When the time shift processing based on the terminal device is adopted, the terminal is required to support a large-capacity storage space first, and the terminal is added. Cost; secondly, the terminal can only time shift the video it has received, that is, if the terminal does not store the video content, it cannot realize time shifting; when using the network device to implement time shift processing, based on unicast transmission Features, as the number of time-shifted users increases, so does the system bandwidth consumption, and system performance is greatly reduced. Summary of the invention
本发明的实施例提供一种网络时移的处理方法、 装置及系统, 解决了终端 时移和单播网络时移的缺陷, 实现了组播业务(如 BTV 业务) 时移后可以从单 播传输方式切换到组播传输方式, 从而降低系统带宽的消耗, 提高系统性能。 还可以实现时移业务(包括单播时移业务和组播时移业务) 的媒体流无縫切换 的时移过程。 Embodiments of the present invention provide a method, device, and system for processing network time shift, which solve the terminal The time-shift and unicast network time-shifting defects enable multicast services (such as BTV services) to be switched from unicast transmission mode to multicast transmission mode after time shifting, thereby reducing system bandwidth consumption and improving system performance. It can also realize the time shifting process of seamless switching of media streams of time-shifted services (including unicast time-shifted services and multicast time-shifted services).
为达到上述目的, 本发明的实施例采用如下技术方案:  In order to achieve the above object, the embodiment of the present invention adopts the following technical solutions:
一种网络时移的处理方法, 包括:  A method for processing network time shifts, including:
接收用户终端发送的时移播放请求消息, 所述时移播放请求消息中包含用 户终端时移发生时需要播放媒体流的时间和 /或位置信息;  Receiving a time shift play request message sent by the user terminal, where the time shift play request message includes time and/or location information of the media stream that needs to be played when the user terminal time shift occurs;
根据所述用户终端时移发生时需要播放媒体流的时间和 /或位置信息, 确定 是否将所述时移请求播放消息对应的媒体流从单播传输切换到组播传输;  Determining whether to switch the media stream corresponding to the time shift request play message from unicast transmission to multicast transmission according to time and/or location information of the media stream that needs to be played when the time shift occurs;
若确定将所述媒体流从单播传输切换到组播传输, 则提高向所述用户终端 发送媒体流的单播传输速率, 并根据所述用户终端发送的时移播放请求消息, 向所述用户终端发送时移播放响应消息, 所述响应消息中包括操作指示信息; 将所述媒体流通过单播传输给所述用户终端;  If it is determined that the media stream is switched from the unicast transmission to the multicast transmission, the unicast transmission rate of the media stream is sent to the user terminal, and according to the time shift play request message sent by the user terminal, The user terminal sends a time-shift playback response message, where the response message includes operation indication information; and the media stream is transmitted to the user terminal by unicast;
当所述单播传输进程与所述媒体流的组播传输进程一致时, 将所述媒体流 通过组播传输给所述用户终端。  And when the unicast transmission process is consistent with the multicast transmission process of the media stream, the media stream is transmitted to the user terminal by multicast.
一种网络时移处理的方法, 包括:  A method for network time shift processing, comprising:
接收时移服务器发送的时移播放响应消息, 所述响应消息中包括操作指示 信息;  Receiving a time shift play response message sent by the time shift server, where the response message includes operation indication information;
根据所述操作指示信息获取播放媒体流的播放速率;  Obtaining a play rate of the played media stream according to the operation indication information;
按照所述播放速率播放所述媒体流。  The media stream is played at the playback rate.
一种网络时移的处理方法, 包括:  A method for processing network time shifts, including:
接收用户终端发送的时移播放请求消息, 所述时移播放请求消息中包含用 户终端时移发生时请求接收媒体流的序列号;  Receiving a time shift play request message sent by the user terminal, where the time shift play request message includes a sequence number of the requesting media stream when the user terminal time shift occurs;
根据所述序列号确定所述时移播放请求消息对应的媒体流的开始位置; 将所述媒体流从所述序列号开始通过单播传输给所述用户终端。  Determining, according to the sequence number, a start position of the media stream corresponding to the time shift play request message; transmitting the media stream from the serial number to the user terminal by using unicast.
一种网络时移处理的方法, 包括:  A method for network time shift processing, comprising:
用户终端确定时移发生时所述用户终端的时移时间是否在短时移范围内; 若所述时移时间在所述短时移范围内, 则向短时移服务器发送时移播放请 求消息, 由所述短时移服务器实现网络时移的处理; Determining, by the user terminal, whether the time shift time of the user terminal is within a short time shift range when the time shift occurs; And if the time shift time is within the short time shift range, sending a time shift play request message to the short time shift server, and performing network time shift processing by the short time shift server;
若所述时移时间超过所述短时移范围内, 则向长时移服务器发送时移播放 请求, 由所述长时移服务器实现网络时移的处理。  If the time shift time exceeds the short time shift range, a time shift play request is sent to the long time shift server, and the network time shift processing is implemented by the long time shift server.
一种时移服务器, 包括:  A time-shifting server, comprising:
接收单元, 用于接收用户终端发送的时移播放请求消息, 所述时移播放请 求消息中包含用户终端时移发生时需要播放媒体流的时间和 /或位置信息;  a receiving unit, configured to receive a time shift play request message sent by the user terminal, where the time shift play request message includes time and/or location information of the media stream that needs to be played when the user terminal time shift occurs;
确定单元, 用于根据所述用户终端时移发生时需要播放媒体流的时间和 /或 位置信息, 确定是否将所述时移播放请求消息对应的媒体流从单播传输切换到 组播传输;  a determining unit, configured to determine, according to time and/or location information that the media stream needs to be played when the time shift occurs, to determine whether to switch the media stream corresponding to the time shift play request message from unicast transmission to multicast transmission;
第一调整单元, 用于在所述确定单元确定将所述媒体流从单播传输切换到 组播传输时, 提高向所述用户终端发送媒体流的单播传输速率;  a first adjusting unit, configured to: when the determining unit determines to switch the media stream from a unicast transmission to a multicast transmission, improve a unicast transmission rate of sending the media stream to the user terminal;
发送单元, 用于根据所述用户终端发送的时移播放请求消息, 向所述用户 终端发送时移请求响应消息, 所述响应消息中包括操作指示信息;  a sending unit, configured to send a time shift request response message to the user terminal according to the time shift play request message sent by the user terminal, where the response message includes operation indication information;
传输单元, 用于将所述媒体流通过单播传输给所述用户终端;  a transmitting unit, configured to transmit the media stream to the user terminal by using unicast;
切换单元, 用于当所述单播传输进程与所述媒体流的组播传输进程一致时, 将所述媒体流通过组播传输给所述用户终端。  And a switching unit, configured to: when the unicast transmission process is consistent with the multicast transmission process of the media stream, transmit the media stream to the user terminal by using multicast.
一种网络时移处理的系统, 包括:  A network time shift processing system, comprising:
用户终端, 用于向时移服务器发送时移播放请求消息, 所述时移播放请求 消息中包含用户终端时移发生时需要播放媒体流的时间和 /或位置信息;  a user terminal, configured to send a time shift play request message to the time shift server, where the time shift play request message includes time and/or location information of the media stream that needs to be played when the time shift occurs of the user terminal;
时移服务器, 用于接收用户终端发送的时移播放请求消息, 所述时移播放 请求消息中包含用户终端时移发生时需要播放媒体流的时间和 /或位置信息; 根 据所述用户终端时移发生时需要播放媒体流的时间和 /或位置信息, 确定是否将 所述时移请求播放消息对应的媒体流从单播传输切换到组播传输; 若确定将所 述媒体流从单播传输切换到组播传输, 则提高向所述用户终端发送媒体流的单 播传输速率, 并根据所述用户终端发送的时移播放请求消息, 向所述用户终端 发送时移播放响应消息, 所述响应消息中包括操作指示信息; 将所述媒体流通 过单播传输给所述用户终端; 当所述单播传输进程与所述媒体流的组播传输进 程一致时, 将所述媒体流通过组播传输给所述用户终端; a time shift server, configured to receive a time shift play request message sent by the user terminal, where the time shift play request message includes time and/or location information of the media stream that needs to be played when the user terminal time shift occurs; according to the user terminal The time and/or location information of the media stream needs to be played when the shift occurs, determining whether to switch the media stream corresponding to the time shift request play message from unicast transmission to multicast transmission; if it is determined that the media stream is transmitted from unicast Switching to the multicast transmission, the unicast transmission rate of the media stream is sent to the user terminal, and the time shift play request message is sent to the user terminal according to the time shift play request message sent by the user terminal, where The response message includes operation indication information; transmitting the media stream to the user terminal by unicast; when the unicast transmission process and the media stream are multicasted into the When the processes are consistent, the media stream is transmitted to the user terminal by multicast;
所述用户终端还用于, 接收所述时移服务器发送的时移播放响应消息, 所 述响应消息中包括操作指示信息; 根据所述操作指示信息获取所述用户终端播 放媒体流的播放速率; 按照所述播放速率播放所述媒体流。  The user terminal is further configured to: receive a time shift play response message sent by the time shift server, where the response message includes operation indication information; and acquire, according to the operation indication information, a play rate of the media stream played by the user terminal; The media stream is played at the playback rate.
采用本发明技术方案后, 当用户终端在观看视频业务发生时移后, 所述用 户终端向时移服务器发送时移播放请求, 所述时移服务器确定是否将所述时移 请求播放消息对应的媒体流从单播传输切换到组播传输, 若是, 则提高向所述 用户终端发送媒体流的单播传输速率, 当所述单播传输进程与所述媒体流的组 播传输进程一致时, 将所述媒体流通过组播传输给所述用户终端, 实现了组播 业务时移后媒体流的传输方式可以从单播传输切换到组播传输式, 从而降低系 统带宽的消耗, 提高系统性能; 并且所述时移服务器还向所述用户终端发送操 作指示信息, 以便所述用户终端根据所述操作指示信息获取播放所述媒体流的 播放速率, 并根据所述播放速率播放所述媒体流, 从而实现了用户终端时移发 生后媒体流的正常播放。 附图说明  After the user equipment is used, after the user terminal moves the video service, the user terminal sends a time shift play request to the time shift server, and the time shift server determines whether the time shift request play message is corresponding. The media stream is switched from the unicast transmission to the multicast transmission, and if so, the unicast transmission rate of the media stream is sent to the user terminal, when the unicast transmission process is consistent with the multicast transmission process of the media stream, The media stream is transmitted to the user terminal through multicast, and the transmission mode of the media stream after the time shift of the multicast service can be switched from unicast transmission to multicast transmission, thereby reducing system bandwidth consumption and improving system performance. And the time shifting server further sends operation indication information to the user terminal, so that the user terminal acquires a play rate of playing the media stream according to the operation indication information, and plays the media stream according to the play rate. Therefore, the normal play of the media stream after the time shift of the user terminal occurs is realized. DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实施 例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述 中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付 出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图 1为本发明实施例 1中服务器侧网络时移处理的方法流程图;  1 is a flowchart of a method for time-shift processing of a server-side network in Embodiment 1 of the present invention;
图 2为本发明实施例 1中用户终端侧网络时移处理的方法流程图; 图 3为本发明实施例 2中暂停时移的网络时移处理的操作流程图; 图 4为本发明实施例 3中快进或快退时移的网络时移处理的操作流程图; 图 5为本发明实施例 4中暂停时移的网络时移处理的操作流程图; 图 6为本发明实施例 4中快进或快退时移的网络时移处理的操作流程图; 图 7为本发明实施例 5中一种服务器的组成框图;  2 is a flowchart of a method for time-shift processing of a network on a user terminal side according to Embodiment 1 of the present invention; FIG. 3 is a flowchart of operations for time-shifting a network for time-shifted in a second embodiment of the present invention; FIG. 3 is a flow chart of the operation of the network time shift processing of the fast forward or fast reverse time shift; FIG. 5 is a flow chart showing the operation of the network time shift processing of the pause time shift in the fourth embodiment of the present invention; FIG. 6 is the fourth embodiment of the present invention; FIG. 7 is a block diagram showing the composition of a server in a fast forward or fast reverse time shift; FIG.
图 8为本发明实施例 5中另一种服务器的組成框图;  8 is a block diagram showing the composition of another server in Embodiment 5 of the present invention;
图 9为本发明实施例 5中一种用户终端的组成框图; 图 10为本发明实施例 5中另一种用户终端的组成框图; 9 is a block diagram showing the composition of a user terminal according to Embodiment 5 of the present invention; 10 is a block diagram showing the composition of another user terminal according to Embodiment 5 of the present invention;
图 11为本发明实施例 5中网络时移处理的系统组成框图。 具体实施方式  Figure 11 is a block diagram showing the system composition of network time shift processing in Embodiment 5 of the present invention. detailed description
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是 全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作出创造 性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。  BRIEF DESCRIPTION OF THE DRAWINGS The technical solutions in the embodiments of the present invention will be described in detail with reference to the accompanying drawings. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative work are within the scope of the present invention.
实施例 1  Example 1
本发明实施例提供一种网络时移的处理方法, 如图 1所示, 该方法包括: The embodiment of the invention provides a processing method for network time shifting. As shown in FIG. 1, the method includes:
101、 接收用户终端发送的时移播放请求消息, 所述时移播放请求消息中包 含用户终端时移发生时要求播放媒体流的时间和 /或位置信息。 101. Receive a time shift play request message sent by the user terminal, where the time shift play request message includes time and/or location information required to play the media stream when the user terminal time shift occurs.
所述时移发生时要求播放媒体流的时间和 /或位置信息, 在暂停情况下为暂 停结束后请求播放的媒体流的时间和 /或位置,在快进 /快退情况下为快进或快 退结束后请求播放的媒体流的时间和 /或位置; 所述时移发生时要求播放媒体流 的时间和 /或位置信息可以为但不局限于时移发生时所述用户终端所要求的媒 体流正常播放的媒体时间(媒体时间包括媒体流播放的相对时间或者绝对时间 等)和 /或媒体位置, 或者媒体帧位置信息, 或者请求接收的媒体流的时间或请 求接收的媒体流的位置, 或者请求接收的媒体流的序列号, 该序列号可以为 RTP ( Rea l -t ime Transpor t Prot oco l , 实时传送协议 ) 序歹' J号, TCP ( Transmi s s ion Cont rol Protocol , 传输控制协议)序列号, MPEG2- TS ( MPEG2 Transpor t S t ream , MPEG2传输流协议)序歹' J号, HTTP ( HyperText Transfer Protocol , 超文本传输协议)序列号, 或者其它能确定媒体流位置的信息等等。  The time and/or location information of the media stream is required to be played when the time shift occurs, and the time and/or location of the media stream requested to be played after the pause is ended in the pause state, or fast forward or fast forward in the fast forward/rewind mode The time and/or location of the media stream requested to be played after the rewinding ends; the time and/or location information required to play the media stream when the time shift occurs may be, but is not limited to, required by the user terminal when the time shift occurs Media time during which media stream is normally played (media time includes relative time or absolute time of media stream playback) and/or media location, or media frame location information, or time of requesting received media stream or location of media stream requesting reception , or the serial number of the media stream that is requested to be received, the serial number may be RTP (Rea l -t ime Transpor t Prot oco l , real-time transport protocol), the serial number 'J number, TCP (Transmi ss ion Cont rol Protocol, transmission control) Protocol) serial number, MPEG2-TS (MPEG2 Transpor t S ream, MPEG2 Transport Stream Protocol) serial number 'J number, HTTP (HyperText Transfer Protocol, Text Transfer Protocol) sequence number or other media stream can be determined the position information and the like.
进一步, 当所述正常播放的位置信息为序列号时, 则要求从这个序列号开 始的媒体流必须能够能独立解复用和独立解码, 如果从这个序列号开始的媒体 流不能独立解复用和独立解码, 也应当满足当与所述用户终端存储空间中以前 接收的媒体流合并在一起后, 能够解复用和解码。 例如, 对于一个视频媒体流 (I 1B2B3P4B5B6P7B8B9P10B11B12P13B12B15)而言, 如果视频终端没有从 I I帧的 头部的报文开始接收, 则从 I I帧的某个部位报文开始一直到 B15帧报文, 视频 终端则不能正常解码。 也就是说, 若所述用户终端向所述服务器上报的正常播 放的位置信息是媒体序列号信息, 且是从 I I帧的某个部位报文开始一直到 B15 帧报文中间的任何一个报文序列号, 则视频终端必须保证有从 11帧的头部的报 文, 或者视频緩沖区中有已经解码的参考帧, 从而能够顺利解码。 Further, when the position information of the normal play is a serial number, the media stream starting from the serial number must be capable of being independently demultiplexed and independently decoded, if the media stream starting from the serial number cannot be independently demultiplexed. And independent decoding, should also be able to be demultiplexed and decoded when combined with previously received media streams in the user terminal's storage space. For example, for a video media stream (I 1B2B3P4B5P10B11B12P13B12B15), if the video terminal does not receive the message from the header of the II frame, then from a certain part of the message of the II frame to the B15 frame message, the video The terminal cannot decode properly. That is, if the location information normally broadcasted by the user terminal to the server is the media serial number information, and is any packet from the beginning of a certain part of the II frame to the middle of the B15 frame message. For the serial number, the video terminal must ensure that there is a message from the head of the 11 frames, or there is a reference frame that has been decoded in the video buffer, so that the decoding can be smoothly performed.
102、 根据所述用户终端时移发生时要求播放媒体流的时间和 /或位置信息, 确定是否将所述时移请求播放消息对应的媒体流从单播传输切换到组播传输; 若确定将所述媒体流从单播传输切换到组播传输, 则执行步骤 103, 否则通过单 播向用户终端发送其所请求的媒体流。  102. Determine, according to the time and/or location information of the media stream that is required to play the time when the user terminal moves, to determine whether to switch the media stream corresponding to the time shift request broadcast message from unicast transmission to multicast transmission; If the media stream is switched from unicast transmission to multicast transmission, step 103 is performed, otherwise the requested media stream is sent to the user terminal by unicast.
其中, 当服务器收到所述时移发生时需要播放媒体流的时间和 /或位置信息 时, 根据这个信息决定是否需要在时移后将媒体流从单播传输切换回组播传输, 也就是说如果用户终端请求的时移范围在服务器配置的从单播切换回组播的时 移范围内, 则通知用户从单播切换回组播, 否则时移后都用单播方式传输媒体 流。 通常情况下, 如果用户终端请求的时移较短, 需要从单播切换回组播, 这 样可以节省带宽; 如果用户终端请求的时移很长, 在这种情况下, 由单播方式 追赶上组播方式就需要很长时间, 则无需从单播方式切换回组播。  When the server receives the time and/or location information of the media stream when the time shift occurs, it is determined according to the information whether the media stream needs to be switched from the unicast transmission to the multicast transmission after the time shift, that is, It is said that if the time shift range requested by the user terminal is within the time shift range of the server configured to switch from unicast back to multicast, the user is notified to switch back to multicast from unicast, otherwise the media stream is transmitted in unicast mode after time shift. Generally, if the time shift requested by the user terminal is short, it is necessary to switch back to multicast from unicast, which can save bandwidth; if the time shift requested by the user terminal is long, in this case, catch up by unicast. The multicast mode takes a long time, so there is no need to switch back to multicast from unicast mode.
103、 提高向所述用户终端发送媒体流的单播传输速率, 使发送媒体流的单 播传输速率大于在没有发生时移前的组播传输速率, 并根据所述用户终端发送 的时移播放请求消息,向所述用户终端发送时移播放响应消息, 所述响应消息中 包括操作指示信息。  103. The unicast transmission rate of the media stream is sent to the user terminal, so that the unicast transmission rate of the sending media stream is greater than the multicast transmission rate before the time shift occurs, and is played according to the time shift sent by the user terminal. The request message sends a time shift play response message to the user terminal, where the response message includes operation indication information.
如果用户终端请求的时移范围满足从单播切换到组播, 所述操作指示信息包 括所述用户终端播放媒体流的播放信息和 /或服务器通过单播传输所述媒体流 的传输信息, 其中所述播放信息中包括终端播放媒体流的播放速率, 所述传输 信息中包括单播传输所述媒体流的传输速率。 单播传输所述媒体流的传输速率 取决于时移服务器的性能, 网络状态以及用户终端的时移緩冲区大小, 剩余緩 沖区大小, 以及需要加速播放的信息。 例如剩余緩沖区比较大, 则可以立刻釆 用加速发送媒体流, 且发送速度可以较大; 若剩余緩沖区比较小, 则先较小的 提高发送媒体流的速率, 以免接收的媒体流因超出时移緩沖区而丟失; 等到所 述用户终端加速播放消耗掉一定媒体流后, 使所述用户终端时移緩沖区比较大 后, 再较大的提高发送所述媒体流的速率。 If the time shift range requested by the user terminal is sufficient to switch from unicast to multicast, the operation indication information includes: the user terminal plays the play information of the media stream and/or the server transmits the transmission information of the media stream by using unicast, where The playback information includes a playback rate of the media stream played by the terminal, where the transmission information includes a transmission rate of the media stream by unicast transmission. The transmission rate of the unicast transmission of the media stream depends on the performance of the time shifting server, the network state and the time shift buffer size of the user terminal, the remaining buffer size, and the information that needs to be accelerated. For example, if the remaining buffer is relatively large, the accelerated transmission of the media stream can be used immediately, and the transmission speed can be large. If the remaining buffer is small, the rate of the transmitted media stream is increased to avoid receiving the media stream. Time-lapse buffer is lost; wait until the user terminal accelerates playback and consumes a certain media stream, so that the user terminal has a large time-shift buffer After that, the rate at which the media stream is sent is further increased.
104、 将所述媒体流通过单播传输给所述用户终端。  104. The media stream is transmitted to the user terminal by using unicast.
105、 当所述单播传输进程与所述媒体流的组播传输进程一致时, 将所述媒 体流通过组播传输给所述用户终端。  105. When the unicast transmission process is consistent with the multicast transmission process of the media stream, the media stream is transmitted to the user terminal by multicast.
本发明实施例还提供一种网络时移的处理方法, 如图 2所示, 该方法包括: The embodiment of the invention further provides a processing method for network time shifting. As shown in FIG. 2, the method includes:
201、 用户终端接收时移服务器发送的时移播放响应消息, 所述响应消息中 包括操作指示信息。 201. The user terminal receives a time shift play response message sent by the time shift server, where the response message includes operation indication information.
其中, 所述操作指示信息包括: 所述终端播放媒体流的播放信息和 /或服务 器通过单播传输所述媒体流的传输信息, 其中所述播放信息中包括终端播放媒 体流的播放速率, 所述传输信息中包括单播传输所述媒体流的传输速率。  The operation indication information includes: the terminal playing the playback information of the media stream and/or the transmission information of the media stream by the server by using the unicast, wherein the playback information includes a playback rate of the media stream played by the terminal, where The transmission information includes a transmission rate of the unicast transmission of the media stream.
202、 所述用户终端根据所述操作指示信息获取播放所述媒体流的播放速 率。  202. The user terminal acquires a play rate of playing the media stream according to the operation indication information.
203、 按照所述播放速率播放所述媒体流。  203. Play the media stream according to the play rate.
本发明实施例中, 当用户终端在观看视频业务发生时移后, 所述用户终端 向时移服务器发送时移播放移请求, 所述示意服务器确定是否将所述时移请求 播放消息对的应媒体流从单播传输切换到组播传输, 若是, 则提高向所述用户 终端发送媒体流的单播传输速率, 当所述单播传输进程与所述媒体流的组播传 输进程一致时, 将所述媒体流通过组播传输给所述用户终端, 实现了组播业务 时移后可以从单播传输方式切换到组播传输方式, 从而降低系统带宽的消耗, 提高系统性能; 并且所述时移服务器还向所述用户终端发送操作指示信息, 所 述用户终端根据所述操作指示信息获取播放所述媒体流的播放速率, 并根据所 述播放速率播放所述媒体流, 从而实现了用户终端时移发生后媒体流的正常播 放。  In the embodiment of the present invention, when the user terminal moves after watching the video service occurs, the user terminal sends a time shift play request to the time shift server, and the schematic server determines whether the time shift request message pair should be played. The media stream is switched from the unicast transmission to the multicast transmission, and if so, the unicast transmission rate of the media stream is sent to the user terminal, when the unicast transmission process is consistent with the multicast transmission process of the media stream, Transmitting the media stream to the user terminal by multicast, and realizing that the multicast service can be switched from the unicast transmission mode to the multicast transmission mode after time shifting, thereby reducing system bandwidth consumption and improving system performance; The time shifting server further sends the operation indication information to the user terminal, and the user terminal acquires the playing rate of the media stream according to the operation indication information, and plays the media stream according to the playing rate, thereby realizing the user. Normal playback of the media stream after the terminal time shift occurs.
实施例 2  Example 2
本发明实施例提供一种网络时移的处理方法, 本发明实施例以用户在观看 组播视频业务时, 由于暂停而引起的时移为例, 具体阐述网络时移的处理方法, 如图 3所示, 该方法包括:  The embodiment of the invention provides a processing method for network time shifting. In the embodiment of the present invention, when the user watches the multicast video service, the time shift caused by the pause is taken as an example, and the processing method of the network time shift is specifically illustrated, as shown in FIG. 3 . As shown, the method includes:
301、 用户终端向服务器发送暂停请求消息, 所述暂停请求消息中包含暂停 时的时间和 /或位置信息。 所述暂停请求消息可以为但不局限于 PATS- R ( Pause Time Shi f ted Reques t , 时移暂停请求)。 301. The user terminal sends a pause request message to the server, where the pause request message includes a pause. Time and/or location information. The pause request message may be, but not limited to, PATS-R (Pause Time Shifted Reques t).
其中, 若用户终端暂停时间较短, 也就是说暂停不久就立刻请求播放, 用 户终端可以选择不发送暂停请求消息, 直接跳过步骤 301和步骤 302 , 进入步骤 303发送暂停后时移播放请求消息, 本发明实施例对此不进行限制。  If the user terminal pauses for a short time, that is, immediately requests to play immediately after the pause, the user terminal may choose not to send the pause request message, directly skip step 301 and step 302, and proceed to step 303 to send the paused time-shifted play request message. The embodiment of the present invention does not limit this.
其中, 所述暂停时的时间或位置信息可以为但不局限于时移发生时所述用 户终端暂停时的媒体播放时间或媒体播放位置, 或者所述用户终端接收媒体流 的时间或接收媒体流的位置, 或者所述用户终端接收媒体流的序列号。  The time or location information at the time of the pause may be, but not limited to, the media play time or the media play position when the user terminal is paused when the time shift occurs, or the time when the user terminal receives the media stream or the received media stream. Or the user terminal receives the serial number of the media stream.
302、 所述时移服务器响应所述用户终端发送的暂停请求消息, 向所述用户 终端发送暂停响应消息, 所述响应消息中包含时移响应是否成功的指示信息。 其中, 时移响应失败的原因通常有: 时移服务器忙, 无法响应所述暂停请求, 或者所述时移服务器中没有时移媒体流等等。  302. The time shift server sends a pause response message to the user terminal in response to the pause request message sent by the user terminal, where the response message includes indication information indicating whether the time shift response is successful. The reason why the time shift response fails is that the time shift server is busy, cannot respond to the pause request, or there is no time shift media stream in the time shift server, and the like.
303、 当所述用户终端接收到的所述响应消息中位时移响应成功时, 所述用 户终端向所述时移服务器发送时移播放请求消息, 所述时移播放请求消息中包 含用户终端暂停时移发生时需要播放媒体流的时间和 /或位置信息、 以及时移緩 冲区大小和 /或剩余緩冲区大小; 其中, 所述时移緩沖区大小可表示为所述用户 终端在本次时移过程中暂存媒体流的存储空间的大小, 所述剩余緩冲区大小可 表示为所述用户终端在本次时移过程中还可以暂存所述媒体流的存储空间的大 小。 所述时移播放请求消息可以为但不局限于 PLMS-R ( P l ay Time Shi f ted Reques t, 时移播放请求)。  303. When the time shift response of the response message received by the user terminal is successful, the user terminal sends a time shift play request message to the time shift server, where the time shift play request message includes the user terminal. The time and/or location information of the media stream to be played when the time shift occurs, and the time shift buffer size and/or the remaining buffer size; wherein the time shift buffer size may be represented as the user terminal The size of the storage space of the media stream is temporarily stored in the time shifting process, and the remaining buffer size may be expressed as the size of the storage space in which the user terminal may temporarily store the media stream during the current time shifting process. . The time shift play request message may be, but not limited to, a PLMS-R (P l ay Time Shifted Reques t).
其中, 所述时移发生时需要正常播放媒体的时间和 /或位置信息, 可以为实 施例 1中的时间和 /或位置信息。 当所述时移发生时需要正常播放媒体的时间和 /或位置信息为请求接收的媒体流的序列号时, 该序列号为緩沖区中的最后一个 媒体流的序列号, 因为信令延迟的缘故, 无论是单播暂停还是离开组播组, 缓 沖区都会继续接收一些媒体报文。  The time and/or location information of the media to be played normally when the time shift occurs may be the time and/or location information in Embodiment 1. When the time and/or location information of the media to be normally played when the time shift occurs is the sequence number of the media stream requested to be received, the sequence number is the serial number of the last media stream in the buffer, because the signaling is delayed. For this reason, the buffer will continue to receive some media messages, whether it is unicast pause or leave the multicast group.
与实施例 1 类似, 当所述正常播放的位置信息为序列号时, 则要求从这个 序列号开始的媒体流必须能够能独立解复用和独立解码, 如果从这个序列号开 始的媒体流不能独立解复用和独立解码, 也应当满足当与所述用户终端存储空 间中以前接收的媒体流合并在一起后, 能够解复用和解码。 采用序列号能够保 证用户终端在暂停时保存的媒体流和服务器将要发送的媒体流之间能够实现无 缝隙衔接, 服务器不会多发也不会少发时移媒体流。 Similar to Embodiment 1, when the position information of the normal play is a serial number, it is required that the media stream starting from the serial number must be capable of being independently demultiplexed and independently decoded, if the media stream starting from the serial number cannot Independent demultiplexing and independent decoding should also be satisfied when storing empty with the user terminal The previously received media streams in the middle are combined and demultiplexed and decoded. The serial number can ensure that the user terminal can seamlessly connect between the media stream saved during the pause and the media stream that the server will send, and the server does not send more or less time-shifting media streams.
304、 所述时移服务器根据用户终端发送的时移播放请求消息, 向所述用户 终端发送时移播放响应消息, 所述响应消息中包括操作指示信息。  The time shifting server sends a time shift play response message to the user terminal according to the time shift play request message sent by the user terminal, where the response message includes operation indication information.
其中, 所述响应消息中还包括所述用户终端的时移播放请求是否成功的指示 信息, 所述用户终端时移播放请求失败的原因不局限于以下原因: 所述用户终 端时移的时间超过所述时移服务器的时移范围, 或者所述时移服务器忙不能响 应所述用户终端的时移播放请求, 或者所述时移服务器中没有时移媒体流等等。  The response message further includes indication information about whether the time shift play request of the user terminal is successful, and the reason why the time delay play request of the user terminal fails is not limited to the following reasons: The time shift range of the time shift server, or the time shift server is busy unable to respond to the time shift play request of the user terminal, or there is no time shift media stream in the time shift server, and the like.
其中, 操作指示信息包括所述终端播放媒体流的播放信息和 /或服务器通过 单播传输所述媒体流的传输信息, 其中所述播放信息中包括终端播放媒体流的 播放速率, 所述播放速率包括正常播放信息(如 V0D业务的时移情况, 不会从单 播切换到组播; 长时间暂停情况, 不会从单播切换到组播)或加速播放信息(如 The operation indication information includes the playback information of the media stream played by the terminal and/or the transmission information of the media stream by the server by unicast, wherein the playback information includes a playback rate of the media stream played by the terminal, and the playback rate. Including normal playback information (such as the time shift of V0D service, will not switch from unicast to multicast; long pause, will not switch from unicast to multicast) or speed up playback of information (such as
BTV业务而且需要从单播切换回组播) , 对于加速播放进一步包括需要加速的帧 数目或者需要加速的时间; 所述传输信息包括当前发送速率, 加速发送速率或 加速发送时间等, 所述加速发送速率由所述服务器根据所述用户终端时移发生 时的位置信息、 正常播放的位置信息、 时移緩沖区的大小和剩余緩沖区的大小 确定, 加速发送是为了追赶组播, 以便由单播进程切换到组播进程; 所述传输 信息还包括丢帧的信息, 加入组播组的时间和 /或单播持续的时间等。 The BTV service also needs to switch back to multicast from unicast. For accelerated playback, the number of frames that need to be accelerated or the time that needs to be accelerated is further included; the transmission information includes a current transmission rate, an accelerated transmission rate, or an accelerated transmission time, etc., the acceleration The sending rate is determined by the server according to the location information when the user terminal time shift occurs, the position information of the normal playing, the size of the time shift buffer, and the size of the remaining buffer, and the acceleration is sent to catch up with the multicast, so as to be The broadcast process is switched to the multicast process; the transmission information further includes information about frame dropping, time of joining the multicast group, and/or duration of unicast.
其中, 加速播放信息包括媒体流加速播放的方式, 其中所述媒体流加速播放 的方式包括: 视频快进的方式或者隐藏视频帧的方式; 其中所述用户终端以视 频快进的方式加速播放媒体流, 具体如下:  The method for speeding up playback of the media stream includes a method for speeding up the playback of the media stream, where the method for speeding up the playback of the media stream includes: a method of fast forward video or a method of hiding a video frame; wherein the user terminal accelerates playing media by fast forward video. The flow is as follows:
视频快进的方式播放是指比正常播放速度快的播放, 即每秒帧速率加快。 例 如, 如果正常是 1倍速率播放, 快进播放时采用 1. X倍速度播放。 例如, 若视频 的每秒帧速率是 FPS = 30, 总共有 3300个视频帧 ( 3300/ 30=1 10秒) 需要播放, 快进播放的帧速率要大于 30, 例如播放的帧速率是 33 (这时快进播放为正常播 放的 33/ 30=1. 1倍), 则实际播放时间为 3300/ 33=1 00秒, 比正常加快了 110 _ 100 其中所述用户终端以隐藏视频帧的方式加速播放媒体流, 具体如下: 隐藏视 频帧的方式播放是指连续播放一些视频帧后跳过紧跟的下一个要播放的视频 帧, 直接播放下一个视频帧, 每秒帧速率不变。 例如, 如果视频每秒帧速率是Video fast-forward playback refers to playback that is faster than normal playback, that is, the frame rate per second is faster. For example, if the normal playback is 1x speed, fast forward playback is played at 1. X speed. For example, if the frame rate per second of the video is FPS = 30, a total of 3300 video frames (3300/ 30=1 10 seconds) need to be played, and the frame rate of fast forward playback is greater than 30, for example, the frame rate of playback is 33 ( At this time, fast forward playback is 33/ 30=1. 1 times of normal playback, then the actual playback time is 3300/ 33=1 00 seconds, which is 110 _ 100 faster than normal. The user terminal accelerates the playing of the media stream by hiding the video frame, as follows: The method of hiding the video frame refers to skipping the next video frame to be played immediately after playing some video frames, and directly playing the next video frame. Video frame, the frame rate per second is unchanged. For example, if the video frame rate per second is
FPS = 30 , 总共有 3000个视频帧 ( 3000/30=100秒时间) , 若每 30帧隐藏 3帧, 实 际播放的帧速率还是 30, 不过只播放了 3000 - 3*3000/30=2700帧, 总的播放时 间是 90秒, 比正常加快了 100 - 90 = 10秒) 。 FPS = 30, there are a total of 3000 video frames (3000/30=100 seconds). If you hide 3 frames every 30 frames, the actual playback frame rate is still 30, but only 3000 - 3*3000/30=2700 frames are played. The total playing time is 90 seconds, which is 100 - 90 = 10 seconds faster than normal.
若采用隐藏视频帧的方式播放, 如果视频流中包含非参考帧 (如 B帧) , 由 于终端需要隐藏一些视频帧, 则服务器可以选择不发送需要隐藏的视频帧, 这 样就可以较少网络发送的流量, 降低发送媒体流需要的带宽。  If the video stream contains non-reference frames (such as B frames), because the terminal needs to hide some video frames, the server may choose not to send video frames that need to be hidden, so that less network transmission can be performed. Traffic, reducing the bandwidth required to send media streams.
进一步, 媒体流的传输速率取决于时移緩冲区大小, 剩余緩冲区大小, 以及 加速播放的速率, 若剩余緩冲区比较大, 则立刻釆用加速发送, 若剩余緩沖区 比较小, 则较小的提高发送媒体流的速率, 以免接收的媒体流因超出时移緩沖 区而丟失; 等到所述用户终端加速播放消耗掉一定媒体流后, 使所述用户终端 时移緩冲区比较大后, 再较大的提高发送所述媒体流的速率。  Further, the transmission rate of the media stream depends on the time shift buffer size, the remaining buffer size, and the rate of accelerated playback. If the remaining buffer is relatively large, the accelerated transmission is immediately used. If the remaining buffer is small, The rate of sending the media stream is increased to prevent the received media stream from being lost due to exceeding the time shift buffer; and after the user terminal accelerates playback and consumes a certain media stream, the user terminal is compared with the time shift buffer. After the big time, the rate of sending the media stream is further increased.
305、 当所述时移服务器成功响应时移播放请求时, 将所述时移播放请求消 息对应的媒体流通过单播传输给所述用户终端; 并执行步骤 306。  305. When the time shift server successfully responds to the time shift play request, the media stream corresponding to the time shift play request message is transmitted to the user terminal by unicast; and step 306 is performed.
306、 所述用户终端接收所述时移服务器发送的时移播放响应消息, 所述响 应消息中包括操作指示信息, 并根据所述操作指示信息获取播放所述媒体流的 播放速率, 并根据所述媒体流的播放速率播放所述媒体流; 当所述单播传输进 程与所述媒体流的组播传输进程一致时, 执行步骤 307。  306. The user terminal receives a time shift play response message sent by the time shift server, where the response message includes operation indication information, and acquires a play rate of playing the media stream according to the operation instruction information, and according to the The playback rate of the media stream is used to play the media stream. When the unicast transmission process is consistent with the multicast transmission process of the media stream, step 307 is performed.
当所述操作指示信息中仅包含单播传输所述媒体流的传输速率时, 所述根 据所述操作指示信息获取所述用户终端播放媒体流的播放速率包括: 根据所述 用户终端緩沖区的大小和剩余緩沖区的大小以及所述单播传输所述媒体流的传 输速率, 确定播放所述媒体流的播放速率。  When the operation indication information includes the unicast transmission rate of the media stream, the acquiring the playback rate of the media stream by the user terminal according to the operation indication information includes: according to the user terminal buffer The size and the size of the remaining buffer and the transmission rate of the media stream by the unicast transmission determine the playback rate of the media stream to be played.
307、 所述用户终端加入组播组之后, 所述时移服务器将所述时移播放请求 消息对应的媒体流从单播传输切换到组播传输, 并将所述媒体流通过组播传输 给所述用户终端。  307. After the user terminal joins the multicast group, the time shift server switches the media stream corresponding to the time shift play request message from unicast transmission to multicast transmission, and transmits the media stream to the multicast transmission. The user terminal.
进一步, 在用户终端加入组播组之前, 务器可以通知用户加入组播组去 获取组播流; 也可以由用户终端自行获得加入组播组的时间, 去加入組播组获 取组播流, 本发明实施例对此不进行限制。 Further, before the user terminal joins the multicast group, the server can notify the user to join the multicast group. The multicast stream is obtained by the user terminal. The user terminal can obtain the time of joining the multicast group and join the multicast group to obtain the multicast stream.
以上消息可以通过现有的或扩展的 RTCP消息或 RTSP消息或 RTP消息来实现, 也可以通过其它消息来实现, 本发明实施例对此不进行限制。 本发明实施例中, 当用户终端在观看视频业务发生暂停时移后, 所述用户 终端向时移服务器发送时移播放请求, 所述时移服务器确定是否将所述时移请 求播放消息对应的媒体流从单播传输切换到组播传输, 若是, 则提高向所述用 户终端发送媒体流的单播传输速率, 使得通过单播传输一定时间后单播传输进 程能够与所述媒体流的组播传输进程一致, 当所述单播传输进程与所述媒体流 的组播传输进程一致时, 将所述时移请求消息对应的媒体流切换到组播传输给 所述用户终端, 从而降低系统带宽的消耗, 提高系统性能; 并且所述时移服务 器还向所述用户终端发送操作指示信息, 以便所述用户终端根据所述操作指示 信息获取播放所述媒体流的播放速率, 并根据所述播放速率播放所述媒体流, 从而实现了用户终端时移发生后媒体流的正常播放。  The foregoing message may be implemented by using an existing or extended RTCP message or an RTSP message or an RTP message, or may be implemented by other messages, which is not limited by the embodiment of the present invention. In the embodiment of the present invention, when the user terminal moves after watching the video service pause, the user terminal sends a time shift play request to the time shift server, and the time shift server determines whether the time shift request play message is corresponding. The media stream is switched from the unicast transmission to the multicast transmission, and if so, the unicast transmission rate of the media stream is sent to the user terminal, so that the unicast transmission process can be associated with the media stream group after being transmitted for a certain time by unicast. The broadcast transmission process is consistent. When the unicast transmission process is consistent with the multicast transmission process of the media stream, the media stream corresponding to the time shift request message is switched to multicast transmission to the user terminal, thereby reducing the system. The consumption of the bandwidth is increased, and the system is configured to send the operation indication information to the user terminal, so that the user terminal acquires the playback rate of the media stream according to the operation indication information, and according to the Playing the media stream at a playback rate, thereby realizing normal playback of the media stream after the time shift of the user terminal occurs .
实施例 3  Example 3
本发明实施例提供一种网絡时移的处理方法, 本发明实施例以用户在观看 组播视频业务电视时, 由于快进或快退操作, 引起从组播到单播的时移为例, 具体阐述网络时移的处理方法, 如图 4所示, 该方法包括:  An embodiment of the present invention provides a method for processing a network time shift. In the embodiment of the present invention, when a user watches a multicast video service television, a time shift from multicast to unicast is caused by a fast forward or fast reverse operation. Specifically, the processing method of the network time shift is illustrated. As shown in FIG. 4, the method includes:
401、 用户终端向时移服务器发送快进(fas t forward )或者快退(rewind ) 播放请求。  401. The user terminal sends a fast forward (fas t forward) or a fast rewind (rewind) play request to the time shift server.
402、 所述时移服务器接收所述用户终端发送的快进或者快退播放请求, 并 通过单播将所述快进或者快退播放请求对应的媒体流传输给所述用户终端。  The time shifting server receives the fast forward or fast reverse play request sent by the user terminal, and transmits the media stream corresponding to the fast forward or fast reverse play request to the user terminal by using unicast.
403、 当所述媒体流快进或快退到用户需要的位置后, 所述用户终端向所述 时移服务器发送时移播放请求消息, 所述时移播放请求消息中包含所述用户终 端快进或者快退时移发生时需要正常播放媒体流的时间和 /或位置信息, 以及时 移緩冲区大小和 /或剩余緩沖区大小。  403. After the media stream fast forwards or rewinds to a location that is required by the user, the user terminal sends a time shift play request message to the time shift server, where the time shift play request message includes the user terminal fast. The time and/or location information of the media stream to be played normally when entering or rewinding, and the time shift buffer size and/or the remaining buffer size.
其中, 所述快进 /快退时移发生时需要正常播放媒体流的时间或位置信息, 可以采用实施例 1中的时间或位置信息。。 进一步,所述需要正常播放的时间或位置信息应该是一个视频 GoP( Group of Pi cture , 画 面组 ) 的起始位置。 例如, 对于一个视频媒体流 GOP (I 1 B2B 3P4B5B6P7B8B9P 1 0B1 1B12P 1 3 B14B15)来说,应该是 I I帧的起始位置。 如果视频终端没有从 I I 帧的头部的报文开始接收, 则从 I I 帧的某个部位报文 开始一直到 B1 5 帧报文, 视频终端则不能正常解码。 当所述正常播放的位置信 息为序列号时, 则要求从这个序列号开始的媒体流必须能够能独立解复用和独 立解码, 如果从这个序列号开始的媒体流不能独立解复用和独立解码, 也应当 满足当与所述用户终端存储空间中以前接收的媒体流合并在一起后, 能够解复 用和解码。 也就是说, 若所述用户终端向所述服务器上报的正常播放的位置信 息是媒体序列号信息, 且是从 I I帧的某个部位报文开始一直到 B15帧报文中间 的任何一个报文序列号, 则视频终端必须保证有从 I I帧的头部的报文, 或者视 频緩冲区中有已经解码的参考帧, 从而能够顺利解码。 The time or location information of the normal playing media stream is required when the fast forward/reverse time shift occurs, and the time or location information in Embodiment 1 may be used. . Further, the time or location information that needs to be played normally should be the starting position of a video GoP (Group of Picture). For example, for a video media stream GOP (I 1 B2B 3P4B5B6P7B8B9P 1 0B1 1B12P 1 3 B14B15), it should be the starting position of the II frame. If the video terminal does not receive the message from the header of the II frame, the video terminal cannot decode normally from the beginning of the message of a certain part of the II frame to the B1 5 frame message. When the position information of the normal play is a serial number, it is required that the media stream starting from the serial number must be capable of independent demultiplexing and independent decoding, if the media stream starting from the serial number cannot be independently demultiplexed and independent. The decoding should also be able to be demultiplexed and decoded when combined with previously received media streams in the user terminal's storage space. That is, if the normal broadcast location information reported by the user terminal to the server is the media serial number information, and is any packet from the beginning of a certain part of the II frame to the middle of the B15 frame message. For the serial number, the video terminal must ensure that there is a message from the head of the II frame, or there is a reference frame that has been decoded in the video buffer, so that the decoding can be smoothly performed.
404、 所述时移服务器根据所述用户终端发送的时移播放请求消息, 所述用 户终端发送时移播放响应消息, 所述响应消息中包括操作指示信息。  404. The time shift server sends a time shift play response message according to the time shift play request message sent by the user terminal, where the response message includes operation indication information.
所述用户终端时移播放请求失败的原因不局限于以下原因: 所述用户终端时 移的时间超过所述时移服务器的时移范围, 或者所述时移服务器忙不能响应所 述用户终端的时移播放请求, 或者所述时移服务器中没有时移媒体流等等。  The reason why the time-shifting play request of the user terminal fails is not limited to the following reasons: the time shift of the user terminal exceeds the time shift range of the time shift server, or the time shift server is busy unable to respond to the user terminal. Time-shift playback request, or no time-shifted media stream in the time-shifting server, and the like.
405、 当所述时移服务器成功响应所述时移播放请求时, 将所述时移播放请 求消息对应的媒体流通过单播传输给所述用户终端; 并执行步骤 406。  405. When the time shift server successfully responds to the time shift play request, the media stream corresponding to the time shift play request message is transmitted to the user terminal by unicast; and step 406 is performed.
406、 所述终端用户根据接收到的所述操作指示信息获取播放媒体流的播放 速率, 并依照所述获取的播放速率播放所述媒体流; 当所述单播传输进程与所 述媒体流的组播传输进程一致时, 执行步骤 407。  406. The terminal user acquires a play rate of the play media stream according to the received operation indication information, and plays the media stream according to the acquired play rate. When the unicast transmission process and the media stream are When the multicast transmission process is consistent, go to step 407.
其中, 操作指示信息包括所述终端播放媒体流的播放信息和 /或服务器通过 单播传输所述媒体流的传输信息。 所述播放信息中包括终端播放媒体流的播放 速率, 播放速率包括正常播放信息或加速播放信息, 对于加速播放进一步包括 需要加速的帧数目或者需要加速的时间; 加速播放信息包括以视频快进的方式 播放或者隐藏视频帧的方式播放, 具体可以参考实施例 2相应部分的内容。  The operation indication information includes the playback information of the media stream played by the terminal and/or the transmission information of the media stream by the server by unicast. The play information includes a play rate of the media stream played by the terminal, and the play rate includes normal play information or accelerated play information, and the accelerated play further includes the number of frames to be accelerated or the time required for acceleration; the accelerated play information includes fast forward by video. The mode plays or hides the video frame. For details, refer to the content of the corresponding part of Embodiment 2.
407、 所述用户终端加入组播组之后, 所述时移服务器将所述时移播放请求 消息对应的媒体流从单播传输切换到组播传输, 并将所述媒体流通过組播传输 给所述用户终端。 407. After the user terminal joins the multicast group, the time shift server sends the time shift play request. The media stream corresponding to the message is switched from unicast transmission to multicast transmission, and the media stream is transmitted to the user terminal through multicast.
进一步, 在用户终端加入組播组之前, 服务器可以通知用户加入组播組去 获取组播流; 也可以由用户终端自行获得加入组播组的时间, 去加入组播组获 取组播流, 本发明实施例对此不进行限制。  Further, before the user terminal joins the multicast group, the server may notify the user to join the multicast group to obtain the multicast stream. The user terminal may obtain the time of joining the multicast group and join the multicast group to obtain the multicast stream. The embodiment of the invention does not limit this.
以上消息可以通过现有的或扩展的 RTCP消息或 RTSP消息或 RTP消息来实现, 也可以通过其它消息来实现, 本发明实施例对此不进行限制。 本发明实施例中, 当用户终端在观看视频业务发生快进或快退时移后, 所 述用户终端向时移服务器发送时移播放请求, 所述时移服务器确定是否将所述 时移请求播放消息对应的媒体流从单播传输切换到组播传输, 若是, 则提高向 所述用户终端发送媒体流的单播传输速率, 使得通过单播传输一定时间后单播 传输进程能够与所述媒体流的组播传输进程一致, 当所述单播传输进程与所述 媒体流的组播传输进程一致时, 将所述时移请求消息对应的媒体流切换到组播 传输给所述用户终端, 从而降低系统带宽的消耗, 提高系统性能; 并且所述时 移服务器还向所述用户终端发送操作指示信息, 以便所述用户终端根据所述操 作指示信息获取播放所述媒体流的播放速率, 并根据所述播放速率播放所述媒 体流, 从而实现了用户终端时移发生后媒体流的正常播放。  The foregoing message may be implemented by using an existing or extended RTCP message or an RTSP message or an RTP message, or may be implemented by other messages, which is not limited by the embodiment of the present invention. In the embodiment of the present invention, when the user terminal moves after watching the video service fast forwards or rewinds, the user terminal sends a time shift play request to the time shift server, and the time shift server determines whether the time shift request is to be performed. The media stream corresponding to the play message is switched from the unicast transmission to the multicast transmission, and if so, the unicast transmission rate of the media stream is sent to the user terminal, so that the unicast transmission process can be performed after the unicast transmission for a certain time. The multicast transmission process of the media stream is consistent. When the unicast transmission process is consistent with the multicast transmission process of the media stream, the media stream corresponding to the time shift request message is switched to multicast transmission to the user terminal. The operating time is further reduced, and the time shifting server sends the operation indication information to the user terminal, so that the user terminal obtains the playing rate of the media stream according to the operation indication information. And playing the media stream according to the play rate, thereby realizing the media stream after the user terminal shifts time Often playing.
实施例 4  Example 4
本发明实施例提供一种网络时移的处理方法, 其中, 短时移服务器实现时 移范围短, 处理短时间的时移过程, 将实现从单播传输方式切换到组播传输方 式。 长时移服务器实现时移范围长, 处理长距离的时移时间, 通常釆用单播方 式, 不过不排除实现从单播传输方式切换到组播传输方式。 本发明实施例具体 以时移播放的时间和当前组播流的时间的间隔若超过短时移范围, 则向长时移 服务器发送时移播放请求消息, 若没有超过, 则向短时移服务器发送时移播放 请求消息为例, 具体阐述网络时移的处理方法。  The embodiment of the invention provides a processing method for network time shifting, wherein the short time shifting server realizes a short time shift range, and processes a short time shifting process to switch from a unicast transmission mode to a multicast transmission mode. The long-term shifting server implements a long time-shifting range and handles long-distance time-shifting times, usually using unicast mode, but does not rule out switching from unicast transmission mode to multicast transmission mode. The embodiment of the present invention sends a time shift play request message to the long time shift server if the time interval between the time shift play time and the current multicast stream time exceeds the short time shift range, and if not exceeded, the short time time shift server Sending a time-shifted play request message is an example, and the processing method of the network time shift is specifically explained.
一般暂停时移较短时, 所述短时移服务器能够实现媒体流从单播传输到组 播传输的切换, 因此当发生暂停时移时, 一般先向所述短时移服务器发送暂停 时移请求, 以便获取所述短时移服务器可提供服务的时移范围。 但本发明实施 例也不局限于此, 在暂停时移发生时, 所述用户终端也可以向长时移服务器发 送暂停时移请求, 本发明实施例对此不进行具体限制。 本发明实施例具体以用 户终端发送暂停时移时, 向短时移服务器发送暂停时移请求为例, 并结合图 5 具体阐述网络时移的处理方法, 该方法包括: When the timeout is short, the short time shifting server can implement the switching of the media stream from the unicast transmission to the multicast transmission. Therefore, when the pause time shift occurs, the pause time shift is generally sent to the short time shift server. Requesting to obtain a time shift range in which the short time shift server can provide services. But the invention is implemented For example, the user terminal may also send a pause time shift request to the long time shift server when the pause time shift occurs, which is not specifically limited in this embodiment of the present invention. In the embodiment of the present invention, when the user terminal sends the pause time shift, the short time shift server sends the pause time shift request as an example, and the network time shift processing method is specifically described in conjunction with FIG. 5, where the method includes:
501、 用户终端向短时移服务器发送暂停时移请求, 所述暂停时移请求携带 所述用户终端暂停时移发送时的时间和 /或位置信息。  501. The user terminal sends a pause time shift request to the short time shift server, where the pause time shift request carries time and/or location information when the user terminal pauses time shift transmission.
502、 所述短时移服务器根据所述暂停时移请求, 向所述用户终端发送暂停 时移响应消息, 所述响应消息中包括通知所述用户终端的暂停时移请求是否成 功的指示消息以及所述短时移服务器的时移时间范围。  502. The short time shifting server sends a pause time shift response message to the user terminal according to the timeout request, where the response message includes an indication message for notifying whether the time delay request of the user terminal is successful. The time shifting time range of the short time shifting server.
其中, 暂停时移响应失败的原因通常有: 时移服务器忙, 无法响应所述暂 停时移请求, 或者所述时移服务器中没有时移媒体流等等。  The reason for suspending the time shift response failure is usually: the time shift server is busy, unable to respond to the pause time shift request, or there is no time shift media stream in the time shift server, and the like.
503、 所述用户终端接收到所述短时移服务器发送的暂停时移响应消息, 在 所述指示信息指示所述暂停时移请求成功时, 则所述用户终端进一步判断暂停 时间是否在短时移范围内, 如果暂停时间在短时移范围内, 则执行步骤 503a; 如果暂停时间超过短时移范围, 则执行步骤 503b。  503. The user terminal receives a pause time shift response message sent by the short time shift server, and when the indication information indicates that the pause time shift request is successful, the user terminal further determines whether the pause time is short. Within the shift range, if the pause time is within the short time shift range, step 503a is performed; if the pause time exceeds the short time shift range, step 503b is performed.
503a、 由所述用户终端向短所述时移服务器发送时移播放请求, 并执行步 骤 504a。  503a. Send, by the user terminal, a time shift play request to the short time shift server, and execute step 504a.
503b、 由所述用户终端向长时移服务器发送时移播放请求, 并执行步骤 504b。  503b. Send, by the user terminal, a time shift play request to the long time shift server, and execute step 504b.
504a , 所述短时移服务器响应所述时移播放请求, 提高向所述用户终端发 送媒体流的单播传输速率, 并根据所述用户终端发送的时移播放倚求消息,向所 述用户终端发送时移播放响应消息, 所述响应消息中包括操作指示信息, 并执 行步骤 505。  504a, the short time shift server responds to the time shift play request, improves a unicast transmission rate of sending a media stream to the user terminal, and plays a request message according to the time shift sent by the user terminal to the user. The terminal sends a time-shift playback response message, where the response message includes operation indication information, and step 505 is performed.
其中, 所述提高向所述用户终端发送媒体流的单播传输速率可以根据用户 终端提供的信息、 服务器的性能以及网络状态决定。 其中, 所述用户终端提供 的信息包括所述用户终端时移发生时正常播放的时间和 /或位置信息, 时移緩沖 区大小, 剩余緩沖区大小等。  The improving the unicast transmission rate for sending the media stream to the user terminal may be determined according to information provided by the user terminal, performance of the server, and network status. The information provided by the user terminal includes time and/or location information, time shift buffer size, remaining buffer size, and the like, which are normally played when the user terminal moves time.
504b , 所述长时移 务器响应所述时移播放请求, 以正常速率通过单播将 所述时移播放请求消息对应的媒体流传输所述用户终端, 并指示所述用户终端 以正常的速率播放媒体流, 直到结束。 504b, the long-term server responds to the time-shifted play request, and passes the unicast at a normal rate. The media stream corresponding to the time shift play request message transmits the user terminal, and instructs the user terminal to play the media stream at a normal rate until the end.
505、 所述短时移服务器向所述用户终端单播传送所述时移播放请求消息对 应的媒体流, 并执行步骤 506。  505. The short time shifting server unicasts the media stream corresponding to the time shift play request message to the user terminal, and performs step 506.
506、 所述用户终端根据接收到所述操作指示信息获取播放所述媒体流的播 放速率, 并按照所述播放速率播放所述媒体流。 具体描述可以参考图 3 中的步 骤 306, 此处将不再贅述。 当所述单播传输进程与组播传输进程一致时, 执行步 骤 507。  506. The user terminal acquires a play rate of playing the media stream according to the received operation indication information, and plays the media stream according to the play rate. For details, refer to step 306 in Figure 3, and details are not described herein. When the unicast transmission process is consistent with the multicast transmission process, step 507 is performed.
507、 所述用户终端加入组播组, 将所述时移播放诸求消息对应的媒体流从 单播传输切换到组播传输, 通过组播将所述媒体流传输给所述用户终端。  507. The user terminal joins a multicast group, and switches the media stream corresponding to the time-shifted playback request message from a unicast transmission to a multicast transmission, and transmits the media stream to the user terminal by multicast.
本发明实施例具体以用户终端发送快进或快退时移时, 向长时移服务器发 送快进或快退时移请求为例, 并结合图 6 具体阐述网络时移处理的方法, 该方 法包括:  The embodiment of the present invention specifically sends a fast forward or fast reverse time shift request to the long time shift server when the user terminal sends the fast forward or fast reverse time shift, and the method for network time shift processing is specifically described in conjunction with FIG. 6 . Includes:
601、 用户终端向长时移服务器发送快进或快退时移请求。  601. The user terminal sends a fast forward or fast reverse time shift request to the long time shift server.
602、 所述长时移服务器通过单播将所述快进或者快退请求对应的媒体流传 输给所述用户终端。  602. The long time shift server transmits, by using a unicast, the media stream corresponding to the fast forward or fast reverse request to the user terminal.
603、 当所述媒体流快进或快退到用户需要的位置后, 所述用户终端判断所 述快进 /快退时移时间是否在短时移范围内, 如果所述快进或快退的时移时间在 所述短时移范围内,则执行步骤 603a;如果所述快进或快退的时移时间超过所述 短时移范围, 则执行步骤。  603. After the media stream fast forwards or rewinds to a location that is required by the user, the user terminal determines whether the fast forward/reverse time shift time is within a short time shift range, if the fast forward or fast backward If the time shift time is within the short time shift range, step 603a is performed; if the fast forward or fast reverse time shift time exceeds the short time shift range, the step is performed.
603a、 所述用户终端向所述长时移服务器发送终止快进或快退播放媒体流 的请求, 并向短时移服务器发送时移播放请求消息, 并执行步骤 604a。  603a. The user terminal sends a request to terminate the fast forward or fast rewind media stream to the long time shift server, and sends a time shift play request message to the short time shift server, and step 604a is performed.
603b , 所述用户终端向所述长时移服务器发送时移播放请求消息, 并执行 步骤 604b。  603b, the user terminal sends a time shift play request message to the long time shift server, and performs step 604b.
其中, 所述短时移范围为所述短时移服务器提供服务的时移范围, 在所述 用户终端向所述长时移服务器发送快进或者快退时移请求时, 所述长时移服务 器向所述短时移服务器发送通知消息, 通知所述短时移服务器向所述用户终端 发送短时移范围; 所述短时移服务器接收到所述长时移服务器的所述通知后, 向所述用户终端发送所述短时移范围, 所述用户终端获得所述短时移范围。The short time shift range is a time shift range in which the short time shift server provides a service, and the long time shift is performed when the user terminal sends a fast forward or fast reverse time shift request to the long time shift server. Sending, by the server, the notification message to the short time shifting server, and notifying the short time shifting server to send a short time shift range to the user terminal; after receiving the notification of the long time shifting server, the short time shifting server receives the notification Transmitting the short time shift range to the user terminal, and the user terminal obtains the short time shift range.
604a , 所述短时移服务器提高向所述用户终端发送媒体流的单播传输速率, 并根据所述用户终端发送的时移播放请求消息,向所述用户终端发送时移播放 响应消息, 所述响应消息中包括操作指示信息, 并执行步骤 605。 604a, the short time shifting server increases a unicast transmission rate of the media stream to the user terminal, and sends a time shift playback response message to the user terminal according to the time shift play request message sent by the user terminal. The operation response message is included in the response message, and step 605 is performed.
其中, 所述提高向所述用户终端发送媒体流的单播传输速率可以根据用户 终端提供的信息、 服务器的性能以及网络状态决定。 其中, 所述用户终端提供 的信息包括所述用户终端时移发生时正常播放的时间和 /或位置信息, 时移緩沖 区大小, 剩余緩沖区大小等。  The improving the unicast transmission rate for sending the media stream to the user terminal may be determined according to information provided by the user terminal, performance of the server, and network status. The information provided by the user terminal includes time and/or location information, time shift buffer size, remaining buffer size, and the like, which are normally played when the user terminal moves time.
604b , 所述长时移 务器响应所述时移播放请求, 以正常速率通过单播将 所述时移播放请求消息对应的媒体流传输所述用户终端, 并指示所述用户终端 以正常的速率播放媒体流, 直到结束。  604b, the long-term server responds to the time-shifted play request, and transmits the media stream corresponding to the time-shifted play request message to the user terminal by using a unicast at a normal rate, and indicates that the user terminal is normal. The media stream is played at the rate until the end.
605、 所述短时移服务器向所述用户终端单播传送所述时移播放请求消息对 应的媒体流, 并执行步骤 606。  605. The short time shifting server unicasts the media stream corresponding to the time shift play request message to the user terminal, and performs step 606.
606、 所述终端用户根据接收到所述操作指示信息获取播放所述媒体流的播 放速率, 并按照所述播放速率播放所述媒体流。 具体描述可以参考图 3 中的步 骤 306, 此处将不再赘述。 当所述单播传输进程与组播传输进程一致时, 执行步 骤 607。  606. The terminal user acquires a play rate for playing the media stream according to the received operation indication information, and plays the media stream according to the play rate. For details, refer to step 306 in Figure 3, and details are not described herein. When the unicast transmission process is consistent with the multicast transmission process, step 607 is performed.
607、 所述用户终端加入组播组, 将所述时移播放请求消息对应的媒体流从 单播传输切换到组播传输, 通过组播将所述媒体流传输给所述用户终端。  607. The user terminal joins a multicast group, and switches the media stream corresponding to the time shift play request message from unicast transmission to multicast transmission, and transmits the media stream to the user terminal by multicast.
本发明实施例中, 当用户终端在观看视频业务发生暂停或快进或快退时移 后, 所述用户终端根据时移的时间确定向长时移服务器发送时移播放请求消息, 还是向短时移服务器发送时移播放请求消息, 当确定向所述短时移服务器发送 时移播放请求消息时, 所述短时移服务器通过提供向所述用户终端发送媒体流 的速率实现所述时移播放请求消息对应的媒体流从单播传输方式切换到组播传 输方式, 从而降低系统带宽的消耗, 提高系统性能; 并且所述短时移服务器还 向所述用户终端发送操作指示信息, 以使得所述用户终端根据所述操作指示信 息获取播放时移媒体流的播放速率, 并按照所述播放速率播放所述媒体流, 从 而实现了用户终端时移发生后媒体流的正常播放。 实施例 5 In the embodiment of the present invention, after the user terminal pauses or fast forwards or rewinds while watching the video service, the user terminal determines whether to send the time shift play request message to the long time shift server according to the time shift time, or is short The time shift server sends a time shift play request message, and when it is determined that the time shift play request message is sent to the short time shift server, the short time shift server implements the time shift by providing a rate of sending the media stream to the user terminal. The media stream corresponding to the play request message is switched from the unicast transmission mode to the multicast transmission mode, thereby reducing system bandwidth consumption and improving system performance; and the short time shifting server further sends operation indication information to the user terminal, so that The user terminal acquires a play rate of the time-shifted media stream according to the operation indication information, and plays the media stream according to the play rate, thereby realizing normal play of the media stream after the time shift of the user terminal occurs. Example 5
本发明实施例提供一种时移服务器, 如图 Ί 所示, 该时移服务器包括: 接 收单元 71、 确定单元 72、 第一调整单元 73、 发送单元 74、 传输单元 75和切换 单元 76。  The embodiment of the present invention provides a time shift server. As shown in FIG. 2, the time shift server includes: a receiving unit 71, a determining unit 72, a first adjusting unit 73, a sending unit 74, a transmitting unit 75, and a switching unit 76.
接收单元 71, 用于接收用户终端发送的时移播放请求消息, 所述时移播放 请求消息中包含用户终端正常播放的时间和 /或位置信息。  The receiving unit 71 is configured to receive a time shift play request message sent by the user terminal, where the time shift play request message includes time and/or location information that the user terminal normally plays.
确定单元 72,用于根据所述用户终端时移发生时正常播放的时间和 /或位置 信息, 确定是否将所述时移请求播放消息对应的媒体流从单播传输切换到组播 传输;  The determining unit 72 is configured to determine whether to switch the media stream corresponding to the time shift request play message from unicast transmission to multicast transmission according to time and/or location information of normal play when the user terminal time shift occurs;
第一调整单元 73,用于在所述确定单元 72确定将所述媒体流从单播传输切 换到组播传输时, 提高向所述用户终端发送媒体流的单播传输速率, 以便经过 一段时间的媒体码流的传输后, 使所述单播传输进程与所述媒体流的组播传输 进程一致, 从而实现所述媒体流从单播传输切换到组播传输的切换。  The first adjusting unit 73 is configured to: when the determining unit 72 determines to switch the media stream from the unicast transmission to the multicast transmission, improve a unicast transmission rate of the media stream sent to the user terminal, so that After the transmission of the media stream, the unicast transmission process is consistent with the multicast transmission process of the media stream, thereby implementing switching of the media stream from unicast transmission to multicast transmission.
发送单元 74 , 用于才艮据所述用户终端发送的时移播放请求消息, 向所述用 户终端发送时移播放响应消息, 所述响应消息中包括操作指示信息; 其中, 所 述操作指示信息包括所述终端播放媒体流的播放信息和 /或服务器通过单播传 输所述媒体流的传输信息, 其中所述播放信息中包括终端播放媒体流的播放速 率, 所述传输信息中包括单播传输所述媒体流的传输速率。  The sending unit 74 is configured to send a time shift play response message to the user terminal according to the time shift play request message sent by the user terminal, where the response message includes operation indication information, where the operation indication information is The broadcast information including the playback media stream of the terminal and/or the transmission information of the media stream by the server by unicast, wherein the broadcast information includes a playback rate of the media stream played by the terminal, where the transmission information includes a unicast transmission. The transmission rate of the media stream.
可选的, 所述播放信息中还可以包括需要加速播放的帧数目或者需要加速 播放媒体流的时间、 指示所述用户终端加速播放媒体流的指示信息,以及加速播 放媒体流所采用的方式, 其中, 所述加速播放媒体流所采用的方式包括视频快 进的方式或者隐藏视频帧的方式。  Optionally, the playing information may further include a number of frames that need to be accelerated to be played, a time when the media stream needs to be accelerated, an indication information indicating that the user terminal accelerates playing the media stream, and a manner of speeding up playing the media stream. The manner in which the accelerated playback of the media stream is performed includes a method of fast forward video or a method of hiding a video frame.
可选的, 所述传输信息中还可以包括加速传输媒体流的时间。  Optionally, the transmitting information may further include a time for accelerating the transmission of the media stream.
传输单元 75, 用于将所述媒体流通过单播传输给所述用户终端; 切换单元 76, 用于当所述单播传输进程与所述媒体流的组播传输进程一致时, 将所述媒 体从单播传输切换到组播传输的切换, 并通过组播将所述媒体流传输给所述用 户终端。  The transmitting unit 75 is configured to transmit the media stream to the user terminal by using a unicast, and the switching unit 76 is configured to: when the unicast transmission process is consistent with the multicast transmission process of the media stream, The media switches from unicast transmission to handover of multicast transmission, and transmits the media stream to the user terminal by multicast.
进一步, 所述时移播放请求消息中还包括所述用户终端请求接收媒体流的 序列号, 用以在将所述媒体流通过单播传输给所述用户终端之前确定所述媒体 流的开始位置。 Further, the time shift play request message further includes the user terminal requesting to receive the media stream. a sequence number for determining a starting location of the media stream before transmitting the media stream to the user terminal by unicast.
进一步, 如图 8所示, 该时移服务器还包括: 第二调整单元 77, 用于当所 述时移播放请求消息中还包括所述用户终端緩沖区的大小和剩余緩沖区的大小 时, 根据所述用户终端时移緩沖区的大小和剩余緩冲区的大小, 调整向所述用 户终端发送媒体流的单播传输速率。 例如所述剩余緩冲区比较大, 则可以立刻 釆用加速发送媒体流, 且发送速度可以较大; 若剩余緩冲区比较小, 则先较小 的提高发送媒体流的速率, 以免接收的媒体流因超出时移緩沖区而丟失; 等到 所述用户终端加速播放消耗掉一定媒体流后, 使所述用户终端时移緩沖区比较 大后, 再较大的提高发送所述媒体流的速率。  Further, as shown in FIG. 8, the time shifting server further includes: a second adjusting unit 77, configured to: when the time shift play request message further includes the size of the user terminal buffer and the size of the remaining buffer, Adjusting a unicast transmission rate of the media stream to the user terminal according to the size of the time shift buffer of the user terminal and the size of the remaining buffer. For example, if the remaining buffer is relatively large, the accelerated transmission media stream can be used immediately, and the transmission speed can be large; if the remaining buffer is relatively small, the rate of the transmission media stream is increased to avoid receiving. The media stream is lost due to the time-shifting buffer; after the user terminal accelerates playback and consumes a certain media stream, the time-shift buffer of the user terminal is relatively large, and then the rate of sending the media stream is greatly increased. .
本发明实施例还提供一种用户终端, 该用户终端可以为视频终端设备, 如 图 9所示, 该终端包括: 接收单元 81、 获取单元 82和播放单元 83。  The embodiment of the present invention further provides a user terminal, which may be a video terminal device. As shown in FIG. 9, the terminal includes: a receiving unit 81, an obtaining unit 82, and a playing unit 83.
接收单元 81 , 用于接收服务器发送的时移播放响应消息, 所述响应消息中 包括操作指示信息; 所述指示信息包括所述终端播放媒体流的播放信息和 /或服 务器通过单播传输所述媒体流的传输信息, 其中所述播放信息中包括终端播放 媒体流的播放速率, 所述传输信息中包括单播传输所述媒体流的传输速率。  The receiving unit 81 is configured to receive a time shift play response message sent by the server, where the response message includes operation indication information, where the indication information includes the play information of the terminal playing the media stream, and/or the server transmits by using the unicast The transmission information of the media stream, where the playback information includes a playback rate of the media stream played by the terminal, where the transmission information includes a transmission rate of the media stream by unicast transmission.
获取单元 82, 用于根据所述操作指示信息获取播放媒体流的播放速率; 其 中, 所述获取单元 82根据所述指示信息获取播放媒体流的播放速率包括: 若所 述接收单元 81接收到的所述指示信息中包括所述用户终端播放媒体流的播放速 度, 则获取单元 82解析所述指示信息, 便可从所述指示信息中获取所述用户终 端播放媒体流的播放速率。 若所述接收单元 81接收到的指示信息中仅包含所述 传输信息, 则所述获取单元 82需要先解析所述指示信息, 从所述指示信息中获 取单播传输所述媒体流的传输速率, 并根据所述用户终端存储空间的大小和所 述用户终端剩余存储空间的大小、 以及所述单播传输所述媒体流的传输速率, 确定播放媒体流的播放速率。 其中所述确定所述用户终端播放媒体流的速率的 规则为: 保证所述用户终端存储空间中的存在没有播放的媒体流, 并且所述媒 体流的总量不能超过所述存储空间的大小。 其中, 若所述用户终端剩余存储空 间的大小比较小, 则可以加快所述用户终端播放媒体流的速率, 以便所述用户 终端有足够大的剩余存储空间。 The obtaining unit 82 is configured to obtain a play rate of the play media stream according to the operation indication information, where the acquiring unit 82 obtains the play rate of the play media stream according to the indication information, and includes: if the receiving unit 81 receives The indication information includes the playing speed of the media stream played by the user terminal, and the obtaining unit 82 parses the indication information, so that the playing rate of the media stream played by the user terminal can be obtained from the indication information. If the indication information received by the receiving unit 81 includes only the transmission information, the acquiring unit 82 needs to parse the indication information first, and obtain, from the indication information, a transmission rate of the unicast transmission of the media stream. And determining, according to the size of the storage space of the user terminal, the size of the remaining storage space of the user terminal, and the transmission rate of the media stream by the unicast, determining a play rate of the played media stream. The rule for determining the rate at which the user terminal plays the media stream is: ensuring that there is no media stream in the storage space of the user terminal, and the total amount of the media stream cannot exceed the size of the storage space. If the size of the remaining storage space of the user terminal is relatively small, the rate at which the user terminal plays the media stream may be accelerated, so that the user The terminal has enough remaining storage space.
播放单元 8 3,用于按照所述获取单元 82获取的所述播放速率播放所述媒体 流。  The playing unit 8 3 is configured to play the media stream according to the playing rate acquired by the acquiring unit 82.
进一步的, 如图 10所示, 所述用户终端还包括: 发送单元 84 ; 所述发送单 元 84用于向所述时移服务器发送时移播放请求消息。 其中所述时移请求播放消 息中包含用户终端时移发生时正常播放的时间和 /或位置信息。 所述时移播放请 求消息可以为但不局限于 PATS- R ( Paus e T ime Sh i f ted Reque s t , 时移暂停请 求)。  Further, as shown in FIG. 10, the user terminal further includes: a sending unit 84; the sending unit 84 is configured to send a time shift play request message to the time shift server. The time shift request playback message includes time and/or location information of normal play when the user terminal time shift occurs. The time shift play request message may be, but not limited to, PATS-R (Paus e T ime Sh i ted Reque s t , time shift pause request).
进一步, 所述时移播放请求消息中还可以包括所述用户终端緩冲区的大小 和剩余緩冲区的大小; 其中, 所述时移緩沖区大小可表示为所述用户终端在本 次时移过程中暂存媒体流的存储空间的大小, 所述剩余緩冲区大小可表示为所 述用户终端在本次时移过程中还可以暂存所述媒体流的存储空间的大小。  Further, the time shift play request message may further include a size of the buffer of the user terminal and a size of a remaining buffer. The time shift buffer size may be represented as the user terminal at the current time. During the shifting process, the size of the storage space of the media stream is temporarily stored, and the remaining buffer size may be expressed as the size of the storage space of the media stream that the user terminal may temporarily store during the current time shift.
当由于所述播放单元 83加快了所述用户终端播放媒体流的速度, 使得所述 用户终端有足够大的剩余存储空间时, 所述发送单元 84还可以用于, 再次向所 述服务器发送时移请求, 更新所述用户终端剩余存储空间的大小, 以便所述服 务器进一步调整单播传输媒体流的速率, 从而加快单播进行到组播进程的切换, 进而更进一步的减少单播传输带来的网络资源浪费的问题。  When the playback unit 83 speeds up the playback of the media stream by the user terminal, so that the user terminal has a sufficiently large remaining storage space, the sending unit 84 can also be configured to send to the server again. Transmitting the request, updating the size of the remaining storage space of the user terminal, so that the server further adjusts the rate of the unicast transmission media stream, thereby speeding down the unicast to the multicast process, thereby further reducing the unicast transmission. The problem of wasted network resources.
本发明实施例提供一种网絡时移处理的系统, 如图 11所示, 该系统包括: 用户终端 91和时移服务器 92。  The embodiment of the invention provides a system for network time shift processing. As shown in FIG. 11, the system includes: a user terminal 91 and a time shift server 92.
用户终端 91, 用于向时移服务器 92发送时移播放请求消息, 所述时移播放 请求消息中包含用户终端时移发生时需要播放媒体流的时间和 /或位置信息。  The user terminal 91 is configured to send a time shift play request message to the time shift server 92, where the time shift play request message includes time and/or location information of the media stream that needs to be played when the user terminal time shift occurs.
时移服务器 92, 用于接收用户终端 91发送的时移播放请求消息, 所述时移 播放请求消息中包含用户终端时移发生时需要播放媒体流的时间和 /或位置信 息; 根据所述用户终端时移发生时正常播放的时间和 /或位置信息, 确定是否将 所述时移请求播放消息对应的媒体流从单播传输切换到组播传输; 若确定将所 述媒体流从单播传输切换到組播传输, 则提高向所述用户终端发送媒体流的单 播传输速率, 并根据所述用户终端发送的时移播放请求消息, 向所述用户终端 91 发送时移播放响应消息, 所述响应消息中包括操作指示信息; 并将所述媒体 流通过单播传输给所述用户终端 91 ; 当所述单播传输进程与所述媒体流的组播 传输进程一致时, 将所述媒体流通过组播传输给所述用户终端 91。 The time shift server 92 is configured to receive a time shift play request message sent by the user terminal 91, where the time shift play request message includes time and/or location information of the media stream that needs to be played when the time shift occurs of the user terminal; Determining whether to switch the media stream corresponding to the time shift request play message from the unicast transmission to the multicast transmission when the time shift occurs normally and/or the location information occurs; if it is determined that the media stream is transmitted from the unicast Switching to the multicast transmission, the unicast transmission rate of the media stream is sent to the user terminal, and the time-shift playback response message is sent to the user terminal 91 according to the time-shifted playback request message sent by the user terminal. The operation message includes operation indication information; and the media is The stream is transmitted to the user terminal 91 by unicast; when the unicast transmission process is consistent with the multicast transmission process of the media stream, the media stream is transmitted to the user terminal 91 by multicast.
所述用户终端 91还用于, 接收所述时移服务器 92发送的时移播放响应消 息, 所述响应消息中包括操作指示信息; 根据所述操作指示信息获取播放所述 媒体流的播放速率; 按照所述播放速率播放所述媒体流。  The user terminal 91 is further configured to receive a time shift play response message sent by the time shift server 92, where the response message includes operation indication information, and acquire a play rate of playing the media stream according to the operation indication information; The media stream is played at the playback rate.
本发明实施例中, 当用户终端在观看视频业务发生暂停时移后, 所述用户 终端向时移服务器发送时移播放倚求, 所述时移服务器确定是否将所述时移请 求播放消息对应的媒体流从单播传输切换到组播传输, 若是, 则提高向所述用 户终端发送媒体流的单播传输速率, 使得通过单播传输一定时间后单播传输进 程能够与所述媒体流的组播传输进程一致, 当所述单播传输进程与所述媒体流 的组播传输进程一致时, 将所述时移请求消息对应的媒体流切换到组播传输给 所述用户终端, 从而降低系统带宽的消耗, 提高系统性能; 并且所述时移服务 器还向所述用户终端发送操作指示信息, 以便所述用户终端根据所述操作指示 信息获取播放所述媒体流的播放速率, 并根据所述播放速率播放所述媒体流, 从而实现了用户终端时移发生后媒体流的正常播放  In the embodiment of the present invention, when the user terminal moves after watching the video service pauses, the user terminal sends a time shift playback request to the time shift server, and the time shift server determines whether to correspond to the time shift request play message. The media stream is switched from unicast transmission to multicast transmission, and if so, the unicast transmission rate of the media stream is sent to the user terminal, so that the unicast transmission process can be associated with the media stream after being transmitted for a certain time by unicast. The multicast transmission process is consistent. When the unicast transmission process is consistent with the multicast transmission process of the media stream, the media stream corresponding to the time shift request message is switched to multicast transmission to the user terminal, thereby reducing The system bandwidth is consumed to improve system performance; and the time shifting server further sends operation indication information to the user terminal, so that the user terminal acquires a play rate of playing the media stream according to the operation indication information, and according to the Playing the media stream at the playback rate, thereby realizing the normal playback of the media stream after the time shift of the user terminal occurs
本发明实施例中的时移服务器可以是一个单端的服务器, 也可以和其它网 络功能设备合并在一起, 所述其它网络功能设备可以为网络汇聚设备、 网絡接 入设备、城域网絡设备或者快速频道切换功能( Ra p i d Acciu i s i t i on of Mu 1 1 i ca s t RTP Ses s ions ) 的重发月良务器 (Re t ransmi s s i on Server ); 本发明实施例对此 不进行限制。  The time-shifting server in the embodiment of the present invention may be a single-ended server, or may be merged with other network function devices, which may be network aggregation devices, network access devices, metropolitan area network devices, or fast. The retransmission server (Re ransmi ssi on Server) of the channel switching function (R pid Acciu isiti on of Mu 1 1 i ca st RTP Ses s ions );
通过以上的实施方式的描述, 所属领域的技术人员可以清楚地了解到本发 明可借助软件加必需的通用硬件的方式来实现, 当然也可以通过硬件, 但 4艮多 情况下前者是更佳的实施方式。 基于这样的理解, 本发明的技术方案本质上或 者说对现有技术做出贡献的部分可以以软件产品的形式体现出来, 该计算机软 件产品存储在可读取的存储介质中, 如计算机的软盘, 硬盘或光盘等, 包括若 干指令用以使得一台计算机设备(可以是个人计算机, 服务器, 或者网络设备 等)执行本发明各个实施例所述的方法。  Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be implemented by means of software plus necessary general hardware, and of course, by hardware, but in the case of more than 4, the former is better. Implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a readable storage medium, such as a floppy disk of a computer. A hard disk or optical disk or the like includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限于 此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易想到 变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护范围应 以所述权利要求的保护范围为准。 The above description is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited to Therefore, any person skilled in the art can easily conceive changes or substitutions within the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the appended claims.

Claims

权 利 要 求 书 Claim
1、 一种网络时移的处理方法, 其特征在于, 包括:  A method for processing a network time shift, comprising:
接收用户终端发送的时移播放请求消息, 所述时移播放请求消息中包含用 户终端时移发生时需要播放媒体流的时间和 /或位置信息;  Receiving a time shift play request message sent by the user terminal, where the time shift play request message includes time and/or location information of the media stream that needs to be played when the user terminal time shift occurs;
根据所述用户终端时移发生时需要播放媒体流的时间和 /或位置信息, 确定 是否将所述时移播放请求消息对应的媒体流从单播传输切换到组播传输;  Determining whether to switch the media stream corresponding to the time shift play request message from unicast transmission to multicast transmission according to time and/or location information of the media stream that needs to be played when the time shift occurs;
若确定将所述媒体流从单播传输切换到组播传输, 则提高向所述用户终端 发送媒体流的单播传输速率, 并根据所述用户终端发送的时移播放请求消息,向 所述用户终端发送时移播放响应消息, 所述响应消息中包括操作指示信息; 将所述媒体流通过单播传输给所述用户终端;  If it is determined that the media stream is switched from the unicast transmission to the multicast transmission, the unicast transmission rate of the media stream is sent to the user terminal, and according to the time shift play request message sent by the user terminal, The user terminal sends a time-shift playback response message, where the response message includes operation indication information; and the media stream is transmitted to the user terminal by unicast;
当所述单播传输进程与所述媒体流的组播传输进程一致时, 将所述媒体流 通过组播传输给所述用户终端。  And when the unicast transmission process is consistent with the multicast transmission process of the media stream, the media stream is transmitted to the user terminal by multicast.
2、 根据权利要求 1所述的方法, 其特征在于, 所述时移播放请求消息中还 包括所述用户终端时移緩冲区的大小和剩余緩沖区的大小; 该方法还包括: 根据所述用户终端时移緩沖区的大小和剩余緩冲区的大小, 调整向所述用 户终端发送媒体流的单播传输速率。  The method according to claim 1, wherein the time shift play request message further includes a size of the time shift buffer of the user terminal and a size of a remaining buffer; the method further includes: The size of the time shift buffer of the user terminal and the size of the remaining buffer are adjusted, and the unicast transmission rate of the media stream is sent to the user terminal.
3、 根据权利要求 1所述的方法, 其特征在于, 所述时移播放请求消息中还 包括所述用户终端请求接收媒体流的序列号, 用以在将所述媒体流通过单播传 输给所述用户终端之前确定所述媒体流的开始位置。  The method according to claim 1, wherein the time shift play request message further includes a sequence number of the user terminal requesting to receive the media stream, to transmit the media stream to the unicast The user terminal previously determines a starting location of the media stream.
4、 根据权利要求 1所述的方法, 其特征在于, 所述操作指示信息包括: 所述用户终端播放媒体流的播放信息和 /或服务器通过单播传输所述媒体 流的传输信息, 其中所述播放信息中包括终端播放媒体流的播放速率, 所述传 输信息中包括单播传输所述媒体流的传输速率。  The method according to claim 1, wherein the operation indication information comprises: the user terminal playing the play information of the media stream and/or the server transmitting the transmission information of the media stream by unicast, where The playback information includes a playback rate of the media stream played by the terminal, where the transmission information includes a transmission rate of the media stream by unicast transmission.
5、 根据权利要求 4所述的方法, 其特征在于, 所述播放信息中还包括指示 所述用户终端加速播放媒体流的指示信息,以及加速播放媒体流所釆用的方式, 其中, 所述加速播放媒体流所采用的方式包括视频快进的方式或者隐藏视频帧 的方式。  The method according to claim 4, wherein the playing information further includes indication information indicating that the user terminal accelerates playing of the media stream, and a method for speeding up playing of the media stream, where The way to speed up the playback of media streams includes the way the video fast forwards or the way the video frames are hidden.
6、 一种网络时移处理的方法, 其特征在于, 包括: 接收时移服务器发送的时移播放响应消息, 所述响应消息中包括操作指示 信息; 6. A method for network time shift processing, characterized in that: Receiving a time shift play response message sent by the time shift server, where the response message includes operation indication information;
根据所述操作指示信息获取播放媒体流的播放速率;  Obtaining a play rate of the played media stream according to the operation indication information;
按照所述播放速率播放所述媒体流。  The media stream is played at the playback rate.
7、 根据权利要求 6所述的方法, 其特征在于, 所述操作指示信息包括: 所述用户终端播放媒体流的播放信息和 /或服务器通过单播传输所述媒体 流的传输信息, 其中所述播放信息中包括终端播放媒体流的播放速率, 所述传 输信息中包括单 ·ί# 输所述媒体流的传输速率。  The method according to claim 6, wherein the operation indication information comprises: the user terminal playing the play information of the media stream and/or the server transmitting the transmission information of the media stream by unicast, where The playback information includes a playback rate of the media stream played by the terminal, where the transmission information includes a transmission rate of the media stream.
8、 根据权利要求 7所述的方法, 其特征在于, 当所述操作指示信息中仅包 含单播传输所述媒体流的传输速率时, 所述根据所述操作指示信息获取所述用 户终端播放媒体流的播放速率包括:  The method according to claim 7, wherein when the operation indication information only includes the transmission rate of the media stream by unicast, the acquiring the user terminal according to the operation indication information The playback rate of the media stream includes:
根据所述用户终端緩沖区的大小和剩余緩冲区的大小以及所述单播传输所 述媒体流的传输速率, 确定播放所述媒体流的播放速率。  And determining, according to the size of the buffer of the user terminal and the size of the remaining buffer, and the transmission rate of the media stream by the unicast transmission, determining a play rate of playing the media stream.
9、 一种网络时移的处理方法, 其特征在于, 包括:  9. A method for processing a network time shift, which is characterized by comprising:
接收用户终端发送的时移播放请求消息, 所述时移播放请求消息中包含用 户终端时移发生时请求接收媒体流的序列号;  Receiving a time shift play request message sent by the user terminal, where the time shift play request message includes a sequence number of the requesting media stream when the user terminal time shift occurs;
根据所述序列号确定所述时移播放请求消息对应的媒体流的开始位置; 将所述媒体流从所述序列号开始通过单播传输给所述用户终端。  Determining, according to the sequence number, a start position of the media stream corresponding to the time shift play request message; transmitting the media stream from the serial number to the user terminal by using unicast.
10、 根据权利要求 9 所述的方法, 其特征在于, 所述时移请求消息还包括 时移发生时需要播放媒体流的时间信息, 该方法还包括:  The method according to claim 9, wherein the time shift request message further includes time information of the media stream to be played when the time shift occurs, the method further comprising:
根据所述序列号和所述时间信息确定所述时移播放请求消息对应的媒体流 的开始位置。  And determining, according to the sequence number and the time information, a start position of the media stream corresponding to the time shift play request message.
11、 一种网络时移处理的方法, 其特征在于, 包括:  A method for network time-shift processing, characterized in that:
用户终端确定时移发生时所述用户终端的时移时间是否在短时移范围内; 若所述时移时间在所述短时移范围内, 则向短时移服务器发送时移播放请 求消息, 由所述短时移服务器实现网络时移的处理;  Determining, by the user terminal, whether the time shift time of the user terminal is within a short time shift range; if the time shift time is within the short time shift range, sending a time shift play request message to the short time shift server , the network time shift processing is implemented by the short time shift server;
若所述时移时间超过所述短时移范围内, 则向长时移服务器发送时移播放 请求, 由所述长时移服务器实现网络时移的处理。 If the time shift time exceeds the short time shift range, a time shift play request is sent to the long time shift server, and the network time shift processing is implemented by the long time shift server.
12、 根据权利要求 11所述的方法, 其特征在于, 所述由所述短时移服务器 实现网络时移的处理包括: The method according to claim 11, wherein the processing of implementing network time shift by the short time shifting server comprises:
所述短时移服务器接收用户终端发送的时移播放请求消息, 并提高向所述 用户终端发送媒体流的单播传输速率, 并根据所述用户终端发送的时移播放请 求消息,向所述用户终端发送时移播放响应消息, 所述响应消息中包括操作指示 信息;  The short time shifting server receives a time shift play request message sent by the user terminal, and improves a unicast transmission rate of the media stream sent to the user terminal, and according to the time shift play request message sent by the user terminal, to the The user terminal sends a time shift play response message, where the response message includes operation indication information;
将所述时移播放请求消息对应媒体流通过单播传输给所述用户终端; 当所述单播传输进程与所述媒体流的组播传输进程一致时, 将所述媒体流 通过组播传输给所述用户终端。  And transmitting, by the unicast, the media stream to the user terminal by using the media stream; when the unicast transmission process is consistent with the multicast transmission process of the media stream, transmitting the media stream by multicast To the user terminal.
13、 根据权利要求 11所述的方法, 其特征在于, 所述由所述长时移服务器 实现网络时移的处理包括:  13. The method according to claim 11, wherein the processing of implementing network time shift by the long time shift server comprises:
所述长时移服务器接收用户终端发送的时移播放请求消息, 将所述时移播 放请求消息对应的媒体流通过单播传输给所述用户终端。  The long time shifting server receives the time shift play request message sent by the user terminal, and transmits the media stream corresponding to the time shift play request message to the user terminal by using unicast.
14、 一种时移服务器, 其特征在于, 包括:  14. A time shifting server, comprising:
接收单元, 用于接收用户终端发送的时移播放请求消息, 所述时移播放请 求消息中包含用户终端时移发生时需要播放媒体流的时间和 /或位置信息;  a receiving unit, configured to receive a time shift play request message sent by the user terminal, where the time shift play request message includes time and/or location information of the media stream that needs to be played when the user terminal time shift occurs;
确定单元, 用于根据所述用户终端时移发生时需要播放媒体流的时间和 /或 位置信息, 确定是否将所述时移播放请求消息对应的媒体流从单播传输切换到 组播传输;  a determining unit, configured to determine, according to time and/or location information that the media stream needs to be played when the time shift occurs, to determine whether to switch the media stream corresponding to the time shift play request message from unicast transmission to multicast transmission;
第一调整单元, 用于在所述确定单元确定将所述媒体流从单播传输切换到 组播传输时, 提高向所述用户终端发送媒体流的单播传输速率;  a first adjusting unit, configured to: when the determining unit determines to switch the media stream from a unicast transmission to a multicast transmission, improve a unicast transmission rate of sending the media stream to the user terminal;
发送单元, 用于根据所述用户终端发送的时移播放请求消息, 向所述用户 终端发送时移播放响应消息, 所述响应消息中包括操作指示信息;  a sending unit, configured to send a time shift play response message to the user terminal according to the time shift play request message sent by the user terminal, where the response message includes operation indication information;
传输单元, 用于将所述媒体流通过单播传输给所述用户终端;  a transmitting unit, configured to transmit the media stream to the user terminal by using unicast;
切换单元, 用于当所述单播传输进程与所述媒体流的组播传输进程一致时, 将所述媒体流通过組播传输给所述用户终端。  And a switching unit, configured to: when the unicast transmission process is consistent with the multicast transmission process of the media stream, transmit the media stream to the user terminal by using multicast.
15、 根据权利要求 14所述的时移服务器, 其特征在于, 该时移服务器还包 括: 第二调整单元, 用于当所述时移播放请求消息中还包括所述用户终端时移 緩冲区的大小和剩余緩冲区的大小时, 根据所述用户终端时移緩冲区的大小和 剩余緩冲区的大小, 调整向所述用户终端发送媒体流的单播传输速率。 The time shift server according to claim 14, wherein the time shift server further comprises: a second adjusting unit, configured to: when the time shift buffer size of the user terminal and the size of the remaining buffer are further included in the time shift play request message, according to the size of the time shift buffer of the user terminal And the size of the remaining buffer, adjusting the unicast transmission rate of the media stream sent to the user terminal.
16、 一种网络时移处理的系统, 其特征在于, 包括:  A system for network time-shift processing, comprising:
用户终端, 用于向时移服务器发送时移播放请求消息, 所述时移播放请求 消息中包含用户终端时移发生时需要播放媒体流的时间和 /或位置信息;  a user terminal, configured to send a time shift play request message to the time shift server, where the time shift play request message includes time and/or location information of the media stream that needs to be played when the time shift occurs of the user terminal;
时移服务器, 用于接收用户终端发送的时移播放请求消息, 所述时移播放 请求消息中包含用户终端时移发生时需要播放媒体流的时间和 /或位置信息; 根 据所述用户终端时移发生时需要播放媒体流的时间和 /或位置信息, 确定是否将 所述时移请求播放消息对应的媒体流从单播传输切换到组播传输; 若确定将所 述媒体流从单播传输切换到组播传输, 则提高向所述用户终端发送媒体流的单 播传输速率, 并根据所述用户终端发送的时移播放请求消息, 向所述用户终端 发送时移播放响应消息, 所述响应消息中包括操作指示信息; 将所述媒体流通 过单播传输给所述用户终端; 当所述单播传输进程与所述媒体流的组播传输进 程一致时, 将所述媒体流组播传输给所述用户终端;  a time shift server, configured to receive a time shift play request message sent by the user terminal, where the time shift play request message includes time and/or location information of the media stream that needs to be played when the user terminal time shift occurs; according to the user terminal The time and/or location information of the media stream needs to be played when the shift occurs, determining whether to switch the media stream corresponding to the time shift request play message from unicast transmission to multicast transmission; if it is determined that the media stream is transmitted from unicast Switching to the multicast transmission, the unicast transmission rate of the media stream is sent to the user terminal, and the time shift play request message is sent to the user terminal according to the time shift play request message sent by the user terminal, where The response message includes operation indication information; transmitting the media stream to the user terminal by unicast; and when the unicast transmission process is consistent with the multicast transmission process of the media stream, multicasting the media stream Transmitting to the user terminal;
所述用户终端还用于, 接收所述时移服务器发送的时移播放响应消息, 所 述响应消息中包括操作指示信息; 根据所述操作指示信息获取所述用户终端播 放媒体流的播放速率; 按照所述播放速率播放所述媒体流。  The user terminal is further configured to: receive a time shift play response message sent by the time shift server, where the response message includes operation indication information; and acquire, according to the operation indication information, a play rate of the media stream played by the user terminal; The media stream is played at the playback rate.
PCT/CN2011/070771 2010-02-05 2011-01-28 Method, apparatus and system for processing network time shift WO2011095118A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010106599.9 2010-02-05
CN 201010106599 CN102149021B (en) 2010-02-05 2010-02-05 Method, device and system for processing network time shift

Publications (1)

Publication Number Publication Date
WO2011095118A1 true WO2011095118A1 (en) 2011-08-11

Family

ID=44354971

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/070771 WO2011095118A1 (en) 2010-02-05 2011-01-28 Method, apparatus and system for processing network time shift

Country Status (2)

Country Link
CN (1) CN102149021B (en)
WO (1) WO2011095118A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103139641A (en) * 2011-12-02 2013-06-05 三星电子(中国)研发中心 Method and device for achieving audio/video seamless switching in real-time digital television time shifting playing
CN107147923B (en) * 2017-05-05 2019-06-21 中广热点云科技有限公司 A kind of time shift order method
CN113411755B (en) 2017-12-28 2022-10-04 华为技术有限公司 Communication method and related product

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094378A (en) * 2006-06-21 2007-12-26 华为技术有限公司 Time shifting method and system of interactive network TV
CN101287014A (en) * 2008-06-10 2008-10-15 北京邮电大学 Method, system and device for realizing stream media service
CN101431657A (en) * 2007-11-07 2009-05-13 华为技术有限公司 Time shift processing method, system and apparatus for network TV
CN101588494A (en) * 2009-06-30 2009-11-25 华为技术有限公司 Method for processing media stream, communication system, and relative devices

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100759807B1 (en) * 2005-12-09 2007-09-20 한국전자통신연구원 Method of time-shifting service in multicast based IPTV
CN100531381C (en) * 2006-01-27 2009-08-19 中国科学院声学研究所 The method for IPTV STB/unicast seamless switching based on RTP protocol

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094378A (en) * 2006-06-21 2007-12-26 华为技术有限公司 Time shifting method and system of interactive network TV
CN101431657A (en) * 2007-11-07 2009-05-13 华为技术有限公司 Time shift processing method, system and apparatus for network TV
CN101287014A (en) * 2008-06-10 2008-10-15 北京邮电大学 Method, system and device for realizing stream media service
CN101588494A (en) * 2009-06-30 2009-11-25 华为技术有限公司 Method for processing media stream, communication system, and relative devices

Also Published As

Publication number Publication date
CN102149021A (en) 2011-08-10
CN102149021B (en) 2013-09-25

Similar Documents

Publication Publication Date Title
CN101753973B (en) Channel switching method, device and system
JP5366107B2 (en) Method, apparatus and system for reducing media delay
US20090265743A1 (en) Video on demand control method, client device and switching control apparatus
JP5363473B2 (en) Method and apparatus for improved media session management
JP5215604B2 (en) Client device, communication system, and data processing method
EP2472857B1 (en) Media stream processing method and communication system and related devices
WO2011153868A1 (en) Channel switching method, apparatus and system
KR101475991B1 (en) Method and system for playing video on a mobile device
WO2010139284A1 (en) Method, system and relative devices for processing channel switching
CN107277554B (en) A kind of method of time shift program unicast conversion multicast
US8959240B2 (en) Method, apparatus and system for rapid acquisition of multicast realtime transport protcol sessions
CN107566918A (en) A kind of low delay under video distribution scene takes the neutrel extraction of root
JP2008029006A (en) Client device, communication system and data processing method
CN103685314B (en) Method for achieving seamless switching of unicast and multicast of stream media playing
JP5428734B2 (en) Network device, information processing apparatus, stream switching method, information processing method, program, and content distribution system
WO2011095118A1 (en) Method, apparatus and system for processing network time shift
WO2010022598A1 (en) Method and system for switching iptv channels, method and device for sending audio and video streams
US8208561B2 (en) Technique for media frame decoding
JP4888955B2 (en) Content delivery method and apparatus
WO2012079428A1 (en) Synchronization method and synchronization apparatus for multicast group quick access, and terminal
CN106937155B (en) Access device, Internet Protocol Television (IPTV) system and channel switching method
WO2011022983A1 (en) Method, device and system of multi-cast video data
Diepolder et al. Improved Channel Switching for Hybrid Unicast/Broadcast Mobile Television.
WO2011106930A1 (en) Method, equipment and system for implementing video cassette recorder (vcr) operation for rich media stream

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11739397

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11739397

Country of ref document: EP

Kind code of ref document: A1