Summary of the invention
In view of this, the purpose of the present invention is to provide a kind of virtual desktop video pictures method of quality control, system andEquipment can effectively promote the video display effect of remote virtual desktop.Its concrete scheme is as follows:
In a first aspect, the invention discloses a kind of virtual desktop video pictures method of quality control, comprising:
Identify the video area on destination virtual desktop;
The real-time monitoring that Network status is carried out to target network channel, the real-time network for obtaining the target network channel passDefeated situation;
According to real-time network status transmission, corresponding adjustment in real time is carried out to the video pictures quality of the video area,To obtain real-time video picture data adjusted;
Real-time video picture data adjusted default client is transmitted to by the target network channel to showShow.
Optionally, the video area on the identification destination virtual desktop, comprising:
The picture on the destination virtual desktop with the presence or absence of the region of picture dynamic change and on the region is monitored to becomeChange frequency and be greater than predeterminated frequency, if it is, the region is determined as the video area on the destination virtual desktop.
Optionally, the real-time monitoring that Network status is carried out to target network channel, obtains the target network channelReal-time network status transmission, comprising:
Real-time monitoring is carried out to the TCP connection information in the target network channel, obtains the reality in the target network channelWhen TCP connection information.
Optionally, described according to real-time network status transmission, the video pictures quality of the video area is carried out correspondingReal-time adjustment, to obtain real-time video picture data adjusted, comprising:
According to real-time TCP connection information, the real-time congestion situation in presently described target network channel is determined;
According to real-time congestion situation, corresponding adjustment in real time is carried out to the video pictures quality of the video area, withTo real-time video picture data adjusted.
Optionally, the real-time TCP connection information of the basis determines the real-time congestion feelings in presently described target network channelCondition, comprising:
Judge to whether there is not sent data and dont answer data packet in real-time TCP connection information in TCP queue, ifIt is no, then determine that there is no congestion risks in presently described target network channel, if it is, determining presently described target network channelThere are congestion risks.
Optionally, described according to real-time congestion situation, the video pictures quality of the video area is carried out corresponding realWhen adjust, to obtain real-time video picture data adjusted, comprising:
If there are congestion risks in presently described target network channel, by the video pictures Mass adjust- ment of the video areaTo presetting low picture quality level;
If congestion risk is not present in presently described target network channel, by the video pictures quality tune of the video areaWhole to default high image quality is horizontal.
Optionally, the video pictures Mass adjust- ment by the video area is horizontal to default high image quality, comprising:
According to preset image quality recovery curve, the video pictures quality of the video area is gradually adjusted to default high pictureMatter is horizontal.
Optionally, if there are congestion risks in the presently described target network channel, by the video of the video areaImage quality is adjusted to presetting low picture quality level, comprising:
If presently described target network channel is there are congestion risk, and the video pictures quality of presently described video areaLow picture quality level is preset higher than described, then is adjusted the video pictures quality of the video area at once by current picture quality levelLow picture quality level is preset to described.
Second aspect, the invention discloses a kind of virtual desktop video pictures quality control systems, comprising:
Region identification module, for identification video area on destination virtual desktop;
Network status monitoring modular obtains the mesh for carrying out the real-time monitoring of Network status to target network channelMark the real-time network status transmission of network channel;
Image quality adjusts module, for according to real-time network status transmission, to the video pictures quality of the video area intoThe corresponding adjustment in real time of row, to obtain real-time video picture data adjusted;
Data transmission module, for being transmitted to real-time video picture data adjusted by the target network channelDefault client is shown.
The third aspect the invention discloses a kind of virtual desktop video pictures quality control apparatus, including processor and is depositedReservoir;Wherein, the processor executes the computer program stored in the memory and realizes aforementioned disclosed virtual desktop viewFrequency image quality control method.
As it can be seen that the present invention first identifies the video area on destination virtual desktop, and target network channel is carried out real-timeMonitoring to obtain real-time network status transmission, it is subsequent based on real-time network status transmission to the video pictures matter of above-mentioned video areaIt measures and carries out corresponding adjustment in real time, the video pictures quality and current goal network channel on video area can be made in this wayBe between real-time network status transmission it is adaptable, on the one hand can make in the preferable situation of real-time network status transmission,The video pictures for transmitting high quality, meet demand of the user to high image quality, on the other hand can to transmit in real-time networkIn the case that situation is poor, correspondingly video pictures quality is adjusted, can be avoided the video pictures at this time to high qualityIt is transmitted, thus ensures the fluency of video pictures transmission.To sum up, the present invention can effectively promote remote virtual desktopVideo display effect.
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, completeSite preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based onEmbodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every otherEmbodiment shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a kind of virtual desktop video pictures method of quality control, shown in Figure 1, this methodInclude:
Step S11: the video area on identification destination virtual desktop.
In the present embodiment, server-side generally includes multiple virtual desktops, can show different pairs on each virtual desktopAs, for example can show video pictures, text or static images etc..Above-mentioned destination virtual desktop can be multiple void of server-sideAny virtual desktop in quasi- desktop.For the present embodiment after determining above-mentioned destination virtual desktop, server-side can be to above-mentionedVideo area on destination virtual desktop identified, by video area from numerous different type regions of destination virtual desktopIn identify.
Step S12: the real-time monitoring of Network status is carried out to target network channel, obtains the reality in the target network channelWhen network transmission situation.
It should be pointed out that the target network channel in the present embodiment refers to for above-mentioned destination virtual desktop to be transmitted toThe network channel of default client.Specifically, in the present embodiment between above-mentioned destination virtual desktop and above-mentioned target network channelIt is one-to-one mapping relations, that is, only allowing to be transmitted to above-mentioned destination virtual desktop by target network channel defaultClient, and do not allow through above-mentioned target network channel transfer others virtual desktop.Certainly, above-mentioned target network channelIn addition to above-mentioned destination virtual desktop can be transmitted, can be used for transmitting other virtual desktops.
In the present embodiment, the real-time network status transmission in above-mentioned target network channel, which refers to, is able to reflect target network channelThe information of congestion situation can determine above-mentioned target network channel there is no congestion risk or deposit by these informationIn congestion risk.
Step S13: according to real-time network status transmission, the video pictures quality of the video area is carried out corresponding realWhen adjust, to obtain real-time video picture data adjusted.
It,, can be in order to guarantee to have good image quality in the preferable situation of real-time network status transmission in the present embodimentThe video pictures quality of above-mentioned video area is set as higher level, on the contrary, the situation poor in real-time network status transmissionUnder, in order to not influence picture fluency, the video pictures quality of above-mentioned video area can be set as lower level.Based on upperImage quality setting rule is stated, the present embodiment is according to the real-time network status transmission in target network channel to the video of above-mentioned video areaImage quality carries out corresponding adjustment in real time, to obtain corresponding video picture data adjusted in real time.
Step S14: real-time video picture data adjusted is transmitted to by default client by the target network channelEnd is shown.
It is understood that will real-time video picture data adjusted to default client transmissions during, needCorresponding video encoding operations are carried out to above-mentioned video picture data adjusted in real time using coding unit.In addition, this realityThe adjustment that example can according to the actual situation adapt to coded program used by above-mentioned coding unit is applied, to meet different useThe actual demand of family group.
As it can be seen that the embodiment of the present invention first identifies the video area on destination virtual desktop, and to target network channel intoRow real-time monitoring to obtain real-time network status transmission, it is subsequent based on real-time network status transmission to the video of above-mentioned video areaImage quality carries out corresponding adjustment in real time, can make the video pictures quality and current goal network on video area in this wayBe between the real-time network status transmission in channel it is adaptable, on the one hand can make in the preferable feelings of real-time network status transmissionUnder condition, the video pictures of high quality are transmitted, demand of the user to high image quality is met, on the other hand can make in real-time networkIn the case that status transmission is poor, correspondingly video pictures quality is adjusted, can be avoided the video at this time to high qualityPicture is transmitted, and thus ensures the fluency of video pictures transmission.To sum up, the embodiment of the present invention can be promoted effectively remotelyThe video display effect of virtual desktop.
It is shown in Figure 2, the embodiment of the invention discloses a kind of specific virtual desktop video pictures method of quality control,Include:
Step S21: it monitors on the destination virtual desktop with the presence or absence of on the region of picture dynamic change and the regionPicture change frequency be greater than predeterminated frequency, if it is, the region is determined as the video area on the destination virtual desktopDomain.
It is understood that above-mentioned predeterminated frequency can manually be set according to the actual situation or be carried out by background systemSetting, if the picture change frequency on some region of destination virtual desktop is greater than above-mentioned predeterminated frequency, it may be considered that shouldRegion is video pictures region, if the picture change frequency on some region of destination virtual desktop is greater than zero and smallIt it may be considered that the region sometimes will appear the case where picture changes, but is not video in above-mentioned predeterminated frequencyPicture region, if the picture change frequency on some region of destination virtual desktop is zero, it may be considered that currently shouldPicture on region is static motionless.
As it can be seen that the present embodiment particular by monitoring objective virtual desktop whether there is the higher area of picture change frequencyDomain, to identify the video area on destination virtual desktop.That is, whether the present embodiment on monitoring objective virtual desktop by depositingThe time interval of two frame pictures of front and back is short enough on the region and the region of picture dynamic change, if it is, can incite somebody to actionThe region is determined as the video area on destination virtual desktop.
For example, it is assumed that including the first area for showing desktop dynamic background picture and use on current goal virtual desktopIn the second area of display video pictures, in order to determine, which region is video area in above-mentioned first area and second area,The present embodiment can monitor the respective time interval per adjacent two frames picture on above-mentioned first area and second area respectively, byIt is really desktop dynamic background region in first area, the usual feature in this kind of region is that picture variation is slow, so directlyCause the time interval per adjacent two frames picture on the above-mentioned first area monitored long, and due to second area realityIt is the region for playing video, the usual feature in this kind of region is that picture changes ratio for desktop dynamic background regionComparatively fast, so directly resulting in the time interval of every adjacent two frames picture on the above-mentioned second area monitored relative to the firstth areaVideo area enough short for domain, therefore second area being determined as on the destination virtual desktop.
Certainly, in addition to that can identify the video area on destination virtual desktop based on the mode in above-mentioned steps S21,The present embodiment can also identify video area based on other modes, such as: it can be by identification current goal virtual desktopVideo player whether is had already turned on and the video player is currently at broadcast state, if it is, can be by the viewThe corresponding broadcasting pictures of frequency player are determined as the video area on above-mentioned destination virtual desktop.
Step S22: real-time monitoring is carried out to the TCP connection information in the target network channel, obtains the target networkThe real-time TCP connection information in channel.
Step S23: according to real-time TCP connection information, the real-time congestion situation in presently described target network channel is determined.
Wherein, the real-time TCP connection information of the basis determines the real-time congestion feelings in presently described target network channelCondition can specifically include:
Judge to whether there is not sent data and dont answer data packet in real-time TCP connection information in TCP queue, ifIt is no, then determine that there is no congestion risks in presently described target network channel, if it is, determining presently described target network channelThere are congestion risks.
Further, presently described target network channel is determined according to real-time TCP connection information described in the present embodimentReal-time congestion situation, can also include: when there are not sent data and dont answers in TCP queue in real-time TCP connection informationIt, then can be according to the order of magnitude of not sent data and the quantity of dont answer data packet, to determine different brackets when data packetCongestion risk.
Step S24: according to real-time congestion situation, corresponding tune in real time is carried out to the video pictures quality of the video areaIt is whole, to obtain real-time video picture data adjusted.
Wherein, described according to real-time congestion situation, the video pictures quality of the video area is carried out corresponding real-timeAdjustment can specifically include with obtaining real-time video picture data adjusted:
If there are congestion risks in presently described target network channel, by the video pictures Mass adjust- ment of the video areaTo presetting low picture quality level;If congestion risk is not present in presently described target network channel, by the video of the video areaImage quality adjusts horizontal to default high image quality.
Wherein, if there are congestion risks in the presently described target network channel, the video of the video area is drawnFace Mass adjust- ment is to the process for presetting low picture quality level, comprising: according to the risk class of current congestion risk, determines with phaseThe default picture quality level of numerical values recited grade is answered, then according to the default picture quality level of the grade to the video pictures of video areaQuality is correspondingly adjusted.It is thus achieved that the effect of classification adjustment is carried out to video image quality according to real-time network status transmissionFruit, it is advantageously ensured that user has preferable experience.
In addition, the video pictures Mass adjust- ment by the video area is horizontal to default high image quality, specifically can wrapIt includes: according to preset image quality recovery curve, the video pictures quality of the video area gradually being adjusted to default high image quality waterIt is flat.In the present embodiment, the above process is actually the process under image quality Restoration stage, can be made by this process in networkStatus transmission gradually restores the result of broadcast of video pictures in the case where improving.Further, if the presently described target networkThere are congestion risks in network channel, then the video pictures Mass adjust- ment of the video area specifically may be used to low picture quality level is presetIf to include: presently described target network channel there are congestion risk, and the video pictures quality of presently described video areaLow picture quality level is preset higher than described, then is adjusted the video pictures quality of the video area at once by current picture quality levelLow picture quality level is preset to described, this process is really the process under the image quality inhibition stage.It is shown in Figure 3, it is extensive in image qualityMultiple stage, video pictures quality are gradually promoted, and are inhibited the stage in image quality, can quickly be reduced video image quality, current to adapt toThere are the Network status of congestion risk, it is ensured that the fluency of video.
Step S25: real-time video picture data adjusted is transmitted to by default client by the target network channelEnd is shown.
Correspondingly, the embodiment of the invention also discloses a kind of virtual desktop video pictures quality control system, institute referring to fig. 4Show, which includes:
Region identification module 11, for identification video area on destination virtual desktop;
Network status monitoring modular 12 obtains described for carrying out the real-time monitoring of Network status to target network channelThe real-time network status transmission in target network channel;
Image quality adjusts module 13, is used for according to real-time network status transmission, to the video pictures quality of the video areaCorresponding adjustment in real time is carried out, to obtain real-time video picture data adjusted;
Data transmission module 14, for that video picture data adjusted will be transmitted in real time by the target network channelIt is shown to default client.
Corresponding contents disclosed in previous embodiment can be referred to about the more specifical course of work of above-mentioned modules,It is no longer repeated herein.
Further, the invention also discloses a kind of virtual desktop video pictures quality control apparatus, including processor andMemory;Wherein, the processor executes the computer program stored in the memory and realizes void disclosed in previous embodimentQuasi- desktop video image quality control method.Specific steps about this method can be with reference to disclosed in previous embodiment accordinglyContent is no longer repeated herein.
Further, the invention also discloses a kind of computer readable storage mediums, for storing computer program, the journeySequence realizes virtual desktop video pictures method of quality control disclosed in previous embodiment after being executed by processor.About this methodSpecific steps can no longer be repeated herein with reference to corresponding contents disclosed in previous embodiment.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with it is otherThe difference of embodiment, same or similar part may refer to each other between each embodiment.For being filled disclosed in embodimentFor setting, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method partExplanation.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosureAnd algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware andThe interchangeability of software generally describes each exemplary composition and step according to function in the above description.TheseFunction is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.ProfessionTechnical staff can use different methods to achieve the described function each specific application, but this realization is not answeredThink beyond the scope of this invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processorThe combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only depositReservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technologyIn any other form of storage medium well known in field.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to byOne entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operationBetween there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaningCovering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes thatA little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article orThe intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arrangedExcept there is also other identical elements in the process, method, article or apparatus that includes the element.
A kind of virtual desktop video pictures method of quality control provided by the present invention, system and equipment are carried out aboveIt is discussed in detail, used herein a specific example illustrates the principle and implementation of the invention, above embodimentsIllustrate to be merely used to help understand method and its core concept of the invention;At the same time, for those skilled in the art, according toAccording to thought of the invention, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specificationIt should not be construed as limiting the invention.