CN113542766A - Video encoding method, video encoding device, electronic equipment and computer readable medium - Google Patents

Video encoding method, video encoding device, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN113542766A
CN113542766A CN202110721495.7A CN202110721495A CN113542766A CN 113542766 A CN113542766 A CN 113542766A CN 202110721495 A CN202110721495 A CN 202110721495A CN 113542766 A CN113542766 A CN 113542766A
Authority
CN
China
Prior art keywords
information
video image
tracing
original video
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110721495.7A
Other languages
Chinese (zh)
Other versions
CN113542766B (en
Inventor
郑震宇
韩峻
林赤军
黄强雄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yibin Zhongxing Technology Intelligent System Co ltd
Original Assignee
Yibin Zhongxing Technology Intelligent System 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 Yibin Zhongxing Technology Intelligent System Co ltd filed Critical Yibin Zhongxing Technology Intelligent System Co ltd
Priority to CN202110721495.7A priority Critical patent/CN113542766B/en
Publication of CN113542766A publication Critical patent/CN113542766A/en
Application granted granted Critical
Publication of CN113542766B publication Critical patent/CN113542766B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/46Embedding additional information in the video signal during the compression process
    • H04N19/467Embedding additional information in the video signal during the compression process characterised by the embedded information being invisible, e.g. watermarking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/30Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using hierarchical techniques, e.g. scalability

Abstract

The embodiment of the disclosure discloses a video coding method, a video coding device, an electronic device and a computer readable medium. One embodiment of the method comprises: receiving an original video image acquired by a camera in real time; according to a preset coding method, the tracing information is overlapped with an original video image to generate an overlapped video image, wherein the overlapping position of the tracing information in the overlapped video image is dynamically changed; encrypting the elimination information to generate key information, wherein the elimination information is used for eliminating the tracing information in the superposed video image; and carrying the key information in the extension information of the superposed video image to obtain the encrypted video image. In this embodiment, when the camera performs video image encoding, the traceable information is mixed into the normal image and encoded. And the overlapping position of the tracing information in the normal image is constantly changed. Therefore, the video watermarking method with more effective protection measures and wider application range is realized.

Description

Video encoding method, video encoding device, electronic equipment and computer readable medium
Technical Field
Embodiments of the present disclosure relate to the field of computer technologies, and in particular, to a video encoding method, an apparatus, an electronic device, and a computer-readable medium.
Background
The image watermarking technology is to embed some identification information directly into the image digital carrier, and the image can be identified and recognized by a producer in the transmission process by modifying the representation method highlighted by a specific area. The image watermarking is an effective method for protecting the information security of the image and realizing anti-counterfeiting tracing and copyright protection.
At present, in the field of video monitoring, the content of a video monitoring image is easily copied through mobile phone copying, and the monitored content is diffused. The source can be traced from the leaked content by superimposing the content of authorized user information on the image. The existing watermarking method mainly comprises the following steps: one is to perform the overlay at the display terminal. Usually, the superposition of the tracing information is performed on the terminal software. The position of the superposition is set by the terminal software. The method can not support the forced superposition of the tracing information of various terminal devices which are intercommunicated according to the standard protocol. The other is static retrospective information overlay. This way can be cut out by post-processing editing, making the source of the video image untraceable. In addition, the data size of video surveillance is usually very large, and overlaying information by means of image re-encoding may require huge processing resources.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter. Some embodiments of the present disclosure propose methods, apparatuses, electronic devices and computer readable media for analyzing power system security to address one or more of the technical problems mentioned in the background section above.
In a first aspect, some embodiments of the present disclosure provide a video encoding method, including: receiving an original video image acquired by a camera in real time; according to a preset coding method, the tracing information is overlapped with an original video image to generate an overlapped video image, wherein the overlapping position of the tracing information in the overlapped video image is dynamically changed; encrypting the elimination information to generate key information, wherein the elimination information is used for eliminating the tracing information in the superposed video image; and carrying the key information in the extension information of the superposed video image to obtain the encrypted video image.
In some embodiments, the superimposing the tracing information with the original video image according to a preset encoding method includes: determining the superposition position information at a preset moment according to preset initial position information and the moving speeds of an X axis and a Y axis; and at a preset moment, superimposing the tracing information into the original video image according to the position indicated by the determined superimposition position information.
In some embodiments, the superimposing the tracing information with the original video image according to a preset encoding method includes: and superimposing the tracing information to the original video image at intervals of a preset frame number according to the position indicated by the superimposition position information in the preset superimposition position information table.
In some embodiments, the cancellation information includes the tracing back information and the dynamic change information of the superposition position of the tracing back information; and the tracing information comprises an Internet Protocol (IP) address.
In some embodiments, the method further comprises: in response to the obtained encrypted video image, decrypting the key information to obtain elimination information; and eliminating the tracing information in the superposed video image according to the elimination information to obtain the original video image.
In some embodiments, overlaying the traceability information with the original video image comprises: a new enhancement layer is created in the original video image and the traceability information is superimposed in the new enhancement layer.
In some embodiments, the method further comprises: and displaying the decrypted encrypted video image, wherein the original video image and the tracing information in the superposed video image have different display definition.
In a second aspect, some embodiments of the present disclosure provide a video encoding apparatus, including: the receiving unit is configured to receive an original video image acquired by the camera in real time; the superposition unit is configured to superpose the tracing information with the original video image according to a preset coding method to generate a superposed video image, wherein the superposition position of the tracing information in the superposed video image is dynamically changed; an encryption unit configured to encrypt erasure information for eliminating the trace back information in the superimposed video image, and generate key information; and the generating unit is configured to carry the key information in the extension information of the superposed video image to obtain an encrypted video image.
In some embodiments, the superimposing unit is further configured to: determining the superposition position information at a preset moment according to preset initial position information and the moving speeds of an X axis and a Y axis; and at a preset moment, superimposing the tracing information into the original video image according to the position indicated by the determined superimposition position information.
In some embodiments, the superimposing unit is further configured to: and superimposing the tracing information to the original video image at intervals of a preset frame number according to the position indicated by the superimposition position information in the preset superimposition position information table.
In some embodiments, the cancellation information includes the tracing back information and the dynamic change information of the superposition position of the tracing back information; and the tracing information comprises an Internet Protocol (IP) address.
In some embodiments, the apparatus further comprises: a decryption unit configured to decrypt the key information to obtain the elimination information in response to the acquisition of the encrypted video image; and the restoring unit is configured to eliminate the tracing information in the superposed video image according to the elimination information to obtain the original video image.
In some embodiments, the superimposing unit is further configured to: a new enhancement layer is created in the original video image and the traceability information is superimposed in the new enhancement layer.
In some embodiments, the apparatus further comprises: and the display unit is configured to display the decrypted encrypted video image, wherein the original video image and the tracing information in the superposed video image have different display definition.
In a third aspect, some embodiments of the present disclosure provide an electronic device, comprising: the camera is used for collecting images; one or more processors; a storage device having one or more programs stored thereon, which when executed by one or more processors, cause the one or more processors to implement the method described in any of the implementations of the first aspect.
In a fourth aspect, some embodiments of the disclosure provide a computer readable medium on which a computer program is stored, wherein the program, when executed by a processor, implements the method described in any of the implementations of the first aspect.
The above embodiments of the present disclosure have the following advantages: according to the video coding method of some embodiments of the disclosure, when the camera codes an original video image, the tracing information is superimposed on the image, so that the recoding of a later image is avoided. Therefore, the processing efficiency of the video can be improved, and the occupied resources can be reduced. Meanwhile, the video coding method can realize the dynamic change of the superposition position of the tracing information, thereby reducing or avoiding the situation that the tracing information is edited and cut by post-processing. And the method can be applied to various servers or terminal equipment under the scene of cross-level and cross-domain interconnection. That is, the embodiments of the present disclosure provide a video encoding (i.e., video watermarking) method with more effective protection measures and wider applicability.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and elements are not necessarily drawn to scale.
FIG. 1 is an architectural diagram of an exemplary system in which some embodiments of the present disclosure may be applied;
fig. 2 is a flow diagram of some embodiments of a video encoding method according to the present disclosure;
fig. 3 is a schematic structural diagram of some embodiments of a video encoding apparatus according to the present disclosure;
FIG. 4 is a schematic block diagram of an electronic device suitable for use in implementing some embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings. The embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 illustrates an exemplary system architecture 100 of a video encoding method or apparatus to which some embodiments of the present disclosure may be applied.
As shown in fig. 1, the system architecture 100 may include a camera 101, a terminal device 102, a network 103, and a server 104. Network 103 may be a medium used to provide communication links between cameras 101, terminal devices 102, and server 104. Network 103 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The camera 101 may be various devices capable of capturing images. Such as a bolt face, a dome camera, an all-in-one camera, an infrared day and night camera, a high speed dome camera, a web camera, etc. The camera 101 may be provided independently or in the terminal apparatus 102.
A user may use terminal device 102 to interact with server 104 over network 103 to receive or send messages and the like. Various client applications, such as a video playing application, a web browser, an instant messenger, and the like, may be installed on the terminal device 102.
Here, the terminal device 102 may be hardware or software. When the terminal device 102 is hardware, it may be various electronic devices with a display screen, including but not limited to smart phones, tablet computers, e-book readers, laptop portable computers, desktop computers, and the like. When the terminal device 102 is software, it can be installed in the electronic devices listed above. It may be implemented, for example, as multiple software or software modules to provide distributed services, or as a single software or software module. And is not particularly limited herein.
The server 104 may be a server that provides various services, for example, may be a background server that provides support for applications installed by the terminal device 102. When receiving the video encryption instruction, the background server may perform encoding processing on the original video image acquired by the camera 101 in real time, and may feed back a processing result (such as an encrypted video image) to the terminal device 102.
Here, the server 104 may be hardware or software. When the server 104 is hardware, it may be implemented as a distributed server cluster composed of multiple servers, or may be implemented as a single server. When the server 104 is software, it may be implemented as multiple pieces of software or software modules, for example, to provide distributed services, or as a single piece of software or software module. And is not particularly limited herein.
It should be noted that the video encoding method provided by the embodiment of the present disclosure may be executed by the terminal device 102, and may also be executed by the server 104. Accordingly, the video encoding apparatus may be provided in the terminal device 102, or may be provided in the server 104. And is not particularly limited herein.
It should be understood that the number of cameras, terminal devices, networks, and servers in fig. 1 are merely illustrative. There may be any number of cameras, terminal devices, networks, and servers, as desired.
With continued reference to fig. 2, a flow 200 of some embodiments of a video encoding method according to the present disclosure is shown. The method comprises the following steps:
step 201, receiving an original video image acquired by a camera in real time.
In some embodiments, the executing entity of the video encoding method (e.g., the server 104 shown in fig. 1) may receive the raw video image captured by the camera (e.g., the camera 101 shown in fig. 1) in real time through a wired connection or a wireless connection. It is to be understood that the format of the video image captured by the camera is not limited herein as long as the subject reading and encoding can be performed.
And step 202, overlapping the tracing information and the original video image according to a preset encoding method to generate an overlapped video image.
In some embodiments, the execution subject may superimpose the trace-back information with the original video image according to a preset encoding method, thereby generating a superimposed video image. And the superposition position of the tracing information in the superposed video image is dynamically changed. The traceability information can be information for characterizing the source of the video image. For example, the mobile phone number, the account name, etc. And may be, for example, an IP (Internet Protocol) address of a camera or an execution subject.
Alternatively, first, the execution body may determine the superimposition position information at a preset timing according to preset initial position information and movement speeds of the X-axis and the Y-axis. And then, at a preset moment, superimposing the tracing information into the original video image according to the position indicated by the determined superimposition position information. For example, the initial position is the origin (0, 0), the X-axis movement speed is 10 pixels per second, and the Y-axis movement speed is 20 pixels per second. Thus, if the interval duration is 2 seconds, the superimposition position at the 2 nd second is (20, 40). At this time, the execution subject may superimpose the above-described trace back information at a (20, 40) position in the original video image.
In some application scenarios, the execution main body may further superimpose the trace-back information onto the original video image every preset number of frames according to a position indicated by the superimposition position information in the preset superimposition position information table. The storage location of the superimposition position information table and the preset frame number are also not limited. For example, the superimposition position is changed every 3 frames. At this time, the execution body may determine the superimposition position at each time in the order of arrangement of the superimposition position information in the superimposition position information table, thereby superimposing the trace-back information into the original video image. That is, the execution body may change the superimposition position of the trace back information in the original video image every certain frame.
It will be appreciated that the encoding algorithm and the format of the generated video image may be set according to actual requirements. In addition, the original video image can be always superimposed with the tracing information from beginning to end. And the superposition position of the tracing information is changed at a preset time or frame number. That is, the generated overlay video image has the traceability information all the time. Alternatively, the trace back information may be superimposed on the original video image only at a fixed time (e.g., a predetermined time or a predetermined number of frames). And the position of each superposition is different. That is, the generated superimposed video image may contain the trace-back information and may be only the original video image.
It should be noted that the specific superposition algorithm may be set according to actual situations. For example, an original video image can be divided into a base layer (background image) and an enhancement layer (non-background image). Then, the image data belonging to the enhancement layer (or the base layer) in the original video image is subjected to exclusive or operation with the trace back information data. Optionally, the execution body may also create a new enhancement layer in the original video image. And then superimpose the trace back information in the new enhancement layer.
Step 203, encrypt the erasure information to generate key information.
In some embodiments, the execution body may also encrypt the cancellation information to generate key information. The encryption is not limited herein. The removal information may be information for removing the trace back information in the superimposed video image. As an example, the elimination information may include the trace back information and the superimposition position dynamic change information of the trace back information. The dynamic change information of the overlay position may include (but is not limited to) initial position information, moving speed, duration interval or frame number interval, etc. As another example, a cancellation algorithm (e.g., a superposition algorithm) may also be included in the cancellation information.
And step 204, carrying the key information in the extension information of the superposed video image to obtain an encrypted video image.
In some embodiments, based on the overlay video image generated in step 202 and the key information generated in step 203, the execution principal may carry the key information in the extension information of the overlay video image, thereby obtaining an encrypted video image. That is, according to the national standards GB/T25724 and GB35114, the erasure information is carried in an encrypted manner in the extension information of video coding. GB/T25724 'technical requirement for public safety video monitoring digital video and audio coding and decoding' provides a general standard for carrying extended information, and the general standard can be used for carrying secret key information. GB35114 "information security technical requirement for public safety video monitoring networking" proposes a standard for signing and encrypting videos.
According to the method provided by some embodiments of the disclosure, when the camera performs the encoding of the original video image, the tracing information is superimposed on the image, so that the re-encoding of the later image is avoided. Therefore, the processing efficiency of the video can be improved, and the occupied resources can be reduced. Meanwhile, the video coding method can realize the dynamic change of the superposition position of the tracing information, thereby reducing or avoiding the situation that the tracing information is edited and cut by post-processing. And the method can be applied to various servers or terminal equipment under the scene of cross-level and cross-domain interconnection. That is, the embodiments of the present disclosure provide a video encoding (i.e., video watermarking) method with more effective protection measures and wider applicability.
It can be understood that unauthorized users or various interconnected devices can only obtain the video image with the tracing information superimposed thereon, i.e. the superimposed video image in the encrypted video image. If the authorized user needs to obtain the original information which is not interfered by the superposition tracing information, the original video image can be recovered by using the key information in the extended information.
Specifically, in response to acquiring the encrypted video image, the key information is first decrypted to obtain the erasure information. And then, according to the elimination information, eliminating the tracing information in the superposed video image to obtain the original video image. For example, an authorized user may decrypt the key information in the extension information by using the decryption key to obtain the erasure information. And then, according to the elimination algorithm (such as an exclusive-or algorithm) in the elimination information, carrying out exclusive-or operation on the superposed video image and the tracing information, thereby obtaining the original video image. Alternatively, in order to improve the processing efficiency of the video image, the superimposition position of the trace-back information may be determined according to the superimposition position dynamic change information in the removal information. And then, carrying out elimination operation on the local video image which is superposed with the tracing information in the superposed video image to obtain the original video image.
In some application scenarios, such as the case where video encryption is not required, the key carried in the video may also be used to control the final displayed effect (e.g., different sharpness). For example, the executing entity may display the decrypted encrypted video image. Or the execution main body sends the decrypted encrypted video image to the terminal equipment for displaying. The decrypted encrypted video image is an encrypted video image obtained by decrypting the key information, that is, the erasure information and the superimposed video image. Since the trace-back information is superimposed in the newly created enhancement layer, the enhancement layer can be controlled using the superimposition position dynamic change information in the erasure information. Therefore, the original video image and the tracing information in the superposed video image have different display definition. Therefore, the display definition of the tracing information can be reduced, the display definition of the original video image can be improved, and the display effect can be improved on occasions where video encryption is not needed or authorized users are obtained.
It should be noted that although the GB/T25724 defines different definition hierarchical levels, the display behavior of the terminal device cannot be controlled. I.e. the sharpness of the display cannot be controlled. The video decoding method disclosed in this embodiment can further implement the differential level display of aliasing information (original video image and trace back information), that is, the differential display of the definition of video content, by adding an enhancement layer specially controlled by a key.
With further reference to fig. 3, as an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a video encoding apparatus, which correspond to those shown in fig. 2, and which may be applied in various electronic devices in particular.
As shown in fig. 3, a video encoding apparatus 300 of some embodiments includes: a receiving unit 301 configured to receive an original video image acquired by a camera in real time; the superposition unit 302 is configured to superpose the tracing information with the original video image according to a preset coding method to generate a superposed video image, wherein the superposition position of the tracing information in the superposed video image is dynamically changed; an encryption unit 303 configured to encrypt erasure information for erasing the trace back information in the superimposed video image, and generate key information; and a generating unit 304 configured to carry the key information in the extension information of the superimposed video image, resulting in an encrypted video image.
In some embodiments, the superimposing unit 302 may be further configured to: determining the superposition position information at a preset moment according to preset initial position information and the moving speeds of an X axis and a Y axis; and at a preset moment, superimposing the tracing information into the original video image according to the position indicated by the determined superimposition position information.
In some embodiments, the superimposing unit 302 is further configured to: and superimposing the tracing information to the original video image at intervals of a preset frame number according to the position indicated by the superimposition position information in the preset superimposition position information table.
In some embodiments, the cancellation information may include the tracing back information and the dynamic change information of the superposition position of the tracing back information; and the traceability information may comprise an internet protocol, IP, address.
In some embodiments, the apparatus 300 further comprises: a decryption unit (not shown in fig. 3) configured to decrypt the key information to obtain the erasure information in response to obtaining the encrypted video image; and the restoring unit (not shown in the figure 3) is configured to eliminate the tracing information in the superposed video image according to the elimination information to obtain the original video image.
In some embodiments, the superimposing unit 302 is further configured to: a new enhancement layer is created in the original video image and the traceability information is superimposed in the new enhancement layer.
In some embodiments, the apparatus 300 may further include: a display unit (not shown in fig. 3) configured to display the decrypted encrypted video image, wherein an original video image and the trace-back information in the superimposed video image have different display resolutions.
It will be understood that the units described in the apparatus 300 correspond to the various steps in the method described with reference to fig. 2. Thus, the operations, features and resulting advantages described above with respect to the method are also applicable to the apparatus 300 and the units included therein, and are not described herein again.
Referring now to fig. 4, a schematic diagram of an electronic device (e.g., the server of fig. 1) 400 suitable for use in implementing some embodiments of the present disclosure is shown. The electronic device shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 4, electronic device 400 may include a processing device (e.g., central processing unit, graphics processor, etc.) 401 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)402 or a program loaded from a storage device 408 into a Random Access Memory (RAM) 403. In the RAM403, various programs and data necessary for the operation of the electronic apparatus 400 are also stored. The processing device 401, the ROM 402, and the RAM403 are connected to each other via a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
Generally, the following devices may be connected to the I/O interface 405: input devices 406 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 407 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 408 including, for example, tape, hard disk, etc.; and a communication device 409. The communication means 409 may allow the electronic device 400 to communicate wirelessly or by wire with other devices to exchange data. While fig. 4 illustrates an electronic device 400 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided. Each block shown in fig. 4 may represent one device or may represent multiple devices as desired.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In some such embodiments, the computer program may be downloaded and installed from a network through the communication device 409, or from the storage device 408, or from the ROM 402. The computer program, when executed by the processing apparatus 401, performs the above-described functions defined in the methods of some embodiments of the present disclosure.
It should be noted that the computer readable medium described in some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the terminal devices, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving an original video image acquired by a camera in real time; according to a preset coding method, the tracing information is overlapped with an original video image to generate an overlapped video image, wherein the overlapping position of the tracing information in the overlapped video image is dynamically changed; encrypting the elimination information to generate key information, wherein the elimination information is used for eliminating the tracing information in the superposed video image; and carrying the key information in the extension information of the superposed video image to obtain the encrypted video image.
Furthermore, computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. 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.
The units described in some embodiments of the present disclosure may be implemented by software, and may also be implemented by hardware. The described units may also be provided in a processor, and may be described as: a processor includes a receiving unit, a superimposing unit, an encrypting unit, and a generating unit. The names of these units do not in some cases constitute a limitation on the unit itself, and for example, a receiving unit may also be described as a "unit that receives an original video image captured by a camera in real time".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is made without departing from the inventive concept as defined above. For example, the above features and (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure are mutually replaced to form the technical solution.

Claims (10)

1. A video encoding method, comprising:
receiving an original video image acquired by a camera in real time;
according to a preset coding method, the tracing information is overlapped with the original video image to generate an overlapped video image, wherein the overlapping position of the tracing information in the overlapped video image is dynamically changed;
encrypting elimination information to generate key information, wherein the elimination information is used for eliminating the tracing information in the superposed video image;
and carrying the key information in the extension information of the superposed video image to obtain an encrypted video image.
2. The video coding method according to claim 1, wherein the overlaying of the tracing back information with the original video image according to a preset coding method comprises:
determining the superposition position information at a preset moment according to preset initial position information and the moving speeds of an X axis and a Y axis; and
and at the preset moment, according to the position indicated by the determined superposition position information, superposing the tracing information to the original video image.
3. The video coding method according to claim 1, wherein the overlaying of the tracing back information with the original video image according to a preset coding method comprises:
and superimposing the tracing information into the original video image at intervals of a preset frame number according to the position indicated by the superimposition position information in the preset superimposition position information table.
4. The video coding method according to claim 1, wherein the elimination information includes the trace-back information and superimposition position dynamic change information of the trace-back information; and
the tracing information comprises an Internet Protocol (IP) address.
5. The video encoding method of claim 1, wherein the method further comprises:
in response to the encrypted video image being obtained, decrypting the key information to obtain the elimination information;
and eliminating the tracing information in the superposed video image according to the elimination information to obtain the original video image.
6. The video coding method of one of claims 1 to 5, wherein said overlaying the traceback information with the original video image comprises:
creating a new enhancement layer in the original video image, and superimposing the traceability information in the new enhancement layer.
7. The video encoding method of claim 6, wherein the method further comprises:
and displaying the decrypted encrypted video image, wherein the original video image and the tracing information in the superposed video image have different display definition.
8. A video encoding device, comprising:
the receiving unit is configured to receive an original video image acquired by the camera in real time;
the superposition unit is configured to superpose the tracing information with the original video image according to a preset coding method to generate a superposed video image, wherein the superposition position of the tracing information in the superposed video image is dynamically changed;
an encryption unit configured to encrypt erasure information for erasing the trace back information in the superimposed video image, and generate key information;
and the generating unit is configured to carry the key information in the extension information of the superposed video image to obtain an encrypted video image.
9. An electronic device, comprising:
the camera is used for collecting images;
one or more processors;
a storage device having one or more programs stored thereon,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-7.
10. A computer-readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any one of claims 1-7.
CN202110721495.7A 2021-06-28 2021-06-28 Video encoding method, apparatus, electronic device, and computer-readable medium Active CN113542766B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110721495.7A CN113542766B (en) 2021-06-28 2021-06-28 Video encoding method, apparatus, electronic device, and computer-readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110721495.7A CN113542766B (en) 2021-06-28 2021-06-28 Video encoding method, apparatus, electronic device, and computer-readable medium

Publications (2)

Publication Number Publication Date
CN113542766A true CN113542766A (en) 2021-10-22
CN113542766B CN113542766B (en) 2023-10-27

Family

ID=78126146

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110721495.7A Active CN113542766B (en) 2021-06-28 2021-06-28 Video encoding method, apparatus, electronic device, and computer-readable medium

Country Status (1)

Country Link
CN (1) CN113542766B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114564705A (en) * 2022-04-29 2022-05-31 杭州安司源科技有限公司 Traceable anti-shooting method and device and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1617585A (en) * 2004-11-01 2005-05-18 陆健 Mark anti-fake method for compressing video frequency flow
CN103441834A (en) * 2013-08-15 2013-12-11 中山大学深圳研究院 Encryption method suitable for multimedia transmission and service characteristics
CN103997652A (en) * 2014-06-12 2014-08-20 北京奇艺世纪科技有限公司 Video watermark embedding method and device
CN107027055A (en) * 2017-04-28 2017-08-08 安徽四创电子股份有限公司 A kind of video based on digital watermark is traced to the source and encryption method
CN108391078A (en) * 2018-02-26 2018-08-10 苏州科达科技股份有限公司 Determination method, system, equipment and the storage medium of watermark embedded location in video
CN108551582A (en) * 2018-03-19 2018-09-18 上海交通大学 A kind of identity method and system of image, video data
CN108810550A (en) * 2018-08-21 2018-11-13 上海理工大学 A kind of video watermark insertion and extracting method based on inter-layer prediction
CN111277802A (en) * 2020-03-03 2020-06-12 浙江宇视科技有限公司 Video code stream processing method, device, equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1617585A (en) * 2004-11-01 2005-05-18 陆健 Mark anti-fake method for compressing video frequency flow
CN103441834A (en) * 2013-08-15 2013-12-11 中山大学深圳研究院 Encryption method suitable for multimedia transmission and service characteristics
CN103997652A (en) * 2014-06-12 2014-08-20 北京奇艺世纪科技有限公司 Video watermark embedding method and device
CN107027055A (en) * 2017-04-28 2017-08-08 安徽四创电子股份有限公司 A kind of video based on digital watermark is traced to the source and encryption method
CN108391078A (en) * 2018-02-26 2018-08-10 苏州科达科技股份有限公司 Determination method, system, equipment and the storage medium of watermark embedded location in video
CN108551582A (en) * 2018-03-19 2018-09-18 上海交通大学 A kind of identity method and system of image, video data
CN108810550A (en) * 2018-08-21 2018-11-13 上海理工大学 A kind of video watermark insertion and extracting method based on inter-layer prediction
CN111277802A (en) * 2020-03-03 2020-06-12 浙江宇视科技有限公司 Video code stream processing method, device, equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114564705A (en) * 2022-04-29 2022-05-31 杭州安司源科技有限公司 Traceable anti-shooting method and device and storage medium

Also Published As

Publication number Publication date
CN113542766B (en) 2023-10-27

Similar Documents

Publication Publication Date Title
EP2832102B1 (en) Methods and systems for cryptographic access control of video
US10339283B2 (en) System and method for creating, processing, and distributing images that serve as portals enabling communication with persons who have interacted with the images
US10356060B2 (en) Secure communication using physical proximity
CN107277028B (en) Method, device, equipment and storage medium for transmitting chat emoticons among applications
Temmermans et al. JPEG Privacy and Security framework for social networking and GLAM services
CN113542766B (en) Video encoding method, apparatus, electronic device, and computer-readable medium
CN105847869B (en) A kind of encryption playback method and device
CN111669476B (en) Watermark processing method, device, electronic equipment and medium
CN114339447B (en) Method, device and equipment for converting picture into video and storage medium
CN112966303A (en) Data encryption and decryption method and device, electronic equipment and computer storage medium
CN108985109A (en) A kind of date storage method and device
CN111131270B (en) Data encryption and decryption method and device, electronic equipment and storage medium
KR101701625B1 (en) Method and system for reproducing contents by secure acquiring decryption key for encrypted contents
CN114626968A (en) Watermark embedding method, watermark extracting method and device
CN110492998B (en) Method for encrypting and decrypting data
CN103220551A (en) Digital resource encryption and decryption system and method based on image processing
CN113904773A (en) SSL connection establishment method and device, electronic equipment and computer readable storage medium
CN111786955A (en) Method and apparatus for protecting a model
CN115952518B (en) Data request method, device, electronic equipment and storage medium
CN114913050B (en) Watermark embedding method, watermark embedding device, electronic equipment and computer readable medium
CN111738899B (en) Method, apparatus, device and computer readable medium for generating watermark
CN103533457A (en) Multimedia digital watermark embedding and separation methods and multimedia digital watermark embedding and separation devices
US20140344584A1 (en) Systems and methods for controlling access to supplemental content integrated into existing content
Raja et al. Deep Steg Block: Deep Learning-Enhanced Steganography for Secure Communication in IoT Devices Using Blockchain
CN112118466A (en) Copyright protection method, device, system, equipment and medium for multimedia information

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant