CN110300338A - 一种快速切换播放组播视频的方法 - Google Patents

一种快速切换播放组播视频的方法 Download PDF

Info

Publication number
CN110300338A
CN110300338A CN201910684124.9A CN201910684124A CN110300338A CN 110300338 A CN110300338 A CN 110300338A CN 201910684124 A CN201910684124 A CN 201910684124A CN 110300338 A CN110300338 A CN 110300338A
Authority
CN
China
Prior art keywords
channel
player
local cache
gop
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910684124.9A
Other languages
English (en)
Inventor
裘昊
文志平
沈德欢
陈勇
李妃军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Dang Hong Polytron Technologies Inc
Hangzhou Arcvideo Technology Co ltd
Original Assignee
Hangzhou Dang Hong Polytron Technologies Inc
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 Hangzhou Dang Hong Polytron Technologies Inc filed Critical Hangzhou Dang Hong Polytron Technologies Inc
Priority to CN201910684124.9A priority Critical patent/CN110300338A/zh
Publication of CN110300338A publication Critical patent/CN110300338A/zh
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4331Caching operations, e.g. of an advertisement for later insertion during playback
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/438Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving encoded video stream packets from an IP network
    • H04N21/4383Accessing a communication channel
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/64Addressing
    • H04N21/6405Multicasting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/64Addressing
    • H04N21/6408Unicasting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • H04N21/6437Real-time Transport Protocol [RTP]

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

本发明公开了一种快速切换播放组播视频的方法。它根据节目单信息将当前播放频道的前后两个频道的地址加入预缓存机制,在发生切台操作时,直接数据传给播放器,具体操作步骤如下:关闭当前频道的播放器,与此同时在本地缓存一个最新一个GOP的内容,启动流接收;从本地缓存中读取频道信息,创建下一个频道的播放器,同时频道信息传给播放器;初始化解码器;进入解码状态,等待解码输出,完成切台操作。本发明的有益效果是:使得用户能够快速的在基于UDP单播或者组播的直播频道间切换观看,可以在不更换现有播放器的情况下使用,并且达到较为明显的加速效果。

Description

一种快速切换播放组播视频的方法
技术领域
本发明涉及视频播放相关技术领域,尤其是指一种快速切换播放组播视频的方法。
背景技术
一些直播,比如IPTV电视直播频道,用的是UDP组播协议,基于组播的优势,可以在节省服务器带宽的同时服务大量用户。而在实际使用过程中,用户按下遥控器上的切换频道键后可能需要等待1~2秒的时间才能看到画面,作为比较,传统的有线电视切换频道(约几百毫秒)体验可能要更好。
根据IPTV直播的技术规范,直播采用了RTP/TS格式的载荷,通过UDP组播的方式进行传输。播放器收到TS载荷后,首先要找到PAT/PMT表格(一般来说在TS流中是周期性出现的),获取流描述信息(流ID,编码格式等),再按照TS格式规范分离出音视频数据进行解码。
根据视频编码的特性,连续的视频画面被按一定规则进行分组(GOP),每个GOP中有I/P/B类型的编码帧,第一个编码帧(I)为完整编码的画面,紧随其后的帧为部分编码,P是前向预测帧,也就是依赖于前一帧的解码结果,B是双向内插帧,对前/后的编码帧都有依赖。常见的是25帧一组的配置,也就是每秒钟会有一个I帧。在解码过程中,因为存在上述的预测和参考关系,往往需要缓存多帧以达到较好的解码效果。
由于直播流的特性,客户端在特定时间点开始接受流,收到的数据是在随机位置,也就是说,下一个PAT/PMT的位置离当前位置有多远是不确定的,这里会有一个等待时间;收到PAT/PMT表后,再去找I帧,这里也会有个等待时间(区间为0到一个GOP的长度);一般编码系统输出的流,PAT/PMT表会尽量放在I帧前面,因此这里的等待时间主要就是等待I帧,按照GOP=25,FPS=25来考虑,就是[0,1]秒的区间,加上播放器对硬件资源调度(初始化,销毁)的耗时,切台时间(按下按键,到看到所切频道画面出现在电视上)可以达到600~1800毫秒,平均也要1200毫秒左右。
现在在终端设备上,硬件解码器应用较多,而硬件解码器的特点是解码较快,但初始化/重置操作较为耗时,通常播放器在这两个步骤上也会消耗比较多的时间。
根据上述技术特点,播放器切台要经历以下几个耗时较长(且执行顺序有依赖,不可并行)的步骤:
1.关闭解码器;
2.找到PAT/PMT表;
3.找到I帧(关键帧),以及解码参数信息(对于H.264流来说,就是SPS/PPS);
4.接收完I帧的所有数据包,初始化并启动编码器进行解码;
5.持续接收数据帧-送入解码器,等待解码器输出。
对于电视直播来说,一般情况下节目单和频道信息是相对比较固定的,也就是说每个频道的顺序、分辨率、编码参数等,在相对较长的时间内都是保持不变的。
发明内容
本发明是为了克服现有技术中存在上述的不足,提供了一种加速效果好的快速切换播放组播视频的方法。
为了实现上述目的,本发明采用以下技术方案:
一种快速切换播放组播视频的方法,根据节目单信息将当前播放频道的前后两个频道的地址加入预缓存机制,在发生切台操作时,直接数据传给播放器,具体操作步骤如下:
(1)关闭当前频道的播放器,与此同时在本地缓存一个最新一个GOP的内容,启动流接收;
(2)从本地缓存的GOP内容中读取频道信息,判断解码器是否可复用,如果不可复用,进入步骤(3)中;如果可复用,进入到步骤(5)中;
(3)创建下一个频道的播放器,同时根据本地缓存的GOP内容中读取的频道信息传给播放器进行流接收;
(4)初始化解码器;
(5)进入解码状态,等待解码输出,完成切台操作。
本发明旨在提出一种预缓存机制,使得用户能够快速的在基于UDP单播或者组播的直播频道间切换观看。本方法采用的预缓存机制可以在不更换现有播放器的情况下使用,并且达到较为明显的加速效果。
作为优选,在步骤(1)中,在本地缓存一个最新一个GOP的内容包括:前一个频道的视频流中的识别信息以及开始播放所需要的必要信息,后一个频道的视频流中的识别信息以及开始播放所需要的必要信息。
作为优选,在步骤(3)中,根据本地缓存的GOP内容中读取的频道信息通过UDP单播或者组播渠道传给播放器进行流接收。
作为优选,所述的UDP单播或者组播渠道均采用了RTP/TS格式的载荷,RTP/TS格式的载荷中包括了RTP包头和RTP载荷,所述的RTP载荷内包含若干个TS格式的载荷,所有的TS格式载荷构成TS流,而TS格式内包含了视频流中的识别信息PAT/PMT表以及开始播放所需要的必要信息I关键帧。
本发明的有益效果是:使得用户能够快速的在基于UDP单播或者组播的直播频道间切换观看,可以在不更换现有播放器的情况下使用,并且达到较为明显的加速效果。
附图说明
图1是本发明的方法流程图。
具体实施方式
下面结合附图和具体实施方式对本发明做进一步的描述。
如图1所述的实施例中,一种快速切换播放组播视频的方法,根据节目单信息将当前播放频道的前后两个频道的地址加入预缓存机制,在发生切台操作时,直接数据传给播放器,具体操作步骤如下:
(1)关闭当前频道的播放器,与此同时在本地缓存一个最新一个GOP的内容,启动流接收;在本地缓存一个最新一个GOP的内容包括:前一个频道的视频流中的识别信息以及开始播放所需要的必要信息,后一个频道的视频流中的识别信息以及开始播放所需要的必要信息;
(2)从本地缓存的GOP内容中读取频道信息,判断解码器是否可复用,如果不可复用,进入步骤(3)中;如果可复用,进入到步骤(5)中;
(3)创建下一个频道的播放器,同时根据本地缓存的GOP内容中读取的频道信息通过UDP单播或者组播渠道传给播放器进行流接收;UDP单播或者组播渠道均采用了RTP/TS格式的载荷,RTP/TS格式的载荷中包括了RTP包头和RTP载荷,RTP载荷内包含若干个TS格式的载荷,所有的TS格式载荷构成TS流,而TS格式内包含了视频流中的识别信息PAT/PMT表以及开始播放所需要的必要信息I关键帧;
(4)初始化解码器;
(5)进入解码状态,等待解码输出,完成切台操作。
本发明旨在提出一种预缓存机制,将开始播放所需要的必要信息如I关键帧,以及视频流中的识别信息(如TS格式的PAT/PMT表)预先缓存到设备端(即本地缓存),从而在播放器启动时可以快速读取到这些信息,省下了等待的时间,使得用户能够快速的在基于UDP单播或者组播的直播频道间切换观看。本方法采用的预缓存机制不依赖于播放器的实现,可配合任意播放器工作,可以在不更换现有播放器的情况下使用,在实际场景下,可大幅减少优化升级所带来的工作量,并且达到较为明显的加速效果。通过上述方法基于几万次切台的数据分析统计得到的测试结果,对于GOP=25,FPS=25的2.3Mbps标清组播流,默认情况下测试设备自带的默认播放器平均切换时间为956毫秒,而使用了预缓存机制后,该指标下降到了538毫秒,提升效果相当明显。

Claims (4)

1.一种快速切换播放组播视频的方法,其特征是,根据节目单信息将当前播放频道的前后两个频道的地址加入预缓存机制,在发生切台操作时,直接数据传给播放器,具体操作步骤如下:
(1)关闭当前频道的播放器,与此同时在本地缓存一个最新一个GOP的内容,启动流接收;
(2)从本地缓存的GOP内容中读取频道信息,判断解码器是否可复用,如果不可复用,进入步骤(3)中;如果可复用,进入到步骤(5)中;
(3)创建下一个频道的播放器,同时根据本地缓存的GOP内容中读取的频道信息传给播放器进行流接收;
(4)初始化解码器;
(5)进入解码状态,等待解码输出,完成切台操作。
2.根据权利要求1所述的一种快速切换播放组播视频的方法,其特征是,在步骤(1)中,在本地缓存一个最新一个GOP的内容包括:前一个频道的视频流中的识别信息以及开始播放所需要的必要信息,后一个频道的视频流中的识别信息以及开始播放所需要的必要信息。
3.根据权利要求2所述的一种快速切换播放组播视频的方法,其特征是,在步骤(3)中,根据本地缓存的GOP内容中读取的频道信息通过UDP单播或者组播渠道传给播放器进行流接收。
4.根据权利要求3所述的一种快速切换播放组播视频的方法,其特征是,所述的UDP单播或者组播渠道均采用了RTP/TS格式的载荷,RTP/TS格式的载荷中包括了RTP包头和RTP载荷,所述的RTP载荷内包含若干个TS格式的载荷,所有的TS格式载荷构成TS流,而TS格式内包含了视频流中的识别信息PAT/PMT表以及开始播放所需要的必要信息I关键帧。
CN201910684124.9A 2019-07-26 2019-07-26 一种快速切换播放组播视频的方法 Pending CN110300338A (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910684124.9A CN110300338A (zh) 2019-07-26 2019-07-26 一种快速切换播放组播视频的方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910684124.9A CN110300338A (zh) 2019-07-26 2019-07-26 一种快速切换播放组播视频的方法

Publications (1)

Publication Number Publication Date
CN110300338A true CN110300338A (zh) 2019-10-01

Family

ID=68031981

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910684124.9A Pending CN110300338A (zh) 2019-07-26 2019-07-26 一种快速切换播放组播视频的方法

Country Status (1)

Country Link
CN (1) CN110300338A (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111586589A (zh) * 2020-04-30 2020-08-25 上海交通大学 多接收端音频流媒体无线传输与同步播放方法和系统
WO2021232931A1 (zh) * 2020-05-20 2021-11-25 中兴通讯股份有限公司 频道切换方法、装置、设备、系统和存储介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101146213A (zh) * 2006-09-11 2008-03-19 思华科技(上海)有限公司 视频点播网络及点播方法
CN101610257A (zh) * 2009-07-17 2009-12-23 北京邮电大学 一种互联网业务流的实时上下文感知与分级标记的方法
CN102231848A (zh) * 2011-06-22 2011-11-02 中兴通讯股份有限公司 Iptv频道切换的方法及装置
EP2458859A4 (en) * 2009-07-21 2012-06-27 Huawei Tech Co Ltd METHOD, COMMUNICATION SYSTEM AND RELATED DEVICE FOR CONTINUOUS TRANSMISSION SERVICE
US20150163538A1 (en) * 2009-06-29 2015-06-11 Broadcom Corporation Video channel change system
CN106341727A (zh) * 2016-10-08 2017-01-18 北京邦天信息技术有限公司 一种频道切换方法和装置、以及视频终端
CN107396175A (zh) * 2017-08-16 2017-11-24 四川长虹电器股份有限公司 一种优化iptv频道切换速度的方法

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101146213A (zh) * 2006-09-11 2008-03-19 思华科技(上海)有限公司 视频点播网络及点播方法
US20150163538A1 (en) * 2009-06-29 2015-06-11 Broadcom Corporation Video channel change system
CN101610257A (zh) * 2009-07-17 2009-12-23 北京邮电大学 一种互联网业务流的实时上下文感知与分级标记的方法
EP2458859A4 (en) * 2009-07-21 2012-06-27 Huawei Tech Co Ltd METHOD, COMMUNICATION SYSTEM AND RELATED DEVICE FOR CONTINUOUS TRANSMISSION SERVICE
CN102231848A (zh) * 2011-06-22 2011-11-02 中兴通讯股份有限公司 Iptv频道切换的方法及装置
CN106341727A (zh) * 2016-10-08 2017-01-18 北京邦天信息技术有限公司 一种频道切换方法和装置、以及视频终端
CN107396175A (zh) * 2017-08-16 2017-11-24 四川长虹电器股份有限公司 一种优化iptv频道切换速度的方法

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111586589A (zh) * 2020-04-30 2020-08-25 上海交通大学 多接收端音频流媒体无线传输与同步播放方法和系统
CN111586589B (zh) * 2020-04-30 2021-11-09 上海交通大学 多接收端音频流媒体无线传输与同步播放方法和系统
WO2021232931A1 (zh) * 2020-05-20 2021-11-25 中兴通讯股份有限公司 频道切换方法、装置、设备、系统和存储介质

Similar Documents

Publication Publication Date Title
US20190075342A1 (en) Codec techniques for fast switching
KR101029854B1 (ko) 스케일러블 비디오 코딩에서 픽쳐들의 역방향-호환 집합
CN107566918B (zh) 一种视频分发场景下的低延时取流秒开方法
CN101917389B (zh) 一种网络电视直播系统
US11039203B2 (en) Channel changing method and apparatus thereof
US20120063462A1 (en) Method, apparatus and system for forwarding video data
KR101640148B1 (ko) 대화형 마크를 스트리밍 콘텐츠에 동기화시키기 위한 디바이스 및 방법
US7643508B2 (en) Client side PID translation
US20080120671A1 (en) Method and system for speeding up channel change in internet protocol television service and digital broadcasting environment
CN110602522B (zh) 一种多路实时直播WebRTC流合成方法
CN106303682B (zh) 频道切换的方法、装置、终端及服务器
KR100972092B1 (ko) Iptv 방송 서비스 시스템 및 그 방법
CN104902344A (zh) 一种获取电视节目短视频并通过网络共享的系统及方法
CN110300338A (zh) 一种快速切换播放组播视频的方法
CN108494792A (zh) 一种flash播放器播放hls视频流的转换系统及其工作方法
CA2936164A1 (en) Communication apparatus, communication data generation method, and communication data processing method
US20110088069A1 (en) Network device, information processing apparatus, stream switching method, information processing method, program, and content distribution system
CN114363648A (zh) 直播系统混流过程中音视频对齐的方法、设备及存储介质
KR100792025B1 (ko) Iptv 시스템에서 채널 변경시 비디오 데이터 전송 방법
CN113923510B (zh) 转发数字电视内容的方法、装置、设备及可读存储介质
CN112272316B (zh) 一种基于视频显示时间戳的多传输码流同步udp分发方法和系统
KR101671311B1 (ko) 클라우드 스트리밍 서비스 시스템, 이를 위한 장치 및 클라우드 스트리밍 서비스 방법
KR100874094B1 (ko) Iptv 서비스 제공 서버 및 방법
CN110139144A (zh) 一种基于智能家居中电视分享方法
CN204681528U (zh) 一种获取电视节目短视频并通过网络共享的系统

Legal Events

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

Application publication date: 20191001