CN107959824A - A kind of monitor video processing method, physical server and storage medium - Google Patents
A kind of monitor video processing method, physical server and storage medium Download PDFInfo
- Publication number
- CN107959824A CN107959824A CN201711062607.2A CN201711062607A CN107959824A CN 107959824 A CN107959824 A CN 107959824A CN 201711062607 A CN201711062607 A CN 201711062607A CN 107959824 A CN107959824 A CN 107959824A
- Authority
- CN
- China
- Prior art keywords
- video
- virtual machine
- target monitoring
- physical server
- monitor
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/18—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45583—Memory management, e.g. access or allocation
Abstract
The invention discloses a kind of monitor video processing method, physical server and storage medium, the described method includes:Physical server receives the video call instruction that current virtual machine is sent;Search in default storage region and whether there is target monitoring video corresponding with the video call instruction;There is no during the target monitoring video, obtaining the target monitoring video, and the target monitoring video is decoded and is rendered processing, the target monitoring video data after acquisition processing;Target monitoring video data after processing is stored to the default storage region, and the target video data is transmitted to the current virtual machine, so that the current virtual machine shows corresponding monitored picture according to the target video data.The present invention is target monitoring video to be decoded and rendered processing by physical server, so that being only decoded and rendering once when identical monitor video is called by different virtual machine, reduces the occupancy to cpu resource and waste.
Description
Technical field
The present invention relates to technical field of virtualization, more particularly to a kind of monitor video processing method, physical server and deposit
Storage media.
Background technology
VDI (Virtual Desktop Infrastructure), i.e. virtual desktop architecture.Core is by number
Run desktop operating system according to the server at center, user by the transport protocol of client device and these long-range desktops into
Row connection so that it is like to access traditional local desktop that user, which accesses their desktop,.With server and storage into
This decline, and client are more and more vigorous to the demand of security and centralized management, and desktop virtualization increasingly becomes a kind of
Trend, but in the extension process of desktop virtual technology, virtualization technology also brings the problem of some are new.
For example, in some monitoring scenes, the requirement of the client of existing monitor video to performance is higher, and virtual
Change under scene, these requirements translate into the cpu performance requirement to virtual machine, if having multi-path high-definition in a certain monitoring scene
Monitor video, such as have 16 tunnels, in the case of more people's uses, such as there are 10 people, then just have 160 road monitor videos, i.e.,
Just the monitor video that everyone sees is identical, is similarly the process resource for taking 160 tunnels.This will result in very high
Cpu resource takes, including the flow between processing monitor video client and monitor video server and processing video decoding
With the cpu resource rendered.In this case, for carrying virtual machine number that the physical server of virtual machine can concurrently run just
It can be greatly reduced, and in the case where meeting equal client access, the cost of physical server can then steeply rise.
At present, the client of the monitor video in virtual machine under virtualizing scene by Microsoft Loopback Adapter via physical network card
Communicate with monitor video server, monitor video is got in virtual machine, then again hand over the monitor video got
Go to decode and render to virtual video card, so no matter virtual machine is required of the no monitor video gone the same way, each virtual machine will
Independent whereabouts monitor video server asks video data, decodes and renders, wastes substantial amounts of cpu resource.
The above is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that the above is existing skill
Art.
The content of the invention
It is a primary object of the present invention to provide a kind of monitor video processing method, physical server and storage medium,
Aim to solve the problem that in the prior art when different virtual machine request monitor video for go the same way monitor video when, caused by cpu resource it is big
Amount takes the technical problem with wasting.
To achieve the above object, the present invention provides a kind of monitor video processing method, the described method comprises the following steps:
Physical server receives the video call instruction that current virtual machine is sent;
Search in default storage region and whether there is target monitoring video corresponding with the video call instruction;
There is no during the target monitoring video, obtaining the target monitoring video, and to the target monitoring video
Decoded and rendered processing, the target monitoring video data after acquisition processing;
Target monitoring video data after processing is stored to the default storage region, and by the target video data
The current virtual machine is transmitted to, so that the current virtual machine shows corresponding monitoring picture according to the target video data
Face.
Preferably, described search in default storage region whether there is target monitoring corresponding with the video call instruction
After video, the method further includes:
There are during the target monitoring video, the corresponding target video data of the target monitoring video is transmitted to institute
Current virtual machine is stated, so that the current virtual machine shows corresponding monitored picture according to the target video data.
Preferably, before the physical server receives the video call instruction that current virtual machine is sent, the method is also
Including:
Physical server receives the video request instruction that current virtual machine is sent, and is instructed and judged according to the video request
With the presence or absence of corresponding target monitoring video;
When there are during corresponding target monitoring video, the corresponding storage information of the target monitoring video being sent to described
Current virtual machine, so that the current virtual machine feeds back corresponding video call instruction according to the storage information.
Preferably, the physical server receives the video request instruction that current virtual machine is sent, and according to the video
After request instruction judges whether corresponding target monitoring video, the method further includes:
When there is no during corresponding target monitoring video, the target monitoring video is obtained from monitor video server,
The target monitoring video is stored to local storage space, and generates corresponding storage information.
Preferably, the physical server receives the video request instruction that current virtual machine is sent, and specifically includes:
Physical server receives current virtual machine and is instructed by the video request that the first default application programming interfaces are sent;
Correspondingly, the physical server receives the video call instruction that current virtual machine is sent, and specifically includes:
Physical server receives the video call instruction that current virtual machine is sent by the second default application programming interfaces.
Preferably, the method further includes:Physical server obtains monitor video from monitor video server, and will obtain
Monitor video be cached in local storage space.
Preferably, the physical server obtains monitor video from monitor video server, and by the monitor video of acquisition
After being cached in local storage space, the method further includes:
Physical server carries out the monitor video of acquisition decoding and renders processing, and by the monitor video after processing store to
Default storage region.
Preferably, the method further includes:
Physical server detects the residual capacity of local storage space every preset period of time, low in the residual capacity
When predetermined threshold value, cache cleaner is carried out to locally-stored space.
In addition, to achieve the above object, the present invention also proposes a kind of physical server, and the physical server includes:Deposit
Reservoir, processor and the monitor video processing routine that can be run on the memory and on the processor is stored in, it is described
Monitor video processing routine is arranged for carrying out the step of monitor video processing method as described above
In addition, to achieve the above object, the present invention also proposes a kind of storage medium, and monitoring is stored with the storage medium
Video processing program, realizes monitor video processing method as described above when the monitor video processing routine is executed by processor
The step of.
The present invention receives the video call instruction of current virtual machine transmission by physical server;Search default storage region
In whether there is target monitoring video corresponding with the video call instruction;There is no during the target monitoring video, obtain
The target monitoring video is taken, and the target monitoring video is decoded and rendered processing, the target prison after acquisition processing
Control video data;Target monitoring video data after processing is stored to the default storage region, and by the target video
Data transfer is to the current virtual machine, so that the current virtual machine shows corresponding monitoring according to the target video data
Picture.The present invention is target monitoring video to be decoded and rendered processing by physical server, so that identical monitoring
Only it is decoded and renders once when video is called by different virtual machine, reduces the occupancy to cpu resource and waste.
Brief description of the drawings
Fig. 1 is the structure diagram of the physical server for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of monitor video processing method first embodiment of the present invention;
Fig. 3 is the flow diagram of monitor video processing method second embodiment of the present invention;
Fig. 4 is the flow diagram of monitor video processing method 3rd embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Embodiment
It should be appreciated that specific embodiment described herein is not intended to limit the present invention only to explain the present invention.
With reference to Fig. 1, Fig. 1 is the physical server structural representation for the hardware running environment that the embodiment of the present invention is related to
Figure.
As shown in Figure 1, the physical server can include:Processor 1001, such as CPU, communication bus 1002, Yong Hujie
Mouth 1003, network interface 1004, memory 1005.Wherein, the connection that communication bus 1002 is used for realization between these components is led to
Letter.User interface 1003 can include display screen (Display), input unit such as keyboard (Keyboard), and optional user connects
Mouth 1003 can also include standard wireline interface and wireless interface.Network interface 1004 can optionally include the wired of standard
Interface, wave point (such as WI-FI interfaces).Memory 1005 can be high-speed RAM memory or the memory of stabilization
(non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of aforementioned processor
1001 storage device.
, can be with it will be understood by those skilled in the art that the structure shown in Fig. 1 does not form the restriction to physical server
Including than illustrating more or fewer components, either combining some components or different components arrangement.
As shown in Figure 1, it can lead to as in a kind of memory 1005 of computer-readable storage medium including operating system, network
Believe module, Subscriber Interface Module SIM and monitor video processing routine.
In the physical server shown in Fig. 1, network interface 1004 be mainly used for connect external network, with external network into
Row data communication;User interface 1003 is mainly used for connecting client, with client into row data communication, the physical server
The monitor video processing routine stored in memory 1005 is called by processor 1001, and performs following operation:
Receive the video call instruction that current virtual machine is sent;
Search in default storage region and whether there is target monitoring video corresponding with the video call instruction;
There is no during the target monitoring video, obtaining the target monitoring video, and to the target monitoring video
Decoded and rendered processing, the target monitoring video data after acquisition processing;
Target monitoring video data after processing is stored to the default storage region, and by the target video data
The current virtual machine is transmitted to, so that the current virtual machine shows corresponding monitoring picture according to the target video data
Face.
Further, processor 1001 can call the monitor video processing routine stored in memory 1005, also perform
Operate below:
There are during the target monitoring video, the corresponding target video data of the target monitoring video is transmitted to institute
Current virtual machine is stated, so that the current virtual machine shows corresponding monitored picture according to the target video data.
Further, processor 1001 can call the monitor video processing routine stored in memory 1005, also perform
Operate below:
The video request instruction that current virtual machine is sent is received, and is judged whether pair according to video request instruction
The target monitoring video answered;
When there are during corresponding target monitoring video, the corresponding storage information of the target monitoring video being sent to described
Current virtual machine, so that the current virtual machine feeds back corresponding video call instruction according to the storage information.
Further, processor 1001 can call the monitor video processing routine stored in memory 1005, also perform
Operate below:
When there is no during corresponding target monitoring video, the target monitoring video is obtained from monitor video server,
The target monitoring video is stored to local storage space, and generates corresponding storage information.
Further, processor 1001 can call the monitor video processing routine stored in memory 1005, also perform
Operate below:
Monitor video is obtained from monitor video server, and the monitor video of acquisition is cached in local storage space.
Further, processor 1001 can call the monitor video processing routine stored in memory 1005, also perform
Operate below:
Decoding is carried out to the monitor video of acquisition and renders processing, and the monitor video after processing is stored to default memory block
Domain.
Further, processor 1001 can call the monitor video processing routine stored in memory 1005, also perform
Operate below:
Every the residual capacity of preset period of time detection local storage space, it is less than predetermined threshold value in the residual capacity
When, cache cleaner is carried out to locally-stored space.
The present embodiment physical server receives the video call instruction that current virtual machine is sent;Search in default storage region
With the presence or absence of target monitoring video corresponding with the video call instruction;There is no during the target monitoring video, obtain
The target monitoring video, and the target monitoring video is decoded and is rendered processing, the target monitoring after acquisition processing
Video data;Target monitoring video data after processing is stored to the default storage region, and by the target video number
According to the current virtual machine is transmitted to, so that the current virtual machine shows corresponding monitoring picture according to the target video data
Face.The present embodiment is target monitoring video to be decoded and rendered processing by physical server, so that identical monitoring
Only it is decoded and renders once when video is called by different virtual machine, reduces the occupancy to cpu resource and waste.
Based on above-mentioned hardware configuration, monitor video processing method embodiment of the present invention is proposed.
With reference to Fig. 2, monitor video processing method first embodiment of the present invention is proposed.
In the present embodiment, the monitor video processing method comprises the following steps:
Step S10:Physical server receives the video call instruction that current virtual machine is sent;
It should be noted that the executive agent of the method for the present embodiment is physical server, the physical server can be with
It is the virtual machine server that running environment is provided for virtual machine, the virtual machine is run on the physical server, each thing
The virtual machine number run on reason server can be set according to actual conditions.
It is understood that in the application scenarios of desktop virtual technology, the desktop system of user is with the shape of virtual machine
Formula is run in virtual machine server (physical server), and virtual machine server carries out unified pipe for the virtual machine of all users
Reason, user show the desktop of virtual machine on a client device by desktop client end equipment software connecting virtual machine.User
Need to call certain all the way monitor video when, by desktop client end (being monitor video client in the present embodiment) to physical services
Device sends video call instruction, and physical server instructs the dependency number for obtaining current virtual machine and asking according to the video request
According to.
In the present embodiment in the concrete realization, the monitor video client in virtual machine sends video tune to physical server
, can be by calling the first preset interface to realize during with instruction, first preset interface is used to be the video prison in virtual machine
Control client and video programming interface is provided, when the video monitoring client terminal needs to be monitored the decoding of video and renders broadcasting
When, video call instruction is sent to physical server by first preset interface.
Step S20:Search and regarded in default storage region with the presence or absence of target monitoring corresponding with the video call instruction
Frequently;
It should be noted that for ease of searching monitor video decoded and after rendering, can be inside physical server
One piece of default storage region is divided in advance to be stored to the monitor video after decoding and rendering.
It is understood that when physical server receives monitor video client and sends video call instruction, physics
Server can parse the video call instruction, so that it is determined that corresponding monitor video (the i.e. mesh of the video call instruction
Mark monitor video), and search whether there is target corresponding with the video call instruction in storage region set in advance
Monitor video
Step S30:There is no during the target monitoring video, the target monitoring video is obtained, and to the target
Monitor video is decoded and is rendered processing, the target monitoring video data after acquisition processing.
In the concrete realization, when the target monitoring video to be called is not present in the default storage region, then obtain
The monitor video is taken, and the monitor video is decoded and rendered, it is corresponding after obtaining monitor video decoding and rendering
Video data.
Step S40:Target monitoring video data after processing is stored to the default storage region, and by the target
Video data transmission is to the current virtual machine, so that the current virtual machine is corresponding according to target video data displaying
Monitored picture.
It should be understood that physical server is after the target monitoring video to getting is decoded and renders processing, meeting
The corresponding video data of target monitoring video after processing is stored to the default storage region, and in the current virtual machine
When asking the video data, by the video data transmission to the current virtual machine, so that the current virtual machine is according to thing
Manage the corresponding monitored picture of video data display of server transport.
It should be noted that different users using different monitor video clients when watching monitor video, it is possible
The picture of monitor video can be adjusted accordingly or set according to self-demand, and each monitor video is in different virtual machine
The region that desktop is shown also and differs, therefore virtual machine is when getting the corresponding video data of target monitoring video, can root
Corresponding monitored picture is synthesized and shows according to the corresponding display data of monitor video client, so that user watches.
Physical server receives the video call instruction that current virtual machine is sent in the present embodiment;Search default storage region
In whether there is target monitoring video corresponding with the video call instruction;There is no during the target monitoring video, obtain
The target monitoring video is taken, and the target monitoring video is decoded and rendered processing, the target prison after acquisition processing
Control video data;Target monitoring video data after processing is stored to the default storage region, and by the target video
Data transfer is to the current virtual machine, so that the current virtual machine shows corresponding monitoring according to the target video data
Picture.The present embodiment is target monitoring video to be decoded and rendered processing by physical server, so that identical prison
Control video is only decoded and renders once when being called by different virtual machine, reduces the occupancy to cpu resource and waste.
With reference to figure 3, Fig. 3 is the flow diagram of monitor video processing method second embodiment of the present invention.
Based on above-mentioned first embodiment, the monitor video processing method that the present embodiment proposes also is wrapped after step S20
Include:
Step S50:There are during the target monitoring video, by the corresponding target video data of the target monitoring video
The current virtual machine is transmitted to, so that the current virtual machine shows corresponding monitoring picture according to the target video data
Face.
It is understood that when physical server finds the target monitoring video in the default storage region
When, show that the corresponding target monitoring video of the video call instruction is not first called, that is to say, that the target monitoring regards
Frequency has been monitor video after being decoded and being rendered, therefore and target monitoring video need not be decoded and be rendered place
Reason, it is only necessary to the corresponding target video data of the target monitoring video is transmitted to the current virtual machine, by described current
Virtual machine shows corresponding monitored picture according to the target video data.
The beneficial effect of the present embodiment is:Physical server is being found there are during the target monitoring video, will described in
The corresponding target video data of target monitoring video is transmitted to the current virtual machine, so that the current virtual machine is according to
Target video data shows corresponding monitored picture, so that in the monitor video that different virtual machine is wanted to call to be decoded and wash with watercolours
During target monitoring video after dye, the corresponding video data of target monitoring video is directly sent to virtual machine, is avoided to phase
With monitor video repeat decoding and render, reduce to cpu resource take and waste.
Further, as shown in figure 4, Fig. 4 is the flow diagram of monitor video processing method 3rd embodiment of the present invention.
Based on the various embodiments described above, monitor video processing method 3rd embodiment of the present invention, in the present embodiment, institute are proposed
Before stating the video call instruction that physical server receives current virtual machine transmission, the method further includes:
Step S01:Physical server receives the video request instruction that current virtual machine is sent, and according to the video request
Instruction judges whether corresponding target monitoring video;
It should be noted that in the case where virtualizing scene, when user needs to watch certain monitor video all the way, can monitor
Target monitoring video information is inputted on videoconference client, when monitor video client receives target monitoring video input by user
After information, corresponding video request is generated according to the target monitoring video information and is instructed, and is sent to the physical server
The video request instructs, and after physical server gets the video request instruction, judges that physics takes according to video request instruction
It is engaged in whether there is in the local storage space of device and has corresponding target monitoring video.
In the present embodiment in the concrete realization, virtual machine can pass through tune to during physical server transmission video request instruction
Realized with the second preset interface, second preset interface is used to provide network volume for the video monitoring client terminal in virtual machine
Journey interface, when the video monitoring client terminal needs the network data of user's request being sent to physical server, passes through institute
State the second preset interface and send video request instruction to physical server.
Step S02:When there are during corresponding target monitoring video, by the corresponding storage information hair of the target monitoring video
The current virtual machine is given, so that the current virtual machine feeds back corresponding video call instruction according to the storage information.
It is understood that know that local storage space stores corresponding target monitoring and regards after physical server judges
During frequency, the corresponding storage information of the target monitoring video is fed back into the current virtual machine, the current virtual machine receives
After storing information, corresponding video call instruction is sent to physical server so that the physical server receive it is described
Subsequent operation is carried out after video call instruction.
It should be noted that the corresponding information that stores of the target monitoring video can be the storage target monitoring video
Storage address or the link that is generated according to the storage address, the present embodiment is not any limitation as this.
It is understood that in a practical situation, it may appear that the not mesh of cache user current request in physical server
The situation of monitor video is marked, therefore, in order to ensure that physical server can normally get the target monitoring video of user's request, it is described
Method further includes:When there is no described in during corresponding target monitoring video, physical server is obtained from monitor video server
Target monitoring video, the target monitoring video is stored to local storage space, and generates corresponding storage information.Namely
Say, the video request that physical server needs to be sent according to current virtual machine at this time instructs, by being sent out to monitor video server
Video acquisition is sent to instruct, to obtain target monitoring video, and after the target monitoring video is got, to the target monitoring
Video is stored, and generates corresponding storage information.
Certainly, the target monitoring video is cached in physical server, it is described after generating corresponding storage information
Physical server may proceed to be instructed according to the video request, perform described by the corresponding storage information transmission of target monitoring video
To the current virtual machine, so that the current virtual machine feeds back the step of corresponding video call instruction according to the storage information
Suddenly.
The beneficial effect of the present embodiment is:Physical server in the video for receiving the current virtual machine transmission by asking
After asking instruction, corresponding target monitoring video is searched in local storage space according to the request instruction, is not finding mesh
In the case of marking monitor video, the target monitoring video is obtained from monitor video server, and the target monitoring is regarded
Frequency is stored, and corresponding storage information is generated, so that other virtual machines are when invocation target monitor video is needed
Target monitoring video directly is obtained from physical server, without individually asking video data, section to monitor video server again
Cpu resource has been saved, has reduced physical server cost.
Further, based on the various embodiments described above, monitor video processing method fourth embodiment of the present invention is proposed, in this reality
Apply in example, the method further includes:Physical server obtains monitor video from monitor video server, and the monitoring of acquisition is regarded
Frequency is cached in local storage space;Decoding is carried out to the monitor video of acquisition and renders processing, and by the monitor video after processing
Store to default storage region.
It should be noted that the various embodiments described above, during specific implementation, physical server needs to utilize monitor video
The decoding algorithm that manufacturer server provides, is different from above-described embodiment, the monitor video processing method that the present embodiment proposes, in thing
, can be by default to one section of virtual machine injection in the case of the coding mode of monitor video handled by reason server is disclosed
Hook procedure, intercepts the file operation that monitor video client is initiated in virtual machine, and the file operation is redirected to thing
Manage in server in pre-set memory space.
In the concrete realization, after the file operation that monitor video client is initiated in virtual machine is redirected, physics clothes
The monitor video obtained from monitor video server can be cached in local storage space by business device, so as to avoid virtual machine
When asking monitor video, the monitor video got is stored in the virtual disk of virtual machine, so each virtual machine
When needing to call monitor video, all only need to obtain from physical server.In addition, physical server can regard the monitoring of acquisition
Frequency carries out decoding and renders processing, and the monitor video after processing is stored to default storage region, so as to reduce different virtual
Occupancy of the machine to CPU.
It is understood that it is limited that each physical server, which corresponds to memory space, correspondingly, it is used in memory space
The space for caching monitor video can be less and less with the monitor video that user please constantly look for novelty, and especially needs 24 some
In the scene of hour monitoring, the monitor video data volume that physical server caches daily is huge, to ensure that physical server can be right
The monitor video normal storage got, the method further include:Physical server is locally deposited every preset period of time detection
The residual capacity in space is stored up, when the residual capacity is less than predetermined threshold value, cache cleaner is carried out to locally-stored space, with clear
Except the monitor video data being of little use or utilization rate is relatively low, increase spatial cache.
In the concrete realization, a time cycle can be pre-set, so that physical server is every preset period of time
The residual capacity of local storage space is detected, the preset period of time can be set according to actual conditions, such as 12 small
When, 24 it is small when or 48 it is small when etc., the present embodiment is not any limitation as this.
It is understood that when the residual capacity to local storage space is detected, a threshold can be preset
Value, when physical server detects that the residual capacity is less than the threshold value set in advance, clears up caching.
The beneficial effect of the present embodiment is:Physical server is incited somebody to action by obtaining monitor video from monitor video server
The monitor video of acquisition is stored into local storage space, so that when each virtual machine needs to call monitor video, is all only needed
Obtained from physical server, reduce occupancy of the different virtual machine to CPU, by being deposited every the default time cycle to local
Store up space and carry out cache cleaner, ensure that normal storage of the card physical server to the monitor video got.
In addition, the present invention also provides a kind of storage medium, monitor video processing routine, institute are stored with the storage medium
State and following operation is realized when monitor video processing routine is executed by processor:
Receive the video call instruction that current virtual machine is sent;
Search in default storage region and whether there is target monitoring video corresponding with the video call instruction;
There is no during the target monitoring video, obtaining the target monitoring video, and to the target monitoring video
Decoded and rendered processing, the target monitoring video data after acquisition processing;
Target monitoring video data after processing is stored to the default storage region, and by the target video data
The current virtual machine is transmitted to, so that the current virtual machine shows corresponding monitoring picture according to the target video data
Face.
Further, following operation is also realized when the monitor video processing routine is executed by processor:
There are during the target monitoring video, the corresponding target video data of the target monitoring video is transmitted to institute
Current virtual machine is stated, so that the current virtual machine shows corresponding monitored picture according to the target video data.
Further, following operation is also realized when the monitor video processing routine is executed by processor:
The video request instruction that current virtual machine is sent is received, and is judged whether pair according to video request instruction
The target monitoring video answered;
When there are during corresponding target monitoring video, the corresponding storage information of the target monitoring video being sent to described
Current virtual machine, so that the current virtual machine feeds back corresponding video call instruction according to the storage information.
Further, following operation is also realized when the monitor video processing routine is executed by processor:
When there is no during corresponding target monitoring video, the target monitoring video is obtained from monitor video server,
The target monitoring video is stored to local storage space, and generates corresponding storage information.
Further, following operation is also realized when the monitor video processing routine is executed by processor:
Monitor video is obtained from monitor video server, and the monitor video of acquisition is cached in local storage space.
Further, following operation is also realized when the monitor video processing routine is executed by processor:
Decoding is carried out to the monitor video of acquisition and renders processing, and the monitor video after processing is stored to default memory block
Domain.
Further, following operation is also realized when the monitor video processing routine is executed by processor:
Every the residual capacity of preset period of time detection local storage space, it is less than predetermined threshold value in the residual capacity
When, cache cleaner is carried out to locally-stored space.
The beneficial effect of the present embodiment is:Physical server receives the video call instruction that current virtual machine is sent;Search
It whether there is target monitoring video corresponding with the video call instruction in default storage region;There is no target prison
When controlling video, the target monitoring video is obtained, and the target monitoring video is decoded and rendered processing, acquisition processing
Target monitoring video data afterwards;Target monitoring video data after processing is stored to the default storage region, and by institute
State target video data and be transmitted to the current virtual machine, so that the current virtual machine is shown according to the target video data
Corresponding monitored picture.The present embodiment is target monitoring video to be decoded and rendered processing by physical server, so that
Identical monitor video is only decoded and is rendered once when being called by different virtual machine, reduce to the occupancy of cpu resource with
Waste.
It should be noted that herein, term " comprising ", "comprising" or its any other variation are intended to non-row
His property includes, so that process, method, article or system including a series of elements not only include those key elements, and
And the other key elements being not explicitly listed are further included, or further include as this process, method, article or system institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Also there are other identical element in the process of key element, method, article or system.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme substantially in other words does the prior art
Going out the part of contribution can be embodied in the form of software product, which is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be mobile phone, computer, takes
Be engaged in device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair
The equivalent structure or equivalent flow shift that bright specification and accompanying drawing content are made, is directly or indirectly used in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of monitor video processing method, it is characterised in that the described method comprises the following steps:
Physical server receives the video call instruction that current virtual machine is sent;
Search in default storage region and whether there is target monitoring video corresponding with the video call instruction;
There is no during the target monitoring video, obtaining the target monitoring video, and the target monitoring video is carried out
Decode and render processing, the target monitoring video data after acquisition processing;
Target monitoring video data after processing is stored to the default storage region, and the target video data is transmitted
To the current virtual machine, so that the current virtual machine shows corresponding monitored picture according to the target video data.
2. the method as described in claim 1, it is characterised in that whether there is in the default storage region of lookup and regarded with described
After the corresponding target monitoring video of frequency call instruction, the method further includes:
There are during the target monitoring video, the corresponding target video data of the target monitoring video is transmitted to described work as
Preceding virtual machine, so that the current virtual machine shows corresponding monitored picture according to the target video data.
3. method as claimed in claim 2, it is characterised in that the physical server receives the video that current virtual machine is sent
Before call instruction, the method further includes:
Physical server receives the video request instruction that current virtual machine is sent, and is judged whether according to video request instruction
There are corresponding target monitoring video;
When there are during corresponding target monitoring video, the corresponding storage information of the target monitoring video being sent to described current
Virtual machine, so that the current virtual machine feeds back corresponding video call instruction according to the storage information.
4. method as claimed in claim 3, it is characterised in that the physical server receives the video that current virtual machine is sent
Request instruction, and according to the video request instruction judge whether corresponding target monitoring video after, the method is also
Including:
When there is no during corresponding target monitoring video, the target monitoring video being obtained from monitor video server, by institute
State target monitoring video to store to local storage space, and generate corresponding storage information.
5. method as claimed in claim 4, it is characterised in that the physical server receives the video that current virtual machine is sent
Request instruction, specifically includes:
Physical server receives current virtual machine and is instructed by the video request that the first default application programming interfaces are sent;
Correspondingly, the physical server receives the video call instruction that current virtual machine is sent, and specifically includes:
Physical server receives the video call instruction that current virtual machine is sent by the second default application programming interfaces.
6. such as Claims 1 to 5 any one of them method, it is characterised in that the method further includes:
Physical server obtains monitor video from monitor video server, and the monitor video of acquisition is cached to sky is locally stored
Between in.
7. method as claimed in claim 6, it is characterised in that the physical server is obtained from monitor video server and monitored
Video, and after the monitor video of acquisition is cached in local storage space, the method further includes:
Physical server carries out the monitor video of acquisition decoding and renders processing, and the monitor video after processing is stored to default
Storage region.
8. the method for claim 7, it is characterised in that the method further includes:
Physical server is less than pre- every the residual capacity of preset period of time detection local storage space in the residual capacity
If during threshold value, cache cleaner is carried out to locally-stored space.
9. a kind of physical server, it is characterised in that the physical server includes:Memory, processor and it is stored in described
On memory and the monitor video processing routine that can run on the processor, the monitor video processing routine are configured to reality
Now such as the step of monitor video processing method described in any item of the claim 1 to 8.
10. a kind of storage medium, it is characterised in that monitor video processing routine, the monitoring are stored with the storage medium
Realized when video processing program is executed by processor as described in any one of claim 1 to 8 the step of monitor video processing method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711062607.2A CN107959824A (en) | 2017-10-31 | 2017-10-31 | A kind of monitor video processing method, physical server and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711062607.2A CN107959824A (en) | 2017-10-31 | 2017-10-31 | A kind of monitor video processing method, physical server and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107959824A true CN107959824A (en) | 2018-04-24 |
Family
ID=61964258
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711062607.2A Pending CN107959824A (en) | 2017-10-31 | 2017-10-31 | A kind of monitor video processing method, physical server and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107959824A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110677699A (en) * | 2019-10-10 | 2020-01-10 | 上海依图网络科技有限公司 | Video stream and/or picture stream data sharing method and device and electronic equipment |
CN111885395A (en) * | 2020-06-11 | 2020-11-03 | 西安万像电子科技有限公司 | Video monitoring method, device and system |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102547394A (en) * | 2011-12-27 | 2012-07-04 | 福建升腾资讯有限公司 | Universal audio/video redirection method for cloud access devices under VDI (Video Desktop Infrastructure) environment |
WO2012106980A1 (en) * | 2011-02-11 | 2012-08-16 | 运软网络科技(上海)有限公司 | Virtual desktop method and virtual desktop infrastructure of multidimensional intelligent service point |
CN103116618A (en) * | 2013-01-28 | 2013-05-22 | 南开大学 | Telefile system mirror image method and system based on lasting caching of client-side |
CN104378586A (en) * | 2014-10-27 | 2015-02-25 | 深圳市京华科讯科技有限公司 | Image device reorientation method and system based on desktop virtualization |
CN105260229A (en) * | 2015-10-28 | 2016-01-20 | 北京百度网讯科技有限公司 | Method and device for pulling mirror image files of virtual machines |
CN105282624A (en) * | 2014-06-23 | 2016-01-27 | 中兴通讯股份有限公司 | Desktop cloud video play processing method and device |
CN105577819A (en) * | 2016-01-26 | 2016-05-11 | 杭州碧创科技有限公司 | Sharing system, sharing method and sharing device for virtual desktop |
CN106101794A (en) * | 2016-06-22 | 2016-11-09 | 杭州华三通信技术有限公司 | The processing method of a kind of virtual desktop video data, Apparatus and system |
CN106462507A (en) * | 2014-03-18 | 2017-02-22 | 大连理工大学 | Countering attacks on cache |
CN106534794A (en) * | 2016-11-30 | 2017-03-22 | 浙江宇视科技有限公司 | Video monitoring system remote control method and device |
CN107248989A (en) * | 2017-06-09 | 2017-10-13 | 浙江宇视科技有限公司 | Monitor video processing method and processing device |
-
2017
- 2017-10-31 CN CN201711062607.2A patent/CN107959824A/en active Pending
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012106980A1 (en) * | 2011-02-11 | 2012-08-16 | 运软网络科技(上海)有限公司 | Virtual desktop method and virtual desktop infrastructure of multidimensional intelligent service point |
CN102547394A (en) * | 2011-12-27 | 2012-07-04 | 福建升腾资讯有限公司 | Universal audio/video redirection method for cloud access devices under VDI (Video Desktop Infrastructure) environment |
CN103116618A (en) * | 2013-01-28 | 2013-05-22 | 南开大学 | Telefile system mirror image method and system based on lasting caching of client-side |
CN106462507A (en) * | 2014-03-18 | 2017-02-22 | 大连理工大学 | Countering attacks on cache |
CN105282624A (en) * | 2014-06-23 | 2016-01-27 | 中兴通讯股份有限公司 | Desktop cloud video play processing method and device |
CN104378586A (en) * | 2014-10-27 | 2015-02-25 | 深圳市京华科讯科技有限公司 | Image device reorientation method and system based on desktop virtualization |
CN105260229A (en) * | 2015-10-28 | 2016-01-20 | 北京百度网讯科技有限公司 | Method and device for pulling mirror image files of virtual machines |
CN105577819A (en) * | 2016-01-26 | 2016-05-11 | 杭州碧创科技有限公司 | Sharing system, sharing method and sharing device for virtual desktop |
CN106101794A (en) * | 2016-06-22 | 2016-11-09 | 杭州华三通信技术有限公司 | The processing method of a kind of virtual desktop video data, Apparatus and system |
CN106534794A (en) * | 2016-11-30 | 2017-03-22 | 浙江宇视科技有限公司 | Video monitoring system remote control method and device |
CN107248989A (en) * | 2017-06-09 | 2017-10-13 | 浙江宇视科技有限公司 | Monitor video processing method and processing device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110677699A (en) * | 2019-10-10 | 2020-01-10 | 上海依图网络科技有限公司 | Video stream and/or picture stream data sharing method and device and electronic equipment |
CN111885395A (en) * | 2020-06-11 | 2020-11-03 | 西安万像电子科技有限公司 | Video monitoring method, device and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107943594B (en) | Data acquisition method and device | |
US6477576B2 (en) | Methods, systems and computer program products for the automated discovery of a services menu | |
US8219759B2 (en) | Adaptive display caching | |
CN109088799B (en) | Client access method, device, terminal and storage medium | |
KR101198437B1 (en) | Method, apparatus and computer program product for providing context triggered distribution of context models | |
CN110096660A (en) | Method, apparatus and electronic equipment for loading page picture | |
US10860280B2 (en) | Display method and device | |
CN105163135B (en) | Method for down loading, apparatus and system and the mobile terminal of Internet resources | |
CN106230978A (en) | Distributed caching synchronous method, Apparatus and system | |
CN105487640A (en) | Image pre-loading and caching method of Android watch | |
Zbierski et al. | Bring the cloud to your mobile: Transparent offloading of html5 web workers | |
CN111756847A (en) | Method and device for supporting https protocol by website | |
CN102163197A (en) | Skin changing method, system and device | |
CN107959824A (en) | A kind of monitor video processing method, physical server and storage medium | |
CN111010379A (en) | Data login method and device based on block chain network | |
CN110460862B (en) | Live broadcast processing method, terminal equipment and storage medium | |
CN111241438B (en) | Cartoon picture display method, cartoon picture display device, cartoon picture display computer readable storage medium and cartoon picture display computer equipment | |
CN107958076A (en) | A kind of method, apparatus, storage medium and electronic equipment for loading embedded webpage | |
CN105721604A (en) | Data sending method and device based on downloading request of user | |
EP3759884B1 (en) | Artificial intelligence (ai) based enhanced resolution content delivery | |
CN110392417A (en) | Power consumption management method, terminal, computer equipment and storage medium | |
CN104346228A (en) | Application program sharing method and terminal | |
CN114064165A (en) | Application page processing method and device | |
CN111491210A (en) | Data processing method, device and system | |
CN111343172A (en) | Network access authority dynamic processing method and device |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180424 |