Video communication method and deviceTechnical field
The present invention relates to communication technical field, particularly to a kind of video communication method and device.
Background technology
Along with the development of communication technology, terminal the most solely provides voice service, video communicationBecome a kind of mode that user is used more and more.
Video communication is often referred to: hold based on the Internet and mobile Internet (such as 3G the Internet),By transmitting voice and the image (e.g., the bust of people, photo, article etc.) of people between terminal in real timeA kind of communication mode.According to the difference of terminal, video communication is generally divided into four kinds of modes:PC-to-PC, PC-to-Phone, Phone-to-PC and Phone-to-Phone via Internet.
When carrying out video communication, there are two comparison units that are crucial and that affect video communication qualityDevice: photographic head and display screen, wherein, camera collection video data, mike gathers audio frequencyData.The video data collected and voice data are encoded by terminal according to set agreement,With certain code check, video data and voice data are sent again, transmit via network, by regardingThe opposite end (that is, another terminal) of frequency communication receives, and will receive video data and audio frequency numberIt is decoded according to according to set agreement, is finally shown by display screen.
In video communication service, along with various mobile terminals (such as mobile phone, panel computer etc.)Adding market, the mobile terminal of video communication participant is more and more diversified.The use of video communicationFamily is experienced to be affected by video parameter (such as resolution).Traditional low-resolution video communicationsCan not meet the demand of user, when user is expected to the performance permission of mobile terminal, adoptedWith the most high-resolution video image.
It addition, the Netowrk tape of the network that video communication is relied on (such as, 2G/3G/WLAN etc.)Wide different with data throughout, network transfer speeds is also the most different.Current video communication is typicallyFixing transformat is used to carry out transmitting video data, when network type changes, with thisMode carrys out transmitting video data, not only consumes substantial amounts of data traffic, and can cause video figureThe definition of picture is the highest, even results in picture card and pauses.
Further, different owing to participating in the configuration of two mobile terminals of video communication, exampleAs, the resolution of display screen is different, and the resolution of photographic head is different, and this is it is possible to leadCause the resolution carrying out the photographic head of a mobile terminal of the video communication mobile terminal with opposite endThe resolution of display screen is not mated.As a result, video image display on the display screen of opposite end is causedIncomplete, even because not shown by the display screen support of opposite end.
Summary of the invention
The technical problem to be solved in the present invention is, for the deficiencies in the prior art, it is provided that one regardsFrequently communication means and system, the recording of the video being adaptively adjusted in video communication and transmission,Improve the quality of video communication.
In order to solve above-mentioned technical problem, according to an aspect of the present invention, the invention provides onePlant video communication method, including:
Acquisition terminal information and the network information;
Obtain first according at least one category information in described end message and the described network information to regardFrequently parameter;
Video record is carried out according to described first video parameter;With,
Transmission of video is carried out according to described first video parameter.
Alternatively, carrying out video record according to described first video parameter, and according to described firstAfter video parameter carries out transmission of video and before video communication terminates, when the update cycle arrives,Also include:
At least one category information in acquisition terminal information and the network information;
Obtain the most more according at least one category information in described end message and the described network informationSecond video parameter in new cycle;
Video record is carried out according to second video parameter of described current update cycle, and/or, pressThe second video parameter according to the described current update cycle carries out transmission of video.
Alternatively, carrying out video record according to second video parameter of described current update cycle,And/or, before carrying out transmission of video according to second video parameter of described current update cycle, also wrapInclude:
Calculate between the second video parameter and the currently used video parameter of current update cycleDifference;
Then carry out video record according to second video parameter of described current update cycle, and/or,Carrying out transmission of video according to second video parameter of described current update cycle is:
If the absolute value of described difference is equal to or more than the first threshold preset, then work as according to describedSecond video parameter of front update cycle carries out video record, and/or, according to described current renewal weekSecond video parameter of phase carries out transmission of video.
Wherein, also include in aforementioned schemes:
If the absolute value of described difference is less than the first threshold preset, then continue according to currently usedVideo parameter carry out video record, and, carry out transmission of video according to currently used video parameter.
Alternatively, described end message includes: the real time status information of local terminal.Wherein, instituteThe real time status information stating local terminal includes: main board work frequency, mainboard temperature, battery electric quantityWith at least one in available dynamic memory capacity.
Alternatively, described end message also includes the hardware letter realizing the distant terminal of video communicationBreath;
The hardware information gathering the distant terminal realizing video communication is: receives the described video that realizes and leads toThe hardware letter of the described distant terminal realizing video communication that the distant terminal of letter is sent by networkBreath.Wherein, the hardware information of the described distant terminal realizing video communication includes: described realization regardsThe resolution of the display screen of the distant terminal of frequency communication.
Alternatively, the described network information includes: at least one in network type and network throughput.
Alternatively, in described video communication method, obtain video parameter in the following way,Described video parameter is the first video parameter and/or the second video parameter:
The mapping table prestored according to the information inquiry collected, obtains video parameter;Described prestoreMapping table in maintain the mapping between described end message and the described network information and video parameterRelation;
Wherein, when video parameter is the first video parameter, described in the information that collects be terminalInformation and the network information, when video parameter is the second video parameter, described in the information that collectsFor at least one category information in end message and the network information.
Alternatively, in described video communication method, the information inquiry according to collecting prestoresMapping table, including:
According to default described end message and the priority orders of the described network information, will adopt successivelyCollect the various information and respective reference comprised in the described end message and the described network information obtainedThreshold value compares seriatim;
If any one comprised in the described end message collected and the described network informationInformation, less than corresponding reference threshold, is less than information and the video of corresponding reference threshold according to numerical valueThe mapping relations of parameter, obtain video parameter from the described mapping table prestored.
Alternatively, in aforesaid video communication method, also include: if collect is describedThe various information comprised in end message and the described network information are both greater than or equal to respective with reference to thresholdValue, according to default described end message and the weight of the described network information, calculating collectsDescribed end message and the weighted mean of the described network information;
According to the described described end message collected and the weighted mean of the described network informationThe mapping table that inquiry prestores, obtains video parameter;The described mapping table prestored maintains described endMapping relations between client information and the weighted mean of the described network information and video parameter.
Alternatively, in described video communication method, according to described end message and described networkAt least one category information in information obtains second video parameter of current update cycle, including:
According to default described end message and the weight of the described network information, calculating collectsThe weighted mean of all kinds information;
Relatively described weighted mean and the size of default Second Threshold;
If described weighted mean is more than or equal to described default Second Threshold, add according to describedWeight average value inquires about the mapping table prestored, and obtains second video parameter of described current update cycle;The described mapping table prestored maintains at least one class in described end message and the described network informationMapping relations between weighted mean and described second video parameter of information.
In order to solve the deficiencies in the prior art, according to a further aspect in the invention, the present invention also provides forA kind of video communication device, including:
Information acquisition module, for acquisition terminal information and the network information;
Video parameter acquisition module, is connected with described information acquisition module, for according to described terminalAt least one category information in information and the described network information obtains the first video parameter;
Video record module, is connected with described video parameter acquisition module, according to described firstVideo parameter carries out video record;With
Transmission control module, is connected with described video parameter acquisition module and described video record moduleConnect, carry out transmission of video according to described first video parameter.
Alternatively, described video communication device also includes:
Time block, is carrying out video record for providing according to described first video parameter, and is pressingAccording to described first video parameter carry out transmission of video after and before video communication terminates, describedInformation acquisition module periodically acquisition terminal information and the network information, described video parameter obtain mouldBlock periodicity ground obtains the update cycle of the second video parameter.
Alternatively, in aforesaid video communication device, also include:
Video parameter contrast module, with described video parameter acquisition module, described video record moduleIt is connected with described transmission control module;For calculate second video parameter of current update cycle withThe currently used difference between video parameter;
If the absolute value of described difference is equal to or more than the first threshold preset, will currently update weekSecond video parameter of phase is sent to described video record module and described transmission control module, pressesThe second video parameter according to the described current update cycle carries out video record, and/or, work as according to describedSecond video parameter of front update cycle carries out transmission of video.
Alternatively, described video parameter acquisition module includes:
Memory element, for storage system maintenance, described end message and the described network information are joined with videoThe mapping table of mapping relations between number, described video parameter is the first video parameter and/or the second videoParameter;And
Query unit, for according to mapping table described in the information inquiry collected, to obtain videoParameter.
Alternatively, described memory element also stores the excellent of described end message and the described network informationFirst level, described video parameter acquisition module also includes:
Comparing unit, for according to the priority orders preset, the described end that will collect successivelyThe various information comprised in client information and the described network information are carried out seriatim with respective reference thresholdRelatively;If any one comprised in the described end message collected and the described network informationInformation, less than corresponding reference threshold, sends inquiry notice to described query unit;
Described query unit is according in described inquiry notice, and numerical value is less than the information of corresponding reference thresholdWith the mapping relations of video parameter, inquire about described mapping table, obtain from the described mapping table prestoredVideo parameter.
Alternatively, described memory element also stores the pre-of described end message and the described network informationIf weight, described mapping table maintains the mapping between data weighted average value and described video parameterRelation;Described video parameter acquisition module also includes:
Weighted mean computing unit, according to default weight, calculates all information collectedWeighted mean, and described weighted mean is sent to described query unit;
Described query unit inquires about mapping table according to described data weighted average value, prestores from describedMapping table obtains video parameter.
Alternatively, in described video communication device, described video parameter acquisition module can also wrapInclude:
Memory element, for storing the default weight of described end message and the described network information, andFor safeguarding the mapping table of the mapping relations between weighted mean and video parameter, described video is joinedNumber is the second video parameter;
Weighted mean computing unit, according to default weight, calculates all kinds collectedThe weighted mean of information;
Comparing unit, relatively described weighted mean and the size of default Second Threshold, add when describedWhen weight average value is more than described Second Threshold, send inquiry notice to query unit;With
Query unit, for according to the weighted mean in the inquiry notice received, inquiry prestoresMapping table, obtain second video parameter of described current update cycle.
The present invention, according to terminal and the state of access network, is adaptively adjusted recording and the biography of videoDefeated video parameter, so that video image keeps relative preferably quality when recording with transmission,Thus improve the quality of video communication.
Accompanying drawing explanation
By description to the embodiment of the present invention referring to the drawings, the present invention above-mentioned and otherObjects, features and advantages will be apparent from, in the accompanying drawings:
Fig. 1 is embodiment one flow chart of video communication method of the present invention;
Fig. 2 be video communication method of the present invention embodiment one in video parameter acquisition process streamCheng Tu;
Fig. 3 is embodiment two flow chart of video communication method of the present invention;
Fig. 4 is the theory diagram of video communication device one embodiment of the present invention;
Fig. 5 is the theory diagram of another embodiment of video communication device of the present invention;
Fig. 6 is the structural principle block diagram of the embodiment one of video parameter acquisition module in the present invention;
Fig. 7 is the structural principle block diagram of the embodiment two of video parameter acquisition module in the present invention;
Fig. 8 is the structural principle block diagram of the embodiment three of video parameter acquisition module in the present invention;With
Fig. 9 is the structural principle block diagram of the embodiment three of video parameter acquisition module in the present invention.
Detailed description of the invention
Below based on embodiment, present invention is described, but the present invention is not restricted to theseEmbodiment.In below the details of the present invention being described, detailed describe some specific detail portionPoint.The description not having these detail sections for a person skilled in the art can also understand this completelyInvention.In order to avoid obscuring the essence of the present invention, known method, process, flow process are the most in detailNarration.Additionally accompanying drawing is not necessarily drawn to scale.
Flow chart in accompanying drawing, block diagram illustrate the system of the embodiment of the present invention, method, devicePossible System Framework, function and operation, the square frame on flow chart and block diagram can represent a mouldBlock, program segment or only one section of code, described module, program segment and code are all used to realizeThe executable instruction of regulation logic function.It should also be noted that described realize regulation logic function canPerform instruction can reconfigure, thus generate new module and program segment.Therefore the square frame of accompanying drawingAnd square frame order is used only to preferably illustrate process and the step of embodiment, and should not make with thisFor the restriction to invention itself.
As it is shown in figure 1, be the brief of a specific embodiment of video communication method of the present inventionFlow chart.Originally practicing at the beginning of video communication, such as, calling terminal has sent video communication pleaseAsk, or called end receives video communication request, just starts to build between calling terminal and called endThe sight of vertical video communication.The method that the present invention provides comprises the following steps:
Step Sa1, communication terminal acquisition terminal information and the network information.
Wherein, described end message includes the real time status information of local terminal and the hard of distant terminalPart information.Specifically, the real time status information of described local terminal includes main board work frequency, masterAt least one in plate temperature, battery electric quantity and available dynamic memory capacity.Wherein, in,Main board work frequency is the dominant frequency of CPU, in order to the performance of decision systems.Owing to video calling is comparedMore power consumption for other programs run in terminal, then can cause the rising of terminal mainboard temperature,And this problem can be solved by reducing systematic function.So that it is current according to terminal mainboardTemperature decides whether to need due to temperature drift to reduce performance.Can be with dynamically depositing by current residualReservoir (RAM) understands the performance height of current system, such as system response speed and resources occupation rate etc..
The hardware information of distant terminal includes the display screen of the described distant terminal realizing video communicationResolution.The hardware information gathering the distant terminal realizing video communication is: receive described realizationThe described distant terminal realizing video communication that the distant terminal of video communication is sent by network hardPart information.
Its described network information includes the handling capacity of network type and network.It is commonly used for videoCommunication network type include GSM (Global System for Mobile Communications,Global system for mobile communications), CDMA (Code Division Multiple Access, CDMA),W-CDMAUMTS (Universal Mobile Telecommunications System, General MobileCommunication system), CDMA2000 and TD-SCDMA (Time Division-Synchronous CDMA),(Enhanced Data rate for GSM Evolution strengthens the GSM of data rate to EDGEEvolution), GPRS (General Packet Radio Service, general packet radio service),The connec-tionless network such as WIFI or LTE (i.e. 4G).
When the handling capacity (number that i.e. unit interval can transmit determining network type and current networkAccording to amount (bit/s), it is also possible to be referred to as network speed), just can as condition select corresponding resolution,Video compress ratio, frame per second and code check etc..Such as, when network speed is fast when, it is possible to use lowVideo compress ratio, high-resolution (e.g., the form of high definition);When network speed is slow when, it is possible toUse high video compress ratio, low resolution (e.g., SD or the form of more low resolution).
Wherein, about aforesaid high-definition format and SD form, according to the standard of radio and television, will" high definition (High Definition) " is defined as 720p, 1080i and tri-kinds of canonical forms of 1080p." SD (Standard Definition) " is the physical resolution a kind of video at below 720pForm.
Step Sa2, according to described end message and/or the described network information, it is thus achieved that video record andThe first video parameter required for transmission, such as resolution etc..
About the acquisition of video parameter, in the method embodiment, use a specific embodiment(for convenience of distinguishing with following embodiment, hereon referred to as embodiment one), by inquiry memory elementThe mapping table prestored, in this mapping table, records described end message and the network information and videoThe corresponding relation of parameter, thus, when there is known described end message and the network information or two category informationsIn any one, just can obtain required video parameter by tabling look-up.
After determining the first video parameter of video record and transmission, in step Sa3, set up doubleVideo communication link between side.
Step Sa4, carries out the recording of video according to the first video parameter obtained.
Step Sa5, carries out the transmission of video according to the first video parameter obtained.
About the acquisition of video parameter in step Sa2, it is also possible to by the method in following exampleObtain:
Embodiment two, weighted average method.Particularly as follows: prestore end message in the memory unitOr the weight of the network information, for the multiple information gathered, such as end message or the network information, rootAccording to described default weight, calculate the weighted mean of all collection information, in the memory unit,Also prestoring a mapping table, this mapping table describes the corresponding relation of weighted mean and video parameter.When known weights meansigma methods, required video parameter just can be obtained by tabling look-up.
Embodiment three, priority method.Prestore in the memory unit and compare priority, according to presettingDescribed end message and the priority orders of the described network information, successively by collected information withIts respective reference threshold compares one by one, such as the reference threshold less than correspondence of any one informationValue, when having in comparative result less than its corresponding threshold value, according to numerical value less than corresponding reference thresholdThe information of value and the mapping relations of video parameter, obtain video parameter from the described mapping table prestored.Such as, for network type, network throughput, main board work frequency, mainboard temperature, battery electricityAmount and available these several information of dynamic memory capacity, compare the order of priority from first to rear pointWei battery electric quantity, network throughput, available dynamic memory capacity, network type, mainboardTemperature, main board work frequency, relatively time, first comparative cell electricity and its reference threshold,In the present embodiment, the reference threshold of each described information is used for weighing whether this information current be enough toAffect video communication quality, if currently this information is less than its reference threshold, illustrate according to this informationJust can change and determine new video parameter.If battery electric quantity is less than its reference threshold, then stopOnly comparing, according to the mapping relations of battery electric quantity Yu video parameter, inquiry obtains new in the mapping tableVideo parameter.If battery electric quantity is more than or equal to its reference threshold, then continues comparing cell and gulp downThe amount of telling and its reference threshold, by that analogy, until having compared all information collected.
The present invention can also obtain video parameter in conjunction with priority method and weighted average method.Such as figureEmbodiment shown in 2, the stream of specific embodiment that a kind of video parameter provided for the present invention obtainsCheng Tu, method, specific as follows:
Step Sb1, according to default priority, takes the information collected, such as battery surplusRemaining this information of electricity.
Step Sb2, comparative cell dump energy and the size of its reference threshold, remain if working as forebayRemaining electricity, less than its reference threshold, illustrates that now battery dump energy is little, the most logical in order to ensureLetter, then need not consider further that the concrete data of other information, just may determine that and needs to come by low resolutionRecorded video, therefore, forwards step Sb6 to.
Step Sb6, according to the mapping relations of battery dump energy Yu video parameter, in the mapping tableThe video parameter that inquiry is recorded accordingly and transmitted.
Step Sb3, if when forebay dump energy is more than or equal to its reference threshold, it may be judged whetherAll information collected are the most complete, arrive if it did not, repeat step Sb1Sb3, until all of information is the most complete.
Step Sb4, if all information is both greater than its respective reference threshold, then according to defaultWeight, calculates the weighted mean of all information.
Step Sb5, according to the mapping relations of weighted mean Yu video parameter, looks into from mapping tableInquiry is recorded accordingly and is transmitted video parameter.
In above-mentioned steps Sb2, when a certain information is less than its reference threshold, it is sufficient to how determine useWhen planting recording and the transmission that video parameter carries out video, then need not again other information be comparedRelatively, i.e. stop comparing.As a example by battery dump energy, if be detected that now the residue of battery is electricMeasure the lowest, now need not consider further that the data of other information, just may determine that and now need applicationLow resolution carrys out recorded video.Thus avoid unnecessary calculating, both saved system resource,Also improve processing speed.
About how to determine video parameter to be used by the information collected, these are only thisThe embodiment that invention provides, those skilled in the art can also use various method to determine onePreferably scheme, as use Delphi method (expert estimation), AHP method (step analysis), more thanThe combination of two kinds of methods, factorial analysis flexible strategy method, quantity of information flexible strategy method or independence flexible strategy method etc..Owing to these methods are known in the art technology, thus do not repeat them here.
After video communication is set up, in addition it is also necessary to periodically repeat acquisition step, acquisition regardsFrequently parameter step, carry out the step of video record according to video parameter and according to described videoParameter carries out the step of Network Video Transmission.Thus in video communication, dynamically change videoRecord and the video parameter of transmission so that the listener in video communication receives in present caseThe most optimal video image.The flow chart of concrete embodiment as shown in Figure 3.
Step Sc1, carries out video record and transmission according to the video parameter determined before.
Step Sc2, it may be judged whether arriving timing, this is a update cycle of inner setting,Without arriving timing, i.e. it is less than the next update cycle, then continues step Sc1,If timing arrives, then carry out step Sc3.
Step Sc3, acquisition terminal information and the network information.
Step Sc4, regards according to the second of end message and/or network information acquisition current update cycleFrequently parameter.About the acquisition of second video parameter of current update cycle, can use above-mentioned variousMethod, is not repeated explanation.
Step Sc5, calculates second video parameter of current update cycle and regarding of being being currently usedFrequently whether the difference of parameter is more than the threshold value preset.
Step Sc6, it is judged that whether the absolute value of described difference is less than the first threshold preset, ifIt is less than, then it is assumed that second video parameter of current update cycle and the video parameter being being currently usedDifference little, it is not necessary to change video parameter, i.e. return step Sc1, continue join with former videoNumber carries out video record and transmission, if the absolute value of described difference is equal to or more than first presetThreshold value, then step Sc6.
Step Sc6, by currently the video parameter just used be updated to the most calculated currentlySecond video parameter of update cycle;
Step Sc7, carries out recording and the transmission of video with the second video parameter after change.
Next proceed to step Sc2 and judge whether to arrive timing, thus complete one and update weekPhase.In the present invention, periodically gather data, detect current communications status whether with currentlySystem mode and network state are consistent, and are in time adjusted video communication, make wholeIn communication process, picture is clear, smooth, it is ensured that the quality of video communication.
In the above-mentioned methods, by judging that second video parameter of current update cycle is with the mostThe difference of the video parameter used determines the need for carrying out video ginseng the most in allowed limitsThe adjustment of number, furthermore it is also possible to there is another scheme, i.e. when obtaining video parameter, passes throughInquiry mapping table just can determine whether to adjust, and only when needs adjust, just can table look-upTime obtain new video parameter, because without as in preceding method, first obtaining the current update cycleThe second video parameter, then two video parameters are compared.
Described scheme is: according to default described end message and the weight of the described network information, meterThe weighted mean of all kinds information collected;Relatively described weighted mean is with defaultThe size of Second Threshold;If described weighted mean is more than or equal to described the second default thresholdValue, inquires about the mapping table prestored, obtains the described current update cycle according to described weighted meanSecond video parameter;The described mapping table prestored maintains described end message and described network letterMapping between weighted mean and described second video parameter of at least one category information in breath is closedSystem.If described weighted mean is less than described default Second Threshold, then can not obtain video ginsengNumber, thus still according to the video parameter being being currently used.
From system aspects, the present invention is described in detail below.Fig. 4 is video of the present inventionThe theory diagram of communicator one embodiment.Communicator of the present invention includes information gathering mouldBlock 1, video parameter acquisition module 2, video record module 3 and transmission control module 4.Wherein,Information acquisition module 1 is for acquisition terminal information and the network information, including various sensors, as withIn the temperature controller of detection terminal mainboard Current Temperatures, for detecting the electricity of battery dump energySensor etc..Described end message also includes the system that the hardware detection by terminal is learntThe frequency run and the current residual obtained by the operating system detection of terminal (dynamically can be deposited with RAMReservoir).The modem of terminal can provide the network information, as the network type being currently accessed,The handling capacity etc. of current network, carries out network video between described local terminal and described exterior terminalKeep pouring in defeated, described exterior terminal hardware information is supplied to described local terminal.Specifically, instituteThe hardware information stating exterior terminal includes screen resolution.
The information collected is sent to video parameter acquisition module 2 by information acquisition module 1, by regardingFrequently parameter acquisition module 2 obtains one group of corresponding video record according to the every terms of information currently collectedWith transmission video parameter, to adapt to current terminal local system and network.Finally give regardsFrequency record and transmission video parameter be not likely to be best, but relative to current system conditions,One group of network condition optimum.
As it is shown in figure 5, another embodiment of the video communication device provided for the present invention.At thisIn embodiment, compared with the embodiment shown in Fig. 4, add a time block 5 for determiningA update cycle in video communication, as within this update cycle, gather information, andDetermine up-to-date video parameter.
This embodiment also includes video parameter comparison module 6, is used in video communication,The most suitable for determining currently used video parameter, if to need to change.Specific as follows: when regardingFrequently parameter acquisition module 2 is in timing cycle, obtains according to present terminal information and/or the network informationAfter the second video parameter in the current update cycle, video parameter comparison module 6 contrast current the most moreWhether the second video parameter in the new cycle and the difference of the video parameter being being currently used be less than pre-If first threshold, if it is lower, illustrate that the real-time condition change of now terminal and network is little,It is made without adjusting.If greater than or be equal to, then by the current update cycle second video ginsengNumber is sent to described video record module 3 and described transmission control module 4;Then video record mouldBlock 3 and described transmission control module 4 use the second video parameter in the current update cycle, carry outThe recording of video and transmission.
About the video parameter acquisition module 2 in Fig. 4 and Fig. 5, it can have multiple implementation,With three embodiments, this video parameter acquisition module 2 is described in detail below.
The embodiment one of video parameter acquisition module 2 is concrete as shown in Figure 6, including the first storage listUnit 21a and the first query unit 22a.Wherein, in the first memory element 21a, storage has described endThe mapping table of client information and the described network information and described video parameter relation;First query unit22a receives information acquisition module 1 and obtains multiple described end message, the described network information, and rootAccording to these information to the first memory element 21a are inquired about described mapping table, thus obtain video ginsengNumber.
The embodiment two of video parameter acquisition module 2 is as shown in Figure 7.Including the second memory element21b, weighted mean computing unit 22b and the second query unit 23b.Second memory element 21bMiddle storage has the default weight of described end message and the described network information, also storage to maintain and addWeight average value and the mapping table of video parameter corresponding relation.Weighted mean computing unit 22b receivesInformation acquisition module 1 obtains multiple described end message and the described network information, according to the second storageIn unit 21b, the default weight of upper storage, calculates the data weighted average value of the plurality of information.Second query unit 23b inquires about mapping table according to described weighted mean, to obtain video parameter.
The embodiment three of video parameter acquisition module 2 is as shown in Figure 8.Including the 3rd memory element21c, contrast unit 22c and the 3rd query unit 23c.In 3rd memory element 21c, storage is describedEnd message and the priority of the described network information and respective reference threshold, also storage have describedEnd message, the described network information and the mapping table of described video parameter relation.Comparing unit 22cReceive information acquisition module 1 and obtain multiple described end message and the described network information.By described manyIndividual information data contrasts with respective reference threshold, when there being information to be more than its reference threshold,Send inquiry notice to the 3rd query unit 23c.3rd query unit 23c is according to comparing unit 22cThe inquiry notice inquiry mapping table sent, to obtain video parameter.
The embodiment four of video parameter acquisition module 2 is as shown in Figure 9.Including the 4th memory element21d, weighted mean computing unit 22d, contrast unit 23d and the 4th query unit 24d.TheFour memory element 21b store the default weight of described end message and the described network information, also depositsContain weighted mean and the mapping table of video parameter corresponding relation and the second threshold of weighted meanValue.Weighted mean computing unit 22d receives information acquisition module 1 and obtains multiple described terminal letterBreath and the described network information, according to the default weight of storage upper in the 4th memory element 21d, calculateThe weighted mean of the plurality of data.Contrast unit 23d is by default with one for weighted mean theTwo threshold values contrast, if greater than described threshold value, then by the 4th query unit 23d according to describedWeighted mean inquiry mapping table, to obtain video parameter.
During according to aforementioned acquisition video parameter embodiment four, it is not necessary to the video parameter ratio in this exampleRelatively module.Because having been carried out comparing when obtaining video parameter, it is determined that the need of change recordSystem and the video parameter of transmission, when needs are changed, just can obtain when weighted mean is more than preset valueTo video parameter.
As a rule, the video parameter required for recording is resolution, such as, can be QCIF(176 × 144), CIF (352 × 288), D1 (704 × 576), 720P (1280 × 720) or 1080P(1920*1080).After determining resolution, the data volume that unit image needs just determines that, then determined frame per second by current processing capabilities.For the mapping table being applied in the present invention, canTo be stored in advance in terminal, including required elementary video parameter, such as resolution, it is also possible toIncluding other parameters corresponding, such as frame per second, code check, compression ratio etc..The invention is not limited in thisA little parameters, some other recording and transmission parameter can also be according to basic parameter and current network stateCalculate in real time.Owing to this type of technology is well known to those skilled in the art, thus the most superfluous at thisState.
The present invention can video record in adaptive change video call process and transmission.Such asIf be detected that use non-wlan network to converse, the most automatically change the recording of video, reduce and differentiateRate, to save flow, and determines to transmit frame per second according to current network handling capacity.If usedWLAN and mobile phone state are good (i.e. the every data of the system mode of the machine are good), and WLANThe current bandwidth that connects support higher picture quality transmission, be the most automatically replaced by corresponding resolution,And monitor handling capacity change when WLAN connects in real time and adjust transmission code rate or frame per second, it is ensured thatSmooth transmission of video.
According to embodiments of the invention as described above, these embodiments do not have detailed descriptionthe ownDetails, be also not intended to the specific embodiment that this invention is only described.Obviously, as described above,Can make many modifications and variations.These embodiments are chosen and specifically described to this specification, be in order toPreferably explain the principle of the present invention and actual application, so that skilled artisan's energyThe present invention and amendment on the basis of the present invention is utilized to use well.Protection scope of the present inventionShould be defined in the range of standard with the claims in the present invention.