CN110062291A - A kind of digital watermarking addition and extracting method, apparatus and system - Google Patents

A kind of digital watermarking addition and extracting method, apparatus and system Download PDF

Info

Publication number
CN110062291A
CN110062291A CN201910352417.7A CN201910352417A CN110062291A CN 110062291 A CN110062291 A CN 110062291A CN 201910352417 A CN201910352417 A CN 201910352417A CN 110062291 A CN110062291 A CN 110062291A
Authority
CN
China
Prior art keywords
video
digital
watermarking
group
digital watermarking
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.)
Pending
Application number
CN201910352417.7A
Other languages
Chinese (zh)
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201910352417.7A priority Critical patent/CN110062291A/en
Publication of CN110062291A publication Critical patent/CN110062291A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/482End-user interface for program selection
    • H04N21/4825End-user interface for program selection using a list of items to be played back in a given order, e.g. playlists
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/835Generation of protective data, e.g. certificates
    • H04N21/8358Generation of protective data, e.g. certificates involving watermark
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments

Abstract

The embodiment of the invention discloses a kind of digital watermarking addition and extracting methods, apparatus and system, two-path video stream is obtained by the way that the video slicing list generated after digital video cutting to be added to the digital watermarking comprising different watermarking images respectively, the video slicing in two-path video stream is successively chosen using the binary number of User ID, generate the video slicing playlist with User ID binding, by the way that the image zooming-out of the digital watermarking in the illegal video recorded or copied is come out, eye recognition watermarking images therein obtain arrangement information, according to the corresponding relationship of watermarking images and binary digit, obtain one group of binary data, User ID is obtained after conversion, realize that the protection of video copy tracks user class, guarantee that mobile terminal plays the smoothness of video, it is not in the problem of playing Caton, viewing quality is not influenced, The information association to hundreds of millions grades of User ID can be achieved.

Description

A kind of digital watermarking addition and extracting method, apparatus and system
Technical field
The present embodiments relate to digital watermark technology fields, and in particular to a kind of digital watermarking addition and extracting method, Apparatus and system.
Background technique
Method by adding digital watermarking in video can effectively solve between film-maker and conventional entity cinemas Video copyright protecting problem reduces video in cinemas and the risk stolen by other people such as is recorded, copies.Nowadays with movement The rapid development of internet, digital video transmission on the internet and broadcasting on mobile phone terminal or other mobile terminals It puts, user is allowed to carry out viewing under mobile terminal, broken the limitation for being only limitted to the projection equipments such as cinemas, CD-ROI, But the stolen risk and security risk of new digital video film are increased simultaneously, risk level is increased from cinemas rank To user class.
The copyright protection that traditional method that digital watermarking is added before video projection is realized can only track cinemas grade Not, the information for playing cinemas is only known before projection, can not track the user class of mobile terminal.Using existing digital watermarking It adds algorithm and directly carries out digital watermarking addition meeting when mobile terminal is shown because addition is time-consuming, cause to play Caton, to view Frequency quality impacts, and influences viewing quality;And can only realize and User ID mark is added in real-time projection video, number The addition of watermark only limits the addition in a small number of magnitudes, and digital watermarking image size is limited, excessive to will affect video quality, causes Digital watermarking image can not accommodate longer User ID, and there are the limitation that digital watermarking can accommodate identification information length, contents More to also result in the digital watermarking extracted unintelligible, it is difficult to support the information association of hundreds of millions grades of user identifiers.
Summary of the invention
For this purpose, the embodiment of the present invention provides a kind of digital watermarking addition and extracting method, apparatus and system, it is existing to solve Video digital watermark adding method can not track the user class of mobile terminal, can be made in mobile terminal addition digital watermarking At Caton, video quality is impacted, influences viewing quality, and is difficult to support asking for the information association of hundreds of millions grades of user identifiers Topic.
To achieve the goals above, the embodiment of the present invention provides the following technical solutions:
According to a first aspect of the embodiments of the present invention, a kind of digital watermarking adding method, the adding method packet are proposed It includes:
It is N number of video slicing by digital video cutting, and the video slicing is named;
Digital watermarking IK is successively added to N number of video slicing and generates first via video flowing, to N number of video slicing Successively addition digital watermarking IH generates the second road video flowing, wherein includes marking variable I and watermarking images K in digital watermarking IK Combination digital information, include the combination digital information of marking variable I and watermarking images H in digital watermarking IH;
It, will be right respectively with the watermarking images K and watermarking images H according to the difference of watermarking images in added digital watermarking The first identifier and second identifier answered are added separately in the name information of the video slicing;
The first via video flowing and the second road video flowing are merged and obtain alternate video stream, is wrapped in the alternate video stream N group video slicing group is included, video slicing group described in every group includes two respectively added with digital watermarking IK and digital watermarking IH Video slicing;
According to the name information of the video slicing, the alternate index file of the alternate video stream is generated;
The User ID of the mobile terminal played for digital video is obtained, and the User ID is converted into fixed digit Binary data;
According to the corresponding relationship of preset binary digit 0,1 and the first identifier, second identifier, according to described two into The number of each in data processed includes the corresponding every group of video identified by successively sequence is chosen in the alternate index file The index information of target video fragment in fragment group;
According to the index information of target video fragment in every group of video slicing group, generating includes N group video slicing group target The target index file of the index information of video slicing;
According to the target index file, by the target video point for obtaining N group video slicing group in the alternate video stream Piece list, for being played out in the mobile terminal.
Further, described that digital watermarking IK generation first via video flowing is successively added to N number of video slicing, to N A video slicing successively adds digital watermarking IH and generates in the second road video flowing, and the addition of digital watermarking includes:
Extract the key frame of the video slicing;
Generate the RGB image of the key frame;
Generate the image information of the digital watermarking;
The image information of the digital watermarking is embedded in the RGB image of the key frame using cat face transformation algorithm;
Fused image is encoded into source data format and the video slicing is written.
Further, the index information according to target video fragment in every group of video slicing group is generated and is regarded comprising N group Before the target index file of the index information of frequency division piece group target video fragment, further includes:
If the digit I < N of the binary data, recirculate by first of the binary data by suitable Sequence continues to choose, until selecting the index information of N group video slicing group target video fragment.
Further, the User ID for obtaining the mobile terminal played for digital video, and the User ID is turned It is changed to the binary data of fixed digit, further includes:
If the fixed digit of the digit deficiency of the binary data, will mend 0 before the binary data.
According to a second aspect of the embodiments of the present invention, a kind of digital watermark adding device is proposed, described device includes:
Divide module, for being N number of video slicing by digital video cutting, and the video slicing is named;
Digital watermarking adding module generates first via view for successively adding digital watermarking IK to N number of video slicing Frequency flows, and successively adds digital watermarking IH to N number of video slicing and generates the second road video flowing, wherein wraps in digital watermarking IK The combination digital information of marking variable I and watermarking images K are included, includes the group of marking variable I and watermarking images H in digital watermarking IH Close digital information;
It, will be right respectively with the watermarking images K and watermarking images H according to the difference of watermarking images in added digital watermarking The first identifier and second identifier answered are added separately in the name information of the video slicing;
Alternate video stream generation module obtains spare view for merging the first via video flowing and the second road video flowing Frequency flows, and includes N group video slicing group in the alternate video stream, and video slicing group described in every group includes two respectively added with number The video slicing of word watermark IK and digital watermarking IH;
According to the name information of the video slicing, the alternate index file of the alternate video stream is generated;
User ID conversion module, for obtaining the User ID for being used for the mobile terminal that digital video plays, and by the use Family ID is converted to the binary data of fixed digit;
Target video fragment list obtains module, for according to preset binary digit 0,1 and the first identifier, the The corresponding relationship of two marks, according to the number of each in the binary data, by successively suitable in the alternate index file Sequence selection includes the index information of target video fragment in every group of video slicing group of corresponding mark;
According to the index information of target video fragment in every group of video slicing group, generating includes N group video slicing group target The target index file of the index information of video slicing;
According to the target index file, by the target video point for obtaining N group video slicing group in the alternate video stream Piece list, for being played out in the mobile terminal.
According to a third aspect of the embodiments of the present invention, a kind of digital watermarking extracting method is proposed, for according to first A kind of digital watermarking of the addition of digital watermarking adding method described in aspect extracts, and the extracting method includes:
It extracts the image information of digital watermarking in digital video and is arranged in order, in the image information of the digital watermarking Combined information including marking variable I Yu watermarking images K or watermarking images H;
According to the corresponding relationship of preset binary digit 0, the 1 and watermarking images K, watermarking images H, binary system is obtained Data;
The binary data is subjected to decimal system conversion and obtains the User ID.
Further, described to extract the image information of digital watermarking in digital video and be arranged in order, digital watermarking Image information extraction include:
Extract the former frame of the key frame and the key frame in digital video;
The former frame of the key frame and the key frame is subjected to similarity comparison;
If similarity difference is less than preset threshold, the RGB image of the key frame is generated;
The image information of digital watermarking in the RGB image of the key frame is extracted using reverse cat face transformation algorithm.
Further, the corresponding pass according to preset binary digit 0,1 and the watermarking images K, watermarking images H System obtains in binary data, further includes;
For the arrangement section that the image information of the digital watermarking continuously repeats, a bit binary number is obtained.
According to a fourth aspect of the embodiments of the present invention, a kind of digital watermarking extraction element is proposed, for according to first A kind of digital watermarking of the addition of digital watermarking adding method described in aspect extracts, and the extraction element includes:
Digital watermarking extraction module, for extracting the image information of digital watermarking in digital video and being arranged in order, institute State the combined information in the image information of digital watermarking including marking variable I and watermarking images K or watermarking images H;
User ID acquisition module, according to preset binary digit 0,1 and the watermarking images K, watermarking images H it is corresponding Relationship obtains binary data;
The binary data is subjected to decimal system conversion and obtains the User ID.
According to a fifth aspect of the embodiments of the present invention, a kind of digital watermarking addition and extraction system, the system are proposed Dress is extracted including a kind of digital watermark adding device as described in second aspect and a kind of digital watermarking as described in fourth aspect It sets.
The embodiment of the present invention has the advantages that
A kind of digital watermarking addition and extracting method, apparatus and system that the embodiment of the present invention proposes, by regarding number The digital watermarking comprising different watermarking images information is added in the video slicing list generated after frequency cutting respectively, obtains two-way simultaneously The video flowing of column, before mobile terminal playing, using the binary data information of User ID to the video in two-path video stream Fragment is successively chosen, and the video slicing playlist with User ID binding is generated, if the video in mobile terminal playing It is illegally recorded or is copied, the image information of the digital watermarking in the video recorded or copied can extracted, pass through people The different of outlook not wherein watermarking images obtain arrangement informations, and according to the corresponding relationship of watermarking images and binary digit 0,1, One group of binary data is obtained, obtains User ID after conversion, is realized with this and user class is tracked to the protection of video copy, and Can guarantee mobile terminal play video smoothness, be not in play Caton the problem of, do not influence viewing quality, only with comprising compared with The association to hundreds of millions grades of User ID can be realized in the digital watermarking of few content, and digital watermarking includes that content is less, can be by its ruler It is very little to tune up, it ensure that digital watermarking extraction is high-visible, recognition effect is good.
Detailed description of the invention
It, below will be to embodiment party in order to illustrate more clearly of embodiments of the present invention or technical solution in the prior art Formula or attached drawing needed to be used in the description of the prior art are briefly described.It should be evident that the accompanying drawings in the following description is only It is merely exemplary, it for those of ordinary skill in the art, without creative efforts, can also basis The attached drawing of offer, which is extended, obtains other implementation attached drawings.
Fig. 1 is a kind of flow diagram for digital watermarking adding method that the embodiment of the present invention 1 provides;
Fig. 2 is a kind of structural schematic diagram for digital watermark adding device that the embodiment of the present invention 2 provides;
Fig. 3 is a kind of flow diagram for digital watermarking extracting method that the embodiment of the present invention 3 provides;
Fig. 4 is a kind of structural schematic diagram for digital watermarking extraction element that the embodiment of the present invention 4 provides;
Fig. 5 is the structural schematic diagram of a kind of digital watermarking addition and extraction system that the embodiment of the present invention 5 provides.
Specific embodiment
Embodiments of the present invention are illustrated by particular specific embodiment below, those skilled in the art can be by this explanation Content disclosed by book is understood other advantages and efficacy of the present invention easily, it is clear that described embodiment is the present invention one Section Example, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not doing Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
Embodiment 1
As shown in Figure 1, the present embodiment proposes a kind of digital watermarking adding method, which includes:
S100, by digital video cutting be N number of video slicing, and to video slicing name.Specifically, passing through first FFMPEG technology carries out processing to the former digital video file of various encapsulation format and data encoding and decoding are handled, to save one The trouble of a little digital video specialized procedure processing.Then using HLS technology, by treated, digital video is divided into 2 seconds~10 seconds Video segmentation section m3u8 video slicing list, can be named as in order 0.ts, 1.ts, 2.ts, 3.ts ..., n.ts.
S110, N number of video slicing is successively added digital watermarking IK generate first via video flowing, to N number of video slicing according to Secondary addition digital watermarking IH generates the second road video flowing, wherein including marking variable I and watermarking images K in digital watermarking IK Digital information is combined, includes the combination digital information of marking variable I and watermarking images H in digital watermarking IH.Specifically, variable mark Know I to be changed with video slicing, marking variable I can be used integer variable number 1,2,3 ... or other variable formats Indicate, by integer variable number 1,2,3 ... for, for first via video flowing 1 (0.ts, 1.ts, 2.ts, 3.ts ..., N.ts), the image of the digital watermarking of first video slicing addition is 1H, and second addition is 2K, and third addition is 3K ... ..., n-th addition is NH, for the second road video flowing 2 (0.ts, 1.ts, 2.ts, 3.ts ..., n.ts), first The image of the digital watermarking of video slicing addition is 1H, and second addition is 2K, and third addition is 3H ... ..., n-th Addition is NH, and two-path video stream is added to two kinds of watermarking images K and H, and watermarking images combine the variable for having sequence to change Mark, and the marking variable of the video slicing in two-path video stream list in parallel position is identical.
Further, digital watermarking IK is successively added to N number of video slicing and generates first via video flowing, to N number of video point Piece successively adds digital watermarking IH and generates in the second road video flowing, and the addition of digital watermarking includes:
Extract the key frame of video slicing;
Generate the RGB image of key frame;
Generate the image information of digital watermarking;
It will be in the RGB image of the image information insertion key frame of digital watermarking using cat face transformation algorithm;
Fused image is encoded into source data format and video slicing is written.
Specifically, detected in digital watermarking addition using I-Frame (key frame), key frame refer in video role or That frame locating for key operations in object of which movement or variation, can detecte multiple key frames in each video slicing, if The key frame data format detected is yuv420P, then is first converted into RGB data format, is generated further according to RGB data RGB image, and according to the image information of the digital information of digital watermarking generation digital watermarking, the image information of digital watermarking includes The combination of marking variable I and watermarking images K or H, can also be according to the RGB image size of key frame and the image of digital watermarking How many a digital watermarkings can be added in the RGB image of size calculating key frame, the addition of multiple digital watermarkings are realized, by key frame RGB image and the image of digital watermarking merged, the image of fusion finally re-encode be reduced to it is identical as former digital video Source data format be written video slicing, just obtain the digital video fragment added with digital watermarking IK or IH in this way.
S120, according to the difference of watermarking images in added digital watermarking, will distinguish with watermarking images K and watermarking images H Corresponding first identifier and second identifier are added separately in the name information of video slicing.Illustratively, first identifier uses Digital " 1 " corresponding watermarking images K, second identifier are added in original basis name information using digital " 2 " corresponding watermarking images H Timestamp can also be added while first identifier or second identifier, naming rule is that original video fragment name+timestamp+the first is marked Knowledge/second identifier, such as first via video flowing are as follows:
1(01533017381.ts,11533017381.ts,21533017381.ts,31533017381.ts,…, N1533017381.ts), wherein 153301738 be timestamp;
Second road video flowing are as follows:
2(01533017382.ts,11533017382.ts,21533017382.ts,31533017382.ts,…, N1533017382.ts), wherein 153301738 be timestamp.
S130, first via video flowing and the second road video flowing are merged to acquisition alternate video stream, includes N in alternate video stream Group video slicing group, every group of video slicing group include two videos added with digital watermarking IK and digital watermarking IH point respectively Piece.After above-mentioned two-path video stream merges, alternate video stream can be indicated are as follows:
12(01533017381.ts,01533017382.ts;11533017381.ts,11533017382.ts; 21533017381.ts,21533017382.ts;31533017381.ts,31533017382.ts;…; n1533017381.ts,n1533017382.ts);
In every group of n1533017381.ts, n1533017382.ts, name end is added by the expression of first identifier " 1 " The watermarking images of digital watermarking are K, and the watermarking images that digital watermarking is added by the expression of first identifier " 2 " in name end are H.
S140, the name information according to video slicing generate the alternate index file of alternate video stream.According to above-mentioned merging Alternate video stream list in name information, generate new m3u8 alternate index file, and by the alternate video stream of synthesis with And m3u8 alternate index file stores in CDN server together, mobile terminal first will be in CDN server before user's viewing The m3u8 alternate index file drawing of storage goes to local.
S150, the User ID for obtaining the mobile terminal played for digital video, and User ID is converted into fixed digit Binary data.In this implementation, User ID is converted to and fixes 32 binary data, for example User ID is 1291907225, generate binary data are as follows:
1001101000000001111000010011001.
Further, the User ID of the mobile terminal played for digital video is obtained, and User ID is converted into fixation The binary data of digit, further includes:
If the fixed digit of the digit deficiency of binary data, will mend 0 before binary data.I.e. if binary digit not Enough 32 are then mended 0 in front, mean that being converted into 4 byte integers (supports the user of 4 byte signless integer value ranges ID。
S160, according to the corresponding relationship of preset binary digit 0,1 and first identifier, second identifier, according to binary system The number of each in data includes the corresponding every group of video slicing group identified by successively sequence is chosen in alternate index file The index information of middle target video fragment.Illustratively, the corresponding first identifier of binary digit 0 is specified, binary digit 1 is corresponding Second identifier is chosen since first according to the binary data of User ID, and the binary system of User ID is 1001101000000001111000010011001, the first bit binary number is 1, then in alternate index file, chooses the It include the target video fragment of second identifier " 2 " in one group of video slicing group (01533017381.ts, 01533017382.ts), That is 01533017382.ts, second binary system is 0, then in alternate index file, chooses second group of video slicing group It include the target video fragment of first identifier " 1 " in (11533017381.ts, 11533017382.ts), i.e., 11533017381.ts ... ..., and so on, the id information in every group of video slicing group all in accordance with user selects a target The index of video slicing, and form final playlist.
S170, according to the index information of target video fragment in every group of video slicing group, generating includes N group video slicing group The target index file of the index information of target video fragment.
Further, it according to the index information of target video fragment in every group of video slicing group, generates comprising N group video point Before the target index file of the index information of piece group target video fragment, further includes:
If the digit I < N of binary data, is recirculated by first of binary data and continue to select in order It takes, until selecting the index information of N group video slicing group target video fragment.
In the selection of above-mentioned target video fragment index, the binary data of User ID fixes 32, initial to regard Generally to guarantee when frequency division is cut by video slicing into 32 or more video slicings, it can using 32 User ID binary data To select to complete first 32 groups in alternate index file of target video fragment, in order to guarantee to regard the target of remaining 33-N group Frequency division piece is completed to choose, then is recirculated since first of binary data, after circulation is multiple, by N group video The index of the target complete video slicing of fragment group, which selects, to be come, and forms a complete video play lists in this way.
S180, according to target index file, by the target video fragment column for obtaining N group video slicing group in alternate video stream Table, for being played out in mobile terminal.According to the target index file list of foundation, so that it may in the broadcasting of mobile terminal Digital video is played according to the agreement of HLS in program.
A kind of digital watermarking adding method that the embodiment of the present invention proposes, passes through the video that will be generated after digital video cutting The digital watermarking comprising different watermarking images information is added in fragment list respectively, two-way video flowing arranged side by side is obtained, in movement Before terminal plays, the video slicing in two-path video stream is successively chosen using the binary data information of User ID, The video slicing playlist with User ID binding is generated, help, which is realized, tracks user class to the protection of video copy, and Can guarantee mobile terminal play video smoothness, be not in play Caton the problem of, do not influence viewing quality, only with comprising compared with The association to hundreds of millions grades of User ID can be realized in the digital watermarking of few content, and digital watermarking includes that content is less, can be by its ruler It is very little to tune up, it ensure that digital watermarking extraction is high-visible, recognition effect is good.
Embodiment 2
Corresponding with above-described embodiment 1, the present embodiment proposes a kind of digital watermark adding device 200, such as Fig. 2 institute Show, which includes segmentation module 210, digital watermarking adding module 220, alternate video stream generation module 230, User ID Conversion module 240 and target video fragment list obtain module 250.
Divide module 210, for being N number of video slicing by digital video cutting, and video slicing is named.
Digital watermarking adding module 220 generates first via video for successively adding digital watermarking IK to N number of video slicing Stream successively adds digital watermarking IH to N number of video slicing and generates the second road video flowing, wherein includes variable in digital watermarking IK Identify the combination digital information of I and watermarking images K, the combination number including marking variable I and watermarking images H in digital watermarking IH Information;
It, will be corresponding with watermarking images K and watermarking images H according to the difference of watermarking images in added digital watermarking First identifier and second identifier are added separately in the name information of video slicing.
Alternate video stream generation module 230 obtains spare view for merging first via video flowing and the second road video flowing Frequency flows, and includes N group video slicing group in alternate video stream, and every group of video slicing group includes two and be added with digital watermarking IK respectively With the video slicing of digital watermarking IH;
According to the name information of video slicing, the alternate index file of alternate video stream is generated;
User ID conversion module 240, for obtaining the User ID for being used for the mobile terminal that digital video plays, and by user ID is converted to the binary data of fixed digit.
Target video fragment list obtains module 250, for according to preset binary digit 0,1 and first identifier, the The corresponding relationship of two marks, according to the number of each in binary data, by successively sequence chooses packet in alternate index file The index information of target video fragment in every group of video slicing group containing corresponding mark;
According to the index information of target video fragment in every group of video slicing group, generating includes N group video slicing group target The target index file of the index information of video slicing;
According to target index file, by obtaining the target video fragment list of N group video slicing group in alternate video stream, with For being played out in mobile terminal.
Function performed by each component is in above-mentioned implementation in a kind of digital watermark adding device provided in this embodiment It is discussed in detail in example 1, therefore does not do excessively repeat here.
Embodiment 3
Include digital watermarking digital video after mobile terminal playing, if illegally being recorded or being copied, It needs to carry out the digital video recorded or copied digital watermarking to extract to obtain mobile terminal subscriber information, realize to user's Tracking.The present embodiment proposes a kind of digital watermarking extracting method, for a kind of digital watermarking addition side according to embodiment 1 The digital watermarking of method addition extracts, as shown in figure 3, the extracting method includes:
S300, it extracts the image information of digital watermarking in digital video and is arranged in order, the image information of digital watermarking In include marking variable I and watermarking images K or watermarking images H combined information.
Further, in extracting the image information of digital watermarking in digital video and being arranged in order, the figure of digital watermarking As information extraction includes:
Extract the former frame of the key frame and key frame in digital video;
The former frame of key frame and key frame is subjected to similarity comparison;
If similarity difference is less than preset threshold, the RGB image of key frame is generated;
The image information of digital watermarking in the RGB image of key frame is extracted using reverse cat face transformation algorithm.
Specifically, carrying out I-Frame (key frame) inspection to the illegal digital video recorded or copied by FFMPEG technology It surveys, and available multiple key frames, by the way that key frame and its former frame are carried out similarity comparison, if the two similarity difference It is smaller, then converting RGB24 image for the digital information of key frame, and the image of the digital watermarking in RGB image is extracted, It include the combination of marking variable I and watermarking images K or H in digital watermarking image, the image that these Detection and Extraction are gone out is according to suitable Sequence arrangement, such as 1H, 2K, 3K ..., NH.
S310, according to the corresponding relationship of preset binary digit 0,1 and watermarking images K, watermarking images H, obtain two into Data processed.For example according to preset corresponding relationship, corresponding binary digit 0 is watermarking images K, and binary digit 1 is corresponding It is watermarking images H, which target video slice section marking variable I corresponding is, a target video slice section is one corresponding The binary digit of User ID.
Further, it according to the corresponding relationship of preset binary digit 0,1 and watermarking images K, watermarking images H, obtains In binary data, further include;
For the arrangement section that the image information of digital watermarking continuously repeats, a bit binary number is obtained.
The image extracted can go out watermarking images K or H and combined marking variable I by eye recognition, due to closing The detection of key frame be in every section of video segment it is multiple, the digital watermarking added is multiple duplicate in every section of slice, non- In the digital video that method is recorded or copied and detect multiple key frames, then can occur in the image extracted (1H, 1H ...), (2K, 2K ...), (3K, 3K ...), (NH, NH ...), such repeated arrangement section, identical variable mark Know and watermarking images explanation is to belong to identical video segment section, the corresponding binary digit of every section of video segment section, so Only obtaining a binary digit, i.e., (1H, 1H ...) corresponding first bit binary number is 1, (2K, 2K ...) right Answering the second bit binary number is 0 ... ..., and (32H, 32H ...) corresponding 32nd bit binary number is 1, is fixed until obtaining 32 binary data.
It will use the binary number of User ID when video slicing of the video slicing at 32 or more according to the foregoing description According to the target video slice for carrying out circulation selection residue 33-N group video segment group, so marking variable is 32 in the image extracted Later number (33-N), belong to be repetitive cycling binary data, digital watermarking figure can be used as these images As reference the supplement of identification, if such as 1H the image image that does not extract or extract relatively obscure be difficult to recognize whether For 1H, then can determine the first bit according to the image of clearly 33K, 65K or (32 × n+1) K for extracting Word is 1.
S320, binary data is carried out to decimal system conversion acquisition User ID.What be will acquire fixes 32 bit binary datas Again it is converted to User ID, realizes the tracking of the User ID for the mobile terminal that video is illegally recorded or copied.
A kind of digital watermarking extracting method that the present embodiment proposes, if video is illegally recorded in mobile terminal playing Or copy, the image information of the digital watermarking in the video recorded or copied can be extracted, wherein by eye recognition The different of watermarking images obtain arrangement information, and according to the corresponding relationship of watermarking images and binary digit 0,1, obtain one group two Binary data obtains User ID after conversion, is realized with this and tracks user class to the protection of video copy, and can guarantee movement End plays the smoothness of video, is not in the problem of playing Caton, viewing quality not to be influenced, only with the number comprising less content The association to hundreds of millions grades of User ID can be realized in word watermark, and digital watermarking includes that content is less, its size can be tuned up, number Watermark extracting is high-visible, and recognition effect is good.
Embodiment 4
Corresponding with above-described embodiment 3, the present embodiment proposes a kind of digital watermarking extraction element 400, for basis A kind of digital watermarking of digital watermarking adding method addition described in embodiment 1 extracts, as shown in figure 4, the extraction element 400 include digital watermarking extraction module 410 and user ID acquisition module 420.
Digital watermarking extraction module 410, for extracting the image information of digital watermarking in digital video and being arranged in order, It include the combined information of marking variable I and watermarking images K or watermarking images H in the image information of digital watermarking.
User ID acquisition module 420, for according to preset binary digit 0,1 and watermarking images K, watermarking images H Corresponding relationship obtains binary data;
Binary data is subjected to decimal system conversion and obtains User ID.
Function performed by each component is in above-mentioned implementation in a kind of digital watermarking extraction element provided in this embodiment It is discussed in detail in example 3, therefore does not do excessively repeat here.
Embodiment 5
Corresponding with above-described embodiment 2 and embodiment 4, the present embodiment proposes a kind of digital watermarking addition with extracting and is System, as shown in figure 5, the system is including a kind of digital watermark adding device 200 as described in Example 2 and as described in Example 4 A kind of digital watermarking extraction element 400.
Function performed by each component of the digital watermark adding device 200 and each component of digital watermark extraction apparatus 400 Performed function has been discussed in detail in the above-described embodiments, does not do excessively repeat here.
Although above having used general explanation and specific embodiment, the present invention is described in detail, at this On the basis of invention, it can be made some modifications or improvements, this will be apparent to those skilled in the art.Therefore, These modifications or improvements without departing from theon the basis of the spirit of the present invention are fallen within the scope of the claimed invention.

Claims (10)

1. a kind of digital watermarking adding method, which is characterized in that the adding method includes:
It is N number of video slicing by digital video cutting, and the video slicing is named;
Digital watermarking IK is successively added to N number of video slicing and generates first via video flowing, successively to N number of video slicing It adds digital watermarking IH and generates the second road video flowing, wherein include the group of marking variable I and watermarking images K in digital watermarking IK Digital information is closed, includes the combination digital information of marking variable I and watermarking images H in digital watermarking IH;
It, will be corresponding with the watermarking images K and watermarking images H according to the difference of watermarking images in added digital watermarking First identifier and second identifier are added separately in the name information of the video slicing;
The first via video flowing and the second road video flowing are merged and obtain alternate video stream, includes N in the alternate video stream Group video slicing group, video slicing group described in every group include two videos for being added with digital watermarking IK and digital watermarking IH respectively Fragment;
According to the name information of the video slicing, the alternate index file of the alternate video stream is generated;
Obtain the User ID of the mobile terminal played for digital video, and by the User ID be converted to the two of fixed digit into Data processed;
According to the corresponding relationship of preset binary digit 0,1 and the first identifier, second identifier, according to the binary number The number of each in includes the corresponding every group of video slicing identified by successively sequence is chosen in the alternate index file The index information of target video fragment in group;
According to the index information of target video fragment in every group of video slicing group, generating includes N group video slicing group target video The target index file of the index information of fragment;
According to the target index file, the target video fragment by obtaining N group video slicing group in the alternate video stream is arranged Table, for being played out in the mobile terminal.
2. a kind of digital watermarking adding method according to claim 1, which is characterized in that described to N number of video point Piece successively adds digital watermarking IK and generates first via video flowing, successively adds digital watermarking IH to N number of video slicing and generates In second road video flowing, the addition of digital watermarking includes:
Extract the key frame of the video slicing;
Generate the RGB image of the key frame;
Generate the image information of the digital watermarking;
The image information of the digital watermarking is embedded in the RGB image of the key frame using cat face transformation algorithm;
Fused image is encoded into source data format and the video slicing is written.
3. a kind of digital watermarking adding method according to claim 1, which is characterized in that described according to every group of video slicing The index information of target video fragment in group generates the target of the index information comprising N group video slicing group target video fragment Before index file, further includes:
If the digit I < N of the binary data, by first of the binary data recirculate in order after It is continuous to choose, until selecting the index information of N group video slicing group target video fragment.
4. a kind of digital watermarking adding method according to claim 1, which is characterized in that described obtain is used for digital video The User ID of the mobile terminal of broadcasting, and the User ID is converted to the binary data of fixed digit, further includes:
If the fixed digit of the digit deficiency of the binary data, will mend 0 before the binary data.
5. a kind of digital watermark adding device, which is characterized in that described device includes:
Divide module, for being N number of video slicing by digital video cutting, and the video slicing is named;
Digital watermarking adding module generates first via video flowing for successively adding digital watermarking IK to N number of video slicing, Digital watermarking IH is successively added to N number of video slicing and generates the second road video flowing, wherein includes variable in digital watermarking IK Identify the combination digital information of I and watermarking images K, the combination number including marking variable I and watermarking images H in digital watermarking IH Information;
It, will be corresponding with the watermarking images K and watermarking images H according to the difference of watermarking images in added digital watermarking First identifier and second identifier are added separately in the name information of the video slicing;
Alternate video stream generation module obtains alternate video for merging the first via video flowing and the second road video flowing It flows, includes N group video slicing group in the alternate video stream, video slicing group described in every group includes two respectively added with number The video slicing of watermark IK and digital watermarking IH;
According to the name information of the video slicing, the alternate index file of the alternate video stream is generated;
User ID conversion module, for obtaining the User ID for being used for the mobile terminal that digital video plays, and by the User ID Be converted to the binary data of fixed digit;
Target video fragment list obtains module, for according to preset binary digit 0,1 and the first identifier, the second mark The corresponding relationship of knowledge, according to the number of each in the binary data, by successively sequence is selected in the alternate index file Take include target video fragment in every group of video slicing group of corresponding mark index information;
According to the index information of target video fragment in every group of video slicing group, generating includes N group video slicing group target video The target index file of the index information of fragment;
According to the target index file, the target video fragment by obtaining N group video slicing group in the alternate video stream is arranged Table, for being played out in the mobile terminal.
6. a kind of digital watermarking extracting method, which is characterized in that for a kind of number according to any one of claims 1-4 The digital watermarking of word watermark adding method addition extracts, and the extracting method includes:
It extracts the image information of digital watermarking in digital video and is arranged in order, include in the image information of the digital watermarking The combined information of marking variable I and watermarking images K or watermarking images H;
According to the corresponding relationship of preset binary digit 0, the 1 and watermarking images K, watermarking images H, binary number is obtained According to;
The binary data is subjected to decimal system conversion and obtains the User ID.
7. a kind of digital watermarking extracting method according to claim 6, which is characterized in that number in the extraction digital video The image information of word watermark is simultaneously arranged in order, and the image information extraction of digital watermarking includes:
Extract the former frame of the key frame and the key frame in digital video;
The former frame of the key frame and the key frame is subjected to similarity comparison;
If similarity difference is less than preset threshold, the RGB image of the key frame is generated;
The image information of digital watermarking in the RGB image of the key frame is extracted using reverse cat face transformation algorithm.
8. a kind of digital watermarking extracting method according to claim 6, which is characterized in that described according to preset binary system The corresponding relationship of number 0, the 1 and watermarking images K, watermarking images H obtain in binary data, further include;
For the arrangement section that the image information of the digital watermarking continuously repeats, a bit binary number is obtained.
9. a kind of digital watermarking extraction element, which is characterized in that for a kind of number according to any one of claims 1-4 The digital watermarking of word watermark adding method addition extracts, and the extraction element includes:
Digital watermarking extraction module, for extracting the image information of digital watermarking in digital video and being arranged in order, the number It include the combined information of marking variable I and watermarking images K or watermarking images H in the image information of word watermark;
User ID acquisition module, according to the corresponding pass of preset binary digit 0,1 and the watermarking images K, watermarking images H System obtains binary data;
The binary data is subjected to decimal system conversion and obtains the User ID.
10. a kind of digital watermarking addition and extraction system, which is characterized in that the system comprises as claimed in claim 5 one Kind digital watermark adding device and a kind of digital watermarking extraction element as claimed in claim 9.
CN201910352417.7A 2019-04-29 2019-04-29 A kind of digital watermarking addition and extracting method, apparatus and system Pending CN110062291A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910352417.7A CN110062291A (en) 2019-04-29 2019-04-29 A kind of digital watermarking addition and extracting method, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910352417.7A CN110062291A (en) 2019-04-29 2019-04-29 A kind of digital watermarking addition and extracting method, apparatus and system

Publications (1)

Publication Number Publication Date
CN110062291A true CN110062291A (en) 2019-07-26

Family

ID=67321471

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910352417.7A Pending CN110062291A (en) 2019-04-29 2019-04-29 A kind of digital watermarking addition and extracting method, apparatus and system

Country Status (1)

Country Link
CN (1) CN110062291A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111147686A (en) * 2019-12-31 2020-05-12 上海影卓信息科技有限公司 Video and image content tracking method and system based on steganographic information
CN111526388A (en) * 2020-04-29 2020-08-11 北京奇艺世纪科技有限公司 Video playing method and device and video playing control method and device
CN111680273A (en) * 2020-05-21 2020-09-18 北京北信源软件股份有限公司 Watermark embedding method, device, electronic equipment and readable storage medium
CN111741377A (en) * 2020-05-19 2020-10-02 北京奥鹏远程教育中心有限公司 Video processing method
CN111836054A (en) * 2020-07-24 2020-10-27 上海连尚网络科技有限公司 Video piracy prevention method, electronic device and computer readable storage medium
CN113573141A (en) * 2021-07-21 2021-10-29 北京奇艺世纪科技有限公司 Video processing method and device, electronic equipment and storage medium
CN113810781A (en) * 2021-11-17 2021-12-17 三节课信息咨询(北京)有限公司 Video processing method, video processing device, video tracking method, video tracking device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101790065A (en) * 2008-12-30 2010-07-28 耶德托存取公司 Add fingerprint to data object
KR100990210B1 (en) * 2009-04-30 2010-10-29 이진흥 Authentication and copyright protection method for h.264 video
US20110188700A1 (en) * 2008-12-01 2011-08-04 Kt Corporation Apparatus for inserting watermark and method therefor
CN102307320A (en) * 2011-08-11 2012-01-04 江苏亿通高科技股份有限公司 Piracy tracing watermarking method applicable to streaming media environment
CN102377766A (en) * 2010-08-09 2012-03-14 索尼公司 Information processing apparatus, information processing method, and program
CN104598541A (en) * 2014-12-29 2015-05-06 乐视网信息技术(北京)股份有限公司 Identification method and device for multimedia file
CN107959895A (en) * 2017-11-28 2018-04-24 三峡大学 A kind of video playing retroactive method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110188700A1 (en) * 2008-12-01 2011-08-04 Kt Corporation Apparatus for inserting watermark and method therefor
CN101790065A (en) * 2008-12-30 2010-07-28 耶德托存取公司 Add fingerprint to data object
KR100990210B1 (en) * 2009-04-30 2010-10-29 이진흥 Authentication and copyright protection method for h.264 video
CN102377766A (en) * 2010-08-09 2012-03-14 索尼公司 Information processing apparatus, information processing method, and program
CN102307320A (en) * 2011-08-11 2012-01-04 江苏亿通高科技股份有限公司 Piracy tracing watermarking method applicable to streaming media environment
CN104598541A (en) * 2014-12-29 2015-05-06 乐视网信息技术(北京)股份有限公司 Identification method and device for multimedia file
CN107959895A (en) * 2017-11-28 2018-04-24 三峡大学 A kind of video playing retroactive method and device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111147686A (en) * 2019-12-31 2020-05-12 上海影卓信息科技有限公司 Video and image content tracking method and system based on steganographic information
CN111526388A (en) * 2020-04-29 2020-08-11 北京奇艺世纪科技有限公司 Video playing method and device and video playing control method and device
CN111741377A (en) * 2020-05-19 2020-10-02 北京奥鹏远程教育中心有限公司 Video processing method
CN111680273A (en) * 2020-05-21 2020-09-18 北京北信源软件股份有限公司 Watermark embedding method, device, electronic equipment and readable storage medium
CN111836054A (en) * 2020-07-24 2020-10-27 上海连尚网络科技有限公司 Video piracy prevention method, electronic device and computer readable storage medium
CN113573141A (en) * 2021-07-21 2021-10-29 北京奇艺世纪科技有限公司 Video processing method and device, electronic equipment and storage medium
CN113573141B (en) * 2021-07-21 2022-09-30 北京奇艺世纪科技有限公司 Video processing method and device, electronic equipment and storage medium
CN113810781A (en) * 2021-11-17 2021-12-17 三节课信息咨询(北京)有限公司 Video processing method, video processing device, video tracking method, video tracking device and storage medium

Similar Documents

Publication Publication Date Title
CN110062291A (en) A kind of digital watermarking addition and extracting method, apparatus and system
Swanson et al. Multimedia data-embedding and watermarking technologies
US11450109B2 (en) Systems and methods for generating bookmark video fingerprint
Chen et al. Automatic detection of object-based forgery in advanced video
Dittmann et al. Content-based digital signature for motion pictures authentication and content-fragile watermarking
Pereira et al. Robust template matching for affine resistant image watermarks
CN102144237B (en) Efficient watermarking approaches of compressed media
US9843846B2 (en) Watermark and fingerprint systems for media
CN101635843B (en) Method and system for extracting, seeking and comparing visual patterns based on frame-to-frame variation characteristics
AU2010201199B2 (en) Desynchronized fingerprinting method and system for digital multimedia data
EP1917625A2 (en) Covert and robust mark for media identification
CN106709853B (en) Image retrieval method and system
US6690831B1 (en) Encoding device and encoding method, decoding device and decoding method, information processing device and information processing method as well as a medium
Dittmann et al. Combined video and audio watermarking: Embedding content information in multimedia data
CN104954807A (en) Video copy tamper detection method resisting geometric attacks
Su et al. A practical design of digital watermarking for video streaming services
US20050203872A1 (en) Method and apparatus making, operating and using media parsers to mark, read, and unmark instances of media formats supporting one, two and multi-dimensional instances and data streams
Altinisik et al. Video source characterization using encoding and encapsulation characteristics
Lakshmi et al. Digital video watermarking tools: an overview
Zong et al. Non-linear-echo based anti-collusion mechanism for audio signals
Ke et al. Robust Video watermarking based on deep neural network and curriculum learning
CN101065769B (en) Method and device for reading digital tattooing
Wang et al. Detecting the fingerprint of video data hiding tool OpenPuff
CN111491171B (en) Watermark embedding, watermark extracting, data processing and video frame detecting method
Baudry et al. A framework for video forensics based on local and temporal fingerprints

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190726

RJ01 Rejection of invention patent application after publication