一种网络播放数据缓冲方法技术

技术编号:16286366 阅读:73 留言:0更新日期:2017-09-25 02:18
本发明专利技术公开了一种网络播放数据缓冲方法,包括步骤:A1、设置缓冲区数据最小值min、缓冲区数据最大值max以及平滑播放时间playtime;A2、更新实时网络带宽bandwidth和实时视频码率bitrate,缓冲视频数据;A3、根据平滑播放时间playtime和实时视频码率bitrate计算播放所需数据量playsize;A4、如果当前缓冲数据量cur_data_size大于播放所需数据量playsize则执行步骤A5,否则执行步骤A2;A5、停止缓冲视频数据并对视频数据进行解码输出;A6、返回步骤A2。本发明专利技术使得在网络带宽确定的条件下,播放视频码率低的视频不用再缓冲和播放视频码率较高的视频时一样的数据大小,使播放更加流畅平滑;在视频码率确定的情况下,在网络带宽较好的情况下不用缓冲和网络环境较差时一样的数据大小,从而使播放更加流畅平滑。

Network playing data buffering method

The invention discloses a network broadcast data buffer method, comprising the steps of: A1, set the buffer data minimum min and maximum Max data buffer and smooth playback time of playtime; A2, bandwidth and real-time update of network bandwidth for real-time video rate bitrate, the video data buffer; A3, according to the smooth playback time and real-time playtime video rate calculation of bitrate required for playback of data playsize; A4, if the current data buffer cur_data_size is greater than the amount of data needed to play playsize step A5 is executed, otherwise executing step A2; A5, stop buffer video data and decode the output of video data; A6, return to step A2. The invention makes sure in network bandwidth under the condition of low bit rate video playback video without buffer and video playback rate video as the size of the data, to make the play more smoothly; the video rate is determined, the network bandwidth is better without buffer and poor network environment as the data the size, thus to make the play more smoothly.

【技术实现步骤摘要】

本专利技术涉及网络视频播放
,具体涉及一种网络播放数据缓冲方法
技术介绍
目前,手机、平板电脑、dongle等产品越来越普及,给广大用户带来极大便利和享受,而网络视频播放是这些产品不可或缺的重要功能,网络视频分辨率越来越高,目前的网络播放缓冲数据的机制在现有网络带宽下,没有更好的处理视频分辨率和网络带宽差异带来的影响,导致用户体验不佳。现有网络视频播放的缓冲机制并没有考虑网络带宽和视频码率的不同,而是缓冲固定的数据量。如此一来,便有如下两方面的问题:在网络带宽相同时,低码率的视频也需要缓冲和高码率视频一样的数据大小,从而导致缓冲时间延长。在视频码率相同时,网络带宽较好时也需要缓冲和网络带宽较差时一样的数据大小,从而导致缓冲时间延长。
技术实现思路
本专利技术要解决的技术问题在于,针对现有技术的不足,提供一种网络播放数据缓冲方法,克服现有技术的缓冲方法缓冲固定的数据量,导致缓冲时间过长的缺陷。本专利技术为解决上述技术问题所采用的技术方案为本文档来自技高网...

【技术保护点】
一种网络播放数据缓冲方法,其特征在于,包括步骤:A1、设置缓冲区数据最小值min、缓冲区数据最大值max以及平滑播放时间playtime;A2、更新实时网络带宽bandwidth和实时视频码率bitrate,缓冲视频数据;A3、根据所述平滑播放时间playtime和实时视频码率bitrate计算播放所需数据量playsize;A4、如果所述当前缓冲数据量cur_data_size大于所述播放所需数据量playsize则执行步骤A5,否则执行步骤A2;A5、停止缓冲视频数据并对所述视频数据进行解码输出;A6、返回步骤A2。

【技术特征摘要】
1.一种网络播放数据缓冲方法,其特征在于,包括步骤:
A1、设置缓冲区数据最小值min、缓冲区数据最大值max以及平滑
播放时间playtime;
A2、更新实时网络带宽bandwidth和实时视频码率bitrate,缓冲视频
数据;
A3、根据所述平滑播放时间playtime和实时视频码率bitrate计算播
放所需数据量playsize;
A4、如果所述当前缓冲数据量cur_data_size大于所述播放所需数据
量playsize则执行步骤A5,否则执行步骤A2;
A5、停止缓冲视频数据并对所述视频数据进行解码输出;
A6、返回步骤A2。
2.根据权利要求1所述的网络播放数据缓冲方法,其特征在于:
所述步骤A3还包括步骤:
A31...

【专利技术属性】
技术研发人员:魏宏强陈小川
申请(专利权)人:珠海全志科技股份有限公司
类型:发明
国别省市:广东;44

网友询问留言 已有0条评论
  • 还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。

1