CN113422775B - Data processing method and device, electronic equipment and computer readable storage medium - Google Patents

Data processing method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN113422775B
CN113422775B CN202110698053.5A CN202110698053A CN113422775B CN 113422775 B CN113422775 B CN 113422775B CN 202110698053 A CN202110698053 A CN 202110698053A CN 113422775 B CN113422775 B CN 113422775B
Authority
CN
China
Prior art keywords
address port
code stream
data
processing
processing rule
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
CN202110698053.5A
Other languages
Chinese (zh)
Other versions
CN113422775A (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.)
Chongqing Unisinsight Technology Co Ltd
Original Assignee
Chongqing Unisinsight 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 Chongqing Unisinsight Technology Co Ltd filed Critical Chongqing Unisinsight Technology Co Ltd
Priority to CN202110698053.5A priority Critical patent/CN113422775B/en
Publication of CN113422775A publication Critical patent/CN113422775A/en
Application granted granted Critical
Publication of CN113422775B publication Critical patent/CN113422775B/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
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1101Session protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/65Network streaming protocols, e.g. real-time transport protocol [RTP] or real-time control protocol [RTCP]
    • 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/22Parsing or analysis of headers

Abstract

The embodiment of the invention provides a data processing method, a data processing device, electronic equipment and a computer readable storage medium, wherein the method comprises the following steps: when the platform pulls the stream, determining the address port information of the signaling information; generating a first processing rule and a second processing rule for processing the signaling information; processing and analyzing the signaling information according to the first processing rule and the second processing rule to obtain address port information of the code stream data; generating a third processing rule and a fourth processing rule according to the address port information; according to a third processing rule, sending the code stream data to a code stream processing module in the code stream processing system; and changing the source address port of the code stream data processed by the code stream processing module into the address port information of the code stream data according to the fourth processing rule, so that the platform for receiving the processed code stream data realizes non-inductive receiving.

Description

Data processing method and device, electronic equipment and computer readable storage medium
Technical Field
The present invention relates to the field of computer network technologies, and in particular, to a data processing method and apparatus, an electronic device, and a computer-readable storage medium.
Background
When an existing upper platform, such as a system platform, is docked with a lower platform, such as a camera, video stream data transmission is completed, in order to ensure data transmission, development needs to be performed on the upper platform side, so that the system platform is adaptive to various lower platforms. Or the docking between the platforms can be completed only after all the subordinate platforms need to be upgraded. Development cost is required for development of an upper platform and upgrading of a lower platform, and docking development is required no matter development is carried out on the side of the upper platform or the lower platform is upgraded, so that docking cost is increased.
Disclosure of Invention
The invention aims to provide a data processing method, a data processing device, electronic equipment and a computer readable storage medium, which can enable a code stream processing product and a video networking platform to be developed without being docked, and reduce the cost.
Embodiments of the invention may be implemented as follows:
in a first aspect, the present application provides a data processing method, which is applied to a code stream processing system, and the method includes:
when the platform pulls the stream, determining the address port information of the signaling information;
generating a first processing rule and a second processing rule for processing the signaling information according to the address port information of the signaling information;
processing and analyzing the signaling information according to the first processing rule and the second processing rule to obtain address port information of code stream data;
generating a third processing rule and a fourth processing rule of the code stream data according to the address port information of the code stream data;
according to the third processing rule, the code stream data is sent to a code stream processing module in a code stream processing system;
and changing the source address port of the code stream data processed by the code stream processing module into the address port information of the code stream data according to the fourth processing rule.
In an optional embodiment, the step of determining address port information of signaling information when the platform pulls a flow includes:
when the platform pulls the stream through the national standard protocol, determining the configuration rule of the user;
and determining the address port information of the signaling information according to the configuration rule of the user.
In an optional implementation manner, the code stream processing system includes a protocol analysis module, and the step of processing and analyzing the signaling information according to the first processing rule and the second processing rule to obtain address port information of code stream data includes:
matching first signaling data with a destination address port as a platform address port, and copying;
changing a destination address port of the copied first signaling data into an address port of the protocol analysis module;
the protocol analysis module analyzes the first signaling data to obtain first address port information;
according to the second processing rule, second signaling data with a source address port as a lower platform address port is matched and copied;
changing the destination address port of the copied second signaling data into the address port of the protocol analysis module;
and the protocol analysis module analyzes the second signaling data to obtain second address port information.
In an optional implementation manner, the step of sending the code stream data to the code stream processing module according to the third processing rule includes: according to the third processing rule, matching first target data with a destination address port as first address port information;
changing the first address port information of the first target data into an address port of a code stream processing module;
the code stream processing module processes the first target data;
the step of changing the source address port of the code stream data processed by the code stream processing module according to the fourth processing rule includes:
and changing the source address port of the processed code stream data into second address port information according to the fourth processing rule.
In an optional embodiment, the step of determining address port information of signaling information when the platform pulls a flow includes:
when the platform and the equipment pull the stream through an onvif protocol, detecting all the equipment in the environment;
receiving selection operation of a user on target equipment;
responding to the selection operation, and the platform issues a code stream query request to the target equipment;
and determining address port information of signaling information between the platform and the target equipment according to the inquiry code stream request.
In an optional embodiment, the step of detecting all devices in the environment when pulling the stream between the platform and the device through the onvif protocol includes:
sending a request for acquiring a code stream between a platform and equipment;
and according to the code stream acquisition request, the code stream processing system detects all the onvif devices in the environment through a device discovery function of an onvif protocol.
In an optional embodiment, the third processing rule is: determining a first destination address port and a first source address port in a query code stream request;
modifying the first destination address port into an address port of a code stream processing module;
sending the data of the first destination address port to the code stream processing module;
the code stream processing module processes data;
the fourth processing rule is as follows: and changing the source address port of the processed data from the address port of the code stream processing module to the first source address port.
In an optional implementation manner, the processing, by the code stream processing module, the first target data includes:
processing the first target data according to a preset processing mode, wherein the preset processing mode comprises any one of the following modes: encryption and decryption, watermark superposition, privacy blocking and intelligent coding.
In a second aspect, the present application provides a data processing apparatus applied to a code stream processing system, where the code stream processing system includes a code stream processing module and a protocol analysis module, the apparatus includes:
the first determining module is used for determining the address port information of the signaling information when the platform pulls the stream;
a first generating module, configured to generate a first processing rule and a second processing rule for processing the signaling information according to address port information of the signaling information;
the second generating module is used for processing and analyzing the signaling information by the protocol analyzing module according to the first processing rule and the second processing rule to obtain first address port information and second address port information of code stream data;
a third generating module, configured to generate a third processing rule and a fourth processing rule according to the first address port information and the second address port information;
the matching module is used for matching the destination address port as the first target data of the first address port information according to the third processing rule;
a first changing module, configured to change first address port information of the first target data to an address port of a code stream processing module;
the code stream processing module processes the code stream data;
and the second changing module is used for changing the source address port of the processed code stream data into second address port information according to the fourth processing rule.
In a third aspect, the present application provides an electronic device comprising a memory and a processor, the memory storing a computer program, the processor implementing the steps of the method when executing the computer program.
In a fourth aspect, the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method.
The embodiment of the invention provides a data processing method, a data processing device, electronic equipment and a computer readable storage medium, wherein when a platform pulls a flow, address port information of signaling information is determined; generating a first processing rule and a second processing rule for processing the signaling information according to the address port information of the signaling information; processing and analyzing the signaling information according to the first processing rule and the second processing rule to obtain address port information of the code stream data; generating a third processing rule and a fourth processing rule of the code stream data according to the address port information of the code stream data; according to a third processing rule, sending the code stream data to a code stream processing module in the code stream processing system; according to the fourth processing rule, the source address port of the code stream data processed by the code stream processing module is changed into the address port information of the code stream data, so that the source address port of the processed code stream data sent from the code stream processing module is changed finally, and the platform for receiving the processed code stream data realizes non-inductive receiving, namely the platform for receiving the code stream data cannot find that the code stream data is sent from the code stream processing module but is sent by the platform. Therefore, the original enabling among the upper platform, the lower platform or the equipment or the camera can be completed through the code stream processing system without adjusting the upper platform, the lower platform, the equipment or the camera.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a flowchart of a data processing method according to an embodiment of the present invention;
fig. 2 is a second flowchart of a data processing method according to an embodiment of the present invention;
fig. 3 is a block diagram of a data processing apparatus according to an embodiment of the present invention;
fig. 4 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the description of the present invention, it should be noted that if the terms "upper", "lower", "inside", "outside", etc. indicate an orientation or a positional relationship based on that shown in the drawings or that the product of the present invention is used as it is, this is only for convenience of description and simplification of the description, and it does not indicate or imply that the device or the element referred to must have a specific orientation, be constructed in a specific orientation, and be operated, and thus should not be construed as limiting the present invention.
Furthermore, the appearances of the terms "first," "second," and the like, if any, are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
It should be noted that the features of the embodiments of the present invention may be combined with each other without conflict.
Referring to fig. 1, the present embodiment provides one of the flowcharts of a data processing method.
The data processing method provided by the embodiment of the invention comprises the following steps:
the data processing method of the embodiment of the invention is applied to a code stream processing system, and the code stream processing system comprises a code stream processing module and a protocol analysis module.
Step 101: and when the platform pulls the flow, determining the address port information of the signaling information.
Step 102: and generating a first processing rule and a second processing rule for processing the signaling information according to the address port information of the signaling information.
Step 103: and processing and analyzing the signaling information according to the first processing rule and the second processing rule to obtain address port information of the code stream data.
Step 104: and generating a third processing rule and a fourth processing rule according to the address port information of the code stream data.
Step 105: and sending the code stream data to a code stream processing module in the code stream processing system according to the third processing rule.
Step 106: and changing the source address port of the code stream data processed by the code stream processing module into the address port information of the code stream data according to the fourth processing rule.
The example illustrates the use of the method in a national standard process: GB/T28181-2011 is a national standard which is drafted by a plurality of units such as national security and protection alarm system standardization technical committee (SAC/TC 100) and one ministry of public security.
The national standard (GB 28181) flow is a flow in which a lower platform initiates registration, an upper platform receives passively, and a stream pulling process is a flow in which the upper platform sends an invite request to the lower platform, the invite request carries a stream receiving address, the lower platform then pushes a stream to the stream receiving address, the stream receiving address is a destination address port, and the stream pushing address is a source address port.
The platform can be an upper stage platform and a lower stage platform. The lower platform may be a device or a camera or a webcam.
In the network, various signals are transmitted, some of which are required (e.g. voice for making a call, data packets for accessing the internet, etc.) and others of which are not required (not directly required) for controlling circuits, and this type of signal is called signaling.
The codestream processing system further includes an SDN controller, which is an application in a Software Defined Network (SDN) responsible for flow control to ensure an intelligent network. SDN controllers are based on protocols such as OpenFlow, allowing servers to tell switches where to send packets.
Software Defined Networking (SDN) is a novel Network innovation architecture proposed by the clean-slate project research group of stanford university, usa, and is an implementation mode of Network virtualization. The core technology OpenFlow separates the control plane and the data plane of the network equipment, thereby realizing the flexible control of network flow, enabling the network to be more intelligent as a pipeline, and providing a good platform for the innovation of a core network and application.
The switch registers with the controller through the SDN.
A Switch means a "Switch" is a network device used for electrical (optical) signal forwarding. It may provide an exclusive electrical signal path for any two network nodes accessing the switch. The most common switch is an ethernet switch. Other common are telephone voice switches, fiber switches, and the like.
For the code stream processing system, firstly, the address port information of the interactive signaling information between the platforms is determined. Specifically, when the platform pulls the stream through the national standard protocol, the configuration rule of the user is determined; and determining the address port information of the signaling information according to the configuration rule of the user. Based on the address port information of the signaling information, the following two openflow rules, namely a first processing rule and a second processing rule, are generated:
OpenFlow, a network communication protocol, belongs to a data link layer, and is capable of controlling a forwarding plane (forwarding plane) of an on-network switch or router, so as to change a network path traveled by a network packet. OpenFlow can activate a remote controller to determine, via a network switch, which path a network packet is to traverse the network switch. OpenFlow allows the routing of packet forwarding to be changed by adding, modifying, and removing packet control rules and actions from the packet forwarding table of the remote control network switch.
The first processing rule is as follows: matching first signaling data with a destination address port as a platform address port, and copying; and changing the destination address port of the copied first signaling data into the address port of the protocol analysis module.
The protocol analysis module analyzes the first signaling data to obtain first address port information.
For example: and copying the invite request, and changing a destination address port of the invite request into an address port of the protocol analysis module.
The protocol analysis module analyzes the first signaling data to obtain first address port information of the code stream data.
For example: and the protocol analysis module analyzes the invite request to obtain a stream receiving address, wherein the stream receiving address is a destination address port.
The second processing rule is as follows: and copying the second signaling data with the matched source address port as the lower platform address port. And changing the destination address port of the copied second signaling data into the address port of the protocol analysis module.
The protocol analysis module analyzes the second signaling data to obtain second address port information of the code stream data.
For example: and the protocol analysis module analyzes the invite request to obtain a flow pushing address, wherein the flow pushing address is a source address port.
In the process of analyzing the protocol by the protocol analysis module, the superior platform sends an invite request stream to the subordinate platform or device or the camera, and if the code stream processing system configures the processing rule of the subordinate platform or device or camera, the following two openflow rules, namely a third processing rule and a fourth processing rule, are generated according to the destination address port and the source address port of the subordinate platform in the invite request and the address port of the code stream processing module corresponding to the code stream data.
The third processing rule: matching first target data of which the destination address port is first address port information; and changing the first address port information of the first target data into the address port of the code stream processing module.
For example: the lower platform sends code stream data to the upper platform, the first address port information is a destination address port, the second address port information is source address port information, the first address port information is a port of the upper platform at the moment, and the second address port information of the data is a port of the lower platform.
That is, the first target data whose destination address is the port of the upper stage platform is matched, and the destination address port of the first target data, that is, the first address port information, is modified into the address port of the code stream processing module.
The fourth processing rule: and determining that the source address port of the processed first target data is the data of the address port of the code stream processing module, and modifying the source address port of the data from the address port of the code stream processing module into second address port information.
Specifically, the matching source address is an address port of the code stream processing module to which the processed first target data corresponds, and the source address of the processed first target data is changed into an address port of the lower-level platform.
It should be noted that the first target data is processed according to a preset processing manner, where the preset processing manner includes, but is not limited to, any one of the following: encryption and decryption, watermark superposition, privacy blocking and intelligent coding.
The third processing rule can cut off the code stream data sent by the lower platform to the upper platform and transmit the code stream data to the code stream processing module; after the code stream processing module completes corresponding processing, the processed code stream data is sent to a stream receiving address port of a superior platform, but a source address port is the address port of the code stream processing module, and the source address port is changed into the address port of a subordinate platform, so that the superior platform can not completely perceive that the code stream data is processed.
According to the data processing method provided by the embodiment of the invention, when the platform pulls the stream, the address port information of the signaling information is determined; generating a first processing rule and a second processing rule for processing the signaling information according to the address port information of the signaling information; processing and analyzing the signaling information according to the first processing rule and the second processing rule to obtain address port information of the code stream data; generating a third processing rule and a fourth processing rule of the code stream data according to the address port information of the code stream data; according to a third processing rule, sending the code stream data to a code stream processing module in the code stream processing system; according to the fourth processing rule, the source address port of the code stream data processed by the code stream processing module is changed into the address port information of the code stream data, so that the source address port of the processed code stream data sent from the code stream processing module is changed finally, and the platform for receiving the processed code stream data realizes non-inductive receiving, namely the platform for receiving the code stream data does not find that the code stream data is sent from the code stream processing module but is pulled to send by the platform. Therefore, the enabling between the original upper and lower platforms or equipment and cameras can be completed through the code stream processing system without adjusting the upper and lower platforms or equipment and cameras.
Referring to fig. 2, the second embodiment provides a flow chart of a data processing method.
The data processing method provided by the embodiment of the invention comprises the following steps:
step 201: when the platform and the device pull streams through the onvif protocol, all devices in the environment are detected.
Sending a request for acquiring a code stream between a platform and equipment; according to the code stream acquisition request, the code stream processing system detects all the onvif devices in the environment through the device discovery function of the onvif protocol.
Step 202: and receiving the selection operation of the target device by the user.
Step 203: and responding to the selection operation, and the platform issues a code stream query request to the target equipment.
Step 204: and according to the request of the query code stream, determining the address port information of the signaling information between the platform and the target equipment.
Step 205: and generating a first processing rule and a second processing rule for processing the signaling information according to the address port information of the signaling information.
Step 206: and processing and analyzing the signaling information according to the first processing rule and the second processing rule to obtain address port information of the code stream data.
Step 207: and generating a third processing rule and a fourth processing rule according to the address port information of the code stream data.
Step 208: and sending the code stream data to a code stream processing module in the code stream processing system according to the third processing rule.
Step 209: and changing the source address port of the code stream data processed by the code stream processing module into the address port information of the code stream data according to the fourth processing rule.
This embodiment explains the method used in the flow of onvif (open network video interface forum):
the onvif (open network video interface forum) is a global open industry forum aimed at facilitating the development and use of global open standards for physical IP (Internet Protocol) based secure product interfaces. onvif created a standard for how IP products in video surveillance and other physical security areas communicate with each other. The ONVIF provides a standardized network open interface for network video products. Forums include security and IP specification requirements based on IETF (The Internet Engineering Task Force) and network service standards, and The specification version 1.0 includes The following aspects: IP configuration searching equipment, equipment management, image configuration, real-time monitoring, event analysis, PTZ (Pan/Tilt/Zoom, omnibearing movement, lens zooming and zooming control) camera control, video analysis and security protection.
The onvif process is initiated by a superior platform actively, and is actively connected with a subordinate platform, the superior platform actively issues a request URL (Uniform Resource Locator) for inquiring code stream to the subordinate platform, and then pulls stream to the subordinate platform through RTSP (Real Time Streaming Protocol), and determines address port information of signaling information between the platform and the target device according to the request for inquiring code stream.
And for the code stream processing system, sending a code stream acquisition request between the platform and the equipment, and detecting all the onvif equipment in the environment by the code stream processing system through the equipment discovery function of the onvif protocol according to the code stream acquisition request. According to the code stream acquisition request, the code stream processing system detects all the onvif devices in the environment through the device discovery function of the onvif protocol. The user selects a certain onvif device, namely the target device, determines the address port information of the signaling information between the platform and the target device, and generates the following two openflow rules, namely a third processing rule and a fourth processing rule, based on the address port information of the signaling information.
The third processing rule is: determining a first destination address port and a first source address port in a query code stream request; and modifying the first destination address port in the code stream data into an address port of the code stream processing module.
When the first destination address port of the code stream data is changed, the code stream data is sent to the platform instead of being sent to the code stream processing module, namely the code stream processing module intercepts and processes the code stream data.
The code stream processing module may process the received code stream data, for example: the embodiment of the present invention does not specifically limit the processes of encrypting the code stream data, decrypting the code stream data, adding watermarks to the code stream data for superposition, preventing the code stream data from being stolen, and privacy-shielding the sensitive image in the code stream data.
The fourth processing rule is as follows: and changing the source address port of the processed code stream data from the address port of the code stream processing module to the first source address port.
And the third processing rule can forward an rtsp request established by the platform to the equipment to the code stream processing module, the code stream processing module sends the rtsp request to the equipment after receiving the rtsp request, the equipment starts to send code stream data, and the code stream processing module performs corresponding processing after receiving the code stream data.
The fourth processing rule is used for sending the code stream processing module to the code stream data of the platform, including tcp (Transmission Control Protocol) handshake, rtsp signaling, rtmp (Real Time Messaging Protocol) Control, code stream data, and the like, changing the source address of the code stream data to the address port of the platform, otherwise, the operating system of the platform will not consider the response of the previous request, and discards the corresponding data.
In the data processing method provided by the embodiment of the invention, when the platform pulls the stream, based on the onvif flow, the code stream processing system intercepts the code stream data, processes the code stream data, and changes the address port of the processed code stream data into the source address port in the address port information, so that when the platform receiving the processed code stream data receives the code stream data, the platform receiving the code stream data realizes non-inductive receiving, namely the platform receiving the code stream data does not discover that the code stream data is sent from the code stream processing module but sent by the platform. Therefore, the enabling between the original upper and lower platforms or equipment or cameras can be completed through the code stream processing system without adjusting the upper and lower platforms or equipment or cameras.
Referring to fig. 3, the present embodiment provides a block diagram of a data processing apparatus.
The embodiment of the invention is applied to a code stream processing system, and the data processing device provided by the embodiment of the invention comprises:
a first determining module 303, configured to determine address port information of the signaling information when the platform pulls a flow;
a first generating module 304, configured to generate a first processing rule and a second processing rule for processing the signaling information according to address port information of the signaling information;
a second generating module 305, configured to process and analyze the signaling information according to the first processing rule and the second processing rule, so as to obtain code stream data address port information;
a third generating module 306, configured to generate a third processing rule and a fourth processing rule according to the address port information;
a first executing module 307, configured to send the code stream data to a code stream processing module in a code stream processing system according to the third processing rule;
a second executing module 308, configured to change, according to the fourth processing rule, a source address port of the code stream data processed by the code stream processing module to address port information of the code stream data.
In an alternative embodiment, the first determining module is specifically configured to: when the platform pulls the stream through the national standard protocol, determining the configuration rule of the user;
and determining the address port information of the signaling information according to the configuration rule of the user.
In an optional embodiment, the protocol analysis module is specifically configured to:
first signaling data with a destination address port as a platform address port is matched and copied;
changing the destination address port of the copied first signaling data into the address port of the protocol analysis module;
the protocol analysis module analyzes the first signaling data to obtain first address port information of code stream data;
according to the second processing rule, second signaling data with a source address port as a lower platform address port is matched and copied;
changing the destination address port of the copied second signaling data into the address port of the protocol analysis module;
and the protocol analysis module analyzes the second signaling data to obtain second address port information of the code stream data.
In an optional embodiment, the first execution module is specifically configured to:
according to the third processing rule, matching a destination address port with first target data of first address port information;
changing the first address port information of the first target data into an address port of a code stream processing module;
the code stream processing module processes the first target data;
the second execution module is specifically configured to:
and changing the source address port of the processed code stream data into second address port information according to the fourth processing rule.
In an optional embodiment, the first determining module is specifically configured to detect all devices in an environment when a platform and the devices pull streams through an onvif protocol;
receiving selection operation of a user on target equipment;
responding to the selection operation, and the platform issues a code stream query request to the target equipment;
and determining address port information of signaling information between the platform and the target equipment according to the query code stream request.
In an alternative embodiment, the first determining module is further configured to:
sending a request for acquiring a code stream between a platform and equipment;
and according to the code stream acquisition request, the code stream processing system detects all the onvif devices in the environment through a device discovery function of an onvif protocol.
In an optional embodiment, the third processing rule is: determining a first destination address port and a first source address port in a query code stream request;
modifying the first destination address port into an address port of a code stream processing module;
sending the data of the first destination address port to the code stream processing module;
the code stream processing module processes data;
the fourth processing rule is as follows: and changing the source address port of the processed data from the address port of the code stream processing module to the first source address port.
In an alternative embodiment, the processing module is further configured to:
processing the first target data according to a preset processing mode, wherein the preset processing mode comprises any one of the following modes: encryption and decryption, watermark superposition, privacy shielding and intelligent coding.
Please refer to fig. 4, which is a schematic structural diagram of an electronic device according to an embodiment of the invention. As shown in fig. 4, the electronic device 40 provided in this embodiment mainly includes a memory 41, one or more processors 42, and one or more programs stored in the memory 41, where the memory 41 stores execution instructions, and when the electronic device 4 runs, the processors 42 and the memory 41 communicate with each other.
In some embodiments, the processor is also operatively coupled to I/O ports that enable the electronic device 40 to interact with various other electronic devices, and input structures that enable a user to interact with the electronic device 40. Thus, the input structures may include buttons, keyboards, mice, touch pads, and the like. In addition, the electronic display may include a touch component that facilitates user input by detecting the occurrence and/or location of an object touching its screen (e.g., a surface of the electronic display).
The processor is operatively coupled to memory and/or non-volatile storage. More specifically, the processor may execute instructions stored in the memory and/or the non-volatile storage device to perform operations in the computing device, such as generating image data and/or transmitting image data to an electronic display. As such, the processor may include one or more general purpose microprocessors, one or more application specific processors (ASICs), one or more field programmable logic arrays (FPGAs), or any combination thereof.
The memory may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other non-volatile solid state storage devices. In certain embodiments, the memory may also include memory that is remote from the one or more processors, such as network-attached memory accessed via RF circuitry or external ports and a communication network (not shown), which may be the internet, one or more intranets, local Area Networks (LANs), wide area networks (WLANs), storage Area Networks (SANs), etc., or a suitable combination thereof. The memory controller may control access to the memory by other components of the device, such as the CPU and peripheral interfaces.
With this understanding in mind, aspects of the present invention or portions thereof that may contribute to the prior art may be embodied in the form of a software product that may include one or more machine-readable media having stored thereon machine-executable instructions that, when executed by one or more machines such as a computer, network of computers, or other electronic devices, cause the one or more machines to perform operations in accordance with embodiments of the present invention. Such as video surveillance, target follow display methods, and the like. The machine-readable medium may include, but is not limited to, floppy diskettes, optical disks, CD-ROMs (compact disc-read only memories), magneto-optical disks, ROMs (read only memories), RAMs (random access memories), EPROMs (erasable programmable read only memories), EEPROMs (electrically erasable programmable read only memories), magnetic or optical cards, flash memory, or other type of media/machine-readable medium suitable for storing machine-executable instructions. The storage medium may be located in a local server or a third-party server, such as a third-party cloud service platform. The specific cloud service platform is not limited herein, such as the Ali cloud, tencent cloud, etc. The invention is operational with numerous general purpose or special purpose computing system environments or configurations. For example: a personal computer, dedicated server computer, mainframe computer, etc. configured as a node in a distributed system.
Also, any connection is properly termed a computer-readable medium. For example, if the instructions are transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. It should be understood, however, that computer-readable-writable storage media and data storage media do not include connections, carrier waves, signals, or other transitory media, but are intended to be non-transitory, tangible storage media. Disk and disc, as used in this application, includes Compact Disc (CD), laser disc, optical disc, digital Versatile Disc (DVD), floppy disk and blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers.
It should be understood that, in the various embodiments of the present invention, the sequence numbers of the above-mentioned processes do not imply an order of execution, and the order of execution of the processes should be determined by their functions and internal logics, and should not limit the implementation processes of the embodiments of the present invention in any way.
In summary, embodiments of the present invention provide a data processing method, an apparatus, an electronic device, and a computer-readable storage medium, where address port information of signaling information is determined when a platform pulls a stream; generating a first processing rule and a second processing rule for processing the signaling information according to the address port information of the signaling information; processing and analyzing the signaling information according to the first processing rule and the second processing rule to obtain address port information of the code stream data; generating a third processing rule and a fourth processing rule of the code stream data according to the address port information of the code stream data; according to a third processing rule, sending the code stream data to a code stream processing module in the code stream processing system; according to the fourth processing rule, the source address port of the code stream data processed by the code stream processing module is changed into the address port information of the code stream data, so that the source address port of the processed code stream data sent from the code stream processing module is changed finally, and the platform for receiving the processed code stream data realizes non-inductive receiving, namely the platform for receiving the code stream data does not find that the code stream data is sent from the code stream processing module but is pulled to send by the platform. Therefore, the enabling between the original upper and lower platforms or equipment and cameras can be completed through the code stream processing system without adjusting the upper and lower platforms or equipment and cameras.
The foregoing embodiments are merely illustrative of the principles and utilities of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or change the above-mentioned embodiments without departing from the spirit and scope of the present invention. Accordingly, it is intended that all equivalent modifications or changes which can be made by those skilled in the art without departing from the spirit and technical spirit of the present invention be covered by the claims of the present invention.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (11)

1. A data processing method is applied to a code stream processing system, and is characterized in that the method comprises the following steps:
when the platform pulls the stream, determining the address port information of the signaling information;
generating a first processing rule and a second processing rule for processing the signaling information according to the address port information of the signaling information;
processing and analyzing the signaling information according to the first processing rule and the second processing rule to obtain address port information of code stream data;
generating a third processing rule and a fourth processing rule of the code stream data according to the address port information of the code stream data;
according to the third processing rule, the code stream data is sent to a code stream processing module in a code stream processing system;
changing the source address port of the code stream data processed by the code stream processing module into address port information of the code stream data according to the fourth processing rule; wherein, the first processing rule is that the matching destination address port is: copying first signaling data of a platform address port; changing the destination address port of the copied first signaling data into the address port of the protocol analysis module, wherein the second processing rule is as follows: copying second signaling data with a source address port matched with the lower platform address port; changing the destination address port of the copied second signaling data into the address port of the protocol analysis module; the third processing rule is: matching first target data of which the destination address port is first address port information; changing the first address port information of the first target data into the address port of the code stream processing module, wherein the fourth processing rule is as follows: and determining that the source address port of the processed first target data is the data of the address port of the code stream processing module, and modifying the source address port of the data from the address port of the code stream processing module into second address port information.
2. The method of claim 1, wherein the step of determining address port information of the signaling information when the platform pulls the stream comprises:
when the platform pulls the stream through the national standard protocol, determining the configuration rule of the user;
and determining the address port information of the signaling information according to the configuration rule of the user.
3. The method according to claim 1, wherein the code stream processing system includes a protocol analysis module, and the step of processing and analyzing the signaling information according to the first processing rule and the second processing rule to obtain address port information of code stream data includes:
matching first signaling data with a destination address port as an address port of a superior platform, and copying;
changing the destination address port of the copied first signaling data into the address port of the protocol analysis module;
the protocol analysis module analyzes the first signaling data to obtain first address port information of code stream data;
according to the second processing rule, second signaling data with a source address port as a lower-level platform address port is matched and copied;
changing the destination address port of the copied second signaling data into the address port of the protocol analysis module;
and the protocol analysis module analyzes the second signaling data to obtain second address port information of the code stream data.
4. The method according to claim 3, wherein the step of sending the codestream data to the codestream processing module according to the third processing rule includes:
according to the third processing rule, matching a destination address port with first target data of first address port information;
changing the first address port information of the first target data into an address port of a code stream processing module;
the code stream processing module processes the first target data;
the step of changing the source address port of the code stream data processed by the code stream processing module according to the fourth processing rule includes:
and changing the source address port of the processed code stream data into second address port information according to the fourth processing rule.
5. The method of claim 1, wherein the step of determining address port information of the signaling information when the platform pulls the stream comprises:
when the platform and the equipment pull the stream through an onvif protocol, detecting all the equipment in the environment;
receiving selection operation of a user on target equipment;
responding to the selection operation, and the platform issues a code stream query request to the target equipment;
and determining address port information of signaling information between the platform and the target equipment according to the inquiry code stream request.
6. The method of claim 5, wherein the step of detecting all devices in the environment while pulling the stream between the platform and the devices via the onvif protocol comprises:
sending a request for acquiring a code stream between a platform and equipment;
and according to the code stream acquisition request, the code stream processing system detects all the onvif devices in the environment through a device discovery function of an onvif protocol.
7. The method of claim 5,
the third processing rule is as follows: determining a first destination address port and a first source address port in a request for inquiring code stream;
modifying the first destination address port into an address port of a code stream processing module;
sending the data of the first destination address port to the code stream processing module;
the code stream processing module processes data;
the fourth processing rule is as follows: and changing the source address port of the processed data from the address port of the code stream processing module to the first source address port.
8. The method according to claim 4, wherein the code stream processing module performs processing on the first target data, and includes:
processing the first target data according to a preset processing mode, wherein the preset processing mode comprises any one of the following modes: encryption and decryption, watermark superposition, privacy blocking and intelligent coding.
9. A data processing device is applied to a code stream processing system, the code stream processing system comprises a code stream processing module and a protocol analysis module, and the device is characterized by comprising:
the first determining module is used for determining the address port information of the signaling information when the platform pulls the stream;
the first generation module is used for generating a first processing rule and a second processing rule for processing the signaling information according to the address port information of the signaling information;
the second generation module is used for processing and analyzing the signaling information according to the first processing rule and the second processing rule to obtain address port information of code stream data;
a third generating module, configured to generate a third processing rule and a fourth processing rule according to the address port information;
the first execution module is used for sending the code stream data to a code stream processing module in a code stream processing system according to the third processing rule;
the second execution module is used for changing the source address port of the code stream data processed by the code stream processing module into the address port information of the code stream data according to the fourth processing rule;
wherein, the first processing rule is that the matching destination address port is: copying first signaling data of a platform address port; changing the destination address port of the copied first signaling data into the address port of the protocol analysis module, wherein the second processing rule is as follows: copying second signaling data with a source address port matched with the lower platform address port; changing the destination address port of the copied second signaling data into the address port of the protocol analysis module; the third processing rule is: matching first target data of which the destination address port is first address port information; changing the first address port information of the first target data into an address port of a code stream processing module, wherein the fourth processing rule is as follows: and determining that the source address port of the processed first target data is the data of the address port of the code stream processing module, and modifying the source address port of the data from the address port of the code stream processing module into second address port information.
10. An electronic device, comprising a memory and a processor, the memory storing a computer program, wherein the processor, when executing the computer program, implements the steps of the method according to any of claims 1 to 8.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 8.
CN202110698053.5A 2021-06-23 2021-06-23 Data processing method and device, electronic equipment and computer readable storage medium Active CN113422775B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110698053.5A CN113422775B (en) 2021-06-23 2021-06-23 Data processing method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110698053.5A CN113422775B (en) 2021-06-23 2021-06-23 Data processing method and device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN113422775A CN113422775A (en) 2021-09-21
CN113422775B true CN113422775B (en) 2022-12-02

Family

ID=77717536

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110698053.5A Active CN113422775B (en) 2021-06-23 2021-06-23 Data processing method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113422775B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101114952A (en) * 2007-08-28 2008-01-30 飞思达技术(北京)有限公司 Data flow redirection based VOIP/NGN monitoring, inspecting method and system
WO2010101515A1 (en) * 2009-03-03 2010-09-10 Telefonaktiebolaget Lm Ericsson (Publ) Media transfer to a renderer in a local network from a server in a second local network
CN102984507A (en) * 2012-12-21 2013-03-20 浙江宇视科技有限公司 Network assisting management device and concurrent management device in video monitoring system
CN103220586A (en) * 2013-03-05 2013-07-24 杭州常春藤软件科技有限公司 Method, device and soft switching system for media code stream data acquisition
CN106789999A (en) * 2016-12-12 2017-05-31 浙江宇视科技有限公司 Follow the trail of the method and device of video source
CN109729312A (en) * 2018-12-20 2019-05-07 杭州当虹科技股份有限公司 A kind of video monitoring method of the ONVIF agreement under Internet network
CN109982156A (en) * 2017-12-28 2019-07-05 浙江宇视科技有限公司 A kind of fast multicast round cut method, apparatus and system based on SDN
CN110519641A (en) * 2019-09-10 2019-11-29 深圳市同洲电子股份有限公司 A kind of the video fusion transmission exchange system and method for multi-source multi-protocols
CN111200762A (en) * 2018-11-20 2020-05-26 慧盾信息安全科技(苏州)股份有限公司 Watermarking and tracing system and method based on real-time online video sharing and browsing
CN111970497A (en) * 2020-08-31 2020-11-20 重庆紫光华山智安科技有限公司 Video stream processing method and device, SDN controller and storage medium
CN112738548A (en) * 2021-04-06 2021-04-30 北京百家视联科技有限公司 Streaming media scheduling method, device, equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10477158B2 (en) * 2010-11-05 2019-11-12 Razberi Technologies, Inc. System and method for a security system
US9838724B2 (en) * 2015-11-18 2017-12-05 International Business Machines Corporation Media distribution network for live streaming
US11496472B2 (en) * 2018-11-16 2022-11-08 Mutualink, Inc. System and method for secure access to camera systems

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101114952A (en) * 2007-08-28 2008-01-30 飞思达技术(北京)有限公司 Data flow redirection based VOIP/NGN monitoring, inspecting method and system
WO2010101515A1 (en) * 2009-03-03 2010-09-10 Telefonaktiebolaget Lm Ericsson (Publ) Media transfer to a renderer in a local network from a server in a second local network
CN102984507A (en) * 2012-12-21 2013-03-20 浙江宇视科技有限公司 Network assisting management device and concurrent management device in video monitoring system
CN103220586A (en) * 2013-03-05 2013-07-24 杭州常春藤软件科技有限公司 Method, device and soft switching system for media code stream data acquisition
CN106789999A (en) * 2016-12-12 2017-05-31 浙江宇视科技有限公司 Follow the trail of the method and device of video source
CN109982156A (en) * 2017-12-28 2019-07-05 浙江宇视科技有限公司 A kind of fast multicast round cut method, apparatus and system based on SDN
CN111200762A (en) * 2018-11-20 2020-05-26 慧盾信息安全科技(苏州)股份有限公司 Watermarking and tracing system and method based on real-time online video sharing and browsing
CN109729312A (en) * 2018-12-20 2019-05-07 杭州当虹科技股份有限公司 A kind of video monitoring method of the ONVIF agreement under Internet network
CN110519641A (en) * 2019-09-10 2019-11-29 深圳市同洲电子股份有限公司 A kind of the video fusion transmission exchange system and method for multi-source multi-protocols
CN111970497A (en) * 2020-08-31 2020-11-20 重庆紫光华山智安科技有限公司 Video stream processing method and device, SDN controller and storage medium
CN112738548A (en) * 2021-04-06 2021-04-30 北京百家视联科技有限公司 Streaming media scheduling method, device, equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"Development of a library for clients of ONVIF video cameras: Challenges and solutions";S. F. Lopes等;《2013 IEEE International Conference on Industrial Technology (ICIT)》;20130423;全文 *
"可兼容GB28181与Onvif播放媒体流的视频服务器";韩滨旭等;《计算机应用与软件》;20181029;全文 *

Also Published As

Publication number Publication date
CN113422775A (en) 2021-09-21

Similar Documents

Publication Publication Date Title
US20220360976A1 (en) Systems and methods for real-time remote control of mobile applications
Sharma et al. Shsec: sdn based secure smart home network architecture for internet of things
US20140020102A1 (en) Integrated network architecture
US9853834B2 (en) Method for communication in a tactical network
EP2941715B1 (en) Unified communications with a cloud client device
KR20180082555A (en) Cross-resource subscription to the M2M service layer
TW201543243A (en) Capability monitoring in a service oriented architecture
US20130050392A1 (en) Surveillance system and controlling method thereof
JP2022531878A (en) Systems and methods for selectively collecting computer forensic data using DNS messages
CN107707557B (en) Anonymous access method, device, network equipment and readable storage medium
US11909845B2 (en) Methods and systems for managing applications of a multi-access edge computing environment
JP2022507642A (en) Vehicle internet message notification method and equipment
US11196818B2 (en) Methods and apparatus for managing risk in digital communications of a smart appliance
CN110537181A (en) Manage data encryption application program
KR20220165763A (en) Media Streaming Using Edge Computing
US10288432B1 (en) Systems and methods for guiding users to network-enabled devices
US20220012110A1 (en) Networking-related system call interception and modification
WO2014179637A1 (en) End-to-end classification of storage traffic streams
CN113422775B (en) Data processing method and device, electronic equipment and computer readable storage medium
CN104184821A (en) Conversation and terminal response feedback method and device based on push notification
WO2022270893A1 (en) Network security monitoring device and method based on security packet of terminal
JP6623702B2 (en) A network monitoring device and a virus detection method in the network monitoring device.
CN111866100A (en) Method, device and system for controlling data transmission rate
CN112787947A (en) Network service processing method, system and gateway equipment
WO2022197071A1 (en) Device, system, and method for monitoring network security and performance

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