CN110392233A - Monitor video processing method, device and storage medium - Google Patents
Monitor video processing method, device and storage medium Download PDFInfo
- Publication number
- CN110392233A CN110392233A CN201910538734.8A CN201910538734A CN110392233A CN 110392233 A CN110392233 A CN 110392233A CN 201910538734 A CN201910538734 A CN 201910538734A CN 110392233 A CN110392233 A CN 110392233A
- Authority
- CN
- China
- Prior art keywords
- streaming media
- media server
- monitoring
- server
- branch
- 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.)
- Granted
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
Abstract
The present invention provides a kind of monitor video processing method, device and storage mediums.Monitor video processing method includes: that mobile terminal watches monitoring request, described to watch that monitoring request carries target device mark;Mobile terminal determines the associated streaming media server of monitoring device corresponding with target device mark;Mobile terminal if it is determined that the associated streaming media server is branch's streaming media server, then disconnect with the connection of the main line streaming media server, and establish the connection with branch's streaming media server;Mobile terminal obtains the target device by branch's streaming media server and identifies corresponding monitoring device monitor video collected.Bai Fumei can reduce the processing pressure of main line streaming media server, save the bandwidth of main line streaming media server.
Description
Technical field
The present invention relates to monitoring technology fields, more particularly to a kind of monitor video processing method, device and storage medium.
Background technique
In recent years, with computer, network and image procossing, the rapid development of transmission technology, Video Supervision Technique
There is significant progress.Video monitoring is the important component of safety and protection system.Video monitoring is intuitive with it, it is accurate and
When and the information content it is abundant and be widely used in many occasions.
In the prior art, on the same server, user can request to watch monitoring by server for monitoring device connection
The monitor video of equipment acquisition.But the continuous growth of monitoring device quantity, cause the processing pressure of server increasing.
Summary of the invention
In view of the above problems, it proposes the embodiment of the present invention and overcomes the above problem or at least partly in order to provide one kind
A kind of monitor video processing method, device and the storage medium to solve the above problems.
In a first aspect, the embodiment of the invention discloses a kind of monitor video processing method, multiple monitoring devices and multiple streams
Media server association, the multiple streaming media server include that a main line streaming media server and multiple branch's Streaming Medias take
Business device, mobile terminal are connect with the main line streaming media server;The described method includes:
The mobile terminal watches monitoring request, described to watch that monitoring request carries target device mark;
The mobile terminal determines the associated streaming media server of monitoring device corresponding with target device mark;
The mobile terminal if it is determined that the associated streaming media server be branch's streaming media server, then disconnect
With the connection of the main line streaming media server, and establish and the connection of branch's streaming media server;
The mobile terminal obtains the corresponding monitoring of the target device mark by branch's streaming media server and sets
Standby monitor video collected.
Optionally, the multiple monitoring device is connect with monitoring access server, and the monitoring access server and view join
Network server communication connection, the multiple streaming media server and the view networked server communicate to connect;The mobile terminal
The target device, which is obtained, by branch's streaming media server identifies corresponding monitoring device monitor video collected
Step, comprising: the mobile terminal watches that monitoring request is encapsulated as the first Internet protocol request packet for described, and by described the
One Internet protocol request packet is sent to branch's streaming media server;Branch's streaming media server is mutual by described first
Networking protocol request packet is converted to the first view networking protocol request packet, and by the first view networking protocol request packet via described
The monitoring access server is forwarded to depending on networked server;Branch's streaming media server receives the monitoring access service
The view networking protocol data packet that device is returned via the view networked server;It is described to have the prison depending on networking protocol packet encapsulation
Control video;Branch's streaming media server is converted to the Internet protocol data packet depending on networking protocol data packet for described, and will
The Internet protocol data packet is back to the mobile terminal.
Optionally, the step that the first Internet protocol request packet is converted to the first view networking protocol request packet
Suddenly, comprising: parse the first Internet protocol request packet, monitoring request is watched described in extraction;Monitoring request is watched to be described
The first view of addition networking protocol packet header watches that monitoring requests to be encapsulated as first and ask depending on networking protocol for described based on view networking protocol
Seek packet.
Optionally, described by described the step of being converted to the Internet protocol data packet depending on networking protocol data packet, comprising: solution
The view networking protocol data packet is analysed, the monitor video is extracted;Internet Protocol header is added for the monitor video, is based on
The monitor video is encapsulated as the Internet protocol data packet by Internet protocol.
Optionally, the target device mark is obtained by branch's streaming media server in the mobile terminal to correspond to
Monitoring device monitor video collected the step of after, further includes: the mobile terminal, which receives, stops watching monitoring request,
Stop obtaining the corresponding monitoring device of target device mark monitoring view collected by branch's streaming media server
Frequently;The mobile terminal disconnects the connection with branch's streaming media server, and establishes and the main line streaming media server
Connection.
Optionally, the multiple monitoring device is connect with monitoring access server, and the monitoring access server and view join
Network server communication connection, the multiple streaming media server and the view networked server communicate to connect;The stopping passes through
Branch's streaming media server obtains the step of target device identifies corresponding monitoring device monitor video collected,
Including: the mobile terminal watches that monitoring request is encapsulated as the second Internet protocol request packet for the stopping, and by described the
Two Internet protocol request packets are sent to branch's streaming media server;Branch's streaming media server is mutual by described second
Networking protocol request packet is converted to the second view networking protocol request packet, and by the second view networking protocol request packet via described
The monitoring access server is forwarded to depending on networked server.
Optionally, the step that the second Internet protocol request packet is converted to the second view networking protocol request packet
Suddenly, comprising: parsing the second Internet protocol request packet extracts the stopping and watches monitoring request;It is watched for the stopping
It monitors and requests the second view of addition networking protocol packet header, request to be encapsulated as second based on watching to monitor by the stopping depending on networking protocol
Depending on networking protocol request packet.
Second aspect, the embodiment of the invention discloses a kind of monitor video processing unit, multiple monitoring devices and multiple streams
Media server association, the multiple streaming media server include that a main line streaming media server and multiple branch's Streaming Medias take
Business device, mobile terminal are connect with the main line streaming media server;The mobile terminal includes:
First receiving module, it is described to watch that monitoring request carries target device mark for watching monitoring request;
Determining module, for determining the associated streaming media server of monitoring device corresponding with target device mark;
First link block, be used for if it is determined that the associated streaming media server be branch's streaming media server,
The connection with the main line streaming media server is then disconnected, and establishes the connection with branch's streaming media server;
Module is obtained, is set for obtaining the corresponding monitoring of the target device mark by branch's streaming media server
Standby monitor video collected.
Optionally, the multiple monitoring device is connect with monitoring access server, and the monitoring access server and view join
Network server communication connection, the multiple streaming media server and the view networked server communicate to connect;The acquisition module
It include: the first transmission unit, for watching that monitoring request is encapsulated as the first Internet protocol request packet for described, and by described the
One Internet protocol request packet is sent to branch's streaming media server;Branch's streaming media server includes: first turn
Block is changed the mold, for the first Internet protocol request packet to be converted to the first view networking protocol request packet, and by described first
The monitoring access server is forwarded to depending on networked server via described depending on networking protocol request packet;Second receiving module is used
In the view networking protocol data packet that the reception monitoring access server is returned via the view networked server;The view networking
Protocol data encapsulation has the monitor video;Second conversion module, for being converted to described mutually depending on networking protocol data packet
Networking protocol data packet, and the Internet protocol data packet is back to the mobile terminal.
Optionally, first conversion module includes: the first resolution unit, is asked for parsing first Internet protocol
Packet is sought, monitoring request is watched described in extraction;First encapsulation unit, for watching monitoring request addition the first view networking association for described in
Discuss packet header, based on view networking protocol by it is described watch monitoring request be encapsulated as the first view networking protocol request packet.
Optionally, second conversion module includes: the second resolution unit, for parsing the view networking protocol data
Packet, extracts the monitor video;Second encapsulation unit, for adding Internet Protocol header for the monitor video, based on mutual
The monitor video is encapsulated as the Internet protocol data packet by networking protocol.
Optionally, the mobile terminal further include: third receiving module stops watching monitoring request for receiving;Stop
Module is obtained, obtains the corresponding monitoring device institute of the target device mark by branch's streaming media server for stopping
The monitor video of acquisition;Second link block, for disconnect with the connection of branch's streaming media server, and establish with it is described
The connection of main line streaming media server.
Optionally, the multiple monitoring device is connect with monitoring access server, and the monitoring access server and view join
Network server communication connection, the multiple streaming media server and the view networked server communicate to connect;The stopping obtains
Module includes: the second transmission unit, for the stopping to be watched that monitoring request is encapsulated as the second Internet protocol request packet, and
The second Internet protocol request packet is sent to branch's streaming media server;Branch's streaming media server packet
It includes: third conversion module, for the second Internet protocol request packet to be converted to the second view networking protocol request packet, and will
Described second is forwarded to the monitoring access server depending on networked server via described depending on networking protocol request packet.
Optionally, the third conversion module includes: third resolution unit, is asked for parsing second Internet protocol
Packet is sought, the stopping is extracted and watches monitoring request;Third encapsulation unit, for watching monitoring request addition second for the stopping
Depending on networking protocol packet header, request to be encapsulated as the request of the second view networking protocol based on watching to monitor by the stopping depending on networking protocol
Packet.
The third aspect, the embodiment of the invention discloses a kind of monitor video processing units characterized by comprising one
Or multiple processors;With the one or more machine readable medias for being stored thereon with instruction, when by one or more of processing
When device executes, so that described device executes monitor video processing method as described above.
Fourth aspect, the embodiment of the invention discloses a kind of computer readable storage mediums, which is characterized in that it was stored
Computer program makes processor execute monitor video processing method as described above.
In the embodiment of the present invention, mobile terminal watches monitoring request, watches that monitoring request carries target device mark;
Mobile terminal determines the associated streaming media server of monitoring device corresponding with target device mark;Mobile terminal if it is determined that
Associated streaming media server is branch's streaming media server, then disconnect with the connection of main line streaming media server, and establish with
The connection of branch's streaming media server;Mobile terminal is identified corresponding by branch's streaming media server acquisition target device
Monitoring device monitor video collected.It follows that main line streaming media server and more is arranged in the embodiment of the present invention
A branch's streaming media server, main line streaming media server can dock multiple business, such as video monitoring, video conference etc.,
Branch's streaming media server mainly docks video monitoring service, mobile terminal default connection main line streaming media server, when receiving
The monitoring device seen is associated when being branch's streaming media server, and mobile terminal switchs to connect branch's streaming media server, passes through
Branch's streaming media server watches monitor video, to reduce the processing pressure of main line streaming media server, saves main line stream matchmaker
The bandwidth of body server.
Detailed description of the invention
Fig. 1 is a kind of networking schematic diagram of view networking of the invention;
Fig. 2 is a kind of hardware structural diagram of node server of the invention;
Fig. 3 is a kind of hardware structural diagram of access switch of the invention;
Fig. 4 is the hardware structural diagram that a kind of Ethernet association of the invention turns gateway;
Fig. 5 is a kind of step flow chart of monitor video processing method of the embodiment of the present invention one;
Fig. 6 is a kind of schematic diagram of monitor video treatment process of the embodiment of the present invention one;
Fig. 7 is a kind of step flow chart of monitor video processing method of the embodiment of the present invention two;
Fig. 8 is a kind of structural block diagram of monitor video processing unit of the embodiment of the present invention three.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real
Applying mode, the present invention is described in further detail.
It is the important milestone of network Development depending on networking, is a real-time network, can be realized HD video real-time Transmission,
Push numerous Internet applications to HD video, high definition is face-to-face.
Real-time high-definition video switching technology is used depending on networking, it can be such as high in a network platform by required service
Clear video conference, Intellectualized monitoring analysis, emergency command, digital broadcast television, delay TV, the Web-based instruction, shows video monitoring
Field live streaming, VOD program request, TV Mail, individual character records (PVR), Intranet (manages) channel by oneself, intelligent video Broadcast Control, information publication
All be incorporated into a system platform etc. services such as tens of kinds of videos, voice, picture, text, communication, data, by TV or
Computer realizes that high-definition quality video plays.
Embodiment in order to enable those skilled in the art to better understand the present invention is introduced to depending on networking below:
Depending on networking, applied portion of techniques is as described below:
Network technology (Network Technology)
Traditional ethernet (Ethernet) is improved depending on the network technology innovation networked, with potential huge on network
First video flow.It is exchanged different from simple network packet packet switch (Packet Switching) or lattice network
(Circuit Switching) meets Streaming demand using Packet Switching depending on networking technology.Depending on skill of networking
Art has flexible, the simple and low price of packet switch, is provided simultaneously with the quality and safety assurance of circuit switching, realizes the whole network friendship
Change the seamless connection of formula virtual circuit and data format.
Switching technology (Switching Technology)
Two advantages of asynchronous and packet switch that Ethernet is used depending on networking eliminate Ethernet under the premise of complete compatible and lack
It falls into, has the end-to-end seamless connection of the whole network, direct user terminal, directly carrying IP data packet.User data is in network-wide basis
It is not required to any format conversion.It is the more advanced form of Ethernet depending on networking, is a real-time exchange platform, can be realized at present mutually
The whole network large-scale high-definition realtime video transmission that networking cannot achieve pushes numerous network video applications to high Qinghua, unitizes.
Server technology (Server Technology)
It is different from traditional server, its Streaming Media depending on the server technology in networking and unified video platform
Transmission be built upon it is connection-oriented on the basis of, data-handling capacity is unrelated with flow, communication time, single network layer energy
Enough transmitted comprising signaling and data.For voice and video business, handled depending on networking and unified video platform Streaming Media
Complexity many simpler than data processing, efficiency substantially increase hundred times or more than traditional server.
Reservoir technology (Storage Technology)
The ultrahigh speed reservoir technology of unified video platform in order to adapt to the media content of vast capacity and super-flow and
Using state-of-the-art real time operating system, the programme information in server instruction is mapped to specific hard drive space, media
Content is no longer pass through server, and moment is directly delivered to user terminal, and user waits typical time less than 0.2 second.It optimizes
Sector distribution greatly reduces the mechanical movement of hard disc magnetic head tracking, and resource consumption only accounts for the 20% of the internet ad eundem IP, but
The concurrent flow greater than 3 times of traditional disk array is generated, overall efficiency promotes 10 times or more.
Network security technology (Network Security Technology)
Depending on the structural design networked by servicing independent licence system, equipment and the modes such as user data is completely isolated every time
The network security problem that puzzlement internet has thoroughly been eradicated from structure, does not need antivirus applet, firewall generally, has prevented black
The attack of visitor and virus, structural carefree secure network is provided for user.
It services innovative technology (Service Innovation Technology)
Business and transmission are fused together by unified video platform, whether single user, private user or a net
The sum total of network is all only primary automatic connection.User terminal, set-top box or PC are attached directly to unified video platform, obtain rich
The multimedia video service of rich colorful various forms.Unified video platform is traditional to substitute with table schema using " menu type "
Complicated applications programming, considerably less code, which can be used, can be realized complicated application, realize the new business innovation of " endless ".
Networking depending on networking is as described below:
It is a kind of central controlled network structure depending on networking, which can be Tree Network, Star network, ring network etc. class
Type, but centralized control node is needed to control whole network in network on this basis.
As shown in Figure 1, being divided into access net and Metropolitan Area Network (MAN) two parts depending on networking.
The equipment of access mesh portions can be mainly divided into 3 classes: node server, access switch, terminal (including various machines
Top box, encoding board, memory etc.).Node server is connected with access switch, and access switch can be with multiple terminal phases
Even, and it can connect Ethernet.
Wherein, node server is the node that centralized control functions are played in access net, can control access switch and terminal.
Node server can directly be connected with access switch, can also directly be connected with terminal.
Similar, the equipment of metropolitan area mesh portions can also be divided into 3 classes: metropolitan area server, node switch, node serve
Device.Metropolitan area server is connected with node switch, and node switch can be connected with multiple node servers.
Wherein, node server is the node server for accessing mesh portions, i.e. node server had both belonged to access wet end
Point, and belong to metropolitan area mesh portions.
Metropolitan area server is the node that centralized control functions are played in Metropolitan Area Network (MAN), can control node switch and node serve
Device.Metropolitan area server can be directly connected to node switch, can also be directly connected to node server.
It can be seen that be entirely a kind of central controlled network structure of layering depending on networking network, and node server and metropolitan area
The network controlled under server can be the various structures such as tree-shaped, star-like, cyclic annular.
Visually claim, access mesh portions can form unified video platform (part in virtual coil), and multiple unified videos are flat
Platform can form view networking;Each unified video platform can be interconnected by metropolitan area and wide area depending on networking.
Classify depending on networked devices
1.1 embodiment of the present invention can be mainly divided into 3 classes: server depending on the equipment in networking, interchanger (including ether
Net association turns gateway), terminal (including various set-top boxes, encoding board, memory etc.).Metropolitan Area Network (MAN) can be divided on the whole depending on networking
(or national net, World Wide Web etc.) and access net.
1.2 equipment for wherein accessing mesh portions can be mainly divided into 3 classes: node server, access switch (including ether
Net association turns gateway), terminal (including various set-top boxes, encoding board, memory etc.).
The specific hardware structure of each access network equipment are as follows:
Node server:
As shown in Fig. 2, mainly including Network Interface Module 201, switching engine module 202, CPU module 203, disk array
Module 204;
Wherein, Network Interface Module 201, the Bao Jun that CPU module 203, disk array module 204 are come in enter switching engine
Module 202;Switching engine module 202 look into the operation of address table 205 to the packet come in, to obtain the navigation information of packet;
And the packet is stored according to the navigation information of packet the queue of corresponding pack buffer 206;If the queue of pack buffer 206 is close
It is full, then it abandons;All pack buffer queues of 202 poll of switching engine module, are forwarded: 1) end if meeting the following conditions
It is less than that mouth sends caching;2) the queue package counting facility is greater than zero.Disk array module 204 mainly realizes the control to hard disk, packet
Include the operation such as initialization, read-write to hard disk;CPU module 203 be mainly responsible for access switch, terminal (not shown) it
Between protocol processes, to address table 205 (including descending protocol packet address table, uplink protocol package address table, data packet addressed table)
Configuration, and, the configuration to disk array module 204.
Access switch:
As shown in figure 3, mainly including Network Interface Module (downstream network interface module 301, uplink network interface module
302), switching engine module 303 and CPU module 304;
Wherein, the packet (upstream data) that downstream network interface module 301 is come in enters packet detection module 305;Packet detection mould
Whether mesh way address (DA), source address (SA), type of data packet and the packet length of the detection packet of block 305 meet the requirements, if met,
It then distributes corresponding flow identifier (stream-id), and enters switching engine module 303, otherwise abandon;Uplink network interface mould
The packet (downlink data) that block 302 is come in enters switching engine module 303;The data packet that CPU module 304 is come in enters switching engine
Module 303;Switching engine module 303 look into the operation of address table 306 to the packet come in, to obtain the navigation information of packet;
If the packet into switching engine module 303 is that downstream network interface is gone toward uplink network interface, in conjunction with flow identifier
(stream-id) packet is stored in the queue of corresponding pack buffer 307;If the queue of the pack buffer 307 is close full,
It abandons;If the packet into switching engine module 303 is not that downstream network interface is gone toward uplink network interface, according to packet
Navigation information is stored in the data packet queue of corresponding pack buffer 307;If the queue of the pack buffer 307 is close full,
Then abandon.
All pack buffer queues of 303 poll of switching engine module, may include two kinds of situations:
If the queue is that downstream network interface is gone toward uplink network interface, meets the following conditions and be forwarded: 1)
It is less than that the port sends caching;2) the queue package counting facility is greater than zero;3) token that rate control module generates is obtained;
If the queue is not that downstream network interface is gone toward uplink network interface, meets the following conditions and is forwarded:
1) it is less than to send caching for the port;2) the queue package counting facility is greater than zero.
Rate control module 308 is configured by CPU module 304, to all downlink networks in programmable interval
Interface generates token toward the pack buffer queue that uplink network interface is gone, to control the code rate of forwarded upstream.
CPU module 304 is mainly responsible for the protocol processes between node server, the configuration to address table 306, and,
Configuration to rate control module 308.
Ethernet association turns gateway:
As shown in figure 4, mainly including Network Interface Module (downstream network interface module 401, uplink network interface module
402), switching engine module 403, CPU module 404, packet detection module 405, rate control module 408, address table 406, Bao Huan
Storage 407 and MAC adding module 409, MAC removing module 410.
Wherein, the data packet that downstream network interface module 401 is come in enters packet detection module 405;Packet detection module 405 is examined
Ethernet mac DA, ethernet mac SA, Ethernet length or frame type, the view networking mesh way address of measured data packet
DA, whether meet the requirements depending on networking source address SA, depending on networking data Packet type and packet length, corresponding stream is distributed if meeting
Identifier (stream-id);Then, MAC DA, MAC SA, length or frame type are subtracted by MAC removing module 410
(2byte), and enter corresponding receive and cache, otherwise abandon;
Downstream network interface module 401 detects the transmission caching of the port, according to the view of packet networking mesh if there is Bao Ze
Address D A knows the ethernet mac DA of corresponding terminal, adds the ethernet mac DA of terminal, Ethernet assists the MAC for turning gateway
SA, Ethernet length or frame type, and send.
The function that Ethernet association turns other modules in gateway is similar with access switch.
Terminal:
It mainly include Network Interface Module, Service Processing Module and CPU module;For example, set-top box mainly connects including network
Mouth mold block, video/audio encoding and decoding engine modules, CPU module;Encoding board mainly includes Network Interface Module, video encoding engine
Module, CPU module;Memory mainly includes Network Interface Module, CPU module and disk array module.
The equipment of 1.3 metropolitan area mesh portions can be mainly divided into 2 classes: node server, node switch, metropolitan area server.
Wherein, node switch mainly includes Network Interface Module, switching engine module and CPU module;Metropolitan area server mainly includes
Network Interface Module, switching engine module and CPU module are constituted.
2, networking data package definition is regarded
2.1 access network data package definitions
Access net data packet mainly include following sections: destination address (DA), source address (SA), reserve bytes,
payload(PDU)、CRC。
As shown in the table, the data packet for accessing net mainly includes following sections:
DA | SA | Reserved | Payload | CRC |
Wherein:
Destination address (DA) is made of 8 bytes (byte), and first character section indicates type (such as the various associations of data packet
Discuss packet, multicast packet, unicast packet etc.), be up to 256 kinds of possibility, the second byte to the 6th byte is metropolitan area net address,
Seven, the 8th bytes are access net address;
Source address (SA) is also to be made of 8 bytes (byte), is defined identical as destination address (DA);
Reserve bytes are made of 2 bytes;
The part payload has different length according to the type of different datagrams, is if it is various protocol packages
64 bytes are 32+1024=1056 bytes if it is single group unicast packets words, are not restricted to above 2 kinds certainly;
CRC is made of 4 bytes, and calculation method follows the Ethernet CRC algorithm of standard.
2.2 Metropolitan Area Network (MAN) packet definitions
The topology of Metropolitan Area Network (MAN) is pattern, may there is 2 kinds, connection even of more than two kinds, i.e. node switching between two equipment
It can all can exceed that 2 kinds between machine and node server, node switch and node switch, node switch and node server
Connection.But the metropolitan area net address of metropolitan area network equipment is uniquely, to close to accurately describe the connection between metropolitan area network equipment
System, introduces parameter in embodiments of the present invention: label, uniquely to describe a metropolitan area network equipment.
(Multi-Protocol Label Switch, multiprotocol label are handed over by the definition of label and MPLS in this specification
Change) label definition it is similar, it is assumed that between equipment A and equipment B there are two connection, then data packet from equipment A to equipment B just
There are 2 labels, data packet also there are 2 labels from equipment B to equipment A.Label is divided into label, outgoing label, it is assumed that data packet enters
The label (entering label) of equipment A is 0x0000, and the label (outgoing label) when this data packet leaves equipment A may reform into
0x0001.The networking process of Metropolitan Area Network (MAN) is to enter network process under centralized control, also means that address distribution, the label of Metropolitan Area Network (MAN)
Distribution be all to be dominated by metropolitan area server, node switch, node server be all passively execute, this point with
The label distribution of MPLS is different, and the distribution of the label of MPLS is the result that interchanger, server are negotiated mutually.
As shown in the table, the data packet of Metropolitan Area Network (MAN) mainly includes following sections:
DA | SA | Reserved | Label | Payload | CRC |
That is destination address (DA), source address (SA), reserve bytes (Reserved), label, payload (PDU), CRC.Its
In, the format of label, which can refer to, such as gives a definition: label is 32bit, wherein high 16bit retains, only with low 16bit, its position
Set is between the reserve bytes and payload of data packet.
Embodiment one
In the embodiment of the present invention, multiple streaming media servers are set, multiple streaming media servers include a main line stream matchmaker
Body server and multiple branch's streaming media servers.Multiple monitoring devices are associated with multiple streaming media servers, one of stream
Media server can be associated with one or more monitoring devices.After streaming media server is associated with monitoring device, mobile terminal
It can be obtained and the associated monitoring device of streaming media server monitor video collected by streaming media server.
Referring to Fig. 5, a kind of step flow chart of monitor video processing method of the embodiment of the present invention one is shown.
The monitor video processing method of the embodiment of the present invention may comprise steps of:
Step 501, mobile terminal watches monitoring request, described to watch that monitoring request carries target device mark.
Mobile terminal can be the terminals such as mobile phone, tablet computer, wearable device.Monitoring device can be taken the photograph for various networks
As head.
When user wants to watch the monitor video of some or the acquisition of certain monitoring devices, can execute on mobile terminals
Corresponding operating watches monitoring request to triggering.This watches that monitoring request can carry target device mark, target device mark
Refer to the mark of the desired monitoring device watched of user's selection.
Step 502, mobile terminal determines the associated streaming media service of monitoring device corresponding with target device mark
Device.
Step 503, mobile terminal is if it is determined that the associated streaming media server is branch's streaming media server, then
The connection with the main line streaming media server is disconnected, and establishes the connection with branch's streaming media server.
Mobile terminal default connection main line streaming media server.Mobile terminal receive watch monitoring request after, determine with
Target device identifies the corresponding associated streaming media server of monitoring device.If it is determined that prison corresponding with target device mark
The control associated streaming media server of equipment is branch's streaming media server, then mobile terminal disconnects and main line streaming media server
Connection, then resettles the connection with branch's streaming media server.If it is determined that prison corresponding with target device mark
The control associated streaming media server of equipment is served as theme streaming media server, then mobile terminal continues to keep and straight line streaming media service
The connection of device.
In a kind of optional embodiment, connection between mobile terminal and main line streaming media server, and it is mobile eventually
Connection between end and branch's streaming media server all can be grow connection.Long connection refers to can continuously send out in a connection
Multiple data packets are sent, during connecting holding, if sent without data packet, both sides are needed to send out link detecting packet.
Step 504, mobile terminal obtains the target device by branch's streaming media server and identifies corresponding prison
Control equipment monitor video collected.
If mobile terminal disconnects the connection with main line streaming media server, resettle and branch's streaming media server
Connection, then mobile terminal obtains target device by branch's streaming media server and identifies corresponding monitoring device prison collected
Control video.If mobile terminal continues to keep the connection with straight line streaming media server, mobile terminal passes through main line Streaming Media
Server obtains target device and identifies corresponding monitoring device monitor video collected.
Referring to Fig. 6, a kind of schematic diagram of monitor video treatment process of the embodiment of the present invention one is shown.It will be appreciated from fig. 6 that
Main line streaming media server is connected when mobile terminal is initial, the affluent-dividing when the corresponding monitoring device of target device mark is associated
When media server, mobile terminal disconnects the connection with main line streaming media server, and establishes and branch's streaming media server
Connection is obtained the corresponding monitoring device of target device mark and is adopted by the data interaction between branch's streaming media server
The monitor video of collection.Monitoring device in the prior art is all associated with to the mode of main line streaming media server, monitoring is revised as and sets
Back-up dissipates the multiple branch's streaming media servers of association, is pressed by the part that branch's streaming media server shares main line streaming media server
Power.
One main line streaming media server and multiple branch's streaming media servers, main line stream matchmaker are set in the embodiment of the present invention
Body server can dock multiple business, such as video monitoring, video conference etc., and branch's streaming media server mainly docks video
Monitoring business, mobile terminal default connection main line streaming media server are affluent-dividing matchmakers when the monitoring device to be watched is associated
When body server, mobile terminal switchs to connect branch's streaming media server, watches monitor video by branch's streaming media server,
To reduce the processing pressure of main line streaming media server, the bandwidth of main line streaming media server is saved.
Embodiment two
The embodiment of the present invention can be applied in view networking.It (can be Fig. 1 by regarding networked server in view networking
In node server) unified management view networking service.
In view networking, monitoring access server is connect, monitoring access for accessing monitoring device with multiple monitoring devices
Server is managed collectively the monitor video of monitoring device acquisition.Monitoring access server may include two network interface cards, a network interface card
Internet side, for being communicatively coupled with monitoring device, another network interface card is used for and regards networking clothes towards view networking side
Business device is communicatively coupled.Monitoring access server can be registered on view networked server, and view connection can be accessed after registration
Net carries out regular traffic.The backsight networked server that succeeds in registration can be monitoring access server distribution view networking number, view connection
Net the information such as MAC (Media Access Control Address, media access control) address.
In view networking, streaming media server may include two network interface cards, and a network interface card Internet side is used for and shifting
Dynamic terminal is communicatively coupled, another network interface card is towards view networking side, for being communicatively coupled with depending on networked server.Flow matchmaker
Body server can be registered on view networked server, and view networking can be accessed after registration and carries out regular traffic.It succeeds in registration
Backsight networked server can be the information such as streaming media server distribution view networking number, view networking MAC Address.
In the prior art, whole monitoring devices is associated in a streaming media server.It is set in the embodiment of the present invention
Set a main line streaming media server and multiple branch's streaming media servers.Main line streaming media server can dock a variety of industry
Business, such as video monitoring, video conference etc., branch's streaming media server mainly dock video monitoring service.Therefore main line stream matchmaker
Body server can be associated with one or more monitoring devices with branch's streaming media server.
Information management server can be set in the embodiment of the present invention.Monitoring device can be saved in information management server
The incidence relation of list, monitoring device and streaming media server and each streaming media server watch the information such as permission.Its
In, monitoring device list may include the information such as device identification, device name, geographical location.
Referring to Fig. 7, a kind of step flow chart of monitor video processing method of the embodiment of the present invention two is shown.
The monitor video processing method of the embodiment of the present invention may comprise steps of:
Step 701, mobile terminal watches monitoring request, described to watch that monitoring request carries target device mark.
It, can log-on message management service on mobile terminals when user wants to watch monitor video by mobile terminal
Device obtains monitoring device list from information management server.User's selection target device identification from monitoring device list, touching
Hair carries watching for target device mark and monitors request.
Step 702, mobile terminal determines the associated streaming media service of monitoring device corresponding with target device mark
Device.
Mobile terminal, which receives, watches monitoring request, this is watched that monitoring request is sent to information management server, and take
Log-on message with mobile terminal on information management server.Information management server is according to monitoring device and streaming media service
The incidence relation of device searches the associated streaming media server of monitoring device corresponding with target device mark.Information management service
Device watches permission according to the streaming media server found, determines whether current log-on message has and watches what this found
The permission of streaming media server.If had permission, information management server will monitoring corresponding with target device mark
The information of the associated streaming media server of equipment returns to mobile terminal.If without permission, information management server notice
Mobile terminal does not have permission to watch that target device identifies the monitor video of corresponding monitoring device acquisition.
If the monitoring device corresponding with target device mark that mobile terminal receives information management server return is closed
The information of the streaming media server of connection, it is determined that go out the associated Streaming Media clothes of monitoring device corresponding with target device mark
Business device.
Step 703, mobile terminal is if it is determined that the associated streaming media server is branch's streaming media server, then
The connection with the main line streaming media server is disconnected, and establishes the connection with branch's streaming media server.
It is logged on main line streaming media server under mobile terminal original state, establishes and connect with main line streaming media server
It connects.If it is determined that the associated streaming media server of monitoring device corresponding with target device mark is branch's streaming media service
Device, then mobile terminal disconnects the connection with the main line streaming media server, namely main line streaming media server of logging off, and moves
Dynamic terminal resettles the connection with branch's streaming media server, namely logs on branch's streaming media server.If really
The associated streaming media server of monitoring device corresponding with target device mark is made to serve as theme streaming media server, then it is mobile eventually
End keeps the connection with main line streaming media server.
Step 704, mobile terminal obtains the target device by branch's streaming media server and identifies corresponding prison
Control equipment monitor video collected.
If mobile terminal disconnects the connection with main line streaming media server, and establishes the company with branch's streaming media server
It connects, then target device is obtained by branch's streaming media server and identify corresponding monitoring device monitor video collected.
Target device, which is obtained, by branch's streaming media server identifies corresponding monitoring device monitor video collected
Detailed process may include step A1~A4:
Step A1, mobile terminal watch that monitoring request is encapsulated as the first Internet protocol request packet for described, and will be described
First Internet protocol request packet is sent to branch's streaming media server.
Internet protocol-based communicates to connect between mobile terminal and streaming media server.Internet protocol can be IP
(Internet Protocol, Internet Protocol), TCP (Transmission Control Protocol, transmission control
Agreement).
Therefore, mobile terminal can with internet protocol-based to watch monitoring request be packaged, obtain the first internet
Agreement request packet.First Internet protocol request packet includes the first Internet Protocol header, can in the first Internet Protocol header
To include the IP address in mobile terminal (source), the information such as IP address of branch's streaming media server (purpose).Mobile terminal passes through
First Internet protocol request packet is sent to branch's streaming media server by internet.
The first Internet protocol request packet is converted to the first view networking protocol by step A2, branch's streaming media server
Request packet, and the monitoring access service is forwarded to depending on networked server via described depending on networking protocol request packet by described first
Device.
Branch's streaming media server receives watching for mobile terminal transmission by the network interface card of Internet side and monitors request,
Again by that will watch that monitoring request is forwarded to view networked server towards the network interface card depending on side of networking, will be received via view networked server
See that monitoring request is sent to monitoring access server.
As described above, the first Internet protocol request packet is sent to branch's streaming media server by mobile terminal.Affluent-dividing
Based on view networking protocol communication connection between media server and view networked server, therefore branch's streaming media server will be described
First Internet protocol request packet is converted to the first view networking protocol request packet, regards networking protocol for described first by view networking
Request packet is sent to view networked server, then by forwarding it to monitoring access server depending on networked server.
In the implementation, the first Internet protocol request packet is converted to the first view networking association by branch's streaming media server
The process of view request packet may include: parsing the first Internet protocol request packet, and monitoring request is watched described in extraction;For institute
It states and watches monitoring request the first view of addition networking protocol packet header, watch that monitoring requests to be encapsulated as for described based on view networking protocol
One view networking protocol request packet.Wherein, this is first depending on may include source address (branch's streaming media server in networking protocol packet header
View network MAC Address), destination address (view networked server view networking MAC Address) etc. information.
After receiving the first view networking protocol request packet depending on networked server, then by the of the first view networking protocol request packet
One regards the source address modification in networking protocol packet header to regard the view networking MAC Address of networked server, and destination address is revised as supervising
The view networking MAC Address for controlling access server, is then sent to monitoring access server depending on networking protocol request packet for first.
Step A3, branch's streaming media server receive the monitoring access server and return via the view networked server
View networking protocol data packet;It is described to have the monitor video depending on networking protocol packet encapsulation.
Monitoring access server receives the first view networking protocol request packet that view networked server is sent, and solves to it
Analysis, extract wherein encapsulate watches monitoring request, and to watching that monitoring request parsed to obtain target device mark.Monitoring connects
Enter server and obtain the corresponding monitoring device monitor video collected of target device mark, for monitor video addition view connection
FidonetFido packet header, based on depending on networking protocol by the monitor video be encapsulated as view networking protocol data packet.Wherein, view networking association
It may include source address (the view networking MAC Address of monitoring access server), destination address in view packet header (depending on networked server
Depending on network MAC Address) etc. information.
Monitoring access server is taken by will be sent to view networked server depending on networking protocol data packet depending on networking depending on networking
After business device receives view networking protocol data packet, then by repairing depending on the source address in networking protocol packet header depending on networking protocol data packet
It is changed to the view networking MAC Address of view networked server, destination address is revised as the MAC Address of branch's streaming media server, then
By the way that depending on networking branch's streaming media server will be sent to depending on networking protocol data packet.
Step A4, branch's streaming media server are converted to the Internet protocol data packet depending on networking protocol data packet for described,
And the Internet protocol data packet is back to the mobile terminal.
After branch's streaming media server receives view networking protocol data packet, be converted to described depending on networking protocol data packet
The Internet protocol data packet is forwarded to mobile terminal by internet by the Internet protocol data packet.
In the implementation, branch's streaming media server will be converted to the mistake of the Internet protocol data packet depending on networking protocol data packet
Journey may include: the parsing view networking protocol data packet, extract the monitor video;Internet is added for the monitor video
The monitor video is encapsulated as the Internet protocol data packet by agreement packet header, internet protocol-based.Wherein, the Internet protocol
It may include the letter such as source address (IP address of branch's streaming media server), destination address (IP address of mobile terminal) in packet header
Breath.
Mobile terminal parses it after receiving the Internet protocol data packet, extracts the monitoring view wherein encapsulated
Frequently, and to monitor video it is decoded, plays, user can watches monitor video.
If mobile terminal keeps the connection with main line streaming media server, mesh is obtained by main line streaming media server
Marking device identifies corresponding monitoring device monitor video collected.Target device mark is obtained by main line streaming media server
The detailed process of corresponding monitoring device monitor video collected is set with target is obtained above by branch's streaming media server
The standby detailed process for identifying corresponding monitoring device monitor video collected is substantially similar, referring in particular to associated description above
, the embodiment of the present invention is no longer discussed in detail herein.
Step 705, mobile terminal, which receives, stops watching monitoring request, stops obtaining by branch's streaming media server
The target device identifies corresponding monitoring device monitor video collected.
When user wants to stop watching these monitor videos, corresponding operating can be executed on mobile terminals to trigger
Monitoring request is watched in stopping.Mobile terminal receive stopping watch monitoring request when, can stop through the affluent-dividing matchmaker
Body server obtains the target device and identifies corresponding monitoring device monitor video collected.
Stop being acquired by the corresponding monitoring device of branch's streaming media server acquisition target device mark
The process of monitor video may include step B1~B2:
The stopping is watched that monitoring request is encapsulated as the second Internet protocol request packet by step B1, mobile terminal, and will
The second Internet protocol request packet is sent to branch's streaming media server.
Mobile terminal can watch that monitoring request is packaged to stopping with internet protocol-based, obtain the second internet protocol
Discuss request packet.Second Internet protocol request packet includes the second Internet Protocol header, can be in the second Internet Protocol header
IP address including mobile terminal (source), the information such as IP address of branch's streaming media server (purpose).Mobile terminal passes through mutual
Second Internet protocol request packet is sent to branch's streaming media server by networking.
The second Internet protocol request packet is converted to the second view networking protocol by step B2, branch's streaming media server
Request packet, and the monitoring access service is forwarded to depending on networked server via described depending on networking protocol request packet by described second
Device.
In the implementation, the second Internet protocol request packet is converted to the second view networking association by branch's streaming media server
The process of view request packet may include: parsing the second Internet protocol request packet, extracts the stopping and watches monitoring request;
For it is described stopping watch monitoring request addition second view networking protocol packet header, based on view networking protocol by it is described stop watch monitoring
Request is encapsulated as the second view networking protocol request packet.Wherein, this is second depending on may include source address (branch in networking protocol packet header
The view of streaming media server is networked MAC Address), the information such as destination address (the view networking MAC Address of view networked server).
After receiving the second view networking protocol request packet depending on networked server, then by the of the second view networking protocol request packet
Two regard the source address modification in networking protocol packet header to regard the view networking MAC Address of networked server, and destination address is revised as supervising
The view networking MAC Address for controlling access server, is then sent to monitoring access server depending on networking protocol request packet for second.
The second view networking protocol request packet that monitoring access server receives, parses it, extraction wherein encapsulates
Stopping watch monitoring request, monitoring access server watches request in response to the stopping, stopping sending target device and identifies pair
The monitoring device answered monitor video collected.
Step 706, mobile terminal disconnects the connection with branch's streaming media server, and establishes and the main line stream matchmaker
The connection of body server.
Mobile terminal disconnects the connection with branch's streaming media server, namely branch's streaming media service of logging off
Device, mobile terminal resettles the connection with main line streaming media server, namely logs on main line streaming media server.To protect
Card mobile terminal can carry out other view networking services, such as video conference by main line streaming media server.
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the method
It closes, but those skilled in the art should understand that, embodiment of that present invention are not limited by the describe sequence of actions, because according to
According to the embodiment of the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art also should
Know, the embodiments described in the specification are all preferred embodiments, and the related movement not necessarily present invention is implemented
Necessary to example.
Embodiment three
Referring to Fig. 8, a kind of structural block diagram of monitor video processing unit of the embodiment of the present invention three is shown.Multiple monitoring
Equipment is associated with multiple streaming media servers, and the multiple streaming media server includes a main line streaming media server and multiple
Branch's streaming media server, mobile terminal are connect with the main line streaming media server.
The monitor video processing unit of the embodiment of the present invention may include with lower module:
The mobile terminal includes:
First receiving module 801, it is described to watch that monitoring request carries target device mark for watching monitoring request
Know.
Determining module 802, for determining the associated streaming media service of monitoring device corresponding with target device mark
Device.
First link block 803 is used for if it is determined that the associated streaming media server is branch's streaming media service
Device then disconnects the connection with the main line streaming media server, and establishes the connection with branch's streaming media server.
Module 804 is obtained, identifies corresponding prison for obtaining the target device by branch's streaming media server
Control equipment monitor video collected.
In a kind of optional embodiment, the multiple monitoring device is connect with monitoring access server, and the monitoring connects
Enter server and view networked server communication connection, the multiple streaming media server and the view networked server communication link
It connects;The acquisition module includes: the first transmission unit, for watching that monitoring request is encapsulated as the first Internet protocol and asks for described
Packet is sought, and the first Internet protocol request packet is sent to branch's streaming media server;Branch's Streaming Media clothes
Business device includes: the first conversion module, for the first Internet protocol request packet to be converted to the request of the first view networking protocol
Packet, and the monitoring access server is forwarded to depending on networked server via described depending on networking protocol request packet by described first;
Second receiving module, the view networking protocol number returned for receiving the monitoring access server via the view networked server
According to packet;It is described to have the monitor video depending on networking protocol packet encapsulation;Second conversion module is used for the view networking protocol
Data packet is converted to the Internet protocol data packet, and the Internet protocol data packet is back to the mobile terminal.
In a kind of optional embodiment, first conversion module includes: the first resolution unit, for parsing described
One Internet protocol request packet watches monitoring request described in extraction;First encapsulation unit, for watching that monitoring request adds for described in
Add the first view networking protocol packet header, based on depending on networking protocol by it is described watch monitoring request be encapsulated as the first view networking protocol request
Packet.
In a kind of optional embodiment, second conversion module includes: the second resolution unit, for parsing the view
Networking protocol data packet extracts the monitor video;Second encapsulation unit, for adding Internet protocol for the monitor video
The monitor video is encapsulated as the Internet protocol data packet by packet header, internet protocol-based.
In a kind of optional embodiment, the mobile terminal further include: third receiving module stops watching for receiving
Monitoring request;Stop obtaining module, obtains the target device mark pair by branch's streaming media server for stopping
The monitoring device answered monitor video collected;Second link block, for disconnecting and the company of branch's streaming media server
It connects, and establishes the connection with the main line streaming media server.
In a kind of optional embodiment, the multiple monitoring device is connect with monitoring access server, and the monitoring connects
Enter server and view networked server communication connection, the multiple streaming media server and the view networked server communication link
It connects;It includes: the second transmission unit that the stopping, which obtains module, for the stopping to be watched that monitoring request is encapsulated as the second interconnection
FidonetFido request packet, and the second Internet protocol request packet is sent to branch's streaming media server;The branch
Streaming media server includes: third conversion module, for the second Internet protocol request packet to be converted to the networking of the second view
Agreement request packet, and the monitoring access is forwarded to depending on networked server via described depending on networking protocol request packet by described second
Server.
In a kind of optional embodiment, the third conversion module includes: third resolution unit, for parsing described
Two Internet protocol request packets extract the stopping and watch monitoring request;Third encapsulation unit, for watching prison for the stopping
It controls and requests the second view of addition networking protocol packet header, request to be encapsulated as the second view based on watching to monitor by the stopping depending on networking protocol
Networking protocol request packet.
One main line streaming media server and multiple branch's streaming media servers, main line stream matchmaker are set in the embodiment of the present invention
Body server can dock multiple business, such as video monitoring, video conference etc., and branch's streaming media server mainly docks video
Monitoring business, mobile terminal default connection main line streaming media server are affluent-dividing matchmakers when the monitoring device to be watched is associated
When body server, mobile terminal switchs to connect branch's streaming media server, watches monitor video by branch's streaming media server,
To reduce the processing pressure of main line streaming media server, the bandwidth of main line streaming media server is saved.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple
Place illustrates referring to the part of embodiment of the method.
In an embodiment of the present invention, a kind of monitor video processing unit is additionally provided.The apparatus may include one or
Multiple processors, and one or more machine readable medias of instruction are stored thereon with, instruct such as application program.When by institute
When stating one or more processors execution, so that described device executes above-mentioned monitor video processing method.
In an embodiment of the present invention, a kind of non-transitorycomputer readable storage medium including instruction is additionally provided,
Memory for example including instruction, above-metioned instruction can be executed by the processor of electronic equipment, to complete at above-mentioned monitor video
Reason method.For example, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-
ROM, tape, floppy disk and optical data storage devices etc..
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with
The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can provide as method, apparatus or calculate
Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can
With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code
The form of the computer program product of implementation.
The embodiment of the present invention be referring to according to the method for the embodiment of the present invention, terminal device (system) and computer program
The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions
In each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide these
Computer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals
Standby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devices
Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram
The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices
In computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packet
The manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagram
The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that
Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus
The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart
And/or in one or more blocks of the block diagram specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases
This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as
Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap
Those elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, article
Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited
Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
Above to a kind of monitor video processing method provided by the present invention, device and storage medium, detailed Jie has been carried out
It continues, used herein a specific example illustrates the principle and implementation of the invention, and the explanation of above embodiments is only
It is to be used to help understand method and its core concept of the invention;At the same time, for those skilled in the art, according to this hair
Bright thought, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not manage
Solution is limitation of the present invention.
Claims (16)
1. a kind of monitor video processing method, which is characterized in that multiple monitoring devices are associated with multiple streaming media servers, described
Multiple streaming media servers include a main line streaming media server and multiple branch's streaming media servers, mobile terminal with it is described
The connection of main line streaming media server;The described method includes:
The mobile terminal watches monitoring request, described to watch that monitoring request carries target device mark;
The mobile terminal determines the associated streaming media server of monitoring device corresponding with target device mark;
The mobile terminal if it is determined that the associated streaming media server be branch's streaming media server, then disconnect and institute
The connection of main line streaming media server is stated, and establishes the connection with branch's streaming media server;
The mobile terminal obtains the target device by branch's streaming media server and identifies corresponding monitoring device institute
The monitor video of acquisition.
2. the method according to claim 1, wherein the multiple monitoring device and monitoring access server connect
It connects, the monitoring access server and view networked server communication connection, the multiple streaming media server and the view are networked
Server communication connection;
The mobile terminal obtains the target device by branch's streaming media server and identifies corresponding monitoring device institute
The step of monitor video of acquisition, comprising:
The mobile terminal watches that monitoring request is encapsulated as the first Internet protocol request packet for described, and described first is interconnected
FidonetFido request packet is sent to branch's streaming media server;
The first Internet protocol request packet is converted to the first view networking protocol request packet by branch's streaming media server,
And the monitoring access server is forwarded to depending on networked server via described depending on networking protocol request packet by described first;
Branch's streaming media server receives the monitoring access server and joins via the view that the view networked server returns
FidonetFido data packet;It is described to have the monitor video depending on networking protocol packet encapsulation;
Branch's streaming media server is converted to the Internet protocol data packet depending on networking protocol data packet for described, and will be described
The Internet protocol data packet is back to the mobile terminal.
3. according to the method described in claim 2, it is characterized in that, described be converted to the first Internet protocol request packet
The step of first view networking protocol request packet, comprising:
The first Internet protocol request packet is parsed, monitoring request is watched described in extraction;
For it is described watch monitoring request addition first view networking protocol packet header, based on view networking protocol by it is described watch monitoring request
It is encapsulated as the first view networking protocol request packet.
4. according to the method described in claim 2, it is characterized in that, described be converted to interconnection depending on networking protocol data packet for described
The step of fidonetFido data packet, comprising:
The view networking protocol data packet is parsed, the monitor video is extracted;
Internet Protocol header is added for the monitor video, the monitor video is encapsulated as internet by internet protocol-based
Protocol data packet.
5. the method according to claim 1, wherein passing through branch's streaming media service in the mobile terminal
Device obtained after the step of target device identifies corresponding monitoring device monitor video collected, further includes:
The mobile terminal, which receives, stops watching monitoring request, stops obtaining the target by branch's streaming media server
The corresponding monitoring device of device identification monitor video collected;
The mobile terminal disconnects the connection with branch's streaming media server, and establishes and the main line streaming media server
Connection.
6. according to the method described in claim 5, it is characterized in that, the multiple monitoring device and monitoring access server connect
It connects, the monitoring access server and view networked server communication connection, the multiple streaming media server and the view are networked
Server communication connection;
It is described to stop being acquired by the corresponding monitoring device of branch's streaming media server acquisition target device mark
Monitor video the step of, comprising:
The stopping is watched that monitoring request is encapsulated as the second Internet protocol request packet by the mobile terminal, and by described second
Internet protocol request packet is sent to branch's streaming media server;
The second Internet protocol request packet is converted to the second view networking protocol request packet by branch's streaming media server,
And the monitoring access server is forwarded to depending on networked server via described depending on networking protocol request packet by described second.
7. according to the method described in claim 6, it is characterized in that, described be converted to the second Internet protocol request packet
The step of second view networking protocol request packet, comprising:
The second Internet protocol request packet is parsed, the stopping is extracted and watches monitoring request;
For it is described stopping watch monitoring request addition second view networking protocol packet header, based on view networking protocol by it is described stop watch
Monitoring request is encapsulated as the second view networking protocol request packet.
8. a kind of monitor video processing unit, which is characterized in that multiple monitoring devices are associated with multiple streaming media servers, described
Multiple streaming media servers include a main line streaming media server and multiple branch's streaming media servers, mobile terminal with it is described
The connection of main line streaming media server;The mobile terminal includes:
First receiving module, it is described to watch that monitoring request carries target device mark for watching monitoring request;
Determining module, for determining the associated streaming media server of monitoring device corresponding with target device mark;
First link block, be used for if it is determined that the associated streaming media server be branch's streaming media server, then break
The connection with the main line streaming media server is opened, and establishes the connection with branch's streaming media server;
Module is obtained, identifies corresponding monitoring device institute for obtaining the target device by branch's streaming media server
The monitor video of acquisition.
9. device according to claim 8, which is characterized in that the multiple monitoring device and monitoring access server connect
It connects, the monitoring access server and view networked server communication connection, the multiple streaming media server and the view are networked
Server communication connection;
The acquisition module includes: the first transmission unit, for watching that monitoring request is encapsulated as the first Internet protocol for described
Request packet, and the first Internet protocol request packet is sent to branch's streaming media server;
Branch's streaming media server includes:
First conversion module, for the first Internet protocol request packet to be converted to the first view networking protocol request packet, and
The monitoring access server is forwarded to depending on networked server via described depending on networking protocol request packet by described first;
Second receiving module, the view networking association returned for receiving the monitoring access server via the view networked server
Discuss data packet;It is described to have the monitor video depending on networking protocol packet encapsulation;
Second conversion module, for being converted to the Internet protocol data packet depending on networking protocol data packet for described, and will be described mutual
Networking protocol data packet is back to the mobile terminal.
10. device according to claim 9, which is characterized in that first conversion module includes:
First resolution unit watches monitoring request for parsing the first Internet protocol request packet described in extraction;
First encapsulation unit, for watching monitoring request the first view of addition networking protocol packet header for described in, based on view networking protocol
Watch that monitoring request is encapsulated as the first view networking protocol request packet for described.
11. device according to claim 9, which is characterized in that second conversion module includes:
Second resolution unit extracts the monitor video for parsing the view networking protocol data packet;
Second encapsulation unit, for adding Internet Protocol header for the monitor video, internet protocol-based is by the prison
Control video encapsulation is the Internet protocol data packet.
12. device according to claim 7, which is characterized in that the mobile terminal further include:
Third receiving module stops watching monitoring request for receiving;
Stop obtaining module, the target device is obtained by branch's streaming media server for stopping and identifies corresponding prison
Control equipment monitor video collected;
Second link block, for disconnect with the connection of branch's streaming media server, and establish with the main line Streaming Media
The connection of server.
13. device according to claim 12, which is characterized in that the multiple monitoring device and monitoring access server connect
It connects, the monitoring access server and view networked server communication connection, the multiple streaming media server and the view are networked
Server communication connection;
It includes: the second transmission unit that the stopping, which obtains module, for the stopping to be watched that monitoring request is encapsulated as second mutually
Networking protocol request packet, and the second Internet protocol request packet is sent to branch's streaming media server;
Branch's streaming media server includes: third conversion module, for converting the second Internet protocol request packet
Networking protocol request packet is regarded for second, and described second is forwarded to via described depending on networked server depending on networking protocol request packet
The monitoring access server.
14. device according to claim 13, which is characterized in that the third conversion module includes:
Third resolution unit extracts the stopping and watches monitoring request for parsing the second Internet protocol request packet;
Third encapsulation unit, for watching monitoring request the second view of addition networking protocol packet header for the stopping, based on view networking
The stopping is watched that monitoring request is encapsulated as the second view networking protocol request packet by agreement.
15. a kind of monitor video processing unit characterized by comprising
One or more processors;With
One or more machine readable medias of instruction are stored thereon with, when being executed by one or more of processors, are made
It obtains described device and executes monitor video processing method as described in any one of claim 1 to 7.
16. a kind of computer readable storage medium, which is characterized in that its computer program stored executes processor as weighed
Benefit requires 1 to 7 described in any item monitor video processing methods.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910538734.8A CN110392233B (en) | 2019-06-20 | 2019-06-20 | Monitoring video processing method, device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910538734.8A CN110392233B (en) | 2019-06-20 | 2019-06-20 | Monitoring video processing method, device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110392233A true CN110392233A (en) | 2019-10-29 |
CN110392233B CN110392233B (en) | 2022-12-23 |
Family
ID=68285470
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910538734.8A Active CN110392233B (en) | 2019-06-20 | 2019-06-20 | Monitoring video processing method, device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110392233B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112995587A (en) * | 2020-12-28 | 2021-06-18 | 腾讯科技(深圳)有限公司 | Electronic equipment monitoring method, system, computer equipment and storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040028391A1 (en) * | 2002-06-13 | 2004-02-12 | David Black | Internet video surveillance camera system and method |
CN1852431A (en) * | 2005-12-23 | 2006-10-25 | 华为技术有限公司 | System and method for realizing video frequency information sharing |
CN102685232A (en) * | 2012-05-14 | 2012-09-19 | 安科智慧城市技术(中国)有限公司 | Streaming media server-based multimedia file acquisition method and streaming media server |
CN106161335A (en) * | 2015-03-25 | 2016-11-23 | 北京视联动力国际信息技术有限公司 | A kind for the treatment of method and apparatus of network packet |
CN106303359A (en) * | 2015-05-14 | 2017-01-04 | 北京视联动力国际信息技术有限公司 | The processing method of a kind of network conversion and equipment |
CN107734361A (en) * | 2017-09-30 | 2018-02-23 | 深圳融创新技术有限公司 | Streaming media server dispatching method, system, readable storage medium storing program for executing and server |
CN107959872A (en) * | 2016-10-18 | 2018-04-24 | 杭州海康威视系统技术有限公司 | A kind of video switching method, device and video patrol system |
CN109391614A (en) * | 2018-09-06 | 2019-02-26 | 视联动力信息技术股份有限公司 | It is a kind of based on depending on network transfer monitoring data method and apparatus |
CN109743537A (en) * | 2018-11-29 | 2019-05-10 | 视联动力信息技术股份有限公司 | Monitoring alarm treating method and apparatus |
-
2019
- 2019-06-20 CN CN201910538734.8A patent/CN110392233B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040028391A1 (en) * | 2002-06-13 | 2004-02-12 | David Black | Internet video surveillance camera system and method |
CN1852431A (en) * | 2005-12-23 | 2006-10-25 | 华为技术有限公司 | System and method for realizing video frequency information sharing |
CN102685232A (en) * | 2012-05-14 | 2012-09-19 | 安科智慧城市技术(中国)有限公司 | Streaming media server-based multimedia file acquisition method and streaming media server |
CN106161335A (en) * | 2015-03-25 | 2016-11-23 | 北京视联动力国际信息技术有限公司 | A kind for the treatment of method and apparatus of network packet |
CN106303359A (en) * | 2015-05-14 | 2017-01-04 | 北京视联动力国际信息技术有限公司 | The processing method of a kind of network conversion and equipment |
CN107959872A (en) * | 2016-10-18 | 2018-04-24 | 杭州海康威视系统技术有限公司 | A kind of video switching method, device and video patrol system |
CN107734361A (en) * | 2017-09-30 | 2018-02-23 | 深圳融创新技术有限公司 | Streaming media server dispatching method, system, readable storage medium storing program for executing and server |
CN109391614A (en) * | 2018-09-06 | 2019-02-26 | 视联动力信息技术股份有限公司 | It is a kind of based on depending on network transfer monitoring data method and apparatus |
CN109743537A (en) * | 2018-11-29 | 2019-05-10 | 视联动力信息技术股份有限公司 | Monitoring alarm treating method and apparatus |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112995587A (en) * | 2020-12-28 | 2021-06-18 | 腾讯科技(深圳)有限公司 | Electronic equipment monitoring method, system, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110392233B (en) | 2022-12-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110233984A (en) | A kind of monitoring system and method based on view networking | |
CN108965040A (en) | A kind of business monitoring method and device of view networking | |
CN109167960A (en) | A kind of processing method and system of video stream data | |
CN109167962A (en) | It is a kind of to turn server depending on networked resources method for releasing and monitoring association | |
CN109302472A (en) | A kind of view networked resources method for releasing and view networking share Platform Server | |
CN109818776A (en) | Micro services module exception localization method and device | |
CN108989078A (en) | A kind of view networking interior joint equipment fault detection method and device | |
CN110049271A (en) | A kind of view networking conferencing information methods of exhibiting and device | |
CN109150905A (en) | A kind of view networked resources method for releasing and view networking share Platform Server | |
CN110087102A (en) | Method for inquiring status, device and storage medium | |
CN110190973A (en) | A kind of presence detection method and device | |
CN109547163A (en) | A kind of control method and device of message transmission rate | |
CN110049346A (en) | A kind of method and system of net cast | |
CN109218093A (en) | A kind of method and system obtaining alarm | |
CN110166727A (en) | A kind of networking of view and internet switching method, apparatus and system | |
CN110149305A (en) | A kind of method and transfer server of the multi-party playing audio-video based on view networking | |
CN109729184A (en) | A kind of method and apparatus of view networking service processing | |
CN109491783A (en) | A kind of acquisition methods and system of memory usage | |
CN109743555A (en) | A kind of information processing method and system based on view networking | |
CN109802952A (en) | Monitoring data synchronous method and device | |
CN110351573A (en) | Virtual present presentation method, system and device | |
CN110430388A (en) | A kind of monitoring device control method, device and readable storage medium storing program for executing | |
CN110149497A (en) | A kind of view networked data transmission method, apparatus, system and readable storage medium storing program for executing | |
CN109525635A (en) | A kind of acquisition methods and system of memory usage | |
CN108881148A (en) | A kind of data capture 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |