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 PDFInfo
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 238000004590 computer program Methods 0.000 claims description 4
- 238000004519 manufacturing process Methods 0.000 claims description 4
- 238000006243 chemical reaction Methods 0.000 claims description 2
- 238000004806 packaging method and process Methods 0.000 claims 4
- 238000013507 mapping Methods 0.000 claims 2
- 230000002265 prevention Effects 0.000 abstract 1
- 238000012545 processing Methods 0.000 description 11
- 238000010586 diagram Methods 0.000 description 8
- 230000003287 optical effect Effects 0.000 description 7
- 230000000694 effects Effects 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- 230000009471 action Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 239000000203 mixture Substances 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005538 encapsulation Methods 0.000 description 1
- 230000003203 everyday effect Effects 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 229920001690 polydopamine Polymers 0.000 description 1
- 238000007639 printing Methods 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000004984 smart glass Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/46—Embedding additional information in the video signal during the compression process
- H04N19/467—Embedding additional information in the video signal during the compression process characterised by the embedded information being invisible, e.g. watermarking
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
- H04N1/32—Circuits 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/32101—Display, printing, storage or transmission of additional information, e.g. ID code, date and time or title
- H04N1/32144—Display, 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/32149—Methods relating to embedding, encoding, decoding, detection or retrieval operations
- H04N1/3232—Robust embedding or watermarking
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
- H04N1/32—Circuits 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/32101—Display, printing, storage or transmission of additional information, e.g. ID code, date and time or title
- H04N1/32144—Display, 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/32352—Controlling detectability or arrangements to facilitate detection or retrieval of the embedded information, e.g. using markers
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
Description
【技术领域】【Technical field】
本申请涉及视频处理技术,尤其涉及一种视频防盗版方法、电子设备及计算机可读存储介质。The present application relates to video processing technology, and in particular, to a video anti-piracy method, an electronic device and a computer-readable storage medium.
【背景技术】【Background technique】
目前,随着音视频技术和自媒体技术的发展,各种视频网站、自媒体平台不断涌现。视频制造商、用户每天会产生海量内容丰富多元的各种视频,涵盖电影、电视剧、动漫、综艺、生活、音乐等,这些视频会上传各种视频网站、自媒体平台,供用户观看。At present, with the development of audio and video technology and self-media technology, various video websites and self-media platforms continue to emerge. Video manufacturers and users will generate a large number of videos with rich and diverse content every day, covering movies, TV series, animation, variety shows, life, music, etc. These videos will be uploaded to various video websites and self-media platforms for users to watch.
现有技术中,各种视频、尤其是短视频,盗版情况严重,损害了视频制作者的版权。In the prior art, various videos, especially short videos, suffer from serious piracy, which damages the copyright of video producers.
针对视频盗版情况,现有技术中,通常是通过在视频帧中打水印等方式来防止盗版。但是这种防盗版方式,由于视频帧中的水印很容易被去除,无法从根本上解决视频的盗版问题。For video piracy, in the prior art, the piracy is usually prevented by printing watermarks in video frames. However, this anti-piracy method cannot fundamentally solve the problem of video piracy because the watermark in the video frame is easily removed.
【发明内容】[Content of the invention]
本申请的多个方面提供一种视频防盗版方法、电子设备及计算机可读存储介质,用以识别盗版视频。Aspects of the present application provide a video anti-piracy method, an electronic device, and a computer-readable storage medium for identifying pirated videos.
本申请的一方面,提供一种视频防盗版方法,包括:One aspect of the present application provides a video anti-piracy method, comprising:
基于视频的视频源信息生成所述视频的防伪标记;Generate an anti-counterfeiting mark of the video based on the video source information of the video;
对所述防伪标记进行拆分,得到多个防伪段;splitting the anti-counterfeiting mark to obtain a plurality of anti-counterfeiting segments;
将所述多个防伪段顺序添加到所述视频的多个视频帧中。The plurality of security segments are sequentially added to a plurality of video frames of the video.
本申请的另一方面,提供另一种视频防盗版方法,包括:Another aspect of the present application provides another video anti-piracy method, comprising:
分别从视频的多个视频帧中提取防伪段,得到多个防伪段;Extracting anti-counterfeiting segments from multiple video frames of the video respectively to obtain multiple anti-counterfeiting segments;
对提取的所述多个防伪段进行拼接,得到所述视频的防伪标记;splicing the extracted anti-counterfeiting segments to obtain anti-counterfeiting marks of the video;
基于所述防伪标记对所述视频进行盗版识别。The video is identified as piracy based on the anti-counterfeiting mark.
本申请的另一方面,提供一种电子设备,所述电子设备包括:Another aspect of the present application provides an electronic device, the electronic device comprising:
一个或多个处理器;one or more processors;
存储装置,用于存储一个或多个程序,storage means for storing one or more programs,
当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如上述一方面所提供的视频防盗版方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the video anti-piracy method provided by the above aspect.
本申请的另一方面,提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如上述一方面所提供的视频防盗版方法。Another aspect of the present application provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the video anti-piracy method provided in the above-mentioned aspect.
由上述技术方案可知,在本申请一些实施例中,基于视频的视频源信息生成所述视频的防伪标记,然后,对所述防伪标记进行拆分,得到多个防伪段,进而,将所述多个防伪段顺序添加到所述视频的多个视频帧中。这样,后续可以从视频的不同视频帧中提取多个防伪段拼接得到完整的防伪标记,从而能够基于所述防伪标记对所述视频进行盗版识别,以有效避免视频被盗版。It can be seen from the above technical solutions that in some embodiments of the present application, the anti-counterfeiting mark of the video is generated based on the video source information of the video, and then the anti-counterfeiting mark is split to obtain a plurality of anti-counterfeiting segments, and then the Multiple security segments are sequentially added to multiple video frames of the video. In this way, multiple anti-counterfeiting segments can be subsequently extracted from different video frames and spliced to obtain a complete anti-counterfeiting mark, so that the video can be identified as piracy based on the anti-counterfeiting mark, so as to effectively prevent the video from being pirated.
由上述技术方案可知,在本申请另一些实施例中,可以分别从视频的多个视频帧中提取防伪段,得到多个防伪段,然后,对提取的所述多个防伪段进行拼接,得到所述视频的防伪标记,进而,基于所述防伪标记对所述视频进行防盗版识别。这样,能够基于每个视频的防伪标记来识别盗版视频,以有效避免视频被盗版。As can be seen from the above technical solutions, in other embodiments of the present application, anti-counterfeiting segments can be extracted from multiple video frames of a video respectively to obtain multiple anti-counterfeiting segments, and then the extracted multiple anti-counterfeiting segments are spliced to obtain The anti-counterfeiting mark of the video, and further, the anti-counterfeiting identification of the video is performed based on the anti-counterfeiting mark. In this way, pirated videos can be identified based on the anti-counterfeiting marks of each video, so as to effectively prevent videos from being pirated.
另外,采用本申请所提供的技术方案,由于所述视频的防伪标记被拆分为多个防伪段分别添加在不同视频中,可以有效避免整个视频标记添加在一个视频帧中被破解,提高了防伪标记的安全性,以提高视频防盗版效果。In addition, by adopting the technical solution provided by the present application, since the anti-counterfeiting mark of the video is divided into multiple anti-counterfeiting segments and added to different videos respectively, the whole video mark can be effectively prevented from being cracked when added in one video frame, which improves the performance of the video. Security of anti-counterfeiting marks to improve video anti-piracy effect.
另外,采用本申请所提供的技术方案,由于所述视频的防伪标记被拆分为多个防伪段分别添加在不同视频中,可以避免整个视频标记添加在一个视频帧中由于视频标记的数据量较大而影响视频后续播放的流畅性,有效保证用户的视频观看体验。In addition, with the technical solution provided by the present application, since the anti-counterfeiting mark of the video is divided into multiple anti-counterfeiting segments and added to different videos respectively, it can be avoided that the entire video mark is added in one video frame due to the data volume of the video mark. It is large and affects the smoothness of subsequent video playback, effectively ensuring the user's video viewing experience.
【附图说明】【Description of drawings】
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其它的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the accompanying drawings that are required in the description of the embodiments or the prior art. Obviously, the drawings in the following description are from the present application. In some embodiments, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without any creative effort.
图1为本申请一实施例提供的视频防盗版方法的流程示意图;1 is a schematic flowchart of a video anti-piracy method provided by an embodiment of the present application;
图2为本申请一实施例中对所述防伪标记进行拆分得到多个防伪段的一个流程示意图;FIG. 2 is a schematic flowchart of splitting the anti-counterfeiting mark to obtain a plurality of anti-counterfeiting segments according to an embodiment of the application;
图3为本申请一实施例中首个防伪数据的防伪段的一个格式示意图;3 is a schematic diagram of a format of an anti-counterfeiting segment of the first anti-counterfeiting data in an embodiment of the application;
图4为本申请一实施例中视频帧与防伪段之间的一个对应示意图;4 is a schematic diagram of a correspondence between a video frame and an anti-counterfeiting segment in an embodiment of the present application;
图5为本申请一实施例中确定各防伪段在视频帧中的位置的一个流程示意图;5 is a schematic flowchart of determining the position of each anti-counterfeiting segment in a video frame according to an embodiment of the application;
图6为本申请一实施例中视频帧的一个宏块结构示意图;6 is a schematic diagram of a macroblock structure of a video frame in an embodiment of the present application;
图7为本申请另一实施例提供的视频防盗版方法的流程示意图;7 is a schematic flowchart of a video anti-piracy method provided by another embodiment of the present application;
图8为本申请另一实施例中从视频的多个视频帧中提取防伪段得到多个防伪段的一个流程示意图;8 is a schematic flowchart of extracting anti-counterfeiting segments from multiple video frames of a video to obtain multiple anti-counterfeiting segments in another embodiment of the present application;
图9为适于用来实现本申请实施方式的示例性计算机系统/服务器12的框图。9 is a block diagram of an exemplary computer system/
【具体实施方式】【Detailed ways】
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的全部其它实施例,都属于本申请保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.
需要说明的是,本申请实施例中所涉及的终端可以包括但不限于手机、个人数字助理(Personal Digital Assistant,PDA)、无线手持设备、平板电脑(Tablet Computer)、个人电脑(Personal Computer,PC)、MP3播放器、MP4播放器、可穿戴设备(例如,智能眼镜、智能手表、智能手环等)等。It should be noted that the terminals involved in the embodiments of the present application may include but are not limited to mobile phones, personal digital assistants (Personal Digital Assistants, PDAs), wireless handheld devices, tablet computers (Tablet Computers), and personal computers (Personal Computers, PCs). ), MP3 players, MP4 players, wearable devices (eg, smart glasses, smart watches, smart bracelets, etc.), etc.
另外,本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。In addition, the term "and/or" in this article is only an association relationship to describe the associated objects, indicating that there can be three kinds of relationships, for example, A and/or B, it can mean that A exists alone, A and B exist at the same time, There are three cases of B alone. In addition, the character "/" in this document generally indicates that the related objects are an "or" relationship.
如背景技术中所述,各种视频、尤其是短视频,盗版情况严重,现有技术通过在视频帧中打水印等方式,由于视频帧中的水印很容易被去除,无法从根本上解决视频的盗版问题。As mentioned in the background art, various videos, especially short videos, are seriously pirated. In the prior art, the watermark in the video frame is easily removed by means of watermarking in the video frame, and the video cannot be fundamentally solved. piracy problem.
因此,亟需提供一种视频防盗版方法,用以识别盗版视频,从而避免视频被盗版。Therefore, there is an urgent need to provide a video anti-piracy method for identifying pirated videos, thereby preventing videos from being pirated.
图1为本申请一实施例提供的视频防盗版方法的流程示意图,如图1所示。FIG. 1 is a schematic flowchart of a video anti-piracy method provided by an embodiment of the present application, as shown in FIG. 1 .
101、基于视频的视频源信息生成所述视频的防伪标记。101. Generate an anti-counterfeiting mark of the video based on video source information of the video.
其中,所述视频源信息用于唯一标识所述视频。由于视频源信息用于唯一标识一个视频,基于视频源信息来生成防伪标记,这样,生成的每个防伪标记便可以唯一对应一个视频,通过比较防伪标记是否相同,便可以确定对应的视频是否来自于同一个视频,从而可以识别出视频是否被盗版。The video source information is used to uniquely identify the video. Since the video source information is used to uniquely identify a video, an anti-counterfeiting mark is generated based on the video source information. In this way, each anti-counterfeiting mark generated can uniquely correspond to a video. By comparing whether the anti-counterfeiting marks are the same, it can be determined whether the corresponding video comes from on the same video, so that it can be identified whether the video is pirated.
可选地,在其中一些实现方式中,所述视频源信息例如可以包括但不限于以下任意一项或多项:所述视频的名称,所述视频的拍摄者,所述视频的生产者,所述视频的生产日期,等等。本申请实施例对视频源信息的具体内容构成不做限制。Optionally, in some implementation manners, the video source information may include, but is not limited to, any one or more of the following: the name of the video, the photographer of the video, the producer of the video, production date of said video, etc. This embodiment of the present application does not limit the specific content composition of the video source information.
可选地,在其中一些实现方式中,可以基于预设算法,对视频的视频源信息进行计算,从而得到视频的防伪标记。其中的预设算法可以是任意的散列算法,例如MD5算法等,本申请实施例对具体采用的算法不做限制。Optionally, in some of the 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 an MD5 algorithm, and the embodiment of the present application does not limit the specific algorithm used.
102、对所述防伪标记进行拆分,得到多个防伪段。102. Split the anti-counterfeiting mark to obtain multiple anti-counterfeiting segments.
本申请实施例中,对防伪可以拆分的防伪段的数量不做限制,具体可以根据防伪标记的长度、视频的帧率等确定。例如,在具体实现中,可以将防伪标记拆分为3~100个防伪段,在几秒钟(例如5s)的时间可播放的视频中添加多个防伪段。In this embodiment of the present application, the number of anti-counterfeiting segments that can be split for anti-counterfeiting is not limited, and can be specifically 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-100 anti-counterfeiting segments, and multiple anti-counterfeiting segments are added to a video that can be played in a few seconds (eg, 5s).
103、将所述多个防伪段顺序添加到所述视频的多个视频帧中。103. Add the multiple anti-counterfeiting segments to multiple video frames of the video sequentially.
需要说明的是,101~103的执行主体的部分或全部可以为位于终端的应用,或者还可以为设置终端的应用中的插件或软件开发工具包(Software Development Kit,SDK)等功能单元,或者还可以为位于网络侧服务器中的应用,本申请实施例对此不进行特别限定。It should be noted that, part or all of the execution bodies of 101 to 103 may be applications located in the terminal, or may also be functional units such as plug-ins or software development kits (Software Development Kit, SDK) in the application setting the terminal, or It may also be an application located in a network-side server, which is not particularly limited in this embodiment of the present application.
可以理解的是,所述应用可以是安装在终端上的本地程序(nativeApp),或者还可以是终端上的浏览器的一个网页程序(webApp),本申请实施例对此不进行限定。It can be understood that the application may be a local program (nativeApp) installed on the terminal, or may also be a web page program (webApp) of a browser on the terminal, which is not limited in this embodiment of the present application.
这样,后续可以从视频的不同视频帧中提取多个防伪段拼接得到完整的防伪标记,从而能够基于所述防伪标记对所述视频进行盗版识别,以有效避免视频被盗版。In this way, multiple anti-counterfeiting segments can be subsequently extracted from different video frames and spliced to obtain a complete anti-counterfeiting mark, so that the video can be identified as piracy based on the anti-counterfeiting mark, so as to effectively prevent the video from being pirated.
另外,采用本申请所提供的技术方案,由于所述视频的防伪标记被拆分为多个防伪段分别添加在不同视频中,可以有效避免整个视频标记添加在一个视频帧中被破解,提高了防伪标记的安全性,以提高视频防盗版效果。In addition, by adopting the technical solution provided by the present application, since the anti-counterfeiting mark of the video is divided into multiple anti-counterfeiting segments and added to different videos respectively, the whole video mark can be effectively prevented from being cracked when added in one video frame, which improves the performance of the video. Security of anti-counterfeiting marks to improve video anti-piracy effect.
另外,采用本申请所提供的技术方案,由于所述视频的防伪标记被拆分为多个防伪段分别添加在不同视频中,可以避免整个视频标记添加在一个视频帧中由于视频标记的数据量较大而影响视频后续播放的流畅性,有效保证用户的视频观看体验。In addition, with the technical solution provided by the present application, since the anti-counterfeiting mark of the video is divided into multiple anti-counterfeiting segments and added to different videos respectively, it can be avoided that the entire video mark is added in one video frame due to the data volume of the video mark. It is large and affects the smoothness of subsequent video playback, effectively ensuring the user's video viewing experience.
图2为本申请一实施例中对所述防伪标记进行拆分得到多个防伪段的一个流程示意图。如图2所示,在图1所示实施例的基础上,102可以包括:FIG. 2 is a schematic flowchart of splitting the anti-counterfeiting mark to obtain a plurality of anti-counterfeiting segments according to an embodiment of the present application. As shown in FIG. 2, based on the embodiment shown in FIG. 1, 102 may include:
201、将所述防伪标记拆分为多个部分,得到多个防伪数据。201. Split the anti-counterfeiting mark into multiple parts to obtain multiple pieces of anti-counterfeiting data.
202、分别确定包括所述多个防伪数据中各防伪数据的防伪段在视频帧中的位置。202. Determine the positions of the anti-counterfeiting segments including each piece of anti-counterfeiting data in the plurality of anti-counterfeiting data in the video frame respectively.
203、对跳过运行(skip run)标识、序列开始标识信息、所述多个防伪数据中对应的防伪段数量、所述首个防伪数据和下段索引信息进行封装,得到所述首个防伪数据的防伪段。203. Encapsulate the skip run identifier, sequence start identifier information, the number of anti-counterfeiting segments corresponding to the plurality of anti-counterfeiting data, the first anti-counterfeiting data and the index information of the next segment to obtain the first anti-counterfeiting data security section.
其中,序列开始标识信息用于标识首个防伪段的开始,可以预设设定,例如可以为1011;下段索引信息用于表示下一个防伪段的在视频帧中的位置;skip run标识用于表示相应的数据块不会被播放器播放。Among them, the sequence start identification information is used to identify the beginning of the first anti-counterfeiting segment, which can be preset, such as 1011; the next segment index information is used to indicate the position of the next anti-counterfeiting segment in the video frame; skip run identification is used for Indicates that the corresponding data block will not be played by the player.
204、分别针对所述多个防伪数据中所述首个防伪数据和末个防伪数据以外的其他各防伪数据,对所述skip run标识、所述防伪段数量、所述防伪数据和下段索引信息进行封装,得到所述防伪数据的防伪段。204. For each anti-counterfeiting data other than the first anti-counterfeiting data and the last anti-counterfeiting data in the plurality of anti-counterfeiting data, respectively, compare the skip run identifier, the number of anti-counterfeiting segments, the anti-counterfeiting data, and the index information of the lower segment. Encapsulation is performed to obtain an anti-counterfeiting segment of the anti-counterfeiting data.
205、对所述skip run标识、所述防伪段数量、所述末个防伪数据进行封装,得到所述末个防伪数据的防伪段。205. Encapsulate the skip run identifier, the number of anti-counterfeiting segments, and the last anti-counterfeiting data to obtain an anti-counterfeiting segment of the last anti-counterfeiting data.
需要说明的是,上述操作203~205之间不存在严格的执行顺序限制,可以以任意先后顺序执行,也可以同时执行,本申请实施例仅示例性地示出一种顺序执行的情况。It should be noted that the
如图3所示,为本申请一实施例中首个防伪数据的防伪段的一个格式示意图。其中,非首个防伪数据的防伪段相对于首个防伪数据的防伪段不包括其中的序列开始标识信息,末个防伪数据的防伪段相对于其他非首个防伪数据的防伪段不包括其中的下段索引信息。其中,每个防伪段包括的几部分数据的顺序可以调整,并不限于图3所示实施例顺序。As shown in FIG. 3 , it is a schematic diagram of a format of an anti-counterfeiting section of the first anti-counterfeiting data in an embodiment of the present application. Among them, the anti-counterfeiting section of the non-first anti-counterfeiting data does not include the sequence start identification information relative to the anti-counterfeiting section of the first anti-counterfeiting data, and the anti-counterfeiting section of the last anti-counterfeiting data does not include the anti-counterfeiting section relative to other non-first anti-counterfeiting data. The next index information. The order of several parts of data included in each anti-counterfeiting segment can be adjusted, and is not limited to the order of the embodiment shown in FIG. 3 .
基于本实施例,确定出各防伪段在视频帧中的位置后,可以依次通过前一个防伪段携带下一个防伪段的位置索引(下段索引信息),这样,只有确定出首个防伪段在视频帧中的位置并读取首个防伪段中的下段索引信息后,才能依次读取相邻的下个防伪段中的防伪数据和下个防伪段相邻的后一个防伪段中的下段索引信息,以此类推,由此提高了防伪数据的安全性、从而提高了整个防伪标记的安全性。另外,由于包括防伪段的数据块携带有skip run标识,不会被播放器播放,从而不会影响视频播放效果。Based on this embodiment, after the position of each anti-counterfeiting segment in the video frame is determined, the position index (lower index information) of the next anti-counterfeiting segment can be carried through the previous anti-counterfeiting segment in turn. After reading the position in the frame and reading the index information of the next segment in the first anti-counterfeiting segment, the anti-counterfeiting data in the adjacent next anti-counterfeiting segment and the index information of the next segment in the next anti-counterfeiting segment adjacent to the next anti-counterfeiting segment can be read in turn, so that And so on, thereby improving the security of the anti-counterfeiting data, thereby improving the security of the whole anti-counterfeiting mark. In addition, since the data block including the anti-counterfeiting segment carries the skip run flag, it will not be played by the player, and thus will not affect the video playback effect.
如图4所示,为本申请一实施例中视频帧与防伪段之间的一个对应示意图。As shown in FIG. 4 , it is a schematic diagram of a correspondence between a video frame and an anti-counterfeiting segment in an embodiment of the present application.
图5为本申请一实施例中确定各防伪段在视频帧中的位置的一个流程示意图。如图5所示,在图2所示实施例的基础上,202可以包括:FIG. 5 is a schematic flowchart of determining the position of each anti-counterfeiting segment in a video frame according to an embodiment of the present application. As shown in FIG. 5, based on the embodiment shown in FIG. 2, 202 may include:
501、基于预设散列算法,将所述防伪标记映射到指定数值区间范围内的一个数值。501. Based on a preset hash algorithm, map the anti-counterfeiting mark to a value within a specified value range.
其中的指定数值区间范围可以根据具体的视频编码标准和采用帧格式确定,例如,在其中一个实施例中,指定数值区间范围可以是1~5。本申请实施例对指定数值区间范围的具体取值不做限制。The specified numerical interval range may be determined according to the specific video coding standard and the adopted frame format. For example, in one embodiment, the specified numerical interval range may be 1-5. The embodiment of the present application does not limit the specific value of the specified numerical interval range.
502、以所述一个数值作为所述首个防伪段在视频帧中的位置。502. Use the one value as the position of the first anti-counterfeiting segment in the video frame.
503、按照预设方式确定其他各非首个防伪段在视频帧中的位置。503. Determine the positions of the other non-first anti-counterfeiting segments in the video frame according to a preset method.
基于本实施例,基于预设散列算法将所述防伪标记映射到指定数值区间范围内的一个数值,作为所述首个防伪段在视频帧中的位置,可以提高首个防伪段位置的安全性,不易被破解和擦除,从而使得其他非首个防伪段的位置无法被确定和读取数据,提高了整个防伪标记的安全性,使得防伪标记不易被去除。Based on this embodiment, the anti-counterfeiting mark is mapped to a value within a specified numerical range based on a preset hash algorithm as the position of the first anti-counterfeiting segment in the video frame, which can improve the security of the position of the first anti-counterfeiting segment It is not easy to be cracked and erased, so that the positions of other non-first anti-counterfeiting segments cannot be determined and read data, which improves the security of the entire anti-counterfeiting mark and makes it difficult to remove the anti-counterfeiting mark.
可选地,在其中一些可能的实现方式中,在503中,可以在所述指定数值区间范围内随机确定一个数值作为其他各防伪段在视频帧中的位置,即针对每个他各防伪段,均可以随机确定其在视频帧中的位置,这样,由于其他各防伪段在视频帧中的位置随机,不易被确定位置和读取,可以提高防伪段信息的安全性,从而提高防伪标记的安全性。Optionally, in some of the possible implementations, in 503, a value may be randomly determined within the specified value interval as the position of each other anti-counterfeiting segment in the video frame, that is, for each other anti-counterfeiting segment. , can randomly determine its position in the video frame, in this way, due to the random positions of other anti-counterfeiting segments in the video frame, it is not easy to determine the position and read, which can improve the security of the anti-counterfeiting segment information, thereby improving the security of the anti-counterfeiting mark. safety.
或者,在其中一些可能的实现方式中,在503中,也可以依次按照所述多个防伪数据中各防伪段在视频帧中的位置和预设规则,确定下一个防伪段的在视频帧中的位置,其中的预设规则可以根据实际情况确定,例如,在其中一个实施例中,可以将各防伪段在视频帧中的位置逐渐减1或加1作为下一个防伪段的在视频帧中的位置,也可以采用预设函数基于各防伪段在视频帧中的位置确定下一个防伪段的在视频帧中的位置,本申请实施例对预设规则的具体方式不做限制。这样,由于需要基于各防伪段在视频帧中的位置和预设规则确定下一个防伪段的在视频帧中的位置,在无法获知预设规则的情况下,便无法确定下一个防伪段的在视频帧中的位置、从而避免下一个防伪段中的防伪数据被读取,可以提高防伪段信息的安全性,从而提高防伪标记的安全性。Or, in some of the possible implementation manners, in 503, it is also possible to determine the location of the next anti-counterfeiting segment in the video frame according to the position of each anti-counterfeiting segment in the plurality of anti-counterfeiting data in the video frame and the preset rule. The preset rules can be determined according to the actual situation. For example, in one embodiment, the position of each anti-counterfeiting segment in the video frame can be gradually decreased by 1 or increased by 1 as the next anti-counterfeiting segment in the video frame. A preset function can 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. The embodiment of the present application does not limit the specific manner of the preset rule. In this way, since it is necessary 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 the preset rules, it is impossible to determine the location of the next anti-counterfeiting segment without knowing the preset rules. The position in the video frame, thereby preventing the anti-counterfeiting data in the next anti-counterfeiting segment from being read, can improve the security of the anti-counterfeiting segment information, thereby improving the security of the anti-counterfeiting mark.
本申请实施例可以适用于视频编码标准、任意格式的视频。在具体实现中,可以将每个防伪段插入到视频帧中的相应位置。The embodiments of the present application may be applicable to video coding standards and videos of any format. In a specific implementation, each anti-counterfeiting segment can be inserted into a corresponding position in the video frame.
例如,在H.264/AVC视频编码标准中,原始码流(裸流)是由一个接一个网络抽象层单元(Network Abstract Layer Unit,NALU)组成,整个系统框架被分为了两个层面:视频编码层面(Video Coding Layer,VCL)和网络提取层网络抽象层面(Network AbstractLayer,NAL)。其中,一个原始的NALU常由起始码(StartCode)、NALU头(NALU Header)和NALU载荷(NALU Payload)三部分组成,其中,NALU载荷是NALU的主体。NALU主体中包含了片头和片上数据,1帧=n个片(slice),1片=n个宏块(MB),1宏块=16x16yuv数据。其中,宏块是视频信息的主要承载者,一个编码图像通常划分为多个宏块,包含着每一个像素的亮度和色度信息,视频解码最主要的工作则是提供高效的方式从码流中获得宏块中像素阵列。For example, in the H.264/AVC video coding standard, the original code stream (bare stream) is composed of Network Abstract Layer Unit (NALU) one after another, and the entire system framework is divided into two levels: video Coding layer (Video Coding Layer, VCL) and network abstraction layer network abstraction layer (Network AbstractLayer, NAL). Wherein, an original NALU usually consists of three parts: a start code (StartCode), a NALU header (NALU Header) and a NALU payload (NALU Payload), wherein the NALU payload is the main body of the NALU. The main body of the NALU includes slice headers and on-chip data, 1 frame=n slices (slices), 1 slice=n macroblocks (MB), and 1 macroblock=16×16 yuv data. Among them, the macroblock is the main bearer of video information. An encoded image is usually divided into multiple macroblocks, which contain the luminance and chrominance information of each pixel. The main task of video decoding is to provide an efficient way to convert the code stream from the to obtain the pixel array in the macroblock.
可选地,在其中一些可能的实现方式中,在202中,可以分别确定各防伪段在视频帧中作为携带所述skip run标识的宏块的宏块序号。相应地,在102对所述防伪标记进行拆分,得到多个防伪段之后,还可以分别对所述多个防伪段中的各防伪段进行阿尔法(α)通道转换,将各防伪段的α通道转换为透明背景色。在103中,分别根据各防伪段的宏块序号,将所述防伪段作为一个新增宏块插入对应视频帧中基于所述防伪段的宏块序号确定的位置。Optionally, in some of the possible implementation manners, in 202, each anti-counterfeiting segment may be determined in the video frame as the macroblock sequence number of the macroblock carrying the skip run identifier. Correspondingly, after the anti-counterfeiting mark is split at 102 to obtain multiple anti-counterfeiting segments, alpha (α) channel conversion may also be performed on each anti-counterfeiting segment in the multiple anti-counterfeiting segments, and the α of each anti-counterfeiting segment can be converted into The channel is converted to a transparent background color. In 103 , according to the macroblock serial numbers of each anti-counterfeiting segment, insert the anti-counterfeiting segment as a newly added macroblock into a position determined based on the macroblock serial number of the anti-counterfeiting segment in the corresponding video frame.
基于本实施例,将防伪段的α通道转换为透明背景色,可以使防伪段中的信息在后续视频播放的过程中不参与视频渲染,不会改变整体视频显示的画面,从而不会导致防伪数据泄露、也不会影响用户的视频观看体验。Based on this embodiment, converting the alpha channel of the anti-counterfeiting segment to a transparent background color can prevent the information in the anti-counterfeiting segment from participating in video rendering during the subsequent video playback process, and will not change the overall video display screen, thereby preventing anti-counterfeiting. Data leakage will not affect the user's video viewing experience.
在一种可能的具体实现方式中,将所述防伪段作为一个新增宏块插入对应视频帧中基于所述防伪段的宏块序号确定的位置时,可以先确定所述对应视频中携带所述skiprun标识的宏块数量是否小于所述防伪段的宏块序号M-1;In a possible specific implementation manner, when inserting the anti-counterfeiting segment as a newly added macroblock into a position determined based on the macroblock sequence number of the anti-counterfeiting segment in the corresponding video frame, it is possible to first determine that the corresponding video carries the Whether the number of macroblocks identified by the skiprun is less than the macroblock sequence number M-1 of the anti-counterfeiting segment;
若所述对应视频中携带所述skip run标识的宏块数量小于M-1,则在所述视频帧中补齐携带有skip run标识的宏块、使得对应视频中携带所述skip run标识的宏块数量等于M-1,然后,将所述防伪段作为一个新增宏块插入对应视频帧中最后一个携带所述skiprun标识的宏块的后部;If the number of macroblocks carrying the skip run identifier in the corresponding video is less than M-1, then fill in the macroblocks carrying the skip run identifier in the video frame, so that the corresponding video carries the skip run identifier. The number of macroblocks is equal to M-1, and then, the anti-counterfeiting segment is inserted into the rear of the last macroblock carrying the skiprun mark in the corresponding video frame as a newly added macroblock;
否则,若所述对应视频中携带所述skip run标识的宏块数量不小于M-1,则将所述防伪段作为一个新增宏块插入对应视频帧中基于所述防伪段的宏块序号确定的位置。Otherwise, if the number of macroblocks carrying the skip run identifier in the corresponding video is not less than M-1, insert the anti-counterfeiting segment as a newly added macroblock into the corresponding video frame based on the macroblock sequence number of the anti-counterfeiting segment determined location.
图6为本申请一实施例中视频帧的一个宏块结构示意图。如图6所述,假设本实施例中确定的防伪段的宏块序号为4,即为一个视频帧中的第4个携带所述skip run标识的宏块,此时,由于该视频帧中只有1个携带所述skip run标识的宏块,可以补齐2个携带所述skip run标识的宏块(如图6中第2、3个携带所述skip run标识的宏块),该补齐的2个携带所述skip run标识的宏块不携带其他数据,然后将防伪段作为第4个新增宏块插入视频帧中最后一个携带所述skip run标识的宏块的后部,如图6中第4个携带所述skip run标识的宏块。FIG. 6 is a schematic diagram of 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 macroblock sequence number of the anti-counterfeiting segment determined in this embodiment is 4, that is, the fourth macroblock in a video frame that carries the skip run identifier. There is only one macroblock carrying the skip run identifier, and two macroblocks carrying the skip run identifier can be supplemented (the second and third macroblocks carrying the skip run identifier in FIG. 6 ). The 2 macroblocks carrying the skip run logo in the same way do not carry other data, and then insert the anti-counterfeiting segment as the 4th newly added macroblock into the rear of the last macroblock carrying the skip run logo in the video frame, such as The fourth macroblock in FIG. 6 carries the skip run identifier.
可选地,在其中一些实现方式中,103中,可以将所述多个防伪段顺序添加到所述视频中连续的多个视频帧中。这样,后续可以逐帧读取防伪段,有助于提高防伪段据读取的效率,从而提高视频盗版的识别效率。Optionally, in some of the implementation manners, in 103, the plurality of anti-counterfeiting segments may be sequentially added to a plurality of consecutive video frames in the video. In this way, the anti-counterfeiting segment can be read frame by frame subsequently, which helps to improve the efficiency of reading the anti-counterfeiting segment data, thereby improving the identification efficiency of video piracy.
可选地,在其中一些实现方式中,103中,可以将所述多个防伪段依次循环添加到所述视频中的各视频帧中,其中,所述视频的每个视频帧中添加有一个防伪段。Optionally, in some of the implementation manners, in 103, the plurality of anti-counterfeiting segments may be added to each video frame in the video in sequence, wherein each video frame of the video is added with one Security section.
基于本实施例,即使该视频被其他用户截取其中的某个片段或者去掉视频的头部、尾部,依然可以从已有的视频帧中读取下一个循环中的首个防伪段以及其他各非首个防伪段,从而可以得到完整的防伪标记,实现对视频的盗版识别。Based on this embodiment, even if a certain segment of the video is intercepted by other users or the head and tail of the video are removed, the first anti-counterfeiting segment and other non-forgery segments in the next cycle can still be read from the existing video frame. The first anti-counterfeiting segment, so that a complete anti-counterfeiting mark can be obtained to realize the piracy identification of the video.
或者,可选地,在另一些实现方式中,103中,也可以将所述多个防伪段依次循环添加到所述视频中的部分视频帧中,其中,在一个循环中所述多个防伪段被顺序添加到所述视频中连续的多个视频帧中,不同循环之间添加有防伪段的视频帧相邻或者按照预设方式间隔一定视频帧。即,可以在视频的多个视频帧中顺序添加所述多个防伪段,然后可以在所述多个视频帧后续相邻的下一组多个视频帧中顺序添加所述多个防伪段,也可以所述多个视频帧后续间隔若干视频帧后的多个视频帧中顺序添加所述多个防伪段,每一组多个视频帧与上一组多个视频帧都可以相邻或者间隔若干帧。Or, optionally, in other implementation manners, in 103, the plurality of anti-counterfeiting segments may also be added to part of the video frames in the video in a loop, wherein in one loop, the plurality of anti-counterfeiting segments The segments are sequentially added to a plurality of consecutive video frames in the video, and the video frames to which the anti-counterfeiting segment is added between different loops are adjacent or spaced by a certain video frame in a preset manner. That is, the multiple anti-counterfeiting segments may be sequentially added to multiple video frames of the video, and then the multiple anti-counterfeiting segments may be sequentially added to the next group of multiple video frames adjacent to the multiple video frames, The multiple anti-counterfeiting segments may also be sequentially added to multiple video frames after the multiple video frames are followed by several video frames, and each group of multiple video frames may be adjacent or spaced from the previous group of multiple video frames. several frames.
基于本实施例,即使该视频被其他用户截取其中的某个片段或者去掉视频的头部、尾部,依然可以从已有的视频帧中读取下一个循环中的首个防伪段以及其他各非首个防伪段,从而可以得到完整的防伪标记,实现对视频的盗版识别;并且,由于部分视频帧中未添加防伪段,可以减少数据处理量,提高视频防盗版的处理效率。Based on this embodiment, even if a certain segment of the video is intercepted by other users or the head and tail of the video are removed, the first anti-counterfeiting segment and other non-forgery segments in the next cycle can still be read from the existing video frame. The first anti-counterfeiting segment can obtain a complete anti-counterfeiting mark and realize the identification of video piracy; and, since the anti-counterfeiting segment is not added to some video frames, the amount of data processing can be reduced and the processing efficiency of video anti-piracy can be improved.
图7为本申请另一实施例提供的视频防盗版方法的流程示意图,如图7所示。FIG. 7 is a schematic flowchart of a video anti-piracy method provided by another embodiment of the present application, as shown in FIG. 7 .
701、分别从视频的多个视频帧中提取防伪段,得到多个防伪段。701. Extract anti-counterfeiting segments from multiple video frames of the video respectively to obtain multiple anti-counterfeiting segments.
702、对提取的所述多个防伪段进行拼接,得到所述视频的防伪标记。702. Splicing the extracted anti-counterfeiting segments to obtain an anti-counterfeiting mark of the video.
703、基于所述防伪标记对所述视频进行盗版识别。703. Perform piracy identification on the video based on the anti-counterfeiting mark.
需要说明的是,701~703的执行主体的部分或全部可以为位于终端的应用(例如播放器),或者还可以为设置终端的应用中的插件或软件开发工具包(SoftwareDevelopment Kit,SDK)等功能单元,或者还可以为位于网络侧服务器(例如视频平台、自媒体平台)中的应用,本申请实施例对此不进行特别限定。It should be noted that some or all of the execution bodies of 701 to 703 may be applications located in the terminal (such as a player), or may also be plug-ins or software development kits (Software Development Kit, SDK) in the application setting the terminal, etc. A functional unit, or may also be an application located in a network-side server (eg, a video platform, a self-media platform), which is not particularly limited in this embodiment of the present application.
可以理解的是,所述应用可以是安装在终端上的本地程序(nativeApp),或者还可以是终端上的浏览器的一个网页程序(webApp),本申请实施例对此不进行限定。It can be understood that the application may be a local program (nativeApp) installed on the terminal, or may also be a web page program (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 marks of each video, so as to effectively prevent videos from being pirated.
另外,采用本申请所提供的技术方案,由于所述视频的防伪标记被拆分为多个防伪段分别添加在不同视频中,可以有效避免整个视频标记添加在一个视频帧中被破解,提高了防伪标记的安全性,以提高视频防盗版效果。In addition, by adopting the technical solution provided by the present application, since the anti-counterfeiting mark of the video is divided into multiple anti-counterfeiting segments and added to different videos respectively, the whole video mark can be effectively prevented from being cracked when added in one video frame, which improves the performance of the video. Security of anti-counterfeiting marks to improve video anti-piracy effect.
另外,采用本申请所提供的技术方案,由于所述视频的防伪标记被拆分为多个防伪段分别添加在不同视频中,可以避免整个视频标记添加在一个视频帧中由于视频标记的数据量较大而影响视频后续播放的流畅性,有效保证用户的视频观看体验。In addition, with the technical solution provided by the present application, since the anti-counterfeiting mark of the video is divided into multiple anti-counterfeiting segments and added to different videos respectively, it can be avoided that the entire video mark is added in one video frame due to the data volume of the video mark. It is large and affects the smoothness of subsequent video playback, effectively ensuring the user's video viewing experience.
图8为本申请另一实施例中从视频的多个视频帧中提取防伪段得到多个防伪段的一个流程示意图。如图8所示,在图7所示实施例的基础上,701可以包括:FIG. 8 is a schematic flowchart of extracting anti-counterfeiting segments from multiple video frames of a video to obtain multiple anti-counterfeiting segments in another embodiment of the present application. As shown in FIG. 8, based on the embodiment shown in FIG. 7, 701 may include:
801、基于与所述视频相似的目标视频的防伪标记确定所述多个防伪段中首个防伪段在所述视频的视频帧中的位置,并根据首个防伪段在所述视频的视频帧中的位置读取所述首个防伪段中的首个防伪数据、防伪段数量和下段索引信息。801. Determine the position of the first anti-counterfeiting segment in the video frame of the video based on the anti-counterfeiting mark of the target video similar to the video, and determine the position of the first anti-counterfeiting segment in the video frame of the video according to the Read the first anti-counterfeiting data, the number of anti-counterfeiting sections and the index information of the next section in the first anti-counterfeiting segment.
其中,所述下段索引信息用于下一个防伪段的在视频帧中的位置。Wherein, the lower segment index information is used for the position of the next anti-counterfeiting segment in the video frame.
其中,所述目标视频的防伪标记基于所述目标视频的视频源信息生成。其中,所述视频源信息用于唯一标识所述视频。Wherein, the anti-counterfeiting mark of the target video is generated based on the video source information of the target video. The video source information is used to uniquely identify the video.
可选地,在其中一些实现方式中,所述视频源信息例如可以包括但不限于以下任意一项或多项:所述视频的名称,所述视频的拍摄者,所述视频的生产者,所述视频的生产日期,等等。本申请实施例对视频源信息的具体内容构成不做限制。Optionally, in some implementation manners, the video source information may include, but is not limited to, any one or more of the following: the name of the video, the photographer of the video, the producer of the video, production date of said video, etc. This embodiment of the present application does not limit the specific content composition of the video source information.
可选地,在其中一些实现方式中,可以基于预设算法,对视频的视频源信息进行计算,从而得到视频的防伪标记。其中的预设算法可以是任意的散列算法,例如MD5算法等,本申请实施例对具体采用的算法不做限制。Optionally, in some of the 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 an MD5 algorithm, and the embodiment of the present application does not limit the specific algorithm used.
802、依次根据各防伪段中的下段索引信息,从视频帧中读取下一个防伪段中的防伪数据和下段索引信息,直至根据所述防伪段数量读取到所述多个防伪段中所有防伪段中的防伪数据。802. Read 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 in turn, until all the multiple anti-counterfeiting sections are read according to the number of the anti-counterfeiting sections. Anti-counterfeiting data in the anti-counterfeiting segment.
相应地,该实施例中,在702中,可以将所述多个防伪段中的防伪数据进行顺序拼接,得到所述视频的防伪标记。Correspondingly, in this embodiment, in 702, the anti-counterfeiting data in the plurality of anti-counterfeiting segments may be sequentially spliced to obtain the anti-counterfeiting mark of the video.
基于本实施例,基于目标视频的防伪标记确定所述多个防伪段中首个防伪段在所述视频的视频帧中的位置,读取所述首个防伪段中的首个防伪数据、防伪段数量和下段索引信息,依次根据各防伪段中的下段索引信息,从视频帧中读取下一个防伪段中的防伪数据和下段索引信息,直至读取到所述多个防伪段中所有防伪段中的防伪数据,从而拼接得到所述视频的防伪标记对所述视频进行盗版识别,由此提高了防伪数据的安全性、从而提高了整个防伪标记的安全性。Based on this embodiment, the position of the first anti-counterfeiting segment in the video frame of the plurality of anti-counterfeiting segments is determined based on the anti-counterfeiting mark of the target video, and the first anti-counterfeiting data, anti-counterfeiting data in the first anti-counterfeiting segment is read. The number of segments and the index information of the next segment, according to the index information of the lower segment in each anti-counterfeiting segment, read the anti-counterfeiting data and the index information of the next segment from the video frame until all the anti-counterfeiting segments in the multiple anti-counterfeiting segments are read The anti-counterfeiting data in the segment is obtained by splicing to obtain the anti-counterfeiting mark of the video to perform piracy identification on the video, thereby improving the security of the anti-counterfeiting data, thereby improving the security of the entire anti-counterfeiting mark.
若在图8所示实施例中,无法读取到各防伪段在所述视频的视频帧中的位置,则无法读取到其中的防伪数据,出了视频被严重破坏导致未携带任一首个防伪段或者未完整携带多个防伪段中的所有防伪段的情况外,可以确定所述视频与所述目标视频的防伪标记不同,所述视频不是所述目标视频的盗版视频。If in the embodiment shown in FIG. 8 , the position of each anti-counterfeiting segment in the video frame of the video cannot be read, then the anti-counterfeiting data in the video cannot be read, and the video is severely damaged and no piece of music is carried. Except for the case of one anti-counterfeiting segment or not completely carrying all the anti-counterfeiting segments in the multiple anti-counterfeiting segments, it can be determined that the anti-counterfeiting marks of the video and the target video are different, and the video is not a pirated video of the target video.
可选地,在其中一些实现方式中,在801中,可以基于预设散列算法,将所述目标视频的防伪标记映射到指定数值区间范围内的一个数值,然后,以所述一个数值作为所述首个防伪段在所述视频的视频帧中的位置。Optionally, in some of these implementations, in 801, based on a preset hash algorithm, the anti-counterfeiting mark of the target video can be mapped to a numerical value within a specified numerical range, and then the one numerical value is used as the value. The position of the first anti-counterfeiting segment in the video frame of the video.
基于本实施例,基于预设散列算法将所述防伪标记映射到指定数值区间范围内的一个数值,作为所述首个防伪段在视频帧中的位置,可以提高首个防伪段位置的安全性,不易被破解和擦除,从而使得其他非首个防伪段的位置无法被确定和读取数据,提高了整个防伪标记的安全性,使得防伪标记不易被去除。Based on this embodiment, the anti-counterfeiting mark is mapped to a value within a specified numerical range based on a preset hash algorithm as the position of the first anti-counterfeiting segment in the video frame, which can improve the security of the position of the first anti-counterfeiting segment It is not easy to be cracked and erased, so that the positions of other non-first anti-counterfeiting segments cannot be determined and read data, which improves the security of the entire anti-counterfeiting mark and makes it difficult to remove the anti-counterfeiting mark.
在一些可能的具体实现方式中,在所述视频的视频帧中的位置可以包括:在所述视频的视频帧中作为携带所述skip run标识的宏块的宏块序号。In some possible specific implementation manners, the position in the video frame of the video may include: in the video frame of the video, the macroblock sequence number used as the macroblock carrying the skip run identifier.
相应地,根据首个防伪段在所述视频的视频帧中的位置读取所述首个防伪段中的首个防伪数据、防伪段数量和下段索引信息时,可以根据所述首个防伪段在所述视频的视频帧中携带所述skip run标识的宏块的宏块序号,依次以所述视频中的一个视频帧作为当前视频帧,并从所述当前视频中读取对应的宏块,并识别所述对应的宏块中是否包括序列开始标识信息,其中,所述序列开始标识信息用于标识所述首个防伪段的开始。若所述对应的宏块中包括所述序列开始标识信息,则确定所述对应的宏块为所述首个防伪段的宏块,从所述首个防伪段的宏块中读取首个防伪数据、防伪段数量和下段索引信息。否则,若所述对应的宏块中不包括所述序列开始标识信息,则确定所述对应的宏块不是所述首个防伪段的宏块,针对当前视频帧的下一个视频帧,继续执行上述操作,直到确定出所述对应的宏块为所述首个防伪段的宏块,从所述首个防伪段的宏块中读取首个防伪数据、防伪段数量和下段索引信息。Correspondingly, when reading the first anti-counterfeiting data, the number of anti-counterfeiting sections and the index information of the next section in the first anti-counterfeiting section according to the position of the first anti-counterfeiting section in the video frame of the video, you can read the first anti-counterfeiting section according to the first anti-counterfeiting section. The macroblock sequence number of the macroblock identified by the skip run is carried in the video frame of the video, and one video frame in the video is taken as the current video frame in turn, and the corresponding macroblock is read from the current video , and identify whether the corresponding macroblock includes sequence start identification information, wherein the sequence start identification information is used to identify the beginning of the first anti-counterfeiting segment. If the corresponding macroblock includes the sequence start identification information, the corresponding macroblock is determined to be the macroblock of the first anti-counterfeiting segment, and the first anti-counterfeiting segment is read from the macroblock of the first anti-counterfeiting segment. Anti-counterfeiting data, the number of anti-counterfeiting segments and the index information of the next segment. Otherwise, if the corresponding macroblock does not include the sequence start identification information, it is determined that the corresponding macroblock is not the macroblock of the first anti-counterfeiting segment, and the execution continues for the next video frame of the current video frame. The above operations are performed until it is determined that the corresponding macroblock is the macroblock of the first anti-counterfeiting section, and the first anti-counterfeiting data, the number of anti-counterfeiting sections and the next section index information are read from the macroblock of the first anti-counterfeiting section.
基于本实施例,基于多个防伪段被多次循环添加到所述视频中的各视频帧中,即使视频被其他用户截取其中的某个片段或者去掉视频的头部、尾部,依然可以从已有的视频帧中读取下一个循环中的首个防伪段以及其他各非首个防伪段,从而可以得到完整的防伪标记,实现对视频的盗版识别。Based on this embodiment, based on multiple anti-counterfeiting segments being added to each video frame in the video repeatedly, even if a certain segment of the video is intercepted by other users or the head and tail of the video are removed, the video can still be retrieved from the video. In some video frames, the first anti-counterfeiting segment in the next cycle and other non-first anti-counterfeiting segments can be read, so that a complete anti-counterfeiting mark can be obtained to realize video piracy identification.
根据各防伪段中的下段索引信息,从视频帧中读取下一个防伪段中的防伪数据和下段索引信息时,可以根据所述下一个防伪段在所述视频的视频帧中携带所述skip run标识的宏块的宏块序号,从所述首个防伪段所在视频帧的下一个视频帧中读取对应的宏块中读取下一个防伪段中的防伪数据和下段索引信息。由此,可以依次确定各防伪段的位置读取其中的防伪数据。When 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, the skip can be carried in the video frame of the video according to the next anti-counterfeiting section The macroblock sequence number of the macroblock identified by run is read from the corresponding macroblock in the next video frame of the video frame where the first anti-counterfeiting segment is located, and the anti-counterfeiting data and lower-segment index information in the next anti-counterfeiting segment are read. Thus, the position of each anti-counterfeiting segment can be sequentially determined and the anti-counterfeiting data therein can be read.
例如,在其中一个具体实现方案中,假设所述多个防伪段具体为5个防伪段,5个防伪段在视频帧中的位置分别为:23415,则表示这5个防伪段在视频帧中的位置分别为:携带skip run标识的第2个宏块、携带skip run标识的第3个宏块、携带skip run标识的第4个宏块、携带skip run标识的第1个宏块、携带skip run标识的第5个宏块,则可以从视频的首帧开始,逐帧查找视频帧中的第2个宏块中是否包括序列开始标识信息,直到查找到某个视频帧中的第2个宏块中包括序列开始标识信息,确定该第2个宏块为首个防伪段的宏块,从该第2个宏块中读取首个防伪数据、防伪段数量5和下段索引信息(即第2个防伪段的索引信息:携带skip run标识的第3个宏块);然后,以下一个视频帧中携带skip run标识的第3个宏块作为第2个防伪段的宏块,读取第2个防伪数据、防伪段数量5和下段索引信息(即第3个防伪段的索引信息:携带skip run标识的第4个宏块);…,以此类推,直到读取到5个防伪段的防伪数据,即可拼接得到完整的防伪标记。For example, in one of the specific implementation solutions, it is assumed that the multiple anti-counterfeiting segments are specifically five anti-counterfeiting segments, and the positions of the five anti-counterfeiting segments in the video frame are: 23415, which means that the five anti-counterfeiting segments are in the video frame. The positions of the For the fifth macroblock identified by skip run, you can start from the first frame of the video and search frame by frame whether the second macroblock in the video frame includes sequence start identification information, until the second macroblock in a certain video frame is found. Each macroblock includes sequence start identification information, determine that the second macroblock is the macroblock of the first anti-counterfeiting segment, and read the first anti-counterfeiting data, the number of anti-counterfeiting segments, and the next segment index information (ie, the second macroblock) from the second macroblock. The index information of the second anti-counterfeiting segment: the third macroblock carrying the skip run identifier); then, the third macroblock carrying the skip run identifier in the next video frame is used as the macroblock of the second anti-counterfeiting segment, read The second anti-counterfeiting data, the number of anti-counterfeiting segments 5, and the index information of the lower segment (that is, the index information of the third anti-counterfeiting segment: the fourth macroblock carrying the skip run flag); ..., and so on, until 5 anti-counterfeiting pieces are read The anti-counterfeiting data of the segment can be spliced to obtain a complete anti-counterfeiting mark.
可选地,在其中一些实现方式中,在703中,若所述视频的防伪标记与所述目标视频的防伪标记相同,可以确认所述视频为盗版视频。Optionally, in some implementation manners, in 703, if the anti-counterfeiting mark of the video is the same as the anti-counterfeiting mark of the target video, it may be confirmed that the video is a pirated video.
由此,实现了对所述视频是否为防盗视频的识别,以有效避免视频被盗版。In this way, it is possible to identify whether the video is an anti-theft video, so as to effectively prevent the video from being pirated.
本申请的技术方案可以适用于具有终端、视频服务器等设备中的应用,例如,任意视频数据处理类应用、播放类应用中。利用视频数据处理类应用、播放类应用,执行本申请实施例提供的视频防盗版方法时,能够基于每个视频的防伪标记来识别盗版视频。The technical solution of the present application can be applied to applications in devices such as terminals and video servers, for example, any video data processing applications and playback applications. When the video anti-piracy method provided by the embodiment of the present application is executed by using a video data processing application and a playing application, a pirated video can be identified based on the anti-counterfeiting mark of each video.
另外,采用本申请所提供的技术方案,由于所述视频的防伪标记被拆分为多个防伪段分别添加在不同视频中,可以有效避免整个视频标记添加在一个视频帧中被破解,提高了防伪标记的安全性,以提高视频防盗版效果。In addition, by adopting the technical solution provided by the present application, since the anti-counterfeiting mark of the video is divided into multiple anti-counterfeiting segments and added to different videos respectively, the whole video mark can be effectively prevented from being cracked when added in one video frame, which improves the performance of the video. Security of anti-counterfeiting marks to improve video anti-piracy effect.
另外,采用本申请所提供的技术方案,由于所述视频的防伪标记被拆分为多个防伪段分别添加在不同视频中,可以避免整个视频标记添加在一个视频帧中由于视频标记的数据量较大而影响视频后续播放的流畅性,有效保证用户的视频观看体验。In addition, with the technical solution provided by the present application, since the anti-counterfeiting mark of the video is divided into multiple anti-counterfeiting segments and added to different videos respectively, it can be avoided that the entire video mark is added in one video frame due to the data volume of the video mark. It is large and affects the smoothness of subsequent video playback, effectively ensuring the user's video viewing experience.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其它顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that, for the sake of simple description, the foregoing method embodiments are all expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described action sequence. Because in accordance with the present application, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
图9示出了适于用来实现本申请实施方式的示例性计算机系统/服务器12的框图。图9显示的计算机系统/服务器12仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。Figure 9 shows a block diagram of an exemplary computer system/
如图9所示,计算机系统/服务器12以通用计算设备的形式表现。计算机系统/服务器12的组件可以包括但不限于:一个或者多个处理器或者处理单元16,存储装置或者系统存储器28,连接不同系统组件(包括系统存储器28和处理单元16)的总线18。As shown in FIG. 9, computer system/
总线18表示几类总线结构中的一种或多种,包括存储器总线或者存储器控制器,外围总线,图形加速端口,处理器或者使用多种总线结构中的任意总线结构的局域总线。举例来说,这些体系结构包括但不限于工业标准体系结构(ISA)总线,微通道体系结构(MAC)总线,增强型ISA总线、视频电子标准协会(VESA)局域总线以及外围组件互连(PCI)总线。
计算机系统/服务器12典型地包括多种计算机系统可读介质。这些介质可以是任何能够被计算机系统/服务器12访问的可用介质,包括易失性和非易失性介质,可移动的和不可移动的介质。Computer system/
系统存储器28可以包括易失性存储器形式的计算机系统可读介质,例如随机存取存储器(RAM)30和/或高速缓存存储器32。计算机系统/服务器12可以进一步包括其它可移动/不可移动的、易失性/非易失性计算机系统存储介质。仅作为举例,存储系统34可以用于读写不可移动的、非易失性磁介质(图9未显示,通常称为“硬盘驱动器”)。尽管图9中未示出,可以提供用于对可移动非易失性磁盘(例如“软盘”)读写的磁盘驱动器,以及对可移动非易失性光盘(例如CD-ROM,DVD-ROM或者其它光介质)读写的光盘驱动器。在这些情况下,每个驱动器可以通过一个或者多个数据介质接口与总线18相连。系统存储器28可以包括至少一个程序产品,该程序产品具有一组(例如至少一个)程序模块,这些程序模块被配置以执行本申请各实施例的功能。System memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and/or
具有一组(至少一个)程序模块42的程序/实用工具40,可以存储在例如系统存储器28中,这样的程序模块42包括——但不限于——操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。程序模块42通常执行本申请所描述的实施例中的功能和/或方法。A program/utility 40 having a set (at least one) of
计算机系统/服务器12也可以与一个或多个外部设备14(例如键盘、指向设备、显示器24等)通信,还可与一个或者多个使得用户能与该计算机系统/服务器12交互的设备通信,和/或与使得该计算机系统/服务器12能与一个或多个其它计算设备进行通信的任何设备(例如网卡,调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口44进行。并且,计算机系统/服务器12还可以通过网络适配器20与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。如图9所示,网络适配器20通过总线18与计算机系统/服务器12的其它模块通信。应当明白,尽管图中未示出,可以结合计算机系统/服务器12使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。The computer system/
处理单元16通过运行存储在系统存储器28中的程序,从而执行各种功能应用以及数据处理,例如实现图1~图6所对应的实施例任一实施例所提供的视频防盗版方法。The processing unit 16 executes various functional applications and data processing by running the programs stored in the system memory 28 , for example, implementing the video anti-piracy method provided by any of the embodiments corresponding to FIG. 1 to FIG. 6 .
本申请另一实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现图1~图6所对应的实施例任一实施例所提供的视频防盗版方法。Another embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, realizes the video provided by any of the embodiments corresponding to FIG. 1 to FIG. 6 . Anti-piracy method.
具体来说,可以采用一个或多个计算机可读的介质的任意组合。计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本文件中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。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. The computer readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples (a non-exhaustive list) of computer readable storage media include: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), Erasable Programmable Read Only Memory (EPROM or Flash), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括——但不限于——电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。A computer-readable signal medium may include a propagated data signal in baseband or as part of a carrier wave, with computer-readable program code embodied thereon. Such propagated data signals may take a variety of forms including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device .
计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括——但不限于——无线、电线、光缆、RF等等,或者上述的任意合适的组合。Program code embodied on a computer readable medium may be transmitted using any suitable medium including, but not limited to, wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
可以以一种或多种程序设计语言或其组合来编写用于执行本申请操作的计算机程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如”C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)——连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for performing the operations of the present application may be written in one or more programming languages, including object-oriented programming languages—such as Java, Smalltalk, C++, but also conventional Procedural programming language - such as "C" language or similar programming language. 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 kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider to via Internet connection).
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system, device and unit described above may refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或页面组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or page components may be combined. Either it can be integrated into another system, or some features can be omitted, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware, or may be implemented in the form of hardware plus software functional units.
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一个计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本申请各个实施例所述方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above-mentioned integrated units implemented in the form of software functional units can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, and includes several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute parts of the methods described in the various embodiments of the present application step. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program codes .
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be The technical solutions described in the foregoing embodiments are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions in the embodiments of the present application.
Claims (17)
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)
| 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)
| 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 |
-
2020
- 2020-07-24 CN CN202010725598.6A patent/CN111836054B/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| CN111836054A (en) | 2020-10-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN112040336B (en) | Method, device and equipment for adding and extracting video watermark | |
| JP7049437B2 (en) | Techniques for encoding, decoding and representing high dynamic range images | |
| CN104540000B (en) | A method and terminal for generating a dynamic thumbnail | |
| US9967599B2 (en) | Transmitting display management metadata over HDMI | |
| CN110896484B (en) | Video watermark adding and extracting method, device, video player and storage medium | |
| CN106131550B (en) | Method and device for playing multimedia file | |
| CN111669615B (en) | Video stream processing method and device | |
| TW200904145A (en) | Method for encoding an input image and method and apparatus for displaying an encoded image | |
| US20050281289A1 (en) | System and method for embedding multimedia processing information in a multimedia bitstream | |
| CN107690074A (en) | Video coding and restoring method, audio/video player system and relevant device | |
| CN1218928A (en) | Data control system | |
| CN112055254B (en) | Video playing method, device, terminal and storage medium | |
| CN111836054B (en) | Video anti-piracy method, electronic device and computer readable storage medium | |
| CN111131654B (en) | Watermark embedding method and device and coder-decoder | |
| CN106470353A (en) | Multimedia data processing method and device and electronic equipment | |
| CN107318045A (en) | The method and device of playing video data stream | |
| CN107977551B (en) | Method and device for protecting file and electronic equipment | |
| KR102825746B1 (en) | MPD Chaining in Live CMAF/DASH Players with W3C Media Sources and Encrypted Extensions | |
| CN117956176A (en) | Code stream data authentication method, computer equipment and storage medium | |
| CN111860367B (en) | Video repeatability identification method, electronic device and computer-readable storage medium | |
| CN116647761A (en) | Media data processing method, device, electronic device and readable storage medium | |
| CN111949825A (en) | Method, electronic device and storage medium for adding and displaying item information in video | |
| HK40091086A (en) | Method and apparatus for generating marked video, method and apparatus for detecting video mark | |
| CN102833547A (en) | Method for quickly embedding dominant information applied to JPEG (Joint Photographic Experts Group) image | |
| CN113099232B (en) | Video decoding the method is a device(s) electronic device and computing machine storage medium |
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 | ||
| CP03 | Change of name, title or address | ||
| CP03 | Change of name, title or address |
Address after: 200120 2, building 979, Yun Han Road, mud town, Pudong New Area, Shanghai Patentee after: Shanghai Lianshang Network Technology Group Co.,Ltd. Country or region after: China Address before: 200120 2, building 979, Yun Han Road, mud town, Pudong New Area, Shanghai Patentee before: SHANGHAI LIANSHANG NETWORK TECHNOLOGY Co.,Ltd. Country or region before: China |