CN104301786B - 网络视频播放方法 - Google Patents

网络视频播放方法 Download PDF

Info

Publication number
CN104301786B
CN104301786B CN201410507844.5A CN201410507844A CN104301786B CN 104301786 B CN104301786 B CN 104301786B CN 201410507844 A CN201410507844 A CN 201410507844A CN 104301786 B CN104301786 B CN 104301786B
Authority
CN
China
Prior art keywords
player
video
data
internet video
code rate
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.)
Active
Application number
CN201410507844.5A
Other languages
English (en)
Other versions
CN104301786A (zh
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.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric 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 Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN201410507844.5A priority Critical patent/CN104301786B/zh
Publication of CN104301786A publication Critical patent/CN104301786A/zh
Application granted granted Critical
Publication of CN104301786B publication Critical patent/CN104301786B/zh
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/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/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44209Monitoring of downstream path of the transmission network originating from a server, e.g. bandwidth variations of a wireless network
    • 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/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling 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/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/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440236Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by media transcoding, e.g. video is transformed into a slideshow of still pictures, audio is converted into text
    • 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/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44204Monitoring of content usage, e.g. the number of times a movie has been viewed, copied or the amount which has been watched
    • 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/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/462Content or additional data management, e.g. creating a master electronic program guide from data received from the Internet and a Head-end, controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities
    • H04N21/4621Controlling the complexity of the content stream or additional data, e.g. lowering the resolution or bit-rate of the video stream for a mobile client with a small screen

Landscapes

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

Abstract

本发明涉及网络视频技术。本发明解决了目前在网络视频播放上因为种种原因导致缓冲时间较长从而影响用户体验的问题,提供了一种网络视频播放方法,其技术方案可概括为:首先播放器获取网络视频源播放地址,然后播放器向网络视频源服务器请求视频头数据,再解析视频头数据,得到网络视频的分辨率信息和码率信息,再下载视频数据并同时计算起播门限阈值,且下载网络视频时,时刻比较当前已下载的存量数据是否大于等于起播门限阈值,若是则启动播放,若不是则继续下载直至当前已下载的存量数据达到或超过起播门限阈值后启动播放。本发明的有益效果是,增强用户体验,适用于网络视频播放系统。

Description

网络视频播放方法
技术领域
本发明涉及网络技术,特别涉及网络视频播放技术。
背景技术
随着网络技术的蓬勃发展和宽带光纤入户的日益普及,加上各种消费类电子设备、手持设备的网络化、智能化,越来越多的用户选择通过互联网来观看点播自己喜爱的音视频节目,但是由于各个网络视频服务提供商的服务质量参差不齐,用户家庭的网络接入带宽高低不一,有的网络视频在点播后需要缓冲较长的时间,影响了用户实际观看网络视频的体验效果。
发明内容
本发明的目的是要克服目前在网络视频播放上因为种种原因导致缓冲时间较长从而影响用户体验的缺点,提供一种网络视频播放方法。
本发明解决其技术问题,采用的技术方案是,网络视频播放方法,其特征在于,包括如下步骤:
步骤1、播放器获取网络视频源播放地址;
步骤2、播放器向网络视频源服务器请求视频头数据;
步骤3、播放器解析视频头数据,得到网络视频的分辨率信息和码率信息;
步骤4、播放器下载视频数据并同时计算起播门限阈值,所述计算起播门限阈值包括以下具体步骤:
步骤41、播放器预设起播数据存量,标记为ST,具体为:根据分辨率信息判断该视频的分辨率是否大于等于1280×720,若是则起播数据存量设置为3秒时长的数据量,若不是则起播数据存量设置为6秒时长的数据量;
步骤42、播放器根据码率信息得到即时码率信息,为码率信息进行上下限设置,码率上限为即时码率信息×1.35,标记为Bu,码率下限为即时码率信息×0.7,标记为Bd,同时将码率的单位统一为KBps;
步骤43、播放器监控数据下载过程中多个时间点的即时下载速率,并取其平均值作为下载平均速率,标记为Si,统一设置网速的单位为KBps;
步骤44、播放器判断若Si×3>Bu,则令ST=ST×1.2,若Si×6<Bd,则令ST=ST×0.8;
步骤45、播放器计算起播门限阈值,标记为Ls,计算公式为:Ls=ST×(Bu+Bd)/2;
步骤5、播放器下载网络视频时,时刻比较当前已下载的存量数据是否大于等于Ls,若是则启动播放,若不是则继续下载直至当前已下载的存量数据达到或超过Ls后启动播放。
具体的,步骤43中,所述多个时间点是指至少10个时间点。
本发明的有益效果是,在本发明方案中,通过上述网络视频播放方法,能够由播放器自行判断存量数据,保证缓冲时间,增强用户体验。
具体实施方式
下面结合实施例,详细描述本发明的技术方案。
本发明的网络视频播放方法中,首先播放器获取网络视频源播放地址,然后向网络视频源服务器请求视频头数据,再解析视频头数据,得到网络视频的分辨率信息和码率信息,开始下载视频数据并同时计算起播门限阈值,计算起播门限阈值的方法为:首先播放器预设起播数据存量,标记为ST,具体为:根据分辨率信息判断该视频的分辨率是否大于等于1280×720,若是则起播数据存量设置为3秒时长的数据量,若不是则起播数据存量设置为6秒时长的数据量,然后播放器根据码率信息得到即时码率信息,为码率信息进行上下限设置,码率上限为即时码率信息×1.35,标记为Bu,码率下限为即时码率信息×0.7,标记为Bd,同时将码率的单位统一为KBps,同时监控数据下载过程中多个时间点的即时下载速率,并取其平均值作为下载平均速率,标记为Si,统一设置网速的单位为KBps,然后判断若Si×3>Bu,则令ST=ST×1.2,若Si×6<Bd,则令ST=ST×0.8,播放器再计算起播门限阈值,标记为Ls,计算公式为:Ls=ST×(Bu+Bd)/2,最后播放器下载网络视频时,时刻比较当前已下载的存量数据是否大于等于Ls,若是则启动播放,若不是则继续下载直至当前已下载的存量数据达到或超过Ls后启动播放。
实施例
本发明实施例的网络视频播放方法,包括以下步骤:
步骤1、播放器获取网络视频源播放地址;
步骤2、播放器向网络视频源服务器请求视频头数据;
步骤3、播放器解析视频头数据,得到网络视频的分辨率信息和码率信息;
步骤4、播放器下载视频数据并同时计算起播门限阈值,所述计算起播门限阈值包括以下具体步骤:
步骤41、播放器预设起播数据存量,标记为ST,具体为:根据分辨率信息判断该视频的分辨率是否大于等于1280×720,若是则起播数据存量设置为3秒时长的数据量,若不是则起播数据存量设置为6秒时长的数据量;
步骤42、播放器根据码率信息得到即时码率信息,为码率信息进行上下限设置,码率上限为即时码率信息×1.35,标记为Bu,码率下限为即时码率信息×0.7,标记为Bd,同时将码率的单位统一为KBps;
步骤43、播放器监控数据下载过程中多个时间点的即时下载速率,并取其平均值作为下载平均速率,标记为Si,统一设置网速的单位为KBps,这里,该多个时间点建议为至少10个时间点;
步骤44、播放器判断若Si×3>Bu,则令ST=ST×1.2,若Si×6<Bd,则令ST=ST×0.8;
步骤45、播放器计算起播门限阈值,标记为Ls,计算公式为:Ls=ST×(Bu+Bd)/2;
步骤5、播放器下载网络视频时,时刻比较当前已下载的存量数据是否大于等于Ls,若是则启动播放,若不是则继续下载直至当前已下载的存量数据达到或超过Ls后启动播放。
具体举例如下:
a)播放器获取到用户点播的视频源“风”的网络源地址,具体为http://www.test.com/movie/wind.ts;
b)播放器向网络视频源服务器请求“风”的视频数据;
c)播放器下载“风”的网络视频数据,并每隔200毫秒计算一次网络即时速率,并保存此即时速率的记录;
d)播放器分析网络视频头数据,获取到视频“风”的分辨率信息,其分辨率信息小于1280×720,因此ST=6;
e)播放器分析网络视频头数据,获取到视频“风”的即时码率信息为600KBps,其码率上限值则为810KBps,标记为Bu,其码率下限值为420KBps,标记为Bd;
f)播放器计算访问视频源“风”的即时速率,10次值取平均值为400KBps,标记为Si,由于Si×3>Bu,因此ST=ST×1.2=7.2;
g)播放器计算电影“风”的起播门限阈值,Ls=7.2×(810+420)/2,最终值为4428KB大小;
h)播放器下载读取到4428KB数据后,启动播放。

Claims (2)

1.网络视频播放方法,其特征在于,包括如下步骤:
步骤1、播放器获取网络视频源播放地址;
步骤2、播放器向网络视频源服务器请求视频头数据;
步骤3、播放器解析视频头数据,得到网络视频的分辨率信息和码率信息;
步骤4、播放器下载视频数据并同时计算起播门限阈值,所述计算起播门限阈值包括以下具体步骤:
步骤41、播放器预设起播数据存量,标记为ST,具体为:根据分辨率信息判断该视频的分辨率是否大于等于1280×720,若是则起播数据存量设置为3秒时长的数据量,若不是则起播数据存量设置为6秒时长的数据量;
步骤42、播放器根据码率信息得到即时码率信息,为码率信息进行上下限设置,码率上限为即时码率信息×1.35,标记为Bu,码率下限为即时码率信息×0.7,标记为Bd,同时将码率的单位统一为KBps;
步骤43、播放器监控数据下载过程中多个时间点的即时下载速率,并取其平均值作为下载平均速率,标记为Si,统一设置网速的单位为KBps;
步骤44、播放器判断若Si×3>Bu,则令ST=ST×1.2,若Si×6<Bd,则令ST=ST×0.8;
步骤45、播放器计算起播门限阈值,标记为Ls,计算公式为:Ls=ST×(Bu+Bd)/2;
步骤5、播放器下载网络视频时,时刻比较当前已下载的存量数据是否大于等于Ls,若是则启动播放,若不是则继续下载直至当前已下载的存量数据达到或超过Ls后启动播放。
2.如权利要求1所述的网络视频播放方法,其特征在于,步骤43中,所述多个时间点是指至少10个时间点。
CN201410507844.5A 2014-09-28 2014-09-28 网络视频播放方法 Active CN104301786B (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410507844.5A CN104301786B (zh) 2014-09-28 2014-09-28 网络视频播放方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410507844.5A CN104301786B (zh) 2014-09-28 2014-09-28 网络视频播放方法

Publications (2)

Publication Number Publication Date
CN104301786A CN104301786A (zh) 2015-01-21
CN104301786B true CN104301786B (zh) 2017-09-29

Family

ID=52321316

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410507844.5A Active CN104301786B (zh) 2014-09-28 2014-09-28 网络视频播放方法

Country Status (1)

Country Link
CN (1) CN104301786B (zh)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105979346A (zh) * 2015-12-03 2016-09-28 乐视致新电子科技(天津)有限公司 一种播放流媒体的方法和装置
CN105490886A (zh) * 2015-12-31 2016-04-13 北京金山安全软件有限公司 一种测试网络速度的方法、装置及电子设备
CN106488325B (zh) * 2016-11-08 2019-09-17 青岛海信电器股份有限公司 网络媒体文件播放方法、装置及设备
CN109982159B (zh) * 2017-12-27 2021-10-22 华为技术有限公司 在线播放流媒体的方法和终端
JP7133634B2 (ja) * 2018-03-09 2022-09-08 ライン プラス コーポレーション ユーザフィードバックが可能なボットに基づいて映像を制作する方法、システム、および非一時的なコンピュータ読み取り可能な記録媒体
CN112637660A (zh) * 2020-12-21 2021-04-09 四川长虹电器股份有限公司 一种安卓电视视频应用起播的图像稳定方法
CN112752148A (zh) * 2020-12-28 2021-05-04 北京百度网讯科技有限公司 视频起播的优化方法、装置、设备以及存储介质
CN112752152B (zh) * 2020-12-28 2022-11-25 海信视像科技股份有限公司 投送视频播放方法及显示设备

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101001362A (zh) * 2006-01-11 2007-07-18 腾讯科技(深圳)有限公司 在线播放流媒体的方法及终端
CN103152651A (zh) * 2013-01-31 2013-06-12 广东欧珀移动通信有限公司 一种自动调节流媒体缓冲区播放门限的方法和系统

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7391717B2 (en) * 2003-06-30 2008-06-24 Microsoft Corporation Streaming of variable bit rate multimedia content

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101001362A (zh) * 2006-01-11 2007-07-18 腾讯科技(深圳)有限公司 在线播放流媒体的方法及终端
CN103152651A (zh) * 2013-01-31 2013-06-12 广东欧珀移动通信有限公司 一种自动调节流媒体缓冲区播放门限的方法和系统

Also Published As

Publication number Publication date
CN104301786A (zh) 2015-01-21

Similar Documents

Publication Publication Date Title
CN104301786B (zh) 网络视频播放方法
CN103475932B (zh) 网络视频的无缝在线播放方法及装置、网络电视系统
US9043829B2 (en) Synchronization of user interactive events with on-screen events during playback of multimedia stream
CN103686255B (zh) 一种基于hls协议的视频广告投放方法及其装置
CN105263037B (zh) 一种基于客户端缓存的自适应流化方法
EP2665261A1 (en) Content reproduction device, content reproduction method, delivery system, content reproduction program, recording medium, and data structure
CN104378662B (zh) 一种智能电视判断用户有效收视节目的系统和方法
CN107835200B (zh) 一种视频清晰度的选择方法、装置及电子设备
JP6155519B2 (ja) ストリーミング・メディアに基づいてビットストリーム・セグメントを選択する方法、プレイヤー、および端末
CN103581708A (zh) 机顶盒开机广告播放的方法和系统
WO2013002828A2 (en) Systems and methods for determining available bandwidth and performing initial stream selection when commencing streaming using hypertext transfer protocol
CN104780400B (zh) 移动广告推送系统及其操作移动电子装置的方法
CN102572558B (zh) 一种视频插播的方法、装置及系统
CN102204272A (zh) 流媒体中播放时间点跳转后的处理方法及装置
KR20170012461A (ko) 플레이백 사용자 경험에 대한 최소 영향으로 멀티미디어 스트리밍 데이터의 프리-페칭을 감소하기 위한 방법
CN109937448A (zh) 用于在特技播放回放期间提供音频内容的系统和方法
CN105072480B (zh) 一种视频直播方法及装置
CN104125516A (zh) 媒体文件接收、媒体文件发送方法和装置及系统
CN107566854B (zh) 一种媒体内容的获取和发送方法及装置
CN103957471A (zh) 网络视频播放的方法和装置
CN107087214A (zh) 实现流媒体内容倍速播放的方法、客户端及系统
CN106488325B (zh) 网络媒体文件播放方法、装置及设备
CN105898398A (zh) 一种广告播放和投放的方法、装置和系统
US8386632B2 (en) Method, device, and system for controlling streaming media play
CN104837056A (zh) 一种网络电视节目切换方法、装置和电视系统

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant