CN111860367A - Video repetition identification method, electronic device and computer-readable storage medium - Google Patents

Video repetition identification method, electronic device and computer-readable storage medium Download PDF

Info

Publication number
CN111860367A
CN111860367A CN202010724232.7A CN202010724232A CN111860367A CN 111860367 A CN111860367 A CN 111860367A CN 202010724232 A CN202010724232 A CN 202010724232A CN 111860367 A CN111860367 A CN 111860367A
Authority
CN
China
Prior art keywords
fingerprint
video
segments
segment
complete
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010724232.7A
Other languages
Chinese (zh)
Other versions
CN111860367B (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 Group 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 CN202010724232.7A priority Critical patent/CN111860367B/en
Publication of CN111860367A publication Critical patent/CN111860367A/en
Application granted granted Critical
Publication of CN111860367B publication Critical patent/CN111860367B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/40Scenes; Scene-specific elements in video content
    • G06V20/41Higher-level, semantic clustering, classification or understanding of video scenes, e.g. detection, labelling or Markovian modelling of sport events or news items
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/40Scenes; Scene-specific elements in video content
    • G06V20/46Extracting features or characteristics from the video content, e.g. video fingerprints, representative shots or key frames

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Software Systems (AREA)
  • Television Signal Processing For Recording (AREA)
  • Collating Specific Patterns (AREA)

Abstract

The application provides a video repeatability identification method, video repeatability identification equipment and a computer readable storage medium. This application is through video identification information generation based on video fingerprint, video identification information is used for only sign the video, then right the video fingerprint splits, obtains a plurality of fingerprint sections, and then will a plurality of fingerprint sections correspond and add to in the different video frames of video, like this, can follow and draw the fingerprint section concatenation from the different video frames of video and obtain complete video fingerprint to can discern the video that the content is repeated based on the video fingerprint of every video, and, can avoid because the video follow-up broadcast of the great influence video of the data bulk of interpolation when adding complete video fingerprint in each video frame.

Description

视频重复性识别方法、电子设备及计算机可读存储介质Video repetition identification method, electronic device and computer-readable storage medium

【技术领域】【Technical field】

本申请涉及视频处理技术,尤其涉及一种视频重复性识别方法、电子设备及计算机可读存储介质。The present application relates to video processing technology, and in particular, to a video repetition identification 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, are easily downloaded by some users from a certain video website or self-media platform and then uploaded to other video websites or self-media platforms, or after simple modification of the downloaded video. Upload to video platforms and self-media platforms. In this way, video platforms and self-media platforms actually repeatedly include videos with the same content, wasting storage resources; in addition, when recommending videos to users, it is easy to recommend multiple videos with the same content to users, causing users to repeat Playing videos of the same content degrades the user experience.

【发明内容】[Content of the invention]

本申请的多个方面提供一种视频重复性识别方法、电子设备及计算机可读存储介质,用以识别内容重复的视频。Aspects of the present application provide a video duplication identification method, electronic device, and computer-readable storage medium for identifying a video with duplicate content.

本申请的一方面,提供一种视频重复性识别方法,包括:In one aspect of the present application, a method for recognizing video repetition is provided, comprising:

基于视频的视频标识信息生成所述视频的视频指纹,所述视频标识信息用于唯一标识所述视频;Generate a video fingerprint of the video based on the video identification information of the video, and the video identification information is used to uniquely identify the video;

对所述视频指纹进行拆分,得到多个指纹段;Splitting the video fingerprint to obtain a plurality of fingerprint segments;

将所述多个指纹段对应添加到所述视频的不同视频帧中。The plurality of fingerprint segments are correspondingly added to different video frames of the video.

本申请的另一方面,提供另一种视频重复性识别方法,包括:Another aspect of the present application provides another video repetition identification method, comprising:

分别从视频的多个视频帧中提取指纹段,得到多个指纹段;Extracting fingerprint segments from multiple video frames of the video respectively to obtain multiple fingerprint segments;

对提取的所述多个指纹段进行拼接,得到所述视频的视频指纹;所述视频指纹基于所述视频的视频标识信息生成,所述视频标识信息用于唯一标识所述视频;Splicing the extracted fingerprint segments to obtain a video fingerprint of the video; the video fingerprint is generated based on the video identification information of the video, and the video identification information is used to uniquely identify the video;

基于所述视频指纹,识别是否存在与所述视频的内容重复的其他视频。Based on the video fingerprint, it is identified whether there are other videos that duplicate the content of the video.

本申请的另一方面,提供一种电子设备,所述电子设备包括: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 executed by the one or more processors, the one or more programs cause the one or more processors to implement the video repetition identification 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, realizes the video repetition identification provided in the above-mentioned aspect.

由上述技术方案可知,在本申请一些实施例中,基于视频的视频标识信息生成所述视频的视频指纹,然后对所述视频指纹进行拆分,得到多个指纹段,进而,将所述多个指纹段对应添加到所述视频的不同视频帧中。这样,后续可以从视频的不同视频帧中提取指纹段拼接得到完整的视频指纹,从而能够基于每个视频的视频指纹来识别内容重复的视频;并且,由于一个视频的视频指纹被拆分为多个指纹段添加到视频的不同视频帧中,可以避免在各视频帧中添加完整的视频指纹时由于添加的数据量较大影响视频的后续播放。As can be seen from the above technical solutions, in some embodiments of the present application, a video fingerprint of the video is generated based on the video identification information of the video, and then the video fingerprint is split to obtain multiple fingerprint segments, and then the multiple fingerprint segments are obtained. The fingerprint segments are correspondingly added to different video frames of the video. In this way, fingerprint segments can be extracted from different video frames and spliced to obtain a complete video fingerprint, so that videos with repeated content can be identified based on the video fingerprint of each video; Adding the fingerprint segments to different video frames of the video can avoid the subsequent playback of the video being affected due to the large amount of data added when a complete video fingerprint is added to each video frame.

由上述技术方案可知,在本申请另一些实施例中,可以分别从视频的多个视频帧中提取指纹段,得到多个指纹段,然后,对提取的所述多个指纹段进行拼接,得到所述视频的视频指纹,由于所述视频指纹基于所述视频的视频标识信息生成,进而,基于所述视频指纹识别是否存在与所述视频的内容重复的其他视频。这样,能够基于每个视频的视频指纹来识别内容重复的视频;并且,由于一个视频的视频指纹被拆分为多个指纹段添加到视频的不同视频帧中,可以避免在各视频帧中添加完整的视频指纹时由于添加的数据量较大影响视频的后续播放。It can be seen from the above technical solutions that in other embodiments of the present application, fingerprint segments can be extracted from multiple video frames of a video respectively to obtain multiple fingerprint segments, and then the extracted multiple fingerprint segments are spliced to obtain As for the video fingerprint of the video, since the video fingerprint is generated based on the video identification information of the video, whether there is another video that duplicates the content of the video is identified based on the video fingerprint. In this way, videos with repeated content can be identified based on the video fingerprint of each video; and, since the video fingerprint of one video is divided into multiple fingerprint segments and added to different video frames of the video, it is possible to avoid adding the content in each video frame. When a complete video fingerprint is used, the subsequent playback of the video is affected due to the large amount of data added.

另外,采用本申请所提供的技术方案,由于能够基于视频指纹识别是否存在内容重复的视频,可以避免视频平台、自媒体平台重复收录了内容相同的视频,节约存储资源和维护资源。In addition, by adopting the technical solution provided by the present application, since it is possible to identify whether there are videos with duplicate content based on video fingerprints, it is possible to avoid video platforms and self-media platforms from repeatedly recording videos with the same content, saving storage resources and maintenance resources.

另外,采用本申请所提供的技术方案,由于能够基于视频指纹识别是否存在内容重复的视频,可以避免在向用户推荐视频时,将内容相同的多个视频推荐给用户,避免用户重复播放相同内容的视频,能够有效提高用户体验。In addition, by adopting the technical solution provided by the present application, since it is possible to identify whether there is a video with repeated content based on the video fingerprint, it is possible to avoid recommending multiple videos with the same content to the user when recommending a video to the user, and prevent the user from playing the same content repeatedly. video can effectively improve the user 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 method for recognizing video repetition provided by an embodiment of the present application;

图2为本申请一实施例中将多个指纹段对应添加到不同视频帧中的一个示意图;FIG. 2 is a schematic diagram of adding a plurality of fingerprint segments to different video frames correspondingly in an embodiment of the application;

图3为本申请一实施例中对所述视频指纹进行拆分得到多个指纹段的一个流程示意图;FIG. 3 is a schematic flowchart of splitting the video fingerprint to obtain a plurality of fingerprint segments according to an embodiment of the application;

图4为本申请一实施例中指纹段的一个格式示意图;FIG. 4 is a schematic diagram of a format of a fingerprint segment in an embodiment of the application;

图5为本申请一实施例中向视频帧中添加指纹宏块的一个示意图;5 is a schematic diagram of adding a fingerprint macroblock to a video frame according to an embodiment of the application;

图6为本申请另一实施例提供的视频重复性识别方法的流程示意图;6 is a schematic flowchart of a method for recognizing video repetition provided by another embodiment of the present application;

图7为适于用来实现本申请实施方式的示例性计算机系统/服务器12的框图。FIG. 7 is a block diagram of an exemplary computer system/server 12 suitable for use in implementing embodiments of the present application.

【具体实施方式】【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 easily downloaded by some users from a certain video website or self-media platform and then uploaded to other video websites or self-media platforms, or simply modify the downloaded videos. After uploading to the video platform and self-media platform, the video platform and self-media platform actually repeatedly recorded videos with the same content, wasting storage resources; Videos are recommended to users, causing users to repeatedly play videos with the same content, which reduces user experience.

因此,亟需提供一种视频重复性识别方法,用以识别内容重复的不同视频。Therefore, there is an urgent need to provide a video duplication identification method for identifying different videos with repeated content.

图1为本申请一实施例提供的视频重复性识别方法的流程示意图,如图1所示。FIG. 1 is a schematic flowchart of a method for recognizing video repetition according to an embodiment of the present application, as shown in FIG. 1 .

101、基于视频的视频标识信息生成所述视频的视频指纹。101. Generate a video fingerprint of the video based on the video identification information of the video.

其中,所述视频标识信息用于唯一标识所述视频。Wherein, the video identification information is used to uniquely identify the video.

可选地,在其中一些实现方式中,所述视频标识信息例如可以包括但不限于以下任意一项或多项:所述视频中开头预设播放时间范围内的帧数据或所述视频中开头预设帧数的帧数据,所述视频中结尾预设播放时间范围内的帧数据或者所述视频中结尾预设帧数的帧数据,所述视频的名称,所述视频的生产者,所述视频的生产日期,等等。本申请实施例对视频标识信息的具体内容构成不做限制。Optionally, in some of these implementations, the video identification information may include, but is not limited to, any one or more of the following: frame data within a preset playback time range at the beginning of the video or the beginning of the video. The frame data of the preset number of frames, the frame data of the preset playback time range at the end of the video or the frame data of the preset number of frames at the end of the video, the name of the video, the producer of the video, the the production date of the said video, etc. The embodiments of the present application do not limit the specific content composition of the video identification information.

可选地,在其中一些实现方式中,可以基于预设散列算法,对视频的视频标识信息进行计算,从而得到视频指纹。其中的散列算法可以是任意的散列算法,例如MD5算法等,本申请实施例对具体采用的散列算法不做限制。Optionally, in some of the implementation manners, the video identification information of the video may be calculated based on a preset hash algorithm to obtain the video fingerprint. The hash algorithm may be any hash algorithm, such as the MD5 algorithm, etc. The embodiment of the present application does not limit the specific hash algorithm used.

由于视频标识信息用于唯一标识一个视频,基于视频标识信息来生成视频指纹,这样,生成的每个视频指纹便可以唯一对应一个视频,通过比较视频指纹是否相同,便可以确定对应的视频是否来自于同一个视频,从而可以识别是视频内容是否重复。Since the video identification information is used to uniquely identify a video, a video fingerprint is generated based on the video identification information. In this way, each generated video fingerprint can uniquely correspond to a video. By comparing whether the video fingerprints are the same, it can be determined whether the corresponding video comes from to the same video, so that it can be identified whether the video content is repeated or not.

102、对所述视频指纹进行拆分,得到多个指纹段。102. Split the video fingerprint to obtain multiple fingerprint segments.

103、将所述多个指纹段对应添加到所述视频的不同视频帧中。103. Correspondingly add the plurality of fingerprint segments to different video frames of the video.

如图2所示,为本申请实施例中将多个指纹段对应添加到不同视频帧中的一个示意图。As shown in FIG. 2 , it is a schematic diagram of correspondingly adding multiple fingerprint segments to different video frames in an embodiment of the present application.

需要说明的是,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, fingerprint segments can be extracted from different video frames and spliced to obtain a complete video fingerprint, so that videos with repeated content can be identified based on the video fingerprint of each video; Adding the fingerprint segments to different video frames of the video can avoid the subsequent playback of the video being affected due to the large amount of data added when a complete video fingerprint is added to each video frame.

另外,由于能够基于视频指纹识别是否存在内容重复的视频,可以避免视频平台、自媒体平台重复收录了内容相同的视频,节约存储资源和维护资源。In addition, since it is possible to identify whether there are videos with duplicate content based on video fingerprints, it is possible to avoid video platforms and self-media platforms from repeatedly recording videos with the same content, saving storage resources and maintenance resources.

另外,由于能够基于视频指纹识别是否存在内容重复的视频,可以避免在向用户推荐视频时,将内容相同的多个视频推荐给用户,避免用户重复播放相同内容的视频,能够有效提高用户体验。In addition, since it can identify whether there is a video with duplicate content based on the video fingerprint, it can avoid recommending multiple videos with the same content to the user when recommending a video to the user, and avoid the user from repeatedly playing the video with the same content, which can effectively improve the user experience.

图3为本申请一实施例中对所述视频指纹进行拆分得到多个指纹段的一个流程示意图。如图3所示,在图1所示实施例的基础上,102可以包括:FIG. 3 is a schematic flowchart of splitting the video fingerprint to obtain multiple fingerprint segments according to an embodiment of the present application. As shown in FIG. 3, based on the embodiment shown in FIG. 1, 102 may include:

301、将所述视频指纹拆分为多个部分,得到多个指纹数据。301. Split the video fingerprint into multiple parts to obtain multiple fingerprint data.

302、分别根据所述多个指纹数据的在所述视频指纹中的位置为所述指纹数据分配指纹段位置。302. Assign a fingerprint segment position to the fingerprint data according to the positions of the plurality of fingerprint data in the video fingerprint, respectively.

303、分别将所述多个指纹数据中的每个指纹数据与对应的指纹段位置、指纹段总数封装为一个指纹段,得到多个指纹段。303. Encapsulate each fingerprint data in the plurality of fingerprint data, the corresponding fingerprint segment position, and the total number of fingerprint segments into one fingerprint segment to obtain multiple fingerprint segments.

其中,所述指纹段位置用于表示对应的指纹数据在所述视频指纹中的位置,所述指纹段总数用于表示所述视频指纹拆分得到的指纹数据的个数。例如,假设将一个视频指纹拆分为10个指纹数据,则指纹段总数即为10;分别根据10个指纹数据在指纹数据中的位置顺序地为每个指纹数据分配指纹段位置1~10。The position of the fingerprint segment is used to represent the position of the corresponding fingerprint data in the video fingerprint, and the total number of fingerprint segments is used to represent the number of fingerprint data obtained by splitting the video fingerprint. For example, assuming that a video fingerprint is split into 10 fingerprint data, the total number of fingerprint segments is 10; fingerprint segment positions 1 to 10 are sequentially assigned to each fingerprint data according to the positions of the 10 fingerprint data in the fingerprint data.

基于本实施例,每个指纹段可以包括三部分数据:指纹段位置(index)、指纹段总数和指纹数据。如图4所示,为本申请实施例中指纹段的一个格式示意图。其中,每个指纹段包括的三部分数据的顺序可以调整,并不限于图4所示实施例顺序。Based on this embodiment, each fingerprint segment may include three parts of data: fingerprint segment position (index), total number of fingerprint segments, and fingerprint data. As shown in FIG. 4 , it is a schematic diagram of a format of a fingerprint segment in an embodiment of the present application. The order of the three parts of data included in each fingerprint segment can be adjusted, and is not limited to the order of the embodiment shown in FIG. 4 .

基于本实施例,每个指纹段中除了包括指纹数据外,还可以包括该指纹段的指纹段位置和指纹段总数,这样,后续从各指纹段中读取指纹段位置和指纹段总数后,便可以根据指纹段总数确定是否读取到一个视频指纹中指纹数据对应的所有指纹段,在读取到一个视频指纹中指纹数据对应的所有指纹段后,便可以根据各指纹段中的指纹段位置,将各指纹段中的指纹数据按照其在视频指纹中的位置顺序进行拼接,从而得到一个完整的视频指纹。Based on this embodiment, in addition to the fingerprint data, each fingerprint segment may also include the location of the fingerprint segment and the total number of fingerprint segments. Then it can be determined whether all the fingerprint segments corresponding to the fingerprint data in a video fingerprint are read according to the total number of fingerprint segments. After reading all the fingerprint segments corresponding to the fingerprint data in a video fingerprint, the fingerprint segment in each fingerprint segment can be position, the fingerprint data in each fingerprint segment is spliced according to its position sequence in the video fingerprint, so as to obtain a complete video fingerprint.

本申请实施例可以适用于视频编码标准、任意格式的视频。在具体实现中,将每个指纹段添加到视频帧中时,可以将指纹段添加到视频帧中的任意预留信息段,也可以添加在视频帧数据的后部,本公开实施例对此不做限制。The embodiments of the present application may be applicable to video coding standards and videos of any format. In a specific implementation, when each fingerprint segment is added to a video frame, the fingerprint segment may be added to any reserved information segment in the video frame, or may be added to the back of the video frame data. No restrictions.

例如,在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数据。其中,宏块是视频信息的主要承载者,一个编码图像通常划分为多个宏块,包含着每一个像素的亮度和色度信息,视频解码最主要的工作则是提供高效的方式从码流中获得宏块中像素阵列。其中,每个视频帧包含有具有预留块(residual block或者coded residual)的宏块,可以将指纹段添加到预留块中,也可以将指纹段添加到NALU主体的后部。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. Wherein, each video frame contains a macroblock with a reserved block (residual block or coded residual), and the fingerprint segment can be added to the reserved block, or the fingerprint segment can be added to the rear of the NALU main body.

可选地,在另一实施例的视频重复性识别方法中,在图1所示实施例的基础上,在102之后,还可以分别对所述多个指纹段进行阿尔法(α)通道转换,将所述多个指纹段的α通道转换为透明背景色。相应地,在103中,可以将α通道转换后的多个指纹段对应添加到所述视频的不同视频帧中携带有跳过运行(skip run)标识的宏块中。其中,skip run标识用于表示相应的宏块不会被播放器播放。Optionally, in the video repetition identification method of another embodiment, on the basis of the embodiment shown in FIG. 1 , after step 102 , alpha (α) channel conversion may be performed on the plurality of fingerprint segments respectively, Convert the alpha channel of the plurality of fingerprint segments to a transparent background color. Correspondingly, in 103, the plurality of fingerprint segments converted from the alpha channel may be correspondingly added to the macroblocks that carry the skip run identifier in different video frames of the video. The skip run flag is used to indicate that the corresponding macroblock will not be played by the player.

可选地,在另一实施例的视频重复性识别方法中,在图1所示实施例的基础上,在102之后,还可以分别对所述多个指纹段中的每个所述指纹段进行α通道转换,将每个所述指纹段的α通道转换为透明背景色;然后,分别基于α通道转换后的每个指纹段生成一个指纹宏块,并在所述指纹宏块中添加skip run标识。其中,skip run标识用于表示相应的宏块不会被播放器播放。相应地,在103中,可以将添加skip run标识的多个指纹宏块对应添加到所述视频的不同视频帧中。Optionally, in the video repeatability identification method of another embodiment, on the basis of the embodiment shown in FIG. 1 , after 102 , each of the fingerprint segments in the plurality of fingerprint segments can also be separately identified. Perform alpha channel conversion, and convert the alpha channel of each fingerprint segment into a transparent background color; then, generate a fingerprint macroblock based on each fingerprint segment converted from the alpha channel, and add skip to the fingerprint macroblock run ID. The skip run flag is used to indicate that the corresponding macroblock will not be played by the player. Correspondingly, in 103, a plurality of fingerprint macroblocks with skip run identifiers added may be correspondingly added to different video frames of the video.

基于本实施例,将指纹段的α通道转换为透明背景色,可以使指纹段中的信息在后续视频播放的过程中不参与视频渲染,不会改变整体视频显示的画面;并且,由于包括指纹段的宏块携带有skip run标识,亦不会被播放器播放,从而不会影响视频播放效果。Based on this embodiment, the alpha channel of the fingerprint segment is converted into a transparent background color, so that the information in the fingerprint segment does not participate in video rendering during the subsequent video playback process, and does not change the screen displayed by the overall video; The macroblock of the segment carries the skip run flag and will not be played by the player, so it will not affect the video playback effect.

如图5所示,为向视频帧中添加指纹宏块的一个示意图。该实现方式中,一个原始的视频帧包括帧头和帧数据,将指纹数据封装为指纹段后进行α通道转换后生成一个指纹宏块,然后添加skip run标识(图5中未示出),再将添加skip run标识的指纹宏块与帧数据合并,得到的视频帧中包括帧头和由指纹宏块与帧数据合并得到的混合帧数据。As shown in FIG. 5 , it is a schematic diagram of adding fingerprint macroblocks to a video frame. In this implementation, an original video frame includes a frame header and frame data, the fingerprint data is encapsulated into a fingerprint segment, and then α channel conversion is performed to generate a fingerprint macroblock, and then a skip run flag is added (not shown in FIG. 5 ), Then, the fingerprint macroblock added with the skip run logo is combined with the frame data, and the obtained video frame includes the frame header and the mixed frame data obtained by combining the fingerprint macroblock and the frame data.

可选地,在其中一些实现方式中,103中,可以将所述多个指纹段顺序添加到连续的多个不同视频帧中;或者,也可以将所述多个指纹段随机添加到多个不同视频帧中,本申请实施例不做限制。Optionally, in some of the implementation manners, in 103, the multiple fingerprint segments may be sequentially added to multiple consecutive different video frames; or, the multiple fingerprint segments may also be randomly added to multiple In different video frames, this embodiment of the present application does not limit.

其中,将多个指纹段顺序添加到连续的多个不同视频帧中时,后续可以逐帧读取指纹段数据,有助于提高指纹段数据读取的效率,从而提高重复视频的整体识别效率。Among them, when multiple fingerprint segments are sequentially added to multiple consecutive different video frames, the fingerprint segment data can be read frame by frame subsequently, which helps to improve the efficiency of reading the fingerprint segment data, thereby improving the overall recognition efficiency of repeated videos. .

可选地,在其中一些实现方式中,在103中,可以将所述多个指纹段分别添加到所述视频的不同视频段中,所述多个指纹段在所述视频段中对应添加在不同视频帧中。Optionally, in some of the implementation manners, in 103, the multiple fingerprint segments may be added to different video segments of the video respectively, and the multiple fingerprint segments are correspondingly added in the video segment. in different video frames.

例如,在一种可选示例中,可以将所述多个指纹段依次循环的添加到视频的每个视频帧中,这样,即使该视频被其他用户截取其中的某个片段或者去掉视频的头部、尾部,依然可以从其他视频帧中提取到视频指纹包括的完整的指纹段,从而实现对视频的重复性识别。For example, in an optional example, the plurality of fingerprint segments may be added to each video frame of the video in sequence, so that even if the video is intercepted by other users, a certain segment or the header of the video is removed. The complete fingerprint segment included in the video fingerprint can still be extracted from other video frames, so as to realize the repetitive identification of the video.

可选地,在又一实施例的视频重复性识别方法中,在图1所示实施例的基础上,还可以包括:将所述视频指纹与预设指纹段位置、指纹段总数进行封装,得到完整指纹,其中,所述预设指纹段位置用于表示所述完整指纹包括完整的视频指纹数据,所述指纹段总数为1,然后,在所述视频中至少一个未添加所述指纹段的视频帧上添加所述完整指纹。Optionally, in the video repeatability identification method of another embodiment, on the basis of the embodiment shown in FIG. 1 , it may further include: encapsulating the video fingerprint with the preset fingerprint segment position and the total number of fingerprint segments, Obtaining a complete fingerprint, wherein the preset fingerprint segment position is used to indicate that the complete fingerprint includes complete video fingerprint data, the total number of fingerprint segments is 1, and then at least one fingerprint segment is not added in the video The full fingerprint is added to the video frame of .

例如,在一种可选示例中,可以在视频中每隔若干帧添加一个完整指纹,这样,可以避免在视频传输过程中出现指纹段损坏情况、或者其他用户修改视频时丢掉中间帧从而导致无法拼接得到完整的视频指纹,基于该完整指纹可以便可以单独实现对视频的重复性识别。For example, in an optional example, a complete fingerprint can be added every several frames in the video, so as to avoid the damage of the fingerprint segment during the video transmission process, or the loss of intermediate frames when other users modify the video, resulting in failure to A complete video fingerprint is obtained by splicing, and based on the complete fingerprint, the repetitive identification of the video can be realized independently.

可选地,在上述实施例的基础上,将所述视频指纹与预设指纹段位置、指纹段总数进行封装,得到完整指纹之后,还可以对所述完整指纹进行α通道转换,将所述完整指纹的α通道转换为透明背景色;然后,基于α通道转换后的完整指纹生成指纹宏块,并在所述指纹宏块中添加skip run标识,该skip run标识用于表示相应的指纹宏块不会被播放器播放。相应地,可以将添加skip run标识的指纹宏块分别添加到所述视频中至少一个未添加所述指纹段的视频帧上。Optionally, on the basis of the above embodiment, the video fingerprint is encapsulated with the preset fingerprint segment position and the total number of fingerprint segments, and after obtaining a complete fingerprint, alpha channel conversion can also be performed on the complete fingerprint, and the The alpha channel of the complete fingerprint is converted into a transparent background color; then, a fingerprint macroblock is generated based on the complete fingerprint converted from the alpha channel, and a skip run identifier is added to the fingerprint macroblock, and the skip run identifier is used to represent the corresponding fingerprint macro. Chunks will not be played by the player. Correspondingly, the fingerprint macroblock to which the skip run identifier is added may be respectively added to at least one video frame in the video to which the fingerprint segment is not added.

或者,在上述实施例的基础上,将所述视频指纹与预设指纹段位置、指纹段总数进行封装,得到完整指纹之后,也可以对所述完整指纹进行α通道转换,将所述完整指纹的α通道转换为透明背景色。相应地,将α通道转换后的完整指纹添加到所述视频中至少一个未添加所述指纹段的视频帧中携带有skip run标识的宏块中,该skip run标识用于表示相应的宏块不会被播放器播放。Alternatively, on the basis of the above-mentioned embodiment, after encapsulating the video fingerprint with the preset fingerprint segment position and the total number of fingerprint segments, and obtaining a complete fingerprint, the complete fingerprint can also be converted by alpha channel to convert the complete fingerprint Convert the alpha channel to a transparent background color. Correspondingly, the complete fingerprint converted by the alpha channel is added to the macroblock that carries the skip run mark in at least one video frame without adding the fingerprint segment in the video, and the skip run mark is used to represent the corresponding macroblock. will not be played by the player.

基于本实施例,将完整指纹的α通道转换为透明背景色,可以使完整指纹中的信息在后续视频播放的过程中不参与视频渲染,不会改变整体视频显示的画面;并且,由于包括完整指纹的宏块携带有skip run标识,亦不会被播放器播放,从而不会影响视频播放效果。Based on this embodiment, converting the alpha channel of the complete fingerprint to a transparent background color can prevent the information in the complete fingerprint from participating in video rendering during the subsequent video playback, and will not change the picture displayed by the overall video; The macroblock of the fingerprint carries the skip run logo and will not be played by the player, so it will not affect the video playback effect.

图6为本申请另一实施例提供的视频重复性识别方法的流程示意图,如图6所示。FIG. 6 is a schematic flowchart of a video repetition identification method provided by another embodiment of the present application, as shown in FIG. 6 .

601、分别从视频的多个视频帧中提取指纹段,得到多个指纹段。601. Extract fingerprint segments from multiple video frames of a video, respectively, to obtain multiple fingerprint segments.

602、对提取的所述多个指纹段进行拼接,得到所述视频的视频指纹。602. Splicing the extracted fingerprint segments to obtain a video fingerprint of the video.

其中,所述视频指纹基于所述视频的视频标识信息生成,所述视频标识信息用于唯一标识所述视频。The video fingerprint is generated based on video identification information of the video, and the video identification information is used to uniquely identify the video.

可选地,在其中一些实现方式中,所述视频标识信息例如可以包括但不限于以下任意一项或多项:所述视频中开头预设播放时间范围内的帧数据或所述视频中开头预设帧数的帧数据,所述视频中结尾预设播放时间范围内的帧数据或者所述视频中结尾预设帧数的帧数据,所述视频的名称,所述视频的生产者,所述视频的生产日期,等等。本申请实施例对视频标识信息的具体内容构成不做限制。Optionally, in some of these implementations, the video identification information may include, but is not limited to, any one or more of the following: frame data within a preset playback time range at the beginning of the video or the beginning of the video. The frame data of the preset number of frames, the frame data of the preset playback time range at the end of the video or the frame data of the preset number of frames at the end of the video, the name of the video, the producer of the video, the the production date of the said video, etc. The embodiments of the present application do not limit the specific content composition of the video identification information.

603、基于所述视频指纹,识别是否存在与所述视频的内容重复的其他视频。603. Based on the video fingerprint, identify whether there are other videos that duplicate the content of the video.

具体实现中,可以将所述视频指纹与其他视频的视频指纹进行比对,根据是否存在与所述视频指纹相同的其他视频,来确定是否存在与所述视频的内容重复的其他视频。In a specific implementation, the video fingerprint may be compared with the video fingerprints of other videos, and it is determined whether there are other videos that duplicate the content of the video according to whether there are other videos with the same video fingerprint.

需要说明的是,601~603的执行主体的部分或全部可以为位于终端的应用(例如播放器),或者还可以为设置终端的应用中的插件或软件开发工具包(SoftwareDevelopment Kit,SDK)等功能单元,或者还可以为位于网络侧服务器(例如视频平台、自媒体平台)中的应用,本申请实施例对此不进行特别限定。It should be noted that, some or all of the execution bodies of 601 to 603 may be applications located in the terminal (eg, players), 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, videos with repeated content can be identified based on the video fingerprint of each video; and, since the video fingerprint of one video is divided into multiple fingerprint segments and added to different video frames of the video, it is possible to avoid adding the content in each video frame. When a complete video fingerprint is used, the subsequent playback of the video is affected due to the large amount of data added.

另外,采用本申请所提供的技术方案,由于能够基于视频指纹识别是否存在内容重复的视频,可以避免视频平台、自媒体平台重复收录了内容相同的视频,节约存储资源和维护资源。In addition, by adopting the technical solution provided by the present application, since it is possible to identify whether there are videos with duplicate content based on video fingerprints, it is possible to avoid video platforms and self-media platforms from repeatedly recording videos with the same content, saving storage resources and maintenance resources.

另外,采用本申请所提供的技术方案,由于能够基于视频指纹识别是否存在内容重复的视频,可以避免在向用户推荐视频时,将内容相同的多个视频推荐给用户,避免用户重复播放相同内容的视频,能够有效提高用户体验。In addition, by adopting the technical solution provided by the present application, since it is possible to identify whether there is a video with repeated content based on the video fingerprint, it is possible to avoid recommending multiple videos with the same content to the user when recommending a video to the user, and prevent the user from playing the same content repeatedly. video can effectively improve the user experience.

可选地,在其中一些实现方式中,在601中,可以分别从多个视频帧中携带有skiprun标识的宏块中提取指纹段,所述指纹段经阿尔法通道被转换为透明背景色。Optionally, in some of the implementation manners, in 601 , fingerprint segments may be extracted from macroblocks carrying skiprun identifiers in multiple video frames, and the fingerprint segments are converted to a transparent background color through an alpha channel.

可选地,在其中一些实现方式中,所述指纹段包括:指纹段位置,指纹段总数和指纹数据,如图4所示。其中,所述指纹段位置用于表示对应的指纹数据在所述视频指纹中的位置,所述指纹段总数用于表示所述视频指纹拆分得到的指纹数据的个数。例如,假设将一个视频指纹拆分为10个指纹数据,则指纹段总数即为10;分别根据10个指纹数据在指纹数据中的位置顺序地为每个指纹数据分配指纹段位置1~10。Optionally, in some of the implementation manners, the fingerprint segment includes: the location of the fingerprint segment, the total number of fingerprint segments, and fingerprint data, as shown in FIG. 4 . The position of the fingerprint segment is used to represent the position of the corresponding fingerprint data in the video fingerprint, and the total number of fingerprint segments is used to represent the number of fingerprint data obtained by splitting the video fingerprint. For example, assuming that a video fingerprint is split into 10 fingerprint data, the total number of fingerprint segments is 10; fingerprint segment positions 1 to 10 are sequentially assigned to each fingerprint data according to the positions of the 10 fingerprint data in the fingerprint data.

相应地,在601之后,还可以读取所述多个指纹段中的指纹段位置和指纹段总数,然后,识别提取的所述多个指纹段的指纹段数量与所述指纹段总数是否一致、以及所述多个指纹段中的指纹段位置是否不重复。相应地,若所述指纹段数量与所述指纹段总数一致、且所述多个指纹段中的指纹段位置不重复,则所述多个指纹段为完整的视频指纹所对应的所有指纹段,在602中,根据所述多个指纹段中的指纹段位置对所述多个指纹段中每个指纹段包括的指纹数据进行拼接,得到所述视频的视频指纹。Correspondingly, after 601, the position of the fingerprint segments and the total number of fingerprint segments in the multiple fingerprint segments can also be read, and then, it is identified whether the number of fingerprint segments extracted from the multiple fingerprint segments is consistent with the total number of fingerprint segments. , and whether the positions of the fingerprint segments in the plurality of fingerprint segments are not repeated. Correspondingly, if the number of fingerprint segments is consistent with the total number of fingerprint segments, and the positions of the fingerprint segments in the multiple fingerprint segments are not repeated, the multiple fingerprint segments are all fingerprint segments corresponding to the complete video fingerprint. , in 602, splicing the fingerprint data included in each fingerprint segment of the multiple fingerprint segments according to the fingerprint segment positions of the multiple fingerprint segments, to obtain a video fingerprint of the video.

基于本实施例,可以基于指纹段中的指纹段位置和指纹段总数确定是否提取出一个完整的视频指纹所对应的所有指纹段,从而根据所述多个指纹段中的指纹段位置对所述多个指纹段中的指纹数据进行拼接,得到所述视频的视频指纹。Based on this embodiment, whether to extract all fingerprint segments corresponding to a complete video fingerprint can be determined based on the fingerprint segment positions in the fingerprint segments and the total number of fingerprint segments. The fingerprint data in the multiple fingerprint segments are spliced to obtain the video fingerprint of the video.

进一步可选地,在上述实现方式中,若所述指纹段数量与所述指纹段总数不一致、和/或所述多个指纹段中的指纹段位置重复,从所述视频的后续视频帧中提取至少一个指纹段,并读取所述至少一个指纹段中的指纹段位置和指纹段总数;然后,识别所述多个指纹段和所述至少一个指纹段中指纹段位置不重复的指纹段数量与所述指纹段总数是否一致;若所述指纹段位置不重复的指纹段数量与所述指纹段总数一致,根据所述指纹段位置不重复的指纹段中的指纹段位置对所述指纹段位置不重复的指纹段中每个指纹段包括的指纹数据进行拼接,得到所述视频的视频指纹。否则,若所述指纹段位置不重复的指纹段数量与所述指纹段总数不一致,继续执行所述从所述视频的后续视频帧中提取至少一个指纹段,并读取所述至少一个指纹段中的指纹段位置和指纹段总数的操作,直至所述指纹段位置不重复的指纹段数量与所述指纹段总数一致,根据所述指纹段位置不重复的指纹段中的指纹段位置对所述指纹段位置不重复的指纹段中每个指纹段包括的指纹数据进行拼接,得到所述视频的视频指纹。Further optionally, in the above implementation manner, if the number of fingerprint segments is inconsistent with the total number of fingerprint segments, and/or the positions of fingerprint segments in the plurality of fingerprint segments are duplicated, the number of fingerprint segments in the subsequent video frames of the video is extracted. Extracting at least one fingerprint segment, and reading the location of the fingerprint segment and the total number of fingerprint segments in the at least one fingerprint segment; then, identifying the multiple fingerprint segments and the at least one fingerprint segment in which the location of the fingerprint segment is not repeated. Whether the number is consistent with the total number of fingerprint segments; if the number of fingerprint segments with non-repetitive positions of the fingerprint segments is consistent with the total number of fingerprint segments, the fingerprint The fingerprint data included in each fingerprint segment in the fingerprint segments whose segment positions are not repeated are spliced to obtain the video fingerprint of the video. Otherwise, if the number of fingerprint segments whose positions are not repeated is inconsistent with the total number of fingerprint segments, continue to perform the extraction of at least one fingerprint segment from subsequent video frames of the video, and read the at least one fingerprint segment The operation of the fingerprint segment position in the fingerprint segment and the total number of fingerprint segments, until the number of fingerprint segments that do not repeat the fingerprint segment position is consistent with the total number of fingerprint segments, according to the fingerprint segment position of the fingerprint segment location is not repeated. The fingerprint data included in each fingerprint segment in the fingerprint segments whose positions of the fingerprint segments are not repeated are spliced to obtain the video fingerprint of the video.

基于本实施例,视频中循环添加有多个指纹段,即使原始视频被其他用户截取其中的某个片段或者去掉视频的头部、尾部,依然可以从后续的视频帧中提取到所需的指纹段,从得到一个完整的视频指纹包括的所有指纹段,以便拼接得到完整的视频指纹,从而实现对视频的重复性识别。Based on this embodiment, multiple fingerprint segments are added to the video cyclically. Even if a segment of the original video is intercepted by other users or the head and tail of the video are removed, the desired fingerprint can still be extracted from subsequent video frames. All the fingerprint segments included in a complete video fingerprint are obtained, so that a complete video fingerprint can be obtained by splicing, so as to realize the repetitive identification of the video.

进一步可选地,在上述实现方式中,在读取所述多个指纹段中的指纹段位置和指纹段总数之后,还可以识别读取到的指纹段位置中是否包括预设指纹段位置,所述预设指纹段位置用于表示所述完整指纹包括完整的视频指纹数据;若读取到的指纹段位置中包括预设指纹段位置,确定包括所述预设指纹段位置的指纹段为完整指纹,提取所述完整指纹中的指纹数据,得到所述视频指纹。Further optionally, in the above implementation manner, after reading the fingerprint segment positions and the total number of fingerprint segments in the plurality of fingerprint segments, it is also possible to identify whether the read fingerprint segment positions include preset fingerprint segment positions, The preset fingerprint segment position is used to indicate that the complete fingerprint includes complete video fingerprint data; if the read fingerprint segment position includes the preset fingerprint segment position, it is determined that the fingerprint segment including the preset fingerprint segment position is: Complete fingerprint, extract the fingerprint data in the complete fingerprint, and obtain the video fingerprint.

基于本实施例,可以在读取到的指纹段位置中包括预设指纹段位置时,确定该指纹段为完整指纹,提取所述完整指纹中的指纹数据便可以得到所述视频指纹,由于视频帧中添加有完整指纹,这样,可以避免在视频传输过程中出现指纹段损坏情况、或者其他用户修改视频时丢掉中间帧从而导致无法拼接得到完整的视频指纹,基于该完整指纹可以便可以单独实现对视频的重复性识别。Based on this embodiment, when the read fingerprint segment position includes a preset fingerprint segment position, it can be determined that the fingerprint segment is a complete fingerprint, and the video fingerprint can be obtained by extracting the fingerprint data in the complete fingerprint. A complete fingerprint is added to the frame, so that it can avoid the damage of the fingerprint segment during the video transmission process, or the loss of intermediate frames when other users modify the video, which makes it impossible to obtain a complete video fingerprint. Based on the complete fingerprint, it can be implemented independently. Repetitive recognition of videos.

从得到一个完整的视频指纹包括的所有指纹段,以便拼接得到完整的视频指纹,从而实现对视频的重复性识别。Obtaining a complete video fingerprint includes all fingerprint segments, so as to obtain a complete video fingerprint by splicing, so as to realize the repetitive identification of the video.

本申请实施例中,对视频指纹可以拆分的指纹段的数量不做限制,具体可以根据视频长度、视频指纹的长度、视频的帧率等确定,视频指纹可以不做拆分,也可以理解为拆分为1个指纹段,或者拆分为多个视频段。一般情况下,视频的刷新率为30fps,则若在1秒钟的播放视频帧中每个帧携带指纹段,则一个视频指纹最大可以拆分成30个视频段。In the embodiment of the present application, there is no limit to the number of fingerprint segments that can be split by the video fingerprint, which can be determined according to the length of the video, the length of the video fingerprint, the frame rate of the video, etc. The video fingerprint may not be split, and it is understandable is split into 1 fingerprint segment, or into multiple video segments. Under normal circumstances, the refresh rate of the video is 30fps, and if each frame carries a fingerprint segment in a 1-second playback video frame, a video fingerprint can be divided into 30 video segments at most.

本申请的技术方案可以适用于具有终端、视频服务器等设备中的应用,例如,任意视频数据处理类应用、播放类应用中。利用视频数据处理类应用、播放类应用,执行本申请实施例提供的视频重复性识别方法时,能够基于每个视频的视频指纹来识别内容重复的视频;并且,由于一个视频的视频指纹被拆分为多个指纹段添加到视频的不同视频帧中,可以避免在各视频帧中添加完整的视频指纹时由于添加的数据量较大影响视频的后续播放。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 video data processing applications and playback applications are used to perform the video repeatability identification method provided by the embodiments of the present application, videos with repeated content can be identified based on the video fingerprint of each video; and, since the video fingerprint of a video is split Dividing into multiple fingerprint segments and adding them to different video frames of the video can avoid the subsequent playback of the video being affected due to the large amount of added data when a complete video fingerprint is added to each video frame.

另外,由于能够基于视频指纹识别是否存在内容重复的视频,可以避免视频平台、自媒体平台重复收录了内容相同的视频,节约存储资源和维护资源。In addition, since it is possible to identify whether there are videos with duplicate content based on video fingerprints, it is possible to avoid video platforms and self-media platforms from repeatedly recording videos with the same content, saving storage resources and maintenance resources.

另外,由于能够基于视频指纹识别是否存在内容重复的视频,可以避免在向用户推荐视频时,将内容相同的多个视频推荐给用户,避免用户重复播放相同内容的视频,能够有效提高用户体验。In addition, since it can identify whether there is a video with duplicate content based on the video fingerprint, it can avoid recommending multiple videos with the same content to the user when recommending a video to the user, and avoid the user from repeatedly playing the video with the same content, which can effectively improve the user 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.

图7示出了适于用来实现本申请实施方式的示例性计算机系统/服务器12的框图。图7显示的计算机系统/服务器12仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。Figure 7 shows 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. 7 is only an example, and should not impose any limitation on the functions and scope of use of the embodiments of the present application.

如图7所示,计算机系统/服务器12以通用计算设备的形式表现。计算机系统/服务器12的组件可以包括但不限于:一个或者多个处理器或者处理单元16,存储装置或者系统存储器28,连接不同系统组件(包括系统存储器28和处理单元16)的总线18。As shown in FIG. 7, computer system/server 12 takes the form of a general purpose computing device. Components of computer system/server 12 may include, but are not limited to, one or more processors or processing units 16, storage or system memory 28, and a bus 18 connecting various system components including system memory 28 and processing unit 16.

总线18表示几类总线结构中的一种或多种,包括存储器总线或者存储器控制器,外围总线,图形加速端口,处理器或者使用多种总线结构中的任意总线结构的局域总线。举例来说,这些体系结构包括但不限于工业标准体系结构(ISA)总线,微通道体系结构(MAC)总线,增强型ISA总线、视频电子标准协会(VESA)局域总线以及外围组件互连(PCI)总线。Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of a variety of bus structures. By way of example, these 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.

计算机系统/服务器12典型地包括多种计算机系统可读介质。这些介质可以是任何能够被计算机系统/服务器12访问的可用介质,包括易失性和非易失性介质,可移动的和不可移动的介质。Computer system/server 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by computer system/server 12, including both volatile and non-volatile media, removable and non-removable media.

系统存储器28可以包括易失性存储器形式的计算机系统可读介质,例如随机存取存储器(RAM)30和/或高速缓存存储器32。计算机系统/服务器12可以进一步包括其它可移动/不可移动的、易失性/非易失性计算机系统存储介质。仅作为举例,存储系统34可以用于读写不可移动的、非易失性磁介质(图7未显示,通常称为“硬盘驱动器”)。尽管图7中未示出,可以提供用于对可移动非易失性磁盘(例如“软盘”)读写的磁盘驱动器,以及对可移动非易失性光盘(例如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 cache memory 32 . Computer system/server 12 may further include other removable/non-removable, volatile/non-volatile computer system storage media. For example only, storage system 34 may be used to read and write to non-removable, non-volatile magnetic media (not shown in FIG. 7, commonly referred to as a "hard drive"). Although not shown in Figure 7, disk drives for reading and writing to removable non-volatile magnetic disks (eg "floppy disks") and removable non-volatile optical disks (eg CD-ROM, DVD-ROM) may be provided or other optical media) to read and write optical drives. In these cases, each drive may be connected to bus 18 through one or more data media interfaces. System memory 28 may include at least one program product having a set (eg, at least one) of program modules configured to perform the functions of various embodiments of the present application.

具有一组(至少一个)程序模块42的程序/实用工具40,可以存储在例如系统存储器28中,这样的程序模块42包括——但不限于——操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。程序模块42通常执行本申请所描述的实施例中的功能和/或方法。A program/utility 40 having a set (at least one) of program modules 42, which 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 or some combination of these examples may include an implementation of a network environment. Program modules 42 generally perform the functions and/or methods of the embodiments described herein.

计算机系统/服务器12也可以与一个或多个外部设备14(例如键盘、指向设备、显示器24等)通信,还可与一个或者多个使得用户能与该计算机系统/服务器12交互的设备通信,和/或与使得该计算机系统/服务器12能与一个或多个其它计算设备进行通信的任何设备(例如网卡,调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口44进行。并且,计算机系统/服务器12还可以通过网络适配器20与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。如图所示,网络适配器20通过总线18与计算机系统/服务器12的其它模块通信。应当明白,尽管图中未示出,可以结合计算机系统/服务器12使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。The computer system/server 12 may also communicate with one or more external devices 14 (eg, keyboard, pointing device, display 24, etc.), and may also communicate with one or more devices that enable a user to interact with the computer system/server 12, and/or with any device (eg, network card, modem, etc.) that enables the computer system/server 12 to communicate with one or more other computing devices. Such communication may take place through input/output (I/O) interface 44 . Also, the computer system/server 12 may communicate with one or more networks (eg, a local area network (LAN), a wide area network (WAN), and/or a public network such as the Internet) through a network adapter 20 . As shown, network adapter 20 communicates with other modules of computer system/server 12 via bus 18 . It should be understood that, although not shown, other hardware and/or software modules may be used in conjunction with 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, etc.

处理单元16通过运行存储在系统存储器28中的程序,从而执行各种功能应用以及数据处理,例如实现图1~图6所对应的实施例任一实施例所提供的视频重复性识别方法。The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28 , for example, implementing the video repetition identification 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 . Repetitive identification 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 memory), optical fiber, 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 device 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 units can be implemented in the form of hardware, or can 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 Modifications are made to the technical solutions recorded in the foregoing embodiments, 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 of the embodiments of the present application.

Claims (18)

1.一种视频重复性识别方法,其特征在于,包括:1. a video repetitive identification method, is characterized in that, comprises: 基于视频的视频标识信息生成所述视频的视频指纹,所述视频标识信息用于唯一标识所述视频;Generate a video fingerprint of the video based on the video identification information of the video, and the video identification information is used to uniquely identify the video; 对所述视频指纹进行拆分,得到多个指纹段;Splitting the video fingerprint to obtain a plurality of fingerprint segments; 将所述多个指纹段对应添加到所述视频的不同视频帧中。The plurality of fingerprint segments are correspondingly added to different video frames of the video. 2.根据权利要求1所述的方法,其特征在于,所述视频标识信息包括以下任意一项或多项:2. The method according to claim 1, wherein the video identification information comprises any one or more of the following: 所述视频中开头预设播放时间范围内的帧数据或所述视频中开头预设帧数的帧数据,所述视频中结尾预设播放时间范围内的帧数据或者所述视频中结尾预设帧数的帧数据,所述视频的名称,所述视频的生产者,所述视频的生产日期。The frame data within the preset playback time range at the beginning of the video or the frame data of the preset number of frames at the beginning of the video, the frame data within the preset playback time range at the end of the video, or the frame data at the end preset in the video The frame data of the frame number, the name of the video, the producer of the video, and the production date of the video. 3.根据权利要求1所述的方法,其特征在于,所述对所述视频指纹进行拆分,得到多个指纹段,包括:3. The method according to claim 1, wherein the video fingerprint is split to obtain a plurality of fingerprint segments, comprising: 将所述视频指纹拆分为多个部分,得到多个指纹数据;Splitting the video fingerprint into multiple parts to obtain multiple fingerprint data; 分别根据所述多个指纹数据的在所述视频指纹中的位置为所述指纹数据分配指纹段位置;assigning a fingerprint segment position to the fingerprint data according to the positions of the plurality of fingerprint data in the video fingerprint; 分别将所述多个指纹数据中的每个指纹数据与对应的指纹段位置、指纹段总数封装为一个指纹段,得到多个指纹段;其中,所述指纹段位置用于表示对应的指纹数据在所述视频指纹中的位置,所述指纹段总数用于表示所述视频指纹拆分得到的指纹数据的个数。Respectively encapsulate each fingerprint data in the plurality of fingerprint data, the corresponding fingerprint segment position and the total number of fingerprint segments into a fingerprint segment to obtain a plurality of fingerprint segments; wherein, the fingerprint segment position is used to represent the corresponding fingerprint data In the position in the video fingerprint, the total number of fingerprint segments is used to represent the number of fingerprint data obtained by splitting the video fingerprint. 4.根据权利要求1~3任一权利要求所述的方法,其特征在于,所述得到多个指纹段之后,还包括:4. The method according to any one of claims 1 to 3, wherein after the obtaining of multiple fingerprint segments, the method further comprises: 分别对所述多个指纹段进行阿尔法通道转换,将所述多个指纹段的阿尔法通道转换为透明背景色;respectively performing alpha channel conversion on the multiple fingerprint segments, and converting the alpha channels of the multiple fingerprint segments into a transparent background color; 所述将所述多个指纹段对应添加到所述视频的不同视频帧中,包括:The correspondingly adding the plurality of fingerprint segments to different video frames of the video includes: 将阿尔法通道转换后的多个指纹段对应添加到所述视频的不同视频帧中携带有跳过运行标识的宏块中。The plurality of fingerprint segments converted from the alpha channel are correspondingly added to the macroblocks that carry the skip running identifier in different video frames of the video. 5.根据权利要求1~3任一权利要求所述的方法,其特征在于,所述得到多个指纹段之后,还包括:5. The method according to any one of claims 1 to 3, wherein after the obtaining of the plurality of fingerprint segments, the method further comprises: 分别对所述多个指纹段中的每个所述指纹段进行阿尔法通道转换,将每个所述指纹段的阿尔法通道转换为透明背景色;respectively performing alpha channel conversion on each of the fingerprint segments in the plurality of fingerprint segments, and converting the alpha channel of each fingerprint segment into a transparent background color; 分别基于阿尔法通道转换后的每个指纹段生成一个指纹宏块,并在所述指纹宏块中添加跳过运行标识;A fingerprint macroblock is generated based on each fingerprint segment converted from the alpha channel, and a skip run mark is added in the fingerprint macroblock; 所述将所述多个指纹段对应添加到所述视频的不同视频帧中,包括:The correspondingly adding the plurality of fingerprint segments to different video frames of the video includes: 将添加跳过运行标识的多个指纹宏块对应添加到所述视频的不同视频帧中。A plurality of fingerprint macroblocks added with skip running flags are correspondingly added to different video frames of the video. 6.根据权利要求1~3任一权利要求所述的方法,其特征在于,所述将所述多个指纹段对应添加到所述视频的不同视频帧中,包括:The method according to any one of claims 1 to 3, wherein the correspondingly adding the plurality of fingerprint segments to different video frames of the video comprises: 将所述多个指纹段顺序添加到连续的多个不同视频帧中;或者,adding the plurality of fingerprint segments sequentially to a plurality of consecutive different video frames; or, 将所述多个指纹段随机添加到多个不同视频帧中。The plurality of fingerprint segments are randomly added to a plurality of different video frames. 7.根据权利要求1~3任一权利要求所述的方法,其特征在于,所述将所述多个指纹段对应添加到所述视频的不同视频帧中,包括:7. The method according to any one of claims 1 to 3, wherein the correspondingly adding the plurality of fingerprint segments to different video frames of the video comprises: 将所述多个指纹段分别添加到所述视频的不同视频段中,所述多个指纹段在所述视频段中对应添加在不同视频帧中。The multiple fingerprint segments are respectively added to different video segments of the video, and the multiple fingerprint segments are correspondingly added to different video frames in the video segments. 8.根据权利要求1所述的方法,其特征在于,还包括:8. The method of claim 1, further comprising: 将所述视频指纹与预设指纹段位置、指纹段总数进行封装,得到完整指纹;其中,所述预设指纹段位置用于表示所述完整指纹包括完整的视频指纹数据,所述指纹段总数为1;Encapsulate the video fingerprint with the preset fingerprint segment position and the total number of fingerprint segments to obtain a complete fingerprint; wherein, the preset fingerprint segment location is used to indicate that the complete fingerprint includes complete video fingerprint data, and the total number of fingerprint segments is 1; 在所述视频中至少一个未添加所述指纹段的视频帧上添加所述完整指纹。The complete fingerprint is added to at least one video frame in the video to which the fingerprint segment is not added. 9.根据权利要求8所述的方法,其特征在于,所述将所述视频指纹与预设指纹段位置、指纹段总数进行封装,得到完整指纹之后,还包括:9. The method according to claim 8, wherein the encapsulating the video fingerprint with the preset fingerprint segment position and the total number of fingerprint segments to obtain a complete fingerprint, further comprising: 对所述完整指纹进行阿尔法通道转换,将所述完整指纹的阿尔法通道转换为透明背景色;Alpha channel conversion is performed on the complete fingerprint, and the alpha channel of the complete fingerprint is converted into a transparent background color; 基于阿尔法通道转换后的完整指纹生成指纹宏块,并在所述指纹宏块中添加跳过运行标识;Generate a fingerprint macroblock based on the complete fingerprint converted from the alpha channel, and add a skip running flag to the fingerprint macroblock; 所述在所述视频中至少一个未添加所述指纹段的视频帧上添加所述完整指纹,包括:The adding the complete fingerprint to at least one video frame in the video to which the fingerprint segment is not added includes: 将添加跳过运行标识的指纹宏块分别添加到所述视频中至少一个未添加所述指纹段的视频帧上。The fingerprint macroblocks to which the skip running identifier is added are respectively added to at least one video frame in the video to which the fingerprint segment is not added. 10.根据权利要求8所述的方法,其特征在于,所述将所述视频指纹与预设指纹段位置、指纹段总数进行封装,得到完整指纹之后,还包括:10. The method according to claim 8, wherein the encapsulating the video fingerprint with the preset fingerprint segment position and the total number of fingerprint segments to obtain a complete fingerprint, further comprising: 对所述完整指纹进行阿尔法通道转换,将所述完整指纹的阿尔法通道转换为透明背景色;Alpha channel conversion is performed on the complete fingerprint, and the alpha channel of the complete fingerprint is converted into a transparent background color; 所述在所述视频中至少一个未添加所述指纹段的视频帧上添加所述完整指纹,包括:The adding the complete fingerprint to at least one video frame in the video to which the fingerprint segment is not added includes: 将阿尔法通道转换后的完整指纹添加到所述视频中至少一个未添加所述指纹段的视频帧中携带有跳过运行标识的宏块中。The complete fingerprint converted from the alpha channel is added to a macroblock carrying a skip running flag in at least one video frame of the video to which the fingerprint segment is not added. 11.一种视频重复性识别方法,其特征在于,包括:11. A method for video repeatability identification, characterized in that, comprising: 分别从视频的多个视频帧中提取指纹段,得到多个指纹段;Extracting fingerprint segments from multiple video frames of the video respectively to obtain multiple fingerprint segments; 对提取的所述多个指纹段进行拼接,得到所述视频的视频指纹;所述视频指纹基于所述视频的视频标识信息生成,所述视频标识信息用于唯一标识所述视频;Splicing the extracted fingerprint segments to obtain a video fingerprint of the video; the video fingerprint is generated based on the video identification information of the video, and the video identification information is used to uniquely identify the video; 基于所述视频指纹,识别是否存在与所述视频的内容重复的其他视频。Based on the video fingerprint, it is identified whether there are other videos that duplicate the content of the video. 12.根据权利要求11所述的方法,其特征在于,所述视频标识信息包括以下任意一项或多项:12. The method according to claim 11, wherein the video identification information comprises any one or more of the following: 所述视频中开头预设播放时间范围内的帧数据或所述视频中开头预设帧数的帧数据,所述视频中结尾预设播放时间范围内的帧数据或者所述视频中结尾预设帧数的帧数据,所述视频的名称,所述视频的生产者,所述视频的生产日期。The frame data within the preset playback time range at the beginning of the video or the frame data of the preset number of frames at the beginning of the video, the frame data within the preset playback time range at the end of the video, or the frame data at the end preset in the video The frame data of the frame number, the name of the video, the producer of the video, and the production date of the video. 13.根据权利要求11所述的方法,其特征在于,所述分别从视频的多个视频帧中提取指纹段,包括:13. The method according to claim 11, wherein the extracting fingerprint segments from multiple video frames of the video respectively comprises: 分别从多个视频帧中携带有跳过运行标识的宏块中提取指纹段,所述指纹段经阿尔法通道被转换为透明背景色。Fingerprint segments are extracted from macroblocks carrying skip-run identifiers in multiple video frames, and the fingerprint segments are converted to a transparent background color via an alpha channel. 14.根据权利要求13所述的方法,其特征在于,所述指纹段包括:指纹段位置,指纹段总数和指纹数据;其中,所述指纹段位置用于表示对应的指纹数据在所述视频指纹中的位置,所述指纹段总数用于表示所述视频指纹拆分得到的指纹数据的个数;14. The method according to claim 13, wherein the fingerprint segment comprises: fingerprint segment position, total number of fingerprint segments and fingerprint data; wherein, the fingerprint segment location is used to indicate that the corresponding fingerprint data is in the video The position in the fingerprint, the total number of fingerprint segments is used to represent the number of fingerprint data obtained by splitting the video fingerprint; 所述分别从视频的多个视频帧中提取指纹段,得到多个指纹段之后,还包括:After the fingerprint segments are extracted from multiple video frames of the video respectively to obtain multiple fingerprint segments, the method further includes: 读取所述多个指纹段中的指纹段位置和指纹段总数;Read the fingerprint segment positions and the total number of fingerprint segments in the plurality of fingerprint segments; 识别提取的所述多个指纹段的指纹段数量与所述指纹段总数是否一致、以及所述多个指纹段中的指纹段位置是否不重复;Identify whether the number of fingerprint segments extracted from the plurality of fingerprint segments is consistent with the total number of fingerprint segments, and whether the positions of the fingerprint segments in the plurality of fingerprint segments are not repeated; 所述对提取的所述多个指纹段进行拼接,得到所述视频的视频指纹,包括:The splicing of the extracted fingerprint segments to obtain the video fingerprint of the video, including: 若所述指纹段数量与所述指纹段总数一致、且所述多个指纹段中的指纹段位置不重复,根据所述多个指纹段中的指纹段位置对所述多个指纹段中每个指纹段包括的指纹数据进行拼接,得到所述视频的视频指纹。If the number of fingerprint segments is the same as the total number of fingerprint segments and the positions of the fingerprint segments in the plurality of fingerprint segments do not overlap, each of the The fingerprint data included in each fingerprint segment is spliced to obtain the video fingerprint of the video. 15.根据权利要求14所述的方法,其特征在于,还包括:15. The method of claim 14, further comprising: 若所述指纹段数量与所述指纹段总数不一致、和/或所述多个指纹段中的指纹段位置重复,从所述视频的后续视频帧中提取至少一个指纹段,并读取所述至少一个指纹段中的指纹段位置和指纹段总数;If the number of fingerprint segments is inconsistent with the total number of fingerprint segments, and/or the positions of fingerprint segments in the plurality of fingerprint segments are repeated, extract at least one fingerprint segment from subsequent video frames of the video, and read the Fingerprint segment position and total number of fingerprint segments in at least one fingerprint segment; 识别所述多个指纹段和所述至少一个指纹段中指纹段位置不重复的指纹段数量与所述指纹段总数是否一致;Identify whether the number of fingerprint segments in the plurality of fingerprint segments and the at least one fingerprint segment where the location of the fingerprint segment is not repeated is consistent with the total number of fingerprint segments; 若所述指纹段位置不重复的指纹段数量与所述指纹段总数一致,根据所述指纹段位置不重复的指纹段中的指纹段位置对所述指纹段位置不重复的指纹段中每个指纹段包括的指纹数据进行拼接,得到所述视频的视频指纹;If the number of fingerprint segments with non-repeated fingerprint segment positions is consistent with the total number of fingerprint segments, each of the fingerprint segments with non-repetitive fingerprint segment positions is evaluated according to the fingerprint segment positions in the fingerprint segments with non-repetitive fingerprint segment positions. The fingerprint data included in the fingerprint segment is spliced to obtain the video fingerprint of the video; 否则,若所述指纹段位置不重复的指纹段数量与所述指纹段总数不一致,继续执行所述从所述视频的后续视频帧中提取至少一个指纹段,并读取所述至少一个指纹段中的指纹段位置和指纹段总数的操作。Otherwise, if the number of fingerprint segments whose positions are not repeated is inconsistent with the total number of fingerprint segments, continue to perform the extraction of at least one fingerprint segment from subsequent video frames of the video, and read the at least one fingerprint segment Operations on the fingerprint segment position and the total number of fingerprint segments. 16.根据权利要求14或15所述的方法,其特征在于,所述读取所述多个指纹段中的指纹段位置和指纹段总数之后,还包括:16. The method according to claim 14 or 15, wherein after reading the fingerprint segment positions and the total number of fingerprint segments in the plurality of fingerprint segments, the method further comprises: 识别读取到的指纹段位置中是否包括预设指纹段位置,所述预设指纹段位置用于表示所述完整指纹包括完整的视频指纹数据;Identifying whether the read fingerprint segment position includes a preset fingerprint segment position, and the preset fingerprint segment position is used to indicate that the complete fingerprint includes complete video fingerprint data; 若读取到的指纹段位置中包括预设指纹段位置,确定包括所述预设指纹段位置的指纹段为完整指纹,提取所述完整指纹中的指纹数据,得到所述视频指纹。If the read fingerprint segment position includes a preset fingerprint segment position, the fingerprint segment including the preset fingerprint segment position is determined to be a complete fingerprint, and fingerprint data in the complete fingerprint is extracted to obtain the video fingerprint. 17.一种电子设备,其特征在于,所述电子设备包括:17. An electronic device, characterized in that the electronic device comprises: 一个或多个处理器;one or more processors; 存储装置,用于存储一个或多个程序,storage means for storing one or more programs, 当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1~16任一权利要求所述的方法。The one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-16. 18.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如权利要求1~16任一权利要求所述的方法。18. A computer-readable storage medium on which a computer program is stored, characterized in that, when the program is executed by a processor, the method according to any one of claims 1 to 16 is implemented.
CN202010724232.7A 2020-07-24 2020-07-24 Video repeatability identification method, electronic device and computer-readable storage medium Active CN111860367B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010724232.7A CN111860367B (en) 2020-07-24 2020-07-24 Video repeatability identification method, electronic device and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010724232.7A CN111860367B (en) 2020-07-24 2020-07-24 Video repeatability identification method, electronic device and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN111860367A true CN111860367A (en) 2020-10-30
CN111860367B CN111860367B (en) 2024-12-27

Family

ID=72950125

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010724232.7A Active CN111860367B (en) 2020-07-24 2020-07-24 Video repeatability identification method, electronic device and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN111860367B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116437145A (en) * 2023-03-22 2023-07-14 深圳市东信时代信息技术有限公司 Derivation method, device, computer equipment and storage medium of video material

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101631239A (en) * 2008-07-17 2010-01-20 北京亿科三友科技发展有限公司 System for identifying dynamic video content
US20100066759A1 (en) * 2008-05-21 2010-03-18 Ji Zhang System for Extracting a Fingerprint Data From Video/Audio Signals
US8094872B1 (en) * 2007-05-09 2012-01-10 Google Inc. Three-dimensional wavelet based video fingerprinting
CN108024145A (en) * 2017-12-07 2018-05-11 北京百度网讯科技有限公司 Video recommendation method, device, computer equipment and storage medium
CN108665403A (en) * 2017-03-29 2018-10-16 腾讯科技(深圳)有限公司 Data waterprint embedded method, extracting method, device and digital watermarking system
CN109960960A (en) * 2017-12-14 2019-07-02 中国移动通信集团安徽有限公司 Video fingerprint generation and matching method and device, computer equipment and storage medium
CN110278449A (en) * 2019-06-26 2019-09-24 腾讯科技(深圳)有限公司 A kind of video detecting method, device, equipment and medium
CN110365973A (en) * 2019-08-06 2019-10-22 北京字节跳动网络技术有限公司 Detection method, device, electronic equipment and the computer readable storage medium of video
CN110826461A (en) * 2019-10-31 2020-02-21 深圳市网心科技有限公司 Video content identification method, device, electronic device and storage medium
CN110896484A (en) * 2018-09-12 2020-03-20 中兴通讯股份有限公司 Video watermark adding and extracting method and device, video playing end and storage medium
CN111242829A (en) * 2020-01-19 2020-06-05 苏州浪潮智能科技有限公司 Watermark extraction method, device, equipment and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8094872B1 (en) * 2007-05-09 2012-01-10 Google Inc. Three-dimensional wavelet based video fingerprinting
US20100066759A1 (en) * 2008-05-21 2010-03-18 Ji Zhang System for Extracting a Fingerprint Data From Video/Audio Signals
CN101631239A (en) * 2008-07-17 2010-01-20 北京亿科三友科技发展有限公司 System for identifying dynamic video content
CN108665403A (en) * 2017-03-29 2018-10-16 腾讯科技(深圳)有限公司 Data waterprint embedded method, extracting method, device and digital watermarking system
CN108024145A (en) * 2017-12-07 2018-05-11 北京百度网讯科技有限公司 Video recommendation method, device, computer equipment and storage medium
CN109960960A (en) * 2017-12-14 2019-07-02 中国移动通信集团安徽有限公司 Video fingerprint generation and matching method and device, computer equipment and storage medium
CN110896484A (en) * 2018-09-12 2020-03-20 中兴通讯股份有限公司 Video watermark adding and extracting method and device, video playing end and storage medium
CN110278449A (en) * 2019-06-26 2019-09-24 腾讯科技(深圳)有限公司 A kind of video detecting method, device, equipment and medium
CN110365973A (en) * 2019-08-06 2019-10-22 北京字节跳动网络技术有限公司 Detection method, device, electronic equipment and the computer readable storage medium of video
CN110826461A (en) * 2019-10-31 2020-02-21 深圳市网心科技有限公司 Video content identification method, device, electronic device and storage medium
CN111242829A (en) * 2020-01-19 2020-06-05 苏州浪潮智能科技有限公司 Watermark extraction method, device, equipment and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
SHIGUO LIAN: "Secure video distribution scheme based on partial encryption", 《INTERNATIONAL JOURNAL OF IMAGE SYSTEMS AND TECHNOLOGY》, 26 August 2009 (2009-08-26) *
岳占峰;: "融合音视频上下文时序特征的视频片段检测", 中国传媒科技, no. 10, 15 October 2016 (2016-10-15) *
肖道举;曾国华;陈晓苏;: "H.264实时视频数据的还原与视频帧提取研究", 计算机工程与科学, no. 06, 28 June 2006 (2006-06-28) *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116437145A (en) * 2023-03-22 2023-07-14 深圳市东信时代信息技术有限公司 Derivation method, device, computer equipment and storage medium of video material

Also Published As

Publication number Publication date
CN111860367B (en) 2024-12-27

Similar Documents

Publication Publication Date Title
CN112437345B (en) Video double-speed playing method and device, electronic equipment and storage medium
CN104540000B (en) A method and terminal for generating a dynamic thumbnail
CN111899322B (en) Video processing method, animation rendering SDK, equipment and computer storage medium
CN109840879B (en) Image rendering method and device, computer storage medium and terminal
JP6333858B2 (en) System, apparatus, and method for sharing a screen having multiple visual components
CN104159150A (en) Cloud terminal, cloud server, media data stream playing system and method
CN112689197B (en) File format conversion method and device and computer storage medium
WO2022170836A1 (en) Method and apparatus for processing track data of multimedia file, and medium and device
CN112055254B (en) Video playing method, device, terminal and storage medium
CN111193928A (en) Method and apparatus for communicating region of interest information in video
CN105979354A (en) Channel switching method and device
CN103037169A (en) Picture split joint combination method of embedded hard disk video
CN112714357B (en) Video playback method, video playback device, electronic equipment and storage medium
CN106331553B (en) Video storage method and device and electronic equipment
CN111836054B (en) Video anti-piracy method, electronic device and computer readable storage medium
CN111860367A (en) Video repetition identification method, electronic device and computer-readable storage medium
CN110582021A (en) Information processing method and device, electronic device and storage medium
CN110769241B (en) Video frame processing method and device, user side and storage medium
CN111949825B (en) Method, electronic device and storage medium for adding and displaying object information in video
CN111935495A (en) AR technology-based live video commodity display method and system
CN111949826B (en) Method, electronic device and storage medium for adding and displaying item information in video
KR102825746B1 (en) MPD Chaining in Live CMAF/DASH Players with W3C Media Sources and Encrypted Extensions
CN117692681A (en) Video stream playing method, device, equipment and readable storage medium
WO2023030402A1 (en) Video processing method, apparatus and system
CN119906861A (en) Video transmission method, video display method and device

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

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

CP03 Change of name, title or address