CN103596036A - Method for intelligent buffering of streaming media player - Google Patents

Method for intelligent buffering of streaming media player Download PDF

Info

Publication number
CN103596036A
CN103596036A CN201310558911.1A CN201310558911A CN103596036A CN 103596036 A CN103596036 A CN 103596036A CN 201310558911 A CN201310558911 A CN 201310558911A CN 103596036 A CN103596036 A CN 103596036A
Authority
CN
China
Prior art keywords
data
buffering
player
pointer
multithreading
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
CN201310558911.1A
Other languages
Chinese (zh)
Other versions
CN103596036B (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.)
Inspur Cloud Information Technology Co Ltd
Original Assignee
Shandong Inspur Software 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 Shandong Inspur Software Co Ltd filed Critical Shandong Inspur Software Co Ltd
Priority to CN201310558911.1A priority Critical patent/CN103596036B/en
Publication of CN103596036A publication Critical patent/CN103596036A/en
Application granted granted Critical
Publication of CN103596036B publication Critical patent/CN103596036B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a method for intelligent buffering of a streaming media player. The method for intelligent buffering of the streaming media player particularly comprises the steps that multithreading acceleration buffering is set, wherein a head pointer and a tail pointer of played data are recorded, whether a special multithreading buffering condition is met or not is judged, if yes, division is conducted in sections, a responding thread is started, so that requested data are downloaded, and the content between the head pointer and the tail pointer is the content to be played; a reasonable buffering consumption and triggering buffering mechanism is set. Compared with the prior art, the method for intelligent buffering of the streaming media player is capable of improving user experience, strong in practicality, stable and smooth in playing, good in use effect and easy to popularize on the premise that cost is not increased.

Description

A kind of DST PLAYER intelligent buffer method
Technical field
The present invention relates to digital television techniques field, a kind of specifically DST PLAYER intelligent buffer method that does not raise the cost, improves user's experience.
Background technology
In August, 2013,17, State Council issued " broadband China " strategy implementation scheme, and China is welcoming higher bandwidth environment, for the OTT Set Top Box product by network has brought life.By the ott product of network and common dvb product contrast, there is very strong advantage.Ott box can be realized all functions of dvb product, and alleviates operation and maintenance personnel's burden without laying unnecessary circuit, along with the development of Android system and broadband China, believes that ott product will better be developed.But due to the factor of current network, ott box, when watching the program of high definition and blue light, still cannot reach the experience with dvb product.Main cause be exactly due to network bandwidth limitations cause watch time card pause, had a strong impact on user's experience.
The player of each current producer is most of does not carry out deep optimization for this special and complicated situation, cause user when using ott product to watch live or high definition program request, there is variety of issue, main is exactly a card problem, to user, has brought very poor experience.Affected the popularization of ott box product.
China's network speed overwhelming majority is 4M downlink bandwidth at present, by OTT Set Top Box product, watches high-definition program, due to limit bandwidth, often occurs that card pauses or the slow-paced problem of zapping, has a strong impact on user and experiences.When the development like a raging fire of broadband China, how to make OTT Set Top Box product and DVB product compete on the same stage, mainly just concentrate on user's experience aspect.And the raising that user experiences mainly relies on the player of function admirable, except equipping outstanding hardware decoding chip, how, under the prerequisite not raising the cost, improve user's experience, be a great problem.Based on this, this explanation is devoted to provide a kind of solution under not raising the cost, and improves user's experience.
Summary of the invention
Technical assignment of the present invention is to solve the deficiencies in the prior art, provides a kind of and does not raise the cost, DST PLAYER intelligent buffer method.
Technical scheme of the present invention realizes in the following manner, a kind of this DST PLAYER intelligent buffer method, and its concrete way to play for time is:
One, multithreading is set and accelerates buffering: record head pointer and the tail pointer of played data, judge whether to reach specific multithreading buffer condition, after reaching, segmentation is divided, the thread of starting-up response goes download request data, and concrete numerical value depends on concrete network environment, server film source definition and player configurations, the content between above-mentioned head pointer and tail pointer is videlicet by the content of playing;
Two, rational buffering consumption be set and trigger buffering: supposing that certain section of Time-Client OTT box is from the average speed of download S of streaming media server, the video code rate M of client's program request, people's psychology is accepted a card time T, in order to guarantee T, after buffering area is ready to appropriate data, just can send to bottom player to go to process plays, the minimum value of this buffered data is M*T, if ineligible, allow player suspend and waits for.
The detailed content of described step 1 is: player is safeguarded the buffering list of a ring-type, for cushioning the data of obtaining from server end, during player plays, by specific interface data therefrom, play, the size of buffering area designs according to situation separately, player is safeguarded an idle head pointer and idle tail pointer, described idle head pointer refers to valid data tail pointer, idle tail pointer refers to data head pointer, data are between the two invalid datas, outside data are effective played data not, when idle data surpasses critical value, starting multithreading downloads, according to concrete network environment and buffer size, divide the thread of varying number, start download work simultaneously, until fill up current freebuf, and the pointer position of the response that upgrades in time.
While appropriate buffered data being sent to bottom server in described step 2, first start a thread and download, every T/2 does once buffering and checks, if clear area is greater than T/2*M, starts multithreading and downloads; Each thread is responsible for the data volume of T*2*M and is downloaded.
The beneficial effect that the present invention compared with prior art produced is:
A kind of DST PLAYER intelligent buffer method of the present invention is improved user in the viewing experience of using OTT Set Top Box product to watch programme televised live, under the prerequisite not raising the cost, improves user's experience, practical, play steadily smoothness, result of use is desirable, is easy to promote.
Accompanying drawing explanation
Accompanying drawing 1 is multithreading buffering schematic diagram of the present invention.
Embodiment
Below in conjunction with accompanying drawing, a kind of DST PLAYER intelligent buffer method of the present invention is described in detail below.
Difference with the prior art of the present invention is that the video-audio signal Cong Yi road of output expands to multichannel, thereby can reflect a plurality of scenes.A kind of DST PLAYER intelligent buffer method is provided as shown in Figure 1, and its concrete way to play for time is:
One, multithreading is set and accelerates buffering: record head pointer and the tail pointer of played data, judge whether to reach specific multithreading buffer condition, after reaching, segmentation is divided, the thread of starting-up response goes download request data, and concrete numerical value depends on concrete network environment, server film source definition and player configurations, the content between above-mentioned head pointer and tail pointer is videlicet by the content of playing.
The detailed content of this step 1 is: player is safeguarded the buffering list of a ring-type, for cushioning the data of obtaining from server end, during player plays, by specific interface data therefrom, play, the size of buffering area designs according to situation separately.
Program should be safeguarded a free time start pointer (that is to say valid data tail pointer) and idle end tail pointer (namely cable data head pointer), data are between the two invalid datas, outside data are effective played data (player can obtain data wherein by special interface) not.
When idle data surpasses critical value, start multithreading and download, according to concrete network environment and buffer size, divide the thread of varying number, start download work simultaneously, until fill up current freebuf, the pointer position of the response of noting upgrading in time.
Two, rational buffering consumption be set and trigger buffering: the design of buffering strategy, relates to several factors.Need to use a Mathematical Modeling to go modeling Simulation.Suppose that certain section of Time-Client OTT box notes S non-constant along with the time is constantly changing from the average speed of download S(of streaming media server), the video code rate of client's program request (or film source definition) M, people's psychology accept card immediately between T(be less than this time people and when watching program, will feel frequent card).
Must be clear and definite a bit, S<M definitely there will be the phenomenon of time-out, but outward appearance performance is " frequent card in the short time " or " the long-time buffering of suspending ", just relevant with buffering strategy.S>M is just as playing this locality, without buffering.The most rational scheme is according to the T of M and real-time S customization, at set intervals, adjusts at any time buffering strategy.So both look after user's impression, taken into account again performance.
First it is much suitable that the buffering area that we discuss us should be set to, should be for M*T otherwise the limiting case that is 0 at M, client may feel card from defining known minimum.If hardware RAM configuration is large, can suitably increase buffer size.Popular hardware configuration can cushion about 1 minute at present, and T is greatly in 3s.
At DSR after, the player that just can send carries out playback process, for fear of card frequently, known minimum just can send to player to play while being the buffering capacity of M*T.Therefore when carrying out buffer interface design, be noted that if ineligible, allow player suspend and wait for.
Should when trigger multithreading download mechanism, start on earth several threads, also will reasonably design, avoid the situation that causes cpu utilization rate too high.This explanation suggestion starts a thread, and every T/2 does once buffering and checks, if clear area is greater than T/2*M, starts multithreading and downloads.Each thread is responsible for the data volume of T*2*M and is downloaded.Through practice, this processing can save cpu buffered data efficiently again.
Embodiment: the 1G ram that supposed certain hardware using, except operating system takies residue 600M memory headroom.The speed that the ott box of supposing certain client is downloaded from sheet source server is that the highest time that frequent card that 1M/S it is believed that pauses is 3S; film source code check is 2M/S; when this client watches, will inevitably produce the phenomenon of suspending buffering; for fear of long time-out and Caton phenomenon generation frequently, suggestion player is done following operation.
First apply for that 240M internal memory is for building circular buffering, can start at the beginning 240/ (3*2*2) if=20(thread is too much, has caused cpu utilization rate too high, can according to circumstances limit number of threads), simultaneously to server, initiate download request.The start detection buffering left detection in the every 3/2=2s of thread left and right simultaneously, when reaching 2*3=6M, but played data, in the time of due to broadcasting, data, at buffered data, are therefore filled up very soon in backstage, have the detection that detects thread simultaneously, player can be use up farthest and steadily be play, thereby improve user, experiences.
Except the technical characterictic described in specification, be those skilled in the art's known technology.

Claims (3)

1. a DST PLAYER intelligent buffer method, is characterized in that: its concrete way to play for time is:
One, multithreading is set and accelerates buffering: record head pointer and the tail pointer of played data, judge whether to reach specific multithreading buffer condition, after reaching, segmentation is divided, the thread of starting-up response goes download request data, and concrete numerical value depends on concrete network environment, server film source definition and player configurations, the content between above-mentioned head pointer and tail pointer is videlicet by the content of playing;
Two, rational buffering consumption be set and trigger buffering: supposing that certain section of Time-Client OTT box is from the average speed of download S of streaming media server, the video code rate M of client's program request, people's psychology is accepted a card time T, in order to guarantee T, after buffering area is ready to appropriate data, just can send to bottom player to go to process plays, the minimum value of this buffered data is M*T, if ineligible, allow player suspend and waits for.
2. a kind of DST PLAYER intelligent buffer method according to claim 1, it is characterized in that: the detailed content of described step 1 is: player is safeguarded the buffering list of a ring-type, for cushioning the data of obtaining from server end, during player plays, by specific interface data therefrom, play, the size of buffering area designs according to situation separately, player is safeguarded an idle head pointer and idle tail pointer, described idle head pointer refers to valid data tail pointer, idle tail pointer refers to data head pointer, data are between the two invalid datas, outside data are effective played data not, when idle data surpasses critical value, starting multithreading downloads, according to concrete network environment and buffer size, divide the thread of varying number, start download work simultaneously, until fill up current freebuf, and the pointer position of the response that upgrades in time.
3. a kind of DST PLAYER intelligent buffer method according to claim 1 and 2, it is characterized in that: while appropriate buffered data being sent to bottom server in described step 2, first starting a thread downloads, every T/2 does once buffering and checks, if clear area is greater than T/2*M, starts multithreading and downloads; Each thread is responsible for the data volume of T*2*M and is downloaded.
CN201310558911.1A 2013-11-12 2013-11-12 Intelligent buffering method for streaming media player Active CN103596036B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310558911.1A CN103596036B (en) 2013-11-12 2013-11-12 Intelligent buffering method for streaming media player

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310558911.1A CN103596036B (en) 2013-11-12 2013-11-12 Intelligent buffering method for streaming media player

Publications (2)

Publication Number Publication Date
CN103596036A true CN103596036A (en) 2014-02-19
CN103596036B CN103596036B (en) 2017-08-11

Family

ID=50085991

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310558911.1A Active CN103596036B (en) 2013-11-12 2013-11-12 Intelligent buffering method for streaming media player

Country Status (1)

Country Link
CN (1) CN103596036B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105227588A (en) * 2014-05-28 2016-01-06 中国移动通信集团公司 A kind of method for down loading of files in stream media and user terminal
CN105553939A (en) * 2015-12-07 2016-05-04 中国联合网络通信集团有限公司 Method and device for determining blockage of streaming media
CN105763927A (en) * 2016-02-19 2016-07-13 福州瑞芯微电子股份有限公司 Method and apparatus for caching smart videos at streaming media playing terminal
CN105992043A (en) * 2015-10-15 2016-10-05 乐视致新电子科技(天津)有限公司 Data processing method and device
CN106303563A (en) * 2016-08-19 2017-01-04 腾讯科技(深圳)有限公司 The online playing method and device of Streaming Media
CN106688240A (en) * 2014-07-08 2017-05-17 萨热姆通信宽带简易股份有限公司 Method and device for remotely recording video programs
CN106851337A (en) * 2017-02-21 2017-06-13 聚好看科技股份有限公司 Video buffer control method and device
CN108156514A (en) * 2017-12-27 2018-06-12 广东欧珀移动通信有限公司 Playback method, device and the storage medium of media file
CN108877845A (en) * 2018-06-29 2018-11-23 广州酷狗计算机科技有限公司 Playback of songs method and device
CN114727128A (en) * 2022-03-30 2022-07-08 恒玄科技(上海)股份有限公司 Data transmission method and device of playing terminal, playing terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101267541A (en) * 2008-04-02 2008-09-17 武汉大学 A stream media distribution server applicable to online VoD or living broadcast
CN102802075A (en) * 2012-08-24 2012-11-28 乐视网信息技术(北京)股份有限公司 Online play buffering system and method
CN102970579A (en) * 2012-11-28 2013-03-13 四川长虹电器股份有限公司 Method and device for monitoring video buffer area
CN103024593A (en) * 2012-12-26 2013-04-03 人民搜索网络股份公司 Online VOD (video on demand) acceleration system and online VOD playing method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101267541A (en) * 2008-04-02 2008-09-17 武汉大学 A stream media distribution server applicable to online VoD or living broadcast
CN102802075A (en) * 2012-08-24 2012-11-28 乐视网信息技术(北京)股份有限公司 Online play buffering system and method
CN102970579A (en) * 2012-11-28 2013-03-13 四川长虹电器股份有限公司 Method and device for monitoring video buffer area
CN103024593A (en) * 2012-12-26 2013-04-03 人民搜索网络股份公司 Online VOD (video on demand) acceleration system and online VOD playing method

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105227588A (en) * 2014-05-28 2016-01-06 中国移动通信集团公司 A kind of method for down loading of files in stream media and user terminal
CN106688240B (en) * 2014-07-08 2019-11-05 萨热姆通信宽带简易股份有限公司 For recording method, reception device, server unit and the system of video program
CN106688240A (en) * 2014-07-08 2017-05-17 萨热姆通信宽带简易股份有限公司 Method and device for remotely recording video programs
CN105992043A (en) * 2015-10-15 2016-10-05 乐视致新电子科技(天津)有限公司 Data processing method and device
CN105553939A (en) * 2015-12-07 2016-05-04 中国联合网络通信集团有限公司 Method and device for determining blockage of streaming media
CN105763927A (en) * 2016-02-19 2016-07-13 福州瑞芯微电子股份有限公司 Method and apparatus for caching smart videos at streaming media playing terminal
CN106303563A (en) * 2016-08-19 2017-01-04 腾讯科技(深圳)有限公司 The online playing method and device of Streaming Media
CN106851337A (en) * 2017-02-21 2017-06-13 聚好看科技股份有限公司 Video buffer control method and device
CN106851337B (en) * 2017-02-21 2019-12-24 聚好看科技股份有限公司 Video buffering control method and device
CN108156514A (en) * 2017-12-27 2018-06-12 广东欧珀移动通信有限公司 Playback method, device and the storage medium of media file
CN108877845A (en) * 2018-06-29 2018-11-23 广州酷狗计算机科技有限公司 Playback of songs method and device
CN108877845B (en) * 2018-06-29 2020-11-03 广州酷狗计算机科技有限公司 Song playing method and device
CN114727128A (en) * 2022-03-30 2022-07-08 恒玄科技(上海)股份有限公司 Data transmission method and device of playing terminal, playing terminal and storage medium
CN114727128B (en) * 2022-03-30 2024-04-12 恒玄科技(上海)股份有限公司 Data transmission method and device of playing terminal, playing terminal and storage medium

Also Published As

Publication number Publication date
CN103596036B (en) 2017-08-11

Similar Documents

Publication Publication Date Title
CN103596036A (en) Method for intelligent buffering of streaming media player
CN103747317B (en) A kind of smooth playing control method of broadcasting storehouse under unstable network
CA2863733C (en) Method and system of playing online video at a speed variable in real time
CN105681874A (en) Network video online playing method and device
CN103731720B (en) The multi-medium data caching method and device of a kind of intelligent television
CN104469396B (en) A kind of distributed trans-coding system and method
CN105302890A (en) Multimedia content online recommendation method and multimedia content online recommendation auxiliary method and apparatus
US20150279334A1 (en) Method and apparatus for reducing power usage during video presentation on a display
WO2019001407A1 (en) Download control method and device, multimedia terminal and computer storage medium
CN106559706B (en) A kind of processing method of audio data, device and system
CN102802075A (en) Online play buffering system and method
CN102665131A (en) Video buffer method for receiving end of network video service system
CN103870393B (en) cache management method and system
CN107333163A (en) A kind of method for processing video frequency and device, a kind of terminal and storage medium
CN105872722A (en) Online video start playing caching system and method
CN109240833A (en) Resource allocation method, device, terminal and storage medium
CN108667881B (en) Service data synchronization method for intelligent terminal and cloud server
CN104902145B (en) A kind of player method and device of live stream video
CN103648011A (en) Audio and video synchronization device and method based on HLS protocol
CN105898625B (en) Playing processing method and terminal equipment
CN103391467A (en) Method for achieving synchronization of decoding and displaying of audio and video of network set-top box
CN103634661A (en) Method and device for implementing video on demand
CN105791987B (en) The method and terminal that media data plays
CN106851337B (en) Video buffering control method and device
CN101119469A (en) High definition digital television code stream instrument and player memory control optimization method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 250100 Ji'nan science and Technology Development Zone, Shandong Branch Road No. 2877

Applicant after: Inspur Group Co., Ltd.

Address before: 250104 Ji'nan science and Technology Development Zone, Shandong Branch Road No. 2877

Applicant before: Shandong Inspur software Co., Ltd.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20180807

Address after: 250100 S06 tower, 1036, Chao Lu Road, hi tech Zone, Ji'nan, Shandong.

Patentee after: Shandong wave cloud Mdt InfoTech Ltd

Address before: 250100 Ji'nan hi tech Zone No. 2877, Shandong Province

Patentee before: Inspur Group Co., Ltd.

CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 250100 No. 1036 Tidal Road, Jinan High-tech Zone, Shandong Province, S01 Building, Tidal Science Park

Patentee after: Inspur cloud Information Technology Co., Ltd

Address before: 250100 Ji'nan science and technology zone, Shandong high tide Road, No. 1036 wave of science and Technology Park, building S06

Patentee before: SHANDONG LANGCHAO YUNTOU INFORMATION TECHNOLOGY Co.,Ltd.