CN104735485A - Method and device for playing video - Google Patents

Method and device for playing video Download PDF

Info

Publication number
CN104735485A
CN104735485A CN201510097974.0A CN201510097974A CN104735485A CN 104735485 A CN104735485 A CN 104735485A CN 201510097974 A CN201510097974 A CN 201510097974A CN 104735485 A CN104735485 A CN 104735485A
Authority
CN
China
Prior art keywords
threshold value
predetermined threshold
frame rate
frame number
play
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
CN201510097974.0A
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.)
Shanghai Xiaoyi Technology Co Ltd
Original Assignee
Shanghai Xiaoyi Technology 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 Shanghai Xiaoyi Technology Co Ltd filed Critical Shanghai Xiaoyi Technology Co Ltd
Priority to CN201510097974.0A priority Critical patent/CN104735485A/en
Publication of CN104735485A publication Critical patent/CN104735485A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
    • H04N21/2662Controlling the complexity of the video stream, e.g. by scaling the resolution or bitrate of the video stream based on the client capabilities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26208Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a method and device for playing video. The method and device are used for avoiding the video unsmoothness phenomenon. The method comprises the following steps that the number of frames in a buffering queue is obtained; whether the number of the frames is lower than a first preset threshold value or not is judged; when the number of the frames is lower than the first preset threshold value, the playing frame rate is lowered.

Description

A kind of method of displaying video and device
Technical field
The present invention relates to field of video processing, more specifically, relate to a kind of method and device of displaying video.
Background technology
Along with the generally use of terminal, increasing people use terminal to watch video online.The smooth degree of online viewing video depends on the network connection of terminal.
At present, in order to ensure the smooth degree of displaying video to a certain extent, can the some frame of video of buffer memory.The situation that such as 20 frames are per second, the interval of each frame is 50 milliseconds, if cause 200 milliseconds of rear video frames just to arrive due to network jitter, in the time of such 150 milliseconds, player does not have frame of video to play and is in the states such as empty.In order to prevent this situation, need to cushion some frame of video.But, when receiving terminal receives data failure, the re-transmission of data can be carried out.The time of the frame of video that re-transmission may cause receiving terminal to receive is indefinite, and a lot of frame of video may be had to arrive simultaneously, also may the video interFrameGap long period.Further, when receiving the speed of data lower than broadcasting speed, then there will be the situation play and pause.
Therefore, a kind of method of displaying video of the display real-time pictures that receiving terminal can be allowed more level and smooth is needed.
Summary of the invention
For overcoming Problems existing in correlation technique, the embodiment of the present invention provides a kind of method and device of displaying video.
According to the first aspect of disclosure embodiment, a kind of method of displaying video is provided, comprises the following steps:
Obtain the frame number in buffer queue;
Judge that whether described frame number is lower than the first predetermined threshold value;
When described frame number is lower than the first predetermined threshold value, reduce play frame rate.
In one embodiment, described when described frame number is lower than the first predetermined threshold value, reduce play frame rate, comprising: when described frame number is lower than the first predetermined threshold value, according to the degree reduction play frame rate of described frame number lower than the first predetermined threshold value.
In one embodiment, described method also comprises:
Judge that whether described frame number is higher than the second predetermined threshold value;
When described frame number is higher than the second predetermined threshold value, improve play frame rate.
In one embodiment, described when described frame number is higher than the second predetermined threshold value, improve play frame rate, comprising: when described frame number is higher than the second predetermined threshold value, according to the degree raising play frame rate of described frame number higher than the second predetermined threshold value.
According to the second aspect of disclosure embodiment, a kind of method of displaying video is provided, comprises:
Calculate the received frame rate in Preset Time window;
Judge that whether described received frame rate is lower than the 3rd predetermined threshold value;
When described received frame rate is lower than the 3rd predetermined threshold value, reduce play frame rate.
In one embodiment, described when described received frame rate is lower than the 3rd predetermined threshold value, reduce play frame rate, comprising: when described received frame rate is lower than the 3rd predetermined threshold value the first preset duration, reduce play frame rate.
In one embodiment, described method also comprises: when described received frame rate is not less than the 3rd predetermined threshold value, reduces or improve play frame rate according to the frame number in buffer queue.
In one embodiment, it is described when described received frame rate is not less than the 3rd predetermined threshold value, reduce according to the frame number in buffer queue or improve play frame rate, comprise: when described received frame rate is not less than the 3rd predetermined threshold value the second preset duration, reduce according to the frame number in buffer queue or improve play frame rate.
In one embodiment, described according to the frame number reduction in buffer queue or raising play frame rate, comprising:
Judge that whether described frame number is lower than the 4th predetermined threshold value or higher than the 5th predetermined threshold value;
When described frame number is lower than the 4th predetermined threshold value, reduce play frame rate;
When described frame number is higher than the 5th predetermined threshold value, improve play frame rate.
In one embodiment, described when described frame number is lower than the 4th predetermined threshold value, reduce play frame rate, comprising: when described frame number is lower than the 4th predetermined threshold value, according to the degree reduction play frame rate of described frame number lower than the 4th predetermined threshold value; Described when described frame number is higher than the 5th predetermined threshold value, reduce play frame rate, comprising: when described frame number is higher than the 5th predetermined threshold value, according to the degree raising play frame rate of described frame number higher than the 5th predetermined threshold value.
According to the third aspect of disclosure embodiment, a kind of device of displaying video is provided, comprises:
Acquisition module, for obtaining the frame number in buffer queue;
First judge module, for judging that whether described frame number is lower than the first predetermined threshold value;
First processing module, for when described frame number is lower than the first predetermined threshold value, reduces play frame rate.
In one embodiment, described first processing module is used for: when described frame number is lower than the first predetermined threshold value, according to the degree reduction play frame rate of described frame number lower than the second predetermined threshold value.
In one embodiment, described device also comprises:
Second judge module, for judging that whether described frame number is higher than the second predetermined threshold value;
Second processing module, for when described frame number is higher than the second predetermined threshold value, improves play frame rate.
In one embodiment, described second processing module is used for: when described frame number is higher than the second predetermined threshold value, according to the degree raising play frame rate of described frame number higher than the second predetermined threshold value.
According to the fourth aspect of disclosure embodiment, a kind of device of displaying video is provided, comprises:
Computing module, for calculating the received frame rate in Preset Time window;
3rd judge module, for judging that whether described received frame rate is lower than the 3rd predetermined threshold value;
3rd processing module, for when described received frame rate is lower than the 3rd predetermined threshold value, reduces play frame rate.
In one embodiment, described 3rd processing module is used for: when described received frame rate is lower than the 3rd predetermined threshold value the first preset duration, reduces play frame rate.
In one embodiment, described device also comprises: the 4th processing module, for when described received frame rate is not less than the 3rd predetermined threshold value, reduces or improve play frame rate according to the frame number in buffer queue.
In one embodiment, described 4th processing module is used for: when described received frame rate is not less than the 3rd predetermined threshold value the second preset duration, reduces or improve play frame rate according to the frame number in buffer queue.
In one embodiment, described 4th processing module comprises:
Judge submodule, for judging that whether described frame number is lower than the 4th predetermined threshold value or higher than the 5th predetermined threshold value;
First process submodule, for when described frame number is lower than the 4th predetermined threshold value, reduces play frame rate;
Second process submodule, for when described frame number is higher than the 5th predetermined threshold value, improves play frame rate.
In one embodiment, described first process submodule is used for: when described frame number is lower than the 4th predetermined threshold value, according to the degree reduction play frame rate of described frame number lower than the 4th predetermined threshold value; Described second process submodule is used for: when described frame number is higher than the 5th predetermined threshold value, according to the degree raising play frame rate of described frame number higher than the 5th predetermined threshold value.
According to the 5th aspect of disclosure embodiment, a kind of device is provided, comprises:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain the frame number in buffer queue;
Judge that whether described frame number is lower than the first predetermined threshold value;
When described frame number is lower than the first predetermined threshold value, reduce play frame rate.
The technical scheme that the embodiment of the present invention provides can comprise following beneficial effect:
When the frame number in buffer queue is lower than predetermined threshold value, think that the speed receiving data is lower than broadcasting speed, now reduces broadcasting speed, although play slowly like this, there will not be to play and pause, improve the viewing experience of user.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in specification and to form the part of this specification, shows embodiment according to the invention, and is used from specification one and explains principle of the present invention.
Fig. 1 is the flow chart of the method for a kind of displaying video according to an exemplary embodiment;
Fig. 2 is the flow chart of the method for a kind of displaying video according to an exemplary embodiment;
Fig. 3 is the flow chart of the method for a kind of displaying video according to an exemplary embodiment;
Fig. 4 is the flow chart of the method for a kind of displaying video according to an exemplary embodiment;
Fig. 5 is the flow chart of the method for a kind of displaying video according to an exemplary embodiment;
Fig. 6 is the flow chart of the method for a kind of displaying video according to an exemplary embodiment;
Fig. 7 is the flow chart of the method for a kind of displaying video according to an exemplary embodiment;
Fig. 8 is the block diagram of the device of a kind of displaying video according to an exemplary embodiment;
Fig. 9 is the block diagram of the device of a kind of displaying video according to an exemplary embodiment;
Figure 10 is the block diagram of the device of a kind of displaying video according to an exemplary embodiment;
Figure 11 is the block diagram of the device of a kind of displaying video according to an exemplary embodiment;
Figure 12 is the block diagram of the 4th processing module in the device of a kind of displaying video according to an exemplary embodiment.
Figure 13 is the block diagram of a kind of device according to an exemplary embodiment.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Execution mode described in following exemplary embodiment does not represent all execution modes consistent with the present invention.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present invention are consistent.
Fig. 1 is the flow chart of the method for a kind of displaying video according to an exemplary embodiment, and as shown in Figure 1, the method comprises the following steps:
Step S11: obtain the frame number in buffer queue.
Step S12: judge that whether described frame number is lower than the first predetermined threshold value.
Step S13: when described frame number is lower than the first predetermined threshold value, reduces play frame rate.
In the embodiment of the present invention, when the frame number in buffer queue is lower than the first predetermined threshold value, just think that the speed receiving data is lower than broadcasting speed, now reduce broadcasting speed, although play slightly slow like this, there will not be the situation play and pause, improve the viewing experience of user.
Fig. 2 is the flow chart of the method for a kind of displaying video according to an exemplary embodiment, in this embodiment, frame of video has timestamp, first displaying video carries out Play Control according to the time of timestamp, and suitably can reduce play frame rate according to the frame number of buffer queue, the method comprises the following steps:
Step S21: receiver, video frame puts into buffer queue.
Step S22: obtain the frame number in buffer queue.
Step S23: judge that whether the frame number obtained is lower than the first predetermined threshold value, if so, performs step S24, if not, perform step S27.
Step S24: the difference calculating frame number and the first predetermined threshold value obtained.
Step S25: according to the corresponding relation of the decreasing value of difference and the difference pre-set and play frame rate, selects the decreasing value preset.
Such as, the corresponding relation of the difference pre-set and the decreasing value of play frame rate can be as follows, and wherein, the first predetermined threshold value is such as 10:
Difference The decreasing value of play frame rate
2 2
3 3
4 4
5 5
Step S26: the decreasing value according to selecting reduces play frame rate on the basis of current play frame rate.
Such as, when the frame number in buffer queue is 8 frame, be 2 with the difference of the first predetermined threshold value 10, so, the decreasing value of play frame rate is 2, and current play frame rate such as 20 frames are per second, and can be reduced to 18 frames per second.When the frame number in buffer queue is 6 frame, be 4 with the difference of the first predetermined threshold value 10, so, the decreasing value of play frame rate is 4, and current play frame rate such as 20 frames are per second, and can be reduced to 16 frames per second.
Step S27: according to the timestamp displaying video of the frame of video in buffer queue.
In this embodiment, play frame rate can be reduced according to the frame number in buffer queue lower than the degree of the first predetermined threshold value further, make process more flexible and efficient.
In order to ensure the real-time of picture, the frame of video of buffering can not be excessive, and therefore, the embodiment of the present invention also proposes a kind of method of displaying video, suitably can also improve play frame rate when being greater than the second predetermined threshold value by the frame number in buffer queue.As shown in Figure 3, this embodiment comprises the following steps:
Step S31: receiver, video frame puts into buffer queue.
Step S32: obtain the frame number in buffer queue.
Step S33: judge described frame number lower than the first predetermined threshold value still higher than the second predetermined threshold value, if described frame number is lower than the first predetermined threshold value, perform step S34, if described frame number is higher than the second predetermined threshold value, perform step S35, if described frame number is between the first predetermined threshold value and the second predetermined threshold value, perform step S36.
Described first predetermined threshold value is less than described second predetermined threshold value.
Step S34: reduce play frame rate on the basis of current play frame rate.
Step S35: improve play frame rate on the basis of current play frame rate.
Step S36: according to the timestamp displaying video of the frame of video in buffer queue.
In this embodiment, can reduce according to the frame number in buffer queue or improve play frame rate, both in case video card pauses, when also can accelerate in the speed receiving data, displaying video can be accelerated to ensure real-time by slow play video when receiving the slowing of data.
Fig. 4 is the flow chart of the method for a kind of displaying video according to an exemplary embodiment, in this embodiment, reduce play frame rate or raising play frame rate according to the frame number in buffer queue lower than the first predetermined threshold value with higher than the degree of the second predetermined threshold value respectively, the method comprises the following steps:
Step S41: receiver, video frame puts into buffer queue.
Step S42: obtain the frame number in buffer queue.
Step S43: judge described frame number lower than the first predetermined threshold value still higher than the second predetermined threshold value, if described frame number is lower than the first predetermined threshold value, perform step S44, if described frame number is higher than the second predetermined threshold value, perform step S47, if described frame number is more than or equal to the first predetermined threshold value or is less than or equal to the second predetermined threshold value, perform step S410.
Step S44: the difference calculating described frame number and the first predetermined threshold value.
Step S45: according to the corresponding relation of the decreasing value of difference and the difference pre-set and play frame rate, selects the decreasing value preset.
Step S46: the decreasing value according to selecting reduces play frame rate on the basis of current play frame rate.
Step S47: the difference calculating described frame number and the second predetermined threshold value.
Step S48: according to the corresponding relation of the improvement value of difference and the difference pre-set and play frame rate, selects the improvement value preset.
Step S49: the improvement value according to selecting improves play frame rate on the basis of current play frame rate.
Step S410: according to the timestamp displaying video of the frame of video in buffer queue.
For the frame of video of not free stamp, the embodiment of the present invention proposes a kind of method of displaying video, and Fig. 5 is the flow chart of the method for a kind of displaying video according to an exemplary embodiment, and the method comprises the following steps:
Step S51: calculate the received frame rate in Preset Time window.
Step S52: judge that whether described received frame rate is lower than the 3rd predetermined threshold value.
Wherein, the 3rd predetermined threshold value is such as the average received frame per second in the time window in statistics 30 second, using the reference that this average received frame per second is estimated as network condition, is the 3rd predetermined threshold value.
Step S53: when described received frame rate is lower than the 3rd predetermined threshold value, reduces play frame rate.
In the present embodiment, for the frame of video of not free stamp, judge whether to need to reduce play frame rate, in case there is the phenomenon that video card pauses according to the received frame rate in Preset Time window (such as 30 seconds).
Fig. 6 is the flow chart of the method for a kind of displaying video according to an exemplary embodiment, in this embodiment, judges that the condition of received frame rate increases a preset duration, to avoid changing play frame rate frequently.The method comprises the following steps:
Step S61: calculate the received frame rate in Preset Time window.
Step S62: judge that whether described received frame rate is lower than the 3rd predetermined threshold value first preset duration; If so, step S63 is performed; If not, then terminate.
Step S63: reduce play frame rate on the basis of current play frame rate.
Fig. 7 is the flow chart of the method for a kind of displaying video according to an exemplary embodiment, and the method comprises the following steps:
Step S71: calculate the received frame rate in Preset Time window.
Step S72: judge described received frame rate whether lower than the 3rd predetermined threshold value first preset duration or be not less than the 3rd predetermined threshold value second preset duration; When received frame rate is lower than the 3rd predetermined threshold value first preset duration, perform step S73; When received frame rate is not less than the 3rd predetermined threshold value second preset duration, perform step S74; If other situations, then terminate.
Step S73: reduce play frame rate on the basis of current play frame rate.
Step S74: obtain the frame number in buffer queue.
Step S75: judge that whether described frame number is lower than the 4th predetermined threshold value or higher than the 5th predetermined threshold value; When described frame number is lower than the 4th predetermined threshold value, perform step S76; When described frame number is higher than the 5th predetermined threshold value, perform step S79; If other situations, then terminate.
Wherein, the 4th predetermined threshold value is less than the 5th predetermined threshold value.
Step S76: the difference calculating described frame number and the 4th predetermined threshold value.
Step S77: according to the corresponding relation of the decreasing value of difference and the difference pre-set and play frame rate, selects the decreasing value preset.
Difference The decreasing value of play frame rate
2 2
3 3
4 4
5 5
Step S78: the decreasing value according to selecting reduces play frame rate on the basis of current play frame rate.
Step S79: the difference calculating described frame number and the 5th predetermined threshold value.
Step S710: according to the corresponding relation of the improvement value of difference and the difference pre-set and play frame rate, selects the improvement value preset.
Difference The improvement value of play frame rate
2 2
3 3
4 4
5 5
Step S711: the improvement value according to selecting improves current play frame rate.
Such as, when continuous 3 seconds of received frame rate lower than benchmark frame per second that is the 3rd predetermined threshold value time, such as current play frame rate is that 20 frames are per second, so can be reduced to 18 frames per second; When received frame rate is all not less than benchmark frame per second in continuous 3 seconds, so play frame rate can control according to the size of buffer queue, such as when the frame number in buffer queue is 32 frames, more than the 5th predetermined threshold value 30 frame 2 frame, the improvement value of the play frame rate selected is 2, such as current play frame rate is that 20 frames are per second, so can bring up to 22 frames per second; When the frame number in buffer queue is 34 frames, more than the 5th predetermined threshold value 30 frame 4 frame, the improvement value of the play frame rate of selection is 4, and such as current play frame rate is that 20 frames are per second, so can bring up to 24 frames per second.
Fig. 8 is the device of a kind of displaying video according to an exemplary embodiment, and this device comprises acquisition module 801, the first judge module 802 and the first processing module 803.
This acquisition module 801 is configured to the frame number for obtaining in buffer queue.
This first judge module 802 is configured to for judging that whether described frame number is lower than the first predetermined threshold value.
This first processing module 803 is configured to for when described frame number is lower than the first predetermined threshold value, reduces play frame rate.
In an embodiment of the present invention, the first processing module 803 for:
When described frame number is lower than the first predetermined threshold value, according to the degree reduction play frame rate of described frame number lower than the first predetermined threshold value.
As shown in Figure 9, in an embodiment of the present invention, described device also comprises:
Second judge module 804, for judging that whether described frame number is higher than the second predetermined threshold value;
Second processing module 805, for when described frame number is higher than the second predetermined threshold value, improves play frame rate.
In an embodiment of the present invention, the second processing module 805 for:
When described frame number is higher than the second predetermined threshold value, according to the degree raising play frame rate of described frame number higher than the second predetermined threshold value.
As shown in Figure 10, the embodiment of the present invention provides a kind of device of displaying video, comprising:
Computing module 1001, for calculating the received frame rate in Preset Time window.
3rd judge module 1002, for judging that whether described received frame rate is lower than the 3rd predetermined threshold value.
3rd processing module 1003, for when described received frame rate is lower than the 3rd predetermined threshold value, reduces play frame rate.
In an embodiment of the present invention, the 3rd processing module 1003 for:
When described received frame rate is lower than the 3rd predetermined threshold value the first preset duration, reduce play frame rate.
As shown in figure 11, in an embodiment of the present invention, described device also comprises:
4th processing module 1004, for when described received frame rate is not less than the 3rd predetermined threshold value, reduces according to the frame number in buffer queue or improves play frame rate.
In an embodiment of the present invention, the 4th processing module 1004 for:
When described received frame rate is not less than the 3rd predetermined threshold value the second preset duration, reduces according to the frame number in buffer queue or improve play frame rate.
As shown in figure 12, in an embodiment of the present invention, the 4th processing module 1004 comprises:
Judge submodule 10041, for judging that whether described frame number is lower than the 4th predetermined threshold value or higher than the 5th predetermined threshold value.
First process submodule 10042, for when described frame number is lower than the 4th predetermined threshold value, reduces play frame rate.
Second process submodule 10043, for when described frame number is higher than the 5th predetermined threshold value, improves play frame rate.
In an embodiment of the present invention, first process submodule 10042 for: when described frame number is lower than the 4th predetermined threshold value, according to described frame number lower than the 4th predetermined threshold value degree reduce play frame rate; Second process submodule 10043 for: when described frame number is higher than the 5th predetermined threshold value, according to described frame number higher than the 5th predetermined threshold value degree improve play frame rate.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
Figure 13 is the block diagram of the device 1300 of a kind of displaying video according to an exemplary embodiment.Such as, device 1300 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, flat-panel devices, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Figure 13, device 1300 can comprise following one or more assembly: processing components 1302, memory 1304, power supply module 1306, multimedia groupware 1308, audio-frequency assembly 1310, the interface 1312 of I/O (I/O), sensor cluster 1314, and communications component 1316.
The integrated operation of the usual control device 1300 of processing components 1302, such as with display, call, data communication, camera operation and record operate the operation be associated.Treatment element 1302 can comprise one or more processor 1320 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 1302 can comprise one or more module, and what be convenient between processing components 1302 and other assemblies is mutual.Such as, processing unit 1302 can comprise multi-media module, mutual with what facilitate between multimedia groupware 1308 and processing components 1302.
Memory 1304 is configured to store various types of data to be supported in the operation of equipment 1300.The example of these data comprises for any application program of operation on device 1300 or the instruction of method, contact data, telephone book data, message, picture, video etc.Memory 1304 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or CD.
The various assemblies that electric power assembly 1306 is device 1300 provide electric power.Electric power assembly 1306 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 1300 and be associated.
Multimedia groupware 1308 is included in the screen providing an output interface between described device 1300 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Described touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant to described touch or slide and pressure.In certain embodiments, multimedia groupware 808 comprises a front-facing camera and/or post-positioned pick-up head.When equipment 1300 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 1310 is configured to export and/or input audio signal.Such as, audio-frequency assembly 1310 comprises a microphone (MIC), and when device 1300 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The audio signal received can be stored in memory 1304 further or be sent via communications component 1316.In certain embodiments, audio-frequency assembly 1310 also comprises a loud speaker, for output audio signal.
I/O interface 1312 is for providing interface between processing components 1302 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor cluster 1314 comprises one or more transducer, for providing the state estimation of various aspects for device 1300.Such as, sensor cluster 1314 can detect the opening/closing state of equipment 1300, the relative positioning of assembly, such as described assembly is display and the keypad of device 1300, the position of all right checkout gear 1300 of sensor cluster 1314 or device 1300 assemblies changes, the presence or absence that user contacts with device 1300, the variations in temperature of device 1300 orientation or acceleration/deceleration and device 1300.Sensor cluster 1314 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor cluster 1314 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor cluster 814 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communications component 1316 is configured to the communication being convenient to wired or wireless mode between device 1300 and other equipment.Device 1300 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communication component 1316 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communication component 1316 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 1300 can be realized, for performing said method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the memory 1304 of instruction, above-mentioned instruction can perform said method by the processor 1320 of device 1300.Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is performed by the processor of mobile terminal, make mobile terminal can perform a kind of method of displaying video, described method comprises: obtain the frame number in buffer queue; Judge that whether described frame number is lower than the first predetermined threshold value; When described frame number is lower than the first predetermined threshold value, reduce play frame rate.
Those skilled in the art, at consideration specification and after putting into practice invention disclosed herein, will easily expect other embodiment of the present invention.The application is intended to contain any modification of the present invention, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present invention and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Specification and embodiment are only regarded as exemplary, and true scope of the present invention and spirit are pointed out by claim below.
Should be understood that, the present invention is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.Scope of the present invention is only limited by appended claim.

Claims (21)

1. a method for displaying video, is characterized in that, comprises the following steps:
Obtain the frame number in buffer queue;
Judge that whether described frame number is lower than the first predetermined threshold value;
When described frame number is lower than the first predetermined threshold value, reduce play frame rate.
2. method according to claim 1, is characterized in that, when described frame number is lower than the first predetermined threshold value, reduces play frame rate, comprising:
When described frame number is lower than the first predetermined threshold value, according to the degree reduction play frame rate of described frame number lower than the first predetermined threshold value.
3. method according to claim 1, is characterized in that, described method also comprises:
Judge that whether described frame number is higher than the second predetermined threshold value; Described first predetermined threshold value is less than described second predetermined threshold value;
When described frame number is higher than the second predetermined threshold value, improve play frame rate.
4. method according to claim 3, is characterized in that, when described frame number is higher than the second predetermined threshold value, improves play frame rate, comprising:
When described frame number is higher than the second predetermined threshold value, according to the degree raising play frame rate of described frame number higher than the second predetermined threshold value.
5. a method for displaying video, is characterized in that, described method comprises:
Calculate the received frame rate in Preset Time window;
Judge that whether described received frame rate is lower than the 3rd predetermined threshold value;
When described received frame rate is lower than the 3rd predetermined threshold value, reduce play frame rate.
6. method according to claim 5, is characterized in that, when described received frame rate is lower than the 3rd predetermined threshold value, reduces play frame rate, comprising:
When described received frame rate is lower than the 3rd predetermined threshold value the first preset duration, reduce play frame rate.
7. method according to claim 5, is characterized in that, described method also comprises:
When described received frame rate is not less than the 3rd predetermined threshold value, reduces according to the frame number in buffer queue or improve play frame rate.
8. method according to claim 7, is characterized in that, when described received frame rate is not less than the 3rd predetermined threshold value, reduces or improves play frame rate, comprising according to the frame number in buffer queue:
When described received frame rate is not less than the 3rd predetermined threshold value the second preset duration, reduces according to the frame number in buffer queue or improve play frame rate.
9. method according to claim 7, is characterized in that, described according to the frame number reduction in buffer queue or raising play frame rate, comprising:
Judge that whether described frame number is lower than the 4th predetermined threshold value or higher than the 5th predetermined threshold value, described 4th predetermined threshold value is less than described 5th predetermined threshold value;
When described frame number is lower than the 4th predetermined threshold value, reduce play frame rate;
When described frame number is higher than the 5th predetermined threshold value, improve play frame rate.
10. method according to claim 9, is characterized in that, described when described frame number is lower than the 4th predetermined threshold value, reduces play frame rate, comprising:
When described frame number is lower than the 4th predetermined threshold value, according to the degree reduction play frame rate of described frame number lower than the 4th predetermined threshold value;
Described when described frame number is higher than the 5th predetermined threshold value, reduce play frame rate, comprising:
When described frame number is higher than the 5th predetermined threshold value, according to the degree raising play frame rate of described frame number higher than the 5th predetermined threshold value.
The device of 11. 1 kinds of displaying videos, is characterized in that, comprising:
Acquisition module, for obtaining the frame number in buffer queue;
First judge module, for judging that whether described frame number is lower than the first predetermined threshold value;
First processing module, for when described frame number is lower than the first predetermined threshold value, reduces play frame rate.
12. devices according to claim 11, is characterized in that, described first processing module is used for:
When described frame number is lower than the first predetermined threshold value, according to the degree reduction play frame rate of described frame number lower than the first predetermined threshold value.
13. devices according to claim 11, is characterized in that, described device also comprises:
Second judge module, for judging that whether described frame number is higher than the second predetermined threshold value;
Second processing module, for when described frame number is higher than the second predetermined threshold value, improves play frame rate.
14. devices according to claim 13, is characterized in that, described second processing module is used for:
When described frame number is higher than the second predetermined threshold value, according to the degree raising play frame rate of described frame number higher than the second predetermined threshold value.
The device of 15. 1 kinds of displaying videos, is characterized in that, comprising:
Computing module, for calculating the received frame rate in Preset Time window;
3rd judge module, for judging that whether described received frame rate is lower than the 3rd predetermined threshold value;
3rd processing module, for when described received frame rate is lower than the 3rd predetermined threshold value, reduces play frame rate.
16. devices according to claim 15, is characterized in that, described 3rd processing module is used for:
When described received frame rate is lower than the 3rd predetermined threshold value the first preset duration, reduce play frame rate.
17. devices according to claim 15, is characterized in that, described device also comprises:
4th processing module, for when described received frame rate is not less than the 3rd predetermined threshold value, reduces according to the frame number in buffer queue or improves play frame rate.
18. devices according to claim 17, is characterized in that, described 4th processing module is used for:
When described received frame rate is not less than the 3rd predetermined threshold value the second preset duration, reduces according to the frame number in buffer queue or improve play frame rate.
19. methods according to claim 17, is characterized in that, described 4th processing module comprises:
Judge submodule, for judging that whether described frame number is lower than the 4th predetermined threshold value or higher than the 5th predetermined threshold value;
First process submodule, for when described frame number is lower than the 4th predetermined threshold value, reduces play frame rate;
Second process submodule, for when described frame number is higher than the 5th predetermined threshold value, improves play frame rate.
20. devices according to claim 19, is characterized in that, described first process submodule is used for: when described frame number is lower than the 4th predetermined threshold value, according to the degree reduction play frame rate of described frame number lower than the 4th predetermined threshold value;
Described second process submodule is used for: when described frame number is higher than the 5th predetermined threshold value, according to the degree raising play frame rate of described frame number higher than the 5th predetermined threshold value.
21. 1 kinds of devices, is characterized in that, comprising:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain the frame number in buffer queue;
Judge that whether described frame number is lower than the first predetermined threshold value;
When described frame number is lower than the first predetermined threshold value, reduce play frame rate.
CN201510097974.0A 2015-03-05 2015-03-05 Method and device for playing video Pending CN104735485A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510097974.0A CN104735485A (en) 2015-03-05 2015-03-05 Method and device for playing video

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510097974.0A CN104735485A (en) 2015-03-05 2015-03-05 Method and device for playing video

Publications (1)

Publication Number Publication Date
CN104735485A true CN104735485A (en) 2015-06-24

Family

ID=53458848

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510097974.0A Pending CN104735485A (en) 2015-03-05 2015-03-05 Method and device for playing video

Country Status (1)

Country Link
CN (1) CN104735485A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105916058A (en) * 2016-05-05 2016-08-31 青岛海信宽带多媒体技术有限公司 Streaming media buffer play method and device and display device
CN105959714A (en) * 2016-04-28 2016-09-21 武汉斗鱼网络科技有限公司 Method and system for automatically recommending network broadcast parameters according to hardware environment of user
CN107371061A (en) * 2017-08-25 2017-11-21 普联技术有限公司 A kind of video stream playing method, device and equipment
CN107396171A (en) * 2017-07-24 2017-11-24 广州酷狗计算机科技有限公司 Live network broadcast method, device and storage medium
CN107770592A (en) * 2017-12-05 2018-03-06 清华大学 Motion state of mobile terminal detection method in mobile video playing process
CN108810656A (en) * 2018-06-12 2018-11-13 深圳国微视安科技有限公司 A kind of the debounce processing method and processing system of real-time live broadcast TS streams
CN108882013A (en) * 2017-05-09 2018-11-23 北京鸿合智能系统有限公司 Adjust method, apparatus, electronic equipment and the storage medium of audio and video playing rate
CN109168083A (en) * 2018-10-23 2019-01-08 青岛海信电器股份有限公司 A kind of Streaming Media real time playing method and device
CN109343997A (en) * 2018-10-31 2019-02-15 Oppo广东移动通信有限公司 Caton detection method, device, terminal and storage medium
CN110300326A (en) * 2018-03-22 2019-10-01 杭州萤石软件有限公司 A kind of detection method and device of video cardton
CN110933516A (en) * 2018-09-19 2020-03-27 华为技术有限公司 Multimedia live broadcast method, device and equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119483A (en) * 2006-07-31 2008-02-06 联想(北京)有限公司 Source quality based video stream transmission velocity regulation means
CN101466034A (en) * 2008-12-25 2009-06-24 华为技术有限公司 Method and device for sending and playing stream medium data and stream medium program request system
CN101552909A (en) * 2009-04-28 2009-10-07 山东大学 Frame rate controlling method based on wireless video monitoring
CN102006476A (en) * 2010-11-19 2011-04-06 厦门雅迅网络股份有限公司 Optimal processing method for transmitting and receiving real-time video data
CN102006501A (en) * 2010-11-11 2011-04-06 中国联合网络通信集团有限公司 Streaming media play control method and device and streaming media player
WO2013100754A1 (en) * 2011-12-28 2013-07-04 Mimos Berhad A system and method for adaptive media content delivery
CN103841389A (en) * 2014-04-02 2014-06-04 北京奇艺世纪科技有限公司 Video playing method and player
CN104333778A (en) * 2013-12-26 2015-02-04 乐视网信息技术(北京)股份有限公司 Dynamic playing buffering processing method and electronic device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119483A (en) * 2006-07-31 2008-02-06 联想(北京)有限公司 Source quality based video stream transmission velocity regulation means
CN101466034A (en) * 2008-12-25 2009-06-24 华为技术有限公司 Method and device for sending and playing stream medium data and stream medium program request system
CN101552909A (en) * 2009-04-28 2009-10-07 山东大学 Frame rate controlling method based on wireless video monitoring
CN102006501A (en) * 2010-11-11 2011-04-06 中国联合网络通信集团有限公司 Streaming media play control method and device and streaming media player
CN102006476A (en) * 2010-11-19 2011-04-06 厦门雅迅网络股份有限公司 Optimal processing method for transmitting and receiving real-time video data
WO2013100754A1 (en) * 2011-12-28 2013-07-04 Mimos Berhad A system and method for adaptive media content delivery
CN104333778A (en) * 2013-12-26 2015-02-04 乐视网信息技术(北京)股份有限公司 Dynamic playing buffering processing method and electronic device
CN103841389A (en) * 2014-04-02 2014-06-04 北京奇艺世纪科技有限公司 Video playing method and player

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105959714A (en) * 2016-04-28 2016-09-21 武汉斗鱼网络科技有限公司 Method and system for automatically recommending network broadcast parameters according to hardware environment of user
CN105916058A (en) * 2016-05-05 2016-08-31 青岛海信宽带多媒体技术有限公司 Streaming media buffer play method and device and display device
CN105916058B (en) * 2016-05-05 2019-09-20 青岛海信宽带多媒体技术有限公司 A kind of streaming media buffer playback method, device and display equipment
CN108882013A (en) * 2017-05-09 2018-11-23 北京鸿合智能系统有限公司 Adjust method, apparatus, electronic equipment and the storage medium of audio and video playing rate
CN107396171A (en) * 2017-07-24 2017-11-24 广州酷狗计算机科技有限公司 Live network broadcast method, device and storage medium
CN107371061A (en) * 2017-08-25 2017-11-21 普联技术有限公司 A kind of video stream playing method, device and equipment
CN107371061B (en) * 2017-08-25 2021-03-19 普联技术有限公司 Video stream playing method, device and equipment
CN107770592A (en) * 2017-12-05 2018-03-06 清华大学 Motion state of mobile terminal detection method in mobile video playing process
CN107770592B (en) * 2017-12-05 2018-07-27 清华大学 Motion state of mobile terminal detection method in mobile video playing process
CN110300326B (en) * 2018-03-22 2021-11-26 杭州萤石软件有限公司 Video jamming detection method and device, electronic equipment and storage medium
CN110300326A (en) * 2018-03-22 2019-10-01 杭州萤石软件有限公司 A kind of detection method and device of video cardton
CN108810656A (en) * 2018-06-12 2018-11-13 深圳国微视安科技有限公司 A kind of the debounce processing method and processing system of real-time live broadcast TS streams
CN110933516A (en) * 2018-09-19 2020-03-27 华为技术有限公司 Multimedia live broadcast method, device and equipment
CN109168083B (en) * 2018-10-23 2021-05-28 海信视像科技股份有限公司 Streaming media real-time playing method and device
CN109168083A (en) * 2018-10-23 2019-01-08 青岛海信电器股份有限公司 A kind of Streaming Media real time playing method and device
CN109343997A (en) * 2018-10-31 2019-02-15 Oppo广东移动通信有限公司 Caton detection method, device, terminal and storage medium

Similar Documents

Publication Publication Date Title
CN104735485A (en) Method and device for playing video
EP3163887A1 (en) Method and apparatus for performing media synchronization
CN104469437A (en) Advertisement pushing method and device
CN104881104A (en) Intelligent equipment, intelligent equipment performance improvement method and intelligent equipment performance improvement device
CN104202614B (en) A kind of method of Network Environment adjustment video image quality and device
CN104391711B (en) A kind of method and device that screen protection is set
CN104519282A (en) Image shooting method and device
CN106375772A (en) Video playing method and device
CN104318934A (en) Method, terminal, wearable device and play device for closing multimedia file
CN105472469A (en) Video playing progress adjusting method and apparatus
CN105095345A (en) Method and device for prompting push message
CN104683691A (en) Photographing method, device and equipment
CN104244045B (en) The method that control video pictures presents and device
CN104702919A (en) Play control method and device and electronic device
US9921796B2 (en) Sharing of input information superimposed on images
CN104460185A (en) Automatic focusing method and device
CN105242893A (en) Refresh rate adjusting method and apparatus
CN105120301A (en) Video processing method and apparatus, and intelligent equipment
CN105204808A (en) Picture projection method and device and terminal equipment
CN104464768A (en) Multimedia playing method and device
CN105183188A (en) Screen control method and device of electronic equipment
CN104639977A (en) Program playing method and device
CN105472157A (en) Method and device for monitoring terminal motion state
CN105451056A (en) Audio and video synchronization method and device
CN104636110A (en) Method and device for controlling volume

Legal Events

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

Application publication date: 20150624

RJ01 Rejection of invention patent application after publication