CN106534808B - A kind of video monitoring method and device based on virtual camera - Google Patents
A kind of video monitoring method and device based on virtual camera Download PDFInfo
- Publication number
- CN106534808B CN106534808B CN201611233270.2A CN201611233270A CN106534808B CN 106534808 B CN106534808 B CN 106534808B CN 201611233270 A CN201611233270 A CN 201611233270A CN 106534808 B CN106534808 B CN 106534808B
- Authority
- CN
- China
- Prior art keywords
- video
- virtual camera
- camera
- virtual
- code stream
- 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
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
- H04N7/181—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast for receiving images from a plurality of remote sources
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention discloses a kind of video monitoring method and device based on virtual camera, are applied to video monitoring system, and this method receives the basic flow video data from video camera, fictionalizes the virtual camera of predetermined quantity;The code stream request from video terminal is received, and flows end as the corresponding hair of the video terminal for the code stream request distribution virtual camera received;Basic flow video data is sent to hair stream end, requests corresponding code stream encapsulation format that will be sent to corresponding video terminal after the basic flow video data encapsulation at hair stream end according to code stream.The present invention realizes the shared use of video camera, greatly reduce the deployment quantity of physics video camera, improve the monitoring utilization rate of video camera, for compatible different platform, only need to distribute more virtual camera docking, and video camera only needs to send the basic flow after coding, reduces to the performance requirement of video camera, reduces the cost of investment of video camera.
Description
Technical field
The invention belongs to technical field of video monitoring, and in particular to a kind of video monitoring method based on virtual camera and
Device.
Background technique
Video monitoring system is the important component of safety and protection system, is widely used in various places and (such as makees
Industry place, office space, public place of entertainment, family etc.) security monitoring.Under prior art conditions, video monitoring system is usual
It is made of monitoring device end (i.e. camera) and monitor terminal (i.e. video terminal).
To the same scene monitoring, because monitor supervision platform (i.e. video terminal) docking mode of department at different levels is different, institute is simultaneous
The agreement of appearance is different, because needs are deployed according to video terminal in order to which each video terminal can be normally carried out monitoring
The video camera of corresponding quantity is arranged to meet the requirements the requirement of each video terminal in the agreement being compatible with, and thus causes and takes the photograph
The deployment redundancy of camera, monitoring cost are high.
To solve the problems, such as that video camera disposes redundancy, at high cost, the method that a kind of pair of video camera enables multi-code stream is proposed,
The network video device (comprising web camera or video encoder) of front end supports while generating multiple video code flows, these
Video code flow is completely independent configuration, can be respectively different resolution ratio, different frame speed, different compression ratios or
Different coding mode (H.264, MPEG-4 or MJPEG etc.), to meet different network access requirements.
In this way by a video camera, that is, compatible different monitoring platform, and efficiently solve deployment redundancy issue.Due to
Output multi-channel code stream simultaneously, it is very high to the performance requirement of video camera, directly result in equipment cost increase.
Summary of the invention
In view of the deficiencies of the prior art, the present invention provides a kind of video monitoring method and dress based on virtual camera
It sets, can effectively solve the problem of video camera disposes redundancy in more video monitoring systems.
To achieve the goals above, technical solution of the present invention is as follows:
A kind of video monitoring method based on virtual camera is applied to video monitoring system, the video monitoring system
Including video camera, and to the video camera request video flowing video terminal, the video monitoring based on virtual camera
Method, comprising:
The basic flow video data from video camera is received, the virtual camera of predetermined quantity is fictionalized;
It receives the code stream from video terminal to request, and the code stream request distribution virtual camera to receive is used as and is somebody's turn to do
The corresponding hair of video terminal flows end;
Basic flow video data is sent to hair stream end, requests corresponding code stream encapsulation format by the hair according to code stream
Corresponding video terminal is sent to after the received basic flow video data encapsulation in stream end.
Video monitoring system of the invention refers to multiple video terminals while monitoring the same application scenarios, based on of the invention
Method only needs to be arranged a video camera (physics video camera) for the scene of monitoring.
It should be noted that code stream request carries the tunneling of video terminal request code stream, needed after receiving pair
Code stream request is parsed, and basic flow video data is then packaged into corresponding format according to parsing result.In this way, passing through
Multiple virtual cameras are set, dock each video terminal with virtual camera, that is, it is compatible to can reach a physics video camera
The purpose of different agreements.
It further include each of to fictionalize and virtually to take the photograph preferably, the video monitoring method based on virtual camera
Corresponding virtual VLAN is arranged in camera;
The video monitoring method based on virtual camera, further includes:
Safeguard virtual camera service condition table, the virtual camera service condition table include virtual camera number,
The corresponding VLAN of virtual camera, virtual camera IP, compatible platform agreement and service condition.
The each virtual camera fictionalized in the present invention independently corresponds to an IP address, and by virtually imaging to be each
Machine is corresponding fictionalize a virtual VLAN make it is mutually isolated between the virtual camera.
Conveniently, the video monitoring method based on virtual camera, further includes:
Safeguard that media stream table, the media stream table include virtual camera number, code stream encapsulation format, purpose
Port, source port, destination IP and source IP.
Preferably, the video monitoring method based on virtual camera, further includes setting each virtual camera
Priority;
The code stream to receive requests to distribute virtual camera as the video terminal corresponding hair stream end to include: root
The code stream request distribution virtual camera received from unappropriated virtual camera according to the priority of virtual camera is made
End is flowed for hair.
Further preferably, when the video camera is PTZ camera, the video monitoring side based on virtual camera
Method, further includes:
The control instruction for being used to control PTZ camera that video terminal is sent to corresponding virtual camera is received, according to
The priority of the corresponding virtual camera of video terminal, the corresponding video terminal of virtual camera for allowing priority high is to holder
Video camera is controlled.
The present invention also provides a kind of video monitoring apparatus based on virtual camera, are applied to video monitoring system, institute
Stating video monitoring system includes video camera, and to the video terminal of video camera request video flowing, described to be based on virtually taking the photograph
The frequency monitoring device of camera, comprising:
Virtualization unit fictionalizes virtually taking the photograph for predetermined quantity for receiving the basic flow video data from video camera
Camera;
Requesting processing, for receiving the code stream request from video terminal, and the code stream request point to receive
End is flowed as the corresponding hair of the video terminal with virtual camera;
Code stream encapsulation unit, the basic flow video data sent for receiving the virtualization unit to hair stream end,
Request corresponding code stream encapsulation format that will be sent to phase after the received basic flow video data encapsulation in hair stream end according to code stream
The video terminal answered.
Preferably, each virtual camera setting that the virtualization unit is also used to fictionalize is corresponding virtual
VLAN,
The video monitoring apparatus based on virtual camera further includes form maintenance unit, for safeguarding virtual camera shooting
Machine service condition table,
The virtual camera service condition table includes virtual camera number, the corresponding VLAN of virtual camera, virtual
Video camera IP, compatible platform agreement and service condition.
Further preferably, the form maintenance unit, is also used to safeguard media stream table;
The media stream table includes virtual camera number, code stream encapsulation format, destination port, source port, purpose
IP and source IP.
Preferably, the virtualization unit is also used to set the priority of each virtual camera;
The requesting processing is reception from unappropriated virtual camera according to the priority of virtual camera
The code stream request distribution virtual camera arrived is as hair stream end.
Further preferably, when the video camera is PTZ camera, the video monitoring dress based on virtual camera
It sets, further includes cradle head control unit, taken the photograph for receive that video terminal sends to corresponding virtual camera for controlling holder
The control instruction of camera, and according to the priority of the corresponding virtual camera of video terminal, the virtual camera shooting for allowing priority high
The corresponding video terminal of machine controls PTZ camera.
Compared with prior art, the present invention realizes the shared use of video camera, greatly reduces the deployment of physics video camera
Quantity improves the monitoring utilization rate of video camera, for compatible different platform, it is only necessary to more virtual camera docking are distributed, and
Video camera only needs to send the basic flow after coding, reduces to the performance requirement of video camera, reduces the cost of investment of video camera.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of the video monitoring system of the embodiment of the present invention;
The present invention is based on the flow charts of the video monitoring method of virtual camera for the position Fig. 2;
Fig. 3 is that the present invention is based on the reception schematic diagrames of the video monitoring apparatus of virtual camera.
Specific embodiment
In order to better understand the present invention, below in conjunction with the specific embodiments and the drawings side that the present invention is further explained
Case, but the contents of the present invention are not limited solely to the following examples.
The present embodiment is described in detail by taking video monitoring system shown in FIG. 1 as an example, which includes
Video camera, and to the video terminal of video camera request video flowing, video terminal includes company A, company in the present embodiment
B ... ..., company X.Video camera connects interchanger in Fig. 1, and each video terminal passes through network connection interchanger, video camera acquisition prison
It controls the video image of scene and is encoded to obtain corresponding basic flow video data, basic flow video data does not carry out format
Encapsulation, and the basic flow video data is sent to interchanger, interchanger is for fictionalizing virtual camera and video terminal pair
It connects, and basic flow video data is carried out to be copied to each virtual camera, and right after the code stream request for receiving video terminal
The basic flow video data of respective virtual video camera is packaged, and the code stream after encapsulation is sent to corresponding video terminal.
In the present embodiment, video terminal is monitor terminal, can be the equipment such as PC machine, server, be located at company A, public
Take charge of B ... ..., company X.
Video camera shooting video image, by encoder be encoded to transmitting stream TS stream or PS flow, then plus for
The network messages such as UDP/TCP/RTP transmitted in IP network header information is so as to the data flow on network in the form of network message
It is transmitted.Basic flow video data (Elementary Stream) in the present embodiment is mainly based upon and gets rid of UDP/
Data flow after the header informations such as TCP/RTP, TS/PS/ONVIF, also referred to as naked code stream.
As shown in Fig. 2, the video monitoring method based on virtual camera of the present embodiment, specifically comprises the following steps:
(S1) video camera acquires the video image of monitoring scene and is encoded to obtain corresponding basic flow video data, and
The basic flow video data is sent to interchanger;
Video camera sends basic flow video data, and to interchanger, there are two types of modes:
Mode one: video camera in the form of M-VLAN active transmission multicast data flow to interchanger;
Mode two: interchanger proactive notification video camera, video camera receive basic flow video data after the notice with multicast
The form of VLAN sends multicast data flow to interchanger.In entire video monitoring system, each equipment has the network address of oneself.
Video camera transmission multicast data flow is as shown in table 1 to the data format of interchanger in the present embodiment, as a purpose with interchanger, with camera shooting
Machine is as source, and wherein purpose MAC and source IP respectively refer to the MAC Address and IP address of interchanger, and source MAC and source IP respectively refer to image
The MAC Address and IP address of machine.
Table 1
(S2) interchanger receives the virtual camera that predetermined quantity is fictionalized after basic stream video data;
As a kind of implementation, the virtual camera of predetermined quantity is fictionalized, wherein predetermined quantity can be in interchanger
It is arranged when factory, or inputs and set from user to interchanger before virtualization, the specific value of the predetermined quantity can be according to reality
Service condition setting, is able to satisfy application demand, the quantity without video terminal in other particular/special requirements, with video monitoring system
It is unrelated.And the virtual camera and video terminal fictionalized in this case is without corresponding relationship.
To guarantee that safety and reliability, each virtual camera fictionalized are all corresponding with virtual VLAN, virtual camera
Corresponding virtual VLAN can be accordingly generated when generation, while an also independent corresponding IP address, each virtual camera it
Between be isolated from each other and be independent of each other;And every video camera fictionalized occupies a physical resource of interchanger, can be compatible with difference
Platform.
As another implementation, the predetermined quantity of virtual camera is equal to video in system (i.e. video monitoring system)
The quantity of terminal fictionalizes corresponding virtual camera conduct for each video terminal when fictionalizing virtual camera respectively
Corresponding hair stream end.And there are one-to-one relationships with video terminal for the virtual camera fictionalized in this case.
In actual implementation, it fictionalizes virtual camera and is also set with priority, to avoid conflicting, any two are virtually imaged
The priority of machine must be different.It is subsequent when distributing virtual camera for video terminal when setting priority, according to preferential
Grade is distributed;It is subsequent when distributing virtual camera for video terminal if not setting priority, it can be according to virtual camera
Number or title sort to distribute.
The priority of each virtual camera can set at random or be referred to according to application demand according to certain strategy
It is fixed.In general, when the virtual camera and video terminal fictionalized is without corresponding relationship, the priority of each virtual camera can be with
Random setting;It, can be according to certain strategy setting, example when the virtual camera and video terminal one-to-one relationship fictionalized
Such as, it is set, such as can be set according to the user identity of video terminal according to the identity of corresponding video terminal: in two videos
When the user of terminal is respectively provincial and city-level, then city-level is higher than with the priority of the corresponding virtual camera of provincial video terminal
The corresponding virtual camera of video terminal.
Priority can use various representation methods, such as English alphabet, number, the even character of self-defining.For
It is easy to implement, digital representation is used in the present embodiment, directly each virtual camera compiled using number according to priority
Number, number is smaller, then priority is higher.
Exchange opportunity safeguards a virtual camera priority level table when practical application, records the power of each virtual camera
Limit rank (i.e. priority) as shown in table 2, including virtual camera number, the corresponding VLAN of virtual camera, virtual camera IP,
Service condition and Permission Levels.
Table 2
The quantity of virtual camera can remain unchanged during entire monitoring, can also be with dynamic change.
For the utilization system resource of maximum possible, dynamic change scheme is used in the present embodiment, records each virtual camera shooting
The service condition of machine monitors service condition (idle or two kinds of uses of use of each virtual camera in real time in specific implementation
Situation), the quantity of virtual camera is adjusted according to service condition.If free time is more than preset time threshold, release should
The system resource that virtual camera occupies.Practical be understood to of system resource for discharging virtual camera deletes the virtual camera shooting
Machine, the system resource of release can be used to implement other operations.
It should be noted that free time refers to continuous free time, it is idle if be switched to service condition by idle condition
Reclocking after time needs to be zeroed;The value of preset time threshold can be set without particular/special requirement according to practical application request.
To guarantee control real-time, interchanger, which is also safeguarded, virtual camera service condition table, service condition table record
There is the letter such as virtual camera number, the corresponding VLAN of virtual camera, virtual camera IP, compatible platform agreement and service condition
Breath, it is specific as shown in table 3.Whenever the service condition for monitoring virtual camera changes, just in time to virtual camera
Corresponding contents in service condition table are updated, and so as to monitor the service condition of each virtual camera, are also convenient for moving
State adjusts virtual camera.
Table 3
(S3) video terminal sends code stream request to interchanger according to their needs, and interchanger is received from video terminal
Code stream request after, be the code stream request distribution virtual camera that receives as the video terminal corresponding hair stream end;
Interchanger is the virtual camera shooting of code stream request distribution received according to the priority and use state of virtual camera
Machine selects the virtual camera of not used highest priority to be assigned as code stream request every time.
When specific implementation, by inquiring virtual camera service condition table, selected from the virtual camera service condition table
In one do not using, and number the smallest virtual camera X, hair stream end as this session.
The tunneling of request code stream, the address of video terminal itself are carried in the request of video terminal transmitted stream
(IP address, port numbers) etc..After interchanger receives code stream request, it is necessary first to parse, extract to code stream request
Relevant information out, such as tunneling of request code stream, address (IP address, port numbers) of corresponding video terminal etc., and according to
The tunneling of request code stream determines the code stream format of video terminal request, according to the address and video terminal for being elected to be hair stream end
Address determines address and the port numbers of the transmitting-receiving Media Stream of the request.
Interchanger is code stream request distribution virtual camera, actually by the virtual camera and corresponding video terminal
Network interconnection (by setting respective destination IP, source IP and destination port and source port etc.) is carried out, makes the two can be mutual
Carry out information exchange.
After determining code stream format, each other address of transmitting-receiving Media Stream and port numbers, hair stream end can be according to corresponding port
And address list item, media stream is gone out into (i.e. progress information exchange), in order to guarantee the correct encapsulation and transmission of data, exchange
Machine safeguards media stream table, to record the address and port numbers (including destination port, source port, the destination IP that receive Media Stream
And source IP), code stream encapsulation format and the corresponding virtual camera number as hair stream end, it is specific as shown in table 4.
Table 4
(S4) basic flow video data is sent to hair stream end, requests corresponding code stream encapsulation format that hair is flowed end according to code stream
Corresponding video terminal is sent to after received basic flow video data encapsulation.
In actual implementation, interchanger receives the basic flow video data from video camera, and to as the virtual of hair stream end
Video camera sends basic flow video data.
Specifically, basic flow video data is sent to the virtual camera as hair stream end:
Basic flow video data only can be sent to the virtual camera for being allocated as hair stream end, be also possible to virtual
Each virtual camera out sends basic flow video data.In view of sending the system money of basic flow video data consumption
Source preferably only can send basic flow video data to the virtual camera for being allocated as hair stream end.
The tunneling (code stream encapsulation format) that request code stream is carried in code stream request, according to asking for different video terminal
Ask the tunneling of code stream that basic flow video data is packaged into different formats.For example, whole for the video corresponding to company A
The basic flow video data of corresponding virtual camera is packaged into UDP+PS code stream format, for the video for corresponding to company B by end
The basic flow video data of corresponding virtual camera is packaged into UDP+TS code stream by terminal, whole for the video corresponding to company X
The basic flow video data of corresponding virtual camera is packaged into TCP+TS code stream by end.
Further, when basic flow video data is sent to video terminal by interchanger, first to transmitted stream transport protocol
It is detected, if it is udp protocol code stream, then just directly transmitting away, not will do it caching;If it is Transmission Control Protocol code stream,
So hair flow module can empty the cache again after the confirmation message for receiving opposite end, confiscate to the message temporary cache sent out
Confirmation message can retransmit at regular intervals, to guarantee that data can be reached completely.
As can be seen that more video terminal video monitoring methods based on virtual camera of the present embodiment are broadly divided into two
Part, first part are that interchanger fictionalizes virtual camera (including step S1), and second part is the monitoring of virtual camera
Business procession (including step S2~S4).
The video monitoring method of the present embodiment further includes receiving video terminal to correspondence when front end is PTZ camera
Virtual camera send for controlling the control instruction of PTZ camera, and according to the corresponding virtual camera of video terminal
Priority, allow the high corresponding video terminal of virtual camera of priority to control PTZ camera.
Control to camera pan-tilt, the Permission Levels situation operation for needing to be set according to virtual camera.Virtual camera shooting
Machine can successively number the size of distribution permission according to virtual camera, number small virtual camera when virtual generate,
Permission is bigger.
Control instruction is issued to video camera, there are following three kinds of situations:
Situation one: it receives and is used to control PTZ camera from what video terminal was sent to the virtual camera of connection
When control instruction, and the control that camera pan-tilt (i.e. holder) virtual camera that is just receiving control instruction by priority ratio is high
System, at this point, the big virtual camera of permission cannot seize control, to currently control after (holder stops operation time-out one
Fix time, the time is adjustable, sets according to actual needs)), by receiving the virtual camera machine root in control instruction
Holder is operated according to the control instruction received;
Situation two: it receives and is used to control PTZ camera from what video terminal was sent to the virtual camera of connection
When control instruction, and the control that holder is just low by the priority ratio virtual camera, at this point, the big virtual camera of permission can be with
Control is seized, i.e., is directly referred to by the virtual camera machine for receiving highest priority in control instruction according to the control received
Order operates holder;
Situation three: while receiving and being used to control holder from what different video terminal was sent to the virtual camera of connection
The control instruction of video camera, and when holder is not controlled processed, the virtual camera of highest priority refers to according to the control received
Order operates holder;And when holder is controlled, the priority for controlling the virtual camera of holder is connect with all
The priority for receiving the virtual camera of control instruction is compared, and carries out subsequent behaviour according to situation one and two according to comparison result
Make.
Such as:
Current holder is controlled by the virtual camera that priority is 3:
If (a) only receiving a control instruction:
When the priority for the corresponding virtual camera of video terminal for sending the control instruction is 2, then directly by priority
The virtual camera that priority is 3, which is taken over, for 2 controls holder;
When the priority for the corresponding virtual camera of video terminal for sending the control instruction is 4, then continuation is by priority
Holder is controlled for 3 virtual camera, the void that priority is 3 is taken over by the virtual camera that priority is 2 again after
Quasi- camera control holder;
If (b) receiving two control instructions:
When the priority for corresponding two virtual cameras of video terminal for sending two control instructions is respectively 2 and 4,
The virtual camera that priority is 3 is directly then taken over by the virtual camera that priority is 2 and controls holder;
When the priority of corresponding two virtual cameras of video terminal for sending control instruction is respectively 4 and 5, then after
The continuous virtual camera for being 3 by priority controls holder, is taken over preferentially by the virtual camera that priority is 4 again after
Grade controls holder for 3 virtual camera.
If interchanger receives 2 control instructions simultaneously, and two control instructions send the video of the control instruction respectively
The priority of the corresponding virtual camera of terminal is 2
It should be noted that after thering is the system resource of virtual camera to be released (i.e. the virtual camera is deleted),
The priority number of remaining virtual camera is constant, such as the virtual camera that priority is 2 is deletion, and corresponding priority is
The priority of 3 virtual camera remains as 3.
Corresponding to the above method, the present embodiment also proposed a kind of video monitoring apparatus based on virtual camera, application
In video monitoring system as shown in Figure 1, correspond to interchanger described in the above method, i.e., in the above-mentioned methods with interchanger
For be illustrated.The device can be dedicated specific installation, also can integrate between video terminal and video camera
The network equipment on, such as integrated in a switch or be integrated in the encoder or network hard disk video recorder being connected with video camera
On NVR.
The video monitoring apparatus based on virtual camera of the present embodiment is as shown in Figure 3, comprising:
Virtualization unit fictionalizes virtually taking the photograph for predetermined quantity for receiving the basic flow video data from video camera
Camera;
Requesting processing, for receiving the code stream request from video terminal, and the code stream request point to receive
End is flowed as the corresponding hair of the video terminal with virtual camera;
Code stream encapsulation unit sends basic flow video data to hair stream end for receiving virtualization unit, according to code
Stream requests corresponding code stream encapsulation format that will be sent to corresponding view after the received basic flow video data encapsulation in hair stream end
Frequency terminal.
Wherein, virtualization unit is also used to that corresponding virtual VLAN is arranged for each virtual camera fictionalized.
When specific implementation, video monitoring apparatus further includes form maintenance unit, for safeguarding virtual camera service condition
Table and media stream table.Virtual camera service condition table to check or dynamic adjustment virtual camera, media stream
Table can guarantee the correct encapsulation and transmission of data.
Further, virtualization unit is also used to set the excellent of each virtual camera in the video monitoring apparatus of the present embodiment
First grade;
The code that requesting processing is received from unappropriated virtual camera according to the priority of virtual camera
Stream request distribution virtual camera is as hair stream end.
Further, when video camera is PTZ camera, the video monitoring apparatus based on virtual camera further includes holder
Control unit refers to for receiving the control for controlling PTZ camera that video terminal is sent to corresponding virtual camera
It enables, and according to the priority of the corresponding virtual camera of video terminal, the corresponding video of virtual camera for allowing priority high
Terminal controls PTZ camera.
Video monitoring apparatus of the present embodiment based on virtual camera, when carrying out video monitoring according to the present embodiment Fig. 2
Shown in video monitoring method.
It should be noted that the video camera of the present embodiment, image and coding for acquiring monitoring scene are obtained accordingly
Basic flow video data, and basic flow video data is sent in the form of M-VLAN.It is sent in a manner of M-VLAN basic
Stream video data can effectively reduce the occupancy of bandwidth to interchanger.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.
Claims (8)
1. a kind of video monitoring method based on virtual camera is applied to video monitoring system, the video monitoring system packet
Include video camera, and to the video terminal of video camera request video flowing, which is characterized in that described based on virtual camera
Video monitoring method, comprising:
The basic flow video data from video camera is received, the virtual camera of predetermined quantity is fictionalized;
The code stream request from video terminal is received, and distributes virtual camera as the video for the code stream request received
The corresponding hair of terminal flows end;
Basic flow video data is sent to hair stream end, corresponding code stream encapsulation format is requested according to code stream, the hair is flowed
Corresponding video terminal is sent to after holding received basic flow video data to encapsulate;
The video monitoring method based on virtual camera, further includes:
Set the priority of each virtual camera;
The code stream request distribution virtual camera to receive flows end as the corresponding hair of the video terminal, comprising:
The code stream request distribution received from unappropriated virtual camera according to the priority of virtual camera is virtually taken the photograph
Camera is as hair stream end.
2. as described in claim 1 based on the video monitoring method of virtual camera, which is characterized in that described to be based on virtually taking the photograph
The video monitoring method of camera, further includes:
Corresponding virtual VLAN is arranged in each virtual camera to fictionalize;
Safeguard that virtual camera service condition table, the virtual camera service condition table include that virtual camera numbers, is virtual
The corresponding VLAN of video camera, virtual camera IP, compatible platform agreement and service condition.
3. as claimed in claim 2 based on the video monitoring method of virtual camera, which is characterized in that described to be based on virtually taking the photograph
The video monitoring method of camera, further includes:
Safeguard that media stream table, the media stream table include virtual camera number, code stream encapsulation format, destination
Mouth, source port, destination IP and source IP.
4. as described in claim 1 based on the video monitoring method of virtual camera, which is characterized in that be in the video camera
When PTZ camera, the video monitoring method based on virtual camera, further includes:
The control instruction for being used to control PTZ camera that video terminal is sent to corresponding virtual camera is received, according to video
The priority of the corresponding virtual camera of terminal, the corresponding video terminal of virtual camera for allowing priority high image holder
Machine is controlled.
5. a kind of video monitoring apparatus based on virtual camera is applied to video monitoring system, the video monitoring system packet
Include video camera, and to the video terminal of video camera request video flowing, which is characterized in that described based on virtual camera
Frequency monitoring device, comprising:
Virtualization unit fictionalizes the virtual camera of predetermined quantity for receiving the basic flow video data from video camera;
Requesting processing, for receiving the code stream request from video terminal, and it is empty for the code stream request distribution received
Quasi- video camera flows end as the corresponding hair of the video terminal;
Code stream encapsulation unit, the basic flow video data sent for receiving the virtualization unit to hair stream end, according to
It is corresponding that code stream requests corresponding code stream encapsulation format that will be sent to after the received basic flow video data encapsulation in hair stream end
Video terminal;
The virtualization unit is also used to set the priority of each virtual camera;
The code that the requesting processing is received from unappropriated virtual camera according to the priority of virtual camera
Stream request distribution virtual camera is as hair stream end.
6. as claimed in claim 5 based on the video monitoring apparatus of virtual camera, which is characterized in that the virtualization unit
It is also used to that a corresponding virtual VLAN is arranged for each virtual camera fictionalized;
The video monitoring apparatus based on virtual camera further includes form maintenance unit, for safeguarding that virtual camera makes
With situation table, the virtual camera service condition table includes virtual camera number, the corresponding VLAN of virtual camera, virtual
Video camera IP, compatible platform agreement and service condition.
7. as claimed in claim 6 based on the video monitoring apparatus of virtual camera, which is characterized in that the form maintenance list
Member is also used to safeguard media stream table:
The media stream table include virtual camera number, code stream encapsulation format, destination port, source port, destination IP and
Source IP.
8. as claimed in claim 5 based on the video monitoring apparatus of virtual camera, which is characterized in that be in the video camera
When PTZ camera, the video monitoring apparatus based on virtual camera, further includes cradle head control unit, for receiving video
The control instruction for being used to control PTZ camera that terminal is sent to corresponding virtual camera, and it is corresponding according to video terminal
The priority of virtual camera, the corresponding video terminal of virtual camera for allowing priority high control PTZ camera
System.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611233270.2A CN106534808B (en) | 2016-12-28 | 2016-12-28 | A kind of video monitoring method and device based on virtual camera |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611233270.2A CN106534808B (en) | 2016-12-28 | 2016-12-28 | A kind of video monitoring method and device based on virtual camera |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106534808A CN106534808A (en) | 2017-03-22 |
CN106534808B true CN106534808B (en) | 2019-10-18 |
Family
ID=58337901
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611233270.2A Active CN106534808B (en) | 2016-12-28 | 2016-12-28 | A kind of video monitoring method and device based on virtual camera |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106534808B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108737769A (en) * | 2017-04-14 | 2018-11-02 | 杭州登虹科技有限公司 | The method that live video stream is accessed into video monitoring |
CN108184091B (en) * | 2017-12-28 | 2020-10-20 | 浙江宇视科技有限公司 | Video monitoring equipment deployment method and device |
CN110320525B (en) * | 2018-03-28 | 2023-12-29 | 北醒(北京)光子科技有限公司 | Cooperative distance measurement method and system for multiple optical distance measurement devices |
CN110493203A (en) * | 2019-07-31 | 2019-11-22 | 湖南微算互联信息技术有限公司 | A kind of cloud cell-phone camera head controlling method, system, device and storage medium |
CN112749022B (en) * | 2019-10-29 | 2024-05-31 | 阿里巴巴集团控股有限公司 | Camera resource access method, operating system, terminal and virtual camera |
CN111447103B (en) * | 2020-03-09 | 2022-01-28 | 杭州海康威视系统技术有限公司 | Virtual device management system, electronic device, virtual device management method, and medium |
CN114124997A (en) * | 2021-11-10 | 2022-03-01 | 云知声(上海)智能科技有限公司 | Extended platform logic equipment system based on Internet of things |
CN114697572B (en) * | 2022-04-15 | 2023-09-22 | 北京国基科技股份有限公司 | Video scheduling method and device |
CN115297259B (en) * | 2022-07-27 | 2023-10-13 | 天翼云科技有限公司 | Camera management method, terminal and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1697411A (en) * | 2004-05-14 | 2005-11-16 | 网码通公司 | Virtual IP support method of device for built-in network service program |
CN101594510A (en) * | 2009-06-23 | 2009-12-02 | 腾讯科技(深圳)有限公司 | A kind of method and system that realize the camera resource-sharing |
CN101833520A (en) * | 2009-03-11 | 2010-09-15 | 凹凸电子(武汉)有限公司 | Method for simultaneously utilizing one camera by computer system and a plurality of application programs |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8284267B2 (en) * | 2009-03-11 | 2012-10-09 | O2Micro Inc. | Virtual camera for sharing a physical camera |
US20150077509A1 (en) * | 2013-07-29 | 2015-03-19 | ClearOne Inc. | System for a Virtual Multipoint Control Unit for Unified Communications |
-
2016
- 2016-12-28 CN CN201611233270.2A patent/CN106534808B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1697411A (en) * | 2004-05-14 | 2005-11-16 | 网码通公司 | Virtual IP support method of device for built-in network service program |
CN101833520A (en) * | 2009-03-11 | 2010-09-15 | 凹凸电子(武汉)有限公司 | Method for simultaneously utilizing one camera by computer system and a plurality of application programs |
CN101594510A (en) * | 2009-06-23 | 2009-12-02 | 腾讯科技(深圳)有限公司 | A kind of method and system that realize the camera resource-sharing |
Also Published As
Publication number | Publication date |
---|---|
CN106534808A (en) | 2017-03-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106534808B (en) | A kind of video monitoring method and device based on virtual camera | |
KR101574031B1 (en) | Real-time multi-media streaming bandwidth management | |
CN109495713B (en) | Video conference control method and device based on video networking | |
CN108737768B (en) | Monitoring method and monitoring device based on monitoring system | |
CN110572433B (en) | Video scheduling method, system and device | |
CN109150905B (en) | Video network resource release method and video network sharing platform server | |
CN112261353B (en) | Video monitoring and shunting method, system and computer readable storage medium | |
JP2003218935A (en) | Unicast-multicast conversion apparatus and video monitor system | |
CN110049271B (en) | Video networking conference information display method and device | |
CN109379254B (en) | Network connection detection method and system based on video conference | |
CN110191315B (en) | Monitoring and checking method and device based on video network | |
CN111083425A (en) | Video stream processing method and device, server, electronic equipment and storage medium | |
CN110113558B (en) | Data processing method, device, system and computer readable storage medium | |
CN111224889A (en) | Data transmission method and device | |
CN112866390B (en) | Data transmission method, device, terminal equipment and storage medium | |
CN111447412B (en) | Multi-stream data distribution method and system based on content grading | |
CN110392275B (en) | Sharing method and device for manuscript demonstration and video networking soft terminal | |
CN109963123B (en) | Camera control method and device | |
CN109842630B (en) | Video processing method and device | |
CN110086773B (en) | Audio and video data processing method and system | |
CN110191091A (en) | Method for monitoring and controlling and device | |
CN110572608B (en) | Frame rate setting method and device, electronic equipment and storage medium | |
CN110139059B (en) | Method and device for allocating video networking resources | |
EP1905225A1 (en) | Method and system for transmitting video to a mobile terminal | |
CN110351247B (en) | Parameter acquisition method, device and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |