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

网络视频播放方法 Download PDF

Info

Publication number
CN104301786A
CN104301786A CN201410507844.5A CN201410507844A CN104301786A CN 104301786 A CN104301786 A CN 104301786A CN 201410507844 A CN201410507844 A CN 201410507844A CN 104301786 A CN104301786 A CN 104301786A
Authority
CN
China
Prior art keywords
player
video
data
network video
playing
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.)
Granted
Application number
CN201410507844.5A
Other languages
English (en)
Other versions
CN104301786B (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 true CN104301786A (zh) 2015-01-21
CN104301786B 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)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105979346A (zh) * 2015-12-03 2016-09-28 乐视致新电子科技(天津)有限公司 一种播放流媒体的方法和装置
CN106488325A (zh) * 2016-11-08 2017-03-08 青岛海信电器股份有限公司 网络媒体文件播放方法、装置及设备
WO2017113940A1 (zh) * 2015-12-31 2017-07-06 北京金山安全软件有限公司 一种测试网络速度的方法、装置及电子设备
CN109982159A (zh) * 2017-12-27 2019-07-05 华为技术有限公司 在线播放流媒体的方法和终端
CN111837406A (zh) * 2018-03-09 2020-10-27 连普乐士株式会社 基于用户可反馈的机器人制作影像的方法和系统以及非暂时性计算机可读记录介质
CN112637660A (zh) * 2020-12-21 2021-04-09 四川长虹电器股份有限公司 一种安卓电视视频应用起播的图像稳定方法
CN112752152A (zh) * 2020-12-28 2021-05-04 海信视像科技股份有限公司 投送视频播放方法及显示设备
CN112752148A (zh) * 2020-12-28 2021-05-04 北京百度网讯科技有限公司 视频起播的优化方法、装置、设备以及存储介质

Citations (3)

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

Patent Citations (3)

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

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105979346A (zh) * 2015-12-03 2016-09-28 乐视致新电子科技(天津)有限公司 一种播放流媒体的方法和装置
WO2017092329A1 (zh) * 2015-12-03 2017-06-08 乐视控股(北京)有限公司 一种播放流媒体的方法和装置
WO2017113940A1 (zh) * 2015-12-31 2017-07-06 北京金山安全软件有限公司 一种测试网络速度的方法、装置及电子设备
CN106488325A (zh) * 2016-11-08 2017-03-08 青岛海信电器股份有限公司 网络媒体文件播放方法、装置及设备
CN106488325B (zh) * 2016-11-08 2019-09-17 青岛海信电器股份有限公司 网络媒体文件播放方法、装置及设备
CN109982159A (zh) * 2017-12-27 2019-07-05 华为技术有限公司 在线播放流媒体的方法和终端
CN109982159B (zh) * 2017-12-27 2021-10-22 华为技术有限公司 在线播放流媒体的方法和终端
CN111837406A (zh) * 2018-03-09 2020-10-27 连普乐士株式会社 基于用户可反馈的机器人制作影像的方法和系统以及非暂时性计算机可读记录介质
CN112637660A (zh) * 2020-12-21 2021-04-09 四川长虹电器股份有限公司 一种安卓电视视频应用起播的图像稳定方法
CN112752152A (zh) * 2020-12-28 2021-05-04 海信视像科技股份有限公司 投送视频播放方法及显示设备
CN112752148A (zh) * 2020-12-28 2021-05-04 北京百度网讯科技有限公司 视频起播的优化方法、装置、设备以及存储介质

Also Published As

Publication number Publication date
CN104301786B (zh) 2017-09-29

Similar Documents

Publication Publication Date Title
CN104301786A (zh) 网络视频播放方法
US20210385540A1 (en) Systems and methods for real-time adaptive bitrate transcoding and transmission of transcoded media
JP5668512B2 (ja) 情報処理装置、及び、情報処理方法
EP2391086B1 (en) Method and apparatus for playing live content
CN102130936B (zh) 一种在动态http流传输方案中支持时移回看的方法和装置
US20230252522A1 (en) Multiple Playback Local Ad Rotation
US20130294747A1 (en) Content playing device, content playing method, distribution system, content playing program, recording medium, and data structure
CN105933732B (zh) 一种视频播放时长统计方法及系统
CN103517157A (zh) 实现hls频道时移播放的方法及系统
CN105072480B (zh) 一种视频直播方法及装置
CN103581708A (zh) 机顶盒开机广告播放的方法和系统
US10313722B1 (en) Synchronizing audio content and video content
EP3824638B1 (en) Advanced preparation for content revision based on expected latency in obtaining new content
CN104394476A (zh) 一种时移播放方法及媒体播放器
EP3571848A1 (en) Content streaming system and method
KR20170012461A (ko) 플레이백 사용자 경험에 대한 최소 영향으로 멀티미디어 스트리밍 데이터의 프리-페칭을 감소하기 위한 방법
JP5868433B2 (ja) 一時停止メディアを再開する方法および装置
CN102572558A (zh) 一种视频插播的方法、装置及系统
CN103813185A (zh) 一种分段节目快速分发的方法、服务器及客户端
WO2016112641A1 (zh) 客户端、流媒体数据接收方法和流媒体数据传输系统
KR101769115B1 (ko) 큐톤 광고 서비스를 제공하는 시스템, 미디어 재생 장치 및 광고 컨텐츠 제공 서버
US9332421B2 (en) Method and apparatus for random access to multimedia content in wireless communication system
CN106303754A (zh) 一种音频数据播放方法及装置
WO2017080152A1 (zh) 一种同步数据的方法和装置
US20150026711A1 (en) Method and apparatus for video content distribution

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