CN110545405A - video transmission method and system based on video network - Google Patents
video transmission method and system based on video network Download PDFInfo
- Publication number
- CN110545405A CN110545405A CN201910804703.2A CN201910804703A CN110545405A CN 110545405 A CN110545405 A CN 110545405A CN 201910804703 A CN201910804703 A CN 201910804703A CN 110545405 A CN110545405 A CN 110545405A
- Authority
- CN
- China
- Prior art keywords
- video
- server
- internet
- network
- video 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/254—Management at additional data server, e.g. shopping server, rights management server
- H04N21/2541—Rights Management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/258—Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
- H04N21/25808—Management of client data
- H04N21/25816—Management of client data involving client authentication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
- H04N5/91—Television signal processing therefor
- H04N5/913—Television signal processing therefor for scrambling ; for copy protection
-
- 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)
- Databases & Information Systems (AREA)
- Computer Security & Cryptography (AREA)
- Computer Graphics (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the invention provides a video transmission method and a video transmission system based on a video network. Compared with the method that the monitoring video stream stored in the internet video server can be played from the internet video server only through the internet, in the embodiment of the invention, the internet terminal plays the monitoring video stream stored in the internet video server from the internet video server through the video network main server, the video network sharing server and the video network cooperative server, so that the monitoring video stream stored in the internet video server can be played through the video network, and the playing way of playing the monitoring video stream stored in the internet video server is expanded. And because the video network is a private network, compared with the playing through the Internet, the embodiment of the invention can improve the information security by playing the monitoring video stream stored in the Internet video server through the video network.
Description
Technical Field
The embodiment of the invention relates to the technical field of video networking, in particular to a video transmission method and system based on the video networking.
Background
nowadays, in order to provide safety prevention and guarantee for people's work and life, often be provided with surveillance camera head in important position department, record the surveillance video stream of important position department through surveillance camera head, later, arrange the viewing personnel to see whether there is suspicious personage in the surveillance video stream that surveillance camera head recorded, for example, see whether there is escaping personnel etc..
for example, the surveillance camera sends the recorded surveillance video stream to the terminal, the terminal receives the surveillance video stream sent by the surveillance camera and plays the surveillance video stream on a screen, and the viewer can view the surveillance video stream played by the terminal on the screen.
however, the inventor finds that the monitoring video stream is usually transmitted in the public network during the transmission process to the terminal, is easily intercepted by lawless persons, and has low security.
disclosure of Invention
In order to improve the security of monitoring video streams, the embodiment of the invention discloses a video transmission method and a video transmission system based on a video network.
in a first aspect, an embodiment of the present invention shows a video transmission method based on a video network, where the method is applied to a video transmission system based on a video network, and the system includes an internet terminal, a video network main server, a video network sharing server, a video network relay server, and an internet video server, and the method includes:
the internet terminal sends a first acquisition request based on a GB28181 protocol to the video networking main server, wherein the first acquisition request is used for acquiring a monitoring video stream stored in the internet video recording server;
the video network master server receives the first acquisition request, converts the first acquisition request into a second acquisition request based on a video network 8f85 protocol and used for acquiring the monitoring video stream, and sends the second acquisition request to the video network sharing server;
The video networking sharing server receives the second acquisition request and sends the second acquisition request to the video networking coordination server;
the video network protocol conversion server receives the second acquisition request, converts the second acquisition request into the first acquisition request based on the GB28181 protocol, and sends the first acquisition request to the Internet video recording server;
The Internet video server receives the first acquisition request, acquires a first monitoring video stream based on a GB28181 protocol, and sends the first monitoring video stream to the video networking coordination server, wherein the first monitoring video stream is obtained according to the monitoring video stream stored in the Internet video server or comprises the monitoring video stream stored in the Internet video server;
the video networking coordination and conversion server receives the first monitoring video stream, converts the first monitoring video stream into a second monitoring video stream based on a video networking 8f85 protocol, and sends the second monitoring video stream to the video networking sharing server;
And the video networking sharing server receives the second monitoring video stream, converts the second monitoring video stream into the first monitoring video stream based on the GB28181 protocol, and sends the first monitoring video stream to the Internet terminal.
in an optional implementation, the method further includes: and the Internet terminal receives the first monitoring video stream, plays the first monitoring video stream and/or stores the first monitoring video stream.
In an optional implementation manner, before the internet video recording server sends the first surveillance video stream to the video networking coordination server, the method further includes:
and compressing the first monitoring video stream, or compressing and encrypting the first monitoring video stream.
In an optional implementation manner, the second acquisition request further carries a terminal identifier of the internet terminal and an access token for accessing the internet video server, where the access token is previously allocated to the internet terminal by the internet video server;
the method further comprises the following steps:
The Internet video server extracts the terminal identification and the access token from the second acquisition request;
the Internet video server detects whether the access token is valid according to the terminal identification;
and if the access token is valid, the Internet video recording server executes the step of acquiring the first monitoring video stream based on the GB28181 protocol.
in an optional implementation, the method further includes:
If the access token is invalid, the Internet video server generates a first access denial prompt based on a GB28181 protocol, wherein the first access denial prompt is used for indicating that the Internet terminal corresponding to the terminal identifier does not have access authority to the Internet video server, and the first access denial prompt is sent to the video network coordination server;
the video network coordination and conversion server receives the first access rejection prompt, converts the first access rejection prompt into a second access rejection prompt based on a video network 8f85 protocol, and sends the second access rejection prompt to the video network main server;
the video networking main server receives the second access denial prompt, converts the second access denial prompt into the first access denial prompt based on the GB28181 protocol, and sends the first access denial prompt to the Internet terminal;
and the internet terminal receives the first access denial prompt and displays the first access denial prompt.
In an optional implementation manner, the detecting, by the internet video recording server, whether the access token is valid according to the terminal identifier includes:
The Internet video recording server searches whether a corresponding table item comprising a terminal identifier and an access token exists in a first corresponding relation between the stored terminal identifier of the terminal and the access token distributed for the terminal;
if the corresponding table item comprising the terminal identification and the access token exists, the Internet video server determines that the access token is valid;
and if the corresponding table item comprising the terminal identification and the access token does not exist, the Internet video recording server determines that the access token is invalid.
in an optional implementation, the method further includes:
The internet video server detects whether the time efficiency of the access token is expired;
And if the time limit of the access token is expired, the Internet video recording server deletes the corresponding table entry from the first corresponding relation.
In an optional implementation, the method further includes:
The Internet video server obtains the searching time when the corresponding table item is searched in the first corresponding relation;
And the Internet video server uses the obtained search time to replace the latest query time corresponding to the access token in the corresponding table item in a second corresponding relation between the access token and the latest search time of the access token.
In an optional implementation, the method further includes:
The Internet video server detects whether the duration of the access token which is not searched is longer than the preset duration or not according to the latest query moment after replacement in real time;
and if the time length is longer than the preset time length, the Internet video recording server deletes the corresponding table entry comprising the access token in the first corresponding relation.
In a second aspect, an embodiment of the present invention shows a video transmission system based on a video network, where the system includes an internet terminal, a video network main server, a video network sharing server, a video network coordination server, and an internet video server;
The internet terminal is used for sending a first acquisition request based on a GB28181 protocol to the video networking main server, wherein the first acquisition request is used for acquiring a monitoring video stream stored in the internet video server;
The video network main server is used for receiving the first acquisition request, converting the first acquisition request into a second acquisition request based on a video network 8f85 protocol and used for acquiring the monitoring video stream, and sending the second acquisition request to the video network sharing server;
The video network sharing server is used for receiving the second acquisition request and sending the second acquisition request to the video network coordination server;
The video network protocol conversion server is used for receiving the second acquisition request, converting the second acquisition request into the first acquisition request based on the GB28181 protocol, and sending the first acquisition request to the Internet video server;
the internet video server is configured to receive the first acquisition request, acquire a first surveillance video stream based on a GB28181 protocol, and send the first surveillance video stream to the video networking coordination server, where the first surveillance video stream is obtained according to a surveillance video stream stored in the internet video server or the first surveillance video stream includes a surveillance video stream stored in the internet video server;
the video networking coordination and conversion server is further used for receiving the first monitoring video stream, converting the first monitoring video stream into a second monitoring video stream based on a video networking 8f85 protocol, and sending the second monitoring video stream to the video networking sharing server;
The video networking sharing server is further configured to receive the second surveillance video stream, convert the second surveillance video stream into the first surveillance video stream based on the GB28181 protocol, and send the first surveillance video stream to the internet terminal;
in an optional implementation manner, the internet terminal is further configured to receive the first surveillance video stream, play the first surveillance video stream, and/or store the first surveillance video stream.
in an optional implementation manner, before the internet video server sends the first surveillance video stream to the video networking coordination server, the internet video server is further configured to compress the first surveillance video stream, or compress and encrypt the first surveillance video stream.
in an optional implementation manner, the second acquisition request further carries a terminal identifier of the internet terminal and an access token for accessing the internet video server, where the access token is previously allocated to the internet terminal by the internet video server;
the internet video server is further configured to extract the terminal identifier and the access token from the second acquisition request;
the Internet video server is also used for detecting whether the access token is valid according to the terminal identification;
and if the access token is valid, the Internet video server is also used for acquiring a first monitoring video stream based on the GB28181 protocol.
In an optional implementation manner, if the access token is invalid, the internet video recording server is further configured to generate a first access denial prompt based on a GB28181 protocol, where the first access denial prompt is used to indicate that the internet terminal corresponding to the terminal identifier does not have access right to the internet video recording server, and send the first access denial prompt to the video network coordination server;
The video network coordination and conversion server is further used for receiving the first access rejection prompt, converting the first access rejection prompt into a second access rejection prompt based on a video network 8f85 protocol, and sending the second access rejection prompt to the video network main server;
the video networking main server is further used for receiving the second access denial prompt, converting the second access denial prompt into the first access denial prompt based on the GB28181 protocol, and sending the first access denial prompt to the Internet terminal;
the internet terminal is further used for receiving the first access denial prompt and displaying the first access denial prompt.
In an optional implementation manner, the internet video server is further configured to search, in a first corresponding relationship between a stored terminal identifier of a terminal and an access token allocated to the terminal, whether a corresponding entry including the terminal identifier and the access token exists;
if the corresponding table entry comprising the terminal identification and the access token exists, the Internet video server is further used for determining that the access token is valid;
And if the corresponding table item comprising the terminal identification and the access token does not exist, the Internet video server is also used for determining that the access token is invalid.
in an optional implementation manner, the internet video server is further configured to detect whether the aging of the access token expires;
If the time period of the access token has expired, the internet video server is further configured to delete the corresponding entry from the first corresponding relationship.
In an optional implementation manner, the internet video server is further configured to obtain a search time when the corresponding entry is searched in the first corresponding relationship;
And the Internet video server is also used for replacing the latest query time corresponding to the access token in the corresponding table item with the acquired search time in a second corresponding relation between the access token and the latest search time of the access token.
In an optional implementation manner, the internet video server is further configured to detect whether a duration of the access token that is not searched is longer than a preset duration in real time according to the latest query time after replacement;
And if the time length is longer than the preset time length, the Internet video server is further used for deleting the corresponding table entry comprising the access token in the first corresponding relation.
the embodiment of the invention has the following advantages:
Compared with the method that the monitoring video stream stored in the internet video server can be played from the internet video server only through the internet, in the embodiment of the invention, the internet terminal plays the monitoring video stream stored in the internet video server from the internet video server through the video network main server, the video network sharing server and the video network cooperative server, so that the monitoring video stream stored in the internet video server can be played through the video network, and the playing way of playing the monitoring video stream stored in the internet video server is expanded. And because the video network is a private network, compared with the playing through the Internet, the embodiment of the invention can improve the information security by playing the monitoring video stream stored in the Internet video server through the video network.
drawings
Fig. 1 is a schematic networking diagram of a video network according to an embodiment of the present invention.
fig. 2 is a schematic diagram of a hardware structure of a node server according to an embodiment of the present invention.
fig. 3 is a schematic hardware structure diagram of an access switch according to an embodiment of the present invention.
fig. 4 is a schematic diagram of a hardware structure of an ethernet protocol conversion gateway according to an embodiment of the present invention.
fig. 5 is a block diagram of a video transmission system based on video networking according to an embodiment of the present invention.
fig. 6 is a flowchart illustrating steps of a video transmission method based on a video network according to an embodiment of the present invention.
fig. 7 is a flowchart illustrating steps of a method for obtaining video directory information based on a video network according to an embodiment of the present invention.
Detailed Description
in order to make the aforementioned objects, features and advantages of the embodiments of the present invention more comprehensible, embodiments of the present invention are described in detail below with reference to the accompanying drawings and the detailed description.
the video networking is an important milestone for network development, is a real-time network, can realize high-definition video real-time transmission, and pushes a plurality of internet applications to high-definition video, and high-definition faces each other.
The video networking adopts a real-time high-definition video exchange technology, can integrate required services such as dozens of services of video, voice, pictures, characters, communication, data and the like on a system platform on a network platform, such as high-definition video conference, video monitoring, intelligent monitoring analysis, emergency command, digital broadcast television, delayed television, network teaching, live broadcast, VOD on demand, television mail, Personal Video Recorder (PVR), intranet (self-office) channels, intelligent video broadcast control, information distribution and the like, and realizes high-definition quality video broadcast through a television or a computer.
To better understand the embodiments of the present invention, the following description refers to the internet of view:
Some of the technologies applied in the video networking are as follows:
network Technology (Network Technology)
network technology innovation in video networking has improved over traditional Ethernet (Ethernet) to face the potentially enormous video traffic on the network. Unlike pure network Packet Switching (Packet Switching) or network Circuit Switching (Circuit Switching), the Packet Switching is adopted by the technology of the video networking to meet the Streaming requirement. The video networking technology has the advantages of flexibility, simplicity and low price of packet switching, and simultaneously has the quality and safety guarantee of circuit switching, thereby realizing the seamless connection of the whole network switching type virtual circuit and the data format.
switching Technology (Switching Technology)
The video network adopts two advantages of asynchronism and packet switching of the Ethernet, eliminates the defects of the Ethernet on the premise of full compatibility, has end-to-end seamless connection of the whole network, is directly communicated with a user terminal, and directly bears an IP data packet. The user data does not require any format conversion across the entire network. The video networking is a higher-level form of the Ethernet, is a real-time exchange platform, can realize the real-time transmission of the whole-network large-scale high-definition video which cannot be realized by the existing Internet, and pushes a plurality of network video applications to high-definition and unification.
Server Technology (Server Technology)
The server technology on the video networking and unified video platform is different from the traditional server, the streaming media transmission of the video networking and unified video platform is established on the basis of connection orientation, the data processing capacity of the video networking and unified video platform is independent of flow and communication time, and a single network layer can contain signaling and data transmission. For voice and video services, the complexity of video networking and unified video platform streaming media processing is much simpler than that of data processing, and the efficiency is greatly improved by more than one hundred times compared with that of a traditional server.
Storage Technology (Storage Technology)
The super-high speed storage technology of the unified video platform adopts the most advanced real-time operating system in order to adapt to the media content with super-large capacity and super-large flow, the program information in the server instruction is mapped to the specific hard disk space, the media content is not passed through the server any more, and is directly sent to the user terminal instantly, and the general waiting time of the user is less than 0.2 second. The optimized sector distribution greatly reduces the mechanical motion of the magnetic head track seeking of the hard disk, the resource consumption only accounts for 20% of that of the IP internet of the same grade, but concurrent flow which is 3 times larger than that of the traditional hard disk array is generated, and the comprehensive efficiency is improved by more than 10 times.
Network Security Technology (Network Security Technology)
the structural design of the video network completely eliminates the network security problem troubling the internet structurally by the modes of independent service permission control each time, complete isolation of equipment and user data and the like, generally does not need antivirus programs and firewalls, avoids the attack of hackers and viruses, and provides a structural carefree security network for users.
service Innovation Technology (Service Innovation Technology)
the unified video platform integrates services and transmission, and is not only automatically connected once whether a single user, a private network user or a network aggregate. The user terminal, the set-top box or the PC are directly connected to the unified video platform to obtain various multimedia video services in various forms. The unified video platform adopts a menu type configuration table mode to replace the traditional complex application programming, can realize complex application by using very few codes, and realizes infinite new service innovation.
Networking of the video network is as follows:
The video network is a centralized control network structure, and the network can be a tree network, a star network, a ring network and the like, but on the basis of the centralized control node, the whole network is controlled by the centralized control node in the network.
As shown in fig. 1, the video network is divided into an access network and a metropolitan network.
the devices of the access network part can be mainly classified into 3 types: node server, access switch, terminal (including various set-top boxes, coding boards, memories, etc.). The node server is connected to an access switch, which may be connected to a plurality of terminals and may be connected to an ethernet network.
The node server is a node which plays a centralized control function in the access network and can control the access switch and the terminal. The node server can be directly connected with the access switch or directly connected with the terminal.
similarly, devices of the metropolitan network portion may also be classified into 3 types: a metropolitan area server, a node switch and a node server. The metro server is connected to a node switch, which may be connected to a plurality of node servers.
The node server is a node server of the access network part, namely the node server belongs to both the access network part and the metropolitan area network part.
The metropolitan area server is a node which plays a centralized control function in the metropolitan area network and can control a node switch and a node server. The metropolitan area server can be directly connected with the node switch or directly connected with the node server.
Therefore, the whole video network is a network structure controlled by a layered centralized way, and the network controlled by the node server and the metropolitan area server can be in various structures such as a tree, a star, a ring and the like.
The access network part can form a unified video platform (the part in the dotted circle), and a plurality of unified video platforms can form a video network; each unified video platform may be interconnected via metropolitan area and wide area video networking.
Video networking device classification
1.1 devices in the video network of the embodiment of the present invention can be mainly classified into 3 types: servers, switches (including ethernet gateways), terminals (including various set-top boxes, code boards, memories, etc.). The video network as a whole can be divided into a metropolitan area network (or national network, global network, etc.) and an access network.
1.2 wherein the devices of the access network part can be mainly classified into 3 types: node servers, access switches (including ethernet gateways), terminals (including various set-top boxes, code boards, memories, etc.).
The specific hardware structure of each access network device is as follows:
a node server:
as shown in fig. 2, the system mainly includes a network interface module 201, a switching engine module 202, a CPU module 203, and a disk array module 204;
the network interface module 201, the CPU module 203, and the disk array module 204 all enter the switching engine module 202; the switching engine module 202 performs an operation of looking up the address table 205 on the incoming packet, thereby obtaining the direction information of the packet; and stores the packet in a queue of the corresponding packet buffer 206 based on the packet's steering information; if the queue of the packet buffer 206 is nearly full, it is discarded; the switching engine module 202 polls all packet buffer queues for forwarding if the following conditions are met: 1) the port send buffer is not full; 2) the queue packet counter is greater than zero. The disk array module 204 mainly implements control over the hard disk, including initialization, read-write, and other operations on the hard disk; the CPU module 203 is mainly responsible for protocol processing with an access switch and a terminal (not shown in the figure), configuring an address table 205 (including a downlink protocol packet address table, an uplink protocol packet address table, and a data packet address table), and configuring the disk array module 204.
the access switch:
as shown in fig. 3, the network interface module mainly includes a network interface module (a downlink network interface module 301 and an uplink network interface module 302), a switching engine module 303 and a CPU module 304;
Wherein, the packet (uplink data) coming from the downlink network interface module 301 enters the packet detection module 305; the packet detection module 305 detects whether the Destination Address (DA), the Source Address (SA), the packet type, and the packet length of the packet meet the requirements, and if so, allocates a corresponding stream identifier (stream-id) and enters the switching engine module 303, otherwise, discards the stream identifier; the packet (downstream data) coming from the upstream network interface module 302 enters the switching engine module 303; the data packet coming from the CPU module 204 enters the switching engine module 303; the switching engine module 303 performs an operation of looking up the address table 306 on the incoming packet, thereby obtaining the direction information of the packet; if the packet entering the switching engine module 303 is from the downstream network interface to the upstream network interface, the packet is stored in the queue of the corresponding packet buffer 307 in association with the stream-id; if the queue of the packet buffer 307 is nearly full, it is discarded; if the packet entering the switching engine module 303 is not from the downlink network interface to the uplink network interface, the data packet is stored in the queue of the corresponding packet buffer 307 according to the guiding information of the packet; if the queue of the packet buffer 307 is nearly full, it is discarded.
The switching engine module 303 polls all packet buffer queues, which in this embodiment of the present invention is divided into two cases:
If the queue is from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) the port send buffer is not full; 2) the queued packet counter is greater than zero; 3) obtaining a token generated by a code rate control module;
if the queue is not from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) the port send buffer is not full; 2) the queue packet counter is greater than zero.
The rate control module 208 is configured by the CPU module 204, and generates tokens for packet buffer queues from all downstream network interfaces to upstream network interfaces at programmable intervals to control the rate of upstream forwarding.
the CPU module 304 is mainly responsible for protocol processing with the node server, configuration of the address table 306, and configuration of the code rate control module 308.
ethernet protocol gateway:
As shown in fig. 4, the apparatus mainly includes a network interface module (a downlink network interface module 401 and an uplink network interface module 402), a switching engine module 403, a CPU module 404, a packet detection module 405, a rate control module 408, an address table 406, a packet buffer 407, a MAC adding module 409, and a MAC deleting module 410.
wherein, the data packet coming from the downlink network interface module 401 enters the packet detection module 405; the packet detection module 405 detects whether the ethernet MAC DA, the ethernet MAC SA, the ethernet length or frame type, the video network destination address DA, the video network source address SA, the video network packet type, and the packet length of the packet meet the requirements, and if so, allocates a corresponding stream identifier (stream-id); then, the MAC deletion module 410 subtracts MAC DA, MAC SA, length or frame type (2byte) and enters the corresponding receiving buffer, otherwise, discards it;
The downlink network interface module 401 detects the sending buffer of the port, and if there is a packet, obtains the ethernet MAC DA of the corresponding terminal according to the video networking destination address DA of the packet, adds the ethernet MAC DA of the terminal, the MAC SA of the ethernet coordination gateway, and the ethernet length or frame type, and sends the packet.
The other modules in the ethernet protocol gateway function similarly to the access switch.
A terminal:
The system mainly comprises a network interface module, a service processing module and a CPU module; for example, the set-top box mainly comprises a network interface module, a video and audio coding and decoding engine module and a CPU module; the coding board mainly comprises a network interface module, a video and audio coding engine module and a CPU module; the memory mainly comprises a network interface module, a CPU module and a disk array module.
1.3 devices of the metropolitan area network part can be mainly classified into 2 types: node server, node exchanger, metropolitan area server. The node switch mainly comprises a network interface module, a switching engine module and a CPU module; the metropolitan area server mainly comprises a network interface module, a switching engine module and a CPU module.
2. Video networking packet definition
2.1 Access network packet definition
The data packet of the access network mainly comprises the following parts: destination Address (DA), Source Address (SA), reserved bytes, payload (pdu), CRC.
As shown in the following table, the data packet of the access network mainly includes the following parts:
DA | SA | Reserved | Payload | CRC |
Wherein:
the Destination Address (DA) is composed of 8 bytes (byte), the first byte represents the type of the data packet (such as various protocol packets, multicast data packets, unicast data packets, etc.), there are 256 possibilities at most, the second byte to the sixth byte are metropolitan area network addresses, and the seventh byte and the eighth byte are access network addresses;
The Source Address (SA) is also composed of 8 bytes (byte), defined as the same as the Destination Address (DA);
The reserved byte consists of 2 bytes;
The payload part has different lengths according to different types of datagrams, and is 64 bytes if the datagram is various types of protocol packets, and is 32+1024 or 1056 bytes if the datagram is a unicast packet, of course, the length is not limited to the above 2 types;
The CRC consists of 4 bytes and is calculated in accordance with the standard ethernet CRC algorithm.
2.2 metropolitan area network packet definition
The topology of a metropolitan area network is a graph and there may be 2, or even more than 2, connections between two devices, i.e., there may be more than 2 connections between a node switch and a node server, a node switch and a node switch, and a node switch and a node server. However, the metro network address of the metro network device is unique, and in order to accurately describe the connection relationship between the metro network devices, parameters are introduced in the embodiment of the present invention: a label to uniquely describe a metropolitan area network device.
In this specification, the definition of the Label is similar to that of the Label of MPLS (Multi-Protocol Label Switch), and assuming that there are two connections between the device a and the device B, there are 2 labels for the packet from the device a to the device B, and 2 labels for the packet from the device B to the device a. The label is classified into an incoming label and an outgoing label, and assuming that the label (incoming label) of the packet entering the device a is 0x0000, the label (outgoing label) of the packet leaving the device a may become 0x 0001. The network access process of the metro network is a network access process under centralized control, that is, address allocation and label allocation of the metro network are both dominated by the metro server, and the node switch and the node server are both passively executed, which is different from label allocation of MPLS, and label allocation of MPLS is a result of mutual negotiation between the switch and the server.
as shown in the following table, the data packet of the metro network mainly includes the following parts:
DA | SA | Reserved | Label (R) | Payload | CRC |
namely Destination Address (DA), Source Address (SA), Reserved byte (Reserved), tag, payload (pdu), CRC. The format of the tag may be defined by reference to the following: the tag is 32 bits with the upper 16 bits reserved and only the lower 16 bits used, and its position is between the reserved bytes and payload of the packet.
Based on the above characteristics of the video network, one of the core concepts of the embodiments of the present invention is provided, and following the protocol of the video network, compared with the case that the monitoring video stream stored in the internet video server can only be played from the internet video server via the internet, in the embodiments of the present invention, the internet terminal plays the monitoring video stream stored in the internet video server from the internet video server via the video network main server, the video network sharing server, and the video network relay server, so that the monitoring video stream stored in the internet video server can be played via the video network, and the playing path for playing the monitoring video stream stored in the internet video server is expanded. And because the video network is a private network, compared with the playing through the Internet, the embodiment of the invention can improve the information security by playing the monitoring video stream stored in the Internet video server through the video network.
referring to fig. 5, a block diagram of a video transmission system based on video networking according to an embodiment of the present invention is shown, the system including:
The system comprises an internet terminal 01, a video network main server 02, a video network sharing server 03, a video network transfer assisting server 04 and an internet video recording server 05.
The internet terminal 01 is in communication connection with the video network main server 02 based on a GB28181 protocol, the video network main server 02 is in communication connection with the video network sharing server 03 based on a video network 8f85 protocol, the video network sharing server 03 is in communication connection with the video network protocol conversion server 04 based on a video network 8f85 protocol, the video network protocol conversion server 04 is in communication connection with the internet video server 05 based on a GB28181 protocol, and the internet terminal 01 is in communication connection with the video network sharing server 03 based on a GB28181 protocol.
Referring to fig. 6, a flowchart illustrating steps of a video transmission method based on a video network according to an embodiment of the present invention is shown, where the method may be applied to the system shown in fig. 5, and the method may specifically include the following steps:
In step S101, the internet terminal sends a first acquisition request based on the GB28181 protocol to the video network main server, where the first acquisition request is used to acquire a monitoring video stream stored in the internet video server;
in the embodiment of the invention, the internet video server is in communication connection with a plurality of cameras, each camera is used for collecting the monitoring video stream and uploading the collected monitoring video stream to the internet video server, the internet video server can store the monitoring video stream uploaded by each monitoring camera,
for example, for any monitoring camera to acquire a monitoring video stream, the camera identifier of the monitoring camera and the monitoring video stream acquired by the monitoring camera may be combined into a corresponding entry, and stored in the third corresponding relationship between the camera identifier of the monitoring camera and the monitoring video stream acquired by the monitoring camera.
And then, when the user needs to check the monitoring video stream, the Internet terminal can be controlled to acquire the monitoring video stream needing to be checked from the Internet video server.
The internet terminal may obtain the monitoring video stream stored in the internet video server through the video network, for example, obtain the monitoring video stream stored in the internet video server through a video network main server, a video network sharing server and a video network coordination server located in the video network.
Specifically, the internet terminal may first obtain video directory information of a surveillance video stream stored in the internet video server, may then display the video directory information for selection by a user, may then generate a first obtaining request according to the selection of the user, where the first obtaining request is for the surveillance video stream stored in the internet video server, and may then send the first obtaining request based on the GB28181 protocol to the video network main server. The first obtaining request may also carry an identifier of the monitoring video stream selected by the user, and the like.
in the embodiment of the present invention, the first obtaining request may further carry a camera identifier of the monitoring camera, so as to indicate that the first obtaining request is used to obtain the monitoring video stream stored in the internet video server and acquired by the monitoring camera corresponding to the camera identifier.
In this embodiment of the present invention, the first obtaining request may further carry a source Address and a destination Address, where the source Address includes a terminal identifier of the Internet terminal, the terminal identifier may be an IP (Internet Protocol Address does not have GB28181 Protocol) Address of the Internet terminal, and the destination Address includes a server identifier of the Internet video server, and the server identifier may be an IP Address of the Internet video server.
In step S102, the video network master server receives the first obtaining request, converts the first obtaining request into a second obtaining request for obtaining the surveillance video stream based on the video network 8f85 protocol, and sends the second obtaining request to the video network sharing server;
In the embodiment of the invention, because the main video network server is not in direct communication connection with the internet video server, but the main video network server is in indirect communication connection with the internet video server through the video network sharing server and the video network coordination server, the main video network server needs to send data to the main internet server through the video network sharing server and the video network coordination server, however, because the main video network server is in communication connection with the video network sharing server based on the video network 8f85 protocol, after receiving the first acquisition request, the main video network server needs to convert the first acquisition request into a second acquisition request for acquiring the monitoring video stream based on the video network 8f85 protocol, and then sends the second acquisition request to the video network coordination server.
In step S103, the video network sharing server receives the second obtaining request, and sends the second obtaining request to the video network coordination server;
in the embodiment of the present invention, since the video sharing server is not in direct communication connection with the internet video server, but the video sharing server is in indirect communication connection with the internet video server via the video coordination server, the video sharing server needs to send data to the internet video server via the video coordination server, and since the video sharing server is in communication connection with the video coordination server based on the video 8f85 protocol, the video sharing server can directly send the second acquisition request to the video coordination server.
In step S104, the video-networking coordination server receives the second acquisition request, converts the second acquisition request into a first acquisition request based on the GB28181 protocol, and sends the first acquisition request to the internet video server;
in the embodiment of the present invention, since the video network protocol conversion server is directly connected to the internet video recording server through communication, the video network protocol conversion server may directly send data to the internet video recording server, however, since the video network protocol conversion server is connected to the internet video recording server through communication based on the GB28181 protocol, after receiving the second acquisition request, the video network protocol conversion server needs to convert the second acquisition request into the first acquisition request based on the GB28181 protocol, and then send the first acquisition request to the internet video recording server, for example, send the first acquisition request to the internet video recording server according to the destination address carried by the first acquisition request.
in step S105, the internet video server receives the first obtaining request, obtains a first surveillance video stream based on the GB28181 protocol, where the first surveillance video stream is obtained according to the surveillance video stream stored in the internet video server or the first surveillance video stream includes the surveillance video stream stored in the internet video server, and sends the first surveillance video stream to the video networking coordination server;
In the embodiment of the invention, the internet video recording server can send the first monitoring video stream to the internet terminal through the video network.
However, the main server of the video network is used for receiving external instructions based on the GB28181 protocol and sending the instructions based on the GB28181 protocol to the outside, however, the main server of the video network is not used for receiving external entity data streams based on the GB28181 protocol, such as video streams, audio streams, picture streams, and text streams, and is not used for sending entity data streams based on the GB28181 protocol to the outside.
The video network sharing server can be used for receiving an external entity data stream based on the GB28181 protocol and sending the entity data stream based on the GB28181 protocol to the outside.
therefore, the internet video server can transmit the first monitoring video stream to the internet terminal through the video network coordination server and the video network sharing server which are positioned in the video network.
the first surveillance video stream includes a surveillance video stream stored in the internet video server, and may also have a source address and a destination address, where the source address includes a server identifier of the internet video server, and the server identifier may be an IP address of the internet video server, or the like. The destination address comprises a terminal identifier of the internet terminal, and the terminal identifier can be an IP address of the internet terminal and the like.
In the embodiment of the present invention, if the first acquisition request further carries a camera identifier of the surveillance camera, the second acquisition request will carry the camera identifier of the surveillance camera, so that when the internet video server acquires the surveillance video stream according to the second acquisition request, the internet video server can acquire the surveillance video stream stored in the internet video server and acquired by the surveillance camera corresponding to the camera identifier, for example, in a third correspondence between the camera identifier of the surveillance camera and the surveillance video stream acquired by the surveillance camera, search for the surveillance video stream corresponding to the camera identifier, generate a first surveillance video stream based on a GB28181 protocol according to the acquired surveillance video stream, and then send the first surveillance video stream to the video networking coordination server.
in the embodiment of the present invention, the supported protocol of the first surveillance video stream is different from the supported protocol of the second surveillance video stream, but the information content in the first surveillance video stream is the same as the content in the second surveillance video stream.
in step S106, the video networking coordination server receives the first surveillance video stream, converts the first surveillance video stream into a second surveillance video stream based on the video networking 8f85 protocol, and sends the second surveillance video stream to the video networking sharing server;
In the embodiment of the present invention, since the video networking protocol conversion server is not in direct communication connection with the internet terminal, but the video networking protocol conversion server is in indirect communication connection with the internet video recording server via the video networking shared server, the video networking protocol conversion server needs to send data to the internet terminal via the video networking shared server, however, since the video networking protocol conversion server is in communication connection with the video networking shared server based on the video networking 8f85 protocol, after receiving the first surveillance video stream, the video networking protocol conversion server needs to convert the first surveillance video stream into the second surveillance video stream based on the video networking 8f85 protocol, and then send the second surveillance video stream to the video networking shared server.
In step S107, the video networking sharing server receives the second surveillance video stream, converts the second surveillance video stream into a first surveillance video stream based on the GB28181 protocol, and sends the first surveillance video stream to the internet terminal;
In the embodiment of the present invention, since the video sharing server is in direct communication connection with the internet terminal, the video sharing server may directly send data to the internet terminal, however, since the video sharing server is in communication connection with the internet terminal based on the GB28181 protocol, after receiving the second surveillance video stream, the video sharing server needs to convert the second surveillance video stream into the first surveillance video stream based on the GB28181 protocol, and then send the first surveillance video stream to the internet terminal; for example, the first surveillance video stream is sent to the internet terminal according to the destination address carried by the first surveillance video stream.
further, the internet terminal can also receive the first monitoring video stream, store the first video network monitoring video stream and/or play the first monitoring video stream.
compared with the method that the monitoring video stream stored in the internet video server can be played from the internet video server only through the internet, in the embodiment of the invention, the internet terminal plays the monitoring video stream stored in the internet video server from the internet video server through the video network main server, the video network sharing server and the video network cooperative server, so that the monitoring video stream stored in the internet video server can be played through the video network, and the playing way of playing the monitoring video stream stored in the internet video server is expanded. And because the video network is a private network, compared with the playing through the Internet, the embodiment of the invention can improve the information security by playing the monitoring video stream stored in the Internet video server through the video network.
In an optional implementation manner, before the internet video server sends the first surveillance video stream to the video networking coordination server, the internet video server is further configured to compress the first surveillance video stream, or compress and encrypt the first surveillance video stream.
In another embodiment of the present invention, when the first surveillance video stream is stored, the internet terminal may compress the first surveillance video stream to obtain a compressed surveillance video stream, and then store the compressed surveillance video stream, where the space occupied by the compressed surveillance video stream is smaller than the space occupied by the first surveillance video stream, so that, compared with directly storing the first surveillance video stream in the internet terminal, storing the compressed surveillance video stream in the internet terminal may save the storage space of the internet terminal.
the embodiment of the present invention does not limit the specific compression method.
in the embodiment of the invention, in order to save network resources, the first monitoring video stream is obtained by compressing the monitoring video stream stored in the internet video server; the space occupied by the first surveillance video stream is smaller than the space occupied by the surveillance video stream stored in the internet video server.
Therefore, when the internet terminal plays the first monitoring video stream, the first monitoring video stream can be decompressed to obtain the monitoring video stream stored in the internet video server, and then the monitoring video stream stored in the internet video server is played.
If the first monitoring video stream is directly stored in the internet terminal, anyone can play the first monitoring video stream in the internet terminal and cannot view the first monitoring video stream, so that the information safety cannot be guaranteed.
therefore, in order to ensure information security, in another embodiment of the present invention, when storing the first surveillance video stream, the internet terminal may encrypt the first surveillance video stream to obtain an encrypted surveillance video stream, and then store the encrypted surveillance video stream.
Others cannot decrypt the encrypted surveillance video stream,
compared with the method that the first monitoring video stream is directly stored in the internet terminal, the information safety can be guaranteed by storing the encrypted monitoring video stream in the internet terminal.
The embodiment of the present invention does not limit the specific encryption method.
In the embodiment of the invention, in order to ensure information security, the first monitoring video stream is obtained by encrypting the monitoring video stream stored in the internet video server, so that when the internet terminal plays the first monitoring video stream, the first monitoring video stream can be decrypted to obtain the monitoring video stream stored in the internet video server, and then the internet terminal plays the monitoring video stream stored in the internet video server.
If the first monitoring video stream is directly stored in the internet terminal, anyone can play the first monitoring video stream in the internet terminal and cannot view the first monitoring video stream, so that the information safety cannot be guaranteed.
Therefore, in order to ensure information security, in another embodiment of the present invention, when storing the first surveillance video stream, the internet terminal may encrypt the first surveillance video stream to obtain an encrypted surveillance video stream, and then store the encrypted surveillance video stream.
Others cannot decrypt the encrypted surveillance video stream,
Compared with the method that the first monitoring video stream is directly stored in the internet terminal, the information safety can be guaranteed by storing the encrypted monitoring video stream in the internet terminal.
the embodiment of the present invention does not limit the specific encryption method.
correspondingly, when the owner of the internet terminal needs to play the first monitoring video stream later, the encrypted monitoring video stream can be decrypted to obtain the first monitoring video stream, and then the first monitoring video stream is played.
If the internet video server can be accessed by any terminal, the information security of the internet video server cannot be guaranteed.
therefore, in order to ensure the information security of the internet video server, when a certain terminal needs to access the internet video server, an access request needs to be made to the internet video server, if the internet video server allows the device to access the internet video server, the internet video server issues an access token to the terminal, and then when the terminal accesses the internet video server, the terminal needs to use at least the access token to access the internet video server.
Thus, in the embodiment of the present invention, the first acquisition request further carries the terminal identifier of the internet terminal and the access token for accessing the internet video server, that is, the second acquisition request further carries the terminal identifier of the internet terminal and the access token for accessing the internet video server, where the access token is allocated to the internet terminal by the internet video server in advance;
In this way, after the internet video server receives the second acquisition request, the terminal identifier and the access token can be extracted from the second acquisition request; detecting whether the access token is valid according to the terminal identification; if the access token is valid, the Internet video recording server acquires the first monitoring video stream based on the GB28181 protocol again, and sends the first monitoring video stream to the video network coordination server again.
in another embodiment, if the access token is invalid, the internet video recording server may generate a first access denial prompt based on the GB28181 protocol, where the first access denial prompt is used to indicate that the internet terminal corresponding to the terminal identifier does not have access right to the internet video recording server, and send the first access denial prompt to the video network coordination server;
the video network coordination and conversion server receives the first access rejection prompt, converts the first access rejection prompt into a second access rejection prompt based on a video network 8f85 protocol, and sends the second access rejection prompt to the video network main server;
The video networking main server receives the second access denial prompt, converts the second access denial prompt into a first access denial prompt based on a GB28181 protocol, and sends the first access denial prompt to the Internet terminal;
and the Internet terminal receives the first access denial prompt and displays the first access denial prompt. Therefore, a user using the Internet terminal can access the Internet video server only after knowing that the user does not have the access authority to the Internet video server and applying for the access authority to the Internet video server.
In the embodiment of the invention, each time the internet video server issues an access token to a terminal, the terminal identifier of the terminal and the issued access token form a corresponding table item, and the corresponding table item is stored in the first corresponding relation between the stored terminal identifier of the terminal and the access token distributed for the terminal.
therefore, when the internet video server detects whether the access token is valid according to the terminal identifier, whether a corresponding table item comprising the terminal identifier of the internet terminal and the access token carried by the second acquisition request exists or not can be searched in the first corresponding relation between the stored terminal identifier of the terminal and the access token distributed for the terminal; if the corresponding table item comprising the terminal identifier of the Internet terminal and the access token carried by the second acquisition request exists, the Internet video server determines that the access token is valid; and if the corresponding table item comprising the terminal identifier of the Internet terminal and the access token carried by the second acquisition request does not exist, the Internet video server determines that the access token is invalid.
In the embodiment of the invention, each access token issued by the internet video server has a valid period, for example, 5 minutes, 1 hour or 24 hours, and the like, if the access token is in the valid period, the access token can be used for accessing the internet video server, and if the access token is invalid, the access token cannot be used for accessing the internet video server.
therefore, in order to further guarantee the information security of the internet video server, the internet video server may detect whether the aging of the access token expires, wherein the detection may be performed periodically or in real time, and if the aging of the access token expires, the internet video server may delete the corresponding entry from the first corresponding relationship. And then the access token with the expired time period cannot be used for accessing the Internet video recording server, and a new access token needs to be applied again.
Alternatively, in another embodiment, the internet video server, after issuing an access token to a terminal that has accessed the internet video server using the access token, but has not accessed the internet video server again using the access token for a long period of time thereafter, may be that the device no longer has a need to access the internet video server, i.e., may not continue to access the internet video server thereafter. In this case, if the corresponding entry between the device identifier of the device and the access token is always stored in the first corresponding relationship, the storage space of the internet video recording server is wasted.
Therefore, in another embodiment of the present invention, the internet video server may obtain a search time when searching the corresponding table entry in the first corresponding relationship; and then, in a second corresponding relation between the access token and the latest searching time of the access token, replacing the latest query time corresponding to the access token in the corresponding table item by using the obtained searching time.
Then, the Internet video server can detect whether the duration of the access token which is not searched is longer than the preset duration or not according to the latest query time after replacement in real time; if the access token is longer than the preset time, the access token may not be used any more, or the internet terminal may not have a requirement for accessing the internet video server any more in a short time, so that the corresponding table entry including the access token may be deleted from the first corresponding relationship, thereby saving the storage space of the internet video server.
In one embodiment, the video network main server and the video network protocol conversion server can also be connected based on the video network 8f85 protocol communication.
Before the internet terminal acquires the monitoring video stream from the internet video server, directory information of the monitoring video stored in the internet video server may be acquired first, and then the monitoring video stream to be acquired may be determined according to the directory information.
For example, referring to fig. 7, a flowchart illustrating steps of a method for acquiring video directory information based on a video network according to an embodiment of the present invention is shown, where the method may specifically include the following steps:
In step S201, the internet terminal sends a first obtaining request based on the GB28181 protocol to the video network main server, where the first obtaining request is used to obtain directory information of a monitoring video stored in the internet video server;
In the embodiment of the invention, the internet video server is in communication connection with the plurality of cameras, each camera is used for collecting monitoring videos and uploading the collected monitoring videos to the internet video server, and the internet video server can store the monitoring videos uploaded by each monitoring camera.
Then, when the user needs to check the monitoring video, the directory information of the monitoring video stored in the internet video server can be obtained first, then the monitoring video needing to be checked is determined according to the directory information, and then the monitoring video needing to be checked is obtained from the internet video server.
The directory information includes an identifier of a camera communicatively connected to the internet video server, a location of each camera, an administrative organization to which each camera belongs, and a working time of each camera, which is not limited in this embodiment of the present invention.
The internet terminal may obtain the directory information of the monitoring videos stored in the internet video server through the video network, for example, the directory information of the monitoring videos stored in the internet video server is obtained through a video network main server and a video network coordination server located in the video network.
Specifically, the internet terminal may generate a first acquisition request for acquiring directory information of a surveillance video stored in the internet video server, and may then transmit the first acquisition request based on the GB28181 protocol to the video network main server.
in this embodiment of the present invention, the first obtaining request may further carry a source Address and a destination Address, where the source Address includes a terminal identifier of the Internet terminal, the terminal identifier may be an IP (Internet Protocol Address does not have GB28181 Protocol) Address of the Internet terminal, and the destination Address includes a server identifier of the Internet video server, and the server identifier may be an IP Address of the Internet video server.
In step S202, the video network master server receives the first obtaining request, converts the first obtaining request into a second obtaining request for obtaining the directory information based on the video network 8f85 protocol, and sends the second obtaining request to the video network coordination server;
In the embodiment of the present invention, since the main video network server is not in direct communication connection with the internet video server, but the main video network server is in indirect communication connection with the internet video server via the video network protocol conversion server, the main video network server needs to send data to the internet video server via the video network protocol conversion server, however, since the main video network server is in communication connection with the video network protocol conversion server based on the video network 8f85 protocol, after receiving the first obtaining request, the main video network server needs to convert the first obtaining request into a second obtaining request for obtaining the directory information based on the video network 8f85 protocol, and then send the second obtaining request to the video network protocol conversion server.
in step S203, the video-on-internet protocol conversion server receives the second acquisition request, converts the second acquisition request into a first acquisition request based on the GB28181 protocol, and sends the first acquisition request to the internet video recording server;
In the embodiment of the present invention, since the video network protocol conversion server is directly connected to the internet video recording server through communication, the video network protocol conversion server may directly send data to the internet video recording server, however, since the video network protocol conversion server is connected to the internet video recording server through communication based on the GB28181 protocol, after receiving the second acquisition request, the video network protocol conversion server needs to convert the second acquisition request into the first acquisition request based on the GB28181 protocol, and then send the first acquisition request to the internet video recording server. For example, the first acquisition request is sent to an internet video recording server according to a destination address carried by the first acquisition request.
In step S204, the internet video server receives the first obtaining request, obtains first video directory information based on the GB28181 protocol, where the first video directory information includes directory information of the monitoring video stored in the internet video server, and sends the first video directory information to the video networking coordination server;
the internet video server may send the first video directory information to the internet terminal through the video network, for example, send the first video directory information to the internet terminal through a video network coordination server and a video network main server located in the video network.
The first video directory information includes directory information of the monitoring video stored in the internet video server, and of course, the first video directory information may also include a source address and a destination address, the source address includes a server identifier of the internet video server, and the server identifier may be an IP address of the internet video server, and the like. The destination address comprises a terminal identifier of the internet terminal, and the terminal identifier can be an IP address of the internet terminal and the like.
In step S205, the video network protocol conversion server receives the first video directory information, converts the first video directory information into second video directory information based on the video network 8f85 protocol, and sends the second video directory information to the video network main server;
In the embodiment of the present invention, since the video network protocol conversion server is not in direct communication connection with the internet terminal, but the video network protocol conversion server is in indirect communication connection with the internet terminal via the video network main server, the video network protocol conversion server needs to send data to the internet terminal via the video network main server, however, since the video network protocol conversion server is in communication connection with the video network main server based on the video network 8f85 protocol, the video network protocol conversion server needs to convert the first video directory information into the second video directory information based on the video network 8f85 protocol after receiving the first video directory information, and then send the second video directory information to the video network main server.
in the embodiment of the invention, the protocol supported by the first video directory information is different from the protocol supported by the second video directory information, but the information content in the first video directory information is the same as the content in the second video directory information.
In step S206, the video networking host server receives the second video directory information, converts the second video directory information into the first video directory information based on the GB28181 protocol, and sends the first video directory information to the internet terminal;
In the embodiment of the invention, because the video network main server is in direct communication connection with the internet terminal, the video network main server can directly send data to the internet terminal, however, because the video network main server is in communication connection with the internet terminal based on the GB28181 protocol, after receiving the second video directory information, the video network main server needs to convert the second video directory information into the first video directory information based on the GB28181 protocol, and then sends the first video directory information to the internet terminal; for example, the first video directory information is sent to the internet terminal according to the destination address carried by the first video directory information.
further, the internet terminal receives the first video directory information.
further, in order to enable the user to view the first video directory information, the internet terminal may also display the first video directory information, for example, on a screen.
Further, in order to facilitate the user to view the first video directory information in the internet later, the internet terminal may further store the first video directory information, for example, locally at the internet terminal. And then, when the user needs to check the directory information of the monitoring videos stored in the internet video server again, the internet terminal can directly acquire the first video directory information stored locally without repeatedly executing the process to acquire the first video directory information, so that the efficiency of acquiring the first video directory information can be improved.
compared with the method that the directory information of the monitoring videos stored in the internet video server can be obtained from the internet video server only through the internet, in the embodiment of the invention, the internet terminal obtains the directory information of the monitoring videos stored in the internet video server from the internet video server through the video network main server and the video network cooperative server, so that the directory information of the monitoring videos stored in the internet video server in the video network can be obtained, and the obtaining way of obtaining the directory information of the monitoring videos stored in the internet video server is expanded. And because the video network is a private network, compared with the method for obtaining the monitoring video through the Internet, the embodiment of the invention can improve the information security through the directory information of the monitoring video stored in the video network Internet video server.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts, but those skilled in the art will recognize that the embodiments are not limited by the described acts, as some steps may be performed in other sequences or simultaneously according to the embodiments. Furthermore, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement an embodiment of the invention.
the embodiment of the invention also discloses a video transmission system based on the video network, which comprises an internet terminal, a video network main server, a video network sharing server, a video network transfer server and an internet video server;
The internet terminal is used for sending a first acquisition request based on a GB28181 protocol to the video networking main server, wherein the first acquisition request is used for acquiring a monitoring video stream stored in the internet video server;
the video network main server is used for receiving the first acquisition request, converting the first acquisition request into a second acquisition request based on a video network 8f85 protocol and used for acquiring the monitoring video stream, and sending the second acquisition request to the video network sharing server;
The video network sharing server is used for receiving the second acquisition request and sending the second acquisition request to the video network coordination server;
The video network protocol conversion server is used for receiving the second acquisition request, converting the second acquisition request into the first acquisition request based on the GB28181 protocol, and sending the first acquisition request to the Internet video server;
The internet video server is configured to receive the first acquisition request, acquire a first surveillance video stream based on a GB28181 protocol, and send the first surveillance video stream to the video networking coordination server, where the first surveillance video stream is obtained according to a surveillance video stream stored in the internet video server or the first surveillance video stream includes a surveillance video stream stored in the internet video server;
The video networking coordination and conversion server is further used for receiving the first monitoring video stream, converting the first monitoring video stream into a second monitoring video stream based on a video networking 8f85 protocol, and sending the second monitoring video stream to the video networking sharing server;
the video networking sharing server is further configured to receive the second surveillance video stream, convert the second surveillance video stream into the first surveillance video stream based on the GB28181 protocol, and send the first surveillance video stream to the internet terminal.
in an optional implementation manner, the internet terminal is further configured to receive the first surveillance video stream, play the first surveillance video stream, and/or store the first surveillance video stream.
In an optional implementation manner, before the internet video server sends the first surveillance video stream to the video networking coordination server, the internet video server is further configured to compress the first surveillance video stream, or compress and encrypt the first surveillance video stream.
In an optional implementation manner, the second acquisition request further carries a terminal identifier of the internet terminal and an access token for accessing the internet video server, where the access token is previously allocated to the internet terminal by the internet video server;
the internet video server is further configured to extract the terminal identifier and the access token from the second acquisition request;
The Internet video server is also used for detecting whether the access token is valid according to the terminal identification;
And if the access token is valid, the Internet video server is also used for acquiring a first monitoring video stream based on the GB28181 protocol.
In an optional implementation manner, if the access token is invalid, the internet video recording server is further configured to generate a first access denial prompt based on a GB28181 protocol, where the first access denial prompt is used to indicate that the internet terminal corresponding to the terminal identifier does not have access right to the internet video recording server, and send the first access denial prompt to the video network coordination server;
The video network coordination and conversion server is further used for receiving the first access rejection prompt, converting the first access rejection prompt into a second access rejection prompt based on a video network 8f85 protocol, and sending the second access rejection prompt to the video network main server;
the video networking main server is further used for receiving the second access denial prompt, converting the second access denial prompt into the first access denial prompt based on the GB28181 protocol, and sending the first access denial prompt to the Internet terminal;
The internet terminal is further used for receiving the first access denial prompt and displaying the first access denial prompt.
in an optional implementation manner, the internet video server is further configured to search, in a first corresponding relationship between a stored terminal identifier of a terminal and an access token allocated to the terminal, whether a corresponding entry including the terminal identifier and the access token exists;
If the corresponding table entry comprising the terminal identification and the access token exists, the Internet video server is further used for determining that the access token is valid;
And if the corresponding table item comprising the terminal identification and the access token does not exist, the Internet video server is also used for determining that the access token is invalid.
in an optional implementation manner, the internet video server is further configured to detect whether the aging of the access token expires;
If the time period of the access token has expired, the internet video server is further configured to delete the corresponding entry from the first corresponding relationship.
In an optional implementation manner, the internet video server is further configured to obtain a search time when the corresponding entry is searched in the first corresponding relationship;
And the Internet video server is also used for replacing the latest query time corresponding to the access token in the corresponding table item with the acquired search time in a second corresponding relation between the access token and the latest search time of the access token.
in an optional implementation manner, the internet video server is further configured to detect whether a duration of the access token that is not searched is longer than a preset duration in real time according to the latest query time after replacement;
and if the time length is longer than the preset time length, the Internet video server is further used for deleting the corresponding table entry comprising the access token in the first corresponding relation.
Compared with the method that the monitoring video stream stored in the internet video server can be played from the internet video server only through the internet, in the embodiment of the invention, the internet terminal plays the monitoring video stream stored in the internet video server from the internet video server through the video network main server, the video network sharing server and the video network cooperative server, so that the monitoring video stream stored in the internet video server can be played through the video network, and the playing way of playing the monitoring video stream stored in the internet video server is expanded. And because the video network is a private network, compared with the playing through the Internet, the embodiment of the invention can improve the information security by playing the monitoring video stream stored in the Internet video server through the video network.
For the system embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
the embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create a system for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
these computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction system which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
these computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
the video transmission method and system based on the video network provided by the embodiment of the present invention are introduced in detail, and a specific example is applied in the text to explain the principle and implementation manner of the embodiment of the present invention, and the description of the embodiment is only used to help understanding the method and core idea of the embodiment of the present invention; meanwhile, for a person skilled in the art, according to the idea of the embodiment of the present invention, there may be a change in the specific implementation and application scope, and in summary, the content of the present specification should not be construed as a limitation to the embodiment of the present invention.
Claims (10)
1. a video transmission method based on video networking is characterized in that the method is applied to a video transmission system based on video networking, the system comprises an Internet terminal, a video networking main server, a video networking sharing server, a video networking transfer assisting server and an Internet video recording server, and the method comprises the following steps:
The internet terminal sends a first acquisition request based on a GB28181 protocol to the video networking main server, wherein the first acquisition request is used for acquiring a monitoring video stream stored in the internet video recording server;
The video network master server receives the first acquisition request, converts the first acquisition request into a second acquisition request based on a video network 8f85 protocol and used for acquiring the monitoring video stream, and sends the second acquisition request to the video network sharing server;
the video networking sharing server receives the second acquisition request and sends the second acquisition request to the video networking coordination server;
the video network protocol conversion server receives the second acquisition request, converts the second acquisition request into the first acquisition request based on the GB28181 protocol, and sends the first acquisition request to the Internet video recording server;
The Internet video server receives the first acquisition request, acquires a first monitoring video stream based on a GB28181 protocol, and sends the first monitoring video stream to the video networking coordination server, wherein the first monitoring video stream is obtained according to the monitoring video stream stored in the Internet video server or comprises the monitoring video stream stored in the Internet video server;
The video networking coordination and conversion server receives the first monitoring video stream, converts the first monitoring video stream into a second monitoring video stream based on a video networking 8f85 protocol, and sends the second monitoring video stream to the video networking sharing server;
And the video networking sharing server receives the second monitoring video stream, converts the second monitoring video stream into the first monitoring video stream based on the GB28181 protocol, and sends the first monitoring video stream to the Internet terminal.
2. The method of claim 1, further comprising: and the Internet terminal receives the first monitoring video stream, plays the first monitoring video stream and/or stores the first monitoring video stream.
3. the method of claim 1, wherein before the internet video recording server sends the first surveillance video stream to the video networking coordination server, the method further comprises:
And compressing the first monitoring video stream, or compressing and encrypting the first monitoring video stream.
4. The method according to claim 1, wherein the second acquisition request further carries a terminal identifier of the internet terminal and an access token for accessing the internet video server, and the access token is previously allocated to the internet terminal by the internet video server;
the method further comprises the following steps:
the Internet video server extracts the terminal identification and the access token from the second acquisition request;
The Internet video server detects whether the access token is valid according to the terminal identification;
And if the access token is valid, the Internet video recording server executes the step of acquiring the first monitoring video stream based on the GB28181 protocol.
5. The method of claim 4, further comprising:
If the access token is invalid, the Internet video server generates a first access denial prompt based on a GB28181 protocol, wherein the first access denial prompt is used for indicating that the Internet terminal corresponding to the terminal identifier does not have access authority to the Internet video server, and the first access denial prompt is sent to the video network coordination server;
The video network coordination and conversion server receives the first access rejection prompt, converts the first access rejection prompt into a second access rejection prompt based on a video network 8f85 protocol, and sends the second access rejection prompt to the video network main server;
the video networking main server receives the second access denial prompt, converts the second access denial prompt into the first access denial prompt based on the GB28181 protocol, and sends the first access denial prompt to the Internet terminal;
and the internet terminal receives the first access denial prompt and displays the first access denial prompt.
6. the method of claim 4, wherein the detecting, by the Internet video recording server, whether the access token is valid according to the terminal identifier comprises:
the Internet video recording server searches whether a corresponding table item comprising a terminal identifier and an access token exists in a first corresponding relation between the stored terminal identifier of the terminal and the access token distributed for the terminal;
if the corresponding table item comprising the terminal identification and the access token exists, the Internet video server determines that the access token is valid;
And if the corresponding table item comprising the terminal identification and the access token does not exist, the Internet video recording server determines that the access token is invalid.
7. the method of claim 6, further comprising:
The internet video server detects whether the time efficiency of the access token is expired;
and if the time limit of the access token is expired, the Internet video recording server deletes the corresponding table entry from the first corresponding relation.
8. The method of claim 6, further comprising:
the Internet video server obtains the searching time when the corresponding table item is searched in the first corresponding relation;
and the Internet video server uses the obtained search time to replace the latest query time corresponding to the access token in the corresponding table item in a second corresponding relation between the access token and the latest search time of the access token.
9. the method of claim 8, further comprising:
The Internet video server detects whether the duration of the access token which is not searched is longer than the preset duration or not according to the latest query moment after replacement in real time;
and if the time length is longer than the preset time length, the Internet video recording server deletes the corresponding table entry comprising the access token in the first corresponding relation.
10. A video transmission system based on video network is characterized in that the system comprises an Internet terminal, a video network main server, a video network sharing server, a video network transfer server and an Internet video server;
the internet terminal is used for sending a first acquisition request based on a GB28181 protocol to the video networking main server, wherein the first acquisition request is used for acquiring a monitoring video stream stored in the internet video server;
the video network main server is used for receiving the first acquisition request, converting the first acquisition request into a second acquisition request based on a video network 8f85 protocol and used for acquiring the monitoring video stream, and sending the second acquisition request to the video network sharing server;
the video network sharing server is used for receiving the second acquisition request and sending the second acquisition request to the video network coordination server;
the video network protocol conversion server is used for receiving the second acquisition request, converting the second acquisition request into the first acquisition request based on the GB28181 protocol, and sending the first acquisition request to the Internet video server;
The internet video server is used for receiving the first acquisition request, acquiring a first monitoring video stream based on a GB28181 protocol, wherein the first monitoring video stream is obtained according to the monitoring video stream stored in the internet video server, and sending the first monitoring video stream to the video networking coordination server;
The video networking coordination and conversion server is further used for receiving the first monitoring video stream, converting the first monitoring video stream into a second monitoring video stream based on a video networking 8f85 protocol, and sending the second monitoring video stream to the video networking sharing server;
The video networking sharing server is further configured to receive the second surveillance video stream, convert the second surveillance video stream into the first surveillance video stream based on the GB28181 protocol, and send the first surveillance video stream to the internet terminal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910804703.2A CN110545405B (en) | 2019-08-28 | 2019-08-28 | Video transmission method and system based on video network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910804703.2A CN110545405B (en) | 2019-08-28 | 2019-08-28 | Video transmission method and system based on video network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110545405A true CN110545405A (en) | 2019-12-06 |
CN110545405B CN110545405B (en) | 2021-05-28 |
Family
ID=68712249
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910804703.2A Active CN110545405B (en) | 2019-08-28 | 2019-08-28 | Video transmission method and system based on video network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110545405B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111131912A (en) * | 2019-12-30 | 2020-05-08 | 视联动力信息技术股份有限公司 | Communication method and device |
CN111866591A (en) * | 2020-07-23 | 2020-10-30 | 腾讯科技(深圳)有限公司 | Video playing method, device, equipment and storage medium |
CN112261336A (en) * | 2020-09-25 | 2021-01-22 | 山东浪潮通软信息科技有限公司 | Method for realizing mobile phone video communication by fusing GB28181 protocol |
CN112437269A (en) * | 2020-11-13 | 2021-03-02 | 珠海大横琴科技发展有限公司 | Data sharing method and device |
CN113163231A (en) * | 2021-03-10 | 2021-07-23 | 视联动力信息技术股份有限公司 | Data sharing method, device, server and medium |
CN115348057A (en) * | 2022-07-12 | 2022-11-15 | 海南视联通信技术有限公司 | Data interaction method, system and device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CA2467988A1 (en) * | 2004-05-21 | 2005-11-21 | Teamon Systems, Inc. | System and method for initiating secure network connection from a client to a network host |
CN101316277A (en) * | 2007-06-01 | 2008-12-03 | 三星电子株式会社 | Method and apparatus for controlling device through WEB-based service |
KR100891745B1 (en) * | 2007-12-07 | 2009-04-03 | 한국전자통신연구원 | Method and apparatus of providing video on demand service based on ip multimedia subsystem |
CN109743284A (en) * | 2018-11-27 | 2019-05-10 | 视联动力信息技术股份有限公司 | A kind of method for processing video frequency and system based on view networking |
CN109743285A (en) * | 2018-11-28 | 2019-05-10 | 视联动力信息技术股份有限公司 | A kind of method and system obtaining PCTV resource |
CN109769123A (en) * | 2018-12-10 | 2019-05-17 | 视联动力信息技术股份有限公司 | A kind of processing method and system regarding networking data |
CN110121059A (en) * | 2019-05-08 | 2019-08-13 | 视联动力信息技术股份有限公司 | Monitor video processing method, device and storage medium |
-
2019
- 2019-08-28 CN CN201910804703.2A patent/CN110545405B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CA2467988A1 (en) * | 2004-05-21 | 2005-11-21 | Teamon Systems, Inc. | System and method for initiating secure network connection from a client to a network host |
CN101316277A (en) * | 2007-06-01 | 2008-12-03 | 三星电子株式会社 | Method and apparatus for controlling device through WEB-based service |
KR100891745B1 (en) * | 2007-12-07 | 2009-04-03 | 한국전자통신연구원 | Method and apparatus of providing video on demand service based on ip multimedia subsystem |
CN109743284A (en) * | 2018-11-27 | 2019-05-10 | 视联动力信息技术股份有限公司 | A kind of method for processing video frequency and system based on view networking |
CN109743285A (en) * | 2018-11-28 | 2019-05-10 | 视联动力信息技术股份有限公司 | A kind of method and system obtaining PCTV resource |
CN109769123A (en) * | 2018-12-10 | 2019-05-17 | 视联动力信息技术股份有限公司 | A kind of processing method and system regarding networking data |
CN110121059A (en) * | 2019-05-08 | 2019-08-13 | 视联动力信息技术股份有限公司 | Monitor video processing method, device and storage medium |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111131912A (en) * | 2019-12-30 | 2020-05-08 | 视联动力信息技术股份有限公司 | Communication method and device |
CN111131912B (en) * | 2019-12-30 | 2023-04-18 | 视联动力信息技术股份有限公司 | Communication method, broadcasting method, communication device and broadcasting device |
CN111866591A (en) * | 2020-07-23 | 2020-10-30 | 腾讯科技(深圳)有限公司 | Video playing method, device, equipment and storage medium |
CN112261336A (en) * | 2020-09-25 | 2021-01-22 | 山东浪潮通软信息科技有限公司 | Method for realizing mobile phone video communication by fusing GB28181 protocol |
CN112437269A (en) * | 2020-11-13 | 2021-03-02 | 珠海大横琴科技发展有限公司 | Data sharing method and device |
CN113163231A (en) * | 2021-03-10 | 2021-07-23 | 视联动力信息技术股份有限公司 | Data sharing method, device, server and medium |
CN113163231B (en) * | 2021-03-10 | 2024-03-15 | 视联动力信息技术股份有限公司 | Data sharing method, device, server and medium |
CN115348057A (en) * | 2022-07-12 | 2022-11-15 | 海南视联通信技术有限公司 | Data interaction method, system and device |
Also Published As
Publication number | Publication date |
---|---|
CN110545405B (en) | 2021-05-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110545405B (en) | Video transmission method and system based on video network | |
CN110166728B (en) | Video networking conference opening method and device | |
CN109587002B (en) | State detection method and system for video network monitoring equipment | |
CN110113566B (en) | Method and device for calling video stream | |
CN109246135B (en) | Method and system for acquiring streaming media data | |
CN108965930B (en) | Video data processing method and device | |
CN108574816B (en) | Video networking terminal and communication method and device based on video networking terminal | |
CN109743555B (en) | Information processing method and system based on video network | |
CN109743284B (en) | Video processing method and system based on video network | |
CN110139124B (en) | Processing method and device for monitoring recording | |
CN110012316B (en) | Method, device, equipment and storage medium for processing video networking service | |
CN109544879B (en) | Alarm data processing method and system | |
CN110557608B (en) | Resource monitoring method, device and computer readable storage medium | |
CN109698953B (en) | State detection method and system for video network monitoring equipment | |
CN110113555B (en) | Video conference processing method and system based on video networking | |
CN109688073B (en) | Data processing method and system based on video network | |
CN110620936B (en) | Video network video backup method and device, electronic equipment and storage medium | |
CN110474934B (en) | Data processing method and video networking monitoring platform | |
CN109379553B (en) | Audio and video data display method and system | |
CN110213533B (en) | Method and device for acquiring video stream monitored by video network | |
CN110691214B (en) | Data processing method and device for business object | |
CN110224979B (en) | Data processing method and device | |
CN110768854B (en) | Data statistics method and device based on video network | |
CN110798720A (en) | Multimedia data transmission method and device | |
CN110719437A (en) | Monitoring video processing method and device based on video network |
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 |