Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is onlyBe advantageous to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can mixGround uses.
Terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as mobile phone, flat boardComputer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portableMedia player (Portable Media Player, PMP), guider, wearable device, Intelligent bracelet, pedometer etc. moveDynamic terminal, and the fixed terminal such as digital TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except specialOutside element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, its hardware architecture diagram for a kind of mobile terminal of each embodiment of the realization present invention, the shiftingDynamic terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit103rd, A/V (audio/video) input block 104, sensor 105, display unit 106, user input unit 107, interface unit108th, the part such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1Mobile terminal structure does not form the restriction to mobile terminal, and mobile terminal can be included than illustrating more or less parts,Either combine some parts or different parts arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base stationDownlink information receive after, handled to processor 110;In addition, up data are sent to base station.Generally, radio frequency unit 101Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrateFrequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communicationStandard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunicationsSystem), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (CodeDivision Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code DivisionMultiple Access, WCDMA), TD-SCDMA (Time Division-Synchronous CodeDivision Multiple Access, TD SDMA), FDD-LTE (Frequency DivisionDuplexing-Long Term Evolution, FDD Long Term Evolution) and TDD-LTE (Time DivisionDuplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102Sub- mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 1 showsGo out WiFi module 102, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can be according to needTo be omitted in the essential scope for do not change invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is receiving orIt is sound that the voice data stored in memory 109, which is converted into audio signal and exported,.Moreover, audio output unit 103The audio output related to the specific function that mobile terminal 100 performs can also be provided (for example, call signal receives sound, disappearedBreath receives sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 104 can include graphics processor(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition modeOr the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) are carried outReason.Picture frame after processing may be displayed on display unit 106.Picture frame after the processing of graphics processor 1041 can be depositedStorage is transmitted in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.MikeWind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing canTo be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model.Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send soundCaused noise or interference during frequency signal.
Mobile terminal 100 also includes at least one sensor 105, such as optical sensor, motion sensor and other biographiesSensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environmentThe light and shade of light adjusts the brightness of display panel 1061, and proximity transducer can close when mobile terminal 100 is moved in one's earDisplay panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (generalFor three axles) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,The other sensors such as hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to user.Display unit 106 can wrapDisplay panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be usedForms such as (Organic Light-Emitting Diode, OLED) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminalThe key signals input that family is set and function control is relevant.Specifically, user input unit 107 may include contact panel 1071 withAnd other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation of the user on or near it(for example user uses any suitable objects or annex such as finger, stylus on contact panel 1071 or in contact panel 1071Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.Contact panel 1071 may include touch detectionTwo parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation bandThe signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by itContact coordinate is converted into, then gives processor 110, and the order sent of reception processing device 110 and can be performed.In addition, canTo realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrapInclude but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc.One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 orAfter neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thingThe type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, contact panel 1071 and display panel1061 be the part independent as two to realize the input of mobile terminal and output function, but in certain embodiments, canInput and the output function of mobile terminal are realized so that contact panel 1071 and display panel 1061 is integrated, is not done herein specificallyLimit.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 100.For example,External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothingLine FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) endMouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, numberIt is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be withFor transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program areaAnd storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one functionSound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such asVoice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, can also include non-easyThe property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connectionIndividual part, by running or performing the software program and/or module that are stored in memory 109, and call and be stored in storageData in device 109, the various functions and processing data of mobile terminal are performed, so as to carry out integral monitoring to mobile terminal.PlaceReason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediatedDevice is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is mainHandle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) to all parts power supply, it is preferred that power supply 111Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, putThe function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also will not be repeated here including bluetooth module etc..
For the ease of understanding the embodiment of the present invention, the communications network system being based on below to the mobile terminal of the present invention entersRow description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network systemUnite as the LTE system of universal mobile communications technology, the UE that the LTE system includes communicating connection successively (User Equipment, is usedFamily equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, evolved UMTS landsGround wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation204。
Specifically, UE201 can be above-mentioned terminal 100, and here is omitted.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returningJourney (backhaul) (such as X2 interface) is connected with other eNodeB2022, and eNodeB2021 is connected to EPC203,ENodeB2021 can provide UE201 to EPC203 access.
EPC203 can include MME (Mobility Management Entity, mobility management entity) 2031, HSS(Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way,Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy andCharging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 andThe control node of signaling between EPC203, there is provided carrying and connection management.HSS2032 is all to manage for providing some registersSuch as the function of attaching position register (not shown) etc, and preserve some and used about service features, data rate etc.The special information in family.All customer data can be transmitted by SGW2034, and PGW2035 can provide UE 201 IPAddress is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resourcesPoint, it selects and provided available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimediaSystem) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not onlySuitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA withAnd following new network system etc., do not limit herein.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the inventive method is proposed.
Embodiments of the invention provide a kind of video data caching method, shown in reference picture 3, are cached applied to video dataEquipment, this method comprise the following steps:
Step 301, the code rate selection information that code check is supported for video to be played is received, determined based on code rate selection informationFirst plays code check.
Here, video data buffer memory device can be terminal, and terminal can have function of surfing the Net and play video capability etc.Function, such as can include:Mobile phone, iPad, notebook computer, computer, the intelligent television etc. with function of surfing the Net.It is to be played to regardFrequency is the video that user's selection will play out viewing, wherein, this video can be played on video web page playerOr played out using player software.Code rate selection information can be that user passes through voice, mouse, touch-controlThe modes such as the display screen of terminal, cache selected in data corresponding to code check one from what video to be played provided and it is expected to useAfter video data rate to be played is cached, it is sent to terminal and informs video data corresponding to which code check of terminal buffersCommand information.First broadcasting code check can be that user is sent to terminal and it is expected video data corresponding to the terminal buffers code checkCode check.
In other embodiments of the present invention, there are three important ginsengs in buffered video data and playing video dataNumber can influence the quality of video, and these three parameters are respectively:Code check, frame per second and resolution ratio.Moreover, these three parameters and mutual shadowRing, mutually restrict.It is below the explanation of the correlation to code check, frame per second and resolution ratio and between them:
Code check:The data bits that the unit interval transmits during data transfer, general unit is kilobit (kilo bits per secondPer second, kbps).More popular understanding is exactly sampling rate, and sampling rate is bigger in the unit interval, and precision is higher, placeThe file of reason out is just closer to original document, that is to say, that the details of picture is abundanter.
Frame per second:The picture number of display per second.Picture fluency is influenceed, it is directly proportional to picture fluency:Frame per second is bigger, pictureIt is more smooth;Frame per second is smaller, and picture more has bounce to feel.Due to the special physiological structure of human eye, if the frame per second of seen pictureWhen higher than 16, it will be considered coherent, this phenomenon is referred to as the persistence of vision.And after frame speed reaches certain numerical value,If increasing again, human eye, which is also not easy to have perceived obvious fluency, to be improved.
Resolution ratio:The size of the length and width, i.e. picture of (rectangle) picture.
And usually described " clear ", refer to that picture is very fine and smooth, without mosaic.It is not that resolution ratio gets over hi-vision justIt is more clear.Briefly:In the case where code check is certain, resolution ratio and definition are inversely:Resolution ratio is higher, and image is more notClearly, resolution ratio is lower, and image is more clear.In the case where resolution ratio is certain, code check is proportional with definition, and code check is got overHeight, image are more clear;Code check is lower, and image is more unintelligible.But so simply, so to say that fact of case is not but:In the case that code check is certain, value all will be clearly to resolution ratio within the specific limits;Similarly, in the certain situation of resolution ratioUnder, value all will be clearly to code check within the specific limits.
Video quality can be showed by subjective and objective way, and subjective mode is exactly that the video that usual people mention is clearClear degree.In daily life, conventional levels of sharpness weighs video quality, such as the first levels of sharpness, the second definitionGrade, the 3rd levels of sharpness, the 4th levels of sharpness etc., such as it has often been said that SD, high definition, ultra high-definition, blue light etc., allIt is levels of sharpness.And objective parameter is then quantization parameter either compression ratio or code check.Every kind of definition correspond to certainCode check.It is the same in video source file, compare on the premise of compression algorithm is same, quantization parameter, be between compression ratio and code checkThere is direct proportionate relationship.
And the usually described high definition of people, ultra high-definition, refer to high-resolution (High Definition, HD), superelevation in factResolution ratio (Super High Definition, SHD).Wherein, the resolution ratio of SD is 640*480, and the resolution ratio of high definition is720*576, the resolution ratio of ultra high-definition is greater than 720*576, and the 720P resolution ratio often said is 1280*720,1080P resolution ratioIt is 1920*1080.
Step 302, will video to be played support code check in be less than first broadcasting code check code check be defined as the second broadcasting codeRate.
In other embodiments of the present invention, can be according to the buffer memory rate of current cache video to be played, to be playedSelect one to be less than the first code check for playing code check in the code check that video is supported and play code check as second.
Step 303, to be played video of the code check caching with default first playing duration is played according to second, obtain theOne is data cached.
In embodiments of the present invention, default first playing duration can be the video feature information according to video to be playedIt come what is determined, such as can be when playing video to be played, need the advertisement of broadcasting either to be played before playing video to be playedThe head of video, it is assumed that during video to be played using player plays, player be provided with skip advertisement and head after, Ke YishiA part for video beginning, duration corresponding to this part specifically can play according to preset rules and whole video to be playedTotal duration determines.
Step 304, to be played video of the code check caching with the second playing duration is played according to first.
Wherein, the second playing duration is the duration in the total duration of video to be played in addition to the first playing duration.
Here, the total duration of video to be played can be the total duration that video to be played can play.Played with secondThe video to be played of duration can be other remaining whole durations in addition to the video to be played of part corresponding to the first playing durationVideo to be played.
It should be noted that the sequencing performed between step 303 and step 304 can first carry out ability after step 303Perform step 304, i.e., when terminal according to the second broadcasting code check the video to be played of the first playing duration has all been cached withAfterwards, just according to the first data for playing the remaining also uncached video to be played of code check caching;But under specific circumstances, step303 can also perform simultaneously with step 304.
The video data caching method that embodiments of the invention are provided, video data buffer memory device are received for be playedAfter video supports the code rate selection information of code check, the first broadcasting code check is determined based on code rate selection information, and by video to be playedThe code check for supporting to be less than the first broadcasting code check in code check is defined as the second broadcasting code check, then plays code check caching tool according to secondThere is the video to be played of default first playing duration, obtain first data cached, and have according to the first broadcasting code check cachingThe video to be played of second playing duration;So, when user will play also uncached video to be played, one can first be cachedThe video to be played of part low bit- rate, remaining also uncached high code check video to be played is then cached again, solves existing skillThe problem of long period is needed to wait for when video to be played is played in art to cache video to be played, realize within a short period of time withUser's sight is reduced with the remaining video to be played of high code check caching of user's selection again after low bit- rate caching part video to be playedThe time needed to wait for during video to be played is seen, ensure that definition requirement of the user to the video of viewing.
Based on previous embodiment, embodiments of the invention provide a kind of video data caching method, shown in reference picture 4, thisThe embodiment of invention is mainly used in video to be played in addition to the video to be played of the first playing duration, and residue is to be played to be regardedThe application scenarios that frequency is all cached according to the first broadcasting code check.Exemplary, when user is played using player softwareRealMedia variable bit rates (RealMedia Variable Bit Rate, RMVB) form, that is, extend entitled " .rmvb "During video to be played, it is assumed that it is following several that video to be played supports that resolution ratio includes:1) SD, corresponding code check are 1 megabit everySecond (million bits per second, mbps), 2) high definition, corresponding code check are 1.5mbps, 3) ultra high-definition, and corresponding codeRate is 3.5mbps;This method comprises the following steps:
Step 401, video data buffer memory device receive the code rate selection information that code check is supported for video to be played, are based onCode rate selection information determines the first broadcasting code check.
Here, when the code rate selection information that terminal receives user's transmission is the control of selection broadcasting ultra high-definition video informationDuring instruction, terminal can determine that it is 3.5mbps to need first to play code check according to the ultra high-definition in the control instruction.
Step 402, video data buffer memory device obtain the first buffer memory rate of current cache video to be played.
Here, the buffer memory rate of terminal buffers video to be played by the data network that operator provides and uses dataThe influence of the user of network, can ceaselessly it change.Terminal can be worked as using the function of itself detection buffer memory rate to obtainFirst buffer memory rate of preceding caching video to be played, it can also be obtained by third party's wire-speed detection software of installation etc. currentCache the first buffer memory rate of video to be played.
Step 403, video data buffer memory device are based on the relation between the first buffer memory rate and the first preset rules, from treatingPlay and determine that one is less than the first code check for playing code check, and code check is played as second in the code check that video is supported.
Here, the first preset rules can be that the one kind for recommending different code checks to be cached under different buffer memory rates is pre-The rule first set.For example, it is assumed that the first buffer memory rate that terminal detects is the optimal network speed 10,000,000 that operator providesIt is per second, in this case, in the first preset rules when it is 3.5mbps that first, which plays code check, in order to ensure the experience of userEffect, the second broadcasting code check of recommendation is 1.5mbps, and second, which plays code check 1.5mbps, is less than the first broadcasting code check 3.5mbps.Therefore, terminal can select 1.5mbps to play code check as second.
It should be noted that the second broadcasting code check can also be that user selects.
Step 404, video data buffer memory device total duration and the second preset rules based on video to be played, determine firstPlaying duration.
Here, the second preset rules can be to ensure the quality of video to be played and reduce mistake of the user in viewingThe situation of interim card is occurred without in journey, realizes the video to be played grown according to the second broadcasting code check caching when shorter as far as possible, so theTwo preset rules can be determined according to the total duration and broadcasting speed of video to be played, when broadcasting speed is very fast,The ratio that the first playing duration determined accounts in the total duration of video to be played is with regard to greatly a bit;When broadcasting speed is slower, reallyFor the ratio that the first fixed playing duration accounts in the total duration of video to be played with regard to a little bit smaller, corresponding proportionate relationship can be oneIndividual empirical value, such as when the total duration of video to be played is 60 minutes, currently playing speed is normal, it is therefore assumed that the second default ruleIt is then 1/10th of the total duration that the first playing duration is video to be played, i.e. the first playing duration is before video to be played6 minutes.
Inputted it should be noted that this first playing duration can also be user, or in user in selection secondPlay what is selected during code check.When total playing duration of video to be played is 60 minutes, user can send such as " the 0th minuteCached to the video to be played in the 6th minute reproduction time according to the second broadcasting code check, it is remaining 6th minute to the 60th minuteVideo to be played in reproduction time is cached according to the first broadcasting code check ", you can to determine the first playing duration as 6 pointsClock.
In other embodiments of the present invention, the advertisement that the first playing duration can play before the video that broadcasting user wants to seeDuration, can be either the duration of the head for the video that user wants to see or be played before can also be the video that user wants to seeAdvertisement duration and user want the video seen head duration duration sum.
Step 405, video data buffer memory device play code check according to second and cached with default first playing durationVideo to be played, it is data cached to obtain first.
Here, the data of video to be played corresponding to terminal-pair reproduction time from the 0th minute to the 6th minute according to1.5mbps code checks proceed by caching, and the data for the video to be played for caching to obtain are first data cached.
It should be noted that when user clicks on and plays video to be played, terminal begins to play code using second determinedRate caches to the video to be played of the first playing duration, because buffer memory rate is typically faster than broadcasting speed, this hairThe bright embodiment can be carried out under the scene cached when playing.
Step 406, video data buffer memory device are to be played with the second playing duration according to the first broadcasting code check cachingVideo.
Wherein the second playing duration is the duration in the total duration of video to be played in addition to the first playing duration.
Here it is possible to it is when during terminal has cached video to be played according to the second broadcasting code check 1.5mbps first playsAfter the partial video data of a length of 6 minutes (i.e. reproduction time was from the 0th minute to the 6th minute), code check is played according to firstIt is 54 minutes (i.e. reproduction time was from the 6th minute to the 60th minute) that 3.5mbps, which caches the second playing duration in video to be played,Remainder video data.
The video data caching method that embodiments of the invention are provided, video data buffer memory device are received for be playedVideo supports the code rate selection information of code check, and after determining the first broadcasting code check based on code rate selection information, acquisition current cacheFirst buffer memory rate of video to be played, and based on the relation between the first buffer memory rate and the first preset rules, to be playedDetermine that one is less than the first code check for playing code check as the second broadcasting code check, is then based on waiting to broadcast in the code check that video is supportedPut the total duration of video and the second preset rules determine the first playing duration, and code check caching is played with default according to secondThe video to be played of first playing duration, obtains first data cached, finally has second to broadcast according to the first broadcasting code check cachingThe video to be played of duration is put, so, when user will play also uncached video to be played, first can be delayed according to low bit- rateA part of video to be played that the total duration based on video to be played and the second preset rules determine is deposited, then caches remaining go back againUncached high code check video to be played, solves and the long period is needed to wait for when playing video to be played in the prior art to cacheThe problem of video to be played, realize within a short period of time to select with user again after low bit- rate caching part video to be playedThe high remaining video to be played of code check caching, reduces user and watches the time needed to wait for during video to be played, ensure that user coupleThe definition requirement of the video of viewing.
Based on previous embodiment, embodiments of the invention provide a kind of video data caching method, the implementation of the inventionExample is mainly used in during the video to be played that code check caches the first playing duration is played according to second, and/or according toDuring first plays the video to be played that code check caches the second playing duration, the video pair to be played cached is monitored in real timeWhen playable time for answering is with playing the video data to be played cached, the relation between the time extremely is played, to theOne broadcasting code check and/or the second broadcasting code check are adjusted;This method comprises the following steps:
Step 1, video data buffer memory device receive the code rate selection information that code check is supported for video to be played, based on codeRate selection information determines the first broadcasting code check.
Here, suppose that the first broadcasting code check determined is 3.5mbps.
Step 2, video data buffer memory device obtain the first buffer memory rate of current cache video to be played.
Step 3, video data buffer memory device are based on the relation between the first buffer memory rate and the first preset rules, from waiting to broadcastPut and determine that one is less than the first code check for playing code check, and code check is played as second in the code check that video is supported.
Here, suppose that the second broadcasting code check determined is 1.5mbps.
Step 4, video data buffer memory device total duration and the second preset rules based on video to be played, determine that first broadcastsPut duration.
Step 5, video data buffer memory device obtain according to the second video to be played for playing code check the first playing duration of cachingIt is data cached to first.
Here, when the first playing duration of the video to be played determined when terminal is 6 minutes, i.e., terminal starts according to secondPlay code check cache the reproduction time of video to be played from the 0th minute by the 6th minute in video data, it is assumed that currently cachedReproduction time from the 0th minute by the 3rd minute in video data, therefore, the reproduction time cached was from the 0th minute to the 3rdVideo data in minute is data cached for first.
Step 6, video data buffer memory device determine to have played the first data cached played duration as firstPlaying duration.
Here, because terminal can be cached while played out, so to obtain first data cached when cachingFor reproduction time from the 0th minute by the 3rd minute in video data when, it is assumed that currently played first video data and broadcastPut duration i.e. first it is played when a length of 1.5 minutes, i.e., currently played video to be played at 1.5 minutes.
Step 7, video data buffer memory device determine the first data cached caching duration as the first caching duration.
Wherein, the first caching duration is less than the first playing duration.
Here, due to currently cached reproduction time from the 0th minute by the 3rd minute in video data be the first cachingData, so a length of 3 minutes during the first caching.
It should be noted that step 6 and step 7 perform simultaneously.
Step 8, video data buffer memory device are based on the relation between the first played duration and the first caching duration, adjustmentSecond plays code check.
Here, when adjustment second plays code check, the quality of video to be played is being ensured, in particular for video to be played, can be by the code of the second broadcasting code check according to the relation between the first played duration and the first caching duration during definition qualityRate is adjusted to the code check also lower than the second broadcasting code check determined in step 3, certainly according to the first played duration and firstSecond broadcasting code check can also be adjusted to more taller than the second broadcasting code check determined in step 3 by the relation between caching durationCode check, generally code check is played not above first determined according to code rate selection information, but in some specific feelingsUnder condition, the second broadcasting code check can be adjusted to play the also high code check of code check than first.
In embodiments of the present invention, step 8 can specifically be realized by following steps:
Step 8a, the duration difference that video data buffer memory device is calculated between the first played duration and the first caching duration is madeIt is poor for the first duration.
Here, terminal uses formula:T1-T2=Δs T1 is poor to calculate duration;Wherein, T1 represents to have cached duration, T2 tablesShow playing duration, Δ T1 represents that duration is poor.
In this embodiment of the invention, the first duration difference Δ t1 can be obtained as 1.5 minutes.Wherein, the first caching durationRelation schematic diagram between the first played duration can be with as shown in figure 5, wherein t1 represents the first caching currently cachedFirst has cached duration 3 minutes corresponding to data, the first broadcasting that t2 expressions currently playing first played when data cachedDuration 1.5 minutes, t3 represent the first playing duration 6 minutes, and t represents the total duration 60 minutes of video to be played, and Δ t1 represents thePoor 1.5 minutes of one duration.
Step 8b, video data buffer memory device judges the magnitude relationship between the first duration difference and predetermined threshold value, also simultaneouslyJudge minimum broadcasting code check that the second broadcasting code check and video to be played support or second play code check and the first broadcasting code check itBetween relation.
Here, predetermined threshold value can be the adjustable empirical value obtained according to actual use situation.If the first durationDifference is more than or equal to predetermined threshold value, and when having a broadcasting code check a between the second broadcasting code check and the first broadcasting code check, terminalCurrent buffer memory rate is obtained, according to the relation between current buffer memory rate and the first preset rules, it is determined whether can adjustWhole second plays code check to play code check a;If the first duration difference is more than or equal to predetermined threshold value, and second play code check andWhen having at least two broadcasting code checks between the first broadcasting code check, terminal obtains current buffer memory rate, according to current caching speedRate and the first preset rules, it is determined whether can be played from least two and determine that one plays code check as the second broadcasting in code checkCode check;The relation between detecting played duration and having cached duration is then proceeded to, to adjust the second broadcasting code check.
In embodiments of the present invention, it is assumed that predetermined threshold value is 2 minutes, and the lowest bit rate that video to be played is supported is 1mbps.
If step 8c, the first duration difference is less than predetermined threshold value, and second plays what code check was supported more than video to be playedLowest bit rate, video data buffer memory device obtain the buffer memory rate of current cache video to be played as the second buffer memory rate.
Here, if the first duration difference is less than predetermined threshold value, and second plays code check as the minimum of video to be played supportCode check, terminal-pair second play code check without adjustment, continue to play code check according to second caching in the first playing duration except theVideo to be played outside one caching duration.
In embodiments of the present invention, because the first duration difference Δ t1.5 minutes were less than predetermined threshold value 2 minutes, and second playsCode check 1.5mbps is more than the lowest bit rate 1mbps that video to be played is supported, so terminal obtains current buffer memory rate and is used as theTwo buffer memory rates.
Step 8d, video data buffer memory device is based on the relation between the second buffer memory rate and the first preset rules, from treatingPlay selection in the code check that video is supported and play code check as second after adjustment less than the code check of the second broadcasting code check.
Here, the code check recommended based on the second buffer memory rate and the first preset rules is still 1.5mbps, then keeps secondBroadcasting code check is constant, that is, it is still 1.5mbps that second after adjusting, which plays code check,.
Step 8e, video data buffer memory device plays code check according to second after adjustment and cached in the first playing duration except theVideo to be played outside one caching duration.
Here, terminal according to the second broadcasting code check after adjustment the video to be played of the 3rd minute to the 6th minute is continued intoRow caching.
Step 8f, video data buffer memory device determines played first data cached played duration, as secondPlaying duration.
Here, suppose that currently playing data cached of terminal or first is data cached, a length of 2 points when current playedClock.
Step 8g, video data buffer memory device determines current to have cached to obtain the first data cached caching duration and be used as theTwo caching durations.
Wherein, the second caching duration is less than or equal to the first playing duration.
Here, suppose that the video to be played of current also uncached complete first playing duration of terminal, determines that current cache obtainsA length of 5 minutes when first data cached caching duration second caches.
It should be noted that step 8f and step 8g are performed simultaneously.
Step 8h, the duration difference that video data buffer memory device is calculated between the second played duration and the second caching duration is madeFor second duration difference.
Here, terminal uses the computational methods in step 8a, calculates second duration difference, obtains second duration difference Δ t2 as 3Minute.
In embodiments of the present invention, the relation schematic diagram between the second caching duration and the second played duration can be such as figureShown in 6, wherein t4 represent it is current cached first it is data cached corresponding to second cached duration 5 minutes, t5 represents currentPlay first it is data cached when the second playing duration that played 2 minutes, t3 represents the first playing duration 6 minutes, and t represents to treatPlaying the total duration of video 60 minutes, Δ t2 represents that second duration difference is 3 minutes, wherein, represented in the t6 shown in Fig. 6 from the 3rdIn the range of minute to the 5th minute, terminal is that the data of video to be played are cached according to the second broadcasting code check after adjustment's.
If step 8i, second duration difference is more than or equal to predetermined threshold value, video data buffer memory device is broadcast according to secondPut the video to be played in addition to the second caching duration in code check the first playing duration of caching.
Here, primarily to ensureing the quality of video to be played, when second duration difference is more than or equal to predetermined threshold valueAfterwards, second that the second broadcasting code check of reduction is reverted to the determination in step 3 plays code check.
Step 9, video data buffer memory device according to the first broadcasting code check caching there is the to be played of the second playing duration to regardFrequently.
Wherein;Second playing duration is the duration in the total duration of video to be played in addition to the first playing duration.
Here, can also be by when terminal plays to be played video of the code check caching with the second playing duration according to firstFirst broadcasting code check is adjusted according to the principle of the broadcasting code check of adjustment second, is no longer described in detail herein.
The application scenarios schematic diagram that a kind of terminal provided in an embodiment of the present invention receives code rate selection information can be such as Fig. 7 institutesShow, terminal can be mobile phone, and user can be sent by terminal display corresponding at ultra high-definition that touch-control is shown to terminalThe code rate selection information of code check is supported for video to be played, so, mobile phone can determine that first broadcasts by " ultra high-definition "Put code check.
It should be noted that it be may be referred in the present embodiment with the explanation of same steps in other embodiments or concept otherDescription in embodiment, here is omitted.
The video data caching method that embodiments of the invention are provided, video data buffer memory device are received for be playedVideo supports the code rate selection information of code check, and after determining the first broadcasting code check based on code rate selection information, acquisition current cacheFirst buffer memory rate of video to be played, and based on the relation between the first buffer memory rate and the first preset rules, to be playedDetermine that one is less than the first code check for playing code check, and code check is played as second in the code check that video is supported;Then basis is treatedPlay the total duration of video and the second preset rules determine the first playing duration, and play code check caching according to second to have firstThe video to be played of playing duration obtain first it is data cached after, make it is determined that having played the first data cached played durationDetermine the first data cached caching duration as the first caching duration for the first played duration, and equipment;And based on firstRelation between played duration and the first caching duration, adjustment second play code check, finally play code check caching according to firstVideo to be played with the second playing duration;So, terminal be when user will play also uncached video to be played, can be withA part of video to be played determined by the total duration of video to be played and the first preset rules is first cached according to low bit- rate, andIn playing process, it is adjusted according to the code check that the relation pair cached between duration and played duration is data cached;EnterOne step, in playing process, duration can be can play according to corresponding to the video to be played currently cached with currently having broadcastRelation between the duration put, the code check of current cache video to be played is adjusted again according to current cache speed, protectedThe quality of the video to be played of caching has been demonstrate,proved, has been also reduced in the video to be played that viewing has cached due to caching high code rateVideo data cause buffer memory rate to cause occur the occurrence of interim card probability in watching process more slowly.
Based on previous embodiment, embodiments of the invention provide a kind of video data buffer memory device 8, video data cachingEquipment can apply to the video that the video data caching method of embodiment offer and above-described embodiment corresponding to Fig. 3~4 provideIn data cache method, shown in reference picture 8, the video data buffer memory device can include:Processor 81, memory 82 and communicationBus 83, wherein:
Communication bus 83, for realizing the connection communication between processor 81 and memory 82;
Memory 82, for storing video data caching program;
Processor 81, program is cached for performing the video data stored in memory 82, to realize following steps:
The code rate selection information that code check is supported for video to be played is received, the first broadcasting is determined based on code rate selection informationCode check;
The code check that video to be played is supported to be less than the first broadcasting code check in code check is defined as the second broadcasting code check;
To be played video of the code check caching with default first playing duration is played according to second, obtains the first caching numberAccording to;
To be played video of the code check caching with the second playing duration is played according to first;Wherein, the second playing duration isDuration in the total duration of video to be played in addition to the first playing duration.
In other embodiments of the present invention, processor 81 is additionally operable to perform video data caching program, to realize following walkSuddenly:
Obtain the first buffer memory rate of current cache video to be played;
Based on the relation between the first buffer memory rate and the first preset rules, in the code check supported from video to be played reallyFixed one is less than the first code check for playing code check, and code check is played as second.
In other embodiments of the present invention, processor 81 is additionally operable to perform video data caching program, to realize following walkSuddenly:
Total duration and the second preset rules based on video to be played, determine the first playing duration.
In other embodiments of the present invention, processor 81 is additionally operable to perform video data caching program, to realize following walkSuddenly:
It is determined that the first data cached played duration has been played as the first played duration;
Determine the first data cached caching duration as the first caching duration;Wherein, the first caching duration is less than firstPlaying duration;
Based on the relation between the first played duration and the first caching duration, adjustment second plays code check.
In other embodiments of the present invention, processor 81 is additionally operable to perform video data caching program, to realize following walkSuddenly:
The duration difference calculated between the first played duration and the first caching duration is poor as the first duration;
If the first duration difference is less than predetermined threshold value, and second plays the minimum code that code check is more than video to be played supportRate, the buffer memory rate of current cache video to be played is obtained as the second buffer memory rate;
Based on the relation between the second buffer memory rate and the first preset rules, selected in the code check supported from video to be playedThe code check for playing code check less than second is taken to play code check as second after adjustment;
To be played video of the code check caching with default first playing duration is played according to second, including:According to adjustmentSecond afterwards plays the video to be played in addition to the first caching duration in code check the first playing duration of caching.
In other embodiments of the present invention, processor 81 is additionally operable to perform video data caching program, to realize following walkSuddenly:
It is determined that played first data cached played duration, as the second played duration;
It is determined that current cached to obtain the first data cached caching duration as the second caching duration;Wherein, second is slowDeposit duration and be less than or equal to the first playing duration;
The duration difference calculated between the second played duration and the second caching duration is used as second duration difference;
If second duration difference is more than or equal to predetermined threshold value, plays code check according to second and cache in the first playing durationVideo to be played in addition to the second caching duration.
It should be noted that the interaction between the step of processor is realized in the present embodiment, is referred to Fig. 3~4Interaction in the video data caching method that corresponding embodiment and above-described embodiment provide, here is omitted.
The description of data above buffer memory device embodiment, the description with above method embodiment are similar, have TongfangThe similar beneficial effect of method embodiment, therefore do not repeat.For the skill not disclosed in data buffering device embodiment of the present inventionArt details, it refer to the description of the inventive method embodiment and understand.
Based on previous embodiment, embodiments of the invention provide a kind of computer-readable recording medium, computer-readable to depositStorage media is stored with one or more video data caching program, and one or more video data caching program can be by oneOr multiple computing devices, computing device video data caching program step be referred to computing device the present invention otherThe step of video data described in embodiment caches program technic.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-rowHis property includes, so that process, method, article or device including a series of elements not only include those key elements, andAnd also include the other element being not expressly set out, or also include for this process, method, article or device institute inherentlyKey element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including thisOther identical element also be present in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment sideMethod can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many casesThe former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other wordsGoing out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage mediumIn (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal (can be mobile phone, computer, serviceDevice, air conditioner, or network equipment etc.) perform method described by each embodiment of the present invention.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program productFigure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagramJourney and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be providedThe processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produceA raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for realThe device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spyDetermine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring toMake the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram orThe function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that countedSeries of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer orThe instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram oneThe step of function of being specified in individual square frame or multiple square frames.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hairThe equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skillsArt field, is included within the scope of the present invention.