CN111836054B - Video anti-piracy method, electronic device and computer readable storage medium - Google Patents

Video anti-piracy method, electronic device and computer readable storage medium Download PDF

Info

Publication number
CN111836054B
CN111836054B CN202010725598.6A CN202010725598A CN111836054B CN 111836054 B CN111836054 B CN 111836054B CN 202010725598 A CN202010725598 A CN 202010725598A CN 111836054 B CN111836054 B CN 111836054B
Authority
CN
China
Prior art keywords
counterfeiting
video
segment
data
segments
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010725598.6A
Other languages
Chinese (zh)
Other versions
CN111836054A (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.)
Shanghai Lianshang Network Technology Co Ltd
Original Assignee
Shanghai Lianshang Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Lianshang Network Technology Co Ltd filed Critical Shanghai Lianshang Network Technology Co Ltd
Priority to CN202010725598.6A priority Critical patent/CN111836054B/en
Publication of CN111836054A publication Critical patent/CN111836054A/en
Application granted granted Critical
Publication of CN111836054B publication Critical patent/CN111836054B/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/32Circuits or arrangements for control or supervision between transmitter and receiver or between image input and image output device, e.g. between a still-image camera and its memory or between a still-image camera and a printer device
    • H04N1/32101Display, printing, storage or transmission of additional information, e.g. ID code, date and time or title
    • H04N1/32144Display, printing, storage or transmission of additional information, e.g. ID code, date and time or title embedded in the image data, i.e. enclosed or integrated in the image, e.g. watermark, super-imposed logo or stamp
    • H04N1/32149Methods relating to embedding, encoding, decoding, detection or retrieval operations
    • H04N1/3232Robust embedding or watermarking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/32Circuits or arrangements for control or supervision between transmitter and receiver or between image input and image output device, e.g. between a still-image camera and its memory or between a still-image camera and a printer device
    • H04N1/32101Display, printing, storage or transmission of additional information, e.g. ID code, date and time or title
    • H04N1/32144Display, printing, storage or transmission of additional information, e.g. ID code, date and time or title embedded in the image data, i.e. enclosed or integrated in the image, e.g. watermark, super-imposed logo or stamp
    • H04N1/32352Controlling detectability or arrangements to facilitate detection or retrieval of the embedded information, e.g. using markers

Abstract

The application provides a video piracy prevention method, an electronic device and a computer readable storage medium. The video anti-counterfeiting mark is generated through video source information based on videos. Then, the anti-counterfeiting mark is split to obtain a plurality of anti-counterfeiting segments, and then the anti-counterfeiting segments are sequentially added into a plurality of video frames of the video, so that a plurality of anti-counterfeiting segments can be subsequently extracted from different video frames of the video and spliced to obtain a complete anti-counterfeiting mark, and the video can be subjected to piracy identification based on the anti-counterfeiting mark, so that the video is effectively prevented from being pirated; in addition, the video anti-counterfeiting mark is divided into a plurality of anti-counterfeiting segments which are respectively added into different videos, so that the situation that the whole video mark is added into one video frame to be cracked can be effectively avoided, the safety of the anti-counterfeiting mark is improved, and the situation that the subsequent playing fluency of the video is influenced due to the fact that the data size of the video mark is large when the whole video mark is added into one video frame can be avoided.

Description

Video anti-piracy method, electronic device and computer readable storage medium
[ technical field ] A method for producing a semiconductor device
The present application relates to video processing technologies, and in particular, to a video anti-piracy method, an electronic device, and a computer-readable storage medium.
[ background ] A method for producing a semiconductor device
At present, with the development of audio and video technology and self-media technology, various video websites and self-media platforms are continuously emerging. Video manufacturers and users can generate massive and diversified videos with rich contents every day, the videos comprise movies, television shows, cartoons, heddles, lives, music and the like, and the videos can be uploaded to various video websites and self-media platforms to be watched by the users.
In the prior art, various videos, especially short videos, have serious piracy, and the copyright of a video producer is damaged.
In the prior art, for the video piracy situation, piracy is usually prevented by watermarking in video frames, and the like. However, in this anti-piracy method, the watermark in the video frame is easily removed, so that the problem of video piracy cannot be fundamentally solved.
[ summary of the invention ]
Aspects of the present application provide a video piracy prevention method, an electronic device, and a computer-readable storage medium for identifying pirated videos.
In one aspect of the present application, a video anti-piracy method is provided, including:
generating an anti-counterfeiting mark of a video based on video source information of the video;
splitting the anti-counterfeiting mark to obtain a plurality of anti-counterfeiting sections;
sequentially adding the plurality of anti-counterfeiting segments to a plurality of video frames of the video.
In another aspect of the present application, there is provided another video piracy prevention method, including:
extracting anti-counterfeiting segments from a plurality of video frames of a video respectively to obtain a plurality of anti-counterfeiting segments;
splicing the extracted anti-counterfeiting segments to obtain anti-counterfeiting marks of the video;
and carrying out piracy identification on the video based on the anti-counterfeiting mark.
In another aspect of the present application, there is provided an electronic device including:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a video piracy prevention method as provided in one aspect above.
In another aspect of the present application, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a video piracy protection method as provided in one aspect above.
According to the technical scheme, in some embodiments of the application, the anti-counterfeiting mark of the video is generated based on video source information of the video, then the anti-counterfeiting mark is split to obtain a plurality of anti-counterfeiting segments, and then the anti-counterfeiting segments are sequentially added into a plurality of video frames of the video. Therefore, a plurality of anti-counterfeiting segments can be extracted from different video frames of the video subsequently and spliced to obtain a complete anti-counterfeiting mark, so that piracy identification can be performed on the video based on the anti-counterfeiting mark, and the video can be effectively prevented from being pirated.
According to the technical scheme, in other embodiments of the application, the anti-counterfeiting segments can be extracted from a plurality of video frames of a video respectively to obtain a plurality of anti-counterfeiting segments, then the extracted anti-counterfeiting segments are spliced to obtain the anti-counterfeiting mark of the video, and then the anti-piracy identification is carried out on the video based on the anti-counterfeiting mark. In this way, pirated videos can be identified based on the anti-counterfeiting mark of each video, so that the videos can be effectively prevented from being pirated.
In addition, by adopting the technical scheme provided by the application, the video anti-counterfeiting mark is divided into a plurality of anti-counterfeiting segments which are respectively added into different videos, so that the situation that the whole video mark is added into one video frame and cracked can be effectively avoided, the safety of the anti-counterfeiting mark is improved, and the video anti-piracy effect is improved.
In addition, by adopting the technical scheme provided by the application, the video anti-counterfeiting mark is divided into the anti-counterfeiting sections which are respectively added into different videos, so that the phenomenon that the smoothness of subsequent video playing is influenced due to the fact that the data volume of the video mark is large when the whole video mark is added into one video frame can be avoided, and the video watching experience of a user is effectively guaranteed.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and those skilled in the art can also obtain other drawings according to the drawings without inventive labor.
Fig. 1 is a schematic flowchart of a video anti-piracy method according to an embodiment of the present application;
fig. 2 is a schematic flow chart illustrating a process of splitting the anti-counterfeit mark to obtain a plurality of anti-counterfeit segments according to an embodiment of the present application;
FIG. 3 is a schematic diagram illustrating a format of a security segment of first security data in an embodiment of the present application;
FIG. 4 is a schematic diagram of a correspondence between video frames and anti-counterfeit segments according to an embodiment of the present application;
FIG. 5 is a schematic flowchart illustrating a process of determining the position of each anti-counterfeit segment in a video frame according to an embodiment of the present application;
FIG. 6 is a block diagram of a video frame according to an embodiment of the present application;
FIG. 7 is a schematic flow chart illustrating a video piracy prevention method according to another embodiment of the present application;
fig. 8 is a schematic flowchart illustrating a process of extracting anti-counterfeit segments from multiple video frames of a video to obtain multiple anti-counterfeit segments according to another embodiment of the present application;
FIG. 9 is a block diagram of an exemplary computer system/server 12 suitable for use in implementing embodiments of the present application.
[ detailed description ] A
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that, the terminal involved in the embodiments of the present application may include, but is not limited to, a mobile phone, a Personal Digital Assistant (PDA), a wireless handheld device, a Tablet Computer (Tablet Computer), a Personal Computer (PC), an MP3 player, an MP4 player, a wearable device (e.g., smart glasses, smart watch, smart bracelet, etc.), and the like.
In addition, the term "and/or" herein is only one kind of association relationship describing an associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
As described in the background art, various videos, especially short videos, have serious piracy, and in the prior art, by means of watermarking in video frames, and the like, since watermarks in video frames are easily removed, the problem of piracy of videos cannot be fundamentally solved.
Therefore, it is desirable to provide a video piracy prevention method for identifying pirated videos so as to prevent the videos from being pirated.
Fig. 1 is a schematic flow chart of a video piracy prevention method according to an embodiment of the present application, as shown in fig. 1.
101. And generating the anti-counterfeiting mark of the video based on the video source information of the video.
Wherein the video source information is used to uniquely identify the video. The video source information is used for uniquely identifying one video, and the anti-counterfeiting marks are generated based on the video source information, so that each generated anti-counterfeiting mark can uniquely correspond to one video, whether the corresponding videos are from the same video can be determined by comparing whether the anti-counterfeiting marks are the same, and whether the videos are pirated can be identified.
Optionally, in some implementations, the video source information may include, for example and without limitation, any one or more of: the name of the video, the photographer of the video, the producer of the video, the date of production of the video, and so forth. The embodiment of the present application does not limit the specific content of the video source information.
Optionally, in some implementation manners, the video source information of the video may be calculated based on a preset algorithm, so as to obtain the anti-counterfeiting mark of the video. The preset algorithm may be any hash algorithm, such as the MD5 algorithm, and the embodiment of the present application does not limit the specifically adopted algorithm.
102. And splitting the anti-counterfeiting mark to obtain a plurality of anti-counterfeiting segments.
In the embodiment of the application, the number of the anti-counterfeiting sections which can be detached for anti-counterfeiting is not limited, and the number can be determined according to the length of the anti-counterfeiting mark, the frame rate of the video and the like. For example, in a specific implementation, the anti-counterfeiting mark can be divided into 3 to 100 anti-counterfeiting segments, and a plurality of anti-counterfeiting segments are added to a video which can be played in a few seconds (e.g., 5 s).
103. Sequentially adding the plurality of anti-counterfeiting segments to a plurality of video frames of the video.
It should be noted that part or all of the execution subjects of 101 to 103 may be an application located in the terminal, or may also be a functional unit such as a plug-in or Software Development Kit (SDK) in the application that sets the terminal, or may also be an application located in a network side server, which is not particularly limited in this embodiment of the present application.
It is to be understood that the application may be a native app (native app) installed on the terminal, or may also be a web page app (webApp) of a browser on the terminal, which is not limited in this embodiment of the present application.
Therefore, a plurality of anti-counterfeiting segments can be extracted from different video frames of the video subsequently and spliced to obtain a complete anti-counterfeiting mark, so that piracy identification can be performed on the video based on the anti-counterfeiting mark, and the video can be effectively prevented from being pirated.
In addition, by adopting the technical scheme provided by the application, the video anti-counterfeiting mark is divided into a plurality of anti-counterfeiting segments which are respectively added into different videos, so that the situation that the whole video mark is added into one video frame and cracked can be effectively avoided, the safety of the anti-counterfeiting mark is improved, and the video anti-piracy effect is improved.
In addition, by adopting the technical scheme provided by the application, the video anti-counterfeiting mark is divided into the plurality of anti-counterfeiting sections which are respectively added into different videos, so that the influence on the fluency of subsequent video playing caused by the large data volume of the video mark when the whole video mark is added into one video frame can be avoided, and the video watching experience of a user is effectively ensured.
Fig. 2 is a schematic flow chart of obtaining a plurality of anti-counterfeiting segments by splitting the anti-counterfeiting mark in an embodiment of the present application. As shown in fig. 2, on the basis of the embodiment shown in fig. 1, 102 may include:
201. and splitting the anti-counterfeiting mark into a plurality of parts to obtain a plurality of anti-counterfeiting data.
202. And respectively determining the positions of the anti-counterfeiting segments comprising the anti-counterfeiting data in the plurality of anti-counterfeiting data in the video frames.
203. And packaging a skip run identifier, sequence start identifier information, the number of corresponding anti-counterfeiting segments in the plurality of anti-counterfeiting data, the first anti-counterfeiting data and the lower segment index information to obtain the anti-counterfeiting segment of the first anti-counterfeiting data.
The sequence start identification information is used for identifying the start of the first anti-counterfeiting segment, and may be preset, for example, 1011; the lower segment index information is used for indicating the position of the next anti-counterfeiting segment in the video frame; the skip run flag is used to indicate that the corresponding data block is not to be played by the player.
204. And respectively packaging the skip run identifier, the number of the anti-counterfeiting segments, the anti-counterfeiting data and the lower segment index information aiming at other anti-counterfeiting data except the first anti-counterfeiting data and the last anti-counterfeiting data in the anti-counterfeiting data to obtain the anti-counterfeiting segments of the anti-counterfeiting data.
205. And packaging the skip run identifier, the number of the anti-counterfeiting segments and the last anti-counterfeiting data to obtain the anti-counterfeiting segment of the last anti-counterfeiting data.
It should be noted that there is no strict execution order limitation between the operations 203 to 205, and the operations may be executed in any order or simultaneously, and this embodiment of the present application only exemplarily shows a case of sequential execution.
Fig. 3 is a schematic diagram of a format of a security segment of first security data in an embodiment of the present application. The anti-counterfeiting segment of the non-first anti-counterfeiting data does not comprise sequence starting identification information relative to the anti-counterfeiting segment of the first anti-counterfeiting data, and the anti-counterfeiting segment of the last anti-counterfeiting data does not comprise lower segment index information relative to the anti-counterfeiting segments of other non-first anti-counterfeiting data. The sequence of the data included in each anti-counterfeiting segment can be adjusted, and is not limited to the sequence in the embodiment shown in fig. 3.
Based on this embodiment, after determining the position of each anti-counterfeiting segment in the video frame, the position index (lower segment index information) of the next anti-counterfeiting segment can be carried sequentially by the previous anti-counterfeiting segment, so that only after determining the position of the first anti-counterfeiting segment in the video frame and reading the lower segment index information in the first anti-counterfeiting segment, the anti-counterfeiting data in the next adjacent anti-counterfeiting segment and the lower segment index information in the next adjacent anti-counterfeiting segment can be read sequentially, and so on, thereby improving the security of the anti-counterfeiting data, and further improving the security of the whole anti-counterfeiting mark. In addition, the data block comprising the anti-counterfeiting segment carries the skip run identifier, so that the data block cannot be played by the player, and the video playing effect cannot be influenced.
Fig. 4 is a schematic diagram of a correspondence between a video frame and an anti-counterfeit section according to an embodiment of the present application.
Fig. 5 is a schematic flowchart illustrating a process of determining the position of each anti-counterfeit segment in a video frame according to an embodiment of the present application. As shown in fig. 5, on the basis of the embodiment shown in fig. 2, 202 may include:
501. and mapping the anti-counterfeiting mark to a numerical value within a specified numerical value interval range based on a preset hash algorithm.
The range of the designated value interval may be determined according to a specific video coding standard and a frame format, for example, in one embodiment, the range of the designated value interval may be 1 to 5. The embodiment of the present application does not limit the specific values in the range of the designated numerical value interval.
502. And taking the value as the position of the first anti-counterfeiting segment in the video frame.
503. And determining the positions of other non-first anti-counterfeiting segments in the video frame according to a preset mode.
Based on the embodiment, the anti-counterfeiting mark is mapped to a numerical value within a specified numerical value range based on a preset hash algorithm to serve as the position of the first anti-counterfeiting segment in the video frame, so that the safety of the position of the first anti-counterfeiting segment can be improved, and the anti-counterfeiting mark is not easy to crack and erase, so that the positions of other non-first anti-counterfeiting segments cannot be determined and data cannot be read, the safety of the whole anti-counterfeiting mark is improved, and the anti-counterfeiting mark is not easy to remove.
Optionally, in some possible implementation manners, in 503, a value may be randomly determined within the range of the specified value interval as the position of each of the other anti-counterfeiting segments in the video frame, that is, the position of each of the other anti-counterfeiting segments in the video frame may be randomly determined, so that the positions of the other anti-counterfeiting segments in the video frame are random and are not easy to be determined and read, and the security of the anti-counterfeiting segment information may be improved, thereby improving the security of the anti-counterfeiting mark.
Or, in some possible implementation manners, in 503, the position of the next anti-counterfeiting segment in the video frame may also be determined sequentially according to the position of each anti-counterfeiting segment in the multiple anti-counterfeiting data in the video frame and a preset rule, where the preset rule may be determined according to an actual situation, for example, in one embodiment, the position of each anti-counterfeiting segment in the video frame may be gradually decreased by 1 or increased by 1 as the position of the next anti-counterfeiting segment in the video frame, or a preset function may also be used to determine the position of the next anti-counterfeiting segment in the video frame based on the position of each anti-counterfeiting segment in the video frame, and a specific manner of the preset rule is not limited in the embodiment of the present application. Therefore, the position of the next anti-counterfeiting segment in the video frame needs to be determined based on the position of each anti-counterfeiting segment in the video frame and the preset rule, and under the condition that the preset rule cannot be obtained, the position of the next anti-counterfeiting segment in the video frame cannot be determined, so that the anti-counterfeiting data in the next anti-counterfeiting segment is prevented from being read, the safety of the information of the anti-counterfeiting segment can be improved, and the safety of the anti-counterfeiting mark is improved.
The embodiment of the application can be applied to video with any format and video coding standard. In a particular implementation, each anti-counterfeiting segment can be inserted into a corresponding location in a video frame.
For example, in the h.264/AVC video coding standard, the original bitstream (naked stream) is composed of Network Abstraction Layer Units (NALUs) one by one, and the whole system framework is divided into two layers: video Coding Layer (VCL) and Network Abstraction Layer (NAL). Among them, an original NALU is often composed of three parts, a start code (StartCode), a NALU Header (NALU Header), and a NALU Payload (NALU Payload), wherein the NALU Payload is the body of the NALU. The NALU body includes a slice header and slice data, and 1 frame is n slices (slice), 1 slice is n Macroblocks (MB), and 1 macroblock is 16 × 16yuv data. The macro block is a main carrier of video information, a coded image is usually divided into a plurality of macro blocks, which contain luminance and chrominance information of each pixel, and the most important task of video decoding is to provide an efficient way to obtain a pixel array in the macro block from a code stream.
Optionally, in some possible implementations, in 202, the macroblock sequence number of each anti-fake segment in the video frame as the macroblock carrying the skip run identifier may be determined respectively. Correspondingly, after the anti-counterfeiting mark is split at 102 to obtain a plurality of anti-counterfeiting segments, alpha (α) channel conversion can be performed on each anti-counterfeiting segment in the plurality of anti-counterfeiting segments, and an α channel of each anti-counterfeiting segment is converted into a transparent background color. In 103, the anti-counterfeiting segment is inserted into a position determined based on the macro block number of the anti-counterfeiting segment in the corresponding video frame as a newly added macro block according to the macro block number of each anti-counterfeiting segment.
Based on the embodiment, the alpha channel of the anti-counterfeiting segment is converted into the transparent background color, so that the information in the anti-counterfeiting segment does not participate in video rendering in the subsequent video playing process, the picture displayed by the whole video is not changed, and therefore the anti-counterfeiting data cannot be leaked, and the video watching experience of a user cannot be influenced.
In a possible specific implementation manner, when the anti-counterfeiting segment is inserted into a position, which is determined based on the macro block serial number of the anti-counterfeiting segment, of a corresponding video frame as a newly added macro block, it may be determined whether the number of macro blocks carrying the skip run identifier in the corresponding video is smaller than the macro block serial number M-1 of the anti-counterfeiting segment;
if the number of macro blocks carrying the skip run identifier in the corresponding video is less than M-1, supplementing the macro blocks carrying the skip run identifier in the video frame, so that the number of the macro blocks carrying the skip run identifier in the corresponding video is equal to M-1, and then inserting the anti-counterfeiting segment serving as a newly added macro block into the rear part of the last macro block carrying the skip run identifier in the corresponding video frame;
otherwise, if the number of the macro blocks carrying the skip run identifier in the corresponding video is not less than M-1, inserting the anti-counterfeiting segment as a newly added macro block into a position determined based on the macro block sequence number of the anti-counterfeiting segment in the corresponding video frame.
Fig. 6 is a schematic diagram illustrating a macroblock structure of a video frame according to an embodiment of the present application. As shown in fig. 6, it is assumed that the macro block sequence number of the anti-counterfeit segment determined in this embodiment is 4, that is, the 4 th macro block carrying the skip run identifier in one video frame, at this time, since only 1 macro block carrying the skip run identifier in the video frame may be supplemented with 2 macro blocks carrying the skip run identifier (e.g., the 2 nd and 3 rd macro blocks carrying the skip run identifier in fig. 6), the supplemented 2 macro blocks carrying the skip run identifier do not carry other data, and then the anti-counterfeit segment is inserted as the 4 th newly added macro block into the rear portion of the last macro block carrying the skip run identifier in the video frame, for example, the 4 th macro block carrying the skip run identifier in fig. 6.
Optionally, in some of the implementations, the plurality of anti-counterfeiting segments may be sequentially added to a plurality of consecutive video frames in the video in 103. Therefore, the anti-counterfeiting segment can be read frame by frame subsequently, the efficiency of reading the anti-counterfeiting segment is improved, and the identification efficiency of video piracy is improved.
Optionally, in some of the implementation manners, in 103, the multiple anti-counterfeiting segments may be sequentially and cyclically added to video frames in the video, where one anti-counterfeiting segment is added to each video frame in the video.
Based on the embodiment, even if the video is intercepted by other users or the head and the tail of the video are removed, the first anti-counterfeiting segment and other non-first anti-counterfeiting segments in the next cycle can be read from the existing video frame, so that a complete anti-counterfeiting mark can be obtained, and the pirate identification of the video is realized.
Or optionally, in another implementation manner, in 103, the multiple anti-counterfeiting segments may also be sequentially added to part of the video frames in the video in a circulating manner, where the multiple anti-counterfeiting segments are sequentially added to multiple consecutive video frames in the video in one circulating manner, and the video frames with the anti-counterfeiting segments added in different circulating manners are adjacent to each other or are separated by a certain video frame according to a preset manner. That is, the anti-counterfeiting segments may be sequentially added to a plurality of video frames of a video, and then the anti-counterfeiting segments may be sequentially added to a next plurality of video frames that are next and adjacent to the plurality of video frames, or the anti-counterfeiting segments may be sequentially added to a plurality of video frames that are next and adjacent to the plurality of video frames after a plurality of video frames are separated, and each of the plurality of video frames and the previous plurality of video frames may be adjacent to each other or separated by a plurality of frames.
Based on the embodiment, even if the video is intercepted by other users or the head and the tail of the video are removed, the first anti-counterfeiting segment and other non-first anti-counterfeiting segments in the next cycle can still be read from the existing video frame, so that a complete anti-counterfeiting mark can be obtained, and the pirate identification of the video is realized; moreover, as the anti-counterfeiting segment is not added in part of the video frames, the data processing amount can be reduced, and the processing efficiency of video anti-piracy is improved.
Fig. 7 is a schematic flowchart of a video piracy prevention method according to another embodiment of the present application, as shown in fig. 7.
701. And extracting anti-counterfeiting segments from a plurality of video frames of the video respectively to obtain a plurality of anti-counterfeiting segments.
702. And splicing the extracted anti-counterfeiting sections to obtain the anti-counterfeiting mark of the video.
703. And carrying out piracy identification on the video based on the anti-counterfeiting mark.
It should be noted that part or all of the execution subjects 701 to 703 may be an application (e.g., a player) located in the terminal, or may also be a functional unit such as a plug-in or a Software Development Kit (SDK) in an application configured in the terminal, or may also be an application located in a network side server (e.g., a video platform or a self-media platform), which is not particularly limited in this embodiment of the present application.
It is to be understood that the application may be a native app (native app) installed on the terminal, or may also be a web page app (webApp) of a browser on the terminal, which is not limited in this embodiment of the present application.
In this way, pirated videos can be identified based on the anti-counterfeiting mark of each video, so that the videos can be effectively prevented from being pirated.
In addition, by adopting the technical scheme provided by the application, the video anti-counterfeiting mark is split into a plurality of anti-counterfeiting segments which are respectively added into different videos, so that the whole video mark can be effectively prevented from being cracked when being added into one video frame, the safety of the anti-counterfeiting mark is improved, and the video anti-piracy effect is improved.
In addition, by adopting the technical scheme provided by the application, the video anti-counterfeiting mark is divided into the plurality of anti-counterfeiting sections which are respectively added into different videos, so that the influence on the fluency of subsequent video playing caused by the large data volume of the video mark when the whole video mark is added into one video frame can be avoided, and the video watching experience of a user is effectively ensured.
Fig. 8 is a schematic flow chart illustrating a process of extracting anti-counterfeit segments from multiple video frames of a video to obtain multiple anti-counterfeit segments according to another embodiment of the present application. As shown in fig. 8, on the basis of the embodiment shown in fig. 7, 701 may include:
801. and determining the position of a first anti-counterfeiting segment in the anti-counterfeiting segments in the video frame of the video based on the anti-counterfeiting mark of the target video similar to the video, and reading the first anti-counterfeiting data, the number of the anti-counterfeiting segments and the lower segment index information in the first anti-counterfeiting segment according to the position of the first anti-counterfeiting segment in the video frame of the video.
And the lower section index information is used for the position of the next anti-counterfeiting section in the video frame.
The anti-counterfeiting mark of the target video is generated based on the video source information of the target video. Wherein the video source information is used to uniquely identify the video.
Optionally, in some implementations, the video source information may include, for example and without limitation, any one or more of: the name of the video, the photographer of the video, the producer of the video, the date of production of the video, and so forth. The embodiment of the present application does not limit the specific content of the video source information.
Optionally, in some implementation manners, the video source information of the video may be calculated based on a preset algorithm, so as to obtain the anti-counterfeiting mark of the video. The preset algorithm may be any hash algorithm, such as the MD5 algorithm, and the embodiment of the present application does not limit the specifically adopted algorithm.
802. And sequentially reading the anti-counterfeiting data and the lower section index information in the next anti-counterfeiting section from the video frame according to the lower section index information in each anti-counterfeiting section until the anti-counterfeiting data in all the anti-counterfeiting sections in the plurality of anti-counterfeiting sections are read according to the number of the anti-counterfeiting sections.
Accordingly, in this embodiment, in 702, the anti-counterfeiting data in the multiple anti-counterfeiting segments may be sequentially spliced to obtain the anti-counterfeiting mark of the video.
Based on the embodiment, the position of the first anti-counterfeiting segment in the multiple anti-counterfeiting segments in the video frame of the video is determined based on the anti-counterfeiting mark of the target video, the first anti-counterfeiting data, the number of the anti-counterfeiting segments and the lower segment index information in the first anti-counterfeiting segment are read, the anti-counterfeiting data and the lower segment index information in the next anti-counterfeiting segment are read from the video frame in sequence according to the lower segment index information in each anti-counterfeiting segment until the anti-counterfeiting data in all the anti-counterfeiting segments in the multiple anti-counterfeiting segments are read, and therefore the anti-counterfeiting mark of the video is spliced to carry out piracy identification on the video, so that the safety of the anti-counterfeiting data is improved, and the safety of the whole anti-counterfeiting mark is improved.
In the embodiment shown in fig. 8, if the position of each anti-counterfeiting segment in the video frame of the video cannot be read, the anti-counterfeiting data therein cannot be read, and it can be determined that the video is different from the anti-counterfeiting mark of the target video in the case that the video is seriously damaged and does not carry any first anti-counterfeiting segment or not completely carry all anti-counterfeiting segments of the plurality of anti-counterfeiting segments, and the video is not a pirated video of the target video.
Optionally, in some implementations, in 801, the anti-counterfeit mark of the target video may be mapped to a value within a specified range of values based on a preset hash algorithm, and then the value is used as the position of the first anti-counterfeit segment in the video frame of the video.
Based on the embodiment, the anti-counterfeiting mark is mapped to a numerical value within a specified numerical value range based on a preset hash algorithm to serve as the position of the first anti-counterfeiting segment in the video frame, so that the safety of the position of the first anti-counterfeiting segment can be improved, and the anti-counterfeiting mark is not easy to crack and erase, so that the positions of other non-first anti-counterfeiting segments cannot be determined and data cannot be read, the safety of the whole anti-counterfeiting mark is improved, and the anti-counterfeiting mark is not easy to remove.
In some possible implementations, the location in a video frame of the video may include: and taking the sequence number of the macro block carrying the skip run identifier in the video frame of the video.
Correspondingly, when the first anti-counterfeiting data, the number of the anti-counterfeiting segments and the lower segment index information in the first anti-counterfeiting segment are read according to the position of the first anti-counterfeiting segment in the video frame of the video, the macro block sequence number of the macro block carrying the skip run identifier in the video frame of the video can be read according to the first anti-counterfeiting segment, one video frame in the video is sequentially used as the current video frame, the corresponding macro block is read from the current video, and whether the corresponding macro block comprises sequence start identifier information or not is identified, wherein the sequence start identifier information is used for identifying the start of the first anti-counterfeiting segment. And if the corresponding macro block comprises the sequence starting identification information, determining that the corresponding macro block is the macro block of the first anti-counterfeiting segment, and reading first anti-counterfeiting data, anti-counterfeiting segment quantity and lower segment index information from the macro block of the first anti-counterfeiting segment. Otherwise, if the corresponding macro block does not include the sequence start identification information, determining that the corresponding macro block is not the macro block of the first anti-counterfeiting segment, and continuing to execute the above operations for the next video frame of the current video frame until the corresponding macro block is determined to be the macro block of the first anti-counterfeiting segment, and reading the first anti-counterfeiting data, the number of anti-counterfeiting segments and the lower segment index information from the macro block of the first anti-counterfeiting segment.
Based on the embodiment, based on that the plurality of anti-counterfeiting segments are circularly added to each video frame in the video for a plurality of times, even if the video is intercepted by other users for a certain segment or the head and the tail of the video are removed, the first anti-counterfeiting segment and other non-first anti-counterfeiting segments in the next cycle can still be read from the existing video frame, so that a complete anti-counterfeiting mark can be obtained, and the pirate identification of the video is realized.
When the anti-counterfeiting data and the lower segment index information in the next anti-counterfeiting segment are read from the video frame according to the lower segment index information in each anti-counterfeiting segment, the anti-counterfeiting data and the lower segment index information in the next anti-counterfeiting segment can be read from the corresponding macro block in the next video frame of the video frame where the first anti-counterfeiting segment is located according to the macro block sequence number of the macro block carrying the skip run identifier in the video frame of the next anti-counterfeiting segment. Therefore, the positions of the anti-counterfeiting segments can be determined in sequence to read the anti-counterfeiting data in the anti-counterfeiting segments.
For example, in one specific implementation scheme, it is assumed that the multiple anti-counterfeiting segments are specifically 5 anti-counterfeiting segments, and the positions of the 5 anti-counterfeiting segments in the video frame are: 23415, the positions of the 5 anti-counterfeiting segments in the video frame are: a 2 nd macro block carrying a skip run identifier, a 3 rd macro block carrying a skip run identifier, a 4 th macro block carrying a skip run identifier, a 1 st macro block carrying a skip run identifier, and a 5 th macro block carrying a skip run identifier, wherein from a first frame of a video, whether the 2 nd macro block in the video frame includes sequence start identifier information or not can be searched frame by frame until the 2 nd macro block in a certain video frame includes the sequence start identifier information, the 2 nd macro block is determined to be a macro block of a first anti-counterfeiting segment, and the first anti-counterfeiting data, the number of anti-counterfeiting segments 5 and lower segment index information (namely index information of the 2 nd anti-counterfeiting segment: the 3 rd macro block carrying the skip run identifier) are read from the 2 nd macro block; then, taking the 3 rd macro block carrying the skip run mark in the next video frame as the macro block of the 2 nd anti-counterfeiting segment, and reading the 2 nd anti-counterfeiting data, the anti-counterfeiting segment quantity 5 and the lower segment index information (namely the index information of the 3 rd anti-counterfeiting segment: the 4 th macro block carrying the skip run mark); …, repeating the above steps until 5 anti-counterfeiting data of the anti-counterfeiting segments are read, and splicing to obtain the complete anti-counterfeiting mark.
Optionally, in some implementation manners, in 703, if the anti-counterfeit mark of the video is the same as the anti-counterfeit mark of the target video, it may be determined that the video is a pirated video.
Therefore, the video is identified whether to be the anti-theft video or not, and the video is effectively prevented from being pirated.
The technical scheme of the application can be applied to equipment with terminals, video servers and the like, for example, any video data processing application and any video data playing application. When the video piracy prevention method provided by the embodiment of the application is executed by utilizing the video data processing application and the playing application, the pirated videos can be identified based on the anti-counterfeiting mark of each video.
In addition, by adopting the technical scheme provided by the application, the video anti-counterfeiting mark is split into a plurality of anti-counterfeiting segments which are respectively added into different videos, so that the whole video mark can be effectively prevented from being cracked when being added into one video frame, the safety of the anti-counterfeiting mark is improved, and the video anti-piracy effect is improved.
In addition, by adopting the technical scheme provided by the application, the video anti-counterfeiting mark is divided into the anti-counterfeiting sections which are respectively added into different videos, so that the phenomenon that the smoothness of subsequent video playing is influenced due to the fact that the data volume of the video mark is large when the whole video mark is added into one video frame can be avoided, and the video watching experience of a user is effectively guaranteed.
It should be noted that for simplicity of description, the above-mentioned embodiments of the method are described as a series of acts, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to the related descriptions of other embodiments.
FIG. 9 illustrates a block diagram of an exemplary computer system/server 12 suitable for use in implementing embodiments of the present application. The computer system/server 12 shown in FIG. 9 is only an example and should not be taken to limit the scope of use or functionality of embodiments of the present application.
As shown in fig. 9, computer system/server 12 is in the form of a general purpose computing device. The components of computer system/server 12 may include, but are not limited to: one or more processors or processing units 16, a storage device or system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer system/server 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer system/server 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. The computer system/server 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 9, and commonly referred to as a "hard drive"). Although not shown in FIG. 9, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. System memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the application.
Program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination of which may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the embodiments described herein.
The computer system/server 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with the computer system/server 12, and/or with any devices (e.g., network card, modem, etc.) that enable the computer system/server 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 44. Also, the computer system/server 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet) via the network adapter 20. As shown in FIG. 9, network adapter 20 communicates with the other modules of computer system/server 12 via bus 18. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the computer system/server 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes programs stored in the system memory 28 to perform various functional applications and data processing, such as implementing the video anti-piracy method provided in any of the embodiments corresponding to fig. 1-6.
Another embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the video anti-piracy method provided in any of the embodiments corresponding to fig. 1-6.
In particular, any combination of one or more computer-readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. 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 (a non-exhaustive list) of the computer readable storage medium would include the following: 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 the context of this document, 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.
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 any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may 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 wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present application 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 latter scenario, 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).
It can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or page components may be combined or integrated into another system, or some features may be omitted or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or in the form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, an optical disk, or other various media capable of storing program codes.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (17)

1. A method of video piracy protection, comprising:
generating an anti-counterfeiting mark of a video based on video source information of the video;
splitting the anti-counterfeiting mark to obtain a plurality of anti-counterfeiting segments;
sequentially adding the plurality of anti-counterfeiting segments to a plurality of video frames of the video;
wherein, the splitting of the anti-counterfeiting mark to obtain a plurality of anti-counterfeiting segments comprises:
splitting the anti-counterfeiting mark into a plurality of parts to obtain a plurality of anti-counterfeiting data;
respectively determining the positions of anti-counterfeiting segments comprising the anti-counterfeiting data in the plurality of anti-counterfeiting data in the video frames;
according to the position of the anti-counterfeiting segment comprising each anti-counterfeiting data in the video frame, respectively packaging the first anti-counterfeiting data, the last anti-counterfeiting data, the first anti-counterfeiting data and other anti-counterfeiting data except the last anti-counterfeiting data in the anti-counterfeiting data to obtain the anti-counterfeiting segment of the first anti-counterfeiting data, the anti-counterfeiting segment of the last anti-counterfeiting data and the anti-counterfeiting segment of the anti-counterfeiting data.
2. The method of claim 1, wherein the video source information comprises any one or more of:
the name of the video, the photographer of the video, the producer of the video, the date of production of the video.
3. The method according to claim 1, wherein the separately encapsulating each of the first anti-counterfeit data, the last anti-counterfeit data, the first anti-counterfeit data, and the other anti-counterfeit data except the last anti-counterfeit data of the plurality of anti-counterfeit data to obtain the anti-counterfeit segment of the first anti-counterfeit data, the anti-counterfeit segment of the last anti-counterfeit data, and the anti-counterfeit segment of the anti-counterfeit data comprises:
packaging the skip operation identifier, the sequence start identifier information, the corresponding anti-counterfeiting segment number in the anti-counterfeiting data, the first anti-counterfeiting data and the lower segment index information to obtain an anti-counterfeiting segment of the first anti-counterfeiting data; the sequence start identification information is used for identifying the start of a first anti-counterfeiting segment, and the lower segment index information is used for indicating the position of the next anti-counterfeiting segment in the video frame;
respectively packaging the skip operation identifier, the number of the anti-counterfeiting segments, the anti-counterfeiting data and the lower segment index information aiming at other anti-counterfeiting data except the first anti-counterfeiting data and the last anti-counterfeiting data in the plurality of anti-counterfeiting data to obtain anti-counterfeiting segments of the anti-counterfeiting data;
and packaging the skip operation mark, the number of the anti-counterfeiting segments and the last anti-counterfeiting data to obtain the anti-counterfeiting segment of the last anti-counterfeiting data.
4. The method of claim 3, wherein the separately determining the location of the anti-counterfeiting segment comprising each of the plurality of anti-counterfeiting data in the video frame comprises:
mapping the anti-counterfeiting mark to a numerical value within a specified numerical value interval range based on a preset hash algorithm;
taking the value as the position of the first anti-counterfeiting segment in a video frame;
and determining the positions of other non-first anti-counterfeiting segments in the video frame according to a preset mode.
5. The method according to claim 4, wherein the determining the position of each of the other non-first anti-counterfeiting segments in the video frame according to the preset manner comprises:
randomly determining a numerical value in the range of the designated numerical value interval as the position of each other anti-counterfeiting segment in the video frame; alternatively, the first and second electrodes may be,
and sequentially determining the position of the next anti-counterfeiting segment in the video frame according to the position of each anti-counterfeiting segment in the anti-counterfeiting data in the video frame and a preset rule.
6. The method of claim 3, wherein the separately determining the position of the anti-counterfeiting segment including each of the plurality of anti-counterfeiting data in the video frame comprises:
respectively determining the serial numbers of the macro blocks of the anti-counterfeiting segments in the video frame as the macro blocks carrying the skip operation marks;
after the anti-counterfeiting mark is split to obtain a plurality of anti-counterfeiting segments, the method further comprises the following steps:
respectively carrying out alpha channel conversion on each anti-counterfeiting segment in the plurality of anti-counterfeiting segments, and converting the alpha channel of each anti-counterfeiting segment into a transparent background color;
the adding the plurality of anti-counterfeiting segments to a plurality of video frames of the video in sequence comprises:
and inserting the anti-counterfeiting segment into a position determined based on the macro block serial number of the anti-counterfeiting segment in a corresponding video frame as a newly added macro block according to the macro block serial number of each anti-counterfeiting segment.
7. The method of claim 6, wherein the inserting the anti-counterfeit segment as a newly added macro block into the corresponding video frame at a position determined based on the macro block number of the anti-counterfeit segment comprises:
determining whether the number of macro blocks carrying the skip operation identifier in the corresponding video is less than the macro block sequence number M-1 of the anti-counterfeiting segment;
if the number of the macro blocks carrying the skip operation identification in the corresponding video is less than M-1, the macro blocks carrying the skip operation identification are filled in the video frame, so that the number of the macro blocks carrying the skip operation identification in the corresponding video is equal to M-1; inserting the anti-counterfeiting segment serving as a newly added macro block into the rear part of the last macro block carrying the skip operation identifier in the corresponding video frame;
otherwise, if the number of the macro blocks carrying the skip operation identification in the corresponding video is not less than M-1, inserting the anti-counterfeiting segment as a newly increased macro block into the position determined based on the macro block serial number of the anti-counterfeiting segment in the corresponding video frame.
8. The method according to any one of claims 1 to 7, wherein said sequentially adding said plurality of anti-counterfeiting segments to a plurality of video frames of said video comprises:
and sequentially adding the anti-counterfeiting segments into a plurality of continuous video frames in the video.
9. The method according to any one of claims 1 to 7, wherein said sequentially adding said plurality of anti-counterfeiting segments to a plurality of video frames of said video comprises:
sequentially and circularly adding the anti-counterfeiting segments into each video frame in the video, wherein each video frame of the video is added with one anti-counterfeiting segment; alternatively, the first and second liquid crystal display panels may be,
and sequentially and circularly adding the anti-counterfeiting segments into partial video frames in the video, wherein the anti-counterfeiting segments are sequentially added into a plurality of continuous video frames in the video in one cycle, and the video frames added with the anti-counterfeiting segments in different cycles are adjacent or are separated by a certain video frame according to a preset mode.
10. A method of video piracy protection, comprising:
respectively extracting anti-counterfeiting segments from a plurality of video frames of a video to obtain a plurality of anti-counterfeiting segments;
splicing the extracted anti-counterfeiting segments to obtain anti-counterfeiting marks of the video;
performing piracy identification on the video based on the anti-counterfeiting mark;
wherein, said extracting anti-fake section from a plurality of video frames of video respectively, obtain a plurality of anti-fake sections, include:
determining the position of a first anti-counterfeiting segment in the plurality of anti-counterfeiting segments in a video frame of the video based on an anti-counterfeiting mark of a target video similar to the video, and reading first anti-counterfeiting data, the number of the anti-counterfeiting segments and lower segment index information in the first anti-counterfeiting segment according to the position of the first anti-counterfeiting segment in the video frame of the video; the lower section index information is used for the position of the next anti-counterfeiting section in the video frame;
and sequentially reading the anti-counterfeiting data and the lower section index information in the next anti-counterfeiting section from the video frame according to the lower section index information in each anti-counterfeiting section until the anti-counterfeiting data in all the anti-counterfeiting sections in the plurality of anti-counterfeiting sections are read according to the number of the anti-counterfeiting sections.
11. The method of claim 10,
the splicing of the extracted anti-counterfeiting segments to obtain the anti-counterfeiting mark of the video comprises the following steps:
and sequentially splicing the anti-counterfeiting data in the anti-counterfeiting sections to obtain the anti-counterfeiting mark of the video.
12. The method of claim 11, wherein the anti-counterfeiting mark of the target video is generated based on video source information of the target video;
the video source information comprises any one or more of the following:
a name of the video, a photographer of the video, a producer of the video, a date of production of the video.
13. The method of claim 11, wherein determining the location of a first anti-counterfeiting segment of the plurality of anti-counterfeiting segments in a video frame of the video based on an anti-counterfeiting label of a target video similar to the video comprises:
based on a preset hash algorithm, mapping the anti-counterfeiting mark of the target video to a numerical value within a specified numerical value interval range;
and taking the value as the position of the first anti-counterfeiting segment in the video frame of the video.
14. The method of claim 13, wherein the position in the video frame of the video comprises: the sequence number of the macro block which is taken as the macro block carrying the skip operation mark in the video frame of the video;
the reading of the first anti-counterfeiting data, the number of the anti-counterfeiting segments and the lower segment index information in the first anti-counterfeiting segment according to the position of the first anti-counterfeiting segment in the video frame of the video comprises the following steps:
according to the macro block sequence number of the macro block of the skip operation mark carried by the first anti-counterfeiting segment in the video frame of the video, sequentially taking one video frame in the video as a current video frame, reading a corresponding macro block from the current video, and identifying whether the corresponding macro block comprises sequence starting mark information or not, wherein the sequence starting mark information is used for marking the start of the first anti-counterfeiting segment;
if the corresponding macro block comprises the sequence start identification information, determining that the corresponding macro block is the macro block of the first anti-counterfeiting segment, and reading first anti-counterfeiting data, anti-counterfeiting segment quantity and lower segment index information from the macro block of the first anti-counterfeiting segment;
the reading of the anti-counterfeiting data and the lower segment index information in the next anti-counterfeiting segment from the video frame according to the lower segment index information in each anti-counterfeiting segment comprises the following steps:
and reading anti-counterfeiting data and lower segment index information in the next anti-counterfeiting segment from the corresponding macro block read from the next video frame of the video frame where the first anti-counterfeiting segment is located according to the macro block serial number of the macro block carrying the skip running identifier in the video frame of the next anti-counterfeiting segment.
15. The method according to any one of claims 11 to 14, wherein the identifying of piracy of the video based on the anti-counterfeiting mark comprises:
and if the anti-counterfeiting mark of the video is the same as the anti-counterfeiting mark of the target video, confirming that the video is a pirated video.
16. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a storage device to store one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method as claimed in any one of claims 1 to 15.
17. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 15.
CN202010725598.6A 2020-07-24 2020-07-24 Video anti-piracy method, electronic device and computer readable storage medium Active CN111836054B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010725598.6A CN111836054B (en) 2020-07-24 2020-07-24 Video anti-piracy method, electronic device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010725598.6A CN111836054B (en) 2020-07-24 2020-07-24 Video anti-piracy method, electronic device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111836054A CN111836054A (en) 2020-10-27
CN111836054B true CN111836054B (en) 2022-07-22

Family

ID=72925408

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010725598.6A Active CN111836054B (en) 2020-07-24 2020-07-24 Video anti-piracy method, electronic device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111836054B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112770189A (en) * 2020-11-30 2021-05-07 成都中科大旗软件股份有限公司 Method for realizing video anti-counterfeiting and anti-theft through frame insertion technology
CN116567353B (en) * 2023-07-10 2023-09-12 湖南快乐阳光互动娱乐传媒有限公司 Video delivery method and device, storage medium and electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3596590B2 (en) * 1998-11-18 2004-12-02 ソニー株式会社 Apparatus and method for appending accompanying information, apparatus and method for detecting accompanying information
CN106067053A (en) * 2016-05-27 2016-11-02 立德高科(昆山)数码科技有限责任公司 Anti-counterfeiting mark and method for anti-counterfeit
CN108665403B (en) * 2017-03-29 2022-06-24 腾讯科技(深圳)有限公司 Digital watermark embedding method, digital watermark extracting method, digital watermark embedding device, digital watermark extracting device and digital watermark system
CN109982157A (en) * 2019-04-01 2019-07-05 北京火眼目测科技有限公司 The method, system and storage medium of implicit fingerprint are embedded in digital video
CN110062291A (en) * 2019-04-29 2019-07-26 王子孟 A kind of digital watermarking addition and extracting method, apparatus and system

Also Published As

Publication number Publication date
CN111836054A (en) 2020-10-27

Similar Documents

Publication Publication Date Title
CN110896484B (en) Video watermark adding and extracting method and device, video playing end and storage medium
CN107690074A (en) Video coding and restoring method, audio/video player system and relevant device
CN111836054B (en) Video anti-piracy method, electronic device and computer readable storage medium
US9609338B2 (en) Layered video encoding and decoding
CN101340587A (en) Method for encoding input image, method and apparatus for displaying an encoded image
CN111510752B (en) Data transmission method, device, server and storage medium
CN111669615B (en) Video stream processing method and device
CN112040336B (en) Method, device and equipment for adding and extracting video watermark
CN106792088B (en) Plug-in subtitle encryption and decryption method and system and plug-in subtitle system
CN115358911B (en) Screen watermark generation method, device, equipment and computer readable storage medium
CN111131654B (en) Watermark embedding method and device and coder-decoder
CN110582021B (en) Information processing method and device, electronic equipment and storage medium
CN113691835B (en) Video implantation method, device, equipment and computer readable storage medium
CN113014609B (en) Multimedia file processing and tracing method, device, equipment and medium
CN114626968A (en) Watermark embedding method, watermark extracting method and device
CN113613015A (en) Tamper-resistant video generation method and device, electronic equipment and readable medium
CN111860367A (en) Video repeatability identification method, electronic equipment and computer readable storage medium
CN111949825A (en) Method for adding and displaying article information in video, electronic equipment and storage medium
AU2011338800B2 (en) Video stream presentation system and protocol
CN117499665B (en) Image data embedding and extracting method and device based on gray value quantization
CN117499664B (en) Image data embedding and extracting method and device based on bit substitution
CN113672761B (en) Video processing method and device
TW201404165A (en) Coding of video and audio with initialization fragments
CN102833547B (en) A kind of method of the quick embedded dominant information for being applied to jpeg image
US11838602B2 (en) MPD chaining in a live CMAF/DASH player using W3C media source and encrypted extensions

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