CN107396028B - A kind of processing method and mobile terminal of video calling - Google Patents

A kind of processing method and mobile terminal of video calling Download PDF

Info

Publication number
CN107396028B
CN107396028B CN201710731008.9A CN201710731008A CN107396028B CN 107396028 B CN107396028 B CN 107396028B CN 201710731008 A CN201710731008 A CN 201710731008A CN 107396028 B CN107396028 B CN 107396028B
Authority
CN
China
Prior art keywords
code rate
network
controlled plant
grade
grades
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710731008.9A
Other languages
Chinese (zh)
Other versions
CN107396028A (en
Inventor
黄江民
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710731008.9A priority Critical patent/CN107396028B/en
Publication of CN107396028A publication Critical patent/CN107396028A/en
Application granted granted Critical
Publication of CN107396028B publication Critical patent/CN107396028B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • H04N7/141Systems for two-way working between two video terminals, e.g. videophone
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/146Data rate or code amount at the encoder output
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/85Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The present invention provides the processing method and mobile terminal of a kind of video calling, and method includes: to obtain the network under network locating for mobile terminal in video call process and negotiate code rate, and the Video coding transmission code rate of detection mobile terminal;If the Video coding transmission code rate of mobile terminal, which is greater than network, negotiates code rate, the first controlled plant and the second controlled plant are alternately adjusted to first object value and the second target value;If first controlled plant is in the first object value, and second controlled plant is in second target value, and video frame is encoded and exported.The processing method of video calling provided in an embodiment of the present invention, mobile terminal can alternately adjust video encoding quality and frame per second, realization makes to encode bit rate output reduction to adapt to network negotiation code rate, so as to avoid video encoding quality is directly reduced to problem that is minimum and causing video speech quality low in the prior art, the quality of video calling is improved.

Description

A kind of processing method and mobile terminal of video calling
Technical field
The present invention relates to the processing methods and mobile terminal of field of communication technology more particularly to a kind of video calling.
Background technique
Video calling, can real-time transmission both call sides between mobile terminals as the most common function of mobile terminal Voice and image realize that both call sides carry out aspectant communication.But in order to guarantee the Internet resources of same cell, Network operator usually will limit the peak transfer rate of video calling, and when network environment or network quality are deteriorated, depending on The peak transfer rate of frequency call can also reduce.And when peak transfer rate reduces, in specific frame per second and Video coding matter Under amount, the size of the video frame of transmitted per unit time, which encodes bit rate output, may exceed peak transfer rate, to cause Network transmission packet loss in video call process leads to occur flower screen or Caton in video call process.
In order to avoid occurring network transmission packet loss in video call process, mobile terminal is needed by reducing video calling Video coding bit rate output meets the limitation of peak transfer rate.At present during reducing Video coding bit rate output, lead to It is often to first pass through adjusting video encoding quality, reduces video encoding quality, if when video encoding quality is adjusted to minimum still not It is able to satisfy, then further decreases Video coding bit rate output by reducing frame per second.But since video encoding quality is adjusted to When minimum, the video frame in video call process will appear mosaic or fuzzy phenomenon, to reduce video calling Quality.
As it can be seen that current mobile terminal is when reducing the Video coding bit rate output in video call process, there are easy Video encoding quality is adjusted to problem that is minimum and causing video speech quality low.
Summary of the invention
The embodiment of the present invention provides the processing method and mobile terminal of a kind of video calling, to solve current mobile terminal When reducing the Video coding bit rate output in video call process, draw due to being easy because existing and minimize video encoding quality Play the low problem of video speech quality.
In a first aspect, being applied to mobile terminal, packet the embodiment of the invention provides a kind of processing method of video calling It includes:
In video call process, obtains the network under network locating for the mobile terminal and negotiate code rate, and detection institute State the Video coding transmission code rate of mobile terminal;
If the Video coding transmission code rate of the mobile terminal is greater than the network and negotiates code rate, by the first controlled plant and Second controlled plant is alternately adjusted to first object value and the second target value, wherein first controlled plant and described second Controlled plant is respectively video encoding quality and frame per second or first controlled plant and second controlled plant is respectively Frame per second and video encoding quality;
If first controlled plant is in the first object value, and second controlled plant is in second mesh Video frame is encoded and is exported by scale value, wherein when encoding and exporting the video frame, the Video coding of video calling Transmission code rate is less than or equal to the network and negotiates code rate.
Second aspect also provides a kind of mobile terminal in the embodiment of the present invention, comprising:
Detection module negotiates code in video call process, obtaining the network under network locating for the mobile terminal Rate, and the Video coding transmission code rate of the detection mobile terminal;
Adjustment module will if the Video coding transmission code rate for the mobile terminal, which is greater than the network, negotiates code rate First controlled plant and the second controlled plant are alternately adjusted to first object value and the second target value, wherein described first is adjusted Object and second controlled plant are respectively video encoding quality and frame per second or first controlled plant and described second Controlled plant is respectively frame per second and video encoding quality;
Processing module, if being in the first object value, and second controlled plant for first controlled plant In second target value, video frame is encoded and exported, wherein when encoding and exporting the video frame, video The Video coding transmission code rate of call is less than or equal to the network and negotiates code rate.
The third aspect, the embodiment of the present invention also provide a kind of mobile terminal, including processor, and memory is stored in described It is real when the computer program is executed by the processor on memory and the computer program that can run on the processor The step of processing method of existing above-mentioned video calling.
Fourth aspect, the embodiment of the present invention also provide a kind of computer readable storage medium, the computer-readable storage Computer program is stored on medium, the computer program realizes the processing method of above-mentioned video calling when being executed by processor The step of.
In this way, in the embodiment of the present invention, in video call process, if the Video coding bit rate output of mobile terminal is greater than Network negotiates code rate, and mobile terminal can alternately adjust video encoding quality and frame per second, and realization reduces coding bit rate output Negotiate code rate to adapt to network, so as to avoid video encoding quality is directly reduced in the prior art to minimum and cause video logical Low-quality problem is talked about, the quality of video calling is improved.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, needed in being described below to the embodiment of the present invention Attached drawing to be used is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, For those of ordinary skill in the art, without any creative labor, it can also obtain according to these attached drawings Obtain other attached drawings.
Fig. 1 is a kind of flow diagram of the processing method of video calling provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of the processing method of another video calling provided in an embodiment of the present invention;
Fig. 3 is the process signal of alternately adjustment process in a kind of processing method of video calling provided in an embodiment of the present invention Figure;
Fig. 4 is a kind of structural schematic diagram of mobile terminal provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of adjustment module in a kind of mobile terminal provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram that unit is adjusted in a kind of mobile terminal provided in an embodiment of the present invention;
Fig. 7 is the structural schematic diagram of detection module in a kind of mobile terminal provided in an embodiment of the present invention;
Fig. 8 is the structural schematic diagram of another mobile terminal provided in an embodiment of the present invention;
Fig. 9 is the structural schematic diagram of another mobile terminal provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
It is a kind of flow diagram of the processing method of video calling provided in an embodiment of the present invention referring to Fig. 1, Fig. 1, answers For mobile terminal, as shown in Figure 1, comprising the following steps:
Step 101, in video call process, obtain network under network locating for the mobile terminal and negotiate code rate, with And the Video coding transmission code rate of the detection mobile terminal.
In the embodiment of the present invention, it is to carry out video frame transmission under mobile terminal network locating for it that above-mentioned network, which negotiates code rate, Peak transfer rate.Network under network locating for the above-mentioned acquisition mobile terminal negotiates code rate, can be mobile terminal inspection The network signal intensity under its locating network is surveyed, and the network signal intensity that will test feeds back to network side equipment, network side The corresponding network of the network signal intensity is negotiated code rate after receiving network signal intensity and is sent to mobile terminal by equipment.
In addition, mobile terminal can also be examined under current video encoding quality and frame per second in video call process Its Video coding transmission code rate is surveyed, above-mentioned Video coding transmission code rate is the actual speed rate that mobile terminal carries out video frame transmission. Certainly, above-mentioned mobile terminal detects its Video coding transmission rate, and the network that can be in the case where obtaining network locating for it negotiates code Rate carries out later or before, is also possible to carry out simultaneously with the network negotiation code rate obtained under its locating network, herein not It is defined.
If the Video coding transmission code rate of step 102, the mobile terminal, which is greater than the network, negotiates code rate, first is adjusted Section object and the second controlled plant are alternately adjusted to first object value and the second target value.
In the embodiment of the present invention, if above-mentioned steps 101 get the network under network locating for mobile terminal and negotiate code rate, with And detect the video frequency coding rate of mobile terminal, mobile terminal may determine that mobile terminal Video coding transmission code rate whether Negotiate code rate greater than network, if the Video coding transmission code rate of mobile terminal is greater than network and negotiates code rate, mobile terminal can be with Video encoding quality and frame per second are alternately adjusted, reduces Video coding transmission code rate to adapt to network and negotiate code rate.
Wherein, video encoding quality or frame per second are higher, and the memory of the video frame in video call process is bigger, then move The Video coding transmission code rate of terminal is higher;Video encoding quality or frame per second are lower, and the memory of video frame is smaller, then mobile whole The Video coding transmission code rate at end is lower.Mobile terminal can using video encoding quality as the first controlled plant and frame per second as Second controlled plant, or using frame per second as the first controlled plant and video encoding quality is as the second controlled plant, pass through by First controlled plant and the second controlled plant are alternately adjusted to first object value and the second target value, realize video encoding quality And frame per second reduces, and the Video coding transmission code rate of mobile terminal is reduced.
In addition, above-mentioned be alternately adjusted to first object value and the second target for the first controlled plant and the second controlled plant Value, can be mobile terminal according to the first controlled plant and the corresponding preset amplitude of accommodation of the second controlled plant, to the The value of one controlled plant and the value of the second controlled plant are adjusted at least once, until the Video coding of mobile terminal transmits Code rate is less than or equal to network and negotiates code rate.
Such as: if the first controlled plant is video encoding quality, the second controlled plant is frame per second, and presets in mobile terminal There is single to adjust the amplitude of accommodation of video encoding quality and frame per second, mobile terminal according to the amplitude of accommodation of video encoding quality with And the amplitude of accommodation of frame per second, 2 adjustings are carried out to video encoding quality and frame per second respectively, i.e., in the video for realizing mobile terminal During coding transmission code rate meets less than or equal to network negotiation code rate, 4 drops are carried out to Video coding transmission code rate Low adjustment operation, wherein the 1st operation and the 3rd operation are by adjusting video encoding quality, and the 2nd operation and the 4th behaviour Make to realize by adjusting frame per second;It is also possible to the 1st operation and the 4th operation by adjusting video encoding quality, and the 2nd behaviour Work and the 3rd operation are by adjusting frame per second realization etc..
If step 103, first controlled plant are in the first object value, and second controlled plant is in institute The second target value is stated, video frame is encoded and exported.
In the embodiment of the present invention, if the first controlled plant and the second controlled plant are adjusted to respectively by above-mentioned steps 102 One target value and the second target value, mobile terminal can will be encoded and be exported in video, and even first object object is view Frequency coding quality and the second target object are frame per second, and mobile terminal encodes video frame according to first object value, and will be compiled Video frame after code is exported according to the second target value;If first object object is frame per second and the second target object is Video coding matter Amount, mobile terminal encode video frame according to the second target value, and the video frame after coding is defeated according to first object value Out, so that mobile terminal Video coding transmission code rate of video calling in coding and output video frame is less than or equal to network Negotiate code rate, Video coding transmission code rate adapts to the limitation of the peak transfer rate of its locating network, to reduce generation video A possibility that frame data packet loss, promotes the quality of video calling.
In the embodiment of the present invention, above-mentioned mobile terminal can be any mobile terminal for being able to carry out video calling, such as: Mobile phone, tablet computer (Tablet Personal Computer), laptop computer (LaptopComputer), individual digital help Manage (personal digital assistant, abbreviation PDA), mobile Internet access device (Mobile Internet Device, ) or wearable device (Wearable Device) etc. MID.
In this way, in the embodiment of the present invention, in video call process, if the Video coding bit rate output of mobile terminal is greater than Network negotiates code rate, and mobile terminal can alternately adjust video encoding quality and frame per second, and realization reduces coding bit rate output Negotiate code rate to adapt to network, so as to avoid video encoding quality is directly reduced in the prior art to minimum and cause video logical Low-quality problem is talked about, the quality of video calling is improved.
Referring to fig. 2, Fig. 2 is a kind of flow diagram of the processing method of video calling provided in an embodiment of the present invention, such as Shown in Fig. 2, comprising the following steps:
Step 201, in video call process, obtain network under network locating for the mobile terminal and negotiate code rate, with And the Video coding transmission code rate of the detection mobile terminal.
In the embodiment of the present invention, the network under network locating for the above-mentioned acquisition mobile terminal negotiates code rate, can be shifting Dynamic terminal detects the network signal intensity under its locating network, and the network signal intensity that will test feeds back to network side and sets Standby, the corresponding network of the network signal intensity is negotiated code rate after receiving network signal intensity and is sent to by network side equipment Mobile terminal.
Alternatively, optional, above-mentioned steps 201 may include: to detect the mobile terminal institute in video call process Locate the network signal intensity under network;According to the preset relation of Network status grade and the range of network signal intensity, inspection is determined The corresponding Network status grade of the network signal intensity measured, wherein each Network status grade and a network signal intensity Range is corresponding;Negotiate the preset relation of code rate according to Network status grade and network, it is determining strong with network signal that is detecting It spends the corresponding network of corresponding Network status grade and negotiates code rate;Detect the Video coding transmission code rate of the mobile terminal.
In present embodiment, network side equipment can be strong for mobile terminal configuration Network status grade and network signal in advance The relationship and Network status grade and network of the range of degree negotiate the relationship of code rate, to allow mobile terminal according to net Network signal strength quickly determines that the network under its locating network negotiates code rate, improves Video coding transmission in video call process The efficiency of code rate adjustment.
If the Video coding transmission code rate of step 202, the mobile terminal, which is greater than the network, negotiates code rate, according to first First controlled plant and second controlled plant are alternately adjusted to by predetermined level list and the second predetermined level list First object grade and the second goal gradient.
It can be preset in the embodiment of the present invention, in mobile terminal and the associated rank list of the first controlled plant i.e. One predetermined level list, and with the associated rank list of the second controlled plant i.e. the second predetermined level list, if above-mentioned steps Video coding transmission code rate is greater than network negotiation code rate in 201, and mobile terminal can be according to the first predetermined level list and second Predetermined level list alternately adjusts the first controlled plant and the second controlled plant, so that the Video coding transmission after alternately adjusting Code rate is less than or equal to above-mentioned network and negotiates code rate.Above-mentioned first controlled plant can be for video encoding quality and second is adjusted Object is frame per second;Or above-mentioned first controlled plant can be frame per second and the second controlled plant is video encoding quality.
Wherein, above-mentioned according to the first predetermined level list and the second predetermined level list, by the first controlled plant and second Controlled plant is alternately adjusted to first object grade and the second goal gradient, and can be mobile terminal is reducing Video coding transmission During code rate, the grade to the first controlled plant and the grade of the second controlled plant are adjusted at least once respectively, and are made During the value of first controlled plant is adjusted to minimum by current value, the second controlled plant is adjusted at least once; Or during so that the value of the second controlled plant is adjusted to minimum by current value, the second controlled plant is carried out at least once It adjusts.Such as: can be during reducing Video coding transmission code rate, the grade to the first controlled plant it is adjacent twice In adjustment process, the grade of the second controlled plant is adjusted at least once.
Optionally, as shown in figure 3, it is above-mentioned according to the first predetermined level list and the second predetermined level list, first is adjusted Section object and the second controlled plant replace the step of being adjusted to first object grade and the second goal gradient, may include:
S1, the grade of first controlled plant is adjusted to K2 grades by K1 grades, wherein described K1 grades are described Present level of first controlled plant in described first the presets list;Described K1 grades are adjacent grade with described K2 grades Or described K1 grades and it is K2 grades described between be separated by least one grade;
S2, under described K2 grades and L1 grades, detect the current Video coding transmission code rate of the mobile terminal, and sentence Whether the disconnected current Video coding transmission code rate detected, which is greater than the network, is negotiated code rate, wherein described L1 grades are institute State present level of second controlled plant in described second the presets list;
If S3, the current Video coding transmission code rate detected, which are greater than the network, negotiates code rate, described second is adjusted The grade of section object is adjusted to L2 grades by L1 grade, wherein described L1 grades with described L2 grades be adjacent grade or Described L1 grades and it is L2 grades described between be separated by least one grade;
S4, at described K2 grades and under L2 grades described, the current Video coding transmission of the mobile terminal is continued to test Code rate, and judge whether the current Video coding transmission code rate detected is greater than the network and negotiates code rate;
If S5, the current Video coding transmission code rate detected, which are greater than the network, negotiates code rate, by described K2 grades As described K1 grades and described L2 grades are used as described L1 grades, and re-execute the steps S1-S4;
If the current Video coding transmission code rate detected in S6, step S2 or step S4 is less than or equal to described Network transmission code rate, then by the grade of the first controlled plant obtained in step S1 or step S3 and the second controlled plant etc. Grade, respectively as first object grade and the second goal gradient.
In present embodiment, mobile terminal is handed in the grade of grade and the second controlled plant to the first controlled plant During being adjusted, it can be in the grade for adjusting the first controlled plant in the way of intersecting one by one and the second adjusting pair The grade of elephant is adjacent to reduce twice that is, before Video coding transmission code rate decreases below or be equal to network negotiation code rate The controlled plant of the operation of Video coding transmission code rate is different, i.e., reduces twice once to adjust the first controlled plant in operation, Another time is the second controlled plant of adjusting, may further reduce generation video encoding quality and be reduced to a possibility that minimum.
Such as: it if the first controlled plant is video encoding quality, and include grade in preset first predetermined level list A1, grade A2, grade A3 and grade A4, and grade A1 value of video encoding quality into A4 successively reduces;Second adjusting pair It as frame per second, and include grade B1, grade B2, grade B3 and grade B4 in preset second predetermined level list, and grade B1 value of video encoding quality into B4 successively reduces, if the Video coding transmission code rate in above-mentioned steps 201 is assisted greater than network Quotient's code rate, and if the current grade of video encoding quality is grade A1 and the current grade of frame per second is B1, mobile terminal The reduction to realize Video coding transmission code rate can successively be adjusted in the following order: by the grade of video encoding quality by etc. Grade A1 is down to grade A2, and the grade of frame per second will be worth grade B2 by grade B1, the grade of video encoding quality is dropped by grade A2 To grade A3, the grade of frame per second will be worth grade B3 by grade B2, the grade of video encoding quality is down to grade by grade A3 The grade of frame per second will be worth grade B4 by grade B3 by A4;If during reducing Video coding transmission code rate in the order described above, When complete wherein Primary regulation rear video coding transmission code rate be less than or equal to network negotiate code rate, then mobile terminal stop after The continuous adjusting operation executed after this time is adjusted, and using the corresponding grade of video encoding quality after this time adjusting as first Goal gradient, the corresponding grade of frame per second is as the second goal gradient, such as after the grade of frame per second will be worth grade B3 by grade B2 Video coding transmission code rate is less than or equal to network and negotiates code rate, then using grade A3 as first object grade, grade B3 makees For the second goal gradient.
In addition, mobile terminal can adjust first step by step when being adjacent grade with above-mentioned K2 grades for above-mentioned K1 grades The grade of controlled plant;And when being separated by least one grade between above-mentioned K1 grades and K2 grades, mobile terminal is right each time The adjusting of first controlled plant can cross over multiple grades.Similarly, above-mentioned L1 grades are adjacent grade with above-mentioned L2 grades Or above-mentioned L1 grades and it is L2 grades above-mentioned between be separated by least one grade, the adjusting for the second controlled plant, it is mobile eventually End can also adjust step by step or adjust across multiple grades.
In the embodiment of the present invention, above-mentioned video encoding quality is the parameter for measuring video quality in video call process, depending on Frequency coding quality is lower, and the video quality after coding is lower.Optionally, above-mentioned video encoding quality can be by quantization parameter table Sign.Wherein, quantization parameter (Quatization Parameter, QP) can with accurate characterization video encoding quality, quantization parameter Value is bigger, and video encoding quality is lower;The value of quantization parameter is smaller, and video encoding quality is higher, so as to by alternately adjusting Quantization parameter and frame per second are saved, realizes the reduction of Video coding transmission code rate.Certainly, above-mentioned video encoding quality can also be by measuring Change the parameter characterizations such as step-length, is not defined herein.
In addition, it is necessary to which explanation, above-mentioned according to the first predetermined level list and the second predetermined level list, alternately adjust The grade of the grade of first controlled plant and the second controlled plant can be according to the first adjusting pair in the first predetermined level list The value of second controlled plant and the relationship of grade in the value of elephant and the relationship of grade and the second predetermined level list, by first The grade of controlled plant is increased or is reduced, it is only necessary to make to adjust the reduction that Video coding transmission code rate may be implemented every time i.e. Can, it is not defined herein.
Such as: if above-mentioned first controlled plant is the video encoding quality characterized by QP, and in the first predetermined level list, QP value is increased as grade reduces;And second controlled plant be frame per second, and the value of frame per second with grade reduce and reduce, if on It states the Video coding transmission code rate in step 201 and is greater than network negotiation code rate, then during reducing Video coding transmission code rate, The adjusting of QP can be and adjust the raising of its grade, and the adjusting of frame per second can be and adjust the reduction of its grade.
Step 203 determines that the corresponding value of first object grade described in the first predetermined level list is first object Value.
In the embodiment of the present invention, if the grade of the first controlled plant is adjusted to first object grade by above-mentioned steps 202, move Dynamic terminal can determine according to the corresponding relationship of preset grade in the first predetermined level list and the value of the first controlled plant The corresponding value of one goal gradient is first object value.
Step 204 determines that the corresponding value of the second goal gradient described in the second predetermined level list is the second target Value.
In the embodiment of the present invention, if the grade of the second controlled plant is adjusted to the second goal gradient by above-mentioned steps 202, move Dynamic terminal can determine the second target according to the preset relation of the value of the second predetermined level list middle grade and the second controlled plant The corresponding value of grade is the second target value.
If step 205, first controlled plant are in the first object value, and second controlled plant is in institute The second target value is stated, video frame is encoded and exported.
In the embodiment of the present invention, if above-mentioned steps 203 determine first object value and step 204 determines the second target value, move Dynamic terminal can be encoded and be transmitted to video frame, and mobile terminal video when being encoded and being transmitted to video frame The Video coding transmission code rate of call is less than or equal to the network and negotiates code rate, and video requency frame data packet loss occurs to reduce A possibility that, promote the quality of video calling.
In the embodiment of the present invention, according to the first predetermined level list and the second predetermined level list, by the first controlled plant First object grade and the second goal gradient are alternately adjusted to the second controlled plant;It determines in the first predetermined level list The first object grade is corresponding to be worth for first object value;Determine second target described in the second predetermined level list etc. The corresponding value of grade is the second target value.Mobile terminal, can be in the grade for adjusting video encoding quality according to predetermined level list The grade for adjusting frame per second in the process is realized and is adjusted to the alternating of video encoding quality and frame per second, and promotes reduction coding output code Adjusting efficiency during rate.
Referring to fig. 4, Fig. 4 is the structural schematic diagram that the present invention implements a kind of mobile terminal provided, as shown in figure 4, mobile Terminal 400 includes sequentially connected detection module 401, adjustment module 402 and processing module 403:
Detection module 401 is negotiated in video call process, obtaining the network under network locating for the mobile terminal Code rate, and the Video coding transmission code rate of the detection mobile terminal;
Adjustment module 402, if the Video coding transmission code rate for the mobile terminal, which is greater than the network, negotiates code rate, First controlled plant and the second controlled plant are alternately adjusted to first object value and the second target value, wherein described first adjusts Section object and second controlled plant are respectively video encoding quality and frame per second or first controlled plant and described the Two controlled plants are respectively frame per second and video encoding quality;
Processing module 403, if being in the first object value, and second adjusting pair for first controlled plant As being in second target value, video frame is encoded and exported, wherein when encoding and exporting the video frame, depending on The Video coding transmission code rate of frequency call is less than or equal to the network and negotiates code rate.
Optionally, as shown in figure 5, the adjustment module 402 includes:
Unit 4021 is adjusted, is used for according to the first predetermined level list and the second predetermined level list, by the first adjusting pair As being alternately adjusted to first object grade and the second goal gradient with the second controlled plant, wherein the first predetermined level column Table be with the associated rank list of the first controlled plant, and the second predetermined level list be and it is described second adjust pair As associated rank list;
First determination unit 4022, for determining that first object grade described in the first predetermined level list is corresponding Value is first object value;
Second determination unit 4023, for determining that the second goal gradient described in the second predetermined level list is corresponding Value is the second target value.
Optionally, as shown in fig. 6, the adjusting unit 4021 includes:
First regulator unit 40211, for the grade of first controlled plant to be adjusted to K2 grades by K1 grades, Wherein, described K1 grades are present level of first controlled plant in described first the presets list;Described K1 grades with Described K2 grades for adjacent grade or it is described K1 grades and it is K2 grades described between be separated by least one grade;
First detection sub-unit 40212, under described K2 grade and L1 grades, detecting the mobile terminal currently Video coding transmission code rate, and judge whether the current Video coding transmission code rate detected is greater than the network and negotiates code Rate, wherein described L1 grades are present level of second controlled plant in described second the presets list;
Second regulator unit 40213, if the current Video coding for first detection sub-unit to detect passes Defeated code rate is greater than the network and negotiates code rate, and the grade of second controlled plant is adjusted to L2 grades by L1 grades, wherein Described L1 grades and it is described L2 grades for adjacent grade or it is described L1 grades and it is L2 grades described between be separated by least one Grade;
Second detection sub-unit 40214, it is described mobile whole for continuing to test under described K2 grades and described L2 grades Current Video coding transmission code rate is held, and judges whether the current Video coding transmission code rate detected is greater than the network Negotiate code rate;
Subelement 40215 is controlled, if the current Video coding transmission code rate for detecting is negotiated greater than the network Described K2 grades are used as described K1 grades and described L2 grades to be used as described L1 grades, and control described first and adjust by code rate Knot unit 40211, first detection sub-unit 40212, second regulator unit 40213 and second detection Subelement 40214 re-executes movement;
Subelement 40216 is determined, if being used for first detection sub-unit 40212 or second detection sub-unit The 40214 current Video coding transmission code rates detected are less than or equal to the network transmission code rate, then by described first The grade for the first controlled plant that regulator unit 40211 or second regulator unit 40213 obtain and second is adjusted The grade of object, respectively as first object grade and the second goal gradient.
Optionally, the video encoding quality is characterized by quantization parameter.
Optionally, as shown in fig. 7, the detection module 401 includes:
Network quality detection unit 4011, for detecting under network locating for the mobile terminal in video call process Network signal intensity;
Network status determination unit 4012, for the default pass according to the range of Network status grade and network signal intensity System, the corresponding Network status grade of the network signal intensity confirmly detected, wherein each Network status grade and a network are believed The range of number intensity is corresponding;
Negotiate code rate determination unit 4013, for negotiating the preset relation of code rate according to Network status grade and network, really The corresponding network of Network status grade corresponding with the network signal intensity detected negotiates code rate calmly;
Transmission code rate detection unit 4014, for detecting the Video coding transmission code rate of the mobile terminal.
Mobile terminal 400 can be realized each process that the mobile terminal of Fig. 1 embodiment into Fig. 3 is realized, to avoid weight Multiple, which is not described herein again.
The mobile terminal 400 of the embodiment of the present invention, in video call process, if the Video coding output code of mobile terminal Rate is greater than network and negotiates code rate, and mobile terminal can alternately adjust video encoding quality and frame per second, and realization makes to encode output code Rate is reduced to adapt to network and negotiate code rate, so as to avoid video encoding quality is directly reduced in the prior art to minimum and cause The low problem of video speech quality, improves the quality of video calling.
The embodiment of the present invention also provides a kind of mobile terminal, including processor, and memory is stored on the memory simultaneously The computer program that can be run on the processor, the computer program realize above-mentioned video when being executed by the processor Each process of the processing method embodiment of call, and identical technical effect can be reached, it is no longer superfluous here to avoid repeating It states.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program, the computer program realize each mistake of the processing method embodiment of above-mentioned video calling when being executed by processor Journey, and identical technical effect can be reached, to avoid repeating, which is not described herein again.Wherein, the computer-readable storage medium Matter, such as read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic or disk etc..
It is the structural schematic diagram that the present invention implements a kind of mobile terminal provided referring to Fig. 8, Fig. 8, as shown in figure 8, mobile Terminal 800 includes: at least one processor 801, memory 802, at least one network interface 804 and user interface 803.It is mobile Various components in terminal 800 are coupled by bus system 805.It is understood that bus system 805 is for realizing these groups Connection communication between part.Bus system 805 further includes power bus, control bus and state in addition to including data/address bus Signal bus.But for the sake of clear explanation, various buses are all designated as bus system 805 in fig. 8.
Wherein, user interface 803 may include display, keyboard or pointing device (for example, mouse, trace ball (trackball), touch-sensitive plate or touch screen etc..
It is appreciated that the memory 802 in the embodiment of the present invention can be volatile memory or nonvolatile memory, It or may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (Read- Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable Device (Erasable PROM, EPROM), electrically erasable programmable read-only memory (Electrically EPROM, EEPROM) or Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), be used as external high Speed caching.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links Dynamic random access memory (Synchlink DRAM, SLDRAM) and direct rambus random access memory (Direct Rambus RAM, DRRAM).The memory 802 of system and method described herein is intended to include but is not limited to these and arbitrarily its It is suitble to the memory of type.
In some embodiments, memory 802 stores following element, executable modules or data structures, or Their subset of person or their superset: operating system 8021 and application program 8022.
Wherein, operating system 8021 include various system programs, such as ccf layer, core library layer, driving layer etc., are used for Realize various basic businesses and the hardware based task of processing.Application program 8022 includes various application programs, such as media Player (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention The program of method may be embodied in application program 8022.
In embodiments of the present invention, mobile terminal 800 further include: be stored on memory 802 and can be on processor 801 The computer program of operation specifically can be the computer program in application program 8022, computer program is by processor 801 realize following steps when executing: in video call process, the network obtained under network locating for the mobile terminal negotiates code Rate, and the Video coding transmission code rate of the detection mobile terminal;If the Video coding transmission code rate of the mobile terminal is big Negotiate code rate in the network, the first controlled plant and the second controlled plant are alternately adjusted to first object value and the second target Value, wherein first controlled plant and second controlled plant are respectively video encoding quality and frame per second or described the One controlled plant and second controlled plant are respectively frame per second and video encoding quality;If first controlled plant is in institute First object value is stated, and second controlled plant is in second target value, and video frame is encoded and exported, In, when encoding and exporting the video frame, the Video coding transmission code rate of video calling is assisted less than or equal to the network Quotient's code rate.
The method that the embodiments of the present invention disclose can be applied in processor 801, or be realized by processor 801. Processor 801 may be a kind of IC chip, the processing capacity with signal.During realization, the above method it is each Step can be completed by the integrated logic circuit of the hardware in processor 801 or the instruction of software form.Above-mentioned processing Device 801 can be general processor, digital signal processor (Digital Signal Processor, DSP), dedicated integrated electricity Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general Processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with institute of the embodiment of the present invention The step of disclosed method, can be embodied directly in hardware decoding processor and execute completion, or with the hardware in decoding processor And software module combination executes completion.Software module can be located at random access memory, and flash memory, read-only memory may be programmed read-only In the computer readable storage medium of this fields such as memory or electrically erasable programmable memory, register maturation.The meter Calculation machine readable storage medium storing program for executing is located at memory 802, and processor 801 reads the information in memory 802, completes in conjunction with its hardware The step of stating method.Specifically, it is stored with computer program on the computer readable storage medium, computer program is by processor 801 realize each step of the processing method embodiment such as above-mentioned video calling when executing.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its Combination is to realize.For hardware realization, processing unit be may be implemented in one or more specific integrated circuit (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor, In controller, microcontroller, microprocessor, other electronic units for executing herein described function or combinations thereof.
For software implementations, it can be realized herein by executing the module (such as process, function etc.) of function described herein The technology.Software code is storable in memory and is executed by processor.Memory can in the processor or It is realized outside processor.
Optionally, following steps be can also be achieved when computer program is executed by processor 801: being arranged according to the first predetermined level First controlled plant and second controlled plant are alternately adjusted to first object etc. by table and the second predetermined level list Grade and the second goal gradient, wherein the first predetermined level list be with the associated rank list of the first controlled plant, And the second predetermined level list is and the associated rank list of the second controlled plant;Determine first predetermined level The corresponding value of first object grade described in list is first object value;It determines second described in the second predetermined level list The corresponding value of goal gradient is the second target value.
Optionally, following steps be can also be achieved when computer program is executed by processor 801: S1, being adjusted described first The grade of object is adjusted to K2 grades by K1 grades, wherein described K1 grades are adjacent grade or institute with described K2 grades K1 grades are stated as present level of first controlled plant in described first the presets list;Described K1 grades and the K2 It is separated by least one grade between grade;S2, under described K2 grades and L1 grades, detect the current video of the mobile terminal and compile Code transmission code rate, and judge whether the current Video coding transmission code rate detected is greater than the network and negotiates code rate, and sentence Whether the disconnected current Video coding transmission code rate detected, which is greater than the network, is negotiated code rate, wherein described L1 grades are institute State present level of second controlled plant in described second the presets list;If the current video that S3, step S2 are detected is compiled Code transmission code rate is greater than the network and negotiates code rate, then the grade of second controlled plant is adjusted to L2 by L1 grades Grade, wherein described L1 grade and it is described L2 grades be adjacent grade or it is described L1 grades and it is L2 grades described between be separated by At least one grade;S4, at described K2 grades and under L2 grades described, the current Video coding of the mobile terminal is continued to test Transmission code rate, and judge whether the current Video coding transmission code rate detected is greater than the network and negotiates code rate, and judge Whether the current Video coding transmission code rate detected, which is greater than the network, is negotiated code rate;If what S5, step S4 were detected works as Preceding Video coding transmission code rate is greater than the network and negotiates code rate, as described K1 grades and described by described K2 grades L2 grades are used as described L1 grades, and re-execute the steps S1-S4;If being detected in S6, step S2 or step S4 current Video coding transmission code rate be less than or equal to the network transmission code rate, then the will obtained in step S1 or step S3 The grade of the grade of one controlled plant and the second controlled plant, respectively as first object grade and the second goal gradient.
Optionally, the video encoding quality is characterized by quantization parameter.
Optionally, following steps be can also be achieved when computer program is executed by processor 801: in video call process, Detect the network signal intensity under network locating for the mobile terminal;According to preset Network status grade and network signal intensity Range relationship, the corresponding Network status grade of the network signal intensity confirmly detected, wherein each Network status grade It is corresponding with the range of a network signal intensity;The relationship for negotiating code rate according to preset Network status grade and network, determines The corresponding network of corresponding with the network signal intensity detected Network status grade negotiates code rate;Detect the mobile terminal Video coding transmission code rate.
Mobile terminal 800 can be realized each process that mobile terminal is realized in previous embodiment, to avoid repeating, here It repeats no more.
The mobile terminal 800 of the embodiment of the present invention, in video call process, if the Video coding output code of mobile terminal Rate is greater than network and negotiates code rate, and mobile terminal can alternately adjust video encoding quality and frame per second, and realization makes to encode output code Rate is reduced to adapt to network and negotiate code rate, so as to avoid video encoding quality is directly reduced in the prior art to minimum and cause The low problem of video speech quality, improves the quality of video calling.
Referring to Fig. 9, Fig. 9 is the structural schematic diagram that the present invention implements a kind of mobile terminal provided, Fig. 1 can be realized extremely In Fig. 3 in embodiment the processing method of video calling details, and reach identical effect.As shown in figure 9, mobile terminal 900 Including radio frequency (Radio Frequency, RF) circuit 910, memory 920, input unit 930, display unit 940, processor 950, voicefrequency circuit 960, communication module 970 and power supply 980.
Wherein, input unit 930 can be used for receiving the number or character information of user's input, and generation and mobile terminal The related signal input of 900 user setting and function control.Specifically, in the embodiment of the present invention, which can To include touch panel 931.Touch panel 931, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses the operations of any suitable object or attachment on touch panel 931 such as finger, stylus), and according to preparatory The formula of setting drives corresponding attachment device.Optionally, touch panel 931 may include touch detecting apparatus and touch controller Two parts.Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected, by signal Send touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, The processor 950 is given again, and can be received order that processor 950 is sent and be executed.Furthermore, it is possible to using resistance-type, The multiple types such as condenser type, infrared ray and surface acoustic wave realize touch panel 931.In addition to touch panel 931, input unit 930 can also include other input equipments 932, other input equipments 932 can include but is not limited to physical keyboard, function key One of (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. are a variety of.
Wherein, display unit 940 can be used for showing information input by user or be supplied to the information and movement of user The various menu interfaces of terminal 900.Display unit 940 may include display panel 941, optionally, can use LCD or organic hair The forms such as optical diode (Organic Light-Emitting Diode, OLED) configure display panel 941.
It should be noted that touch panel 931 can cover display panel 941, touch display screen is formed, when the touch display screen is examined After measuring touch operation on it or nearby, processor 950 is sent to determine the type of touch event, is followed by subsequent processing device 950 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and common control viewing area.The Application Program Interface viewing area And arrangement mode of the common control viewing area does not limit, can be arranged above and below, left-right situs etc. can distinguish two it is aobvious Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with The interface elements such as the icon comprising at least one application program and/or widget desktop control.The Application Program Interface viewing area Or the empty interface not comprising any content.This commonly uses control viewing area for showing the higher control of utilization rate, for example, Application icons such as button, interface number, scroll bar, phone directory icon etc. are set.The touch screen of the embodiment of the present invention is soft Property screen, organic transparent conductive film of carbon nanotube is posted in two faces of flexible screen.
Wherein processor 950 is the control centre of mobile terminal 900, utilizes various interfaces and connection whole mobile phone Various pieces, by running or executing the software program and/or module that are stored in first memory 921, and calling storage Data in second memory 922 execute the various functions and processing data of mobile terminal 900, thus to mobile terminal 900 Carry out integral monitoring.Optionally, processor 950 may include one or more processing units.
In embodiments of the present invention, mobile terminal further include: be stored in first memory 921 and can be on processor 950 The computer program of operation, computer program realize following steps when being executed by processor 950: in video call process, obtaining The network under network locating for the mobile terminal is taken to negotiate code rate, and the Video coding transmission code of the detection mobile terminal Rate;If the Video coding transmission code rate of the mobile terminal, which is greater than the network, negotiates code rate, by the first controlled plant and second Controlled plant is alternately adjusted to first object value and the second target value, wherein first controlled plant and described second is adjusted Object is respectively video encoding quality and frame per second or first controlled plant and second controlled plant is respectively frame per second And video encoding quality;If first controlled plant is in the first object value, and second controlled plant is in institute The second target value is stated, video frame is encoded and exported, wherein when encoding and exporting the video frame, video calling Video coding transmission code rate is less than or equal to the network and negotiates code rate.
Optionally, following steps be can also be achieved when computer program is executed by processor 950: being arranged according to the first predetermined level First controlled plant and second controlled plant are alternately adjusted to first object etc. by table and the second predetermined level list Grade and the second goal gradient, wherein the first predetermined level list be with the associated rank list of the first controlled plant, And the second predetermined level list is and the associated rank list of the second controlled plant;Determine first predetermined level The corresponding value of first object grade described in list is first object value;It determines second described in the second predetermined level list The corresponding value of goal gradient is the second target value.
Optionally, following steps be can also be achieved when computer program is executed by processor 950: S1, being adjusted described first The grade of object is adjusted to K2 grades by K1 grades, wherein described K1 grades pre- described first for first controlled plant If the present level in list;Described K1 grades are adjacent grade or K1 grade and the K2 described with described K2 grades It is separated by least one grade between grade;S2, under described K2 grades and L1 grades, detect the current video of the mobile terminal and compile Code transmission code rate, and judge whether the current Video coding transmission code rate detected is greater than the network and negotiates code rate, and sentence Whether the disconnected current Video coding transmission code rate detected, which is greater than the network, is negotiated code rate, wherein described L1 grades are institute State present level of second controlled plant in described second the presets list;If the current video that S3, step S2 are detected is compiled Code transmission code rate is greater than the network and negotiates code rate, then the grade of second controlled plant is adjusted to L2 by L1 grades Grade, wherein described L1 grade and it is described L2 grades be adjacent grade or it is described L1 grades and it is L2 grades described between be separated by At least one grade;S4, at described K2 grades and under L2 grades described, the current Video coding of the mobile terminal is continued to test Transmission code rate, and judge whether the current Video coding transmission code rate detected is greater than the network and negotiates code rate, and judge Whether the current Video coding transmission code rate detected, which is greater than the network, is negotiated code rate;If what S5, step S4 were detected works as Preceding Video coding transmission code rate is greater than the network and negotiates code rate, as described K1 grades and described by described K2 grades L2 grades are used as described L1 grades, and re-execute the steps S1-S4;If being detected in S6, step S2 or step S4 current Video coding transmission code rate be less than or equal to the network transmission code rate, then the will obtained in step S1 or step S3 The grade of the grade of one controlled plant and the second controlled plant, respectively as first object grade and the second goal gradient.
Optionally, the video encoding quality is characterized by quantization parameter.
Optionally, following steps be can also be achieved when computer program is executed by processor 950: in video call process, Detect the network signal intensity under network locating for the mobile terminal;According to the range of Network status grade and network signal intensity Preset relation, the corresponding Network status grade of the network signal intensity confirmly detected, wherein each Network status grade with The range of one network signal intensity is corresponding;The preset relation for negotiating code rate according to Network status grade and network is determined and is examined The corresponding network of the corresponding Network status grade of the network signal intensity measured negotiates code rate;Detect the video of the mobile terminal Coding transmission code rate.
Mobile terminal 900 can be realized each process that mobile terminal is realized in previous embodiment, to avoid repeating, here It repeats no more.
The mobile terminal 900 of the embodiment of the present invention, in video call process, if the Video coding output code of mobile terminal Rate is greater than network and negotiates code rate, and mobile terminal can alternately adjust video encoding quality and frame per second, and realization makes to encode output code Rate is reduced to adapt to network and negotiate code rate, so as to avoid video encoding quality is directly reduced in the prior art to minimum and cause The low problem of video speech quality, improves the quality of video calling.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of mobile terminal and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In embodiment provided herein, it should be understood that disclosed mobile terminal and method can pass through it Its mode is realized.For example, mobile terminal embodiment described above is only schematical, for example, the division of unit, only Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be tied Another system is closed or is desirably integrated into, or some features can be ignored or not executed.Another point, it is shown or discussed Mutual coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING of mobile terminal or unit Or communication connection, it can be electrical property, mechanical or other forms.
Unit may or may not be physically separated as illustrated by the separation member, shown as a unit Component may or may not be physical unit, it can and it is in one place, or may be distributed over multiple networks On unit.It can select some or all of unit therein according to the actual needs to realize the mesh of the embodiment of the present invention 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
If function is realized in the form of SFU software functional unit and when sold or used as an independent product, can store In a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words to existing Having the part for the part or the technical solution that technology contributes can be embodied in the form of software products, the computer Software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be personal meter Calculation machine, server or network equipment etc.) execute all or part of the steps of each embodiment method of the present invention.And it is above-mentioned Storage medium includes: the various media that can store program code such as USB flash disk, mobile hard disk, ROM, RAM, magnetic or disk.
More than, only a specific embodiment of the invention, but scope of protection of the present invention is not limited thereto, and it is any to be familiar with Those skilled in the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all cover Within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (12)

1. a kind of processing method of video calling is applied to mobile terminal characterized by comprising
In video call process, obtains the network under network locating for the mobile terminal and negotiate code rate, and the detection shifting The Video coding transmission code rate of dynamic terminal;
If the Video coding transmission code rate of the mobile terminal, which is greater than the network, negotiates code rate, by the first controlled plant and second Controlled plant is alternately adjusted to first object value and the second target value, wherein first controlled plant and described second is adjusted Object is respectively video encoding quality and frame per second or first controlled plant and second controlled plant is respectively frame per second And video encoding quality;
If first controlled plant is in the first object value, and second controlled plant is in second target Value, video frame is encoded and is exported, wherein when encoding and exporting the video frame, the Video coding of video calling is passed Defeated code rate is less than or equal to the network and negotiates code rate;
Wherein, during alternately adjusting first controlled plant and second controlled plant, when completion is to described first In controlled plant and second controlled plant when adjusting of the value of a controlled plant, the current view of the mobile terminal is judged Whether frequency coding transmission code rate, which is greater than the network, is negotiated code rate, if the mobile terminal it is current Video coding transmission code rate it is big Negotiate code rate in the network, then continues to adjust another adjusting pair in first controlled plant and second controlled plant The value of elephant;If the current Video coding transmission code rate of the mobile terminal, which is less than or equal to the network, negotiates code rate, stop Only adjust.
2. the method according to claim 1, wherein described replace the first controlled plant and the second controlled plant The step of being adjusted to first object value and the second target value, comprising:
According to the first predetermined level list and the second predetermined level list, by first controlled plant and second adjusting pair As being alternately adjusted to first object grade and the second goal gradient, wherein the first predetermined level list is and described first The associated rank list of controlled plant, and the second predetermined level list is to arrange with the associated grade of second controlled plant Table;
Determine that the corresponding value of first object grade described in the first predetermined level list is the first object value;
Determine that the corresponding value of the second goal gradient described in the second predetermined level list is second target value.
3. according to the method described in claim 2, it is characterized in that, described default etc. according to the first predetermined level list and second First controlled plant and second controlled plant are alternately adjusted to first object grade and the second target etc. by grade list The step of grade, comprising:
S1, the grade of first controlled plant is adjusted to K2 grades by K1 grades, wherein described K1 grades are described first Present level of the controlled plant in described first the presets list;Described K1 grades with described K2 grades for adjacent grade or Described K1 grades and it is K2 grades described between be separated by least one grade;
S2, under described K2 grades and L1 grades, detect the current Video coding transmission code rate of the mobile terminal, and judge to examine Whether the current Video coding transmission code rate measured, which is greater than the network, is negotiated code rate, wherein described L1 grade are described the Present level of two controlled plants in described second the presets list;
If the current Video coding transmission code rate that S3, step S2 are detected is greater than the network and negotiates code rate, by described the The grade of two controlled plants is adjusted to L2 grades by L1 grades, wherein described L1 grades are adjacent grade with described L2 grades Or described L1 grades and it is L2 grades described between be separated by least one grade;
S4, at described K2 grades and under L2 grades described, the current Video coding transmission code rate of the mobile terminal is continued to test, And judge whether the current Video coding transmission code rate detected is greater than the network and negotiates code rate;
If the current Video coding transmission code rate that S5, step S4 are detected, which is greater than the network, negotiates code rate, by the K2 Grade is as described K1 grades and described L2 grades are used as described L1 grades, and re-execute the steps S1-S4;
If the current Video coding transmission code rate detected in S6, step S2 or step S4 is less than or equal to the network Transmission code rate, then by the grade of the grade of the first controlled plant obtained in step S1 or step S3 and the second controlled plant, Respectively as first object grade and the second goal gradient.
4. the method according to claim 1, wherein the video encoding quality is characterized by quantization parameter.
5. acquisition is described mobile whole the method according to claim 1, wherein described in video call process The network under locating network is held to negotiate code rate, and the step of detecting the Video coding transmission code rate of the mobile terminal, comprising:
In video call process, the network signal intensity under network locating for the mobile terminal is detected;
According to the preset relation of Network status grade and the range of network signal intensity, the network signal intensity pair that confirmly detects The Network status grade answered, wherein each Network status grade is corresponding with the range of a network signal intensity;
Negotiate the preset relation of code rate according to Network status grade and network, determination is corresponding with the network signal intensity detected The corresponding network of Network status grade negotiates code rate;
Detect the Video coding transmission code rate of the mobile terminal.
6. a kind of mobile terminal characterized by comprising
Detection module negotiates code rate in video call process, obtaining the network under network locating for the mobile terminal, with And the Video coding transmission code rate of the detection mobile terminal;
Adjustment module, if the Video coding transmission code rate for the mobile terminal, which is greater than the network, negotiates code rate, by first Controlled plant and the second controlled plant are alternately adjusted to first object value and the second target value, wherein first controlled plant It is respectively that video encoding quality and frame per second or first controlled plant and described second are adjusted with second controlled plant Object is respectively frame per second and video encoding quality;
Processing module, if being in the first object value for first controlled plant, and second controlled plant is in Second target value, video frame is encoded and is exported, wherein when encoding and exporting the video frame, video calling Video coding transmission code rate be less than or equal to the network negotiate code rate;
Wherein, during alternately adjusting first controlled plant and second controlled plant, when completion is to described first In controlled plant and second controlled plant when adjusting of the value of a controlled plant, the current view of the mobile terminal is judged Whether frequency coding transmission code rate, which is greater than the network, is negotiated code rate, if the mobile terminal it is current Video coding transmission code rate it is big Negotiate code rate in the network, then continues to adjust another adjusting pair in first controlled plant and second controlled plant The value of elephant;If the current Video coding transmission code rate of the mobile terminal, which is less than or equal to the network, negotiates code rate, stop Only adjust.
7. mobile terminal according to claim 6, which is characterized in that the adjustment module includes:
Adjust unit, for according to the first predetermined level list and the second predetermined level list, will first controlled plant with Second controlled plant is alternately adjusted to first object grade and the second goal gradient, wherein the first predetermined level column Table be with the associated rank list of the first controlled plant, and the second predetermined level list be and it is described second adjust pair As associated rank list;
First determination unit, for determining that the corresponding value of first object grade described in the first predetermined level list is first Target value;
Second determination unit, for determining that the corresponding value of the second goal gradient described in the second predetermined level list is second Target value.
8. mobile terminal according to claim 7, which is characterized in that the adjusting unit includes:
First regulator unit, for the grade of first controlled plant to be adjusted to K2 grades by K1 grades, wherein described K1 grades are present level of first controlled plant in described first the presets list;Described K1 grades and described K2 grades For adjacent grade or it is described K1 grades and it is K2 grades described between be separated by least one grade;
First detection sub-unit, for detecting the current Video coding of the mobile terminal under described K2 grades and L1 grades Transmission code rate, and judge whether the current Video coding transmission code rate detected is greater than the network and negotiates code rate, wherein institute L1 grades are stated as present level of second controlled plant in described second the presets list;
Second regulator unit, if the current Video coding transmission code rate for first detection sub-unit to detect is greater than The network negotiates code rate, the grade of second controlled plant is adjusted to L2 grades by L1 grades, wherein described L1 grades With described L2 grades for adjacent grade or it is described L1 grades and it is L2 grades described between be separated by least one grade;
Second detection sub-unit, under described K2 grade and described L2 grades, continuing to test the mobile terminal currently Video coding transmission code rate, and judge whether the current Video coding transmission code rate detected is greater than the network and negotiates code Rate;
Subelement is controlled, if the current Video coding transmission code rate for detecting is greater than the network and negotiates code rate, by institute State K2 grades as described K1 grade and it is described L2 grades conduct described L1 grades, and control first regulator unit, First detection sub-unit, second regulator unit and second detection sub-unit re-execute movement;
Subelement is determined, if the current view detected for first detection sub-unit or second detection sub-unit Frequency coding transmission code rate is less than or equal to the network transmission code rate, then by first regulator unit or described second The grade for the first controlled plant that regulator unit obtains and the grade of the second controlled plant, respectively as first object grade and Second goal gradient.
9. mobile terminal according to claim 6, which is characterized in that the video encoding quality is characterized by quantization parameter.
10. mobile terminal according to claim 6, which is characterized in that the detection module includes:
Network quality detection unit, in video call process, detecting the letter of the network under network locating for the mobile terminal Number intensity;
Network status determination unit, for the preset relationship according to the range of Network status grade and network signal intensity, really The corresponding Network status grade of the network signal intensity that regular inspection measures, wherein each Network status grade and a network signal are strong The range of degree is corresponding;
Negotiate code rate determination unit, for negotiating the preset relation of code rate according to Network status grade and network, determines and detection The corresponding network of the corresponding Network status grade of the network signal intensity arrived negotiates code rate;
Transmission code rate detection unit, for detecting the Video coding transmission code rate of the mobile terminal.
11. a kind of mobile terminal, which is characterized in that including processor, memory is stored on the memory and can be described The computer program run on processor is realized when the computer program is executed by the processor as in claim 1 to 5 The step of processing method of described in any item video callings.
12. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program realizes the place of the video calling as described in any one of claims 1 to 5 when the computer program is executed by processor The step of reason method.
CN201710731008.9A 2017-08-23 2017-08-23 A kind of processing method and mobile terminal of video calling Active CN107396028B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710731008.9A CN107396028B (en) 2017-08-23 2017-08-23 A kind of processing method and mobile terminal of video calling

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710731008.9A CN107396028B (en) 2017-08-23 2017-08-23 A kind of processing method and mobile terminal of video calling

Publications (2)

Publication Number Publication Date
CN107396028A CN107396028A (en) 2017-11-24
CN107396028B true CN107396028B (en) 2019-11-22

Family

ID=60345460

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710731008.9A Active CN107396028B (en) 2017-08-23 2017-08-23 A kind of processing method and mobile terminal of video calling

Country Status (1)

Country Link
CN (1) CN107396028B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108521609B (en) * 2018-02-27 2019-05-17 北京达佳互联信息技术有限公司 Determine the method, apparatus and terminal of pushing video type
WO2019178716A1 (en) * 2018-03-19 2019-09-26 Qualcomm Incorporated Adaptive video bitrate for power saving
CN109729296B (en) * 2019-01-02 2021-11-02 京东方科技集团股份有限公司 Signal output device, display device, and wireless transmission method for HDMI signal
CN112235307B (en) * 2020-10-16 2023-06-23 维沃移动通信有限公司 Video call method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119483A (en) * 2006-07-31 2008-02-06 联想(北京)有限公司 Source quality based video stream transmission velocity regulation means
CN102307300A (en) * 2011-08-17 2012-01-04 杭州华三通信技术有限公司 Video connection control method and equipment
CN103686227A (en) * 2012-09-17 2014-03-26 南京中兴力维软件有限公司 Method, device and system for capturing and coding audio/video of mobile terminal
CN105791735A (en) * 2014-12-24 2016-07-20 中国电信股份有限公司 Method and system for dynamically adjusting video call code streams
CN106850615A (en) * 2017-01-24 2017-06-13 华为技术有限公司 A kind of method of code rate control, relevant apparatus and system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7693157B2 (en) * 2006-04-25 2010-04-06 Microsoft Corporation Quality of service support for A/V streams
JP4762343B2 (en) * 2009-12-28 2011-08-31 株式会社東芝 Image quality adjusting apparatus and image quality adjusting method
CN101977185A (en) * 2010-10-14 2011-02-16 杭州海康威视数字技术股份有限公司 Digital video recorder in video monitoring system and network connection control method thereof
US8818171B2 (en) * 2011-08-30 2014-08-26 Kourosh Soroushian Systems and methods for encoding alternative streams of video for playback on playback devices having predetermined display aspect ratios and network connection maximum data rates
CN103763216A (en) * 2014-01-24 2014-04-30 深圳市华宝电子科技有限公司 System and method for adjusting data transmission
US20170237986A1 (en) * 2016-02-11 2017-08-17 Samsung Electronics Co., Ltd. Video encoding method and electronic device adapted thereto

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119483A (en) * 2006-07-31 2008-02-06 联想(北京)有限公司 Source quality based video stream transmission velocity regulation means
CN102307300A (en) * 2011-08-17 2012-01-04 杭州华三通信技术有限公司 Video connection control method and equipment
CN103686227A (en) * 2012-09-17 2014-03-26 南京中兴力维软件有限公司 Method, device and system for capturing and coding audio/video of mobile terminal
CN105791735A (en) * 2014-12-24 2016-07-20 中国电信股份有限公司 Method and system for dynamically adjusting video call code streams
CN106850615A (en) * 2017-01-24 2017-06-13 华为技术有限公司 A kind of method of code rate control, relevant apparatus and system

Also Published As

Publication number Publication date
CN107396028A (en) 2017-11-24

Similar Documents

Publication Publication Date Title
CN107396028B (en) A kind of processing method and mobile terminal of video calling
CN105976760B (en) A kind of brightness adjusting method and mobile terminal of terminal screen
CN107466077A (en) A kind of method for switching network and mobile terminal
CN106951141B (en) A kind of processing method and mobile terminal of icon
CN105959544B (en) A kind of image processing method and mobile terminal of mobile terminal
CN107404577B (en) A kind of image processing method, mobile terminal and computer readable storage medium
CN106096035B (en) A kind of recommended method and mobile terminal of application program
CN106648035A (en) Image resolution adjusting method and mobile terminal
CN106445235B (en) A kind of touch initial position recognition methods and mobile terminal
CN107272956A (en) A kind of display methods, mobile terminal and computer-readable recording medium
CN106354303B (en) A kind of photographic method and mobile terminal of mobile terminal
CN107154685B (en) A kind of reminding method and mobile terminal of the contraposition of wireless charging pedestal
CN107197194A (en) A kind of video call method and mobile terminal
CN107426424B (en) A kind of charge/discharge control method and mobile terminal
CN106502697B (en) A kind of method for sorting and mobile terminal of desktop application icon
CN107509030A (en) A kind of focusing method and mobile terminal
CN107819922B (en) A kind of relaying method of adjustment, wireless headset and the mobile terminal of wireless headset
CN106208206A (en) A kind of wireless charging method and mobile terminal
CN107194907B (en) A kind of screenshot synthetic method and mobile terminal
CN106375576B (en) A kind of voice-frequency channel control method and mobile terminal
CN107295218B (en) A kind of image processing method and mobile terminal
CN106406433B (en) A kind of brightness control system
CN107371202B (en) A kind of method and mobile terminal of mobile terminal gravity treatment LTE cell
CN107360345B (en) A kind of processing method and mobile terminal of image data
CN106530233A (en) Picture splicing method and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant