CN103442307B - The method and apparatus for playing video stream media - Google Patents

The method and apparatus for playing video stream media Download PDF

Info

Publication number
CN103442307B
CN103442307B CN201310364903.3A CN201310364903A CN103442307B CN 103442307 B CN103442307 B CN 103442307B CN 201310364903 A CN201310364903 A CN 201310364903A CN 103442307 B CN103442307 B CN 103442307B
Authority
CN
China
Prior art keywords
frame number
video frame
played
video
buffering
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
CN201310364903.3A
Other languages
Chinese (zh)
Other versions
CN103442307A (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.)
SHENZHEN ATTE SMART LIFE Co.,Ltd.
Original Assignee
World (shanghai) Technology Development 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 World (shanghai) Technology Development Co Ltd filed Critical World (shanghai) Technology Development Co Ltd
Priority to CN201310364903.3A priority Critical patent/CN103442307B/en
Publication of CN103442307A publication Critical patent/CN103442307A/en
Application granted granted Critical
Publication of CN103442307B publication Critical patent/CN103442307B/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 a kind of method for playing video stream media, methods described includes:Obtain the video frame number downloaded in the first controlling cycle and the video frame number played, and the video frame number buffered in video frame buffers after first controlling cycle terminates;Network condition is judged according to the video frame number of the download and the video frame number played, judge whether the frame of video of the buffering is sufficient according to the video frame number of the buffering and the video frame number played, and according to the video frame number to be played of whether sufficient judged result the second controlling cycle of calculating of the frame of video of the network condition and the buffering;In second controlling cycle video stream media is played according to the video frame number to be played.The method of the broadcasting video stream media provided using the present invention, can reach the smooth purpose for playing video stream media.Present invention also offers a kind of device for playing video stream media.

Description

The method and apparatus for playing video stream media
Technical field
The present invention relates to video broadcasting field, more particularly to a kind of method and apparatus for playing video stream media.
Background technology
Streaming Media refers to the continuous time-base media that streaming technology is used in Internet or Intranet, such as sound Frequently, video or multimedia file.The method of traditional broadcasting video stream media, stream matchmaker can be played glibly when network is normal Body;When network condition is not good, common processing mode is that pause is played, and treats that terminal is got in played data, or buffering area It has accumulated and be further continued for playing after enough played datas.Therefore when network is fluctuated, it is difficult to ensure the smoothness played, lead Cause to play and interrupt.
The content of the invention
Based on this, it is necessary to for above-mentioned when network is fluctuated, it is difficult to ensure to play the smoothness of video, can cause to broadcast Putting the technical problem of interruption, there is provided a kind of method and apparatus for playing video stream media.
A kind of method for playing video stream media, methods described includes:
The video frame number downloaded in the first controlling cycle and the video frame number played are obtained, and in the described first control The video frame number buffered after end cycle processed in video frame buffers;
Network condition is judged according to the video frame number of the download and the video frame number played, according to the buffering Video frame number and the video frame number played judge whether the frame of video of the buffering sufficient, and according to described network-like The video frame number to be played of whether sufficient judged result the second controlling cycle of calculating of the frame of video of condition and the buffering;
Regarded in second controlling cycle according to described in the frame per second broadcasting of the video frame number divided by controlling cycle to be played Frequency Streaming Media.
A kind of device for playing video stream media, described device includes:
Frame number acquisition module, for obtaining the video frame number downloaded in the first controlling cycle and the frame of video played Number, and the video frame number buffered in video frame buffers after first controlling cycle terminates;
Video frame number computing module to be played, for the video frame number according to the download and the frame of video played Number judges network condition, and the video of the buffering is judged according to the video frame number of the buffering and the video frame number played Whether frame is sufficient, and controlled according to the whether sufficient judged result calculating second of the frame of video of the network condition and the buffering The video frame number to be played in cycle;
Playing module, in frame of second controlling cycle according to the video frame number divided by controlling cycle to be played Rate plays the video stream media.
The method and apparatus of above-mentioned broadcasting video stream media, by the video frame number downloaded in the first controlling cycle and have broadcast The video frame number put accurately weighs network condition, can reflect whether network fluctuates in the first controlling cycle exactly, To be played regarded adjust that the second controlling cycle to be played so as to which whether the frame of video according to network condition and buffering is sufficient Frequency frame number, and video stream media is played according to the frame per second of video frame number to be played divided by controlling cycle in the second controlling cycle, can To reach the smooth purpose for playing video stream media, it is to avoid cause prematurely to run out of playable regard due to there is network fluctuation The situation of broadcasting can only be interrupted after frequency frame.
Brief description of the drawings
Fig. 1 is the method flow schematic diagram of broadcasting video stream media in one embodiment;
Fig. 2 is to judge network condition, root according to the video frame number of download and the video frame number played in one embodiment Judge whether the frame of video of buffering is sufficient according to the video frame number and the video frame number played of buffering, and it is gentle according to network condition The flow signal of the step of video frame number to be played of whether sufficient judged result the second controlling cycle of calculating of the frame of video of punching Figure;
Fig. 3 is to judge network condition according to the video frame number of download and the video frame number played in another embodiment, Judge whether the frame of video of buffering sufficient according to the video frame number of buffering and the video frame number played, and according to network condition and The flow of the step of video frame number to be played of whether sufficient judged result the second controlling cycle of calculating of the frame of video of buffering is shown It is intended to;
Fig. 4 is the structured flowchart of the device of broadcasting video stream media in one embodiment;
Fig. 5 is the structured flowchart of video frame number computing module to be played in one embodiment;
Fig. 6 is the structured flowchart of video frame number computing module to be played in another embodiment.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the present invention, not For limiting the present invention.
As shown in figure 1, in one embodiment provide it is a kind of play video stream media method, the present embodiment mainly with The terminal that this method is applied to can play video stream media is illustrated.The terminal includes but is not limited to smart mobile phone, flat board electricity Brain, MP4(Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard audio layer Face 3)Player, pocket computer on knee and desktop computer etc..This method includes:
Step 102, the video frame number downloaded in the first controlling cycle and the video frame number played are obtained, and the The video frame number buffered after one controlling cycle terminates in video frame buffers.
First, second controlling cycle refers to two adjacent controlling cycles, and controlling cycle is preferably 1 second.
In the first controlling cycle, terminal is after flow media data packet is received, according to the file header of flow media data packet Information determines the encapsulation format of flow media data packet, so as to obtain video according to corresponding encapsulation format parsing flow media data packet Frame, and be stored in video frame buffers, the quantity for parsing the frame of video obtained is the video frame number of download.
The frame of video in video frame buffers is taken out successively, and calling corresponding Video decoding module to carry out decoding acquisition can be straight Connect the data cell of broadcasting(The video data unit of such as yuv format), decoding buffer zone is stored in, decoding is taken out during broadcasting successively Data cell in buffering area is played out.Each frame of video one data cell of correspondence, is played in the first controlling cycle The quantity of data cell be the video frame number played in the first controlling cycle.
, can be by detecting that video frame buffers obtain the video frame number of buffering after first controlling cycle terminates.Can be with Set up and index for video frame buffers, the frame of video buffered to identify in video frame buffers, so as to quick acquisition The video frame number buffered in video frame buffers.
For convenience of description, in following statements unless otherwise indicated, the video frame number of download refers to the download of the first controlling cycle Video frame number, the video frame number played refers to the video frame number played in the first controlling cycle, and the video frame number of buffering refers to The video frame number buffered after first controlling cycle terminates in video frame buffers.
Step 104, network condition is judged according to the video frame number of download and the video frame number played, according to regarding for buffering Frequency frame number and the video frame number played judge whether the frame of video of buffering is sufficient, and according to network condition and the frame of video of buffering Whether sufficient judged result calculates the video frame number to be played of the second controlling cycle.
The video frame number of download can accurately reflect network condition, and the video frame number of download is less than the frame of video played Number, illustrates that network condition is not good, if continuing to broadcast according to the frame per second for having played video frame number/controlling cycle in the first controlling cycle Put, consuming excessively for frame of video can be caused, follow-up play may be caused to interrupt, it is therefore desirable to adjust the second controlling cycle wait broadcast Put video frame number.According to the judged result whether frame of video of buffering is sufficient, video frame number to be played can be specifically determined.Specifically Ground, if the video frame number of buffering is more than the video frame number played, is illustrated that video frame buffer is sufficient, can be reduced with less amplitude The value for the video frame number played as the second controlling cycle video frame number to be played;If on the contrary, the video frame number of buffering is small In the video frame number played, illustrate that the frame of video of buffering is not enough, the video frame number played can be reduced with larger amplitude It is worth the video frame number to be played as the second controlling cycle, so as to reach the smooth purpose for playing video stream media,
Step 106, video flowing is played according to the frame per second of video frame number to be played divided by controlling cycle in the second controlling cycle Media.
In the second controlling cycle, according to the frame per second of video frame number to be played divided by controlling cycle successively from decoding buffer zone Data cell is taken out uniformly to play.
The method of above-mentioned broadcasting video stream media, the first controlling cycle, the second controlling cycle are two adjacent control weeks Phase, i.e., calculate the video frame number to be played of next controlling cycle after a upper controlling cycle terminates, go round and begin again, to play into Control line period.If for example, controlling cycle is 1 second, when video stream media plays the 50th second, calculating the 50th second The video frame number of interior download and the video frame number played, so that the video frame number to be played of the 51st second is calculated, so that the 51st Second plays video stream media according to the frame per second of video frame number/1 to be played;Play after the 51st second, then calculate 52 seconds to be played Video frame number, by that analogy, goes round and begins again, until playing the video stream media.
Network condition is accurately weighed according to the video frame number downloaded in the first controlling cycle and the video frame number played, It can reflect whether network fluctuates in the first controlling cycle exactly, so as to the video according to network condition and buffering Whether frame is sufficient to calculate the video frame number to be played to be played of the second controlling cycle.When network is fluctuated, with reference to buffering Frame of video whether sufficient judged result adjust the second controlling cycle video frame number to be played, smoothly broadcast so as to reach Put the purpose of video stream media, it is to avoid due to occur network fluctuation cause prematurely to run out of after playable frame of video can only in Disconnected situation about playing.
As shown in Fig. 2 in one embodiment, step 104 includes:
Step 202, judge the video frame number downloaded whether be less than the video frame number played with it is default be less than 1 positive system Several product, if then performing step 204, if otherwise performing step 210.
The video frame number of download can weigh the network condition in the first controlling cycle, so as to determine the second controlling cycle Video frame number to be played provide reference.The value of the default positive coefficient for being less than 1 is preferably 0.5.If the video frame number downloaded Less than the video frame number played and the product of the coefficient, illustrate that network condition is excessively poor, treating for the second controlling cycle should be set Broadcasting video frame number is a less value.
Step 204, judge whether the video frame number of buffering is more than the video frame number played, if then performing step 206, If otherwise performing step 208.
By judging whether the video frame number of buffering is more than the video frame number played, it can be determined that in video frame buffers Whether the frame of video of buffering is sufficient, if the video frame number of buffering is more than the video frame number played, and illustrates that the frame of video of buffering is filled Foot;If the video frame number of buffering is less than the video frame number played, illustrate that the frame of video of buffering is not enough.
Step 206, video frame number to be played is calculated according to the video frame number of download and the video frame number played.
Now, network condition is excessively poor, but the frame of video of buffering is sufficient, video frame number and played that main consideration is downloaded Video frame number influence.Specifically, video frame number to be played can be the video frame number downloaded and the video frame number played Weighted average, the average value of the video frame number especially downloaded and the video frame number played.Weighted average is taken both may be used To prevent consuming excessively for frame of video during broadcasting to buffering, the smoothness of picture can be maintained as far as possible again.
Step 208, video frame number to be played is calculated according to the video frame number of buffering and the video frame number downloaded.
Now, network condition is excessively poor, and the frame of video of buffering is also not enough, and frame of video to be played should be reduced as far as possible Number, can calculate video frame number to be played according to the video frame number of buffering and the video frame number of download.Specifically, video to be played Frame number is less value in the video frame number of buffering and the video frame number of download.
Step 210, judge whether the video frame number downloaded is less than the video frame number played, if then performing step 212, If otherwise performing step 218.
Now, the video frame number of download is not less than the product for the video frame number and default positive coefficient for being less than 1 played, It is not excessively poor to illustrate network, and it is poor or normal that can determine whether current network.If the video frame number downloaded is small In the video frame number played, illustrate that network is poor;If the video frame number downloaded is not less than the video frame number played, explanation Network is normal, meets the demand of normal play video Streaming Media.
Step 212, judge whether the video frame number of buffering is more than the video frame number played, if then performing step 214, If otherwise performing step 216.
Now, network is poor, can determine whether whether the frame of video of buffering is sufficient.If the video frame number of buffering is more than The video frame number played, illustrates that the frame of video of buffering is sufficient;If the video frame number that the video frame number of buffering has no more than been played, Illustrate that the frame of video of buffering is not enough.
Step 214, calculate to be played according to the video frame number of download, the video frame number of buffering and the video frame number played Video frame number.
Now, although network is poor, but in video frame buffers abundance is buffered, the frame of video of download can be considered Number, the video frame number of buffering and the video frame number played to playing the influence of video stream media glibly.Specifically, it is to be played Video frame number is the weighted average of the video frame number, the video frame number of buffering and the video frame number played downloaded, especially The average value of the video frame number of download, the video frame number buffered and the video frame number played.
Step 216, video frame number to be played is calculated according to the video frame number of buffering and the video frame number downloaded.
Now, network is poor, and the frame of video of buffering is not enough, and video frame number to be played should be reduced as far as possible, can be with Video frame number to be played is calculated according to the video frame number of buffering and the video frame number downloaded.Specifically, video frame number to be played is Less value in the video frame number of buffering and the video frame number downloaded.
Step 218, judge whether the video frame number of buffering is more than the video frame number played, if then performing step 220, If otherwise performing step 222.
Now, the video frame number of download is not less than the video frame number played, and illustrates that network is normal, further basis can regard Whether abundance determines video frame number to be played for frequency frame buffer zone.
Step 220, video frame number to be played is that default video plays frame number.
Now, network is normal, and video frame buffers are sufficient, and video frame number to be played is that default video plays frame number.Can Frame number is played with the default video that video stream media is obtained by reading the file header of flow media data packet.Generally, depending on Frequency play frame rate is 25 frames/second, therefore it can be 25* controlling cycles that default video, which plays frame number,.
Step 222, video frame number to be played is the video frame number of buffering.
Now, although network is normal, but video frame buffer is not enough, in order to ensure the smooth of video playback, set to be played Video frame number for buffering video frame number, then in the subsequent control cycle, when network condition is normal, and buffering frame of video it is sufficient when Video frame number to be played is set to default video again and plays frame number.
In the present embodiment, network condition is judged by the video frame number of download and the magnitude relationship for the video frame number played, In conjunction with the whether sufficient video frame number to be played to calculate the second controlling cycle in video frame buffers, reach that smoothly broadcasting is regarded The purpose of frequency Streaming Media so that terminal remains to smooth broadcasting in the case where fluctuation occurs in network, compatibility is strong.
As shown in figure 3, in one embodiment, step 104 is specifically included:
Step 302, judge whether the video frame number of buffering is more than the video frame number played, if otherwise performing step 304, If then performing step 306.
By judging whether the video frame number of buffering is more than the video frame number played, it can be determined that the frame of video of buffering is No abundance.If the video frame number of buffering is more than the video frame number played, illustrate that the frame of video of buffering is not enough, should be according to download Video frame number and the video frame number played judge network condition, and calculate video frame number to be played according to network condition, specifically , network condition is judged according to the video frame number of download and the video frame number played, and calculate to be played according to network condition Video frame number comprises the following steps 306-314.If on the contrary, the video frame number that the video frame number of buffering has no more than been played, explanation The frame of video of buffering is sufficient, performs step 304.
Step 304, video frame number to be played is calculated according to the video frame number of buffering and the video frame number downloaded.
Now, the frame of video of buffering is not enough, and video frame number to be played should be reduced as far as possible, can be according to the video of buffering Frame number and the video frame number downloaded calculate video frame number to be played.Specifically, video frame number to be played is the video frame number of buffering With less value in the video frame number of download.
Step 306, judge the video frame number downloaded whether be less than the video frame number played with it is default be less than 1 positive system Several product, if then performing step 308, if otherwise performing step 310.
Compare the video frame number of download and the video frame number played and the product of the default positive coefficient for being less than 1 it is big It is small, it can be determined that whether network is excessively poor.The value of the coefficient is preferably 0.5.
Step 308, video frame number to be played is calculated according to the video frame number of download and the video frame number played.
Now, network condition is excessively poor, but the frame of video of buffering is sufficient, video frame number and played that main consideration is downloaded Video frame number influence.Specifically, video frame number to be played can be the video frame number downloaded and the video frame number played Weighted average, the average value of the video frame number especially downloaded and the video frame number played.Weighted average is taken both may be used To prevent consuming excessively for frame of video during broadcasting to buffering, the smoothness of picture can be maintained as far as possible again.
Step 310, judge whether the video frame number downloaded is less than the video frame number played.
By the size for the video frame number for comparing the video frame number of download and having played, it can be determined that whether network condition compares It is poor.
Step 312, calculate to be played according to the video frame number of download, the video frame number of buffering and the video frame number played Video frame number.
Now, although network is poor, but in video frame buffers abundance is buffered, the frame of video of download can be considered Number, the video frame number of buffering and the video frame number played to playing the influence of video stream media glibly.Specifically, it is to be played Video frame number is the weighted average of the video frame number, the video frame number of buffering and the video frame number played downloaded, especially The average value of the video frame number of download, the video frame number buffered and the video frame number played.
Step 314, video frame number to be played is that default video plays frame number.
Now, network is normal, and video frame buffers are sufficient, and video frame number to be played is that default video plays frame number.Can Frame number is played with the default video that video stream media is obtained by reading the file header of flow media data packet.Generally, depending on Frequency play frame rate is 25 frames/second, therefore it can be 25* controlling cycles that default video, which plays frame number,.
As shown in figure 4, a kind of device for playing video stream media is provided in one embodiment, including:
Frame number acquisition module 402, for obtaining the video frame number downloaded in the first controlling cycle and the video played Frame number, and the video frame number buffered in video frame buffers after the first controlling cycle terminates.
Video frame number computing module 404 to be played, sentences for the video frame number according to download and the video frame number played Circuit network situation, judges whether the frame of video of buffering is sufficient according to the video frame number of buffering and the video frame number played, and root According to the video frame number to be played of whether sufficient judged result the second controlling cycle of calculating of the frame of video of network condition and buffering.
Playing module 406, for being broadcast in the second controlling cycle according to the frame per second of video frame number to be played divided by controlling cycle Put video stream media.
As shown in figure 5, in one embodiment, video frame number computing module 404 to be played includes:
Whether the first judge module 404a, the video frame number for judging to download is less than the video frame number played with presetting The positive coefficient for being less than 1 product, if then judging whether the video frame number of buffering is more than the video frame number played.
First computing module 404b, if being more than the video frame number played for the video frame number buffered, according to download Video frame number and the video frame number played calculate video frame number to be played;What if the video frame number of buffering had no more than been played Video frame number, then calculate video frame number to be played according to the video frame number of buffering and the video frame number downloaded.
In one embodiment, if the first judge module 404a is additionally operable to the video frame number downloaded not less than regarding for having played The product of frequency frame number and coefficient, then judge whether the video frame number downloaded is less than the video frame number played, if the video downloaded Frame number is less than the video frame number played, then judges whether the video frame number of buffering is more than the video frame number played.
If the video frame number that the first computing module 404b is additionally operable to buffering is more than the video frame number played, according to download Video frame number, the video frame number of buffering and the video frame number played calculate video frame number to be played;If the frame of video of buffering The video frame number that number has no more than been played, then calculate frame of video to be played according to the video frame number of buffering and the video frame number downloaded Number.
In one embodiment, if the first judge module 404a is additionally operable to the video frame number downloaded not less than regarding for having played Frequency frame number, then judge whether the video frame number of buffering is more than the video frame number played.
If the video frame number that the first computing module 404b is additionally operable to buffering is more than the video frame number played, to be played to regard Frequency frame number is that default video plays frame number;If the video frame number that the video frame number of buffering has no more than been played, video to be played Frame number is the video frame number of buffering.
As shown in fig. 6, in one embodiment, video frame number computing module 404 to be played includes:
Second judge module 404c, for judging whether the video frame number of buffering is more than the video frame number played, if Network condition is then judged according to the video frame number of download and the video frame number played.
Second computing module 404d, if the video frame number that the video frame number for buffering no more than has been played, according to slow The video frame number of punching and the video frame number downloaded calculate video frame number to be played;If the video frame number of buffering is more than regarding for having played Frequency frame number, then calculate video frame number to be played according to network condition.
Embodiment described above only expresses the several embodiments of the present invention, and it describes more specific and detailed, but simultaneously Therefore the limitation to the scope of the claims of the present invention can not be interpreted as.It should be pointed out that for one of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the guarantor of the present invention Protect scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (8)

1. a kind of method for playing video stream media, methods described includes:
The video frame number downloaded in the first controlling cycle and the video frame number played are obtained, and in the described first control week Phase terminate after by detect video frame buffers obtain buffering video frame number;
Multiply when the video frame number for judging the download is less than the video frame number played with default 1 positive coefficient of being less than Product when, and judge the buffering video frame number be more than described in played video frame number when, then according to the video of the download Frame number and the video frame number played calculate video frame number to be played;
In the second controlling cycle the video stream media is played according to the frame per second of the video frame number divided by controlling cycle to be played; Wherein, first controlling cycle and second controlling cycle are two adjacent controlling cycles.
2. according to the method described in claim 1, it is characterised in that the video frame number for judging the download of working as is less than described When the video frame number played and the product of the default positive coefficient for being less than 1, and judge that the video frame number of the buffering is more than institute When stating the video frame number played, then calculate to be played according to the video frame number of the download and the video frame number played Video frame number, including:
Judge the download video frame number whether be less than the video frame number played with it is default be less than 1 positive coefficient Product, if then judging whether the video frame number of the buffering is more than the video frame number played;
If the video frame number of the buffering is more than the video frame number played, according to the video frame number of the download and institute State the video frame number played and calculate the video frame number to be played;
If the video frame number of the buffering is not more than the video frame number played, according to the video frame number of the buffering and The video frame number of the download calculates the video frame number to be played.
3. method according to claim 2, it is characterised in that whether the video frame number for judging the download is less than institute The product for the video frame number and default positive coefficient for being less than 1 played is stated, is if then judging the video frame number of the buffering The no video frame number played more than described in, in addition to:
If the video frame number of the download is not less than the video frame number played and the product of the coefficient, judge described Whether the video frame number of download is less than the video frame number played, if the video frame number of the download is less than described played Video frame number, then
Judge whether the video frame number of the buffering is more than the video frame number played;
If the video frame number of the buffering is more than the video frame number played, according to the video frame number of the download, institute The video frame number and the video frame number played for stating buffering calculate the video frame number to be played;
If the video frame number of the buffering is not more than the video frame number played, according to the video frame number of the buffering and The video frame number of the download calculates the video frame number to be played.
4. method according to claim 3, it is characterised in that if the video frame number of the download not less than it is described The video frame number of broadcasting and the product of the coefficient, then judge whether the video frame number of the download had been played less than described in and regard Frequency frame number, if the video frame number of the download is less than the video frame number played, judges the video frame number of the buffering Whether the video frame number played is more than, in addition to:
If the video frame number of the download is not less than the video frame number played, judging the video frame number of the buffering is It is no to be more than the video frame number played;
If the video frame number of the buffering is more than the video frame number played, the video frame number to be played regards for acquiescence Frequency plays frame number;
If the video frame number of the buffering is not more than the video frame number played, the video frame number to be played is described The video frame number of buffering.
5. a kind of device for playing video stream media, it is characterised in that described device includes:
Frame number acquisition module, for obtaining the video frame number downloaded in the first controlling cycle and the video frame number played, with And by detecting that video frame buffers obtain the video frame number of buffering after first controlling cycle terminates;
Video frame number computing module to be played, for being less than the frame of video played when the video frame number for judging the download During the product of number and the default positive coefficient for being less than 1, and judge that the video frame number of the buffering is more than the video played During frame number, then video frame number to be played is calculated according to the video frame number of the download and the video frame number played;
Playing module, for playing institute according to the frame per second of the video frame number divided by controlling cycle to be played in the second controlling cycle State video stream media;Wherein, first controlling cycle and second controlling cycle are two adjacent controlling cycles.
6. device according to claim 5, it is characterised in that the video frame number computing module to be played includes:
First judge module, for judging whether the video frame number of the download is less than the video frame number played with presetting The positive coefficient for being less than 1 product, if then judging whether the video frame number of the buffering is more than the frame of video played Number;
First computing module, if the video frame number for the buffering is more than the video frame number played, according to described The video frame number of download and the video frame number played calculate the video frame number to be played;If the frame of video of the buffering Number is not more than the video frame number played, then is calculated according to the video frame number of the buffering and the video frame number of the download The video frame number to be played.
7. device according to claim 6, it is characterised in that if first judge module is additionally operable to regarding for the download Frequency frame number not less than the video frame number played and the product of the coefficient, then judge the download video frame number whether Less than the video frame number played, if the video frame number of the download is less than the video frame number played, judge Whether the video frame number of the buffering is more than the video frame number played;
If the video frame number that first computing module is additionally operable to the buffering is more than the video frame number played, basis The video frame number of the download, the video frame number of the buffering and the video frame number played calculate the video to be played Frame number;If the video frame number of the buffering is not more than the video frame number played, according to the video frame number of the buffering The video frame number to be played is calculated with the video frame number of the download.
8. device according to claim 7, it is characterised in that if first judge module is additionally operable to regarding for the download Frequency frame number then judges whether the video frame number of the buffering is more than described played not less than the video frame number played Video frame number;
If the video frame number that first computing module is additionally operable to the buffering is more than the video frame number played, described Video frame number to be played is that default video plays frame number;If the video frame number of the buffering is not more than the frame of video played Number, then the video frame number to be played is the video frame number of the buffering.
CN201310364903.3A 2013-08-20 2013-08-20 The method and apparatus for playing video stream media Active CN103442307B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310364903.3A CN103442307B (en) 2013-08-20 2013-08-20 The method and apparatus for playing video stream media

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310364903.3A CN103442307B (en) 2013-08-20 2013-08-20 The method and apparatus for playing video stream media

Publications (2)

Publication Number Publication Date
CN103442307A CN103442307A (en) 2013-12-11
CN103442307B true CN103442307B (en) 2017-09-29

Family

ID=49695965

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310364903.3A Active CN103442307B (en) 2013-08-20 2013-08-20 The method and apparatus for playing video stream media

Country Status (1)

Country Link
CN (1) CN103442307B (en)

Families Citing this family (7)

* 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
CN104333795A (en) * 2014-11-04 2015-02-04 北京佳讯飞鸿电气股份有限公司 Real-time video bitstream play speed control method independent of timestamp
CN105916058B (en) * 2016-05-05 2019-09-20 青岛海信宽带多媒体技术有限公司 A kind of streaming media buffer playback method, device and display equipment
CN107846585A (en) * 2016-09-18 2018-03-27 中兴通讯股份有限公司 A kind of video playback fluency detection method and device
CN106385620B (en) * 2016-10-25 2019-06-21 浙江红苹果电子有限公司 A kind of data smoothing output method based on Streaming Media
CN106792109B (en) * 2016-12-06 2021-02-26 海信视像科技股份有限公司 Video playing method and device and terminal
CN108347645B (en) * 2018-01-19 2021-02-26 浙江大华技术股份有限公司 Method and device for decoding and displaying video frame

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102006501A (en) * 2010-11-11 2011-04-06 中国联合网络通信集团有限公司 Streaming media play control method and device and streaming media player
CN102185835A (en) * 2011-04-14 2011-09-14 广东威创视讯科技股份有限公司 Real-time network signal playing method and device
CN102905128A (en) * 2012-09-07 2013-01-30 武汉长江通信产业集团股份有限公司 Code rate controlling method of coding and decoding processor in wireless video transmission process

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102006501A (en) * 2010-11-11 2011-04-06 中国联合网络通信集团有限公司 Streaming media play control method and device and streaming media player
CN102185835A (en) * 2011-04-14 2011-09-14 广东威创视讯科技股份有限公司 Real-time network signal playing method and device
CN102905128A (en) * 2012-09-07 2013-01-30 武汉长江通信产业集团股份有限公司 Code rate controlling method of coding and decoding processor in wireless video transmission process

Also Published As

Publication number Publication date
CN103442307A (en) 2013-12-11

Similar Documents

Publication Publication Date Title
CN103442307B (en) The method and apparatus for playing video stream media
US20230209049A1 (en) Systems and Methods for Encoding Alternative Streams of Video for Use in Adaptive Bitrate Streaming
CN103747317B (en) A kind of smooth playing control method of broadcasting storehouse under unstable network
US8284082B2 (en) Dynamic encode setting adjustment
US20150235668A1 (en) Video/audio synchronization apparatus and video/audio synchronization method
CN107205160A (en) A kind of player method and device of the video issued for server
CN106792154B (en) Frame skipping synchronization system of video player and control method thereof
CN100515068C (en) Static frame loss method in video playing
CN104618786A (en) Audio/video synchronization method and device
CN103596036B (en) Intelligent buffering method for streaming media player
CN105245976A (en) Method and system for synchronously playing audio and video
US9930402B2 (en) Automated audio adjustment
CN103873952B (en) A kind of efficient video playback frame losing control system and its method
CN108322781A (en) Promote the method and system that HD video effect is played in virtual desktop
CN109905763B (en) Method for optimizing audio playing pause of player
US10075670B2 (en) Profile for frame rate conversion
CN105791987A (en) Media data playing method and terminal
US12015834B2 (en) Methods, systems, and media for streaming video content using adaptive buffers
CN107087210A (en) The method and terminal of video broadcasting condition are judged based on cache-time
US9806967B2 (en) Communication device and data processing method
EP4358520A1 (en) Progressive refinement video enhancement
CN117176203A (en) Audio transmission method, device, storage medium, electronic equipment and product
Liu et al. An embedded multimedia player on S3C6410 platform
WO2008123905A3 (en) Method and system for determining a value of a portion of content
Li et al. Superior Error Concealment and Robust Audio-Video Synchronization in Set-Top Box Chip

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent for invention or patent application
CB02 Change of applicant information

Address after: 518057 Guangdong, Shenzhen Province, science and technology, South Road, No. twelve Changhong science and technology building, building 19, unit 01-11, unit 18

Applicant after: SHENZHEN TEMOBI TECHNOLOGY CO., LTD.

Address before: 518057 Guangdong, Shenzhen Province, science and technology, South Road, No. twelve Changhong science and technology building, building 19, unit 01-11, unit 18

Applicant before: Shenzhen Temobi Science & Tech Development Co.,Ltd.

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: SHENZHEN TEMOBI SCIENCE + TECHNOLOGY CO., LTD. TO: SHENZHEN RONGCHANG TIANXIA TECHNOLOGY CO., LTD.

ASS Succession or assignment of patent right

Owner name: RONGCHUANG TIANXIA (SHANGHAI) TECHNOLOGY DEVELOPME

Free format text: FORMER OWNER: SHENZHEN RONGCHANG TIANXIA TECHNOLOGY CO., LTD.

Effective date: 20150602

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20150602

Address after: The island No. 2500 building, 200433 Shanghai city Yangpu District Siping Road, room 2001

Applicant after: World (Shanghai) Technology Development Co., Ltd.

Address before: 518057 Guangdong, Shenzhen Province, science and technology, South Road, No. twelve Changhong science and technology building, building 19, unit 01-11, unit 18

Applicant before: SHENZHEN TEMOBI TECHNOLOGY CO., LTD.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20200612

Address after: 518000 two building, two Road North six Road Industrial Park, Xixiang, Shenzhen, Guangdong.

Patentee after: SHENZHEN ATTE SMART LIFE Co.,Ltd.

Address before: The island No. 2500 building, 200433 Shanghai city Yangpu District Siping Road, room 2001

Patentee before: Melt wound (Shanghai) development in science and technology Co.,Ltd. all over the world

TR01 Transfer of patent right