CN103596036B - Intelligent buffering method for streaming media player - Google Patents

Intelligent buffering method for streaming media player Download PDF

Info

Publication number
CN103596036B
CN103596036B CN201310558911.1A CN201310558911A CN103596036B CN 103596036 B CN103596036 B CN 103596036B CN 201310558911 A CN201310558911 A CN 201310558911A CN 103596036 B CN103596036 B CN 103596036B
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.)
Active
Application number
CN201310558911.1A
Other languages
Chinese (zh)
Other versions
CN103596036A (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
Inspur Software Group 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 Inspur Software Group Co Ltd filed Critical Inspur Software Group 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

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention provides an intelligent buffering method for a streaming media player, which comprises the following specific steps: and setting multithread acceleration buffering: recording a head pointer and a tail pointer of played data, judging whether a specific multithreading buffering condition is reached, segmenting and dividing after the specific multithreading buffering condition is reached, and starting a response thread to download request data, wherein the content between the head pointer and the tail pointer is the content to be played; reasonable buffer consumption and trigger buffer mechanism are set. Compared with the prior art, the intelligent buffering method of the streaming media player improves user experience on the premise of not increasing cost, is high in practicability, stable and smooth in playing, ideal in use effect and easy to popularize.

Description

A kind of DST PLAYER intelligent buffer method
Technical field
It is specifically a kind of not improve cost, improve the stream of Consumer's Experience the present invention relates to digital TV technology Media player intelligent buffer method.
Background technology
On August 17th, 2013, State Council has issued " broadband China " strategy implementation scheme, and China is welcoming higher Bandwidth environment, to bring life by the OTT set-top box product of network.Produced by the ott products and common dvb of network Product contrast is with very strong advantage.Ott boxes can realize that the institute of dvb products is functional, and need not lay unnecessary circuit Mitigate operation and the burden of maintenance personnel, with the development of android system and broadband China, it is believed that ott products will be obtained To more preferable development.But be due to the factor of current network, ott boxes when watching the program of high definition and blue light, still without Method reaches the experience with dvb products.Main cause is precisely due to interim card caused by the network bandwidth limitation when watching, has a strong impact on Consumer's Experience.
The player major part of each current producer carries out deep for this special and complicated situation Optimization, causes user when live or high definition program request is watched using ott products, occurs in that various problems, mainly It is interim card problem, very poor usage experience is brought to user.It has impact on the popularization of ott box products.
Current China network speed is mostly 4M downlink bandwidths, high-definition program is watched by OTT set-top box product, due to band , often there is interim card or the slow-paced problem of zapping, has a strong impact on Consumer's Experience in tolerance system.It is like a raging fire in broadband China Development when, OTT set-top box product is competed on the same stage with DVB products, in terms of mainly just concentrating on Consumer's Experience.And The raising of Consumer's Experience, relies primarily on the player of function admirable, except equipping outstanding hardware decoding chip, how not to carry On the premise of high cost, improve Consumer's Experience, be a great problem.Based on this, this explanation is directed to offer one kind and does not improve cost Under solution, improve user usage experience.
The content of the invention
The technical assignment of the present invention is to solve the deficiencies in the prior art not improving cost, DST PLAYER there is provided one kind Intelligent buffer method.
The technical scheme is that realize in the following manner, a kind of DST PLAYER intelligent buffer method, its Specifically way to play for time is:
First, multithreading is set to accelerate buffering:The head pointer and tail pointer of played data are recorded, judges whether to reach spy Fixed multithreading buffer condition, after reaching, segmentation is divided, and the thread for starting response goes download request data, specific numerical value, according to Rely in specific network environment, server film source definition and player configuration, it is interior between above-mentioned head pointer and tail pointer Hold videlicet by the content of broadcasting;
The 2nd, rational buffering consumption and triggering buffering are set:Assuming that certain section of Time-Client OTT box takes from Streaming Media The average speed of download S of business device, the video code rate M of client's program request, the psychology of people receives interim card time T, in order to ensure T, slow Rush area and get out after appropriate data to be just sent to bottom player and go processing to play, the minimum value of the buffered data is M*T If, it is ineligible, allow player pause to wait.
The detailed content of the step one is:Player safeguards the buffering list of a ring-type, for buffering from server Hold the data obtained, played out during player plays by specific interface data therefrom, the size of buffering area according to Respective situation is designed, and player safeguards an idle head pointer and idle tail pointer, and the idle head pointer refers to have Effect data tail pointer, idle tail pointer refer to data head pointer, and data between the two are invalid datas, outside data be to have The non-played data of effect, when idle data exceedes critical value, starts multithreading and downloads, according to specific network environment and buffering Size, divides the thread of varying number, downloads work, the current freebuf until filling up while starting, and upgrade in time The pointer position of response.
When appropriate buffered data being sent into underlying services device in the step 2, start a thread first and download, often T/2 does once buffering and checked, starting multithreading if clear area is more than T/2*M downloads;Each thread is responsible for T*2*M's Data volume is downloaded.
Produced beneficial effect is the present invention compared with prior art:
A kind of DST PLAYER intelligent buffer method of the present invention is improved user and watched directly using OTT set-top box product The viewing experience of program is broadcast, on the premise of cost is not improved, improves Consumer's Experience, it is practical, play steady smooth, use Effect is preferable, it is easy to promote.
Brief description of the drawings
Accompanying drawing 1 is the multithreading buffering schematic diagram of the present invention.
Embodiment
A kind of DST PLAYER intelligent buffer method to the present invention is described in detail below below in conjunction with the accompanying drawings.
Difference with the prior art of the present invention is the video-audio signal exported from multichannel is expanded to all the way, so as to reflect Multiple scenes.A kind of DST PLAYER intelligent buffer method is provided as shown in Figure 1, and its specific way to play for time is:
First, multithreading is set to accelerate buffering:The head pointer and tail pointer of played data are recorded, judges whether to reach spy Fixed multithreading buffer condition, after reaching, segmentation is divided, and the thread for starting response goes download request data, specific numerical value, according to Rely in specific network environment, server film source definition and player configuration, it is interior between above-mentioned head pointer and tail pointer Hold videlicet by the content of broadcasting.
The detailed content of the step one is:Player safeguards the buffering list of a ring-type, for buffering from server end The data of acquisition, are played out during player plays by specific interface data therefrom, and the size of buffering area is according to each From situation be designed.
Program should safeguard an idle head start pointer(It that is to say valid data tail pointer)With idle end tail pointers (Namely cable data head pointer), data between the two are invalid datas, outside data be effective non-played data (Player can obtain data therein by special interface).
When idle data exceedes critical value, start multithreading and download, according to specific network environment and buffer size, draw Divide the thread of varying number, download work while starting, current freebuf, notes the response that upgrades in time until filling up Pointer position.
The 2nd, rational buffering consumption and triggering buffering are set:The design of buffering strategy, is related to several factors.Need A mathematical modeling is used to go modeling Simulation.Assuming that average download of certain section of Time-Client OTT box from streaming media server Speed S(Note S and non-constant be continually changing over time), the video code rate of client's program request(Or film source definition) M, the psychology of people receives interim card time T(Less than this time, people will feel frequent interim card when program is watched).
Must more clearly be, S<The phenomenon of pause definitely occurs in M, but appearance is " frequently to block in the short time " still " pause buffering for a long time ", it is just relevant with buffering strategy.S>M is just as local broadcasting, all without buffering.It is most rational Scheme is the T according to M and real-time S customizations, at regular intervals, buffering strategy is adjusted at any time.User's impression had so both been looked after, Performance is taken into account again.
First we to discuss that our buffering area should be set to much suitable, understand that minimum should be no for M*T from definition Then in M under 0 limiting case, client may feel interim card.If hardware RAM configurations are big, it can suitably increase buffering area big It is small.Currently a popular hardware configuration can be buffered 1 minute or so, and T is about within 3s.
, can in order to avoid frequently interim card after in DSR, it is possible to which the player of transmission plays out processing Know that can just be sent to player when minimum is M*T buffering capacity plays out.Therefore will when buffer interface design is carried out Note, if ineligible, allow player pause to wait.
When multithreading download mechanism should be being triggered, start several threads on earth, also reasonably to design, it is to avoid cause The too high situation of cpu utilization rates.The suggestion of this explanation starts a thread, and once buffering is done per T/2 and is checked, if clear area Then start multithreading download more than T/2*M.The data volume that each thread is responsible for T*2*M is downloaded.By practice, the processing can be with Saving cpu again can efficient buffered data.
Embodiment:Assuming that certain hardware employs 1G ram, except operating system takes residue 600M memory headrooms.Assuming that The speed that the ott boxes of certain client are downloaded from piece source server be 1M/S it is believed that highest time of frequent interim card be 3S, Film source code check is 2M/S, then the phenomenon of pause buffering will necessarily be produced when the client watches, in order to avoid prolonged temporary Stop and frequently Caton phenomenon occurs, it is proposed that player does following operation.
Application 240M internal memories are used to build circular buffering first, can start 240/ (3*2*2)=20 at the beginning(If thread Excessively, cpu utilization rates be result in too high, can according to circumstances limits number of threads), while initiating download request to server. Start detection buffering thread every 3/2=2s or so left detection simultaneously, when reaching 2*3=6M, but played data, it is same due to broadcasting When, data are filled up in backstage quickly in buffered data, while there is the detection of detection thread, player can be maximum to the greatest extent It is steady to play, so as to improve Consumer's Experience.
It is the known technology of those skilled in the art in addition to the technical characteristic described in specification.

Claims (1)

1. a kind of DST PLAYER intelligent buffer method, it is characterised in that:Its specific buffer step is,
First, multithreading is set to accelerate buffering:The head pointer and tail pointer of played data are recorded, judges whether to reach specifically Multithreading buffer condition, after reaching, segmentation is divided, and the thread for starting response goes download request data, and specific numerical value is depended on Specific network environment, server film source definition and player configuration, the content between above-mentioned head pointer and tail pointer is just It is the content that will be played;
The detailed content of step one is:Player safeguards the buffering list of a ring-type, for buffering what is obtained from server end Data, are played out during player plays by specific interface data therefrom, and the size of buffering area is according to respective feelings Condition is designed, and player safeguards an idle head pointer and idle tail pointer, and the idle head pointer refers to valid data tail Pointer, idle tail pointer refer to valid data head pointer, and data between the two are invalid datas, outside data be effective Non- played data, when invalid data exceedes critical value, starts multithreading and downloads, big according to specific network environment and buffering It is small, the thread of varying number is divided, work, the current freebuf until filling up, and the sound that upgrades in time are downloaded while starting The pointer position answered;
The 2nd, rational buffering consumption and triggering buffering are set:Assuming that certain section of Time-Client OTT box is from streaming media server Average speed of download S, the video code rate M of client's program request, the psychology of people receives interim card time T, in order to ensure T, in buffering area Getting out after appropriate data to be just sent to bottom player goes processing to play, and the minimum value of the buffered data is M*T, such as It is really ineligible, then allow player pause to wait;
When appropriate buffered data being sent into underlying services device in the step 2, start a thread first and download, per T/2 Do once buffering to check, starting multithreading if clear area is more than T/2*M downloads;Each thread is responsible for T*2*M data Amount 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 CN103596036A (en) 2014-02-19
CN103596036B true 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 (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105553939B (en) * 2015-12-07 2018-12-28 中国联合网络通信集团有限公司 A kind of determination method and device of Streaming Media Caton

Families Citing this family (9)

* 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
FR3023665B1 (en) * 2014-07-08 2016-08-19 Sagemcom Documents Sas METHOD AND DEVICE FOR REMOTELY RECORDING VIDEO PROGRAMS.
CN105992043A (en) * 2015-10-15 2016-10-05 乐视致新电子科技(天津)有限公司 Data processing method and device
CN105763927A (en) * 2016-02-19 2016-07-13 福州瑞芯微电子股份有限公司 Method and apparatus for caching smart videos at streaming media playing terminal
CN106303563B (en) * 2016-08-19 2020-04-14 腾讯科技(深圳)有限公司 Streaming media online playing method and device, execution terminal and storage medium
CN106851337B (en) * 2017-02-21 2019-12-24 聚好看科技股份有限公司 Video buffering control method and device
CN108156514B (en) * 2017-12-27 2020-07-07 Oppo广东移动通信有限公司 Media file playing method and device and storage medium
CN108877845B (en) * 2018-06-29 2020-11-03 广州酷狗计算机科技有限公司 Song playing method and device
CN114727128B (en) * 2022-03-30 2024-04-12 恒玄科技(上海)股份有限公司 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 (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105553939B (en) * 2015-12-07 2018-12-28 中国联合网络通信集团有限公司 A kind of determination method and device of Streaming Media Caton

Also Published As

Publication number Publication date
CN103596036A (en) 2014-02-19

Similar Documents

Publication Publication Date Title
CN103596036B (en) Intelligent buffering method for streaming media player
CN103747317B (en) A kind of smooth playing control method of broadcasting storehouse under unstable network
Wei et al. Low latency live video streaming over HTTP 2.0
CN103051955B (en) Flow media playing method and device
KR101500892B1 (en) Variable bit video streams for adaptive streaming
US9021537B2 (en) Pre-buffering audio streams
CN104519372B (en) The switching method and system of a kind of streaming media playing
WO2019001407A1 (en) Download control method and device, multimedia terminal and computer storage medium
WO2012106272A1 (en) System and method for custom segmentation for streaming
US7930449B2 (en) Method and system for data transmission
CN106559706B (en) A kind of processing method of audio data, device and system
CN109218763A (en) A kind of method and smart television of streaming media video switching
CN102790925A (en) Method and VOD (Video On Demand) terminal for playing online streaming media
CN108337553A (en) A kind of multi-medium data pre-download method
WO2017186036A1 (en) Playing processing method, terminal device, and computer storage medium
CN103475927A (en) Online-video real-time speed change play method and system thereof
CN103442307A (en) Method and device for playing video streaming media
CN103391467A (en) Method for achieving synchronization of decoding and displaying of audio and video of network set-top box
CN105791987B (en) media data playing method and terminal
CN104581340B (en) Client, stream medium data method of reseptance and stream medium data transmission system
CN103581741A (en) Special-effect playing device and method
CN110225399A (en) Streaming Media processing method, device, computer equipment and storage medium
CN104023260A (en) Hardware decoding implementation method and device, and player
CN105847990B (en) The method and apparatus for playing media file
CN106488271A (en) A kind of net cast method and device

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.