CN112333559A - Data processing method and device, server and storage medium - Google Patents

Data processing method and device, server and storage medium Download PDF

Info

Publication number
CN112333559A
CN112333559A CN202011184049.9A CN202011184049A CN112333559A CN 112333559 A CN112333559 A CN 112333559A CN 202011184049 A CN202011184049 A CN 202011184049A CN 112333559 A CN112333559 A CN 112333559A
Authority
CN
China
Prior art keywords
streaming media
watermark
forwarding
monitoring data
data
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.)
Pending
Application number
CN202011184049.9A
Other languages
Chinese (zh)
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 CN202011184049.9A priority Critical patent/CN112333559A/en
Publication of CN112333559A publication Critical patent/CN112333559A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/835Generation of protective data, e.g. certificates
    • H04N21/8358Generation of protective data, e.g. certificates involving watermark
    • 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
    • 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/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • H04N21/2389Multiplex stream processing, e.g. multiplex stream encrypting
    • 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/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests

Abstract

The embodiment of the application provides a data processing method and device, a server and a storage medium, and relates to the technical field of data processing. The data processing method is applied to a server, the server is respectively in communication connection with a monitoring device and a terminal device, the server comprises a forwarding stream media and a watermark stream media, and the data processing method comprises the following steps: firstly, responding to a watermark state starting signal, acquiring monitoring data sent by monitoring equipment by forwarding a streaming media and forwarding the monitoring data to the watermark streaming media; secondly, carrying out watermark processing on the monitoring data through the watermark streaming media to obtain watermark monitoring data and sending the watermark monitoring data to the forwarding streaming media; and then, transmitting the watermark monitoring data to the terminal equipment by forwarding the streaming media. Through the arrangement, the data are transmitted to the terminal equipment through the forwarding streaming media when the watermark state is opened, and the problems that video forwarding is poor in concealment, insufficient in safety and low in user experience due to the fact that video streams of related point locations are disconnected when the watermark state is switched in the prior art are solved.

Description

Data processing method and device, server and storage medium
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a data processing method and apparatus, a server, and a storage medium.
Background
In the existing video forwarding system, the watermark stream media and the forwarding stream media operate independently, and the source address of the video stream changes before and after the watermark state is switched. For example, when the watermark state is changed to be on, the video source address is changed from the forwarding streaming media to the watermark streaming media, so that when the watermark state is switched, the video stream of the relevant point is disconnected, which causes the problems of poor concealment, insufficient security and low user experience of video forwarding.
Disclosure of Invention
In view of the above, the present application aims to provide a data processing method and apparatus, a server and a storage medium, so as to at least partially improve one of the above problems in the prior art.
In order to achieve the above purpose, the embodiment of the present application adopts the following technical solutions:
in a first aspect, the present invention provides a data processing method applied to a server, where the server is in communication connection with a monitoring device and a terminal device, respectively, and the server includes a forwarding streaming media and a watermark streaming media, and the data processing method includes:
responding to a watermark state starting signal, acquiring monitoring data sent by the monitoring equipment through the forwarding streaming media and forwarding the monitoring data to the watermark streaming media;
carrying out watermark processing on the monitoring data through the watermark streaming media to obtain watermark monitoring data and sending the watermark monitoring data to the forwarding streaming media;
and sending the watermark monitoring data to the terminal equipment through the forwarding streaming media.
In an optional embodiment, before the step of acquiring, by the forwarding streaming media, monitoring data sent by the monitoring device in response to the watermark state enabling signal and forwarding the monitoring data to the watermark streaming media, the data processing method further includes:
acquiring monitoring data sent by the monitoring equipment through the forwarding streaming media;
and sending the monitoring data to the terminal equipment through the forwarding streaming media.
In an optional implementation manner, the step of sending the monitoring data to the terminal device by forwarding the streaming media includes:
setting a first channel through the forwarding streaming media, and forwarding the monitoring data to the terminal equipment through the first channel;
the step of sending the watermark monitoring data to the terminal device via the forwarding streaming media includes:
and setting a second channel through the forwarding streaming media, and forwarding the watermark monitoring data to the terminal equipment through the second channel.
In an optional implementation manner, the number of the forwarded streaming media is multiple, and the step of obtaining the monitoring data sent by the monitoring device by using the forwarded streaming media includes:
acquiring load information of the plurality of forwarding streaming media, and selecting a target forwarding streaming media from the plurality of forwarding streaming media according to the load information;
and acquiring the monitoring data sent by the monitoring equipment through the target forwarding streaming media.
In an optional embodiment, the number of the watermark streaming media is multiple, and the step of performing watermark processing on the monitoring data by using the watermark streaming media to obtain watermark monitoring data and sending the watermark monitoring data to the forwarding streaming media includes:
acquiring load information of a plurality of watermark streaming media, and selecting a target watermark streaming media from the plurality of watermark streaming media according to the load information;
and carrying out watermark processing on the monitoring data through the target watermark streaming media to obtain watermark monitoring data and sending the watermark monitoring data to the forwarding streaming media.
In an optional embodiment, the step of performing watermarking processing on the monitoring data by using the watermark streaming media to obtain watermark monitoring data and sending the watermark monitoring data to the forwarding streaming media includes:
acquiring client information sent by the forwarding streaming media;
and carrying out watermarking processing on the monitoring data through the watermarking streaming media according to the client information to obtain watermarking monitoring data and sending the watermarking monitoring data to the forwarding streaming media.
In an optional embodiment, the step of performing watermarking processing on the monitoring data according to the client information through the watermarked streaming media to obtain watermarked monitoring data and sending the watermarked monitoring data to the forwarding streaming media includes:
and displaying the client information in the monitoring data through the watermark streaming media to obtain watermark monitoring data and sending the watermark monitoring data to the forwarding streaming media.
In a second aspect, the present invention provides a data processing apparatus, applied to a server, where the server is in communication connection with a monitoring device and a terminal device, respectively, the server includes a forwarding streaming media and a watermark streaming media, and the data processing apparatus includes:
the data acquisition module is used for responding to a watermark state starting signal, acquiring monitoring data sent by the monitoring equipment through the forwarding streaming media and forwarding the monitoring data to the watermark streaming media;
the data processing module is used for carrying out watermark processing on the monitoring data through the watermark streaming media to obtain watermark monitoring data and sending the watermark monitoring data to the forwarding streaming media;
and the data sending module is used for sending the watermark monitoring data to the terminal equipment through the forwarding streaming media.
In a third aspect, the present invention provides a server, comprising a memory and a processor, wherein the processor is configured to execute an executable computer program stored in the memory to implement the data processing method of any one of the foregoing embodiments.
In a fourth aspect, the present invention provides a storage medium having stored thereon a computer program which, when executed, implements the steps of the data processing method of any one of the preceding embodiments.
According to the data processing method and device, the server and the storage medium, in the watermark state starting state, the watermark streaming media acquire the monitoring data sent by the forwarding streaming media to perform watermark processing to obtain the watermark monitoring data, and the watermark monitoring data are sent to the forwarding streaming media so that the forwarding streaming media sends the watermark monitoring data to the terminal equipment.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a block diagram of a data processing system according to an embodiment of the present disclosure.
Fig. 2 is a schematic flow chart of a data processing method according to an embodiment of the present application.
Fig. 3 is another schematic flow chart of a data processing method according to an embodiment of the present application.
Fig. 4 is another schematic flow chart of the data processing method according to the embodiment of the present application.
Fig. 5 is another schematic flow chart of the data processing method according to the embodiment of the present application.
Fig. 6 is another schematic flow chart of the data processing method according to the embodiment of the present application.
Fig. 7 is another schematic flow chart of a data processing method according to an embodiment of the present application.
Fig. 8 is a block diagram of a data processing apparatus according to an embodiment of the present application.
Icon: 10-a data processing system; 100-a server; 200-a monitoring device; 300-a terminal device; 800-a data processing apparatus; 810-a data acquisition module; 820-a data processing module; 830-data sending module.
Detailed Description
In the prior art, the original video data of the equipment is usually acquired during live preview and video playback, and the video resources are frequently forwarded and played, so that the risk of leakage of a confidential sensitive video is increased, and the leakage source is difficult to track. A Digital Watermark (Digital Watermark) is a mark that is embedded covertly in a noise-tolerant signal, such as audio, video or image data. Digital watermarks can be used to verify the authenticity or integrity of a carrier signal and to reveal the identity of its owner. Therefore, watermark information of forwarded classified sensitive videos, such as equipment, users and the like, is embedded in the video monitoring system, so that video point positions and leakage sources can be quickly and accurately positioned when the videos leak, and defects in video management work can be found in time.
The main process of video watermarking comprises the following steps: receiving a video stream, decoding, watermarking, encoding, and transmitting the watermarked video stream. The video coding and decoding consumes very large resources, and the performance consumption of the CPU for carrying out the video soft coding and decoding is about forty times of that of the video forwarding. Therefore, if the two flows of video forwarding and video watermarking are combined, the service stability is greatly influenced, the software specification is not well determined, and the system resources are wasted.
In order to improve the encoding and decoding efficiency without affecting the normal Video forwarding, the watermark streaming media and the forwarding streaming media need to be separated, on one hand, a special Video encoding and decoding chip (Video Processing Unit) is conveniently deployed in the watermark streaming media, the watermarking speed is improved, meanwhile, the coupling degree of the watermark and the forwarding flow can be reduced, and the system can conveniently perform function cutting, capacity expansion and capacity reduction.
However, decoupling brings a new problem: when the watermark state is switched, how to make the stream media services of live preview, video playback, etc. to have no perception. After decoupling, the watermark streaming media and the forwarding streaming media operate independently, and the streaming source address changes before and after the watermark state switching. For example, when the watermark state is changed to on, the source address is changed from the forwarding streaming media to the watermark streaming media. When the watermark state is switched, the video stream of the relevant point position is disconnected, the concealment is poor, the safety is insufficient, and the user experience needs to be improved.
In order to improve at least one of the above technical problems proposed by the present application, embodiments of the present application provide a data processing method and apparatus, a server, and a storage medium, and the following describes technical solutions of the present application through possible implementation manners.
The defects of the above solutions are the results of the inventor after practice and careful study, and therefore, the discovery process of the above problems and the solution proposed by the present application to the above problems should be the contribution of the inventor to the present application in the process of the present application.
For purposes of making the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions of the embodiments of the present application will be described in detail below with reference to the drawings in the embodiments of the present application, and it should be understood that the drawings in the present application are for illustrative and descriptive purposes only and are not used to limit the scope of the present application. Additionally, it should be understood that the schematic drawings are not necessarily drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of the present application. It should be understood that the operations of the flow diagrams may be performed out of order, and steps without logical context may be performed in reverse order or simultaneously. One skilled in the art, under the guidance of this application, may add one or more other operations to, or remove one or more operations from, the flowchart.
In addition, the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
In order to enable a person skilled in the art to make use of the present disclosure, the following embodiments are given. It will be apparent to those skilled in the art that the general principles defined herein may be applied to other embodiments and applications without departing from the spirit and scope of the application. Applications of the system or method of the present application may include web pages, plug-ins for browsers, client terminals, customization systems, internal analysis systems, or artificial intelligence robots, among others, or any combination thereof.
It should be noted that in the embodiments of the present application, the term "comprising" is used to indicate the presence of the features stated hereinafter, but does not exclude the addition of further features.
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.
Fig. 1 is a block diagram of a data processing system 10 provided in an embodiment of the present application, which provides a possible implementation manner of the data processing system 10, and referring to fig. 1, the data processing system 10 may include one or more of a server 100, a monitoring device 200, and a terminal device 300, and the server 100 may include a processor for executing instruction operations.
The server 100 is in communication connection with the monitoring device 200 and the terminal device 300, the monitoring device 200 is arranged in a target scene and used for acquiring monitoring data of the target scene and sending the acquired monitoring data to the server 100, and the server 100 is used for performing watermarking processing on the monitoring data to obtain watermarking monitoring data and sending the watermarking monitoring data to the terminal device 300 for displaying or analyzing.
For the server 100, it should be noted that, in some embodiments, the server 100 may be a single server 100 or a server group. The set of servers may be centralized or distributed (e.g., server 100 may be a distributed system). In some embodiments, the server 100 may be local or remote with respect to the monitoring device 200 and the terminal device 300. For example, the server 100 may access information and/or data stored in the monitoring device 200 and the terminal device 300 via a network. As another example, the server 100 may be directly connected to the monitoring device 200 or the terminal device 300 to access stored information and/or data. In some embodiments, the server 100 may be implemented on a cloud platform. By way of example only, the cloud platform may include a private cloud, a public cloud, a hybrid cloud, a resilient cloud, a community cloud (community cloud), a distributed cloud, a cross-cloud (inter-cloud), a multi-cloud (multi-cloud), and the like, or any combination thereof. In some embodiments, the server 100 may be implemented on the terminal device 300.
In some embodiments, the server 100 may include a processor. The processor may process information and/or data sent by terminal device 300 to perform one or more of the functions described herein. In some embodiments, a processor may include one or more processing cores (e.g., a single-core processor (S) or a multi-core processor (S)). Merely by way of example, a Processor may include a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), an Application Specific Instruction Set Processor (ASIP), a Graphics Processing Unit (GPU), a Physical Processing Unit (PPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), a Programmable Logic Device (PLD), a controller, a microcontroller Unit, a Reduced Instruction Set computer (Reduced Instruction Set computer, RISC), a microprocessor, or the like, or any combination thereof.
The network may be used for the exchange of information and/or data. In some embodiments, one or more components in data processing system 10 (e.g., server 100, monitoring device 200, and terminal device 300) may send information and/or data to other components. For example, the server 100 may acquire data from the monitoring apparatus 200 via a network. In some embodiments, the network may be any type of wired or wireless network, or combination thereof. Merely by way of example, the Network may include a wired Network, a Wireless Network, a fiber optic Network, a telecommunications Network, an intranet, the internet, a Local Area Network (LAN), a Wide Area Network (WAN), a Wireless Local Area Network (WLAN), a Metropolitan Area Network (MAN), a Wide Area Network (WAN), a Public Switched Telephone Network (PSTN), a bluetooth Network, a ZigBee Network, a Near Field Communication (NFC) Network, or the like, or any combination thereof.
In some embodiments, the network may include one or more network access points. For example, a network may include wired or wireless network access points, such as base stations and/or network switching nodes, through which one or more components of data processing system 10 may connect to the network to exchange data and/or information.
A database may be included in server 100 and may store data and/or instructions. In some embodiments, the database may store data obtained from the monitoring device 200. In some embodiments, a database may store data and/or instructions for the exemplary methods described herein. In some embodiments, the database may include mass storage, removable storage, volatile Read-write Memory, or Read-Only Memory (ROM), among others, or any combination thereof. By way of example, mass storage may include magnetic disks, optical disks, solid state drives, and the like; removable memory may include flash drives, floppy disks, optical disks, memory cards, zip disks, tapes, and the like; volatile read-write Memory may include Random Access Memory (RAM); the RAM may include Dynamic RAM (DRAM), Double data Rate Synchronous Dynamic RAM (DDR SDRAM); static RAM (SRAM), Thyristor-Based Random Access Memory (T-RAM), Zero-capacitor RAM (Zero-RAM), and the like. By way of example, ROMs may include Mask Read-Only memories (MROMs), Programmable ROMs (PROMs), Erasable Programmable ROMs (PERROMs), Electrically Erasable Programmable ROMs (EEPROMs), compact disk ROMs (CD-ROMs), digital versatile disks (ROMs), and the like. In some embodiments, the database may be implemented on a cloud platform. By way of example only, the cloud platform may include a private cloud, a public cloud, a hybrid cloud, a community cloud, a distributed cloud, cross-cloud, multi-cloud, elastic cloud, or the like, or any combination thereof.
In some embodiments, a database may be connected to a network to communicate with one or more components in data processing system 10 (e.g., server 100, monitoring device 200, and terminal device 300). One or more components in data processing system 10 may access data or instructions stored in a database via a network. In some embodiments, the database may be directly connected to one or more components in the data processing system 10 (e.g., the server 100, the monitoring device 200, and the terminal device 300). Alternatively, in some embodiments, the database may also be part of the server 100. In some embodiments, one or more components in data processing system 10 (e.g., server 100, monitoring device 200, and terminal device 300) may have access to a database.
Fig. 2 shows one of the flowcharts of the data processing method provided by the embodiment of the present application, and the method may be applied to the server 100 shown in fig. 1 and executed by the server 100 in fig. 1, where the server 100 includes forwarding streaming media and watermarking streaming media. It should be understood that, in other embodiments, the order of some steps in the data processing method of this embodiment may be interchanged according to actual needs, or some steps may be omitted or deleted. The flow of the data processing method shown in fig. 2 is described in detail below.
Step S210, in response to the watermark state enabling signal, obtains the monitoring data sent by the monitoring device 200 by forwarding the streaming media and forwards the monitoring data to the watermark streaming media.
In detail, after the watermark state is turned on, the monitoring data can be obtained by forwarding the streaming media and sent to the watermark streaming media.
Step S220, perform watermarking on the monitoring data through the watermark streaming media to obtain watermark monitoring data and send the watermark monitoring data to the forwarding streaming media.
In detail, after the monitoring data is obtained in step S310, the monitoring data may be watermarked by the watermark streaming media to obtain the watermark monitoring data, and the watermark monitoring data is sent to the forwarding streaming media.
Step S230, sending the watermark monitoring data to the terminal device 300 by forwarding the streaming media.
In detail, after the watermark monitoring data is acquired through step S220, the watermark monitoring data may be transmitted to the terminal device 300 for processing by forwarding the streaming media.
According to the method, in the open state of the watermark state, the watermark stream media obtains the monitoring data sent by the forwarding stream media to perform watermark processing to obtain the watermark monitoring data, and the watermark monitoring data is sent to the forwarding stream media so that the forwarding stream media sends the watermark monitoring data to the terminal equipment, so that the data is sent to the terminal equipment through the forwarding stream media when the watermark state is open, and the problems of poor concealment, insufficient safety and low user experience of video forwarding caused by disconnection of video streams of related point positions when the watermark state is switched in the prior art are solved.
It should be noted that, a video source tracing system may be deployed on the server 100, and the system may include streaming media scheduling service, forwarding streaming media, watermark streaming media, Web service, database service, and the like, and may obtain, on a Web page of the server 100, a point location corresponding signal that the user adds the monitoring device 200, so that the monitoring device 200 normally goes online to establish connection between the server 100 and the monitoring device 200, and may configure an initial watermark state of the point location of the monitoring device 200 as a closed state. The point location corresponding signal that the user clicks on the client interface of the terminal device 300 to add the monitoring device 200 may be obtained, and the live request of the monitoring device 200 is sent to the streaming media scheduling service, so that the server 100 establishes connections with the monitoring device 200 and the terminal device 300, respectively.
Before step S210, when the watermark status is off, the data processing method may further include the step of acquiring monitoring data by forwarding the streaming media and sending the monitoring data to the terminal device 300. Therefore, on the basis of fig. 2, fig. 3 is a schematic flow chart of another data processing method provided in the embodiment of the present application, and referring to fig. 3, the data processing method may further include:
step S240, acquiring the monitoring data sent by the monitoring device 200 by forwarding the streaming media.
In detail, the monitoring data may include, but is not limited to, image data or video streams. The streaming media scheduling service may send a streaming request to the monitoring device 200, so that the monitoring device 200 pushes streaming to forward the streaming media.
Step S250, sending the monitoring data to the terminal device 300 by forwarding the streaming media.
In detail, the client may be made to forward the streaming media fetch stream in response to a client live request of the terminal device 300.
For step S240, it should be noted that the specific step of acquiring the monitoring data is not limited, and may be set according to the actual application requirement. For example, in an alternative example, when the number of the forwarding streaming media is multiple, step S240 may include a step of selecting a target forwarding streaming media from the multiple forwarding streaming media. Therefore, on the basis of fig. 3, fig. 4 is a schematic flowchart of another data processing method provided in the embodiment of the present application, and referring to fig. 4, step S240 may include:
step S241, obtaining load information of the multiple forwarding streaming media, and selecting a target forwarding streaming media from the multiple forwarding streaming media according to the load information.
In detail, the streaming media scheduling service may select an optimal forwarding streaming media according to a load balancing policy, where the load information may refer to the connection number (the number of paths to be forwarded) of the forwarding streaming media, and may forward the streaming media with the smallest number of paths as a target, so as to reduce the overall load.
Step S242, acquiring the monitoring data sent by the monitoring device 200 through the target forwarding streaming media.
It should be noted that, in order not to affect the forwarding of the monitoring data and the forwarding of the watermark monitoring data, the specific steps of sending the monitoring data in step S250 and sending the watermark monitoring data in step S230 are not limited, and may be set according to the actual application requirements. For example, in an alternative example, step S250 may include the step of transmitting the monitoring data through a first channel, and step S230 may include the step of transmitting the watermark monitoring data through a second channel. Therefore, on the basis of fig. 2 and fig. 3, fig. 5 is a schematic flowchart of another data processing method provided in the embodiment of the present application, and referring to fig. 5, step S250 may include:
step S251, a first channel is set by forwarding the streaming media, and the monitoring data is forwarded to the terminal device 300 through the first channel.
In detail, a request for creating a forwarding channel is sent to the forwarding streaming media, the streaming media applies for creating a resource required by the channel, and the monitoring data is forwarded to the terminal device 300 in response to the request of the streaming media scheduling service.
Step S230 may include:
step S231 sets a second channel by forwarding the streaming media, and forwards the watermark monitoring data to the terminal device 300 through the second channel.
In detail, after the streaming media scheduling service receives the watermark state change message, a request for creating a new forwarding channel may be sent to forward the streaming media, and the client of the terminal device 300 may be transferred from the forwarding channel of step S240 to the newly created forwarding channel.
According to the method, the watermark channel is created in the watermark streaming media and the new forwarding channel is created in the forwarding streaming media, the watermark channel acquires the video stream from the original forwarding channel, the video stream is watermarked and then sent to the new forwarding channel, the client side of the terminal device 300 is transferred to the new forwarding channel, the video stream of the client side is not disconnected when the watermark state is switched, the video is acquired from the same forwarding streaming media, the IP and the port are not changed, the non-perception switching can be realized, and the concealment, the safety and the user experience are improved.
For step S210, it should be noted that the specific opening mode of the watermark state is not limited, and may be set according to the actual application requirement. For example, in an alternative example, the point watermark status of the monitoring device 200 may be modified to an on state via a Web page.
As for step S220, it should be noted that the specific steps for obtaining the watermark monitoring data are not limited, and may be set according to the actual application requirements. For example, in an alternative example, when the number of the watermark streaming media is plural, step S220 may include a step of selecting a target watermark streaming media from the plural watermark streaming media. Therefore, on the basis of fig. 2, fig. 6 is a schematic flowchart of another data processing method provided in the embodiment of the present application, and referring to fig. 6, step S220 may include:
step S221, obtaining load information of the multiple watermark streaming media, and selecting a target watermark streaming media from the multiple watermark streaming media according to the load information.
In detail, the streaming media scheduling service may select the least loaded watermark streaming media as the target watermark streaming media through a load balancing policy.
Step S222, performing watermark processing on the monitoring data through the target watermark streaming media to obtain watermark monitoring data, and sending the watermark monitoring data to the forwarding streaming media.
In detail, the streaming media scheduling service may send a request for creating a watermark channel to a target watermark streaming media, where the watermark channel obtains monitoring data through a forwarding channel (a first channel) in the forwarding streaming media, and sends the monitoring data to a new forwarding channel (a second channel) in the forwarding streaming media after performing watermark processing.
As for step S220, it should be noted that the specific steps for performing the watermarking process are not limited, and may be set according to the actual application requirements. For example, in an alternative example, step S220 may include a step of performing watermarking from customer information. Therefore, on the basis of fig. 2, fig. 7 is a schematic flowchart of another data processing method provided in the embodiment of the present application, and referring to fig. 7, step S220 may include:
step S223, obtaining the client information sent by the forwarding streaming media.
In detail, when the client of the terminal device 300 obtains the monitoring data by forwarding the streaming media, the client information (which may include, for example, a login user name, an IP, requested device information, and the like) is bound to the egress side of the forwarding channel (the first channel) at the same time, so as to obtain the client information.
Step S224, the monitoring data is watermarked by the watermark stream media according to the client information, and the watermark monitoring data is obtained and sent to the forwarding stream media.
In detail, the main flow of performing the watermark processing is as follows: receiving a video stream, decoding, watermarking, encoding, and transmitting the watermarked video stream. Firstly, carrying out protocol resolution processing (a protocol layer can comprise http, rtmp, file and the like) on a video stream to obtain data with a packaging format; secondly, decapsulating the data with the encapsulated format (the encapsulated format layer may include mkv, mp4, flv, avi, etc.), so as to obtain video compressed data; then, video decoding processing is performed on the video compressed data (the pixel layer may include yuv420p, yuv422p, rgb24, etc.), resulting in video pixel data; and finally, embedding the client information as watermark content into the pixel data, and performing video coding, format packaging and protocol header adding processing to obtain watermark monitoring data.
As for step S224, it should be noted that, the specific way of performing the watermark processing according to the client information is not limited, and may be set according to the actual application requirement. For example, in an alternative example, step S224 may include the following sub-steps:
and displaying the client information in the monitoring data through the watermark streaming media to obtain watermark monitoring data and sending the watermark monitoring data to the forwarding streaming media.
That is, the client information is directly displayed in the video stream as the watermark to obtain the watermark monitoring data.
For another example, in another alternative example, the watermark monitoring data may be obtained by embedding the client information as an invisible watermark in a frame image included in the video stream by a digital watermarking algorithm.
In practical application, a video monitoring system and a storage system can be respectively deployed, a large number of front-end cameras, NVRs and other devices are accessed, and platform video plans of part of the devices are configured. In view of the huge influence of the confidential sensitive video leakage event on the society, the video monitoring system can be upgraded to a video tracing system supporting the watermark, the watermark is configured for the video of the monitoring equipment 200 in the sensitive area, and the quick positioning of the leakage source is realized.
Because the watermark stream media and the forwarding stream media are arranged in a decoupling mode, the video plan of the equipment cannot be disconnected in the process of upgrading the system. After the upgrade is completed, the Web page of the server 100 is logged in, and the point location watermark of the sensitive monitoring device 200 is configured. At this time, the storage system still obtains the original video of the monitoring device 200 from the original forwarding channel for forwarding the streaming media, and the client live preview of the terminal device 300 is switched to the newly-created forwarding channel on the same forwarding streaming media for forwarding the watermarked video. Since the live is still taken from the same forwarded streaming media, IP and port are unchanged and an agnostic handover can be achieved.
With reference to fig. 8, an embodiment of the present application further provides a data processing apparatus 800, where the functions implemented by the data processing apparatus 800 correspond to the steps executed by the foregoing method. The data processing device 800 may be understood as a processor of the server 100, or may be understood as a component that is independent of the server 100 or the processor and that implements the functions of the present application under the control of the server 100. The data processing apparatus 800 may include a data obtaining module 810, a data processing module 820, and a data transmitting module 830.
The data obtaining module 810 is configured to, in response to the watermark state enabling signal, obtain the monitoring data sent by the monitoring device 200 through forwarding the streaming media and forward the monitoring data to the watermark streaming media. In the embodiment of the present application, the data obtaining module 810 may be configured to perform step S210 shown in fig. 2, and reference may be made to the foregoing description of step S210 for relevant content of the data obtaining module 810.
The data processing module 820 is configured to perform watermarking processing on the monitoring data through the watermarking streaming media to obtain watermarking monitoring data, and send the watermarking monitoring data to the forwarding streaming media. In the embodiment of the present application, the data processing module 820 may be configured to perform step S220 shown in fig. 2, and reference may be made to the foregoing description of step S220 for relevant contents of the data processing module 820.
A data sending module 830, configured to send the watermark monitoring data to the terminal device 300 by forwarding the streaming media. In this embodiment of the application, the data sending module 830 may be configured to execute step S230 shown in fig. 2, and reference may be made to the foregoing description of step S230 for relevant content of the data sending module 830.
In addition, an embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program performs the steps of the data processing method.
The computer program product of the data processing method provided in the embodiment of the present application includes a computer-readable storage medium storing a program code, where instructions included in the program code may be used to execute steps of the data processing method in the above method embodiment, which may be referred to specifically in the above method embodiment, and are not described herein again.
To sum up, according to the data processing method and apparatus, the server and the storage medium provided in the embodiments of the present application, in the state of opening the watermark state, the watermark streaming media obtains the monitoring data sent by the forwarding streaming media to perform watermark processing to obtain the watermark monitoring data, and sends the watermark monitoring data to the forwarding streaming media so that the forwarding streaming media sends the watermark monitoring data to the terminal device, thereby realizing that the data is sent to the terminal device by the forwarding streaming media when the watermark state is opened, and avoiding the problems of poor concealment, insufficient security and low user experience of video forwarding caused by disconnection of video streams of related point locations when the watermark state is switched in the prior art.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server 100, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A data processing method is applied to a server, the server is respectively in communication connection with a monitoring device and a terminal device, the server comprises a forwarding streaming media and a watermark streaming media, and the data processing method comprises the following steps:
responding to a watermark state starting signal, acquiring monitoring data sent by the monitoring equipment through the forwarding streaming media and forwarding the monitoring data to the watermark streaming media;
carrying out watermark processing on the monitoring data through the watermark streaming media to obtain watermark monitoring data and sending the watermark monitoring data to the forwarding streaming media;
and sending the watermark monitoring data to the terminal equipment through the forwarding streaming media.
2. The data processing method according to claim 1, wherein before the step of acquiring the monitoring data sent by the monitoring device through the forwarding streaming media in response to the watermark state enabling signal and forwarding the monitoring data to the watermark streaming media, the data processing method further comprises:
acquiring monitoring data sent by the monitoring equipment through the forwarding streaming media;
and sending the monitoring data to the terminal equipment through the forwarding streaming media.
3. The data processing method of claim 2, wherein the step of sending the monitoring data to the terminal device via the forwarding streaming media comprises:
setting a first channel through the forwarding streaming media, and forwarding the monitoring data to the terminal equipment through the first channel;
the step of sending the watermark monitoring data to the terminal device via the forwarding streaming media includes:
and setting a second channel through the forwarding streaming media, and forwarding the watermark monitoring data to the terminal equipment through the second channel.
4. The data processing method according to claim 2, wherein the number of the forwarding streaming media is plural, and the step of acquiring the monitoring data sent by the monitoring device through the forwarding streaming media includes:
acquiring load information of the plurality of forwarding streaming media, and selecting a target forwarding streaming media from the plurality of forwarding streaming media according to the load information;
and acquiring the monitoring data sent by the monitoring equipment through the target forwarding streaming media.
5. The data processing method according to claim 1, wherein the number of the watermark streaming media is plural, and the step of performing watermark processing on the monitoring data through the watermark streaming media to obtain watermark monitoring data and sending the watermark monitoring data to the forwarding streaming media comprises:
acquiring load information of a plurality of watermark streaming media, and selecting a target watermark streaming media from the plurality of watermark streaming media according to the load information;
and carrying out watermark processing on the monitoring data through the target watermark streaming media to obtain watermark monitoring data and sending the watermark monitoring data to the forwarding streaming media.
6. The data processing method according to claim 1, wherein the step of performing watermarking processing on the monitoring data by the watermarking streaming media to obtain watermarking monitoring data and sending the watermarking monitoring data to the forwarding streaming media comprises:
acquiring client information sent by the forwarding streaming media;
and carrying out watermarking processing on the monitoring data through the watermarking streaming media according to the client information to obtain watermarking monitoring data and sending the watermarking monitoring data to the forwarding streaming media.
7. The data processing method according to claim 6, wherein the step of performing watermarking processing on the monitoring data according to the client information through the watermarked streaming media to obtain watermarked monitoring data and sending the watermarked monitoring data to the forwarding streaming media comprises:
and displaying the client information in the monitoring data through the watermark streaming media to obtain watermark monitoring data and sending the watermark monitoring data to the forwarding streaming media.
8. A data processing device is applied to a server, the server is respectively connected with a monitoring device and a terminal device in a communication mode, the server comprises a forwarding streaming media and a watermark streaming media, and the data processing device comprises:
the data acquisition module is used for responding to a watermark state starting signal, acquiring monitoring data sent by the monitoring equipment through the forwarding streaming media and forwarding the monitoring data to the watermark streaming media;
the data processing module is used for carrying out watermark processing on the monitoring data through the watermark streaming media to obtain watermark monitoring data and sending the watermark monitoring data to the forwarding streaming media;
and the data sending module is used for sending the watermark monitoring data to the terminal equipment through the forwarding streaming media.
9. A server, comprising a memory and a processor for executing an executable computer program stored in the memory to implement the data processing method of any one of claims 1 to 7.
10. A storage medium, characterized in that a computer program is stored thereon, which when executed performs the steps of the data processing method of any one of claims 1-7.
CN202011184049.9A 2020-10-29 2020-10-29 Data processing method and device, server and storage medium Pending CN112333559A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011184049.9A CN112333559A (en) 2020-10-29 2020-10-29 Data processing method and device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011184049.9A CN112333559A (en) 2020-10-29 2020-10-29 Data processing method and device, server and storage medium

Publications (1)

Publication Number Publication Date
CN112333559A true CN112333559A (en) 2021-02-05

Family

ID=74297422

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011184049.9A Pending CN112333559A (en) 2020-10-29 2020-10-29 Data processing method and device, server and storage medium

Country Status (1)

Country Link
CN (1) CN112333559A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115334356A (en) * 2022-08-12 2022-11-11 中国电信股份有限公司 Video playing method and system, video security platform and communication equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004090658A2 (en) * 2003-04-07 2004-10-21 Dcode Ncode International Corporation Digital media file conversion
CN101198045A (en) * 2007-12-20 2008-06-11 清华大学 Stream media digital watermarking system
CN101325702A (en) * 2008-07-25 2008-12-17 清华大学 System for real time embedding visible watermark into flow medium as well as server terminal and client terminal thereof
CN107566786A (en) * 2017-08-11 2018-01-09 深圳英飞拓科技股份有限公司 A kind of method, apparatus and terminal device for obtaining monitor video
CN111131654A (en) * 2018-10-30 2020-05-08 浙江宇视科技有限公司 Watermark embedding method and device and coder-decoder

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004090658A2 (en) * 2003-04-07 2004-10-21 Dcode Ncode International Corporation Digital media file conversion
CN101198045A (en) * 2007-12-20 2008-06-11 清华大学 Stream media digital watermarking system
CN101325702A (en) * 2008-07-25 2008-12-17 清华大学 System for real time embedding visible watermark into flow medium as well as server terminal and client terminal thereof
CN107566786A (en) * 2017-08-11 2018-01-09 深圳英飞拓科技股份有限公司 A kind of method, apparatus and terminal device for obtaining monitor video
CN111131654A (en) * 2018-10-30 2020-05-08 浙江宇视科技有限公司 Watermark embedding method and device and coder-decoder

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115334356A (en) * 2022-08-12 2022-11-11 中国电信股份有限公司 Video playing method and system, video security platform and communication equipment
CN115334356B (en) * 2022-08-12 2024-02-23 中国电信股份有限公司 Video playing method and system, video security platform and communication equipment

Similar Documents

Publication Publication Date Title
JP4894590B2 (en) Network system, information processing apparatus, and information processing program
CN108243106A (en) Control method, forwarding unit, control device and the communication system of network slice
CN105868231A (en) Cache data updating method and device
WO2019085975A1 (en) Network topology display method and network management device
CN104539902B (en) The remote access method and system of a kind of IPC
CN104348848B (en) Manage method, terminal device and the server of picture
CN101582916A (en) Network application system based on P2P and application method thereof
CN110809026B (en) File processing method and device, electronic equipment and storage medium
CN111913782A (en) Method and equipment for realizing virtual machine flow mirror image based on tunnel technology
CN112235795B (en) Wireless network configuration method, system, device and medium based on Internet of things
CN113163162A (en) Service providing method based on video cloud and video cloud system
CN106257890B (en) Transport stack name scheme and identity management
CN115243112A (en) Device that surveillance video traced to source
CN112333559A (en) Data processing method and device, server and storage medium
CN114449291A (en) Data transmission method, device and computer storage medium
CN106664460B (en) Information processing equipment and information processing method
US11357020B2 (en) Connecting computer processing systems and transmitting data
JP7182467B2 (en) Method and system for selectively adapting and transmitting message data
CN102638569B (en) File distribution synchronizing method and system
CN110011850B (en) Management method and device for services in cloud computing system
CN109783595B (en) Routing and distribution method of loose sliced map service
CN116546039A (en) Virtual machine image uploading method and device, electronic equipment and storage medium
CN108696509B (en) Access processing method and device for terminal
CN108984614B (en) Visual image rapid identification method based on big data environment
CN107493181A (en) The indicating means and device of virtual extended port

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210205

RJ01 Rejection of invention patent application after publication