CN105491461B - A kind of video transmission method - Google Patents

A kind of video transmission method Download PDF

Info

Publication number
CN105491461B
CN105491461B CN201410532362.5A CN201410532362A CN105491461B CN 105491461 B CN105491461 B CN 105491461B CN 201410532362 A CN201410532362 A CN 201410532362A CN 105491461 B CN105491461 B CN 105491461B
Authority
CN
China
Prior art keywords
current
frame
rate
target
pred
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
CN201410532362.5A
Other languages
Chinese (zh)
Other versions
CN105491461A (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.)
TD Tech Ltd
Original Assignee
TD Tech 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 TD Tech Ltd filed Critical TD Tech Ltd
Priority to CN201410532362.5A priority Critical patent/CN105491461B/en
Publication of CN105491461A publication Critical patent/CN105491461A/en
Application granted granted Critical
Publication of CN105491461B publication Critical patent/CN105491461B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

This application discloses a kind of video transmission methods, including:Corresponding benchmark code rate and lowest bit rate are set for every kind of resolution format in advance, corresponding benchmark frame per second and minimum frame per second are set for the rate travel of different stage.The periodically current maximum traffic rate CR for eating dishes without rice or wine to support of monitoringUU_Current, and it is being unable to satisfy CRUU_CurrentWhen the demand of current code rate, according to lowest bit rate, current code rate and the CR under current video formatUU_CurrentRelationship, to resolution ratio, code rate and frame per second carry out structure adjusting.Using the application, appropriate adjustment can be carried out to transmission of video, to reduce the influence for transmitted video to the greatest extent to greatest extent using the remaining bandwidth eated dishes without rice or wine.

Description

A kind of video transmission method
Technical field
This application involves the communication technology, in particular to a kind of video transmission method.
Background technique
With the rapid development of wireless technology, wireless application scene constantly extends, and more and more fields are needed using nothing Line networking is transmitted to complete corresponding information, including data service, voice service etc., especially utilizes nothing in some specialized fields Line+wired mixing or independence networking carry out scene monitoring, real-time video transmission etc..And a root problem of wireless network is With covering, capacity, interference variation, transmittability can change, need to examine in practical application especially mobile context Consider influence of such variation to institute's transmission services.
In the prior art, for the transmission of video under mobile condition, individually adjusting resolution ratio will affect certain large screens The display effect of scene;Individually adjusting frame per second will affect fluency under certain mobile contexts, and individually adjusting code rate will appear biography Defeated information content is unsatisfactory for the requirement of the clarity under given resolution.Therefore under wireless scene, integrated survey user personality is needed, is moved State selects suitable Developing Tactics transmission of video, to meet transmission demand to greatest extent.
Summary of the invention
The application provides a kind of video transmission method, can rationally carry out the adjustment of transmission of video, to the greatest extent under wireless scene Amount reduces the influence for transmitted video.
To achieve the above object, the application adopts the following technical scheme that:
A kind of video transmission method, including:
Corresponding benchmark code rate and lowest bit rate are set for every kind of resolution format in advance, for the movement of different stage Corresponding benchmark frame per second and minimum frame per second is arranged in rate;
The current code rate of video is transmitted in the periodical current rate travel for monitoring mobile device, mobile device CRCurrent_m, current resolution format m and currently eat dishes without rice or wine support maximum traffic rate CRUU_Current;It determines described when Forward The dynamic corresponding benchmark frame per second F of rateBase_n
As the CRUU_CurrentMeet the lowest bit rate CR under current video format m described in conditionMin_m≤CRUU_Current< CRCurrent_mWhen, the target frame rate of the transmission video is reduced until the corresponding minimum frame per second F of current rate travelMin_n, and will Target bit rate is set as the CRUU_Current, maintain resolution format constant;
As the CRUU_CurrentMeet condition C RUU_Current<CRMin_mWhen, by the target resolution lattice of the transmission video Formula is reduced to benchmark code rate closest to CRUU_CurrentResolution format m', and determine corresponding target bit rate and target frame rate;
The target resolution format, target bit rate and target frame rate are sent to the transmission video by the mobile device Receiving end, if the receiving end feedback support issue each target value, by it is described transmission video resolution format, code Rate and frame per second adjust separately as corresponding target value;Otherwise, the code rate of the transmission video is adjusted to min [CRUU_Current, CRMin_m];
Transmission of video is carried out according to resolution format adjusted, code rate and frame per second.
Preferably, keeping the frame per second of I frame constant when reducing the target frame rate, reducing the frame per second of non-I frame.
Preferably, the target frame rate for reducing the transmission video is until the corresponding minimum frame per second of current rate travel FMin_nIncluding:
Calculate prediction frame per second
FPred=1+ (CRUU_Current-(CRCurrent_I_frame+ΔCRI_Compensate))/CRPred_PB_frame+Δ FCompensate;If the prediction frame per second FPredThe corresponding minimum frame per second F of the current rate travel of >=mobile deviceMin_n, then The target frame rate of the transmission video is set as the prediction frame per second;If the prediction frame per second FPred<FMin_n, then by the biography The target frame rate of defeated video is set as FMin_n
Wherein, CRPred_PB_frame=(CRCurrent_m-CRCurrent_I_frame)/((FCurrent*ΔTI_Frame) -1), CRCurrent_I_frameFor current resolution current frame rate FCurrentThe Mean Speed of lower I frame, Δ TI_FrameFor the time of I frame period Length, Δ CRI_CompensateFor I frame code rate offset, Δ FCompensateFor frame per second offset.
Preferably, the target resolution format that will transmit video is reduced to benchmark code rate closest to CRUU_Current's Resolution format m' simultaneously determines corresponding target bit rate and target frame rate includes:
In benchmark code rate≤CRUU_CurrentResolution format in select optimal resolution format m', by the transmission The target resolution Format adjusting of video is m', and target frame rate is set as the corresponding benchmark frame per second of the present rate, will Target bit rate is set as the benchmark code rate under the resolution format m ';Benchmark code rate≤CR if it does not existUU_CurrentResolution Rate format is then meeting condition minimum code rate<CRUU_Current<Optimal resolution ratio is selected in the resolution format of benchmark code rate Format m', the target resolution Format adjusting by the transmission video is m', and target bit rate is set as CRUU_Current, and root According to the CRUU_CurrentMinimum frame per second corresponding with the current rate travel reduces target frame rate.
Preferably, keeping the frame per second of I frame constant when reducing the target frame rate, reducing the frame per second of non-I frame.
Preferably, benchmark code rate≤CR if it does not existUU_CurrentResolution format, then the reduction target frame rate packet It includes:
The target frame rate is set as to predict frame per second FPred=Max [FPred',FMin_n];Wherein, FPred'=1+ (CRUU_Current-(CRCurrent_I_frame+ΔCRI_Compensate))/CRPred_PB_frame+ΔFCompensate, CRPred_PB_frame= (CRUU_Current-CRCurrent_I_frame)/((FBase_n*ΔTI_Frame) -1), CRCurrent_I_frameFor current resolution current frame rate FCurrentThe Mean Speed of lower I frame, Δ TI_FrameFor the time span of I frame period, Δ CRI_CompensateFor I frame code rate offset, ΔFCompensateFor frame per second offset.
Preferably, working as the CRUU_CurrentMeet condition C RUU_Current>CRCurrent_mWhen, this method further comprises:
If current frame rate FCurrent<FBase_n, then keep resolution format constant, target bit rate be set as Min [CRUU_Current,CRBase_m], and according to the CRUU_CurrentBenchmark frame per second corresponding with the current rate travel calculates target Frame per second;
If current frame rate FCurrent=FBase_nAnd CRUU_CurrentBenchmark code rate CR under≤current resolution formatBase_m, It then keeps resolution format and frame per second constant, target bit rate is set as Min [CRUU_Current,CRBase_m];
If current frame rate FCurrent=FBase_nAndCRUU_Current>CRBase_m, then it is m+1 by target resolution format setting, Target bit rate is set as Min [CRUU_Current,CRMax_m+1], and according to CRUU_CurrentIt is corresponding with the current rate travel Benchmark frame per second calculates target frame rate.
Preferably, keeping the frame per second of I frame constant when calculating the target frame rate.
Preferably, if current frame rate FCurrent<FBase_n, the calculating target frame rate is:FPred=Min [FPred,FMax_n]; Wherein,
FPred=1+ (CRUU_Current-(CRCurrent_I_frame+ΔCRI_Compensate))/CRPred_PB_frame+Δ FCompensate, CRPred_PB_frame=(CRUU_Current-CRCurrent_I_frame)/((FCurrent*ΔTI_Frame) -1), CRCurrent_I_frameFor current resolution current frame rate FCurrentThe Mean Speed of lower I frame, Δ CRI_CompensateFor I frame code rate benefit Repay value, Δ FCompensateFor frame per second offset, FCurrentFor the current frame rate of the transmission video, FMax_nWork as to be pre-set The corresponding maximum frame per second of preceding rate travel.
Preferably, if current frame rate FCurrent=FBase_nAnd CRUU_Current>CRBase_m, the calculating target frame rate is: FPred=Min [FPred,FMax_n];Wherein,
CRPred_PB_frame=(CRUU_Current-CRCurrent_I_frame)/((FBase_n*ΔTI_Frame) -1), CRCurrent_I_frameFor current resolution current frame rate FCurrentThe Mean Speed of lower I frame, Δ CRI_CompensateFor I frame code rate benefit Repay value, Δ FCompensateFor frame per second offset, FMax_nFor the corresponding maximum frame per second of pre-set current rate travel.
Preferably, the mobile device is by the SPS mechanism of codec or SIP signaling by the target resolution lattice Formula, target bit rate and target frame rate are sent to the receiving end of the transmission video.
Preferably, this method further comprises:Before transmitting video, the mobile device is sent certainly to the receiving end The resolution format and frame per second that body is supported, and receive the resolution format and frame per second of the receiving end support of the receiving end feedback.
As seen from the above technical solution, in the application, corresponding benchmark code rate is set for every kind of resolution format in advance And lowest bit rate, for the rate travel of different stage, corresponding benchmark frame per second and minimum frame per second are set.Periodically monitoring is current Eat dishes without rice or wine the maximum traffic rate CR supportedUU_Current, and it is being unable to satisfy CRUU_CurrentWhen the demand of current code rate, according to current Lowest bit rate, current code rate and CR under video formatUU_CurrentRelationship, comprehensive tune is carried out to resolution ratio, code rate and frame per second It is whole, to adapt transmission of video to the maximum traffic rate CR for currently eating dishes without rice or wine to supportUU_Current.To utilize sky to greatest extent The remaining bandwidth of mouth carries out appropriate adjustment to transmission of video, to reduce the influence for transmitted video to the greatest extent.
Detailed description of the invention
Fig. 1 is the basic procedure schematic diagram of video transmission method in the application.
Specific embodiment
In order to which the purpose, technological means and advantage of the application is more clearly understood, the application is done below in conjunction with attached drawing It is further described.
Under wireless transmission environments, when the remaining bandwidth eated dishes without rice or wine can not support the target bit rate of current video stream, need into The adjustment of row transmission of video, which needs to save and is adapted to interface-free resources, while guaranteeing video transmission quality.In the application, Adjustment process follows following principle:
According to user, current practical rate travel determines current frame per second adjusting range;
Frame per second is preferentially reduced, reaching does not influence fluency, is adapted to ability of eating dishes without rice or wine, and guarantees clarity;
When frame per second is minimized, resolution ratio is maintained, preferentially adjusts code rate, is adapted to ability of eating dishes without rice or wine;
Frame per second, which is minimized, adjusts code rate is still not enough to match ability of eating dishes without rice or wine, and reduces resolution ratio, and adjust frame per second simultaneously And code rate;
It eats dishes without rice or wine capability improving, preferentially improves frame per second, guarantee to stablize transmission;
It eats dishes without rice or wine capability improving, frame per second reaches maximum, promotes resolution ratio.
The video transmission method in the application is described in detail below.
Fig. 1 is the basic procedure schematic diagram of video transmission method in the application.As shown in Figure 1, this method includes:
Step 101, corresponding benchmark code rate and lowest bit rate are set for every kind of resolution format in advance, for not at the same level Corresponding benchmark frame per second and minimum frame per second is arranged in other rate travel.
In this step, rate travel is classified, corresponding benchmark frame per second and most under different stage rate travel is set Small frame per second requirement.Specifically, N can be setVelocityGrade rate travel thresholding VThred_n, rate threshold increases V step by stepThred_n-1 <=VThred_n;Mobile subscriber in corresponding each rank, is arranged benchmark frame per second FBase_n, as allow under the same level rate travel Adjust to maximum frame per second, benchmark frame per second increases F step by stepBase_n-1<=FBase_n;Mobile subscriber in corresponding each rank, if Set minimum frame per second FMin_n, i.e., allow to adjust under the same level rate travel to minimum frame per second, minimum frame per second increases F step by stepMin_n-1< =FMin_n, the minimum frame per second with level-one should be no more than benchmark frame per second FMin_n<=FBase_n.One is defined for all rate travels A initial frame per second is FInit.Wherein, n ∈ [1, NVelocity].Furthermore it is preferred that the shifting of each rank can also be corresponded to further Corresponding maximum frame per second F is arranged in dynamic rateMax_n, in general, FBase_n<=FMax_n
It is required according to current scene and capacity of equipment (being obtained by SIP signaling negotiation) confirms available resolution format, And the benchmark code rate under each format and minimum code rate requirement are set.Wherein, available resolution format can be sent by video The signaling negotiation between receiving end is held to determine.It is assumed that determining MResolutionA video resolution format, from 1 to MResolution, Resolution ratio is gradually increased;In initial frame per second FInitUnder, define the benchmark code rate CR of each resolution format mBase_mAnd meets and be somebody's turn to do The minimum code rate CR of resolution ratio clarity demandMin_m, wherein m ∈ [1, MResolution].Here, benchmark code rate, which can be, meets phase It answers resolution ratio clarity and is not in the code rate of blocking artifact.Resolution format is from 1 to MResolution, the more big corresponding view of m Frequency clarity is higher, and code rate requires higher;Under same resolution ratio, CRMin_m<=CRBase_m.Wherein, scene can be according to reality Classify.
When transmission of video starts, need to initialize the relevant parameter of transmission of video.Initial resolution can be The specified resolution ratio of current scene, initial bit rate are the corresponding benchmark code rate of current rate travel, i.e. CRInit_m=CRBase_m, just Beginning frame per second is FInitFrame/s.The time span Δ T of initial I frame periodI_FrameS, it is preferable that maintain I frame period during the adjustment Duration is constant.
In an initial condition, it can not know the condition of eating dishes without rice or wine, at this moment non-I frame average bit rate is estimated as follows:
The time span Δ T of I frame periodI_FrameIn the case that s is constant, drop frame per second mainly reduces P frame and B frame, then closely It is about like the single video frame Mean Speed for calculating non-I frame:
CRPred_PB_frame=(CRCurrent-CRCurrent_I_frame)/((FCurrent*ΔTI_Frame) -1), wherein CRCurrent_I_frameFor the Mean Speed of I frame under current resolution current frame rate, can be obtained by data statistics.
Next, in real-time video transmission, it can be by the processing of step 102~107, according to condition week of currently eating dishes without rice or wine Carry out to phase property the adjustment of transmission of video.
Step 102, the current rate travel of cycle monitoring mobile device, video is transmitted in mobile device current code rate, The current resolution format m and maximum traffic rate CR supported that eats dishes without rice or wineUU_Current
During carrying out transmission of video, the current rate travel for sending the mobile device of video is periodically monitored VCurrent, currently eat dishes without rice or wine available bandwidth CRUU_Current', the business code rate under current video resolution format and the resolution format CRCurrent_m
Further, according to the corresponding relationship and current rate travel being arranged in step 101, current rate travel institute is determined In the corresponding benchmark code rate of rank and lowest bit rate.To the available bandwidth CR that eats dishes without rice or wineUU_Current' carry out conversion determination currently eat dishes without rice or wine to prop up The maximum traffic rate CR heldUU_Current=CRUU_Current' * (1-1/K), wherein K is commutation factor.
After the maximum traffic rate for determining to eat dishes without rice or wine to support, rate CR may find thatUU_CurrentIt can not support to pass The current code rate CR of defeated videoCurrent_m, i.e. CRUU_Current<CRCurrent_m, then it represents that it eats dishes without rice or wine to deteriorate, be adjusted It is whole.According to CRUU_CurrentWith the lowest bit rate CR under current video format mMin_mRelationship, can be using step 103 and 104 Processing is adjusted.
Step 103, work as CRMin_m≤CRUU_Current<CRCurrent_mWhen, the target frame rate of transmission video is reduced until current The corresponding minimum frame per second F of rate travelMin_n, and target bit rate is set as CRUU_Current, maintain resolution format constant.
When being specifically adjusted, target bit rate, target frame rate and target resolution lattice are determined according to the present situation first Formula, then transmitting terminal and receiving end are negotiated, if can support corresponding target value, if receiving end is agreed to, both sides according to The adjustment of target value progress current video transmission;If receiving end is refused, code rate is individually adjusted.Therefore, this step and step Processing in 104 is the processing of determining target value.
In this step 103, CRUU_CurrentMeet condition C RMin_m≤CRUU_Current<CRCurrent_m, then show current sky Although a mouthful rate cannot support current code rate, the lowest bit rate under current resolution format can be supported, in this condition Under, resolution format can be kept constant, setting target bit rate is the maximum traffic rate CR for eating dishes without rice or wine to supportUU_Current, reduce Target frame rate.Specifically, target frame rate can be preferentially reduced, under the premise of holding does not influence fluency, is adapted to air interface transmission energy Power sets CR for code rateUU_Current, guarantee clarity;When eating dishes without rice or wine constantly to deteriorate, i.e. CRUU_CurrentIt, can when continuing to reduce To continue to reduce target frame rate, until target frame rate is adjusted to the corresponding minimum frame per second of current rate travel.Preferably, it is dropping When low target frame per second, keeps the frame per second of I frame constant, reduce the frame per second of non-I frame.
In more detail, when reducing target frame rate, prediction frame per second is calculated first:
FPred=1+ (CRUU_Current-(CRCurrent_I_frame+ΔCRI_Compensate))/CRPred_PB_frame+Δ FCompensate, wherein CRCurrent_I_frameFor current resolution current frame rate FCurrentThe Mean Speed of lower I frame, Δ TI_FrameFor The time span of I frame period, Δ CRI_CompensateFor I frame code rate offset, Δ FCompensateFor frame per second offset.Δ CRI_CompensateWith Δ FCompensateIt is preset value, it is preferable that can be and adjustment is optimized according to emulation or measured value;Just Initial value can be set to 0.
If predicting frame per second FPredThe corresponding minimum frame per second F of >=current rate travelMin_n, then it is pre- target frame rate to be set as this Survey frame per second FPred;If predicting frame per second FPred<FMin_n, then target frame rate is set as FMin_n
Step 104, work as CRUU_Current<CRMin_mWhen, the target resolution format for transmitting video is reduced to benchmark code rate Closest to CRUU_CurrentResolution format m', and determine corresponding target bit rate and target frame rate.
Work as CRUU_Current<CRMin_mWhen, illustrate that current resolution format can no longer meet transmission demand, it is necessary to which drop is differentiated Rate format;After lowering resolution format, whole code rate can be reduced, to guarantee the preferable quality under current resolution format, In the supported situation of bandwidth of air-interface, as far as possible using the benchmark frame per second and code rate under current code rate.
In more detail, in benchmark code rate≤CRUU_CurrentResolution format in select optimal resolution format m', will Target resolution Format adjusting is m', and using the corresponding benchmark frame per second of current rate travel as target frame rate, by resolution ratio lattice Benchmark code rate under formula m ' is as target bit rate.Wherein, timing under resolution format is carried out, can be lowered step by step, in this way when looking for To first benchmark code rate≤CRUU_CurrentResolution format be m'.
Benchmark code rate≤CR if it does not existUU_CurrentResolution format, then in the minimum code rate of resolution format< CRUU_Current<Optimal resolution format m' is selected in the resolution format of the benchmark code rate of resolution format, and target is differentiated Rate Format adjusting is m', and target bit rate is set as CRUU_Current, and according to CRUU_CurrentIt is corresponding with current rate travel most Small frame per second reduces target frame rate.Wherein, timing under resolution format is carried out, can be lowered step by step, it is full when finding first in this way Sufficient condition minimum code rate<CRUU_Current<The resolution format of benchmark code rate is m'.When calculating target frame rate, it is preferable that Keep the frame per second of I frame constant.
In more detail, prediction frame per second F is calculatedPredWhen, and using the prediction frame per second as target frame rate.Wherein, frame per second is predicted FPred=Max [FPred',FMin_n];
Wherein, FPred'=1+ (CRUU_Current-(CRCurrent_I_frame+ΔCRI_Compensate))/CRPred_PB_frame+Δ FCompensate, CRPred_PB_frame=(CRUU_Current-CRCurrent_I_frame)/((FBase_n*ΔTI_Frame) -1), FBase_nTo work as The corresponding benchmark frame per second of preceding rate travel.
Step 105, the target frame rate determined, target bit rate and target resolution are sent to reception by video sending end End.
Step 106, transmitting terminal receives the feedback of receiving end, when receiving end, which is fed back, to be supported, by the frame per second of transmission of video, code Rate and resolution format are adjusted to corresponding target value;When receive feedback do not support or failure when, keep resolution format and Frame per second is constant, and code rate is adjusted to min [CRUU_Current,CRMin_m]。
In the processing of above-mentioned steps 105~106, the interaction of transmitting terminal and receiving end can use the SPS machine of codec System is to realize.It is preferred that the processing of step 105~106 can also be realized by SIP signaling.
Step 107, transmitting terminal carries out transmission of video according to resolution format adjusted, frame per second and code rate.
So far, video transmission method process basic in the application terminates.Above-mentioned process be by taking a monitoring cycle as an example, Introduce when eat dishes without rice or wine worsening condition when, the adjustment process of transmission of video.On the basis of above-mentioned basic procedure, based on each monitoring week The condition of eating dishes without rice or wine of phase monitoring can also continue to gradually adjust frame per second, code rate and resolution ratio lattice after condition recovery is eated dishes without rice or wine in discovery Formula, to obtain more high quality transmission video.
During carrying out the up-regulation of transmission video relevant parameter, in order to avoid the influence for fluctuation of eating dishes without rice or wine, lowered in reduction Stringenter, the adjustment without leapfrog resolution format is relatively lowered in whole table tennis, up-regulation;Every class resolution ratio format is guaranteeing currently Carry out the upward adjustment of resolution format under resolution format in the case where maximal rate maximum frame rate stable again.
Specifically, condition recovery of eating dishes without rice or wine is found in periodical monitoring process, that is, determines CRUU_CurrentMeet condition CRUU_Current>CRCurrent_mAfterwards, it can correspondingly be adjusted according to current frame rate and code rate:
If 1) current frame rate FCurrent<Current rate travel FBase_n, then target frame rate is adjusted, and do not reach movement in frame per second Before the corresponding maximum frame per second of rate, without leapfrog resolution adjustment.Specifically, keep resolution format constant, by object code Rate is set as Min [CRUU_Current,CRBase_m], and according to CRUU_CurrentBenchmark frame per second corresponding with current rate travel calculates Target frame rate;Keep the frame per second of I frame constant when wherein target frame rate calculates, calculating target frame rate is the frame for calculating and eating dishes without rice or wine to support Rate:FPred=Min [FPred,FMax_n];Wherein,
FPred=1+ (CRUU_Current-(CRCurrent_I_frame+ΔCRI_Compensate))/CRPred_PB_frame+Δ FCompensate, CRPred_PB_frame=(CRUU_Current-CRCurrent_I_frame)/((FCurrent*ΔTI_Frame)-1).In above formula, FMax_nFor the corresponding maximum frame per second of current rate travel being preferably provided in abovementioned steps 101.
If 2) current frame rate FCurrent=FBase_nAnd CRUU_CurrentBenchmark code rate under≤current resolution format CRBase_m, then keep resolution format and frame per second constant, target bit rate be only set as Min [CRUU_Current,CRBase_m];
If 3) current frame rate FCurrent=FBase_nAnd CRUU_Current>CRBase_m, then it needs to raise resolution format, it will Target resolution format setting is m+1, and target bit rate is set as Min [CRUU_Current,CRMax_m+1], and according to CRUU_Current Benchmark frame per second corresponding with current rate travel calculates target frame rate.Keep the frame per second of I frame constant when wherein target frame rate calculates, Calculate target frame rate FPred=Min [FPred,FMax_n];Wherein,
CRPred_PB_frame=(CRUU_Current-CRCurrent_I_frame)/((FBase_n*ΔTI_Frame)-1).In above formula, FMax_n For the corresponding maximum frame per second of current rate travel being preferably provided in abovementioned steps 101.
After determining target bit rate, target frame rate and target resolution format in the manner described above, it can continue to execute The processing of step 105~107 carries out transmission of video.
In addition, as previously mentioned, the transmission of video adjustment process after above-mentioned eat dishes without rice or wine worsening condition or recovery of eating dishes without rice or wine is with one It is illustrated for the processing of monitoring cycle.In actual video transmission services, when business is initially set up, it can send Capability negotiation, the supported resolution ratio in confirmation both ends and frame per second are carried out between end and receiving end, in the adjustment of subsequent video transmission In the process, selection adjustment can be carried out in the resolution ratio and frame per second that both sides support.Concrete ability negotiations process can be:
1) transmitting terminal, which is sent by SIP signaling etc. to receiving end, negotiates request, carries resolution ratio and frame that transmitting terminal is supported Rate;2) transmitting terminal receives the negotiation response of receiving end feedback by SIP signaling etc., can carry receiving end support in the response Resolution ratio and frame per second.In this way, transmitting-receiving both ends can confirm the resolution ratio and frame per second that both sides support jointly.
Above-mentioned is the specific implementation of video transmission method in the application.It, can be according to real-time change by above-mentioned processing Condition of eating dishes without rice or wine, structure adjusting frame per second, code rate and resolution ratio, to greatest extent using the remaining bandwidth eated dishes without rice or wine, to transmission of video into Row appropriate adjustment, to reduce the influence for transmitted video to the greatest extent.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the present invention.

Claims (12)

1. a kind of video transmission method, which is characterized in that including:
Corresponding benchmark code rate and lowest bit rate are set for every kind of resolution format in advance, for the rate travel of different stage Corresponding benchmark frame per second and minimum frame per second are set;
The current code rate CR of video is transmitted in the periodical current rate travel for monitoring mobile device, mobile deviceCurrent_m, when The preceding resolution format m and maximum traffic rate CR supported that currently eats dishes without rice or wineUU_Current;Determine that the current rate travel is corresponding Benchmark frame per second FBase_n
As the CRUU_CurrentMeet the lowest bit rate CR under current resolution format m described in conditionMin_m≤CRUU_Current< CRCurrent_mWhen, the target frame rate of the transmission video is reduced until the corresponding minimum frame per second F of current rate travelMin_n, and will Target bit rate is set as the CRUU_Current, maintain resolution format constant;
As the CRUU_CurrentMeet condition C RUU_Current<CRMin_mWhen, the target resolution format of the transmission video is dropped Low is benchmark code rate closest to CRUU_CurrentResolution format m', and determine corresponding target bit rate and target frame rate;
The target resolution format, target bit rate and target frame rate are sent to connecing for the transmission video by the mobile device Receiving end, if receiving end feedback supports each target value issued, by the transmission resolution format of video, code rate and Frame per second adjusts separately as corresponding target value;Otherwise, the code rate of the transmission video is adjusted to min [CRUU_Current, CRMin_m], keep resolution format and frame per second constant;
Transmission of video is carried out according to resolution format adjusted, code rate and frame per second.
2. the method according to claim 1, wherein keeping the frame per second of I frame not when reducing the target frame rate Become, reduces the frame per second of non-I frame.
3. according to the method described in claim 2, it is characterized in that, the target frame rate for reducing the transmission video is until working as The corresponding minimum frame per second F of preceding rate travelMin_nIncluding:
Calculate prediction frame per second
FPred=1+ (CRUU_Current-(CRCurrent_I_frame+△CRI_Compensate))/CRPred_PB_frame+△FCompensate;If institute State prediction frame per second FPredThe corresponding minimum frame per second F of the current rate travel of >=mobile deviceMin_n, then by the transmission video Target frame rate be set as the prediction frame per second;If the prediction frame per second FPred<FMin_n, then by the target frame of the transmission video Rate is set as FMin_n
Wherein, CRPred_PB_frame=(CRCurrent_m-CRCurrent_I_frame)/((FCurrent*△TI_Frame) -1), CRCurrent_I_frameFor current resolution current frame rate FCurrentThe Mean Speed of lower I frame, △ TI_FrameFor the time of I frame period Length, △ CRI_CompensateFor I frame code rate offset, △ FCompensateFor frame per second offset.
4. the method according to claim 1, wherein the target resolution format that will transmit video is reduced to Benchmark code rate is closest to CRUU_CurrentResolution format m' and determine corresponding target bit rate and target frame rate includes:
In benchmark code rate≤CRUU_CurrentResolution format in select optimal resolution format m', by the transmission video Target resolution Format adjusting is m', and target frame rate is set as the corresponding benchmark frame per second of the current rate travel, by mesh Coding rate is set as the benchmark code rate under the resolution format m ';Benchmark code rate≤CR if it does not existUU_CurrentResolution ratio Format is then meeting condition lowest bit rate<CRUU_Current<Optimal resolution ratio lattice are selected in the resolution format of benchmark code rate Formula m', the target resolution Format adjusting by the transmission video is m', and target bit rate is set as CRUU_Current, and according to The CRUU_CurrentMinimum frame per second corresponding with the current rate travel reduces target frame rate.
5. according to the method described in claim 4, it is characterized in that, keeping the frame per second of I frame not when reducing the target frame rate Become, reduces the frame per second of non-I frame.
6. according to the method described in claim 5, it is characterized in that, benchmark code rate≤CR if it does not existUU_CurrentResolution ratio lattice Formula, then the reduction target frame rate include:
The target frame rate is set as to predict frame per second FPred=Max [FPred',FMin_n];Wherein, FPred'=1+ (CRUU_Current-(CRCurrent_I_frame+△CRI_Compensate))/CRPred_PB_frame+△FCompensate, CRPred_PB_frame= (CRUU_Current-CRCurrent_I_frame)/((FBase_n*△TI_Frame) -1), CRCurrent_I_frameFor current resolution current frame rate FCurrentThe Mean Speed of lower I frame, △ TI_FrameFor the time span of I frame period, △ CRI_CompensateFor I frame code rate offset, △FCompensateFor frame per second offset.
7. the method according to claim 1, wherein working as the CRUU_CurrentMeet condition C RUU_Current> CRCurrent_mWhen, this method further comprises:
If current frame rate FCurrent<FBase_n, then keep resolution format constant, target bit rate be set as Min [CRUU_Current, CRBase_m], and according to the CRUU_CurrentBenchmark frame per second corresponding with the current rate travel calculates target frame rate;
If current frame rate FCurrent=FBase_nAnd CRUU_CurrentBenchmark code rate CR under≤current resolution formatBase_m, then protect It holds resolution format and frame per second is constant, target bit rate is set as Min [CRUU_Current,CRBase_m];
If current frame rate FCurrent=FBase_nAnd CRUU_Current>CRBase_m, then it is m+1 by target resolution format setting, by mesh Coding rate is set as Min [CRUU_Current,CRMax_m+1], and according to CRUU_CurrentBenchmark corresponding with the current rate travel Frame per second calculates target frame rate;
Wherein, the resolution ratio resolution format m of resolution format m+1 increases level-one, CRMax_m+1Indicate m+1 pairs of resolution format The maximal rate answered.
8. the method according to the description of claim 7 is characterized in that keeping the frame per second of I frame not when calculating the target frame rate Become.
9. according to the method described in claim 8, it is characterized in that, if current frame rate FCurrent<FBase_n, the calculating target frame Rate is:FPred=Min [FPred,FMax_n];Wherein,
FPred=1+ (CRUU_Current-(CRCurrent_I_frame+△CRI_Compensate))/CRPred_PB_frame+△FCompensate, CRPred_PB_frame=(CRUU_Current-CRCurrent_I_frame)/((FCurrent*△TI_Frame) -1), CRCurrent_I_frameIt is current Resolution ratio current frame rate FCurrentThe Mean Speed of lower I frame, △ CRI_CompensateFor I frame code rate offset, △ FCompensateFor frame Rate offset, FCurrentFor the current frame rate of the transmission video, FMax_nIt is corresponding most for pre-set current rate travel Big frame per second, △ TI_FrameFor the time span of I frame period.
10. according to the method described in claim 8, it is characterized in that, if current frame rate FCurrent=FBase_nAnd CRUU_Current> CRBase_m, the calculating target frame rate is:FPred=Min [FPred,FMax_n];Wherein,
FPred=1+ (CRUU_Current-(CRCurrent_I_frame+△CRI_Compensate))/CRPred_PB_frame+△FCompensate, CRPred_PB_frame=(CRUU_Current-CRCurrent_I_frame)/((FBase_n*△TI_Frame) -1), CRCurrent_I_frameIt is current Resolution ratio current frame rate FCurrentThe Mean Speed of lower I frame, △ CRI_CompensateFor I frame code rate offset, △ FCompensateFor frame Rate offset, FMax_nFor the corresponding maximum frame per second of pre-set current rate travel, △ TI_FrameTime for I frame period is long Degree, FPredFor target frame rate.
11. according to claim 1 to any method in 10, which is characterized in that the mobile device passes through codec SPS mechanism or SIP signaling the target resolution format, target bit rate and target frame rate be sent to the transmission video Receiving end.
12. according to the method for claim 11, which is characterized in that this method further comprises:Before transmitting video, institute It states mobile device and sends the resolution format and frame per second that itself is supported to the receiving end, and receive connecing for the receiving end feedback The resolution format and frame per second that receiving end is supported.
CN201410532362.5A 2014-10-11 2014-10-11 A kind of video transmission method Active CN105491461B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410532362.5A CN105491461B (en) 2014-10-11 2014-10-11 A kind of video transmission method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410532362.5A CN105491461B (en) 2014-10-11 2014-10-11 A kind of video transmission method

Publications (2)

Publication Number Publication Date
CN105491461A CN105491461A (en) 2016-04-13
CN105491461B true CN105491461B (en) 2018-11-20

Family

ID=55678117

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410532362.5A Active CN105491461B (en) 2014-10-11 2014-10-11 A kind of video transmission method

Country Status (1)

Country Link
CN (1) CN105491461B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106658058B (en) * 2016-10-13 2019-12-13 厦门蓝斯通信股份有限公司 video sending rate synchronization management method and management system based on multiple clients
CN106817588B (en) * 2017-02-06 2019-07-05 网宿科技股份有限公司 Transcoding control method and device, net cast method and system
JP7059662B2 (en) * 2018-02-02 2022-04-26 トヨタ自動車株式会社 Remote control system and its communication method
WO2020062134A1 (en) * 2018-09-29 2020-04-02 深圳市大疆创新科技有限公司 Method for adjusting image transmission resolution ratio, image photographing device, machine readable storage medium
CN109348244B (en) * 2018-11-20 2021-05-18 浙江齐聚科技有限公司 Method, device, equipment and storage medium for configuring video coding parameters
CN109819333B (en) * 2019-01-10 2021-05-07 广州视源电子科技股份有限公司 Video stream code rate allocation method and device and computer readable storage medium
CN110234023A (en) * 2019-02-22 2019-09-13 华为技术有限公司 A kind of method and apparatus handling video traffic
CN110505501B (en) * 2019-08-28 2021-12-07 咪咕视讯科技有限公司 Information processing method, electronic device, and computer-readable storage medium
CN110912922B (en) * 2019-12-03 2022-09-16 锐捷网络股份有限公司 Image transmission method and device, electronic equipment and storage medium
CN113050906A (en) 2019-12-26 2021-06-29 深圳市万普拉斯科技有限公司 Frame rate adjusting method and device of display screen, terminal and storage medium

Citations (3)

* 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
CN101365125A (en) * 2008-09-27 2009-02-11 腾讯科技(深圳)有限公司 Multipath video communication method and system
CN103686227A (en) * 2012-09-17 2014-03-26 南京中兴力维软件有限公司 Method, device and system for capturing and coding audio/video of mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8947492B2 (en) * 2010-06-18 2015-02-03 Microsoft Corporation Combining multiple bit rate and scalable video coding

Patent Citations (3)

* 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
CN101365125A (en) * 2008-09-27 2009-02-11 腾讯科技(深圳)有限公司 Multipath video communication method and system
CN103686227A (en) * 2012-09-17 2014-03-26 南京中兴力维软件有限公司 Method, device and system for capturing and coding audio/video of mobile terminal

Also Published As

Publication number Publication date
CN105491461A (en) 2016-04-13

Similar Documents

Publication Publication Date Title
CN105491461B (en) A kind of video transmission method
CN105025249B (en) Video monitoring data transfer control method, device and video monitoring system
US9706565B2 (en) Method and device for video transmission
KR101645955B1 (en) Improving adaptive streaming video quality by optimizing resource allocation
CN101843012B (en) Method of controlling power in wireless communication system
US20200221381A1 (en) Target wake time (twt) protocol for wi-fi voice calls
CN109155762A (en) The method and device of data transmission
CN109891927A (en) The mechanism adjusted for delay of eating dishes without rice or wine
CN106105302A (en) Used multiple carrier wave to send by terminal in mobile communication system and receive the method and apparatus of data
RU2005122724A (en) METHOD AND DEVICE FOR PERFORMING AUTONOMOUS TRANSMISSION IN A MOBILE COMMUNICATION SYSTEM FOR SUPPORT OF AN IMPROVED DIVIDED CHANNEL OF THE RISER OF COMMUNICATION
TW200818824A (en) Conditional scheduling for asynchronous wireless communication
CN102256314A (en) Method for adjusting service coding rate and communication node
JP2017143590A (en) Method and apparatus for determining carrier-specific maximum transmission power in mobile communication system for carrier aggregation
JP5630906B2 (en) Transmission power control apparatus and method in wireless communication system
CN107889154A (en) A kind of communication means and device
CN1502192A (en) Determination of bit rate
CN105265014B (en) A kind of method and user equipment of data transmission
CN103813388B (en) A kind of method and apparatus for being used to realize the resources control based on via node
DE102013107449A1 (en) Communication device and method for controlling packet generation
US20140019591A1 (en) Media Prefill Performance Improvement
KR20090013568A (en) Method for controlling resource in wireless communication system
WO2017167224A1 (en) Method and device for adjusting video encoding rate
CN101778431A (en) Admission control method for user access in base station system and device thereof
CN104363663A (en) Packet scheduling method based on mixed services in LTE communication system
CN110178391A (en) Wireless communications method, terminal device and the network equipment

Legal Events

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