CN102665131A - Video buffer method for receiving end of network video service system - Google Patents

Video buffer method for receiving end of network video service system Download PDF

Info

Publication number
CN102665131A
CN102665131A CN2012101274635A CN201210127463A CN102665131A CN 102665131 A CN102665131 A CN 102665131A CN 2012101274635 A CN2012101274635 A CN 2012101274635A CN 201210127463 A CN201210127463 A CN 201210127463A CN 102665131 A CN102665131 A CN 102665131A
Authority
CN
China
Prior art keywords
video
data
buffer queue
buffer
network
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.)
Pending
Application number
CN2012101274635A
Other languages
Chinese (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.)
Shandong Computer Science Center
Original Assignee
Shandong Computer Science Center
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 Computer Science Center filed Critical Shandong Computer Science Center
Priority to CN2012101274635A priority Critical patent/CN102665131A/en
Publication of CN102665131A publication Critical patent/CN102665131A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a video buffer method for the receiving end of a network video service system. The method comprises the following steps of: (a), establishing a buffer queue; (b), receiving and blocking data; (c), storing the data into the buffer queue; (d), comparing the receiving and play time of each of the first n data blocks to judge current network speed; (e), if the network speed is high enough, playing the data according to a normal rate; (f), if the network speed is not high enough, performing further judgment; and (g), lowering a play rate. The step (f) comprises the following steps of: (f-1), if the number of data blocks in the buffer queue is greater than n, normally playing the data; and (f-2) if the number of the data blocks is less than n continuously for k times, replacing n by utilizing n+j. According to the video buffer method, a network speed environment can be automatically sensed, and a buffer length and a play rate can be automatically regulated according to the network speed environment, so that the adaptive bandwidth play of a final user of the video service system in different network speed environments can be effectively realized; and in addition, high video play continuity is ensured, so that the service can obtain highly-satisfactory network streaming media service in different network environments.

Description

A kind of video buffer method of Internet video service system receiving terminal
Technical field
The present invention relates to a kind of video buffer method of Internet video service system receiving terminal; In particular, relate in particular to a kind of automatic perception network speed environment and dynamically adjust the video buffer method of the Internet video service system receiving terminal of video data buffering according to the network speed environment.
Background technology
Along with developing rapidly of Internet technology, network flow-medium is used extensive further.The medium that transmit with the mode of stream in the network are called Streaming Media, mainly are meant video, audio frequency etc." the China Internet network state of development statistical report " of CNNIC in January, 2012 issue pointed out; " by in by the end of December, 2011; Chinese Internet video number of users increases to 3.25 hundred million; annual growth reaches 14.6%, the utilization rate in the netizen is by being promoted to 63.4% 62.1% of the last end of the year ", " (Internet video) become the fifth-largest internet, applications at present ".
Stream medium data is compared traditional data has significant difference and characteristic: 1) data volume of Streaming Media is example much larger than traditional data with the video data, and typical MPEG-l code stream is 1.5Mbps, the about 11.25MB of the data volume of l minute MPEG-1 code stream; 2) stream medium data has tangible qualitative character, like definition of Internet video etc.; 3) stream medium data has tangible temporal correlation, and in video, the time interval of interframe must be followed the scope restriction of user's perception, otherwise the user will significantly feel the discontinuous of video.Based on above characteristic, how to make the final network flow-medium service that obtains high satisfaction of user become challenging research topic in network and the Streaming Media field.
At present, overcoming the above problems general scheme generally is to be conceived to the following aspects: 1) increase the network bandwidth, guarantee that the fluency of Internet video is met consumers' demand; 2) through improving the network field technology, particularly use correlation techniques such as multicast and P2P to come conserve network bandwidth; 3) compress technique promptly adapts to the requirement of the network bandwidth through the data volume that reduces Streaming Media itself.More than three kinds of solutions himself limitation is all arranged, increase the personalized requirement that the network bandwidth itself can't satisfy different user, and bandwidth cost own is higher; Use the P2P technology can optimize the network service efficiency on the whole, but can not guarantee the video continuity of each data receiver; Use the compress technique can't be, and the quality of video itself is decreased in the problem that fundamentally solves insufficient bandwidth.
In existing video buffer field; To receive the user's bandwidth environment inconsistent because of less concern different video; And cause lacking individuality of buffer module characteristics; Can't adjust buffer area size and video playback speed automatically according to different network environments, and make buffering can't effectively bring into play himself advantage and function.
Summary of the invention
The present invention is in order to overcome the shortcoming of above-mentioned technical problem, a kind of automatic perception network speed environment is provided and dynamically adjusted the video buffer method of the Internet video service system receiving terminal of video data buffering according to the network speed environment.
The video buffer method of Internet video service system receiving terminal of the present invention; Its special feature is; May further comprise the steps: a. sets up buffer queue, in the video reception playback equipment, sets up to be used for the buffer queue of stored video data, stores so that treat the video data of broadcast; B. receive data and piecemeal, be the unit or the data that receive carried out piecemeal according to the form of data length five equilibrium with single or a plurality of frame of video; C. deposit buffer queue in, the data behind the piecemeal are deposited in the buffer queue; D. network speed environment measuring is a detecting unit with preceding n data block in the buffer queue, through the time of reception of relatively preceding n data block and the size of normal play n data block required time, comes current network speed is judged that n is a positive integer; If e. network speed satisfies the normal play requirement, then carry out video playback according to normal play speed; If f. network speed does not satisfy the normal play requirement, satisfying under the condition that increases detecting unit, then under suspending situation about playing, increase the number n of data block in the detecting unit, utilize n+j to replace n, j is a positive integer; G. reduce playback rate, to be lower than the speed playing video data of per second 24 frames, keep this low playback rate t time period after, carry out the broadcast of normal speed again.
The video reception playback equipment comprises one or more frame of video for carrying out the terminal equipment of video playback in each data block, generally choose 1-3 frame of video; Data block can realize that also the video length that the data block behind the five equilibrium comprises should be above 200 milliseconds according to the mode of five equilibrium video data length.In the steps d,, judge current network speed environment through relatively receiving the size of the consuming time of n data block and normal play n used time of data block.Among the step f, under halted state, increase detecting unit, effectively increased the number of data block in the buffer queue.In the step g, adopt lower speed that video is play, rather than adopt and suspend, the network environment that makes video playback apparatus adapt to low bandwidth is more play, and has more strong adaptability.
The video buffer method of Internet video service system receiving terminal of the present invention is that a data block is carried out piecemeal with single frame of video among the step b; Said steps d may further comprise the steps: d-1. judges that whether the data block number that is deposited in the buffer queue equals n, if less than n, then continues in buffer queue, to deposit in data block, and carries out timing; When d-2. the data number in being deposited into buffer queue equals n, calculate and receive this n time that data spent, be made as T; Relatively
Figure 2012101274635100002DEST_PATH_IMAGE001
and 1/24 size; D-3. in the steps d-2; If
Figure 104901DEST_PATH_IMAGE001
is less than or equal to 1/24; Think that then network broadband is enough, satisfy the normal play requirement; D-4. in the steps d-2; If
Figure 773780DEST_PATH_IMAGE001
is greater than 1/24; Think that then network broadband is not enough, can not satisfy the normal play requirement.
Calculated the used time of a reception n data block through steps d-1, d-2;
Figure 537834DEST_PATH_IMAGE001
for receiving the used time of single frame of video, 1/24 is the used time of normal play one frame; Through the size of comparison
Figure 292164DEST_PATH_IMAGE001
and 1/24, can realize judgement effectively to current network broadband size.
The video buffer method of Internet video service system receiving terminal of the present invention, said step f may further comprise the steps: f-1. reads the number of data block in the buffer queue; Whether the number of judgment data piece is less than n, if judged result is for not, then according to the normal speed playing video data; If f-2. the judged result among the step f-1 is for being, the number of times that the recording data blocks number takes place less than n if there is the situation of continuous k not enough n to take place, then utilizes n+j replacement n; K is the positive integer more than or equal to 2.
When drawing network broadband environment deficiency, not directly to increase detecting unit and reduce the playback rate processing, but further judge again; When not enough n of the number of data block in continuous k the buffer queue, increase detecting unit and reduction playback rate again.This is that network speed was temporarily slower when the former blocks of data of possibility received because consider the unsteadiness of network speed.If have the situation of continuous k not enough n to take place, then be regarded as satisfying the condition that increases detecting unit.
The video buffer method of Internet video service system receiving terminal of the present invention, the buffer queue described in the step c is arranged in the internal memory of video reception playback equipment, and the size of buffer queue is not higher than 50% of playback equipment internal memory; Buffer queue is to have the array of first in first out function or the data structure of chain sheet form.
The video buffer method of Internet video service system receiving terminal of the present invention, the method that reduces playback rate in the step g is: come playing video data 10s with per second 20 frames, be per second 24 frames in that playback rate is recalled to then.Though compare slowly with original video playback speed per second 24 frames, not strong influence the in the human visual perception, and guaranteed the coherent broadcast of video, be unlikely to cause video breaks.
The invention has the beneficial effects as follows: video buffer method of the present invention; Automatically perception network speed environment; And adjust buffer length and playback rate automatically according to the network speed environment, realized that effectively the adaptive bandwidth of video service system end user under different network speed environment play; Guarantee the higher coherent degree of video playback simultaneously, made the user under different network environments, finally obtain the network flow-medium service of higher satisfaction.
Description of drawings
Fig. 1 is the flow chart of video buffer method of the present invention;
Whether Fig. 2 is for increasing the determination methods flow chart of detecting unit length among the present invention;
Fig. 3 is the structural representation of buffer queue among the present invention and detecting unit.
Embodiment
Below in conjunction with accompanying drawing and embodiment the present invention is described further.
As depicted in figs. 1 and 2, provided the flow chart of video buffer method of the present invention and the determination methods that whether increases detecting unit length wherein, below in conjunction with these two flow charts video buffer method of the present invention is at length described.
The video buffer method of Internet video service system receiving terminal of the present invention may further comprise the steps:
A. set up buffer queue, foundation is used for the buffer queue of stored video data in the video reception playback equipment, stores so that treat the video data of broadcast; Buffer queue is based upon in the internal memory of video reception playback equipment, and it can adopt the array of first in first out form or the data structure of chain sheet form, is advisable to be no more than 50% of memory headroom;
B. receive data and piecemeal, be the unit or the data that receive carried out piecemeal according to the form of data length five equilibrium with single or a plurality of frame of video; 1~3 frame of video of general employing is a data block; Adopt timesharing such as video data, the data block length of formation should be in 200ms;
C. deposit buffer queue in, the data behind the piecemeal are deposited in the buffer queue;
D. network speed environment measuring is a detecting unit with preceding n data block in the buffer queue, through the time of reception of relatively preceding n data block and the size of normal play n data block required time, comes current network speed is judged that n is a positive integer; For example the n value is 5;
If be that a data block is carried out piecemeal with single frame of video among the step b; The network speed environment measuring of this step can realize through following steps so:
D-1. judge whether the data block number that is deposited in the buffer queue equals n, if less than n, then continues in buffer queue, to deposit in data block, and carries out timing;
When d-2. the data number in being deposited into buffer queue equals n, calculate and receive this n time that data spent, be made as T; Relatively
Figure 29176DEST_PATH_IMAGE001
and 1/24 size;
D-3. in the steps d-2; If is less than or equal to 1/24; Think that then network broadband is enough, satisfy the normal play requirement;
D-4. in the steps d-2; If
Figure 920088DEST_PATH_IMAGE001
is greater than 1/24; Think that then network broadband is not enough, can not satisfy the normal play requirement;
If e. network speed satisfies the normal play requirement, then carry out video playback according to normal play speed;
If f. network speed does not satisfy the normal play requirement, then under suspending situation about playing, increase the number n of data block in the detecting unit, utilize n+j to replace n, j is a positive integer;
This step f can realize through step once:
F-1. read the number of data block in the buffer queue; Whether the number of judgment data piece is less than n, if judged result is for not, then according to the normal speed playing video data;
If f-2. the judged result among the step f-1 is for being, the number of times that the recording data blocks number takes place less than n if there is the situation of continuous k not enough n to take place, then utilizes n+j replacement n; K is the positive integer more than or equal to 2; Wherein the value of k, j can all be taken as 2, and the buffer queue before and after substituting and the structural representation of detecting unit are as shown in Figure 3;
Through step f-1 and f-2; Do not satisfy at network speed under the situation of normal play requirement; Directly do not increase the length and reduction playback rate of detecting unit; But, come further to confirm that current network speed is not enough to satisfy normal the broadcast through judging that the situation whether continuous k not enough n is arranged in the buffer queue takes place;
G. reduce playback rate, to be lower than the speed playing video data of per second 24 frames, keep this low playback rate t time period after, carry out the broadcast of normal speed again; Adopt and reduce playback rate but not tentative processing method, guaranteed the higher coherent degree of video playback, make the user under different network environments, finally obtain the network flow-medium service of higher satisfaction.
Wherein, video data reception and piecemeal are for whole way to play for time basic data to be provided; It is for basic data provides the data of buffer queue structure that buffer queue is joined the team, and does the basis for the perception network speed with dynamic adjustment playback rate and prepare; Perception network speed environment is the core of the method for the invention, judges the network bandwidth at video reception end subscriber place through perception network speed environment, and further operates in view of the above; Result according to perception network speed environment is judged belongs to network bandwidth deficiency if the result is the active user, then buffer queue is adjusted; After buffer queue adjusted, also to read playback rate adjustment, afterwards video data read and plays video; If the result who judges according to step S3 satisfies the coherent broadcast demand of video for the active user belongs to the network bandwidth, then directly the video data in the buffer queue is read and plays.
For more detailed explanation; Under the situation that adopts programming language C++; In existing videoconference program, to increase perception network speed environment automatically and to be concrete embodiment, further explain according to the video data buffer module that the network speed environment is adjusted buffer length and playback rate automatically.
Because way to play for time involved in the present invention is integrated in the existing video service system receiving terminal, different to the data flow architecture of legacy data receiving terminal, adopt different method of partitions.The video data that includes a frame in each data block, the video playback time span that comprises in each data block are about 41.7 milliseconds (1 second/24 frames).
Buffer queue is a kind of special linear list, and it only allows to carry out deletion action at the front end (front) of table, and inserts operation in the rear end (rear) of table.The end that inserts operation is called tail of the queue, and the end that carries out deletion action is called team's head.In this data structure of formation, the element that inserts at first will be the element of being deleted at first; Otherwise the element that the last element that inserts will be deleted at last, so formation is called the linear list of " first in first out " (FIFO-first in first out) again.The mode of realization buffer queue data structure can have multiple, mainly can use data structures such as array and chained list to realize.
Particularly, adopt the implementation of chained list as buffer queue, this routine realization for ease, can adopt following structure:
struct?node{
unsigned?char?bdata[30000];
int?bsize?;
int?T;
int?D;
struct?node?*next;
};
struct?bufferlink?{
node?*front;
node?*rear;
int?count;
};
In the above usability of program fragments; The node of each deblocking of structure node representative storage; Node is except comprising video data bdata, data length bsize and video length T; The pointer next that also comprises the next node of this node in the list structure, D is the system time that each data block of record receives in addition, this parameter is to prepare for perception network speed environment.The chained list that structure bufferlink is made up of node; This storage of linked list is in the receiving end computer internal memory, and in the present embodiment, count is defined as 1000; That is to say that this chained list maximum storage data block number is 1000, be not more than present embodiment operation computer internal memory 50%.
In the present embodiment, the usability of program fragments that deposits buffer queue behind the deblocking in is as follows:
if(bufferlink1->count==0)
{
p=(struct?node?*)malloc(sizeof(struct?node));
for(int?i=0;i≤30000;i++)
{p->bdata[i]=vdata[i];}
p->bsize=retvalue;
p->T=42;
p->next=NULL;
bufferlink1->front=p;
bufferlink1->rear=p;
bufferlink1->count++;
}
else
{
p=(struct?node?*)malloc(sizeof(struct?node));
for(int?i=0;i≤30000;i++)
{p->bdata[i]=vdata[i];}
p->bsize=retvalue;
p->T=42;
p->next=bufferlink1->rear->next;
bufferlink1->rear->next=p;
bufferlink1->rear=p;
bufferlink1->count++;
}
Any that it may be noted that send the transmission data because present embodiment is based on video capture device by frame, so each data block comprises video length among the structure node T (i)All be 42.Be without loss of generality, if introduce here based on other partitioned modes, T (i)Be how to write down and deposit in buffer queue.Internet video service system for adopting RTP/RTCP agreement, RSTP agreement can directly be read in the message that receives, and in depositing each node in record, promptly when buffer queue deposits in usefulness " p->T=Timesatmp; " assignment statement replace in the said procedure fragment " p->T=42; ".For adopting other self-editing agreements to carry out the Internet video service system of transfer of data, owing to adopt formula T (i)=Size (i) (T (total)/Size (total))Estimate,, can use " p-then so earlier video total time TotalTime and the total big or small TotalSize of video data and current data block size bsize are read out; T=p->Bsize* (TotalTime/TotalSize); " assignment statement replaces " the p-> in the said procedure fragment; T=42; ".
At Data Receiving and piecemeal and after depositing the buffer queue completion in, carrying out the network speed environment measuring.As shown in Figure 3, whole buffer queue is divided into two parts, and the preceding n piece of buffer queue is for judging the required detecting unit of network speed environment, and the quantity of its data block is n.Under initial condition, whole buffer queue is empty queue, before buffer queue deposits in during n video data, is step after not carrying out, and data is provided just for the function of displaying video.With embodiment is example, n=5 among the embodiment.Rule of judgment is:
while(bufferlink1->count>n)
After the preceding n piece of buffer queue has been filled, need calculating to receive the time of filling up this moment.Among the structure node, the effect of parameter D is when each data block is deposited in the buffer queue, and record system time (hundred Milliseconds) and assignment at that time given D.That is to say, in buffer queue, the time that each node receives we all note, the time that n blocks of data piece fills up before calculating only need adopt following formula to get final product:
∑D=D(n)-D(1 )
Network speed bandwidth whether enough deterministic processes is through relatively the realizing of preceding n blocks of data time of reception and data normal play required time, judges the network speed situation with this.T (i) sum that writes down in the just preceding n blocks of data piece of data normal play required time ∑ T (i)If ∑ D≤∑ T (i), it is short that the time ratio that then the n blocks of data receives before the expression is play required time, and current network bandwidth can satisfy the requirement of this video of normal play; If ∑ D>∑ T (i), represent that then current network speed environment does not satisfy the requirement of this video of normal play, need further adjustment buffer queue and playback rate.
Because data are by the frame piecemeal, per second is play 24 frame data, and being equivalent to every frame playback rate is 41.7 milliseconds of 1 second/24 frame ≈.If preceding 5 blocks of data finish receiving in 41.7 milliseconds of * 5=208.5 milliseconds, can judge current network environment is to satisfy the coherent requirement of video playback, and promptly per second is play 24 frame data.If, then can judging the network bandwidth of current network environment greater than 208.5 milliseconds, preceding 5 blocks of data time of receptions can't satisfy the coherent broadcast of video.
If judged result meets the video playback requirement for the current network environment, then carry out video playback according to normal play speed; If judged result is that the current network insufficient bandwidth is to satisfy the video playback requirement; Wouldn't directly adjust the length of buffer queue earlier; This is because consider the unsteadiness of network speed; Network speed was temporarily slower when the former blocks of data of possibility received, but should start the preprocessing process of adjustment buffer queue length this moment.
The preprocessing process of adjustment buffer queue length is as shown in Figure 2.Promptly when playing the taking-up data of buffer queue, at first judge, judge whether to also have in the current buffer queue to surpass n the data that cushioned.If still have n data, then proceed reading of data and played data; If be less than the n blocks of data, then do not take out data, and the number of times that this situation takes place is counted.If k time (k generally gets k=2 more than or equal to 2) can't be taken out data continuously, promptly k the interior data number of buffer queue all is less than n continuously, thinks that then existing buffer queue length is not enough under the current network speed environment.In this case, the length of Automatic Program adjustment buffer queue n, adjusted n '=n+j can get k=j.The adjustment before and after buffer queue go into respectively among Fig. 3 up and down two figure shown in.If during double reading of data, when the data block number all is less than 5 in the buffer queue, then suspends and play reading of data, adjust the length n=7 of buffer queue simultaneously.
Process that suspend to play reading of data adopts a switch parameter OK to realize, just can normal play during OK=1, and during OK=0, then suspend and play.Concrete usability of program fragments is following:
……
if(OK!=0)
{
OK=0;
if(bufferlink1->count>n)
{
q=bufferlink1->front;
((CVideoNetDlg?*)pdlg)->DisplayRemoteFrame(q->bdata,q->bsize);
……
OK=1;
};
else
{
……
n=n+j;
……
}
}
……
Adjustment displaying video speed step; Under default situations, the speed that video data reads and plays is per second 24 frames, after finishing the buffer queue adjustment; If do not adjust the speed that video data reads and plays; The not enough always n piece of number that then can cause block of video data in the adjusted buffer queue causes video temporarily to interrupt playing, and influences user's normal viewing video.For this reason, the present invention needs suitably to adjust the speed that video data reads and plays after finishing the buffer queue adjustment; Video service not influencing the user is strongly experienced on the basis; It is carried out the trace adjustment, and promptly and if only if after adjustment buffer queue length, the time interval that adjustment is read S (i)=θ S (i-1 ), wherein S (i-1 )The current data block that expression is read and the time interval of previous data block.For having write down the video time length that each data block comprised, can get S (i-1 )=T (i-1 ), promptly can get in the lastblock data block comprise video time length and define the current time interval of reading soon. θExpression adjustment coefficient is generally got θ=1.2.After playing 10 second time, will adjust coefficient with this speed θBe adjusted into 1, promptly carrying out with the playback rate before the adjustment that data read and video playback.
Particularly, the playback rate of acquiescence is 42 milliseconds, just about 24 frame data of per second.Because each blocks of data is exactly a frame of video in the present embodiment, so the speed that reads also is whenever to read once at a distance from 42 milliseconds.After having adjusted buffer queue, after the program that former video reads, add following program, make the reading rate step-down.
……
N=1.2*42;
Sleep(N);
……
Wherein, " N=1.2*42; " expression is original every on 42 milliseconds of bases, is adjusted into the blanking time of 1.2*42 millisecond.The result of adjustment makes to read with playback rate and reaches about 20 frames of per second like this; Though compare slowly with original video playback speed per second 24 frames; But not strong influence the in the human visual perception, and guaranteed the coherent broadcast of video, be unlikely to cause video breaks.When starting said procedure, start timer, after 10 seconds timer record time, N is adjusted into 41, and closes timer.The rate recovery that video data is read and play is the state before the adjustment.
Through after the processing of above-mentioned steps, can receive by original video service system and bring in reading of data and play.Also can handle sending to original video service system data receiver after data read in the buffer queue of the method for the invention.Particularly, in the present embodiment, after the video data in the buffer queue is directly read in employing, call original playing function, play.Behind reading video data, these data are deleted in buffer queue.Concrete usability of program fragments is following:
……
q=bufferlink1->front;
((CVideoNetDlg?*)pdlg)->DisplayRemoteFrame(q->bdata,q->bsize);
if(bufferlink1->front->next!=NULL)
bufferlink1->front=bufferlink1->front->next;
bufferlink1->count--;
free(q);
……
In the said procedure fragment; After first data block of playback buffer formation; Directly call original video playback function DisplayRemoteFrame and carry out data playback,, and discharge its internal memory simultaneously with first data block deletion of buffer queue; Simultaneously with second data block of former buffer queue as first of new buffer queue, to treat the broadcast of next blocks of data.

Claims (5)

1. the video buffer method of an Internet video service system receiving terminal is characterized in that, may further comprise the steps:
A. set up buffer queue, foundation is used for the buffer queue of stored video data in the video reception playback equipment, stores so that treat the video data of broadcast;
B. receive data and piecemeal, be the unit or the data that receive carried out piecemeal according to the form of data length five equilibrium with single or a plurality of frame of video;
C. deposit buffer queue in, the data behind the piecemeal are deposited in the buffer queue;
D. network speed environment measuring is a detecting unit with preceding n data block in the buffer queue, through the time of reception of relatively preceding n data block and the size of normal play n data block required time, comes current network speed is judged that n is a positive integer;
If e. network speed satisfies the normal play requirement, then carry out video playback according to normal play speed;
If f. network speed does not satisfy the normal play requirement, satisfying under the condition that increases detecting unit, then under suspending situation about playing, increase the number n of data block in the detecting unit, utilize n+j to replace n, j is a positive integer;
G. reduce playback rate, then to be lower than the speed playing video data of per second 24 frames, keep this low playback rate t time period after, carry out the broadcast of normal speed again.
2. the video buffer method of Internet video service system receiving terminal according to claim 1 is characterized in that, is that a data block is carried out piecemeal with single frame of video among the step b; Said steps d may further comprise the steps:
D-1. judge whether the data block number that is deposited in the buffer queue equals n, if less than n, then continues in buffer queue, to deposit in data block, and carries out timing;
When d-2. the data number in being deposited into buffer queue equals n, calculate and receive this n time that data spent, be made as T; Relatively
Figure 2012101274635100001DEST_PATH_IMAGE002
and 1/24 size;
D-3. in the steps d-2; If
Figure 53315DEST_PATH_IMAGE002
is less than or equal to 1/24; Think that then network broadband is enough, satisfy the normal play requirement;
D-4. in the steps d-2; If
Figure 266122DEST_PATH_IMAGE002
is greater than 1/24; Think that then network broadband is not enough, can not satisfy the normal play requirement.
3. the video buffer method of Internet video service system receiving terminal according to claim 1 and 2 is characterized in that, said step f may further comprise the steps:
F-1. read the number of data block in the buffer queue; Whether the number of judgment data piece is less than n, if judged result is for not, then according to the normal speed playing video data;
If f-2. the judged result among the step f-1 is for being, the number of times that the recording data blocks number takes place less than n if there is the situation of continuous k not enough n to take place, then utilizes n+j replacement n; K is the positive integer more than or equal to 2.
4. the video buffer method of Internet video service system receiving terminal according to claim 1 and 2; It is characterized in that: the buffer queue described in the step c is arranged in the internal memory of video reception playback equipment, and the size of buffer queue is not higher than 50% of playback equipment internal memory; Buffer queue is to have the array of first in first out function or the data structure of chain sheet form.
5. the video buffer method of Internet video service system receiving terminal according to claim 1 and 2; It is characterized in that; The method that reduces playback rate in the step g is: come playing video data 10s with per second 20 frames, be per second 24 frames in that playback rate is recalled to then.
CN2012101274635A 2012-04-27 2012-04-27 Video buffer method for receiving end of network video service system Pending CN102665131A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012101274635A CN102665131A (en) 2012-04-27 2012-04-27 Video buffer method for receiving end of network video service system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012101274635A CN102665131A (en) 2012-04-27 2012-04-27 Video buffer method for receiving end of network video service system

Publications (1)

Publication Number Publication Date
CN102665131A true CN102665131A (en) 2012-09-12

Family

ID=46774522

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012101274635A Pending CN102665131A (en) 2012-04-27 2012-04-27 Video buffer method for receiving end of network video service system

Country Status (1)

Country Link
CN (1) CN102665131A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103051955A (en) * 2012-12-21 2013-04-17 华为技术有限公司 Method and device for playing streaming media
CN103731727A (en) * 2013-12-10 2014-04-16 乐视网信息技术(北京)股份有限公司 Video playing method and video player
CN103747317A (en) * 2013-12-27 2014-04-23 高新兴科技集团股份有限公司 A smooth playing control method of a play database in an instable network
CN103763635A (en) * 2013-05-02 2014-04-30 乐视网信息技术(北京)股份有限公司 Method and system for having control over video buffering
CN104333795A (en) * 2014-11-04 2015-02-04 北京佳讯飞鸿电气股份有限公司 Real-time video bitstream play speed control method independent of timestamp
WO2016090665A1 (en) * 2014-12-09 2016-06-16 深圳Tcl数字技术有限公司 Method and device for playing streaming media data
CN105704554A (en) * 2016-01-22 2016-06-22 广州视睿电子科技有限公司 Audio play method and device
WO2017113940A1 (en) * 2015-12-31 2017-07-06 北京金山安全软件有限公司 Method, apparatus and electronic device for testing network speed
CN107205160A (en) * 2017-06-27 2017-09-26 青岛海信电器股份有限公司 A kind of player method and device of the video issued for server
CN108965807A (en) * 2018-07-17 2018-12-07 深圳市共进电子股份有限公司 Control method for playing back, device, terminal and the storage medium of real-time video
CN109194975A (en) * 2018-11-02 2019-01-11 深圳市云威物联科技有限公司 Audio-video live streaming chases after stream method and device
CN110971935A (en) * 2019-11-27 2020-04-07 福建天泉教育科技有限公司 Adaptive definition video playing method and storage medium
CN112911377A (en) * 2021-02-01 2021-06-04 华录智达科技股份有限公司 System and algorithm for adapting video playing and cache

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101296158A (en) * 2007-04-26 2008-10-29 深圳市同洲电子股份有限公司 Stream media data transmission method and data transmission device thereof
CN101552909A (en) * 2009-04-28 2009-10-07 山东大学 Frame rate controlling method based on wireless video monitoring
CN101959071A (en) * 2010-06-02 2011-01-26 杭州海康威视数字技术股份有限公司 Synchronous decoding method and device
CN102340827A (en) * 2010-07-14 2012-02-01 瑞昱半导体股份有限公司 Wireless communication system and method for adjusting use depth of buffering unit therein
CN102413379A (en) * 2011-11-29 2012-04-11 中国传媒大学 Starting delaying method for streaming media live broadcasting system
WO2012047148A1 (en) * 2010-10-04 2012-04-12 Telefonaktiebolaget L M Ericsson (Publ) Methods and apparatuses for adaptive control of streaming

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101296158A (en) * 2007-04-26 2008-10-29 深圳市同洲电子股份有限公司 Stream media data transmission method and data transmission device thereof
CN101552909A (en) * 2009-04-28 2009-10-07 山东大学 Frame rate controlling method based on wireless video monitoring
CN101959071A (en) * 2010-06-02 2011-01-26 杭州海康威视数字技术股份有限公司 Synchronous decoding method and device
CN102340827A (en) * 2010-07-14 2012-02-01 瑞昱半导体股份有限公司 Wireless communication system and method for adjusting use depth of buffering unit therein
WO2012047148A1 (en) * 2010-10-04 2012-04-12 Telefonaktiebolaget L M Ericsson (Publ) Methods and apparatuses for adaptive control of streaming
CN102413379A (en) * 2011-11-29 2012-04-11 中国传媒大学 Starting delaying method for streaming media live broadcasting system

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103051955B (en) * 2012-12-21 2016-08-03 华为技术有限公司 Flow media playing method and device
CN103051955A (en) * 2012-12-21 2013-04-17 华为技术有限公司 Method and device for playing streaming media
CN103763635B (en) * 2013-05-02 2018-07-27 乐视网信息技术(北京)股份有限公司 A kind of control method and system of video buffer
CN103763635A (en) * 2013-05-02 2014-04-30 乐视网信息技术(北京)股份有限公司 Method and system for having control over video buffering
CN103731727A (en) * 2013-12-10 2014-04-16 乐视网信息技术(北京)股份有限公司 Video playing method and video player
CN103747317A (en) * 2013-12-27 2014-04-23 高新兴科技集团股份有限公司 A smooth playing control method of a play database in an instable network
CN103747317B (en) * 2013-12-27 2017-03-15 高新兴科技集团股份有限公司 A kind of smooth playing control method of broadcasting storehouse under unstable network
CN104333795A (en) * 2014-11-04 2015-02-04 北京佳讯飞鸿电气股份有限公司 Real-time video bitstream play speed control method independent of timestamp
WO2016090665A1 (en) * 2014-12-09 2016-06-16 深圳Tcl数字技术有限公司 Method and device for playing streaming media data
CN105744371A (en) * 2014-12-09 2016-07-06 深圳Tcl数字技术有限公司 Stream media data play method and device
WO2017113940A1 (en) * 2015-12-31 2017-07-06 北京金山安全软件有限公司 Method, apparatus and electronic device for testing network speed
CN105704554A (en) * 2016-01-22 2016-06-22 广州视睿电子科技有限公司 Audio play method and device
CN107205160A (en) * 2017-06-27 2017-09-26 青岛海信电器股份有限公司 A kind of player method and device of the video issued for server
CN108965807A (en) * 2018-07-17 2018-12-07 深圳市共进电子股份有限公司 Control method for playing back, device, terminal and the storage medium of real-time video
CN109194975A (en) * 2018-11-02 2019-01-11 深圳市云威物联科技有限公司 Audio-video live streaming chases after stream method and device
CN109194975B (en) * 2018-11-02 2021-04-20 深圳市云威物联科技有限公司 Audio and video live broadcast stream following method and device
CN110971935A (en) * 2019-11-27 2020-04-07 福建天泉教育科技有限公司 Adaptive definition video playing method and storage medium
CN112911377A (en) * 2021-02-01 2021-06-04 华录智达科技股份有限公司 System and algorithm for adapting video playing and cache
CN112911377B (en) * 2021-02-01 2022-10-21 华录智达科技股份有限公司 System and algorithm for adapting video playing and cache

Similar Documents

Publication Publication Date Title
CN102665131A (en) Video buffer method for receiving end of network video service system
CN111918093B (en) Live broadcast data processing method and device, computer equipment and storage medium
WO2016131223A1 (en) Frame loss method for video frame and video sending apparatus
CN104735470B (en) A kind of streaming media data transmission method and device
CN103747317B (en) A kind of smooth playing control method of broadcasting storehouse under unstable network
CN104780422B (en) Flow media playing method and DST PLAYER
EP2974207B1 (en) Playback stall avoidance in adaptive media streaming
CN106488265A (en) A kind of method and apparatus sending Media Stream
CN110248204A (en) A kind of processing method, device, equipment and the storage medium of live streaming caching
CN107231563A (en) Method for processing video frequency and device
CN106658051B (en) A kind of control method and system of buffered play Streaming Media
WO2021164670A1 (en) Video coding method and apparatus, device, and storage medium
CN103200461A (en) Multiple-player-terminal synchronized playing system and playing method
CN110324654A (en) Main broadcaster end live video frame processing method, device, equipment, system and medium
CN107241615A (en) Live pause method, system, live pause device and direct broadcast server
CN101917613A (en) Acquiring and coding service system of streaming media
CN101931775A (en) Video recording method and device
CN106658067B (en) The method and apparatus of caching are set
CN108174267A (en) The sending device of interactive information, method and computer readable storage medium in live streaming
CN107690090A (en) Video broadcasting method and the electronic installation using the video broadcasting method
WO2015106557A1 (en) Correction method for quality of experience (qoe) of mobile streaming media user, and server
CN102223539A (en) Processing method for splash screen caused by picture coding frame loss
CN108259998A (en) Player and control method for playing back, device, electronic equipment and play system
CN104053002A (en) Video decoding method and device
CN105898358B (en) The sending method and device of video data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120912