A method, device, electronic device and storage medium for adding video watermark

By generating a new message packet with decoding keys and watermark information for user terminals to handle, the method reduces gateway performance consumption and improves media stream transmission efficiency in monitoring systems.

CN114466155BActive Publication Date: 2025-07-15ZHEJIANG UNIVIEW TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011247017.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-10
Publication Date
2025-07-15
Estimated Expiration
2040-11-10

AI Technical Summary

Technical Problem

Existing video watermark gateways require additional encoding and decoding of media streams when adding watermarks, resulting in high performance consumption and low transmission efficiency.

Method used

The target message containing the decoding public key and watermark information is generated in the video watermark gateway server and sent to the user terminal. The user terminal simultaneously adds watermarks during the decoding process to avoid the video watermark gateway from decoding and encoding the media stream.

Benefits of technology

Reduces the performance consumption of video watermark gateways and improves the transmission efficiency of media streams.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114466155B_ABST
    Figure CN114466155B_ABST
Patent Text Reader

Abstract

An embodiment of the present application discloses a method, apparatus, electronic device, and storage medium for adding video watermarks. Specifically, the method includes: when the user terminal requests a media stream from the front-end acquisition device, obtaining the decoding public key, watermark information, and parameter information of the media stream sent by the lower-level domain platform; obtaining a media stream that matches the parameter information, and extracting an initial message from the media stream; adding the decoding public key and watermark information to the initial message to obtain a target message; sending the target message and the media stream to the user terminal, so that the user terminal decodes the media stream according to the decoding public key and adds the watermark information to the decoded image data. In the embodiment of the present application, the video watermark gateway server only needs to generate a new message, without decoding, adding watermarks, and encoding the media stream, thereby reducing the performance consumption of the video watermark gateway server and improving the media stream transmission efficiency at the same time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of video surveillance, and particularly to a method, device, electronic device, and storage medium for adding video watermarks. Background Art

[0002] Currently, with the needs of the business, it has become increasingly common for different management units or different-level units to call surveillance videos. As a result, the risk of video leakage has become increasingly high. When a security incident of leaked dispatching video occurs, it has become an urgent need to hold the leaking unit accountable.

[0003] Currently, in order to trace the leaking unit, watermarks are usually added to the surveillance videos transmitted to each unit. And adding watermarks is usually completed by the video watermark gateway in the monitoring center. Specifically, after decoding the original media stream through the video watermark gateway, corresponding watermarks are added, and then re-encoded, and then the re-encoded media stream is sent to the corresponding unit.

[0004] However, this method still has certain deficiencies: the video watermark gateway needs to perform additional encoding and decoding on the media stream, which consumes a large amount of performance of the video watermark gateway; at the same time, performing additional decoding and encoding on the media stream makes the transmission efficiency of the media stream low. Summary of the Invention

[0005] Embodiments of this application provide a method, device, electronic device, and storage medium for adding video watermarks to achieve the purpose of reducing the performance consumption of the video watermark gateway and improving the transmission efficiency of the media stream.

[0006] In a first aspect, embodiments of this application provide a method for adding video watermarks, which is applied to a video watermark gateway server in a monitoring system. The monitoring system at least includes a superior domain platform and an inferior domain platform. The superior domain platform is connected to a user terminal, and the inferior domain platform is equipped with a front-end acquisition device. The method includes:

[0007] When the user terminal requests a media stream from the front-end acquisition device, obtain the decoding public key, watermark information, and parameter information of the media stream sent by the inferior domain platform;

[0008] Obtain a media stream that matches the parameter information, and extract an initial message from the media stream;

[0009] Add the decoding public key and watermark information to the initial message to obtain a target message;

[0010] Send the target message and the media stream to the user terminal so that the user terminal decodes the media stream according to the decoding public key and adds the watermark information to the decoded image data.

[0011] Second aspect, an embodiment of the present application provides a video watermark adding device, configured in a video watermark gateway server in a monitoring system. The monitoring system includes at least a superior domain platform and a subordinate domain platform. The superior domain platform is connected to a user terminal, and a front-end acquisition device is mounted on the subordinate domain platform. The device includes:

[0012] A data acquisition module, configured to obtain the decoding public key, watermark information, and parameter information of the media stream of the front-end acquisition device sent by the subordinate domain platform when the user terminal requests a media stream from the front-end acquisition device;

[0013] An initial packet extraction module, configured to obtain a media stream matching the parameter information and extract an initial packet from the media stream;

[0014] A target packet generation module, configured to add the decoding public key and watermark information to the initial packet to obtain a target packet;

[0015] A data sending module, configured to send the target packet and the media stream to the user terminal, so that the user terminal decodes the media stream according to the decoding public key and adds the watermark information to the decoded image data.

[0016] Third aspect, an embodiment of the present application further provides an electronic device, including:

[0017] One or more processors;

[0018] A storage device, configured to store one or more programs,

[0019] When the one or more programs are executed by the one or more processors, the one or more processors implement the video watermark adding method according to any embodiment of the present application.

[0020] Fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the video watermark adding method according to any embodiment of the present application is implemented.

[0021] In the embodiment of the present application, the video watermark gateway server generates a new target packet according to the obtained decoding public key, watermark information, and initial packet, and sends the media stream and the target packet to the user terminal, so that the user terminal decodes according to the decoding public key and adds the watermark information to the decoded image data. Thus, the video watermark gateway server does not need to decode, add watermark, and encode the media stream, and only needs to generate a new packet. Subsequently, the user terminal completes the operation of adding the watermark during the process of decoding the media stream, thereby reducing the performance consumption of the video watermark gateway server and improving the media stream transmission efficiency. Description of the Drawings

[0022] Figure 1aIt is a schematic flowchart of the video watermark addition method according to the first embodiment of the present application;

[0023] Figure 1b It is the effect diagram of the initial message according to the first embodiment of the present application;

[0024] Figure 1c It is a schematic diagram of the target message according to the first embodiment of the present application;

[0025] Figure 2 It is a logical flowchart of the video watermark addition method according to the second embodiment of the present application;

[0026] Figure 3 It is a schematic structural diagram of the video watermark addition device according to the third embodiment of the present application;

[0027] Figure 4 It is a schematic structural diagram of the electronic device for implementing the video watermark addition method according to the fourth embodiment of the present application. Detailed implementation manners

[0028] The present application will be further described in detail below with reference to the accompanying drawings and embodiments. It can be understood that the specific embodiments described herein are only used to explain the present application, rather than limiting the present application. Additionally, it should be noted that for the sake of description, only parts related to the present application rather than all structures are shown in the drawings.

[0029] Figure 1a It is a flowchart of the video watermark addition method according to the first embodiment of the present application. This embodiment is applicable to the situation of adding watermarks to the media stream transmitted by the monitoring system. This method can be executed by a video watermark addition device, which can be implemented in software and / or hardware and can be integrated into an electronic device, such as a video watermark gateway server integrated in the monitoring system.

[0030] In the embodiments of the present application, the monitoring system at least includes a superior domain platform and an inferior domain platform. The superior domain platform is connected to the user terminal, and the inferior domain platform is equipped with front-end acquisition devices. Moreover, the superior domain platform and the inferior domain platform can communicate through a wide area network. In the monitoring system, the devices adopt a cascading and sharing mode, which is shared upward from the inferior domain platform all the way up for the purpose of interconnection and interoperability. Also, the superior domain platform can perform operations such as on-demand playback and live viewing of the monitoring resources of the inferior domain platform. In the embodiments of the present application, a video watermark gateway server is deployed at the boundary of the inferior domain platform, and through the video watermark gateway server, the media stream collected by the front-end acquisition devices can be transmitted back to the user terminal.

[0031] On the above basis, as Figure 1a shown, the video watermark addition method specifically includes the following processes:

[0032] S101. When the user terminal requests a media stream from the front-end acquisition device, obtain the decoding public key, watermark information, and parameter information of the media stream sent by the lower-level domain platform.

[0033] In the embodiments of the present application, the user terminal may optionally be a smart phone, a tablet computer, a personal computer, etc.; the front-end acquisition device may optionally be an IP camera (IPC).

[0034] In an alternative embodiment, the process of the user terminal requesting a media stream from the front-end acquisition device includes: the user terminal sends a media stream acquisition request with the front-end acquisition device identifier to the upper-level domain platform, so that the upper-level domain platform determines the lower-level domain platform where the corresponding front-end acquisition device is located according to the front-end acquisition device identifier, and then the upper-level domain platform requests a media stream from the lower-level domain platform according to the received media stream acquisition request. Optionally, the upper-level domain platform may send the media stream acquisition request to the lower-level domain platform in the GB28181 message format; after receiving the media stream acquisition request, the lower-level domain platform instructs the front-end acquisition device to send the media stream to the user terminal. At the same time, the lower-level domain platform can obtain the parameter information of the media stream to be sent at this time, where the parameter information includes the source address, source port number, destination address, destination port number, and transport layer protocol; for example, the source address may be the IP address of the front-end acquisition device, the destination address may be the IP address of the user terminal, the source port may be an unused port of the front-end acquisition device, and the destination port is a certain port of the user terminal. It should be noted here that if the media stream collected by the front-end acquisition device needs to be forwarded by a streaming media server, the source port number and source address can be determined according to the streaming media server.

[0035] In the embodiments of the present application, in order to ensure the security of the media stream, when the front-end acquisition device encodes the collected data, the media stream is encrypted by a preset encryption algorithm. Therefore, in order to ensure normal decryption in the future, the lower-level domain platform also needs to obtain the decoding key corresponding to the front-end acquisition device, for example, from a key server. At the same time, the lower-level domain platform also obtains watermark information, where the watermark information at least includes the front-end acquisition device address, the upper-level domain platform address, and the user terminal address. It should be noted here that the watermark information may also be other information that can uniquely identify the front-end acquisition device, the upper-level domain platform, and the user terminal, so that in the event of a video leakage incident in the future, the responsible party of the leaked video content can be traced according to the watermark information in the video.

[0036] Further, when the lower-level domain platform obtains the decoding public key, watermark information, and parameter information of the media stream of the front-end acquisition device, it can send the decoding public key, watermark information, and parameter information of the media stream to the video watermark gateway server, so that the video watermark gateway server can perform the operations of S102 - S104 according to the received information.

[0037] S102. Obtain the media stream that matches the parameter information, and extract the initial message from the media stream.

[0038] In the embodiment of the present application, since the video watermark gateway server is set, the media stream collected by the front-end acquisition device needs to be sent to the user terminal through the video watermark gateway server. When the video watermark gateway server obtains the media stream, it first determines whether the media stream is the media stream requested by the user terminal. Optionally, compare the parameter information obtained through S101 with the parameter information carried by the media stream. If they are the same, it is determined that the media stream is the one requested by the user terminal.

[0039] Further, after obtaining the media stream that matches the parameter information, the video watermark gateway server can obtain the initial message of the media stream according to the format of the media stream. In an optional implementation manner, the media stream is an RTP-format media stream; correspondingly, extracting the initial message from the media stream includes: using the information included in the RTP header of the media stream as the initial message.

[0040] Exemplarily, see Figure 1b , which shows the effect diagram of the initial message. Among them, at the top of the initial message is the parameter information of the media stream (i.e., Figure 1b the content in the box numbered 1b_1 in

[0041] ). For example, Internet Protocol Version4 (IPV4, transport layer protocol), Src: 21.51.2.39 represents the source address, Dst: 21.60.1.68 represents the destination address, SrcPort: 10446 represents the source port number, and Dst Port: 22052 represents the destination port number. Figure 1b the content in the box numbered 1b_2 in

[0042] S103. Add the decoding public key and watermark information to the initial message to obtain the target message.

[0043] In the embodiments of the present application, in order to reduce the performance consumption of the video watermark gateway server and improve the efficiency of media stream transmission, the video watermark gateway server does not perform operations such as decoding, adding watermarks, and encoding on the media stream. Instead, the user terminal synchronously performs the operation of adding watermarks during the decoding process. Since the media stream sent by the front-end acquisition device is pre-encrypted, in order to ensure that the user terminal can normally decode and synchronously add watermarks, the decoding public key and watermark information need to be sent to the user terminal.

[0044] In an alternative embodiment, the decoding public key and watermark information are added to the initial message to obtain a target message, so as to send the decoding public key and watermark information to the user terminal in the form of a message. Specifically, the payload of the initial message is replaced with the decoding public key and watermark information, and the payload type of the initial message is modified to obtain the target message. It should be noted here that since the payload of the initial message is replaced with the decoding public key and watermark information, in the target message, the video watermark information is bound to the decoding key. When the end user decodes, the watermark information and the decoding key must be available, thereby ensuring that the user terminal adds watermarks synchronously while decoding.

[0045] Exemplarily, refer to Figure 1c , which shows a schematic diagram of the target message. Compared with the initial message of Figure 1b , the value of Payload type (payload type) in the target message is modified from 96 to a pre-agreed 100, which can be seen in the box numbered 1c_1 in Figure 1c . It should be noted here that it can also be modified to other values, which are not specifically limited here; the content of Payload (payload) is replaced with the decoding public key and watermark information. For example, refer to the box numbered 1c_2 in Figure 1c , and the payload is replaced with: public key: 123456; WaterPrint: IPC123(192.168.1.1)VM123(10.1.1.1)User123(172.1.1.1).

[0046] S104. Send the target message and the media stream to the user terminal, so that the user terminal decodes the media stream according to the decoding public key and adds the watermark information to the decoded image data.

[0047] In the embodiment of the present application, after obtaining the target message through S103, the video watermark gateway server sends the target message and the media stream to the user terminal, so that after obtaining the target message, if the user terminal determines that the value of Payload type (payload type) is a preset value of 100, it further obtains the content of the Payload (payload) in the target message, and then decodes the media stream according to the decoding public key therein, and adds the watermark information to the decoded image data. In an alternative embodiment, a private decoding control can be pre-installed on the user terminal, and the media stream is decoded through the decoding control in combination with the decoding key, and the watermark is added at the same time.

[0048] In the embodiment of the present application, the video watermark gateway server does not need to decode, add watermark and encode the media stream, but only needs to generate a new message. Subsequently, the user terminal synchronously completes the operation of adding watermark during the process of decoding the media stream, thereby reducing the performance consumption of the video watermark gateway server and improving the media stream transmission efficiency at the same time.

[0049] Figure 2 It is a logic flowchart of the video watermark adding method according to the second embodiment of the present application. This embodiment is optimized on the basis of the above embodiment. Refer to Figure 2 , the method logic includes:

[0050] In the first step, install a client on the user terminal, and request the media stream from the superior domain platform through the client. For example, send a media stream request instruction to the superior domain platform. Since there are multiple front-end acquisition devices mounted on the subordinate domain platform, the request instruction includes at least the identifier of the front-end acquisition device, so that the subordinate domain platform can notify the corresponding front-end acquisition device to send the media stream according to the identifier of the front-end acquisition device subsequently.

[0051] In the second step, the superior domain platform requests the media stream from the subordinate domain platform. Optionally, the superior domain platform sends the media stream acquisition request to the subordinate domain platform in the national standard (GB28181) message format.

[0052] In the third step, the subordinate domain platform notifies the front-end acquisition device (such as IPC) to send the media stream, and at the same time, the subordinate domain platform obtains the five-tuple information such as the source IP, destination IP, and port number of the media stream to be sent.

[0053] In the fourth step, after the subordinate domain platform receives the request reply feedback from the front-end acquisition device, the subordinate domain platform sends the decoding public key of the front-end acquisition device, the corresponding watermark information (such as the IP of the superior domain platform, the IP information of the front-end acquisition device, the user information of the superior domain platform), and the media stream five-tuple information to the watermark gateway (that is, the video watermark gateway server), where the decoding public key is optionally obtained from the key server.

[0054] Step 5: The front-end acquisition device sends an encrypted media stream. The encrypted media stream can be distributed to the watermark gateway through the media stream management server. The watermark gateway matches the media stream through the five-tuple information, and obtains the information in the RTP header of the media stream, including the Sequence number, timestamp, and SSRC, etc., and uses it as the initial packet.

[0055] Step 6: For the initial packet, modify the payload type to a pre-agreed value, such as 100, modify the payload content to the decoding public key and watermark information, keep other content unchanged, use the modified packet as the target packet, and send the target packet and the media stream to the user terminal, such as sending it to the client on the user terminal.

[0056] Step 7: After the client receives the target packet, analyze that the payload type is the pre-agreed value 100, analyze the content in the payload, and when it is determined that there is the content of the decoding public key "public key" and the watermark "warter print", through the private decoding control, combine the decoding public key and the watermark information to add the watermark information to the decoded image data synchronously when decoding the media stream.

[0057] In the embodiment of the present application, the video watermark gateway server does not need to perform additional decoding, watermark adding, and encoding operations, and only needs to generate a new packet, which reduces the performance consumption, and there is no need for additional encoding and decoding, saves the transmission time, and improves the efficiency of media stream transmission.

[0058] Figure 3 It is a schematic structural diagram of a video watermark adding device according to the third embodiment of the present application. This embodiment is applicable to the situation of adding watermarks to the media stream transmitted by the monitoring system. The device is configured in the video watermark gateway server in the monitoring system. The monitoring system at least includes a superior domain platform and an inferior domain platform. The superior domain platform is connected to the user terminal, and the inferior domain platform is mounted with a front-end acquisition device. Refer to Figure 3 and the device includes:

[0059] A data acquisition module 301, configured to obtain the decoding public key, watermark information, and parameter information of the front-end acquisition device sent by the inferior domain platform when the user terminal requests a media stream from the front-end acquisition device;

[0060] An initial packet extraction module 302, configured to obtain a media stream that matches the parameter information, and extract an initial packet from the media stream;

[0061] A target packet generation module 303, configured to add the decoding public key and watermark information to the initial packet to obtain a target packet;

[0062] The data sending module 304 is configured to send the target message and the media stream to the user terminal, so that the user terminal decodes the media stream according to the decoding public key and adds the watermark information to the decoded image data.

[0063] Based on the above embodiments, optionally, the media stream is an RTP-format media stream;

[0064] Correspondingly, the initial message extraction module includes:

[0065] The initial message extraction unit is configured to use the information included in the RTP header of the media stream as the initial message.

[0066] Based on the above embodiments, optionally, the target message generation module is specifically configured to:

[0067] Replace the payload of the initial message with the decoding public key and the watermark information, and modify the payload type of the initial message to obtain the target message.

[0068] Based on the above embodiments, optionally, the watermark information at least includes the front-end acquisition device address, the upper-level domain platform address, and the user terminal address.

[0069] Based on the above embodiments, optionally, the process of the user terminal requesting the media stream from the front-end acquisition device includes:

[0070] The user terminal sends a media stream acquisition request with the front-end acquisition device identifier to the upper-level domain platform;

[0071] The upper-level domain platform requests the media stream from the lower-level domain platform according to the media stream acquisition request;

[0072] The lower-level domain platform instructs the front-end acquisition device to send the media stream to the user terminal and obtains the parameter information, decoding key, and watermark information of the media stream; wherein, the parameter information includes the source address, source port number, destination address, destination port number, and transport layer protocol.

[0073] The video watermark adding device provided by the embodiments of the present application can execute the video watermark adding method provided by any embodiment of the present application, and has the corresponding functional modules and beneficial effects for executing the method.

[0074] Figure 4 It is a schematic structural diagram of an electronic device provided in the fourth embodiment of the present application. As Figure 4 shown in the structure, the electronic device provided by the embodiments of the present application includes: one or more processors 402 and a memory 401; the processor 402 in the electronic device can be one or more, Figure 4Taking a processor 402 as an example; the memory 401 is used to store one or more programs; the one or more programs are executed by the one or more processors 402, so that the one or more processors 402 implement the video watermark addition method according to any one of the embodiments of the present application.

[0075] The electronic device may further include: an input device 403 and an output device 404.

[0076] The processor 402, the memory 401, the input device 403, and the output device 404 in the electronic device may be connected by a bus or other means. Figure 4 Taking the connection by a bus as an example.

[0077] The storage device 401 in the electronic device, as a computer-readable storage medium, can be used to store one or more programs. The programs can be software programs, computer-executable programs, and modules, such as the program instructions / modules corresponding to the application control method provided in the embodiments of the present application. The processor 402 executes various functional applications and data processing of the electronic device by running the software programs, instructions, and modules stored in the storage device 401, that is, implements the video watermark addition method in the above method embodiments.

[0078] The storage device 401 may include a storage program area and a storage data area. Among them, the storage program area can store an operating system and application programs required for at least one function; the storage data area can store data created according to the use of the electronic device, etc. In addition, the memory 401 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices. In some instances, the memory 401 may further include a memory remotely set relative to the processor 402, and these remote memories can be connected to the device through a network. Examples of the above network include but are not limited to the Internet, an enterprise intranet, a local area network, a mobile communication network, and combinations thereof.

[0079] The input device 403 can be used to receive input digital or character information, and generate key signal inputs related to the user settings and function controls of the electronic device. The output device 404 may include a display device such as a display screen.

[0080] And when one or more programs included in the above electronic device are executed by the one or more processors 402, the programs perform the following operations:

[0081] When the user terminal requests a media stream from the front-end acquisition device, obtain the decoding public key, watermark information, and parameter information of the media stream sent by the lower-level domain platform.

[0082] Obtain a media stream that matches the parameter information, and extract an initial message from the media stream;

[0083] Add the decoding public key and the watermark information to the initial message to obtain a target message;

[0084] Send the target message and the media stream to the user terminal, so that the user terminal decodes the media stream according to the decoding public key, and adds the watermark information to the decoded image data.

[0085] Of course, those skilled in the art can understand that when one or more programs included in the above electronic device are executed by one or more processors 402, the programs can also perform related operations in the application control method provided in any embodiment of the present application.

[0086] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, it is used to execute a video watermark addition method, and the method includes:

[0087] When the user terminal requests a media stream from the front-end acquisition device, obtain the decoding public key, watermark information, and parameter information of the front-end acquisition device sent by the lower-level domain platform;

[0088] Obtain a media stream that matches the parameter information, and extract an initial message from the media stream;

[0089] Add the decoding public key and the watermark information to the initial message to obtain a target message;

[0090] Send the target message and the media stream to the user terminal, so that the user terminal decodes the media stream according to the decoding public key, and adds the watermark information to the decoded image data.

[0091] Optionally, when the program is executed by the processor, it can also be used to execute the method provided in any embodiment of the present application.

[0092] The computer storage medium of the embodiments of the present application may adopt any combination of one or more computer-readable media. The computer-readable media may be computer-readable signal media or computer-readable storage media. The computer-readable storage media may be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or components, or any combination of the above. More specific examples (non-exhaustive list) of the computer-readable storage media include: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), flash memory, optical fibers, portable CD-ROMs, optical storage devices, magnetic storage devices, or any suitable combination of the above. The computer-readable storage media may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component.

[0093] The computer-readable signal media may include data signals propagated in a baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take various forms, including but not limited to: electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal media may also be any computer-readable media other than the computer-readable storage media, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, device, or component.

[0094] The program code contained on the computer-readable media may be transmitted by any suitable medium, including but not limited to: wireless, wire, optical cable, radio frequency (RF), etc., or any suitable combination of the above.

[0095] Computer program code for performing the operations of this application can be written in one or more programming languages or combinations thereof. The programming languages include object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages (such as the "C" language or similar programming languages). The program code can be executed entirely on the user's computer, partially on the user's computer, executed as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network (such as including a local area network (LAN) or a wide area network (WAN)), or, can be connected to an external computer (such as by using an Internet service provider to connect through the Internet).

[0096] Note that the above is only a preferred embodiment of this application and the technical principles applied. Those skilled in the art will understand that this application is not limited to the specific embodiments described here. Various obvious changes, re-adjustments, and substitutions can be made by those skilled in the art without departing from the protection scope of this application. Therefore, although this application has been described in more detail through the above embodiments, this application is not limited to the above embodiments. Without departing from the concept of this application, more other equivalent embodiments can be included, and the scope of this application is determined by the scope of the appended claims.

Claims

1. A method for adding video watermark, characterized in that, A video watermark gateway server applied to a monitoring system, the monitoring system at least includes a superior domain platform and an inferior domain platform, the superior domain platform is connected to a user terminal, and the inferior domain platform is mounted with a front-end acquisition device. The method includes: When the user terminal requests a media stream from the front-end acquisition device, obtain the decoding public key, watermark information, and parameter information of the media stream sent by the inferior domain platform; the watermark information is used to uniquely identify the information of the front-end acquisition device, the superior domain platform, and the user terminal; Obtain a media stream that matches the parameter information, and extract an initial message from the media stream; Add the decoding public key and the watermark information to the initial message to obtain a target message; Send the target message and the media stream to the user terminal so that the user terminal decodes the media stream according to the decoding public key and adds the watermark information to the decoded image data.

2. The method according to claim 1, wherein The media stream is a media stream in RTP format; Correspondingly, extracting an initial message from the media stream includes: Using the information included in the RTP header of the media stream as the initial message.

3. The method according to claim 2, wherein Adding the decoding public key and the watermark information to the initial message to obtain a target message includes: Replacing the payload of the initial message with the decoding public key and the watermark information, and modifying the payload type of the initial message to obtain a target message.

4. The method according to claim 1, wherein The watermark information at least includes the address of the front-end acquisition device, the address of the superior domain platform, and the address of the user terminal.

5. The method according to claim 1, wherein The process by which the user terminal requests a media stream from the front-end acquisition device includes: The user terminal sends a media stream acquisition request with the front-end acquisition device identifier to the superior domain platform; The superior domain platform requests a media stream from the inferior domain platform according to the media stream acquisition request; The inferior domain platform instructs the front-end acquisition device to send a media stream to the user terminal, and obtains the parameter information, decoding key, and watermark information of the media stream; wherein, the parameter information includes the source address, source port number, destination address, destination port number, and transport layer protocol.

6. An apparatus for adding video watermark, characterized in that, A video watermark gateway server configured in a monitoring system, the monitoring system at least includes a superior domain platform and an inferior domain platform, the superior domain platform is connected to a user terminal, and the inferior domain platform is mounted with a front-end acquisition device. The device includes: A data acquisition module, configured to obtain the decoding public key, watermark information, and parameter information of the media stream sent by the inferior domain platform when the user terminal requests a media stream from the front-end acquisition device; the watermark information is used to uniquely identify the information of the front-end acquisition device, the superior domain platform, and the user terminal; An initial message extraction module, configured to obtain a media stream that matches the parameter information, and extract an initial message from the media stream; A target message generation module, configured to add the decoding public key and the watermark information to the initial message to obtain a target message; A data sending module, configured to send the target message and the media stream to the user terminal, so that the user terminal decodes the media stream according to the decoding public key and adds the watermark information to the decoded image data.

7. The device according to claim 6, characterized in that, The media stream is a media stream in RTP format; Correspondingly, the initial message extraction module includes: An initial message extraction unit, configured to use the information included in the RTP header of the media stream as the initial message.

8. The device according to claim 7, characterized in that, The target message generation module is specifically configured to: Replace the payload of the initial message with the decoding public key and the watermark information, and modify the payload type of the initial message to obtain the target message.

9. An electronic device, characterized in that, Including: One or more processors; A storage device, configured to store one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method for adding video watermark as described in any one of claims 1-5.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method for adding video watermark as described in any one of claims 1-5.

Citation Information

Patent Citations

  • A method and a system for superposing watermarks on monitoring videos

    CN109743641A

  • System, service provider device, service user device and method for providing image of IP camera and computer program

    KR101575222B1