WO2012174956A1 - Iptv channel switching method and device - Google Patents

Iptv channel switching method and device Download PDF

Info

Publication number
WO2012174956A1
WO2012174956A1 PCT/CN2012/075308 CN2012075308W WO2012174956A1 WO 2012174956 A1 WO2012174956 A1 WO 2012174956A1 CN 2012075308 W CN2012075308 W CN 2012075308W WO 2012174956 A1 WO2012174956 A1 WO 2012174956A1
Authority
WO
WIPO (PCT)
Prior art keywords
stream data
media stream
client
iptv channel
sent
Prior art date
Application number
PCT/CN2012/075308
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 WO2012174956A1 publication Critical patent/WO2012174956A1/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/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/231Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
    • H04N21/23106Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion involving caching operations
    • 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/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
    • H04N21/2401Monitoring of the client buffer
    • 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/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
    • H04N21/2408Monitoring of the upstream path of the transmission network, e.g. client requests
    • 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/61Network physical structure; Signal processing
    • H04N21/6156Network physical structure; Signal processing specially adapted to the upstream path of the transmission network
    • H04N21/6175Network physical structure; Signal processing specially adapted to the upstream path of the transmission network involving transmission via Internet

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)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Disclosed are an IPTV channel switching method and device, capable of buffering media stream data of each IPTV channel sent by a program source; extracting a PAT and a PMT of each IPTV channel; upon receiving a multicast group joining message from a client, sending to the client the PAT and the PMT corresponding to the multicast group joining message; further sending to the client the buffered media stream data of the IPTV channel corresponding to the multicast group joining message. The sent media stream data is completely the copy of the buffered media stream data, so that the present invention enables a client to perform decoding and playing directly, thereby increasing the IPTV channel switching speed.

Description

IPTV频道切换的方法及装置 技术领域  Method and device for IPTV channel switching
本发明涉及到通信领域, 特别涉及到一种 IPTV频道切换的方法及装 置。 背景技术  The present invention relates to the field of communications, and in particular, to a method and apparatus for IPTV channel switching. Background technique
随着网络应用的普及, IPTV应用得到广泛的认可。 但是困扰运营商和 用户的一个重要问题就是 IPTV频道切换速度慢。 现有的 IPTV系统在切换 速度上不能和传统的有线电视相比。因此提升 IPTV频道切换的速度成为一 个重要的关注点。  With the popularity of network applications, IPTV applications are widely recognized. However, an important issue that plagues operators and users is the slow switching speed of IPTV channels. Existing IPTV systems cannot be compared to traditional cable televisions in terms of switching speed. Therefore, increasing the speed of IPTV channel switching has become an important concern.
现有 IPTV系统以组播为基本传输技术。频道切换由客户端发送组播的 离开和加入完成。 在频道切换的过程中, 造成切换速度慢的原因有组播离 开和加入的处理时间、 客户端上关键信息获取时间和网络传输延时等。 上 述关键信息指客户端获取后才能够直接进行解码播放的内容, 包括编码中 的 I帧 ( Intra-coded Frame, 帧内编码帧)、 PAT ( Program Associate Table, 节目相关表 )和 PMT ( Program Mapping Table, 节目映射表)。 客户端在开 始接收媒体流数据时, 需要获取关键信息才能开始解码播放媒体流数据, 由于编码技术和网络带宽限制, 关键信息在编码中有一定的时间间隔, 比 如 I帧间隔 2秒, PAT和 PMT间隔 0.5秒, 因此等待关键信息的时间, 就 成了频道切换慢的主要因素。  The existing IPTV system uses multicast as the basic transmission technology. The channel switch is sent by the client to leave and join the multicast. In the process of channel switching, the reasons for the slow switching speed are the processing time of multicast leaving and joining, the key information acquisition time on the client, and the network transmission delay. The above key information refers to the content that can be directly decoded and played by the client, including the I-frame (Intra-coded Frame), PAT (Program Associate Table) and PMT (Program Mapping) in the encoding. Table, program map table). When the client starts to receive the media stream data, it needs to obtain the key information to start decoding the media stream data. Due to the coding technology and network bandwidth limitation, the key information has a certain time interval in the encoding, such as I frame interval of 2 seconds, PAT and The PMT interval is 0.5 seconds, so the time to wait for critical information becomes a major factor in slow channel switching.
为解决上述问题,现有技术提出一种 IPTV媒体流数据通过緩存进行转 发的方法,客户端加入新频道时, 直接从緩存中第一个 I帧开始发送数据给 客户端。上述方法只关注通过緩存加速 IPTV频道的切换,且只关注了 I帧, 没有关注 PAT和 PMT。 但是客户端只收到 I帧的数据还不能直接进行解码 输出, 必须要有对应的 PAT和 PMT才能显示。且由于緩存的内容相对于直 播的内容是有一定的延时的, 比如緩存中针对请求频道緩存了 3个 I帧, 当 该频道被请求时,发送的内容就是相对于当前直播之前 3个 I帧的内容,假 设 I帧的间隔是 2秒,那客户端收到的内容就是 6秒钟之前的内容。这样客 户端相对于直播的媒体流数据之间就存在延时, 而且这样的延时随着緩存 的增加而增加, 无法消除。 发明内容 To solve the above problem, the prior art proposes a method for forwarding IPTV media stream data through a cache. When a client joins a new channel, the client directly sends data to the client from the first I frame in the cache. The above method only focuses on accelerating the switching of the IPTV channel through the cache, and only pays attention to the I frame, and does not pay attention to the PAT and the PMT. However, the client only receives the data of the I frame and cannot directly decode it. Output, must have corresponding PAT and PMT to display. And because the content of the cache has a certain delay relative to the content of the live broadcast, for example, three I frames are buffered for the requested channel in the cache. When the channel is requested, the content sent is 3 I before the current live broadcast. The content of the frame, assuming that the interval of the I frame is 2 seconds, the content received by the client is the content before 6 seconds. Thus, there is a delay between the client and the live media stream data, and such delay increases as the cache increases, and cannot be eliminated. Summary of the invention
本发明的主要目的为提供一种 IPTV频道切换的方法及装置,提高 IPTV 频道切换速度。  The main object of the present invention is to provide a method and apparatus for IPTV channel switching, which improves the IPTV channel switching speed.
为了达到上述目的, 本发明的技术方案是这样实现的:  In order to achieve the above object, the technical solution of the present invention is achieved as follows:
一种 IPTV频道切换的方法, 包括:  A method for IPTV channel switching, comprising:
緩存节目源发送的各 IPTV频道的媒体流数据;  Cache media stream data of each IPTV channel sent by the program source;
提取各 IPTV频道的节目相关表 PAT和节目映射表 PMT;  Extracting a program related table PAT and a program mapping table PMT of each IPTV channel;
收到客户端的组播组加入艮文时,发送该组播组加入艮文所对应的 PAT 和 PMT至所述客户端; 还发送所述组播组加入报文所对应 IPTV频道的已 緩存的媒体流数据至所述客户端。  When the multicast group of the client is added, the PAT and the PMT corresponding to the multicast group are sent to the client; and the cached IPTV channel corresponding to the multicast group join message is also sent. Media stream data to the client.
其中, 在发送媒体流数据至客户端之后, 还包括:  After the media stream data is sent to the client, the method further includes:
当发送的所緩存的媒体流数据与接收的媒体流数据一致,或者 IPTV频 道直播的媒体流数据从緩存所在的网络设备开始向客户端发送时, 停止发 送对应所述 IPTV频道的已緩存的媒体流数据。  When the sent media stream data is consistent with the received media stream data, or the media stream data broadcasted by the IPTV channel starts to be sent to the client from the network device where the cache is located, stopping sending the cached media corresponding to the IPTV channel Stream data.
其中, 发送所緩存的媒体流数据的速度大于接收媒体流数据的速度。 其中, 发送所述媒体流数据至客户端的方法为: 从通过緩存最后接收 到的完整的 I帧开始发送所緩存的媒体流数据。  The speed at which the buffered media stream data is transmitted is greater than the speed at which the media stream data is received. The method for sending the media stream data to the client is: sending the buffered media stream data from a complete I frame received last through the cache.
其中, 在发送所述媒体流数据至客户端的同时, 还包括:  The sending the media stream data to the client includes:
监控发送的所緩存的媒体流数据与接收的媒体流数据是否一致, 以及 IPTV 频道直播的媒体流数据是否开始从緩存所在的网络设备向客户端发 送。 Monitoring whether the transmitted buffered media stream data is consistent with the received media stream data, and Whether the media stream data broadcasted by the IPTV channel starts to be sent from the network device where the cache is located to the client.
一种 IPTV频道切换的装置, 包括:  A device for switching an IPTV channel, comprising:
緩存模块, 用于緩存节目源发送的各 IPTV频道的媒体流数据; 提取模块, 用于提取各 IPTV频道的 PAT和 PMT;  a cache module, configured to cache media stream data of each IPTV channel sent by the program source; an extracting module, configured to extract PAT and PMT of each IPTV channel;
第一发送模块, 用于在收到客户端的组播组加入报文时, 发送该组播 组加入 ^艮文所对应的 PAT和 PMT至所述客户端;  The first sending module is configured to: when receiving the multicast group joining message of the client, send the PAT and the PMT corresponding to the multicast group to the client;
第二发送模块,用于发送所述组播组加入报文所对应 IPTV频道的已緩 存的媒体流数据至所述客户端。  The second sending module is configured to send the buffered media stream data of the IPTV channel corresponding to the multicast group join message to the client.
其中, 还包括:  Among them, it also includes:
停止模块, 用于在发送的所緩存的媒体流数据与接收的媒体流数据一 致,或者 IPTV频道直播的媒体流数据从緩存所在的网络设备开始向客户端 发送时, 停止发送对应所述 IPTV频道的已緩存的媒体流数据。  The stopping module is configured to stop sending the corresponding IPTV channel when the sent media stream data is consistent with the received media stream data, or the media stream data of the IPTV channel is sent to the client from the network device where the cache is located. Cached media stream data.
其中, 发送所緩存的媒体流数据的速度大于接收媒体流数据的速度。 其中, 所述第二发送模块在发送所述媒体流数据至客户端时, 用于: 从通过緩存最后接收到的完整的 I帧开始发送所緩存的媒体流数据。 其中, 还包括:  The speed at which the buffered media stream data is transmitted is greater than the speed at which the media stream data is received. The second sending module, when sending the media stream data to the client, is configured to: start to send the buffered media stream data from a complete I frame received through the cache. Among them, it also includes:
监控模块, 用于监控发送的所緩存的媒体流数据与接收的媒体流数据 是否一致,以及 IPTV频道直播的媒体流数据是否开始从緩存所在的网络设 备向客户端发送。  The monitoring module is configured to monitor whether the sent cached media stream data is consistent with the received media stream data, and whether the media stream data broadcasted by the IPTV channel starts to be sent from the network device where the cache is located to the client.
本发明提出的一种 IPTV频道切换的方法及装置, 首先緩存所有 IPTV 频道的媒体流数据, 提取各 IPTV频道的 PAT和 PMT, 识别緩存数据中的 I帧。 当收到客户端切换 IPTV频道的请求时, 先发送 PAT和 PMT, 然后从 緩存中最后接收到的完整的 I帧开始发送媒体流数据,由于发送的媒体流数 据完全是緩存的媒体流数据的拷贝,客户端可以直接解码播放,加快了 IPTV 频道的切换速度。 又由于发送从緩存中最后接收到的完整的 I帧开始, 降低 了相对直播的延时影响。 本发明中, 快速发送緩存数据给客户端的同时, 监控直播的媒体流数据是否开始从緩存所在的网络设备向客户端发送, 在 开始后停止发送緩存数据, 之后完全是直播数据流从网络设备进行转发, 避免全部从緩存发送媒体流数据带来的延时问题。 附图说明 The method and device for IPTV channel switching proposed by the present invention first cache media stream data of all IPTV channels, extract PAT and PMT of each IPTV channel, and identify I frames in the buffer data. When receiving the request of the client to switch the IPTV channel, the PAT and the PMT are sent first, and then the media stream data is sent from the last I frame finally received in the cache, because the sent media stream data is completely cached media stream data. Copy, the client can decode and play directly, speeding up IPTV The switching speed of the channel. Also, since the transmission starts from the last I frame received in the cache, the effect of the delay relative to the live broadcast is reduced. In the present invention, when the cache data is quickly sent to the client, the live media stream data is monitored to be sent from the network device where the cache is located to the client, and the cache data is stopped after the start, and then the live data stream is completely transmitted from the network device. Forwarding, avoiding the delay caused by sending media stream data from the cache. DRAWINGS
图 1为本发明 IPTV频道切换的的方法一实施例的流程示意图; 图 2为本发明 IPTV频道切换的的方法又一实施例的流程示意图; 图 3为本发明 IPTV频道切换的的装置一实施例的结构示意图; 图 4为本发明 IPTV频道切换的的装置一实施例的结构示意图。 具体实施方式 参照图 1, 提出本发明 IPTV频道切换的的方法一实施例, 包括: S10、 緩存节目源发送的各 IPTV频道的媒体流数据;  1 is a schematic flowchart of a method for IPTV channel switching according to an embodiment of the present invention; FIG. 2 is a schematic flowchart of another embodiment of an IPTV channel switching method according to the present invention; FIG. 4 is a schematic structural diagram of an apparatus for IPTV channel switching according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Referring to FIG. 1, an embodiment of a method for IPTV channel switching according to the present invention includes: S10. Media stream data of each IPTV channel sent by a cached program source;
S11、 提取各 IPTV频道的 PAT和 PMT;  S11. Extract PAT and PMT of each IPTV channel.
512、 收到客户端的组播组加入报文时, 发送该组播组加入报文所对应 的 PAT和 PMT至所述客户端;  512. When receiving the multicast group join message of the client, send the PAT and PMT corresponding to the multicast group join message to the client.
513、 发送所述组播组加入报文所对应 IPTV频道的已緩存的媒体流数 据至所述客户端。  513. Send the cached media stream data of the IPTV channel corresponding to the multicast group join message to the client.
接收直播的所有 IPTV频道的媒体数据流, 将媒体数据流緩存下来, 并 识别其中的关键信息, 对 PAT和 PMT单独緩存。  Receive media data streams of all live IPTV channels, cache media data streams, and identify key information, and separately cache PAT and PMT.
收到来自客户端的对于新 IPTV频道的组播组加入报文时,根据组播组 加入 4艮文查找对应 IPTV频道的緩存数据, 把緩存中对应 IPTV频道的 PAT 和 PMT先发送给客户端, 然后开始将緩存的媒体流数据发送给客户端, 发 送的内容完全是緩存内容的拷贝。 由于把解码需要的关键信息全部发送给 客户端, 使得客户端在收到关键信息后可直接进行解码播放, 减少了 IPTV 频道的切换时间, 提高了 IPTV频道切换速度。 When receiving the multicast group join message from the client for the new IPTV channel, the multicast group joins the 4 艮 text to find the cache data corresponding to the IPTV channel, and sends the PAT and PMT of the corresponding IPTV channel in the cache to the client first. Then, the cached media stream data is sent to the client, and the content sent is completely a copy of the cached content. Because all the key information needed for decoding is sent to The client enables the client to directly decode and play after receiving the key information, which reduces the switching time of the IPTV channel and improves the switching speed of the IPTV channel.
本实施例中, 首先緩存所有 IPTV频道的媒体流数据, 提取各 IPTV频 道的 PAT和 PMT。 当收到客户端切换 IPTV频道的请求时, 先发送 PAT和 PMT,然后从緩存中最新 I帧开始发送媒体流数据, 由于发送的媒体流数据 完全是緩存的媒体流数据的拷贝, 客户端可以直接解码播放, 加快了 IPTV 频道的切换速度。  In this embodiment, the media stream data of all IPTV channels is first buffered, and the PAT and PMT of each IPTV channel are extracted. When receiving the request of the client to switch the IPTV channel, the PAT and the PMT are sent first, and then the media stream data is sent from the latest I frame in the cache. Since the sent media stream data is completely a copy of the cached media stream data, the client can Direct decoding and playback speeds up the switching speed of IPTV channels.
在一实施例中, S13可包括: 从緩存中最后接收到的完整的 I帧开始发 送緩存中的媒体流数据; 在对 PAT和 PMT单独緩存的同时, 对媒体流数据 中的 I帧进行标识。当收到客户端的组播组加入报文时,先发送 PAT和 PMT, 然后从最新的完整 I帧开始发送媒体流数据给客户端;本实施例相较从緩存 的第一个 I帧开始发送緩存数据, 减少了延时时间, 进一步提高了 IPTV频 道的切换速度。  In an embodiment, S13 may include: starting to send the media stream data in the buffer from the last I frame received last in the cache; identifying the I frame in the media stream data while separately buffering the PAT and the PMT . When receiving the multicast group join message of the client, the PAT and the PMT are sent first, and then the media stream data is sent to the client from the latest complete I frame; in this embodiment, the first I frame is sent from the cache. Cache data, reducing the delay time, and further improving the switching speed of the IPTV channel.
参照图 2, 提出本发明 IPTV频道切换的的方法又一实施例, 在上述实 施例中, 在执行 S13之后, 还包括:  Referring to FIG. 2, another embodiment of the method for IPTV channel switching according to the present invention is provided. In the above embodiment, after performing S13, the method further includes:
514、 监控緩存中发送的媒体流数据与接收的媒体流数据是否一致, 以 及 IPTV频道直播的媒体流数据是否开始从緩存所在的网络设备向客户端 发送。  514. Check whether the media stream data sent in the buffer is consistent with the received media stream data, and whether the media stream data broadcasted by the IPTV channel starts to be sent from the network device where the cache is located to the client.
515、当緩存中发送的媒体流数据与接收的媒体流数据一致,或者 IPTV 频道直播的媒体流数据从緩存所在的网络设备开始向客户端发送时, 停止 发送对应所述 IPTV频道的已緩存的媒体流数据。  515. When the media stream data sent in the cache is consistent with the received media stream data, or the media stream data broadcasted by the IPTV channel starts to be sent to the client from the network device where the cache is located, stop sending the cached corresponding to the IPTV channel. Media stream data.
本实施例中, IPTV频道组播的正常转发和緩存转发均发生在同一网络 设备中, 在通过緩存发送媒体流数据给客户端的同时, 直接检测客户端请 求切换的 IPTV频道组播的正常转发情况(即直播情况), 以获知正常组播 何时进行新频道媒体流数据的转发, 同时也监控发送的緩存媒体流数据是 否和正常组播接收到的媒体流数据到达一致。 In this embodiment, the normal forwarding and the cache forwarding of the IPTV channel multicast occur in the same network device, and the media stream data is sent to the client through the cache, and the normal forwarding situation of the IPTV channel multicast requested by the client is directly detected. (ie, the live broadcast situation), to know when the normal multicast media data is forwarded by the normal channel, and also to monitor the sent cache media stream data. No, it is consistent with the arrival of media stream data received by normal multicast.
检测到组播开始正常转发媒体流数据给客户端, 或者緩存发送的媒体 流数据和正常组播接收到的媒体流数据到达一致(緩存发送的速率可比正 常接收媒体流数据的速率快, 比如是正常组播速率的 1.2倍, 不能超过下游 接入带宽的限制, 也不能超过客户端接收能力), 停止发送緩存数据, 并以 组播方式正常转发新的 IPTV频道的媒体流数据。  It is detected that the multicast starts to forward the media stream data to the client normally, or the buffered media stream data is consistent with the media stream data received by the normal multicast (the rate of the buffer transmission may be faster than the rate of receiving the media stream data normally, for example, The normal multicast rate is 1.2 times, which cannot exceed the limit of the downstream access bandwidth, and cannot exceed the receiving capability of the client. The packet data is stopped and the media stream data of the new IPTV channel is normally forwarded in multicast mode.
本实施例中, 避免全部从緩存发送媒体流数据带来的延时问题, 减少 了组播转发过程中的一个緩存环节。  In this embodiment, the delay caused by sending media stream data from the cache is avoided, and a cache link in the multicast forwarding process is reduced.
参照图 3, 提出本发明 IPTV频道切换的一装置实施例, 包括: 緩存模块 10, 用于緩存节目源发送的各 IPTV频道的媒体流数据; 提取模块 20, 用于提取各 IPTV频道的 PAT和 PMT;  Referring to FIG. 3, an apparatus for IPTV channel switching according to the present invention is provided. The method includes: a buffering module 10, configured to cache media stream data of each IPTV channel sent by a program source; and an extracting module 20, configured to extract PAT of each IPTV channel. PMT;
第一发送模块 30, 用于在收到客户端的组播组加入报文时, 发送该组 播组加入 4艮文所对应的 PAT和 PMT至所述客户端;  The first sending module 30 is configured to: when receiving the multicast group join message of the client, send the PAT and the PMT corresponding to the multicast group to the client;
第二发送模块 40, 用于发送所述组播组加入报文所对应 IPTV频道的 已緩存的媒体流数据至所述客户端。  The second sending module 40 is configured to send the buffered media stream data of the IPTV channel corresponding to the multicast group join message to the client.
緩存模块 10接收直播的所有 IPTV频道的媒体数据流, 将媒体数据流 緩存下来, 提取模块 20识别其中的关键信息, 对 PAT和 PMT单独緩存。  The cache module 10 receives the media data stream of all the IPTV channels that are broadcasted, buffers the media data stream, and the extraction module 20 identifies the key information therein, and separately caches the PAT and the PMT.
第一发送模块 30收到来自客户端的对于新 IPTV频道的组播组加入报 文时, 根据组播组加入报文查找对应 IPTV频道的緩存数据, 把緩存中对应 IPTV频道的 PAT和 PMT先发送给客户端,然后第二发送模块 40开始将緩 存的媒体流数据发送给客户端, 发送的内容完全是緩存内容的拷贝。 由于 把解码需要的关键信息全部发送给客户端, 使得客户端在收到关键信息后 可直接进行解码播放, 减少了 IPTV频道的切换时间, 提高了 IPTV频道切 换速度。  When receiving the multicast group join message from the client for the new IPTV channel, the first sending module 30 searches for the cache data corresponding to the IPTV channel according to the multicast group join message, and sends the PAT and PMT of the corresponding IPTV channel in the cache first. To the client, then the second sending module 40 begins to send the cached media stream data to the client, the content being sent is completely a copy of the cached content. Since all the key information required for decoding is sent to the client, the client can directly decode and play after receiving the key information, which reduces the switching time of the IPTV channel and improves the switching speed of the IPTV channel.
本实施例中, 首先緩存所有 IPTV频道的媒体流数据, 提取各 IPTV频 道的 PAT和 PMT。 当收到客户端切换 IPTV频道的请求时, 先发送 PAT和 PMT,然后从緩存中最新 I帧开始发送媒体流数据, 由于发送的媒体流数据 完全是緩存的媒体流数据的拷贝, 客户端可以直接解码播放, 加快了 IPTV 频道的切换速度。 In this embodiment, media stream data of all IPTV channels is first buffered, and each IPTV frequency is extracted. The PAT and PMT of the road. When receiving the request of the client to switch the IPTV channel, the PAT and the PMT are sent first, and then the media stream data is sent from the latest I frame in the cache. Since the sent media stream data is completely a copy of the cached media stream data, the client can Direct decoding and playback speeds up the switching speed of IPTV channels.
在一实施例中, 第二发送模块 40具体用于: 从緩存中最后接收到的完 整的 I帧开始发送緩存中的媒体流数据。 在提取模块 20对 PAT和 PMT单 独緩存的同时,还对媒体流数据中的 I帧进行标识。 当收到客户端的组播组 加入报文时, 第一发送模块 30先发送 PAT和 PMT, 然后第二发送模块 40 从最新的完整 I帧开始发送媒体流数据给客户端;本实施例相较从緩存的第 一个 I帧开始发送緩存数据, 减少了延时时间, 进一步提高了 IPTV频道的 切换速度。  In an embodiment, the second sending module 40 is specifically configured to: start to send the media stream data in the buffer from the last I frame finally received in the cache. While the extraction module 20 caches the PAT and the PMT separately, it also identifies the I frame in the media stream data. When receiving the multicast group join message of the client, the first sending module 30 first sends the PAT and the PMT, and then the second sending module 40 sends the media stream data to the client from the latest complete I frame. This embodiment compares The buffer data is sent from the first I frame of the cache, which reduces the delay time and further improves the switching speed of the IPTV channel.
参照图 4, 提出本发明 IPTV频道切换的又一装置实施例, 在上述实施 例中, 还包括:  Referring to FIG. 4, another apparatus embodiment of the IPTV channel switching of the present invention is proposed. In the foregoing embodiment, the method further includes:
监控模块 50, 用于监控緩存中发送的媒体流数据与接收的媒体流数据 是否一致,以及 IPTV频道直播的媒体流数据是否开始从緩存所在的网络设 备向客户端发送。  The monitoring module 50 is configured to monitor whether the media stream data sent in the cache is consistent with the received media stream data, and whether the media stream data broadcasted by the IPTV channel starts to be sent from the network device where the cache is located to the client.
停止模块 60, 用于当緩存中发送的媒体流数据与接收的媒体流数据一 致,或者 IPTV频道直播的媒体流数据从緩存所在的网络设备开始向客户端 发送时, 停止发送对应所述 IPTV频道的已緩存的媒体流数据。  The stopping module 60 is configured to stop sending the corresponding IPTV channel when the media stream data sent in the buffer is consistent with the received media stream data, or the media stream data broadcasted by the IPTV channel starts to be sent to the client from the network device where the cache is located. Cached media stream data.
本实施例中, IPTV频道组播的正常转发和緩存转发均发生在同一网络 设备中, 在第二发送模块 40通过緩存发送媒体流数据给客户端的同时, 监 控模块 50直接检测客户端请求切换的 IPTV频道组播的正常转发情况(即 直播情况), 以获知正常组播何时进行新频道媒体流数据的转发, 同时也监 控发送的緩存媒体流数据是否和正常组播接收到的媒体流数据到达一致。  In this embodiment, the normal forwarding and the cache forwarding of the IPTV channel multicast occur in the same network device. When the second sending module 40 sends the media stream data to the client through the cache, the monitoring module 50 directly detects the client requesting the switching. Normal forwarding of IPTV channel multicast (ie, live broadcast), to know when normal multicast forwards new channel media stream data, and also monitors whether the transmitted cache media stream data and media stream data received by normal multicast are received. Arrived consistently.
监控模块 50检测到组播开始正常转发媒体流数据给客户端, 或者緩存 发送的媒体流数据和正常组播接收到的媒体流数据到达一致 (緩存发送的 速率可比正常接收媒体流数据的速率快, 比如是正常组播速率的 1.2倍, 不 能超过下游接入带宽的限制, 也不能超过客户端接收能力) 时, 停止模块 60停止发送緩存数据。 The monitoring module 50 detects that the multicast starts to normally forward the media stream data to the client, or caches The transmitted media stream data is consistent with the media stream data received by the normal multicast (the rate of the buffer transmission is faster than the rate of receiving the media stream data normally, for example, 1.2 times the normal multicast rate, and cannot exceed the limit of the downstream access bandwidth. When the client does not exceed the receiving capability, the stop module 60 stops sending cached data.
本实施例中, 避免全部从緩存发送媒体流数据带来的延时问题, 减少 了组播转发过程中的一个緩存环节。  In this embodiment, the delay caused by sending media stream data from the cache is avoided, and a cache link in the multicast forwarding process is reduced.
综上所述可见, 本发明提出的一种 IPTV频道切换的方法及装置, 首先 緩存所有 IPTV频道的媒体流数据, 提取各 IPTV频道的 PAT和 PMT, 识 别緩存数据中的 I帧。 当收到客户端切换 IPTV频道的请求时, 先发送 PAT 和 PMT, 然后从緩存中最后接收到的完整的 I帧开始发送媒体流数据, 由 于发送的媒体流数据完全是緩存的媒体流数据的拷贝, 客户端可以直接解 码播放, 加快了 IPTV频道的切换速度。 又由于发送从緩存中最后接收到的 完整的 I帧开始, 降低了相对直播的延时影响。 本发明中, 快速发送緩存数 据给客户端的同时, 监控直播的媒体流数据是否开始从緩存所在的网络设 备向客户端发送, 在开始后停止发送緩存数据, 之后完全是直播数据流从 网络设备进行转发, 避免全部从緩存发送媒体流数据带来的延时问题。  In summary, the method and device for IPTV channel switching proposed by the present invention first cache media stream data of all IPTV channels, extract PAT and PMT of each IPTV channel, and identify I frames in the buffer data. When receiving the request of the client to switch the IPTV channel, the PAT and the PMT are sent first, and then the media stream data is sent from the last I frame finally received in the cache, because the sent media stream data is completely cached media stream data. Copy, the client can directly decode and play, speeding up the switching speed of the IPTV channel. Also, since the transmission starts from the last I frame received in the cache, the effect of the delay relative to the live broadcast is reduced. In the present invention, when the cache data is quickly sent to the client, the live media stream data is monitored to be sent from the network device where the cache is located to the client, and the cache data is stopped after the start, and then the live data stream is completely transmitted from the network device. Forwarding, avoiding the delay caused by sending media stream data from the cache.
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围。  The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.

Claims

权利要求书 Claim
1、 一种 IPTV频道切换的方法, 包括:  1. A method for IPTV channel switching, comprising:
緩存节目源发送的各 IPTV频道的媒体流数据;  Cache media stream data of each IPTV channel sent by the program source;
提取各 IPTV频道的节目相关表 PAT和节目映射表 PMT;  Extracting a program related table PAT and a program mapping table PMT of each IPTV channel;
收到客户端的组播组加入报文时,发送该组播组加入报文所对应的 PAT 和 PMT至所述客户端; 还发送所述组播组加入报文所对应 IPTV频道的已 緩存的媒体流数据至所述客户端。  When receiving the multicast group join message of the client, the PAT and the PMT corresponding to the multicast group join message are sent to the client; and the cached one of the IPTV channel corresponding to the multicast group join message is also sent. Media stream data to the client.
2、如权利要求 1所述的方法,其中,在发送媒体流数据至客户端之后, 还包括:  2. The method of claim 1, wherein after transmitting the media stream data to the client, the method further comprises:
当发送的所緩存的媒体流数据与接收的媒体流数据一致,或者 IPTV频 道直播的媒体流数据从緩存所在的网络设备开始向客户端发送时, 停止发 送对应所述 IPTV频道的已緩存的媒体流数据。  When the sent media stream data is consistent with the received media stream data, or the media stream data broadcasted by the IPTV channel starts to be sent to the client from the network device where the cache is located, stopping sending the cached media corresponding to the IPTV channel Stream data.
3、 如权利要求 2所述的方法, 其中, 发送所緩存的媒体流数据的速度 大于接收媒体流数据的速度。  3. The method of claim 2, wherein the speed of transmitting the buffered media stream data is greater than the speed of receiving the media stream data.
4、 如权利要求 1至 3中任一项所述的方法, 其中, 发送所述媒体流数 据至客户端的方法为:从通过緩存最后接收到的完整的 I帧开始发送所緩存 的媒体流数据。  The method according to any one of claims 1 to 3, wherein the method of transmitting the media stream data to a client is to start transmitting the buffered media stream data from a complete I frame received last through the buffer. .
5、 如权利要求 1至 3中任一项所述的方法, 其中, 在发送所述媒体流 数据至客户端的同时, 还包括:  The method according to any one of claims 1 to 3, wherein, when the media stream data is sent to the client, the method further includes:
监控发送的所緩存的媒体流数据与接收的媒体流数据是否一致, 以及 IPTV 频道直播的媒体流数据是否开始从緩存所在的网络设备向客户端发 送。  The monitored cached media stream data is consistent with the received media stream data, and whether the media stream data broadcasted by the IPTV channel starts to be sent from the network device where the cache is located to the client.
6、 一种 IPTV频道切换的装置, 包括:  6. A device for switching an IPTV channel, comprising:
緩存模块, 用于緩存节目源发送的各 IPTV频道的媒体流数据; 提取模块, 用于提取各 IPTV频道的 PAT和 PMT; 第一发送模块, 用于在收到客户端的组播组加入报文时, 发送该组播 组加入报文所对应的 PAT和 PMT至所述客户端; a cache module, configured to cache media stream data of each IPTV channel sent by the program source; an extracting module, configured to extract PAT and PMT of each IPTV channel; The first sending module is configured to: when receiving the multicast group joining message of the client, send the PAT and the PMT corresponding to the multicast group joining message to the client;
第二发送模块,用于发送所述组播组加入报文所对应 IPTV频道的已緩 存的媒体流数据至所述客户端。  The second sending module is configured to send the buffered media stream data of the IPTV channel corresponding to the multicast group join message to the client.
7、 如权利要求 6所述的装置, 其中, 还包括:  7. The apparatus according to claim 6, further comprising:
停止模块, 用于在发送的所緩存的媒体流数据与接收的媒体流数据一 致,或者 IPTV频道直播的媒体流数据从緩存所在的网络设备开始向客户端 发送时, 停止发送对应所述 IPTV频道的已緩存的媒体流数据。  The stopping module is configured to stop sending the corresponding IPTV channel when the sent media stream data is consistent with the received media stream data, or the media stream data of the IPTV channel is sent to the client from the network device where the cache is located. Cached media stream data.
8、 如权利要求 7所述的装置, 其中, 发送所緩存的媒体流数据的速度 大于接收媒体流数据的速度。  8. The apparatus of claim 7, wherein the speed at which the buffered media stream data is transmitted is greater than the speed at which the media stream data is received.
9、 如权利要求 6至 8中任一项所述的装置, 其中, 所述第二发送模块 在发送所述媒体流数据至客户端时, 用于:  The device according to any one of claims 6 to 8, wherein the second sending module is configured to: when transmitting the media stream data to the client:
从通过緩存最后接收到的完整的 I帧开始发送所緩存的媒体流数据。 The buffered media stream data is transmitted starting from the last I frame received through the cache.
10、 如权利要求 6至 8中任一项所述的装置, 其中, 还包括: 监控模块, 用于监控发送的所緩存的媒体流数据与接收的媒体流数据 是否一致,以及 IPTV频道直播的媒体流数据是否开始从緩存所在的网络设 备向客户端发送。 The device according to any one of claims 6 to 8, further comprising: a monitoring module, configured to monitor whether the sent buffered media stream data is consistent with the received media stream data, and the IPTV channel is broadcasted. Whether the media stream data starts to be sent from the network device where the cache is located to the client.
PCT/CN2012/075308 2011-06-22 2012-05-10 Iptv channel switching method and device WO2012174956A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2011101696435A CN102231848A (en) 2011-06-22 2011-06-22 IPTV channel switching method and apparatus thereof
CN201110169643.5 2011-06-22

Publications (1)

Publication Number Publication Date
WO2012174956A1 true WO2012174956A1 (en) 2012-12-27

Family

ID=44844373

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/075308 WO2012174956A1 (en) 2011-06-22 2012-05-10 Iptv channel switching method and device

Country Status (2)

Country Link
CN (1) CN102231848A (en)
WO (1) WO2012174956A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102231848A (en) * 2011-06-22 2011-11-02 中兴通讯股份有限公司 IPTV channel switching method and apparatus thereof
FR3039735A1 (en) * 2015-07-29 2017-02-03 Sagemcom Broadband Sas METHOD FOR CHANGING THE SERVICE OF A DIGITAL TELEVISION DECODER, AND DEVICE FOR IMPLEMENTING SUCH A METHOD
CN105898390A (en) * 2015-08-31 2016-08-24 华南理工大学 Virtual video bus-based multi-channel rapid switching method and system
CN106937155B (en) * 2015-12-29 2020-06-02 北京华为数字技术有限公司 Access device, Internet Protocol Television (IPTV) system and channel switching method
CN107396175A (en) * 2017-08-16 2017-11-24 四川长虹电器股份有限公司 A kind of method of optimization IPTV channel switch speed
CN111093090A (en) * 2018-10-24 2020-05-01 玲珑视界科技(北京)有限公司 TCP-based multicast channel fast switching system and method
CN110300338A (en) * 2019-07-26 2019-10-01 杭州当虹科技股份有限公司 A method of it is switched fast and plays group broadcasting video frequency
CN114007087B (en) * 2020-07-28 2023-04-11 华为技术有限公司 Media stream switching method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101702777A (en) * 2009-10-30 2010-05-05 深圳创维数字技术股份有限公司 IPTV system, audio/video coding switching method and equipment
CN101753973A (en) * 2008-12-12 2010-06-23 华为技术有限公司 Channel switching method, device and system
CN101998165A (en) * 2010-09-19 2011-03-30 中兴通讯股份有限公司 Method and system for switching channels in IPTV system
CN102231848A (en) * 2011-06-22 2011-11-02 中兴通讯股份有限公司 IPTV channel switching method and apparatus thereof

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101077003A (en) * 2004-10-15 2007-11-21 开放电视公司 Speeding up channel change
JP4937654B2 (en) * 2006-07-12 2012-05-23 Kddi株式会社 Multicast distribution device for channel switching, multicast distribution system, and multicast distribution method for channel switching
CN101267545A (en) * 2008-04-30 2008-09-17 中兴通讯股份有限公司 A program switching method and device
CN101667208B (en) * 2009-09-25 2013-06-26 深圳创维数字技术股份有限公司 Digital television receiver and methods for searching and switching programs thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101753973A (en) * 2008-12-12 2010-06-23 华为技术有限公司 Channel switching method, device and system
CN101702777A (en) * 2009-10-30 2010-05-05 深圳创维数字技术股份有限公司 IPTV system, audio/video coding switching method and equipment
CN101998165A (en) * 2010-09-19 2011-03-30 中兴通讯股份有限公司 Method and system for switching channels in IPTV system
CN102231848A (en) * 2011-06-22 2011-11-02 中兴通讯股份有限公司 IPTV channel switching method and apparatus thereof

Also Published As

Publication number Publication date
CN102231848A (en) 2011-11-02

Similar Documents

Publication Publication Date Title
WO2012174956A1 (en) Iptv channel switching method and device
EP2385707B1 (en) Channel switching method, device, and system
WO2010139284A1 (en) Method, system and relative devices for processing channel switching
JP2005124193A5 (en)
WO2010054543A1 (en) Method, device and system for channel switching
JP5421346B2 (en) High-speed transmission method and apparatus for unicast stream in high-speed channel change
US20080022320A1 (en) Systems and Methods of Synchronizing Media Streams
WO2009039741A1 (en) A method and device for realizing the switching of iptv channels
WO2011153868A1 (en) Channel switching method, apparatus and system
JP2010530703A (en) Method and apparatus for improved media session management
WO2018166320A1 (en) Channel changing method, and apparatus
WO2018001184A1 (en) Fast channel change method, server and set-top box
WO2011022994A1 (en) Method, apparatus and system for rapid acquisition of multicast realtime transport protocol sessions
WO2010088836A1 (en) Packet loss compensation method and apparatus in user datagram protocol transmission mode
WO2011000270A1 (en) Method, apparatus and system for reducing media delay
WO2008077302A1 (en) A digital media channels switching method and system
WO2012083841A1 (en) Method, terminal and system for changing channel
US11050805B2 (en) Method of controlling stream buffer in media playback device and related buffering device
KR20100051962A (en) System and method for internet protocol tv broadcasting service
CN111866526B (en) Live broadcast service processing method and device
JP5428734B2 (en) Network device, information processing apparatus, stream switching method, information processing method, program, and content distribution system
CN103685314B (en) Method for achieving seamless switching of unicast and multicast of stream media playing
WO2009097716A1 (en) A method of slicing media content, a method, device and system for providing media content
CN103347207A (en) Method for rapidly switching IPTV multi-cast channels
WO2010075705A1 (en) Method, device and system for processing ip television channel switch

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

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

Country of ref document: EP

Kind code of ref document: A1