CN110035297B - Video processing method and device - Google Patents

Video processing method and device Download PDF

Info

Publication number
CN110035297B
CN110035297B CN201910177274.0A CN201910177274A CN110035297B CN 110035297 B CN110035297 B CN 110035297B CN 201910177274 A CN201910177274 A CN 201910177274A CN 110035297 B CN110035297 B CN 110035297B
Authority
CN
China
Prior art keywords
video
video networking
packet
data packet
network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910177274.0A
Other languages
Chinese (zh)
Other versions
CN110035297A (en
Inventor
李明亮
沈军
杨传坤
付林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Visionvera Information Technology Co Ltd
Original Assignee
Visionvera Information Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Visionvera Information Technology Co Ltd filed Critical Visionvera Information Technology Co Ltd
Priority to CN201910177274.0A priority Critical patent/CN110035297B/en
Publication of CN110035297A publication Critical patent/CN110035297A/en
Application granted granted Critical
Publication of CN110035297B publication Critical patent/CN110035297B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/302Route determination based on requested QoS
    • H04L45/306Route determination based on the nature of the carried application
    • H04L45/3065Route determination based on the nature of the carried application for real time traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
    • H04L45/507Label distribution
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/06Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/231Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/232Content retrieval operation locally within server, e.g. reading video streams from disk arrays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management 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/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists

Abstract

The invention provides a video processing method and device. The method comprises the following steps: after receiving a packet capturing request carrying data packet information sent by the packet capturing server, the video networking core server inquires whether a video networking protocol data packet matched with the data packet information exists or not; when the video networking core server exists, returning the video networking protocol data packet to the packet capturing server; and when the video networking core server does not exist, acquiring a video networking protocol data packet matched with the data packet information from the video networking network equipment corresponding to the data packet information, and returning the video networking protocol data packet to the packet capturing server. The invention can improve the processing efficiency and improve the user experience.

Description

Video processing method and device
Technical Field
The present invention relates to the field of video networking technologies, and in particular, to a video processing method and a video processing apparatus.
Background
Video surveillance is an important component of security systems. The traditional monitoring system comprises front-end monitoring equipment, a transmission cable and a video monitoring platform. Video monitoring is widely applied to many occasions due to intuition, accuracy, timeliness and rich information content. In recent years, with the rapid development of computers, networks, image processing and transmission technologies, video monitoring technologies have been developed.
The user may request to view the surveillance video captured by the surveillance device. However, some surveillance devices may have problems capturing the video stream that may not be properly played at the viewing terminal. For the problem, usually, the user notifies a maintenance person to process the video after finding the video problem at the viewing terminal, but the processing efficiency of the method is low, and the user experience is poor.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide a video processing method and a corresponding video processing apparatus that overcome or at least partially solve the above problems.
In order to solve the above problem, an embodiment of the present invention discloses a video processing method, where the method is applied to a video network, and the video network includes a video network core server, a packet capturing server, and a video network device, and the method includes:
after receiving a packet capturing request carrying data packet information sent by the packet capturing server, the video networking core server inquires whether a video networking protocol data packet matched with the data packet information exists or not;
when the video networking core server exists, returning the video networking protocol data packet to the packet capturing server;
and when the video networking core server does not exist, acquiring a video networking protocol data packet matched with the data packet information from the video networking network equipment corresponding to the data packet information, and returning the video networking protocol data packet to the packet capturing server.
Optionally, the packet information includes a source MAC address; the step of obtaining the video networking protocol data packet matched with the data packet information from the video networking network equipment corresponding to the data packet information comprises the following steps: the video network core server forwards the packet capturing request carrying the data packet information to video network equipment corresponding to the source MAC address; and the video networking core server receives a video networking protocol data packet obtained by encapsulating video streaming data collected by all video collection equipment connected with the video networking network equipment, and the video networking protocol data packet is returned by the video networking network equipment corresponding to the source MAC address.
Optionally, the data packet information includes a source MAC address and a video capture device identifier; the step of obtaining the video networking protocol data packet matched with the data packet information from the video networking network equipment corresponding to the data packet information comprises the following steps: the video network core server forwards the packet capturing request carrying the data packet information to video network equipment corresponding to the source MAC address; and the video networking core server receives a video networking protocol data packet obtained by encapsulating video streaming data acquired by the video acquisition equipment corresponding to the video acquisition equipment identifier, which is returned by the video networking network equipment corresponding to the source MAC address and is connected with the video networking network equipment.
Optionally, after the step of returning the video networking protocol data packet to the packet capturing server, the method further includes: and after receiving the video networking protocol data packet matched with the data packet information, the packet capturing server extracts the video stream data encapsulated in the data packet and stores the video stream data as an original code stream file in a binary format.
Optionally, the network devices include a first network device and a second network device, and the internet includes an internet terminal; the method further comprises the following steps: after the first video networking network device acquires a video networking protocol request packet, forwarding the video networking protocol request packet to the second video networking network device through the video networking core server; the video networking protocol request packet is provided with a flow regulation request; the video networking protocol request packet is obtained by converting an Internet protocol request packet, and the Internet protocol request packet is sent by the Internet terminal; the first video network equipment receives a video network protocol data packet which is returned by the second video network equipment and is forwarded by the video network core server; the video networking protocol data packet is provided with video stream data corresponding to the stream adjusting request; and the first video networking network equipment converts the video networking protocol data packet into an internet protocol data packet and sends the internet protocol data packet to the internet terminal.
Optionally, the network device further comprises a third network device; before the step of forwarding the video networking protocol request packet to the second video networking network device via the video networking core server after the first video networking network device acquires the video networking protocol request packet, the method further includes: the third video network equipment receives an internet protocol request packet sent by the internet terminal and converts the internet protocol request packet into a video network protocol request packet; the third video networking network device forwards the video networking protocol request packet to the first video networking network device via the video networking core server.
On the other hand, the embodiment of the invention also discloses a video processing device, the device is applied to the video network, the video network comprises a video network core server, a packet capturing server and video network equipment, and the video network core server comprises:
the query module is used for querying whether a video networking protocol data packet matched with the data packet information exists or not after receiving a packet capturing request carrying the data packet information and sent by the packet capturing server;
the return module is used for returning the video networking protocol data packet to the packet capturing server when the video networking protocol data packet exists;
and the acquisition returning module is used for acquiring the video networking protocol data packet matched with the data packet information from the video networking network equipment corresponding to the data packet information when the acquisition returning module does not exist, and returning the video networking protocol data packet to the packet capturing server.
Optionally, the packet information includes a source MAC address; the acquisition return module includes: the request forwarding unit is used for forwarding the packet capturing request carrying the data packet information to the video networking network equipment corresponding to the source MAC address; and the data receiving unit is used for receiving a video networking protocol data packet which is returned by the video networking network equipment corresponding to the source MAC address and obtained by encapsulating video streaming data collected by all the video collecting equipment connected with the video networking network equipment.
Optionally, the data packet information includes a source MAC address and a video capture device identifier; the acquisition return module includes: the request forwarding unit is used for forwarding the packet capturing request carrying the data packet information to the video networking network equipment corresponding to the source MAC address; and the data receiving unit is used for receiving a video networking protocol data packet which is returned by the video networking network equipment corresponding to the source MAC address and is obtained by encapsulating video streaming data acquired by the video acquisition equipment corresponding to the video acquisition equipment identifier and connected with the video networking network equipment.
Optionally, the packet capture server includes: and the storage module is used for extracting the video stream data encapsulated in the video stream data after receiving the video networking protocol data packet matched with the data packet information, and storing the video stream data as an original code stream file in a binary format.
Optionally, the network devices include a first network device and a second network device, and the internet includes an internet terminal; the first video networking network device comprises: the forwarding module is used for forwarding the video networking protocol request packet to the second video networking network device through the video networking core server after the video networking protocol request packet is acquired; the video networking protocol request packet is provided with a flow regulation request; the video networking protocol request packet is obtained by converting an Internet protocol request packet, and the Internet protocol request packet is sent by the Internet terminal; the receiving module is used for receiving the video networking protocol data packet which is returned by the second video networking network equipment and is forwarded by the video networking core server; the video networking protocol data packet is provided with video stream data corresponding to the stream adjusting request; and the first conversion module is used for converting the video networking protocol data packet into an internet protocol data packet and sending the internet protocol data packet to the internet terminal.
Optionally, the network device further comprises a third network device; the third video networking network device comprises: the second conversion module is used for receiving an internet protocol request packet sent by the internet terminal and converting the internet protocol request packet into a video networking protocol request packet; a sending module, configured to forward the video networking protocol request packet to the first video networking network device via the video networking core server.
In the embodiment of the invention, after receiving a packet capturing request carrying data packet information sent by a packet capturing server, a video networking core server inquires whether a video networking protocol data packet matched with the data packet information exists or not; when the video networking core server exists, returning the video networking protocol data packet to the packet capturing server; and when the video networking core server does not exist, acquiring a video networking protocol data packet matched with the data packet information from the video networking network equipment corresponding to the data packet information, and returning the video networking protocol data packet to the packet capturing server. Therefore, in the embodiment of the invention, the required video networking protocol data packet can be captured by the packet capturing server for analysis, so that the video networking protocol data packet can be analyzed before being played, and the processing efficiency is improved; and considering that the video networking protocol data packets transmitted in the video networking are all forwarded through the video networking core server, the required video networking protocol data packets can be inquired from the video networking core server, and if the required video networking protocol data packets do not exist, the required video networking protocol data packets are obtained from the video networking network equipment where the required video networking protocol data packets are located, so that the processing efficiency is further improved, and the user experience is improved.
Drawings
FIG. 1 is a schematic networking diagram of a video network of the present invention;
FIG. 2 is a schematic diagram of a hardware architecture of a node server according to the present invention;
fig. 3 is a schematic diagram of a hardware structure of an access switch of the present invention;
fig. 4 is a schematic diagram of a hardware structure of an ethernet protocol conversion gateway according to the present invention;
FIG. 5 is a flowchart illustrating steps of a video processing method according to a first embodiment of the invention;
FIG. 6 is a flowchart illustrating steps of a video processing method according to a second embodiment of the present invention;
fig. 7 is a block diagram of a video processing apparatus according to a third embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
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 with layered centralized control, and the network controlled by the node server and the metropolitan area server can be in various structures such as tree, star and ring.
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.
1. 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 conversion 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 MACDA, the ethernet MACSA, 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 MACDA, MACSA, 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, acquires 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 MACSA 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 data packets, and is 64 bytes if the data packet is a variety of protocol packets, and is 32+1024 or 1056 bytes if the data packet is a unicast data 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 characteristics of the video network, the video processing scheme provided by the embodiment of the invention follows the protocol of the video network, and can more efficiently capture and analyze the video network protocol data packet.
The video processing scheme of the embodiment of the invention is applied to the video network. An internet of view core server (such as the node server described above), a packet capture server, and an internet of view network device may be included in the internet of view. The packet capturing server and the video network equipment are registered in the video network core server and then can be accessed to the video network for related services. After the successful registration, the core server of the video network allocates a virtual terminal number and a virtual MAC (Media Access Control) address to the successfully registered packet capturing server and the successfully registered network devices of the video network, and the virtual terminal number corresponds to the virtual MAC address one to one. The packet capturing server and the video network equipment are uniquely identified in the video network through the virtual terminal number and the virtual MAC address which are distributed to the packet capturing server and the video network equipment by the video network core server. For example, the virtual terminal number allocated to a network device of the internet of view is 11130, and the virtual MAC address is B6EA6a 060014; the virtual terminal number assigned to another video networking network device is 11131, the virtual MAC address is B6EA6a060015, and so on.
Example one
Referring to fig. 5, a flowchart illustrating steps of a video processing method according to a first embodiment of the present invention is shown.
The video processing method of the embodiment of the invention can comprise the following steps:
step 501, after receiving a packet capturing request carrying data packet information sent by the packet capturing server, a core server of the video networking queries whether a video networking protocol data packet matched with the data packet information exists.
The packet grabbing tool provided by the embodiment of the invention can be developed based on wincap sdk and operated on a packet grabbing server. When the maintenance personnel want to analyze the video stream data, a packet capture request can be triggered on the packet capture server, and the packet capture request can carry data packet information. The packet information refers to information related to a video networking protocol packet to be captured, for example, the packet information may include a source MAC address, a video capture device identifier, and the like.
And the packet capturing server sends a packet capturing request to the video networking core server. After receiving the packet capturing request, the core server of the video network firstly inquires whether a video network protocol data packet matched with the data packet information carried by the packet capturing request exists.
Step 502, when the core server of the video network exists, returning the video network protocol data packet to the packet capturing server.
When the video networking core server has the video networking protocol data packet matched with the data packet information carried by the packet capturing request, the inquired video networking protocol data packet can be returned to the packet capturing server, and the corresponding video networking protocol data packet does not need to be acquired from the video networking network equipment.
Step 503, when the core server of the video network does not exist, obtaining a video network protocol data packet matched with the data packet information from the video network device corresponding to the data packet information, and returning the video network protocol data packet to the packet capturing server.
When the video networking core server does not have a video networking protocol data packet matched with the data packet information carried by the packet capturing request, the video networking core server can acquire the video networking protocol data packet matched with the data packet information from the video networking network equipment corresponding to the data packet information, and return the video networking protocol data packet to the packet capturing server. The maintainer can analyze the video network protocol data packet matched with the data packet information carried by the packet capturing request on the packet capturing server to judge whether the video stream data is normal.
In the embodiment of the invention, the required video networking protocol data packet can be captured and analyzed by the packet capturing server, so that the video networking protocol data packet can be analyzed before being played, thereby improving the processing efficiency; and considering that the video networking protocol data packets transmitted in the video networking are all forwarded through the video networking core server, the required video networking protocol data packets can be inquired from the video networking core server, and if the required video networking protocol data packets do not exist, the required video networking protocol data packets are obtained from the video networking network equipment where the required video networking protocol data packets are located, so that the processing efficiency is further improved, and the user experience is improved.
Example two
The first video network device in the embodiment of the invention can be a sharing server, and the sharing server can be in communication connection with an internet terminal based on an internet protocol. The second video network device may be a streaming media server, and the streaming media server may be communicatively connected with the video capture device based on a video networking protocol. The third video network device may be a monitoring resource server, and the monitoring resource server may be in communication connection with the internet terminal based on an internet protocol. The shared server, the streaming media server and the monitoring resource server can be in communication connection with the video networking core server based on a video networking protocol, and the video networking core server realizes data forwarding.
Referring to fig. 6, a flowchart illustrating steps of a video processing method according to a second embodiment of the present invention is shown.
The video processing method of the embodiment of the invention can comprise the following steps:
step 601, the third video network device receives an internet protocol request packet sent by an internet terminal, and converts the internet protocol request packet into a video network protocol request packet.
The internet terminal is included in the internet, and a user can call the video stream data in the video network equipment through the internet terminal to view the video stream data. The internet terminal may be a PC (personal computer), a mobile phone, a tablet computer, or the like.
If a user wants to check video stream data acquired by video acquisition equipment through an internet terminal, the user can input an identifier of the video acquisition equipment to be called on the internet terminal, a stream modulation request is triggered aiming at the video acquisition equipment corresponding to the identifier of the video acquisition equipment, and the stream modulation request can carry the identifier of the video acquisition equipment. The internet terminal encapsulates the stream adjusting request into an internet protocol request packet based on the internet protocol, and sends the internet protocol request packet to the third video network device through the internet.
The third video networking device receives the internet protocol request packet. Since the stream adjustment request is to be transmitted in the video network, the third video network device converts the internet protocol request packet into a corresponding video network protocol request packet.
In an alternative embodiment, the step of converting the internet protocol request packet into the video internet protocol request packet may comprise: the third video network equipment extracts the flow regulation request encapsulated in the packet from the Internet protocol request packet; and the third video network equipment encapsulates the extracted flow adjusting request based on the video network protocol to obtain a video network protocol request packet converted from the Internet protocol request packet.
The video network protocol request packet may have a corresponding video network packet header. The packet header corresponding to the video networking protocol request packet converted by the third video networking network device may carry information such as a source MAC address, a source terminal number, a destination MAC address, a destination terminal number, and the like, for example, the source MAC address and the source terminal number may be a virtual MAC address and a virtual terminal number of the third video networking network device, and the destination MAC address and the destination terminal number may be a virtual MAC address and a virtual terminal number of the first video networking network device. The video networking protocol request packet may carry a stream adjustment request, and the stream adjustment request may carry an identifier of the video capture device.
Step 602, the third video network device forwards the video network protocol request packet to the first video network device via the video network core server.
The third video network device sends the video network protocol request packet to the video network core server through the video network, and then the video network core server forwards the video network protocol request packet to the first video network device.
In an alternative embodiment, the video networking core server may forward the video networking protocol request packet to the first video networking device in accordance with a downstream communication link configured for the first video networking device.
In practical applications, the video network is a network with a centralized control function, and includes a master control server and a lower level network device, where the lower level network device includes a terminal, and one of the core concepts of the video network is to configure a table for a downlink communication link of a current service by notifying a switching device by the master control server, and then transmit a data packet based on the configured table.
Namely, the communication method in the video network includes:
and the master control server configures the downlink communication link of the current service.
And transmitting the data packet of the current service sent by the source terminal to the target terminal according to the downlink communication link.
In the embodiment of the present invention, configuring the downlink communication link of the current service includes: and informing the switching equipment related to the downlink communication link of the current service to allocate the table.
Further, transmitting according to the downlink communication link includes: the configured table is consulted, and the switching equipment transmits the received data packet through the corresponding port.
In particular implementations, the services include unicast communication services and multicast communication services. Namely, whether multicast communication or unicast communication, the core concept of the table matching-table can be adopted to realize communication in the video network.
As mentioned above, the video network includes an access network portion, in which the master server is a node server and the lower-level network devices include an access switch and a terminal.
For the unicast communication service in the access network, the step of configuring the downlink communication link of the current service by the master server may include the following steps:
and a substep S11, the main control server obtains the downlink communication link information of the current service according to the service request protocol packet initiated by the source terminal, wherein the downlink communication link information includes the downlink communication port information of the main control server and the access switch participating in the current service.
In the substep S12, the main control server sets a downlink port to which a packet of the current service is directed in a packet address table inside the main control server according to the downlink communication port information of the main control server; and sending a port configuration command to the corresponding access switch according to the downlink communication port information of the access switch.
In sub-step S13, the access switch sets the downstream port to which the packet of the current service is directed in its internal packet address table according to the port configuration command.
For a multicast communication service (e.g., video conference) in the access network, the step of the master server obtaining downlink information of the current service may include the following sub-steps:
in sub-step S21, the main control server obtains a service request protocol packet initiated by the target terminal and applying for the multicast communication service, where the service request protocol packet includes service type information, service content information, and an access network address of the target terminal.
Wherein, the service content information includes a service number.
And a substep S22, the main control server extracts the access network address of the source terminal in a preset content-address mapping table according to the service number.
In the substep of S23, the main control server obtains the multicast address corresponding to the source terminal and distributes the multicast address to the target terminal; and acquiring the communication link information of the current multicast service according to the service type information and the access network addresses of the source terminal and the target terminal.
Step 603, after the first video networking network device obtains the video networking protocol request packet, forwarding the video networking protocol request packet to the second video networking network device through the video networking core server.
After the first video network device receives a video network protocol request packet sent by a third video network device, a source MAC address and a source terminal number carried in a video network packet header corresponding to the video network protocol request packet are set as a virtual MAC address and a virtual terminal number of the first video network device, and a destination MAC address and a destination terminal number are set as a virtual MAC address and a virtual terminal number of the second video network device. The first video network device sends the video network protocol request packet to the video network core server through the video network, and then the video network core server forwards the video network protocol request packet to the second video network device.
In an alternative embodiment, the video networking core server may forward the video networking protocol request packet to the second video networking device in accordance with a downlink communication link configured for the second video networking device.
And step 604, the first video network device receives the video network protocol data packet returned by the second video network device and forwarded by the video network core server.
And after receiving the video networking protocol request packet, the second video networking network equipment extracts the encapsulated flow regulation request from the video networking protocol request packet. The second video network device obtains video stream data corresponding to the flow adjustment request (for example, obtains video stream data collected by video collection equipment corresponding to a video collection equipment identifier carried in the flow adjustment request), and encapsulates the video stream data corresponding to the flow adjustment request into a video network protocol data packet based on a video network protocol, and of course, may also encapsulate the video collection equipment identifier in the video network protocol data packet.
The second video network device sets the source MAC address and the source terminal number carried in the video network packet header corresponding to the video network protocol data packet as the virtual MAC address and the virtual terminal number of the second video network device, and sets the destination MAC address and the destination terminal number as the virtual MAC address and the virtual terminal number of the first video network device. The second video network device sends the video network protocol data packet to the video network core server through the video network, and then the video network core server forwards the video network protocol data packet to the first video network device.
In an alternative embodiment, the first video network device may be configured to forward the video network protocol packet to the video network core server.
Step 605, the first network device converts the internet protocol packet into an internet protocol packet, and sends the internet protocol packet to the internet terminal.
The first video networking network device receives a video networking protocol data packet. The first video network device converts the video network protocol data packet into a corresponding internet protocol data packet because the video stream data corresponding to the stream adjusting request is transmitted in the internet.
In an alternative embodiment, the step of converting the video networking protocol data packet into an internet protocol data packet may comprise: the first video networking network equipment extracts video streaming data packaged in the video networking protocol data packet; and the first video networking network equipment encapsulates the extracted video streaming data based on the Internet protocol to obtain the Internet protocol data packet converted from the video networking protocol data packet.
And the first video network equipment sends the converted Internet protocol data packet to the Internet terminal. And after receiving the Internet protocol data packet, the Internet terminal analyzes the Internet protocol data packet, extracts the video stream data encapsulated in the Internet protocol data packet from the Internet protocol data packet, and outputs the video stream data to a playing window for playing.
Step 606, after receiving the packet capturing request carrying the data packet information sent by the packet capturing server, the core server of the video networking queries whether a video networking protocol data packet matched with the data packet information exists.
The user can trigger the packet capturing request on the packet capturing server, and the packet capturing server sends the packet capturing request to the video networking core server. The video network core server can be used for forwarding the video network protocol data packet transmitted in the video network, so that the video network core server can firstly inquire whether the video network protocol data packet corresponding to the packet capturing request exists.
In an alternative embodiment, the packet information carried in the packet capture request may include the source MAC address. The video networking core server analyzes the video networking protocol data packet existing in the video networking core server, extracts the source MAC address in the corresponding video networking packet header, compares the extracted source MAC address with the source MAC address included in the data packet information, if the extracted source MAC address is the same as the source MAC address included in the data packet information, the video networking core server can determine that the video networking protocol data packet matched with the data packet information exists in the video networking core server, and otherwise, the video networking core server determines that the video networking protocol data packet matched with the data packet information does not exist in the video networking core server.
In an alternative embodiment, the data packet information carried in the packet capture request may include a source MAC address and a video capture device identifier. The video networking core server analyzes the video networking protocol data packet existing in the video networking core server, extracts a source MAC address in a corresponding video networking packet header and a video acquisition equipment identifier encapsulated in the video networking protocol data packet, compares the extracted source MAC address and the extracted video acquisition equipment identifier with a source MAC address video acquisition equipment identifier included in data packet information, determines that the video networking core server has the video networking protocol data packet matched with the data packet information if the extracted source MAC address and the extracted video acquisition equipment identifier are the same as the source MAC address video acquisition equipment identifier included in the data packet information, and otherwise determines that the video networking core server does not have the video networking protocol data packet matched with the data packet information.
Step 607, the core server of the video network returns the data packet of the video network protocol to the packet capturing server when the core server of the video network exists. Step 609 is then performed.
And when determining that the video networking core server has the video networking protocol data packet matched with the data packet information, the video networking core server returns the video networking protocol data packet matched with the data packet information to the packet capturing server.
And 608, when the core server of the video network does not exist, acquiring the video network protocol data packet matched with the data packet information from the video network equipment corresponding to the data packet information, and returning the video network protocol data packet to the packet capturing server. Step 609 is then performed.
And when determining that the video networking core server does not have the video networking protocol data packet matched with the data packet information, the video networking core server acquires the video networking protocol data packet matched with the data packet information from the video networking network equipment corresponding to the data packet information.
In an alternative embodiment, the packet information carried in the packet capture request may include the source MAC address. The step of obtaining the video networking protocol data packet matched with the data packet information from the video networking network device corresponding to the data packet information may include: the video network core server forwards a packet capturing request carrying data packet information to video network equipment corresponding to the source MAC address; and the video networking core server receives a video networking protocol data packet obtained by encapsulating video streaming data collected by all video collection equipment connected with the video networking network equipment, which is returned by the video networking network equipment corresponding to the source MAC address.
In an alternative embodiment, the data packet information carried in the packet capture request may include a source MAC address and a video capture device identifier. The step of obtaining the video networking protocol data packet matched with the data packet information from the video networking network device corresponding to the data packet information may include: the video network core server forwards the packet capturing request carrying the data packet information to video network equipment corresponding to the source MAC address; and the video networking core server receives a video networking protocol data packet obtained by encapsulating video streaming data acquired by the video acquisition equipment corresponding to the video acquisition equipment identifier, which is returned by the video networking network equipment corresponding to the source MAC address and is connected with the video networking network equipment.
Step 609, after receiving the video networking protocol data packet matched with the data packet information, the packet capturing server extracts the video streaming data encapsulated therein, and stores the video streaming data as an original code stream file in a binary format.
And after receiving the video networking protocol data packet matched with the data packet information, the packet capturing server extracts the video stream data encapsulated in the data packet and stores the video stream data as an original code stream file in a binary format. For example, the original code stream file in the format of h.264, PS, etc. may be stored.
The engineer analyzes the content of the file by playing the original code stream file to position the problem and solve the problem, the tool greatly improves the working efficiency of field maintenance personnel for extracting video stream data from the video networking protocol data packet, and is convenient for the field engineer to troubleshoot the problem.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, 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 the invention.
EXAMPLE III
Referring to fig. 7, a block diagram of a video processing apparatus according to a third embodiment of the present invention is shown. The video processing device provided by the embodiment of the invention is applied to the video network, and the video network comprises a video network core server, a packet capturing server and video network equipment.
The video processing apparatus of the embodiment of the present invention may include modules located in the following devices:
the video networking core server includes:
the query module 701 is configured to query whether a video networking protocol data packet matching the data packet information exists after receiving a packet capturing request carrying the data packet information and sent by the packet capturing server;
a returning module 702, configured to return the video networking protocol data packet to the packet capturing server when the packet exists;
an obtaining and returning module 703, configured to, in the absence of the packet, obtain, from the network device corresponding to the packet information, a video networking protocol packet matching the packet information, and return the video networking protocol packet to the packet capturing server.
In an alternative embodiment, the packet information includes a source MAC address; the acquisition return module includes: the request forwarding unit is used for forwarding the packet capturing request carrying the data packet information to the video networking network equipment corresponding to the source MAC address; and the data receiving unit is used for receiving a video networking protocol data packet which is returned by the video networking network equipment corresponding to the source MAC address and obtained by encapsulating video streaming data collected by all the video collecting equipment connected with the video networking network equipment.
In an optional embodiment, the packet information includes a source MAC address and a video capture device identification; the acquisition return module includes: the request forwarding unit is used for forwarding the packet capturing request carrying the data packet information to the video networking network equipment corresponding to the source MAC address; and the data receiving unit is used for receiving a video networking protocol data packet which is returned by the video networking network equipment corresponding to the source MAC address and is obtained by encapsulating video streaming data acquired by the video acquisition equipment corresponding to the video acquisition equipment identifier and connected with the video networking network equipment.
In an optional embodiment, the packet capture server comprises: and the storage module is used for extracting the video stream data encapsulated in the video stream data after receiving the video networking protocol data packet matched with the data packet information, and storing the video stream data as an original code stream file in a binary format.
In an optional embodiment, the video network device comprises a first video network device and a second video network device, and the internet comprises an internet terminal; the first video networking network device comprises: the forwarding module is used for forwarding the video networking protocol request packet to the second video networking network device through the video networking core server after the video networking protocol request packet is acquired; the video networking protocol request packet is provided with a flow regulation request; the video networking protocol request packet is obtained by converting an Internet protocol request packet, and the Internet protocol request packet is sent by the Internet terminal; the receiving module is used for receiving the video networking protocol data packet which is returned by the second video networking network equipment and is forwarded by the video networking core server; the video networking protocol data packet is provided with video stream data corresponding to the stream adjusting request; and the first conversion module is used for converting the video networking protocol data packet into an internet protocol data packet and sending the internet protocol data packet to the internet terminal.
In an alternative embodiment, the video networking device further comprises a third video networking device; the third video networking network device comprises: the second conversion module is used for receiving an internet protocol request packet sent by the internet terminal and converting the internet protocol request packet into a video networking protocol request packet; a sending module, configured to forward the video networking protocol request packet to the first video networking network device via the video networking core server.
In the embodiment of the invention, the required video networking protocol data packet can be captured and analyzed by the packet capturing server, so that the video networking protocol data packet can be analyzed before being played, thereby improving the processing efficiency; and considering that the video networking protocol data packets transmitted in the video networking are all forwarded through the video networking core server, the required video networking protocol data packets can be inquired from the video networking core server, and if the required video networking protocol data packets do not exist, the required video networking protocol data packets are obtained from the video networking network equipment where the required video networking protocol data packets are located, so that the processing efficiency is further improved, and the user experience is improved.
For the device 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, apparatus, 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 means 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 instruction means 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 foregoing detailed description of a video processing method and a video processing apparatus according to the present invention has been presented, and the principles and embodiments of the present invention are explained herein by using specific examples, which are only used to help understand the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A video processing method is applied to a video network, wherein the video network comprises a video network core server, a packet capturing server and a video network device, and the method comprises the following steps:
after receiving a packet capturing request carrying data packet information sent by the packet capturing server, the video networking core server inquires whether a video networking protocol data packet matched with the data packet information exists or not;
when the video networking core server exists, returning the video networking protocol data packet to the packet capturing server;
when the video networking core server does not exist, a video networking protocol data packet matched with the data packet information is obtained from video networking network equipment corresponding to the data packet information, and the video networking protocol data packet is returned to the packet capturing server;
the video network equipment comprises first video network equipment and second video network equipment, and the Internet comprises an Internet terminal; the method further comprises the following steps:
after the first video networking network device acquires a video networking protocol request packet, forwarding the video networking protocol request packet to the second video networking network device through the video networking core server; the video networking protocol request packet is provided with a flow regulation request; the video networking protocol request packet is obtained by converting an Internet protocol request packet, and the Internet protocol request packet is sent by the Internet terminal;
the first video network equipment receives a video network protocol data packet which is returned by the second video network equipment and is forwarded by the video network core server; the video networking protocol data packet is provided with video stream data corresponding to the stream adjusting request;
and the first video networking network equipment converts the video networking protocol data packet into an internet protocol data packet and sends the internet protocol data packet to the internet terminal.
2. The method of claim 1, wherein the packet information includes a source MAC address; the step of obtaining the video networking protocol data packet matched with the data packet information from the video networking network equipment corresponding to the data packet information comprises the following steps:
the video network core server forwards the packet capturing request carrying the data packet information to video network equipment corresponding to the source MAC address;
and the video networking core server receives a video networking protocol data packet obtained by encapsulating video streaming data collected by all video collection equipment connected with the video networking network equipment, and the video networking protocol data packet is returned by the video networking network equipment corresponding to the source MAC address.
3. The method of claim 1, wherein the packet information comprises a source MAC address and a video capture device identification; the step of obtaining the video networking protocol data packet matched with the data packet information from the video networking network equipment corresponding to the data packet information comprises the following steps:
the video network core server forwards the packet capturing request carrying the data packet information to video network equipment corresponding to the source MAC address;
and the video networking core server receives a video networking protocol data packet obtained by encapsulating video streaming data acquired by the video acquisition equipment corresponding to the video acquisition equipment identifier, which is returned by the video networking network equipment corresponding to the source MAC address and is connected with the video networking network equipment.
4. The method of claim 1, further comprising, after the step of returning the video networking protocol data packet to the packet capture server:
and after receiving the video networking protocol data packet matched with the data packet information, the packet capturing server extracts the video stream data encapsulated in the data packet and stores the video stream data as an original code stream file in a binary format.
5. The method of claim 1, wherein the video networking device further comprises a third video networking device; before the step of forwarding the video networking protocol request packet to the second video networking network device via the video networking core server after the first video networking network device acquires the video networking protocol request packet, the method further includes:
the third video network equipment receives an internet protocol request packet sent by the internet terminal and converts the internet protocol request packet into a video network protocol request packet;
the third video networking network device forwards the video networking protocol request packet to the first video networking network device via the video networking core server.
6. A video processing device is applied to a video network, wherein the video network comprises a video network core server, a packet capturing server and video network equipment, and the video network core server comprises:
the query module is used for querying whether a video networking protocol data packet matched with the data packet information exists or not after receiving a packet capturing request carrying the data packet information and sent by the packet capturing server;
the return module is used for returning the video networking protocol data packet to the packet capturing server when the video networking protocol data packet exists;
the acquisition returning module is used for acquiring a video networking protocol data packet matched with the data packet information from video networking network equipment corresponding to the data packet information when the acquisition returning module does not exist, and returning the video networking protocol data packet to the packet capturing server;
the video network equipment comprises first video network equipment and second video network equipment, and the Internet comprises an Internet terminal; the first video networking network device comprises:
the forwarding module is used for forwarding the video networking protocol request packet to the second video networking network device through the video networking core server after the video networking protocol request packet is acquired; the video networking protocol request packet is provided with a flow regulation request; the video networking protocol request packet is obtained by converting an Internet protocol request packet, and the Internet protocol request packet is sent by the Internet terminal;
the receiving module is used for receiving the video networking protocol data packet which is returned by the second video networking network equipment and is forwarded by the video networking core server; the video networking protocol data packet is provided with video stream data corresponding to the stream adjusting request;
and the first conversion module is used for converting the video networking protocol data packet into an internet protocol data packet and sending the internet protocol data packet to the internet terminal.
7. The apparatus of claim 6, wherein the packet information comprises a source MAC address; the acquisition return module includes:
the request forwarding unit is used for forwarding the packet capturing request carrying the data packet information to the video networking network equipment corresponding to the source MAC address;
and the data receiving unit is used for receiving a video networking protocol data packet which is returned by the video networking network equipment corresponding to the source MAC address and obtained by encapsulating video streaming data collected by all the video collecting equipment connected with the video networking network equipment.
8. The apparatus of claim 6, wherein the packet information comprises a source MAC address and a video capture device identification; the acquisition return module includes:
the request forwarding unit is used for forwarding the packet capturing request carrying the data packet information to the video networking network equipment corresponding to the source MAC address;
and the data receiving unit is used for receiving a video networking protocol data packet which is returned by the video networking network equipment corresponding to the source MAC address and is obtained by encapsulating video streaming data acquired by the video acquisition equipment corresponding to the video acquisition equipment identifier and connected with the video networking network equipment.
9. The apparatus of claim 6, wherein the packet capture server comprises:
and the storage module is used for extracting the video stream data encapsulated in the video stream data after receiving the video networking protocol data packet matched with the data packet information, and storing the video stream data as an original code stream file in a binary format.
10. The apparatus of claim 6, wherein the video network device further comprises a third video network device; the third video networking network device comprises:
the second conversion module is used for receiving an internet protocol request packet sent by the internet terminal and converting the internet protocol request packet into a video networking protocol request packet;
a sending module, configured to forward the video networking protocol request packet to the first video networking network device via the video networking core server.
CN201910177274.0A 2019-03-08 2019-03-08 Video processing method and device Active CN110035297B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910177274.0A CN110035297B (en) 2019-03-08 2019-03-08 Video processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910177274.0A CN110035297B (en) 2019-03-08 2019-03-08 Video processing method and device

Publications (2)

Publication Number Publication Date
CN110035297A CN110035297A (en) 2019-07-19
CN110035297B true CN110035297B (en) 2021-05-14

Family

ID=67235878

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910177274.0A Active CN110035297B (en) 2019-03-08 2019-03-08 Video processing method and device

Country Status (1)

Country Link
CN (1) CN110035297B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111200597B (en) * 2019-12-26 2024-01-09 视联动力信息技术股份有限公司 Packet capturing method, device, computing equipment and computer readable storage medium in video networking
CN112383835B (en) * 2020-11-02 2022-04-26 四川天邑康和通信股份有限公司 Network switching and network packet capturing method based on intelligent set top box
CN116155862A (en) * 2023-02-21 2023-05-23 北京奇艺世纪科技有限公司 Data packet capturing method, device, server and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075369A (en) * 2011-02-28 2011-05-25 杭州华三通信技术有限公司 Method and equipment for managing monitoring equipment
CN103067226A (en) * 2013-01-09 2013-04-24 上海斐讯数据通信技术有限公司 Ethernet passive optional network (EPON) test system
CN105049485A (en) * 2015-06-09 2015-11-11 中国石油大学(华东) Real-time video processing oriented load-aware cloud calculation system
CN105490869A (en) * 2015-11-19 2016-04-13 浪潮(北京)电子信息产业有限公司 Monitoring data acquisition method, device and system
CN108632679A (en) * 2017-09-07 2018-10-09 北京视联动力国际信息技术有限公司 A kind of method of multi-medium data transmission and a kind of regarding networked terminals

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140280912A1 (en) * 2013-03-13 2014-09-18 Joyent, Inc. System and method for determination and visualization of cloud processes and network relationships
CN106550282B (en) * 2015-09-17 2019-03-01 视联动力信息技术股份有限公司 A kind of playback method and system of video data
CN108234816B (en) * 2016-12-15 2019-04-26 视联动力信息技术股份有限公司 The method and device of resource information real-time synchronization is monitored between a kind of monitoring device
WO2018195280A1 (en) * 2017-04-21 2018-10-25 Walmart Apollo, Llc Virtual reality network management user interface
CN108173832A (en) * 2017-12-25 2018-06-15 四川长虹电器股份有限公司 Family's Internet of Things application system penetration testing method based on end cloud translocation
CN108574609B (en) * 2017-12-29 2021-05-14 视联动力信息技术股份有限公司 Transmission monitoring method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075369A (en) * 2011-02-28 2011-05-25 杭州华三通信技术有限公司 Method and equipment for managing monitoring equipment
CN103067226A (en) * 2013-01-09 2013-04-24 上海斐讯数据通信技术有限公司 Ethernet passive optional network (EPON) test system
CN105049485A (en) * 2015-06-09 2015-11-11 中国石油大学(华东) Real-time video processing oriented load-aware cloud calculation system
CN105490869A (en) * 2015-11-19 2016-04-13 浪潮(北京)电子信息产业有限公司 Monitoring data acquisition method, device and system
CN108632679A (en) * 2017-09-07 2018-10-09 北京视联动力国际信息技术有限公司 A kind of method of multi-medium data transmission and a kind of regarding networked terminals

Also Published As

Publication number Publication date
CN110035297A (en) 2019-07-19

Similar Documents

Publication Publication Date Title
CN108632525B (en) Method and system for processing service
CN108737768B (en) Monitoring method and monitoring device based on monitoring system
CN109996086B (en) Method and device for inquiring service state of video networking
CN108965040B (en) Service monitoring method and device for video network
CN109525854B (en) Live broadcast processing method and device
CN110190973B (en) Online state detection method and device
CN110049341B (en) Video processing method and device
CN109474715B (en) Resource configuration method and device based on video network
CN109150905B (en) Video network resource release method and video network sharing platform server
CN109617956B (en) Data processing method and device
CN110022295B (en) Data transmission method and video networking system
CN109547163B (en) Method and device for controlling data transmission rate
CN110035297B (en) Video processing method and device
CN110475131B (en) Terminal connection method, server and terminal
CN110113564B (en) Data acquisition method and video networking system
CN109714568B (en) Video monitoring data synchronization method and device
CN109842630B (en) Video processing method and device
CN110289974B (en) Data stream processing method, system and device and storage medium
CN110086773B (en) Audio and video data processing method and system
CN109889755B (en) Communication connection method and video networking terminal
CN109889516B (en) Method and device for establishing session channel
CN110113563B (en) Data processing method based on video network and video network server
CN110113565B (en) Data processing method and intelligent analysis equipment based on video network
CN110446058B (en) Video acquisition method, system, device and computer readable storage medium
CN110062259B (en) Video acquisition method, system, device and computer readable storage medium

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