WO2009059499A1 - Method and system for processing the time-shifting of iptv - Google Patents

Method and system for processing the time-shifting of iptv Download PDF

Info

Publication number
WO2009059499A1
WO2009059499A1 PCT/CN2008/070881 CN2008070881W WO2009059499A1 WO 2009059499 A1 WO2009059499 A1 WO 2009059499A1 CN 2008070881 W CN2008070881 W CN 2008070881W WO 2009059499 A1 WO2009059499 A1 WO 2009059499A1
Authority
WO
WIPO (PCT)
Prior art keywords
user terminal
unicast
play command
multicast
time
Prior art date
Application number
PCT/CN2008/070881
Other languages
French (fr)
Chinese (zh)
Inventor
Jinchun Yang
Original Assignee
Huawei Technologies Co., Ltd.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co., Ltd. filed Critical Huawei Technologies Co., Ltd.
Priority to EP08168632A priority Critical patent/EP2059044A3/en
Publication of WO2009059499A1 publication Critical patent/WO2009059499A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/16Analogue secrecy systems; Analogue subscription systems
    • H04N7/173Analogue secrecy systems; Analogue subscription systems with two-way working, e.g. subscriber sending a programme selection signal
    • H04N7/17309Transmission or handling of upstream communications
    • H04N7/17318Direct or substantially direct transmission and handling of requests
    • 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/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • H04N21/64322IP
    • 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/65Transmission of management data between client and server
    • H04N21/658Transmission by the client directed to the server
    • H04N21/6587Control parameters, e.g. trick play commands, viewpoint selection

Definitions

  • the present invention relates to the field of communication technologies, and in particular, to a network television time shift processing method and system. Background technique
  • IPTV Internet TV
  • IPTV Internet TV
  • IPTV Internet TV
  • IPTV Internet TV
  • It is a brand-new technology that uses broadband cable TV networks to integrate Internet, multimedia, and communication technologies to provide home users with a variety of interactive services, including digital TV. Users can enjoy IPTV services in two ways at home: computer or network set-top box + regular TV. It can adapt well to the rapid development of today's networks and make full and effective use of network resources.
  • IPTV is different from traditional analog cable TV and is not the same as classic digital TV. Because traditional and classic digital TVs have the characteristics of frequency division, timing, and one-way broadcasting. Although classic digital TV has many technological innovations compared to analog TV, it is only a change in signal form without touching the media content.
  • IPTV IP Television
  • IPTV is an infrastructure that utilizes broadband cable television networks, with home televisions as the primary terminal appliances, and a variety of digital media services, including television programming, through Internet Protocol. Therefore, IPTV is a brand-new business form. It is a converged service integrating traditional TV programs, Internet information services and value-added services. It is also the real entry point for future digital homes. With its development, users will gradually recognize the IPTV platform as an entertainment and service center for their future home business. The architecture of IPTV itself also determines that it must develop in this direction.
  • the media content In the IPTV service, in order to ensure a certain definition, the media content is usually compression-encoded, but the encoded media code rate is still high. In order to save transmission bandwidth, the media stream is implemented by multicast technology transmission. However, when watching IPTV, users sometimes pause, rewind, etc., and then press play to continue watching. In order to maintain the continuity of the user's viewing, in the IPTV system, the user's behavior is treated as a "time shift" operation.
  • the prior art time shift operation is: Prepare a set of files for on-demand, the content is consistent with the live content. The user who normally views the live content receives the program transmitted through the multicast technology.
  • the system converts the user's request into an on-demand request for accessing the specific location of the file.
  • the system finds the corresponding location in the media file according to the breakpoint information in the user request, and transmits the subsequent program stream to the user in a unicast technology.
  • the server After the user shifts time, the server continuously transmits through the unicast technology. Subsequent user operations are for on-demand files, which means that the server needs to establish a unicast transport channel for each time-shifted user terminal.
  • the disadvantage of this method is that as the number of time-shifted users increases, the system bandwidth consumption also increases, and system performance will be greatly reduced. Summary of the invention
  • the main purpose of the present invention is to provide a network TV time shift processing method and system, which can automatically automatically switch users to multicast play without user intervention, and solve the problem of long-term unicast continuous transmission in the prior art. This leads to technical defects in system bandwidth consumption and system performance degradation.
  • An embodiment of the present invention provides a network television time shift processing method, including the following steps: receiving a play command of a user terminal after a time shift occurs; and adjusting a unicast transmission rate of the user terminal according to a play command of the user terminal,
  • the unicast transmission process can be consistent with the multicast transmission process of the server after the unicast transmission for a certain period of time; the media stream corresponding to the play command is transmitted to the user terminal by unicast; when the unicast transmission process and the unicast transmission process When the multicast transmission process is consistent, the media stream corresponding to the play command is switched to multicast for transmission.
  • the embodiment of the present invention further provides a network television time shift processing system, including a server and at least one user terminal, where the user terminal is configured to send a play command to the server, and the server is configured to adjust according to the play command.
  • the unicast transmission rate of the user terminal is such that the unicast transmission process can be consistent with the multicast transmission process of the server after being transmitted for a certain time by unicast, and simultaneously Transmitting, by the unicast, the media stream corresponding to the play command to the user terminal, and switching the media stream corresponding to the play command when the unicast transmission process of the user terminal is consistent with the multicast transmission process Transfer to multicast.
  • the embodiment of the present invention further provides a network television time shift processing server, including a command receiving module, a unicast playback processing module, and a multicast switching module, where the command receiving module is configured to receive a play command of a user terminal that has a time shift;
  • the unicast playback processing module is configured to adjust a unicast transmission rate to the user terminal according to the play command, so that the unicast transmission process can be consistent with the multicast transmission process of the server after being transmitted by using unicast for a certain period of time And transmitting the media stream requested by the user terminal to the user terminal by using a unicast;
  • the multicast switching module configured to: when the unicast transmission process is consistent with the multicast transmission process, The media stream corresponding to the play command is switched to multicast for transmission.
  • FIG. 1 is a flowchart of a method for processing time shift of a network television according to Embodiment 1 of the present invention
  • FIG. 2 is a flowchart of a method for processing time shift of a network television according to Embodiment 2 of the present invention
  • FIG. 3 is a structural diagram of a network television time shift processing system according to an embodiment of the present invention. detailed description
  • FIG. 1 is a flowchart of a network television time shift processing method according to Embodiment 1 of the present invention, which can be based on a user terminal in this embodiment.
  • the command combination determines the corresponding rate adjustment policy, and adjusts the current unicast transmission rate according to the rate adjustment policy, so that it can be consistent with the multicast transmission rate as soon as possible, thereby switching to multicast for transmission. For example, if the user presses the play button after pressing the pause button, the user's transmission rate is appropriately increased to be consistent with the multicast, and the real-time delivery is performed.
  • the user terminal may be a terminal device capable of IPTV playback, such as an STB (Set Top Box), a mobile phone, or a PC terminal.
  • This embodiment includes the following steps: Step S101: The user terminal sends a request command to the server, and the server returns a response to the request command, and correspondingly transmits the media requested by the user terminal to the user terminal.
  • Step S102 After receiving the command that the user terminal pauses, rewinds, or drags to enter the time shift state, the server determines that the user terminal has a time shift.
  • Step S103 The server receives a play command of the time shifting user terminal.
  • the common protocol for requesting and responding to the IPTV is the RTSP protocol.
  • RTSP consists of a message header and a message body.
  • the message header defines some attributes related to the command.
  • the pause is implemented by the RTSP-PAUSE command;
  • the playback is implemented by the RTSP-PLAY command, and the Scale attribute of the command message is 1;
  • the fast rewind operation can also be implemented by the RTSP-PLAY command, but the Scale attribute of the command message is one.
  • a non-zero rational number, such as Scale -3.5, indicates that the user terminal is required to rewind 3.5 times relative to the normal playback speed.
  • Step S1Q4 the server determines whether the play command is a play command after a command that causes a time shift state, such as pause, rewind, or post drag, to determine whether the RTSP-PLAY command is received after step S102. If the normal play command received by the server is after a pause, forward or backward drag command that causes the time shift status to be entered, then the server defaults to the need to adjust the unicast transmission rate so that the unicast transmission process is transmitted after unicast for a certain period of time. It can be consistent with the multicast transmission process of the server.
  • a time shift state such as pause, rewind, or post drag
  • Step S105 since the fast rewind operation can also be implemented by the RTSP_PLAY command, it is also required to detect whether the Scale parameter is 1 after receiving the RTSP-PLAY command. If the Scale parameter is not 1, it means that the user may press the "fast forward” or “rewind” button, the system will process it in the media server's default processing mode. When the Scale parameter is 1, the system modifies the Scale value with a preset policy.
  • Step S106 if it is a play command after the pause command and the Scale value is 1, the corresponding rate adjustment policy is determined according to the play command of the user terminal.
  • the rate adjustment strategy proposed by the present invention is as follows:
  • the playback speed is a reasonable number of reasonable numbers.
  • Step S108 When the unicast transmission process is consistent with the multicast transmission process of the server, the server switches the media stream corresponding to the play command to multicast for transmission, and deletes the unicast transmission channel.
  • the unicast can be quickly played according to the normal play command input by the user, and when the unicast play catches up with the multicast play, the media stream is switched to the multicast for transmission, and the unicast transport channel is deleted, thereby achieving Save bandwidth.
  • the embodiment of the present invention can determine whether the unicast transmission rate needs to be adjusted according to the normal play command by parsing the normal play command of the user after the time shift state, so that the user can watch the broadcast without affecting the user's viewing.
  • the media stream that is transmitted can be gradually consistent with the multicast transmission, thereby finally deleting the unicast transmission channel, thereby saving bandwidth and optimizing system performance.
  • FIG. 2 is a flowchart of a network television time shift processing method according to Embodiment 2 of the present invention.
  • the manner in which the multicast group is sent by the carousel server is used to select the multicast group whose playing time is closest to the user terminal to join, so that the time for the user to play the unicast is the shortest, and thus the user is generated.
  • the impact is also minimal.
  • Step S201 The carousel server sends the same media to different multicast groups at regular time intervals. Body content, and a multicast link for each multicast group. However, for the user, the server only provides a media link for the user for a specific media. After clicking the media link, the server selects which multicast group the user should join, and then the multicast link corresponding to the multicast group. Access is made.
  • Step S202 The server receives a play command of the user terminal that is time-shifted. Since the user terminal has time-shifted during playback, it cannot be consistent with the multicast that is normally played. Therefore, the server needs to transmit the media requested by the user terminal to the user through unicast.
  • Step S203 The server selects a multicast group that is closest to the time when the user terminal sends the play command according to the time when the user terminal sends the play command.
  • the specific time is: the server reads the current time t of receiving the user play command, and searches for the start time T of the closest multicast group, wherein the search time T of the corresponding multicast group is preferably used to quickly find Algorithms are performed, such as dichotomy. Calculate the difference between the start time T and the current time t of the received command, such as calculating min
  • Step S204 The server sets a corresponding rate adjustment policy according to the time when the play command is sent and the multicast group play time difference.
  • the rate adjustment strategy can be normal speed, fast play or smart play.
  • Step S205 Set a Sca l e value of the RTSP-PLAY command according to the rate adjustment policy. Specifically, firstly, according to the difference between the multicast group broadcast time T and the current time t of the received command, if it is determined that tT is positive, the user play time is earlier than the determined multicast group start time, so Sca le is set. If the tT is negative, the user playback time is later than the determined multicast group start time. Therefore, setting Sca le to a positive number speeds up the playback speed.
  • Step S206 The server adjusts the playback speed of the unicast according to the Sca l e value corresponding to the current user RTSP_PLAY command, and transmits the media stream requested by the user terminal to the user terminal by using unicast.
  • Step S207 When the unicast transmission process is consistent with the multicast transmission process of the multicast group, the service The device will switch the media stream of the user terminal to the multicast group selected by the server, and delete the unicast transmission channel.
  • the foregoing embodiment of the present invention selects the closest multicast group for the user requesting to play, and adjusts the unicast playback speed according to the time difference between the multicast group and the current user request, thereby enabling unicast without user intervention. Playback can be consistent with multicast playback, and when unicast playback can be consistent with multicast playback, the media stream is switched to multicast for transmission, and the unicast transmission channel is deleted, thereby achieving bandwidth saving.
  • FIG. 3 it is a structural diagram of a network television time shift processing system according to an embodiment of the present invention.
  • the system includes a server 1 and at least one user terminal 2, and the user terminal 2 is configured to send a play command to the server 1, where the user terminal 2 can It is a terminal device capable of performing IPTV playback, such as an STB, a mobile phone, or a PC terminal; the server 1 is configured to adjust a unicast transmission rate to the user terminal 2 according to a play command sent by the user terminal 2, so that unicast transmission after a certain time is transmitted through unicast
  • the process can be consistent with the multicast transmission process of the server 1, and the media stream corresponding to the play command is transmitted to the user terminal 2 through unicast, and when the unicast transmission process of the user terminal 2 is consistent with the multicast transmission process, The media stream corresponding to the play command is switched to multicast for transmission.
  • the server 1 includes a command receiving module 11, a unicast playback processing module 12, and a multicast switching module 13.
  • the command receiving module 1 1 is configured to receive a play command of the user terminal 2 that occurs when the time shift occurs.
  • the unicast play processing module 12 is configured to adjust the play command according to the play command received by the command receiving module 11 after the command receiving module 11 receives the play command.
  • the unicast transmission rate of the user terminal 2 is such that the unicast transmission process can be consistent with the multicast transmission process of the server 1 after the unicast transmission for a certain period of time, and the media stream requested by the user terminal 2 is transmitted to the user terminal 2 by unicast;
  • the multicast switching module 13 is configured to switch the media stream corresponding to the play command to multicast for transmission when the unicast transmission process is consistent with the multicast transmission process of the server 1.
  • the unicast playback processing module 12 includes a judging sub-module 121 and a rate adjustment policy determining sub-module 122, and the judging sub-module 121 is configured to determine whether the play command is in a time-shift state caused by pause, rewind, or drag. Normal play command after command; rate adjustment strategy determines submodule
  • the block 122 is configured to determine, according to the play command of the user terminal 2, a corresponding rate adjustment policy, and adjust the time shift user according to the rate adjustment policy, when the determining submodule 121 determines that the play command is after the command that causes the time shift state to be entered.
  • the unicast transmission rate of the terminal 2 enables the unicast transmission process to be consistent with the multicast transmission process of the server 1 after being transmitted for a certain time by unicast.
  • the server 1 further includes a carousel server module 14 for transmitting the same media stream to different multicast groups at regular time intervals.
  • the unicast playback processing module 12 includes a multicast group determining sub-module 123 and a rate adjustment policy setting sub-module 124, and the multicast group determining sub-module 123 is configured to select a multicast that has the closest start time to the user terminal 2 to send the play command time.
  • the rate adjustment policy setting sub-module 124 sets the rate adjustment policy according to the playing time of the selected multicast group and the receiving time of the play command, and adjusts the unicast transmission rate to the user terminal 2.
  • the server 1 further includes a unicast channel deletion module 15 for deleting the unicast transmission channel after the multicast switching module 13 transfers the media stream of the user terminal 2 to the multicast.
  • the normal play command input by the user can determine whether the unicast transmission rate needs to be adjusted according to the normal play command, so that it can be quickly and without affecting the user's viewing.
  • the multicast is consistent, which removes the unicast transport channel and saves bandwidth.
  • the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
  • the present invention can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, 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 storage medium, including a plurality of instructions for making a Taiwan A computer device (which may be a personal computer, server, or network device, etc.) performs the methods described in various embodiments of the present invention.

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

A method for processing the time-shifting of IPTV includes the steps of: receiving the play command of the user terminal after time-shifting occurs; adjusting the unicast transmission rate to the user terminal based on the play command of the user terminal so that the unicast transmission course is consistent with the multicast transmission course of the server after the unicast transmission is carried out for a period of time; transmitting the media stream corresponding to the play command to the user terminal through the unicast transmission; switching to the multicast transmission to transmit the media stream corresponding to the play command, when the unicast transmission course is consistent with the multicast transmission course. According to the embodiment of the invention, it is possible to adjust the unicast transmission rate of the server to the user through analyzing the play action of the user after the time-shifting state so as to make the unicast transmitted media stream to be consistent with the multicast transmitted media stream gradually, so that the unicast transmission channel will be deleted finally so as to achieve the aim of saving bandwidth.

Description

一种网络电视时移处理方法和系统  Network television time shift processing method and system
技术领域 Technical field
本发明涉及通信技术领域, 特别是一种网络电视时移处理方法和系统。 背景技术  The present invention relates to the field of communication technologies, and in particular, to a network television time shift processing method and system. Background technique
在通信技术日新月异的发展过程中, IPTV (网络电视)逐步深入到人民 的生活之中。 IPTV即交互式网络电视, 是一种利用宽带有线电视网, 集互联 网、 多媒体、 通讯等多种技术于一体, 向家庭用户提供包括数字电视在内的 多种交互式服务的崭新技术。 用户在家中可以有两种方式享受 IPTV服务: 计 算机或网络机顶盒 +普通电视机。 它能够很好地适应当今网络飞速发展的趋 势, 充分有效地利用网络资源。 IPTV既不同于传统的模拟式有线电视, 也不 同于经典的数字电视。 因为, 传统的和经典的数字电视都具有频分制、 定时、 单向广播等特点; 尽管经典的数字电视相对于模拟电视有许多技术革新, 但 只是信号形式的改变, 而没有触及媒体内容的传播方式。 IPTV是利用宽带有 线电视网的基础设施, 以家用电视机作为主要终端电器, 通过互联网络协议 来提供包括电视节目在内的多种数字媒体服务。 因此 IPTV是一种全新的业务 形态, 是集传统电视节目、 互联网信息服务、 增值业务服务于一体的融合性 业务, 同时也是未来数字家庭的真正切入点。 而随着其发展, 用户会逐渐将 IPTV平台认可为其未来家庭业务的一个娱乐、 服务中心。 而 IPTV本身的架构 也决定了其必然要向这个方向发展。  In the ever-changing development of communication technology, IPTV (Internet TV) has gradually penetrated into the lives of the people. IPTV is an interactive network TV. It is a brand-new technology that uses broadband cable TV networks to integrate Internet, multimedia, and communication technologies to provide home users with a variety of interactive services, including digital TV. Users can enjoy IPTV services in two ways at home: computer or network set-top box + regular TV. It can adapt well to the rapid development of today's networks and make full and effective use of network resources. IPTV is different from traditional analog cable TV and is not the same as classic digital TV. Because traditional and classic digital TVs have the characteristics of frequency division, timing, and one-way broadcasting. Although classic digital TV has many technological innovations compared to analog TV, it is only a change in signal form without touching the media content. Propagation mode. IPTV is an infrastructure that utilizes broadband cable television networks, with home televisions as the primary terminal appliances, and a variety of digital media services, including television programming, through Internet Protocol. Therefore, IPTV is a brand-new business form. It is a converged service integrating traditional TV programs, Internet information services and value-added services. It is also the real entry point for future digital homes. With its development, users will gradually recognize the IPTV platform as an entertainment and service center for their future home business. The architecture of IPTV itself also determines that it must develop in this direction.
在 IPTV业务中,为了保证一定的清晰度,通常将媒体内容进行压缩编码, 然而编码后的媒体码率仍然较高。 为了节省传输带宽, 媒体流是通过组播技 术传输来实现。 但是, 用户在观看 IPTV时, 有时会暂停、 后退等, 然后按播 放继续观看。 为了保持用户观看的连续性, 在 IPTV系统中, 会把用户的这种 行为作为"时移"操作来处理。 现有技术的时移操作是: 准备一套供点播用的文件, 内容与直播内容一 致。 正常观看直播内容的用户收到的是通过组播技术传输的节目, 当用户要 求时移时, 系统将用户的请求转换为一个访问文件特定位置的点播要求。 系 统根据用户请求中的断点信息, 在媒体文件中找到相应的位置, 将后续的节 目流以单播技术传输给用户。 In the IPTV service, in order to ensure a certain definition, the media content is usually compression-encoded, but the encoded media code rate is still high. In order to save transmission bandwidth, the media stream is implemented by multicast technology transmission. However, when watching IPTV, users sometimes pause, rewind, etc., and then press play to continue watching. In order to maintain the continuity of the user's viewing, in the IPTV system, the user's behavior is treated as a "time shift" operation. The prior art time shift operation is: Prepare a set of files for on-demand, the content is consistent with the live content. The user who normally views the live content receives the program transmitted through the multicast technology. When the user requests the time shift, the system converts the user's request into an on-demand request for accessing the specific location of the file. The system finds the corresponding location in the media file according to the breakpoint information in the user request, and transmits the subsequent program stream to the user in a unicast technology.
关于实现 IPTV时移的方法, 现有技术中有如下方法: 用户时移后, 服务 器通过单播技术持续传输。 用户后续的操作均针对点播文件, 这就意味着服 务器需要对每个时移用户终端都建立一条单播传输信道。 该方法的缺点在于 随着时移用户数量的增加, 系统带宽的消耗也随之逐渐增大, 系统性能将大 大降低。 发明内容  Regarding the method for realizing IPTV time shift, the following methods are available in the prior art: After the user shifts time, the server continuously transmits through the unicast technology. Subsequent user operations are for on-demand files, which means that the server needs to establish a unicast transport channel for each time-shifted user terminal. The disadvantage of this method is that as the number of time-shifted users increases, the system bandwidth consumption also increases, and system performance will be greatly reduced. Summary of the invention
本发明的主要目的在于提供一种网络电视时移处理方法和系统, 在无需 用户干预的情况下能够自动让用户自动重新切换到组播播放, 解决现有技术 中因为长期存在单播持续传输, 而导致系统带宽消耗增大, 系统性能降低的 技术缺陷。  The main purpose of the present invention is to provide a network TV time shift processing method and system, which can automatically automatically switch users to multicast play without user intervention, and solve the problem of long-term unicast continuous transmission in the prior art. This leads to technical defects in system bandwidth consumption and system performance degradation.
本发明实施例提出一种网络电视时移处理方法, 包括以下步骤: 接收发 生时移后的用户终端的播放命令; 根据所述用户终端的播放命令调整对所述 用户终端的单播传输速率, 使得通过单播传输一定时间后单播传输进程能够 与服务器的组播传输进程一致; 将所述播放命令对应的媒体流通过单播传输 给所述用户终端; 当所述单播传输进程与所述组播传输进程一致时, 将所述 播放命令对应的媒体流切换到组播进行传输。  An embodiment of the present invention provides a network television time shift processing method, including the following steps: receiving a play command of a user terminal after a time shift occurs; and adjusting a unicast transmission rate of the user terminal according to a play command of the user terminal, The unicast transmission process can be consistent with the multicast transmission process of the server after the unicast transmission for a certain period of time; the media stream corresponding to the play command is transmitted to the user terminal by unicast; when the unicast transmission process and the unicast transmission process When the multicast transmission process is consistent, the media stream corresponding to the play command is switched to multicast for transmission.
本发明实施例还提出一种网络电视时移处理系统, 包括服务器和至少一 个用户终端, 所述用户终端, 用于向所述服务器发送播放命令; 所述服务器, 用于根据所述播放命令调整对所述用户终端的单播传输速率, 使得通过单播 传输一定时间后单播传输进程能够与所述服务器的组播传输进程一致, 同时 将所述播放命令对应的媒体流通过单播传输给所述用户终端, 并在所述用户 终端的单播传输进程与所述组播传输进程一致时, 将所述播放命令对应的媒 体流切换到组播进行传输。 The embodiment of the present invention further provides a network television time shift processing system, including a server and at least one user terminal, where the user terminal is configured to send a play command to the server, and the server is configured to adjust according to the play command. The unicast transmission rate of the user terminal is such that the unicast transmission process can be consistent with the multicast transmission process of the server after being transmitted for a certain time by unicast, and simultaneously Transmitting, by the unicast, the media stream corresponding to the play command to the user terminal, and switching the media stream corresponding to the play command when the unicast transmission process of the user terminal is consistent with the multicast transmission process Transfer to multicast.
本发明实施例还提出一种网络电视时移处理服务器, 包括命令接收模块、 单播播放处理模块和组播切换模块, 所述命令接收模块, 用于接收发生时移 的用户终端的播放命令; 所述单播播放处理模块, 用于根据所述播放命令调 整对所述用户终端的单播传输速率, 使得通过单播传输一定时间后单播传输 进程能够与所述服务器的组播传输进程一致, 并将所述用户终端请求的媒体 流通过单播传输给所述用户终端; 所述组播切换模块, 用于在所述单播传输 进程与所述组播传输进程一致时, 将所述播放命令对应的媒体流切换到组播 进行传输。 附图说明  The embodiment of the present invention further provides a network television time shift processing server, including a command receiving module, a unicast playback processing module, and a multicast switching module, where the command receiving module is configured to receive a play command of a user terminal that has a time shift; The unicast playback processing module is configured to adjust a unicast transmission rate to the user terminal according to the play command, so that the unicast transmission process can be consistent with the multicast transmission process of the server after being transmitted by using unicast for a certain period of time And transmitting the media stream requested by the user terminal to the user terminal by using a unicast; the multicast switching module, configured to: when the unicast transmission process is consistent with the multicast transmission process, The media stream corresponding to the play command is switched to multicast for transmission. DRAWINGS
图 1为本发明实施例一的网络电视时移处理方法流程图;  1 is a flowchart of a method for processing time shift of a network television according to Embodiment 1 of the present invention;
图 2为本发明实施例二的网络电视时移处理方法流程图;  2 is a flowchart of a method for processing time shift of a network television according to Embodiment 2 of the present invention;
图 3为本发明实施例网络电视时移处理系统结构图。 具体实施方式  FIG. 3 is a structural diagram of a network television time shift processing system according to an embodiment of the present invention. detailed description
下面结合附图和实施例, 对本发明的具体实施方式作进一步详细描述: 如图 1所示, 为本发明实施例一的网络电视时移处理方法流程图, 该实 施例中能够根据用户终端的命令组合确定相应的速率调整策略, 并根据速率 调整策略对当前的单播传输速率进行调整, 使其能够尽快与组播传输速率保 持一致, 从而切换到组播进行传输。 例如如果用户在按暂停键后又按播放键, 那么就将用户的传输速率适当提高使其能够与组播保持一致,进行实时放送。 其中上述用户终端可以是 STB (Set Top Box, 机顶盒)、 手机或 PC终端等能 够进行 IPTV播放的终端设备。 该实施例包括以下步骤: 步骤 S101, 用户终端向服务器发送请求命令, 服务器会返回对该请求命 令的响应, 并相应的向用户终端传送用户终端请求的媒体。 The embodiment of the present invention is further described in detail with reference to the accompanying drawings and embodiments. FIG. 1 is a flowchart of a network television time shift processing method according to Embodiment 1 of the present invention, which can be based on a user terminal in this embodiment. The command combination determines the corresponding rate adjustment policy, and adjusts the current unicast transmission rate according to the rate adjustment policy, so that it can be consistent with the multicast transmission rate as soon as possible, thereby switching to multicast for transmission. For example, if the user presses the play button after pressing the pause button, the user's transmission rate is appropriately increased to be consistent with the multicast, and the real-time delivery is performed. The user terminal may be a terminal device capable of IPTV playback, such as an STB (Set Top Box), a mobile phone, or a PC terminal. This embodiment includes the following steps: Step S101: The user terminal sends a request command to the server, and the server returns a response to the request command, and correspondingly transmits the media requested by the user terminal to the user terminal.
步骤 S102, 在收到用户终端暂停、 快退或后拖等导致进入时移状态的命 令后, 服务器判断该用户终端出现时移。  Step S102: After receiving the command that the user terminal pauses, rewinds, or drags to enter the time shift state, the server determines that the user terminal has a time shift.
步骤 S103, 服务器接收时移用户终端的播放命令。 为了便于对该实施例 的理解, 下面对 IPTV中的命令进行筒述, 常见的应用于 IPTV的请求和响应 命令的协议为 RTSP协议。 其中, RTSP 由消息头和消息体构成, 消息头中除 了定义命令名称之外, 还定义了一些与该命令相关的属性。 在 RTSP协议里, 暂停由 RTSP-PAUSE命令实现; 播放由 RTSP-PLAY命令实现, 该命令消息的 Scale属性为 1;快退操作也可由 RTSP—PLAY命令实现,但该命令消息的 Scale 属性为一个非 0的有理数,例如 Scale=-3.5表示用户终端要求以 3.5倍相对 于正常播放的速度快退。  Step S103: The server receives a play command of the time shifting user terminal. In order to facilitate the understanding of the embodiment, the commands in the IPTV are described below. The common protocol for requesting and responding to the IPTV is the RTSP protocol. RTSP consists of a message header and a message body. In addition to defining the command name, the message header defines some attributes related to the command. In the RTSP protocol, the pause is implemented by the RTSP-PAUSE command; the playback is implemented by the RTSP-PLAY command, and the Scale attribute of the command message is 1; the fast rewind operation can also be implemented by the RTSP-PLAY command, but the Scale attribute of the command message is one. A non-zero rational number, such as Scale=-3.5, indicates that the user terminal is required to rewind 3.5 times relative to the normal playback speed.
步骤 S1Q4, 服务器判断所述播放命令是否是在暂停、 快退或后拖等导致 进入时移状态的命令之后的播放命令, 即判断是否在步骤 S102 后接收到 RTSP-PLAY 命令。 如果服务器收到的正常播放命令是在暂停、 前进或后拖等 导致进入时移状态的命令之后,那么服务器就默认为需要调整单播传输速率, 使得通过单播传输一定时间后单播传输进程能够与所述服务器的组播传输进 程一致。  Step S1Q4, the server determines whether the play command is a play command after a command that causes a time shift state, such as pause, rewind, or post drag, to determine whether the RTSP-PLAY command is received after step S102. If the normal play command received by the server is after a pause, forward or backward drag command that causes the time shift status to be entered, then the server defaults to the need to adjust the unicast transmission rate so that the unicast transmission process is transmitted after unicast for a certain period of time. It can be consistent with the multicast transmission process of the server.
步骤 S105, 由于快退操作也可由 RTSP_PLAY 命令实现, 因此在收到 RTSP-PLAY命令之后还需要检测其 Scale参数是否为 1。如果 Scale参数不为 1, 表示用户可能在按"快进"或"快退"键, 则系统以媒体服务器默认的处理方 式进行处理。 当 Scale参数为 1, 系统则以预设的策略修改 Scale值。  Step S105, since the fast rewind operation can also be implemented by the RTSP_PLAY command, it is also required to detect whether the Scale parameter is 1 after receiving the RTSP-PLAY command. If the Scale parameter is not 1, it means that the user may press the "fast forward" or "rewind" button, the system will process it in the media server's default processing mode. When the Scale parameter is 1, the system modifies the Scale value with a preset policy.
步骤 S106, 如果是暂停命令之后的播放命令且 Scale值为 1, 则根据用 户终端的播放命令确定对应的速率调整策略。 作为一个优选实施例, 本发明 提出的速率调整策略如下表所示:  Step S106, if it is a play command after the pause command and the Scale value is 1, the corresponding rate adjustment policy is determined according to the play command of the user terminal. As a preferred embodiment, the rate adjustment strategy proposed by the present invention is as follows:
表 1 单播播放速率调整策略 速率调整 Table 1 Unicast Play Rate Adjustment Strategy Rate adjustment
特点 实现方法  Features
策略  Strategy
服务器以正常倍速  Server at normal speed
正常倍速 RTSP— PLAY命令的 Sca le=l 播放媒体内容  Normal double speed RTSP — PLAY command Sca le=l Play media content
以一个恒定的的速度播 RTSP-PLAY命令的 Sca l e为预 快速播放  Broadcast the RTSP-PLAY command at a constant speed for pre-fast playback
放, 播放速度是一个有理数 设的有理数。  Put, the playback speed is a reasonable number of reasonable numbers.
单播播放速度: RTSP-PLAY命 在一个预置的时间内 令的 Sca le参数为: 智能加速  Unicast playback speed: RTSP-PLAY The Sca le parameter in a preset time is: Smart Acceleration
追上组播播放 1 + (当前组播媒体帧号 -当前 单播媒体帧号) /单帧播放时间 步骤 S107 , 根据预设的速率调整策略修改 Sca le值, 从而指导单播以预 设的速率调整策略快速播放, 将用户终端请求的媒体流通过单播传输给用户 终端。 例如速率调整策略为快速播放, 且 Sca le值为 1. 5 , 则单播将以 1. 5 倍的速率进行快速播放, 其中 Sca le值的设置以不影响用户收看为宜。  Catch up to multicast playback 1 + (current multicast media frame number - current unicast media frame number) / single frame playback time step S107, modify the Sca le value according to the preset rate adjustment policy, thereby guiding unicast to preset The rate adjustment policy is quickly played, and the media stream requested by the user terminal is transmitted to the user terminal through unicast. For example, if the rate adjustment policy is fast playback, and the Sca le value is 1. 5 , the unicast will play at a speed of 1. 5 times, and the Sca le value is set to not affect the user's viewing.
步骤 S108 , 当单播传输进程与服务器的组播传输进程一致时, 服务器将 对播放命令对应的媒体流切换到组播进行传输, 并删除单播传输信道。  Step S108: When the unicast transmission process is consistent with the multicast transmission process of the server, the server switches the media stream corresponding to the play command to multicast for transmission, and deletes the unicast transmission channel.
通过上述实施例能够根据用户输入的正常播放命令对单播进行快速播 放, 并在单播播放追上组播播放时, 将媒体流切换到组播进行传输, 并删除 单播传输信道, 从而达到节省带宽的目的。  According to the foregoing embodiment, the unicast can be quickly played according to the normal play command input by the user, and when the unicast play catches up with the multicast play, the media stream is switched to the multicast for transmission, and the unicast transport channel is deleted, thereby achieving Save bandwidth.
与现有技术相比, 本发明实施例能够通过解析用户在时移状态后的正常 播放命令, 判断是否需要根据该正常播放命令对单播传输速率进行调整, 使 其能够在不影响用户收看的情况下使其传输的媒体流能够逐渐与组播传输的 保持一致, 从而最终将单播传输信道删除, 达到节省带宽, 优化系统性能的 目的。  Compared with the prior art, the embodiment of the present invention can determine whether the unicast transmission rate needs to be adjusted according to the normal play command by parsing the normal play command of the user after the time shift state, so that the user can watch the broadcast without affecting the user's viewing. In this case, the media stream that is transmitted can be gradually consistent with the multicast transmission, thereby finally deleting the unicast transmission channel, thereby saving bandwidth and optimizing system performance.
如图 2所示, 为本发明实施例二的网络电视时移处理方法流程图。 在该 实施例中采用轮播服务器的发送组播组的方式, 为用户终端选择开始播放时 间最接近的组播组使其加入, 这样需要调整用户单播播放的时间最短, 因此 对用户产生的影响也最小。  FIG. 2 is a flowchart of a network television time shift processing method according to Embodiment 2 of the present invention. In this embodiment, the manner in which the multicast group is sent by the carousel server is used to select the multicast group whose playing time is closest to the user terminal to join, so that the time for the user to play the unicast is the shortest, and thus the user is generated. The impact is also minimal.
步骤 S 201 , 轮播服务器以固定的时间间隔向不同的组播组发送同一个媒 体内容, 并为每个组播组对应一个组播链接。 但是对于用户来说服务器对于 一个特定媒体只为该用户提供一个媒体链接, 用户在点击该媒体链接后由服 务器选择该用户应当加入哪个组播组, 然后在根据该组播组对应的组播链接 进行接入。 Step S201: The carousel server sends the same media to different multicast groups at regular time intervals. Body content, and a multicast link for each multicast group. However, for the user, the server only provides a media link for the user for a specific media. After clicking the media link, the server selects which multicast group the user should join, and then the multicast link corresponding to the multicast group. Access is made.
步骤 S202 , 服务器接收发生时移的用户终端的播放命令。 由于用户终端 在进行播放时已经发生了时移, 无法与正常播放的组播保持一致。 因此服务 器需要通过单播方式向用户传送用户终端请求的媒体。  Step S202: The server receives a play command of the user terminal that is time-shifted. Since the user terminal has time-shifted during playback, it cannot be consistent with the multicast that is normally played. Therefore, the server needs to transmit the media requested by the user terminal to the user through unicast.
步骤 S203 , 服务器根据用户终端发送播放命令的时间, 选择与用户终端 发送所述播放命令的时间最接近的组播组。 作为本发明的一个实施例, 具体 为: 服务器读取接收用户播放命令的当前时间 t , 查找最接近的组播组的开 播时间 T, 其中查找相应组播组的开播时间 T优选可采用快速查找算法进行, 如二分法等。 计算开播时间 T 与接收命令的当前时间 t 的差值, 如计算 min | t-T |。 从而根据开播时间 T与接收命令的当前时间 t的差值的最小值确 定相应的最接近的组播组。  Step S203: The server selects a multicast group that is closest to the time when the user terminal sends the play command according to the time when the user terminal sends the play command. As an embodiment of the present invention, the specific time is: the server reads the current time t of receiving the user play command, and searches for the start time T of the closest multicast group, wherein the search time T of the corresponding multicast group is preferably used to quickly find Algorithms are performed, such as dichotomy. Calculate the difference between the start time T and the current time t of the received command, such as calculating min | t-T |. Therefore, the corresponding closest multicast group is determined according to the minimum value of the difference between the broadcast time T and the current time t of the received command.
步骤 S204 , 服务器根据所述发送播放命令的时间与所述组播组播放时间 差设置相应的速率调整策略。 同样在该实施例中速率调整策略也可为正常倍 速、 快速播放或智能播放。 通过设置速率调整策略从而使得通过单播传输一 定时间后单播传输进程能够与所述服务器的组播传输进程一致。  Step S204: The server sets a corresponding rate adjustment policy according to the time when the play command is sent and the multicast group play time difference. Also in this embodiment the rate adjustment strategy can be normal speed, fast play or smart play. By setting the rate adjustment policy, the unicast transmission process can be consistent with the multicast transmission process of the server after a certain time of transmission by unicast.
步骤 S205 , 根据速率调整策略设置 RTSP-PLAY命令的 Sca l e值。 具体为 首先根据组播组开播时间 T与接收命令的当前时间 t的差值的正负, 若判断 t-T 为正, 则说明用户播放时间早于确定的组播组的开播时间, 因此设置 Sca l e为负数减慢播放速度; 若判断 t-T为负正, 则说明用户播放时间晚于 确定的组播组的开播时间, 因此设置 Sca l e为正数加快播放速度。  Step S205: Set a Sca l e value of the RTSP-PLAY command according to the rate adjustment policy. Specifically, firstly, according to the difference between the multicast group broadcast time T and the current time t of the received command, if it is determined that tT is positive, the user play time is earlier than the determined multicast group start time, so Sca le is set. If the tT is negative, the user playback time is later than the determined multicast group start time. Therefore, setting Sca le to a positive number speeds up the playback speed.
步骤 S206 , 服务器根据当前用户 RTSP_PLAY命令对应的 Sca l e值调整单 播的播放速度, 将用户终端请求的媒体流通过单播传输给用户终端。  Step S206: The server adjusts the playback speed of the unicast according to the Sca l e value corresponding to the current user RTSP_PLAY command, and transmits the media stream requested by the user terminal to the user terminal by using unicast.
步骤 S207 , 当所述单播传输进程与组播组的组播传输进程一致时, 服务 器将对所述用户终端的媒体流切换到服务器选择的组播组进行传输, 并删除 单播传输信道。 Step S207: When the unicast transmission process is consistent with the multicast transmission process of the multicast group, the service The device will switch the media stream of the user terminal to the multicast group selected by the server, and delete the unicast transmission channel.
本发明上述实施例通过为请求播放的用户选择最接近的组播组, 并根据 组播组与当前用户请求的时间差对单播播放速度进行调整, 从而在无需用户 干预的情况下, 使单播播放能够与组播播放保持一致, 并在单播播放能够与 组播播放保持一致时, 将媒体流切换到组播进行传输, 并删除单播传输信道, 从而达到节省带宽的目的。  The foregoing embodiment of the present invention selects the closest multicast group for the user requesting to play, and adjusts the unicast playback speed according to the time difference between the multicast group and the current user request, thereby enabling unicast without user intervention. Playback can be consistent with multicast playback, and when unicast playback can be consistent with multicast playback, the media stream is switched to multicast for transmission, and the unicast transmission channel is deleted, thereby achieving bandwidth saving.
如图 3所示, 为本发明实施例网络电视时移处理系统结构图, 该系统包 括服务器 1和至少一个用户终端 2 , 用户终端 2用于向服务器 1发送播放命 令, 其中上述用户终端 2可以是 STB、 手机或 PC终端等能够进行 IPTV播放 的终端设备; 服务器 1用于根据用户终端 2发送的播放命令调整对用户终端 2 的单播传输速率, 使得通过单播传输一定时间后单播传输进程能够与所述 服务器 1的组播传输进程一致, 同时将播放命令对应的媒体流通过单播传输 给用户终端 2 , 并在用户终端 2 的单播传输进程与组播传输进程一致时, 将 播放命令对应的媒体流切换到组播进行传输。  As shown in FIG. 3, it is a structural diagram of a network television time shift processing system according to an embodiment of the present invention. The system includes a server 1 and at least one user terminal 2, and the user terminal 2 is configured to send a play command to the server 1, where the user terminal 2 can It is a terminal device capable of performing IPTV playback, such as an STB, a mobile phone, or a PC terminal; the server 1 is configured to adjust a unicast transmission rate to the user terminal 2 according to a play command sent by the user terminal 2, so that unicast transmission after a certain time is transmitted through unicast The process can be consistent with the multicast transmission process of the server 1, and the media stream corresponding to the play command is transmitted to the user terminal 2 through unicast, and when the unicast transmission process of the user terminal 2 is consistent with the multicast transmission process, The media stream corresponding to the play command is switched to multicast for transmission.
其中, 服务器 1 包括命令接收模块 11、 单播播放处理模块 12和组播切 换模块 1 3。 命令接收模块 1 1用于接收发生时移的用户终端 2的播放命令; 单播播放处理模块 12用于所述命令接收模块 11接收到播放命令后, 根据命 令接收模块 11接收的播放命令调整对用户终端 2的单播传输速率,使得通过 单播传输一定时间后单播传输进程能够与服务器 1的组播传输进程一致, 并 将用户终端 2请求的媒体流通过单播传输给用户终端 2 ; 组播切换模块 1 3用 于在单播传输进程与服务器 1 的组播传输进程一致时, 将对播放命令对应的 媒体流切换到组播进行传输。  The server 1 includes a command receiving module 11, a unicast playback processing module 12, and a multicast switching module 13. The command receiving module 1 1 is configured to receive a play command of the user terminal 2 that occurs when the time shift occurs. The unicast play processing module 12 is configured to adjust the play command according to the play command received by the command receiving module 11 after the command receiving module 11 receives the play command. The unicast transmission rate of the user terminal 2 is such that the unicast transmission process can be consistent with the multicast transmission process of the server 1 after the unicast transmission for a certain period of time, and the media stream requested by the user terminal 2 is transmitted to the user terminal 2 by unicast; The multicast switching module 13 is configured to switch the media stream corresponding to the play command to multicast for transmission when the unicast transmission process is consistent with the multicast transmission process of the server 1.
其中,单播播放处理模块 12包括判断子模块 121和速率调整策略确定子 模块 122 , 判断子模块 121用于判断所述播放命令是否是在暂停、 快退或后 拖等导致进入时移状态的命令之后的正常播放命令; 速率调整策略确定子模 块 122用于在判断子模块 121判断是在导致进入时移状态的命令之后的播放 命令时, 根据用户终端 2的播放命令确定对应的速率调整策略, 并根据所述 速率调整策略调整时移用户终端 2的单播传输速率, 使得通过单播传输一定 时间后单播传输进程能够与服务器 1的组播传输进程一致。 The unicast playback processing module 12 includes a judging sub-module 121 and a rate adjustment policy determining sub-module 122, and the judging sub-module 121 is configured to determine whether the play command is in a time-shift state caused by pause, rewind, or drag. Normal play command after command; rate adjustment strategy determines submodule The block 122 is configured to determine, according to the play command of the user terminal 2, a corresponding rate adjustment policy, and adjust the time shift user according to the rate adjustment policy, when the determining submodule 121 determines that the play command is after the command that causes the time shift state to be entered. The unicast transmission rate of the terminal 2 enables the unicast transmission process to be consistent with the multicast transmission process of the server 1 after being transmitted for a certain time by unicast.
其中, 服务器 1还包括轮播服务器模块 14 , 用于以固定的时间间隔向不 同的组播组发送同一媒体流。  The server 1 further includes a carousel server module 14 for transmitting the same media stream to different multicast groups at regular time intervals.
其中,单播播放处理模块 12包括组播组确定子模块 123和速率调整策略 设置子模块 124 , 组播组确定子模块 123用于选择启动时间与用户终端 2发 送播放命令时间最接近的组播组; 速率调整策略设置子模块 124根据选择的 组播组的播放时间与播放命令的接收时间设置所述速率调整策略, 调整对用 户终端 2的单播传输速率。  The unicast playback processing module 12 includes a multicast group determining sub-module 123 and a rate adjustment policy setting sub-module 124, and the multicast group determining sub-module 123 is configured to select a multicast that has the closest start time to the user terminal 2 to send the play command time. The rate adjustment policy setting sub-module 124 sets the rate adjustment policy according to the playing time of the selected multicast group and the receiving time of the play command, and adjusts the unicast transmission rate to the user terminal 2.
其中, 服务器 1还包括单播信道删除模块 15 , 用于在组播切换模块 1 3 将对用户终端 2的媒体流切换到组播进行传输后, 删除单播传输信道。  The server 1 further includes a unicast channel deletion module 15 for deleting the unicast transmission channel after the multicast switching module 13 transfers the media stream of the user terminal 2 to the multicast.
通过上述实施例的网络电视时移处理系统, 能够用户输入的正常的播放 命令, 判断是否需要根据该正常播放命令对单播传输速率进行调整, 使其能 够在不影响用户收看的情况下尽快与组播保持一致, 从而将单播传输信道删 除, 达到节省带宽的目的。  Through the network television time shift processing system of the above embodiment, the normal play command input by the user can determine whether the unicast transmission rate needs to be adjusted according to the normal play command, so that it can be quickly and without affecting the user's viewing. The multicast is consistent, which removes the unicast transport channel and saves bandwidth.
本领域普通技术人员可以理解: 实现上述方法实施例的全部或部分步骤 可以通过程序指令相关的硬件来完成, 前述的程序可以存储于一计算机可读 取存储介质中, 该程序在执行时, 执行包括上述方法实施例的步骤; 而前述 的存储介质包括: R0M、 RAM, 磁碟或者光盘等各种可以存储程序代码的介质。  A person skilled in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by using hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed. The steps of the foregoing method embodiments are included; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
上述通过以上的实施方式的描述, 本领域的技术人员可以清楚地了解到 本发明可借助软件加必需的通用硬件平台的方式来实现, 当然也可以通过硬 件, 但很多情况下前者是更佳的实施方式。 基于这样的理解, 本发明的技术 方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出 来, 该计算机软件产品存储在一个存储介质中, 包括若干指令用以使得一台 计算机设备(可以是个人计算机, 服务器, 或者网络设备等)执行本发明各 个实施例所述的方法。 Through the above description of the embodiments, those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, 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 storage medium, including a plurality of instructions for making a Taiwan A computer device (which may be a personal computer, server, or network device, etc.) performs the methods described in various embodiments of the present invention.
以上公开的仅为本发明的几个具体实施例, 但是, 本发明并非局限于此, 任何本领域的技术人员能思之的变化都应落入本发明的保护范围。  The above disclosure is only a few specific embodiments of the present invention, but the present invention is not limited thereto, and any changes that can be considered by those skilled in the art should fall within the protection scope of the present invention.

Claims

权 利 要 求 Rights request
1、 一种网络电视时移处理方法, 其特征在于, 包括以下步骤:  A network television time shift processing method, characterized in that the method comprises the following steps:
接收发生时移后的用户终端的播放命令;  Receiving a play command of the user terminal after the time shift occurs;
根据所述用户终端的播放命令调整对所述用户终端的单播传输速率, 使 得通过单播传输一定时间后单播传输进程能够与服务器的组播传输进程一 致;  Adjusting a unicast transmission rate to the user terminal according to a play command of the user terminal, so that the unicast transmission process can be consistent with the multicast transmission process of the server after being transmitted by unicast for a certain period of time;
将所述播放命令对应的媒体流通过单播传输给所述用户终端;  Transmitting, by the unicast, the media stream corresponding to the play command to the user terminal;
当所述单播传输进程与所述组播传输进程一致时, 将所述播放命令对应 的媒体流切换到组播进行传输。  When the unicast transmission process is consistent with the multicast transmission process, the media stream corresponding to the play command is switched to multicast for transmission.
2、 根据权利要求 1所述的网络电视时移处理方法, 其特征在于, 所述根 据所述用户终端的播放命令调整对所述用户终端的单播传输速率,具体包括: 播放命令;  The network television time shift processing method according to claim 1, wherein the adjusting the unicast transmission rate of the user terminal according to the play command of the user terminal, specifically: a play command;
如果所述播放命令是在导致进入时移状态的命令之后的正常播放命令, 则根据所述用户终端的播放命令应用速率调整策略;  If the play command is a normal play command after the command that causes the time shift state to be entered, the rate adjustment policy is applied according to the play command of the user terminal;
根据所述速率调整策略调整所述用户终端的单播传输速率。  Adjusting a unicast transmission rate of the user terminal according to the rate adjustment policy.
3、 根据权利要求 1所述的网络电视时移处理方法, 其特征在于, 根据用 户终端的播放命令调整对所述用户终端的单播传输速率具体为:  The network television time shift processing method according to claim 1, wherein the unicast transmission rate of the user terminal is adjusted according to a play command of the user terminal:
为所述用户终端选择启动时间与所述用户终端发送所述播放命令时间最 接近的组播组;  Selecting, for the user terminal, a multicast group whose startup time is closest to the time when the user terminal sends the play command time;
根据所述发送播放命令的时间与所述组播组启动传输时间的时间差设置 相应的速率调整策略;  Setting a rate adjustment policy according to a time difference between the time when the play command is sent and the start time of the multicast group start transmission;
根据所述速率调整策略调整对所述用户终端的单播传输速率;  Adjusting a unicast transmission rate to the user terminal according to the rate adjustment policy;
所述将对所述播放命令对应的媒体流切换到组播进行传输具体为: 将所述播放命令对应的媒体流切换到所述选择的组播组进行传输。  The media stream corresponding to the play command is switched to multicast for transmission, where the media stream corresponding to the play command is switched to the selected multicast group for transmission.
4、 根据权利要求 2或 3所述的网络电视时移处理方法, 其特征在于, 所 述速率调整策略包括正常倍速、 快速播放、 慢速播放或智能播放中的一种或 多种。 The network television time shift processing method according to claim 2 or 3, wherein The rate adjustment strategy includes one or more of normal double speed, fast play, slow play, or smart play.
5、 如权利要求 1所述的网络电视时移处理方法, 其特征在于, 在对所述 播放命令对应的媒体流切换到组播进行传输之后, 还包括: 删除单播传输信 道。  The network television time shift processing method according to claim 1, wherein after the media stream corresponding to the play command is switched to multicast for transmission, the method further comprises: deleting the unicast transmission channel.
6、 一种网络电视时移处理系统, 其特征在于, 包括服务器, 可用于接收 可处理用户终端的播放命令;  A network television time shift processing system, comprising: a server, configured to receive a play command capable of processing a user terminal;
所述用户终端, 用于向所述服务器发送播放命令;  The user terminal is configured to send a play command to the server;
所述服务器, 用于根据所述播放命令调整对所述用户终端的单播传输速 率, 使得通过单播传输一定时间后单播传输进程能够与所述服务器的组播传 输进程一致, 同时将所述播放命令对应的媒体流通过单播传输给所述用户终 端, 并在所述用户终端的单播传输进程与所述组播传输进程一致时, 将所述 播放命令对应的媒体流切换到组播进行传输。  The server is configured to adjust a unicast transmission rate to the user terminal according to the play command, so that the unicast transmission process can be consistent with the multicast transmission process of the server after being transmitted for a certain time by using unicast, and The media stream corresponding to the play command is transmitted to the user terminal by using a unicast, and when the unicast transmission process of the user terminal is consistent with the multicast transmission process, the media stream corresponding to the play command is switched to the group. Broadcast for transmission.
7、 一种网络电视时移处理服务器, 其特征在于, 包括命令接收模块、 单 播播放处理模块和组播切换模块,  A network television time shift processing server, comprising: a command receiving module, a unicast playback processing module, and a multicast switching module,
所述命令接收模块, 用于接收发生时移的用户终端的播放命令; 所述单播播放处理模块, 用于根据所述播放命令调整对所述用户终端的 单播传输速率, 使得通过单播传输一定时间后单播传输进程能够与所述服务 器的组播传输进程一致, 并将所述用户终端请求的媒体流通过单播传输给所 述用户终端;  The command receiving module is configured to receive a play command of the user terminal that is time-shifted; the unicast play processing module is configured to adjust a unicast transmission rate to the user terminal according to the play command, so that the unicast transmission rate is After being transmitted for a certain period of time, the unicast transmission process can be consistent with the multicast transmission process of the server, and the media stream requested by the user terminal is transmitted to the user terminal by unicast;
所述组播切换模块, 用于在所述单播传输进程与所述组播传输进程一致 时, 将所述播放命令对应的媒体流切换到组播进行传输。  The multicast switching module is configured to switch the media stream corresponding to the play command to multicast for transmission when the unicast transmission process is consistent with the multicast transmission process.
8、 根据权利要求 7所述的网络电视时移处理服务器, 其特征在于, 所述 单播播放处理模块包括判断子模块和速率调整策略确定子模块,  The network television time shift processing server according to claim 7, wherein the unicast playback processing module comprises a determining submodule and a rate adjustment policy determining submodule,
所述判断子模块, 用于判断所述播放命令是否是在导致进入时移状态的 命令之后的正常播放命令; 所述速率调整策略确定子模块, 用于在所述判断子模块判断是在导致进 入时移状态的命令之后的播放命令时, 根据所述用户终端的播放命令确定对 应的速率调整策略, 并根据所述速率调整策略调整所述时移用户终端的单播 传输速率。 The determining submodule is configured to determine whether the play command is a normal play command after a command that causes a time shift state to be entered; The rate adjustment policy determining submodule is configured to determine, according to a play command of the user terminal, a corresponding rate adjustment policy, according to the play command after the determining submodule determines that the command is to enter the time shift state, and according to the play command The rate adjustment policy adjusts a unicast transmission rate of the time-shifted user terminal.
9、 根据权利要求 7所述的网络电视时移处理服务器, 其特征在于, 还包 括轮播服务器模块,用于以固定的时间间隔向不同的组播组发送同一媒体流。  The network television time-shift processing server according to claim 7, further comprising a carousel server module, configured to send the same media stream to different multicast groups at fixed time intervals.
10、 根据权利要求 9所述的网络电视时移处理服务器, 其特征在于, 所 述单播播放处理模块包括组播组确定子模块和速率调整策略设置子模块, 所述组播组确定子模块, 用于选择启动时间与用户终端发送所述播放命 令时间最接近的组播组;  The network television time-shift processing server according to claim 9, wherein the unicast playback processing module comprises a multicast group determining sub-module and a rate adjustment policy setting sub-module, and the multicast group determining sub-module And selecting a multicast group whose startup time is closest to the time when the user terminal sends the play command;
所述速率调整策略设置子模块, 根据所述选择的组播组的播放时间与播 放命令的接收时间设置所述速率调整策略, 根据所述速率调整策略调整对所 述用户终端的单播传输速率。  The rate adjustment policy setting sub-module sets the rate adjustment policy according to the play time of the selected multicast group and the receiving time of the play command, and adjusts the unicast transmission rate to the user terminal according to the rate adjustment policy. .
11、 根据权利要求 7所述的网络电视时移处理服务器, 其特征在于, 还 包括单播信道删除模块, 用于在所述组播切换模块将所述播放命令对应的媒 体流切换到组播进行传输后, 删除单播传输信道。  The network television time-shift processing server according to claim 7, further comprising a unicast channel deletion module, configured to switch, by the multicast switching module, the media stream corresponding to the play command to multicast After the transmission, the unicast transmission channel is deleted.
12、 一种计算机可读存储介质, 其特征在于, 所述计算机可读存储介质 存储有计算机程序代码, 当所述计算机程序代码被一个计算机执行的时候能 够实现:  12. A computer readable storage medium, characterized in that the computer readable storage medium stores computer program code that can be implemented when the computer program code is executed by a computer:
接收发生时移后的用户终端的播放命令;  Receiving a play command of the user terminal after the time shift occurs;
根据所述用户终端的播放命令调整对所述用户终端的单播传输速率, 使 得通过单播传输一定时间后单播传输进程能够与服务器的组播传输进程一 致;  Adjusting a unicast transmission rate to the user terminal according to a play command of the user terminal, so that the unicast transmission process can be consistent with the multicast transmission process of the server after being transmitted by unicast for a certain period of time;
将所述播放命令对应的媒体流通过单播传输给所述用户终端;  Transmitting, by the unicast, the media stream corresponding to the play command to the user terminal;
当所述单播传输进程与所述组播传输进程一致时, 将所述播放命令对应 的媒体流切换到组播进行传输。  When the unicast transmission process is consistent with the multicast transmission process, the media stream corresponding to the play command is switched to multicast for transmission.
PCT/CN2008/070881 2007-11-07 2008-05-05 Method and system for processing the time-shifting of iptv WO2009059499A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
EP08168632A EP2059044A3 (en) 2007-11-07 2008-11-07 Method and system for IPTV time shift processing

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2007101665962A CN101431657B (en) 2007-11-07 2007-11-07 Time shift processing method, system and apparatus for network TV
CN200710166596.2 2007-11-07

Publications (1)

Publication Number Publication Date
WO2009059499A1 true WO2009059499A1 (en) 2009-05-14

Family

ID=40625372

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2008/070881 WO2009059499A1 (en) 2007-11-07 2008-05-05 Method and system for processing the time-shifting of iptv

Country Status (2)

Country Link
CN (1) CN101431657B (en)
WO (1) WO2009059499A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102149021B (en) * 2010-02-05 2013-09-25 华为技术有限公司 Method, device and system for processing network time shift
WO2011157143A2 (en) * 2011-05-31 2011-12-22 华为技术有限公司 Method and device for multi-rates handover in live broadcast
CN112019927B (en) * 2020-09-23 2023-01-06 Oppo广东移动通信有限公司 Video live broadcast method, microphone connecting equipment, live broadcast system and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1852421A (en) * 2005-11-30 2006-10-25 华为技术有限公司 Method for realizing switch-over between living broadcasting and time-shifting broadcasting
CN1902934A (en) * 2003-12-31 2007-01-24 皇家飞利浦电子股份有限公司 A time-shifting device in a home network
US20070081789A1 (en) * 2005-10-06 2007-04-12 Lockheed Martin Corporation Time shifting for video
KR20070060969A (en) * 2005-12-09 2007-06-13 한국전자통신연구원 Method of time-shifting service in multicast based iptv

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1946173A (en) * 2006-10-10 2007-04-11 华为技术有限公司 IPTV direct broadcast service control method, system and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1902934A (en) * 2003-12-31 2007-01-24 皇家飞利浦电子股份有限公司 A time-shifting device in a home network
US20070081789A1 (en) * 2005-10-06 2007-04-12 Lockheed Martin Corporation Time shifting for video
CN1852421A (en) * 2005-11-30 2006-10-25 华为技术有限公司 Method for realizing switch-over between living broadcasting and time-shifting broadcasting
KR20070060969A (en) * 2005-12-09 2007-06-13 한국전자통신연구원 Method of time-shifting service in multicast based iptv

Also Published As

Publication number Publication date
CN101431657A (en) 2009-05-13
CN101431657B (en) 2011-11-02

Similar Documents

Publication Publication Date Title
US20190028524A1 (en) Recording of abr content
TWI508538B (en) Video streams playback method and system
US8949892B2 (en) Image sampling from multicast streams
WO2016049976A1 (en) Method and system for realizing streaming media data seamlessly connecting in intelligent home
WO2012071998A1 (en) Method and client for downloading media file in content distribution network
CN102177691A (en) Systems and methods of reducing media stream delay
US20080271097A1 (en) System And Method For Receiving And Playing Network Television Programs
CN112399190B (en) Audio and video data acquisition method and device
US10587657B2 (en) Processing signaling changes
JP5781550B2 (en) Media content data reproducing apparatus and method
WO2009140922A1 (en) Methods and apparatuses for generating channel information, access controlling and delivering and iptv system
US8230468B2 (en) Dynamically creating trick files to hide latency in streaming networks
US20140337909A1 (en) Network personal video recorder system, method and associated subscriber device
WO2015035742A1 (en) Method, terminal and system for audio and video sharing of digital television
WO2015090161A1 (en) Method and system for providing tv program through smart tv
CN104284227A (en) Mobile phone remote control television system
WO2015117291A1 (en) Method and device for switching network television program, and television system
WO2009059499A1 (en) Method and system for processing the time-shifting of iptv
WO2008141542A1 (en) A method, video device and system for displaying information at the time of switching channels
TWI431994B (en) Method and system for playing multimedia file and computer program product using the method
WO2012034430A1 (en) Method and device for controlling bandwidth of set top boxes in internet protocol television (iptv) system
KR101548501B1 (en) Chunk based seamless stream transmitting and receiving apparatus and the method thereof
CN202206510U (en) Embedded set top box with built-in P2P management system
CN105100887A (en) Program playing control method and apparatus
KR100880569B1 (en) Method for transporting vod contents in electric control transport protocol environment of mobile iptv

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: 08734237

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: 08734237

Country of ref document: EP

Kind code of ref document: A1