CN103929646A - Device and method used for insertion, detection and extraction of watermark - Google Patents

Device and method used for insertion, detection and extraction of watermark Download PDF

Info

Publication number
CN103929646A
CN103929646A CN201410176324.0A CN201410176324A CN103929646A CN 103929646 A CN103929646 A CN 103929646A CN 201410176324 A CN201410176324 A CN 201410176324A CN 103929646 A CN103929646 A CN 103929646A
Authority
CN
China
Prior art keywords
watermark
data
frame
territory
detection
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
CN201410176324.0A
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.)
Shenzhen State Micro Technology Co Ltd
Original Assignee
Shenzhen State Micro 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 Shenzhen State Micro Technology Co Ltd filed Critical Shenzhen State Micro Technology Co Ltd
Priority to CN201410176324.0A priority Critical patent/CN103929646A/en
Publication of CN103929646A publication Critical patent/CN103929646A/en
Pending legal-status Critical Current

Links

Landscapes

  • Editing Of Facsimile Originals (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a device and method used for insertion, detection and extraction of a watermark. The device comprises an insertion device used for inserting the watermark and a detection and extraction device used for detecting and extracting the watermark, watermark information is inserted into an I-frame extended data domain and / or a user data domain through the insertion device to serve as a load of the extended data domain and / or the user data domain, scrambling processing is carried out on an I frame, the encryption level is lower, protection of a control word (CW) secrete key is achieved, cracking is difficult, and the I frame serving as a reference frame of following frames, system processing pressure of other frames is reduced.

Description

A kind of for inserting the device and method of watermark and Detection and Extraction watermark
Technical field
The present invention relates to pay-TV field, relate in particular to the device and method that carries out watermark insertion, extraction to meeting the data flow of MPEG2 standard.
Background technology
Watermark belongs to a kind of technology of Information hiding; be widely used in digital media data; by hide the information with certain sense in media data (as audio frequency, video, image); thereby can reach the protection to trace to the source tracking, the digital publishing rights of original media data; and can, to the loss to some extent of original media data quality, can not arrived by people's audiovisual yet.
MPEG2 is as a kind of Audio Video coding Standard, the important effect that has in Contemporary Digital television broadcasting field.Existing technology has realized watermark information has directly been inserted in frame of video, finds, and rejects, and after rejecting, also can not affect the quality of former data flow but direct-insert watermark information is easy to victim.And traditional scrambling based on MPEG2 transport stream and descrambling mode adopt conventionally to the disturbing of load of TS or the disturbing of load to PES.Therefore, a little less than existing water mark method fail safe very, be easy to be attacked and be not found, do not reach the requirement in practical application.
Therefore,, along with developing rapidly and demand to digital copyright protecting of Digital Television, urgently develop the problem that a kind of more reliable, safer water mark method and system exist in practice for solving pay-TV.
Summary of the invention
The object of the invention is in order to solve above-mentioned problems of the prior art, proposed, for inserting the insertion apparatus of watermark, to comprise frame alignment device (201), from the data flow based on MPEG2 standard, orient the original position of I frame and the scope of I frame data; Watermark constructor (301), is configured to watermark information (104) by original watermark data; Expansion and user data generator (302), the load using watermark information (104) as described growth data territory and/or user data fields; Inserter (303), is inserted into growth data territory and/or user data fields (105) in I frame; Encryption equipment (202), is used encryption key (107) to be encrypted and/or scrambling the I frame data (106) with watermark, forms ciphertext I frame data (108); Integrator (203), is integrated into the ciphertext I frame data (108) with watermark in data flow.
Detection and Extraction device for detection of extraction watermark proposed by the invention when above-mentioned insertion apparatus inserts after watermark, can extract watermark from the described data flow based on MPEG2 standard, comprising: receiver module (A), receives the data flow with watermark; Descrambling module (B), comprises the locating module (B1) that the I frame in the data flow with watermark is positioned, to location after with the I frame of watermark carry out descrambling descrambling module (B2) and reception corresponding descramble key deciphering module (B3); Extraction module (C), navigates to growth data territory and/or user data fields in the I frame data with watermark from descrambling, and take out watermark information from the load of growth data territory and/or user data fields; Output module (D), output watermark information.
Proposed by the invention for inserting the insertion method of watermark, comprise the steps:
Step S1, resolves the grammer based on MPEG2 data flow, the I frame of retrieval and locator data stream;
Step S2, judges whether I frame exists growth data territory and/or user data fields, if there is not execution step 3; If exist, perform step 4;
Step S3, structure growth data territory and/or user data fields, insert growth data territory and/or user data fields by watermark, then the growth data territory with watermark and/or user data fields be embedded in I frame;
Step S4, is inserted into watermark in the growth data territory and/or user data fields of I frame;
Step S5, utilizes Control Word to carry out scrambling processing to I frame;
Step S6, circulation step S2 to S5 processes a plurality of I frames.
Detection and Extraction method for detection of extraction watermark proposed by the invention, comprises the steps:
Step Q1: the grammer to the data flow based on MPEG2 standard is resolved, I frame and the Entitlement Control Message of retrieval and locator data stream;
Step Q2: process Entitlement Control Message, draw decryption key, according to decryption key, I frame is carried out to scramble process, recover the data of former I frame;
Step Q3: navigate to extending user territory and/or user data fields from the data of former I frame.
Step Q4: extract watermark information from the load of growth data territory and/or user data fields;
Step Q5: circulation step Q1 to Q4, from MPEG2 data flow, process all I frames, and extract watermark from I frame, form watermark sequence.
Proposed by the invention for inserting the device of watermark and Detection and Extraction watermark, comprise above-mentioned Detection and Extraction device and insertion apparatus, proposed by the invention for inserting the method for watermark and Detection and Extraction watermark, comprise above-mentioned insertion method and Detection and Extraction method.
The present invention, by the institutional framework of video flowing sequence in analysis of MPEG 2 standards, utilizes the absolute coding characteristic of I frame, and growth data territory and the combination of user data fields three aspects: that I frame is carried out in independently disturbing processing and I frame realize watermark function.Analyze and locate all I frames in original video stream, watermarked expansion and user data fields in described I frame, the disturbing of I frame with watermark (other B or P frame are without disturbing) by after embedding, realizes watermark function with this.The quality of the original MPEG2 data flow of not loss of the present invention has the protection of disturbing key (Control Word) simultaneously, has very strong disguise and fail safe, is applicable to the protection to Information hiding and copyright, is specially adapted to pay-TV broadcast world.
Accompanying drawing explanation
Below, the present invention is described in detail for contrast accompanying drawing and preferred embodiment, wherein:
Fig. 1 is the structural representation of Detection and Extraction device of the present invention;
Fig. 2 is the structural representation of insertion apparatus of the present invention;
Fig. 3 is the flow chart that the present invention inserts watermark;
Fig. 4 is the flow chart of Detection and Extraction watermark of the present invention.
Embodiment
Below in conjunction with drawings and Examples, invention is described in detail.Should be appreciated that the explanation of the specific embodiment technical scheme in order to explain that the present invention proposes only, and non-limiting the present invention.
As shown in Figure 1 and Figure 2, proposed by the inventionly for inserting the device of watermark and Detection and Extraction watermark, comprise insertion apparatus and Detection and Extraction device.Wherein the data flow based on MPEG2 standard comprises audio frequency, video and for data stream being carried out to the data such as ECM, EMM of descrambling.Insertion apparatus comprises frame alignment device 201, watermark constructor 301, expansion and user data generator 302, inserter 303, encryption equipment 202, integrator 203, signal output part 109.Detection and Extraction device comprises receiver module A, descrambling module B, extraction module C, output module D.
Locator 201 is position and the length for the I frame in locator data stream, from data flow, orient the original position of I frame and the scope of I frame data, according to the syntactic structure of MPEG2 video bit stream, data flow is divided into from top to bottom according to high layer tissue: Video Sequence Layer-> image sets layer-> image layer.Wherein every one deck all comprises the initial code that a unique hexadecimal bit string forms, can distinguish different levels according to this initial code, if the sequence head initial code of Video Sequence Layer is 000001B3, a figure group initial code of image sets layer is 000001B8, and the initial code of image layer is 00000100.The image layer of the I framing bit of data flow under image sets layer wherein, its initial code is 00000100, and each image sets comprises a plurality of frame of video, and first frame of video is exactly I frame conventionally.Watermark constructor 301 is configured to watermark information 104 by watermarking algorithm by original watermark data, then by expansion and user data generator 302, watermark information is embedded in to the load in I frame growth data territory, or the load of user data fields, also can both embed, growth data territory is that hexadecimal bit string is 000001B5, user data fields 105 for hexadecimal bit string be 000001B2.While there is not growth data territory or user data fields in I frame, expansion and user data fields generator also can first produce growth data territory or user data fields, for use.Inserter 303 is according to circumstances inserted into growth data territory and/or user data fields 105 in I frame, before can being inserted into the Picture Data in I frame data or after Picture Data.Then encryption equipment 202 is used encryption key 107 to carry out scrambling I frame data 106, or be encrypted, in the present invention, adopt Control Word as encryption key, form ciphertext I frame data 108, under the assurance of Control Word, watermark has very strong disguise and fail safe, watermark information is embedded in expansion, the user data fields in I frame data simultaneously, can not affect former MPEG2 video frequency data quality, makes again the robustness of watermark be well solved.Then by integrator 203, ciphertext I frame data 108 are integrated in data flow, finally by signal output part 109 output streams.Receiver module A receives the data flow with watermark, descrambling module B has comprised three submodules, respectively locating module B1, descrambling module B2, deciphering module B3, wherein the operation principle of locating module B1 and the locator in insertion apparatus 201 are similar, and the I frame for the treatment of in the data flow of watermark positions.Then descrambling module obtains the information relevant to decruption key from receiver module A, ECM data for example, then deciphering module B3 carries out computing to key information (ECM), obtain descramble key, offer descrambling module, descrambling module B2 carries out descrambling by descramble key to I frame, in the present invention, descramble key adopts Control Word, by extraction module C from descrambling with being that hexadecimal bit string 000001B2 navigates to growth data territory and/or user data fields by initial code in the I frame data of watermark, and take out watermark information from the load of growth data territory and/or user data fields, finally by output module D output watermark information.
As shown in Figure 3, Figure 4, proposed by the invention for inserting the method for watermark and Detection and Extraction watermark, comprise insertion method and Detection and Extraction method.
The detailed step of insertion method comprises:
Step S1, resolves the grammer of the data flow based on MPEG2 standard, the I frame of retrieval and locator data stream;
Step S2, judges whether I frame exists growth data territory and/or user data fields, if there is not execution step 3; If exist, perform step 4;
Step S3, structure growth data territory and/or user data fields, insert growth data territory and/or user data fields by watermark, then the growth data territory with watermark and/or user data fields be embedded in I frame;
Step S4, is inserted into watermark in the growth data territory and/or user data fields of I frame;
Step S5, utilizes Control Word to carry out scrambling processing to I frame;
Step S6, circulation step S2 to S5 until all I frames be disposed;
The detailed step of Detection and Extraction method comprises:
Step Q1: the grammer to data flow is resolved, I frame and the Entitlement Control Message of retrieval and locator data stream;
Step Q2: process Entitlement Control Message, draw decryption key, according to decryption key, I frame is carried out to scramble process, recover the data of former I frame;
Step Q3: navigate to extending user territory and/or user data fields from the data of former I frame.
The location of growth data territory and user data fields is all to be retrieved and located by unique initial code, because expansion and user data fields have unique hexadecimal initial code separately, is respectively 000001B5 and 000001B2.In watermark insertion process, watermark information can embed growth data territory, also can embed user data fields, can also both embed, and the present invention does not limit and uses any mode to embed, but the mode that need to select in conjunction with insertion apparatus and determining.The mode adopting according to insertion apparatus, selects corresponding initial code value (as the initial code hexadecimal 000001B2 of user data fields), then, in former I frame data, retrieves the initial code conforming to initial code value (as 000001B2).From the initial code (as 000001B2) retrieving, starting to the data next initial code is the load of extending user territory and/or user data fields, in this load with watermark information.
Step Q4: extract watermark information from the load of growth data territory and/or user data fields;
Step Q5: circulation step Q1 to Q4, from MPEG2 data flow, process all I frames, and extract watermark from I frame, form watermark sequence.In watermark sequence, each watermark information can be identical (as copyright information) or different (as finger print informations).
The detailed step of the I frame in above-mentioned steps S1, Q1 in retrieval and locator data stream is:
Step SQ1: according to the syntactic structure of MPEG2 video bit stream, the data flow based on MPEG2 standard is divided into Video Sequence Layer, image sets layer, image layer from top to bottom, every one deck is provided with unique hexadecimal bit string as initial code;
Step SQ2: the initial code of retrieving images layer, the initial code of retrieving images group layer, continue first initial code of retrieving images group layer hypograph layer, second initial code that continues retrieving images layer, it is I frame data that first initial code of described image layer starts to the data between second initial code.
In the process of above-mentioned insertion watermark; due to the reference frame of the I frame in image layer as follow-up B or P frame; so only need to process and just can realize the protection to other picture frames disturbing of I frame, reduce the scrambling of Detection and Extraction device and the expense of descrambling aspect simultaneously.And encryption scrambling rank of the present invention is lower, arrived frame rank, be embedded in the watermark in frame, be difficult to be found or attack by extraneous, guaranteed the fail safe of watermark information, and watermark information is just put in extending user territory and/or user data fields after encrypting by watermarking algorithm, watermarking algorithm is independent of whole insertion extraction system and method, and fail safe, reliability are higher.

Claims (9)

1. for inserting an insertion apparatus for watermark, it is characterized in that, comprising:
Frame alignment device (201) is oriented the original position of I frame and the scope of I frame data from the data flow based on MPEG2 standard;
Watermark constructor (301), is configured to watermark information (104) by original watermark data;
Expansion and user data generator (302), the load using watermark information (104) as described growth data territory and/or user data fields;
Inserter (303), is inserted into growth data territory and/or user data fields (105) in I frame;
Encryption equipment (202), is used encryption key (107) to be encrypted and/or scrambling the I frame data (106) with watermark, forms ciphertext I frame data (108);
Integrator (203), is integrated into the ciphertext I frame data (108) with watermark in data flow.
2. as claimed in claim 1ly for inserting the insertion apparatus of watermark, it is characterized in that, while there is not growth data territory or user data fields in I frame, expansion and the generation of user data generator can be inserted in growth data territory or the user data fields in I frame data.
3. as claimed in claim 1 or 2ly for inserting the insertion apparatus of watermark, it is characterized in that, before described growth data territory and/or user data fields (105) are inserted into the Picture Data in I frame data or after Picture Data.
4. for detection of a Detection and Extraction device that extracts watermark, it is characterized in that, when insertion apparatus as claimed in claim 3 inserts after watermark, can from the described data flow based on MPEG2 standard, extract watermark, described Detection and Extraction device comprises:
Receiver module (A), receives the data flow with watermark;
Descrambling module (B), comprises the locating module (B1) that the I frame in the data flow with watermark is positioned, to location after with the I frame of watermark carry out descrambling descrambling module (B2) and reception corresponding descramble key deciphering module (B3);
Extraction module (C), navigates to growth data territory and/or user data fields in the I frame data with watermark from descrambling, and take out watermark information from the load of growth data territory and/or user data fields;
Output module (D), output watermark information.
5. for inserting an insertion method for watermark, it is characterized in that,
Step S1, resolves the grammer based on MPEG2 data flow, the I frame of retrieval and locator data stream;
Step S2, judges whether I frame exists growth data territory and/or user data fields, if there is not execution step 3; If exist, perform step 4;
Step S3, structure growth data territory and/or user data fields, insert growth data territory and/or user data fields by watermark, then the growth data territory with watermark and/or user data fields be embedded in I frame;
Step S4, is inserted into watermark in the growth data territory and/or user data fields of I frame;
Step S5, utilizes Control Word to carry out scrambling processing to I frame;
Step S6, circulation step S2 to S5 processes a plurality of I frames.
6. for detection of a Detection and Extraction method of extracting watermark, it is characterized in that, for detection of the watermark in the data flow based on MPEG2 standard of extracting after insertion method as claimed in claim 5 is processed;
Step Q1: the grammer to the data flow based on MPEG2 standard is resolved, I frame and the Entitlement Control Message of retrieval and locator data stream;
Step Q2: process Entitlement Control Message, draw decryption key, according to decryption key, I frame is carried out to scramble process, recover the data of former I frame;
Step Q3: navigate to extending user territory and/or user data fields from the data of former I frame;
Step Q4: extract watermark information from the load of growth data territory and/or user data fields;
Step Q5: circulation step Q1 to Q4, from MPEG2 data flow, process all I frames, and extract watermark from I frame, form watermark sequence.
7. for inserting a device for watermark and Detection and Extraction watermark, it is characterized in that, comprise insertion apparatus as claimed in claim 3 and Detection and Extraction device as claimed in claim 4.
8. for inserting a method for watermark and Detection and Extraction watermark, it is characterized in that, comprise insertion method as claimed in claim 5 and Detection and Extraction method as claimed in claim 6.
9. method as claimed in claim 8, is characterized in that, the detection and location I frame in described insertion method and Detection and Extraction method, and its detailed step is:
Step SQ1: according to the syntactic structure of MPEG2 video bit stream, the data flow based on MPEG2 standard is divided into Video Sequence Layer, image sets layer, image layer from top to bottom, every one deck is provided with unique hexadecimal bit string as initial code;
Step SQ2: the initial code of retrieving images layer, the initial code of retrieving images group layer, continue first initial code of retrieving images group layer hypograph layer, second initial code that continues retrieving images layer, it is I frame data that first initial code of described image layer starts to the data between second initial code.
CN201410176324.0A 2014-04-29 2014-04-29 Device and method used for insertion, detection and extraction of watermark Pending CN103929646A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410176324.0A CN103929646A (en) 2014-04-29 2014-04-29 Device and method used for insertion, detection and extraction of watermark

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410176324.0A CN103929646A (en) 2014-04-29 2014-04-29 Device and method used for insertion, detection and extraction of watermark

Publications (1)

Publication Number Publication Date
CN103929646A true CN103929646A (en) 2014-07-16

Family

ID=51147704

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410176324.0A Pending CN103929646A (en) 2014-04-29 2014-04-29 Device and method used for insertion, detection and extraction of watermark

Country Status (1)

Country Link
CN (1) CN103929646A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106162226A (en) * 2016-08-31 2016-11-23 珠海迈科智能科技股份有限公司 The transmission method of a kind of TS stream and system
CN113489982A (en) * 2021-07-28 2021-10-08 广东博华超高清创新中心有限公司 Digital watermark copyright protection method based on AVS3 coding framework

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030215111A1 (en) * 2002-04-23 2003-11-20 Xiaomang Zhang Image processing apparatus, image processing system, electronic information apparatus, image processing method, control program, and computer-readable recording medium
CN101105857A (en) * 2007-07-20 2008-01-16 北京交通大学 High capacity reversible water mark method based on predication and companding technology
CN101621664A (en) * 2009-07-28 2010-01-06 北京惠信博思技术有限公司 Method and system for managing digital rights
CN101860743A (en) * 2010-06-24 2010-10-13 北京理工大学 Real-time digital video watermarking method based on MPEG-2 standard

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030215111A1 (en) * 2002-04-23 2003-11-20 Xiaomang Zhang Image processing apparatus, image processing system, electronic information apparatus, image processing method, control program, and computer-readable recording medium
CN101105857A (en) * 2007-07-20 2008-01-16 北京交通大学 High capacity reversible water mark method based on predication and companding technology
CN101621664A (en) * 2009-07-28 2010-01-06 北京惠信博思技术有限公司 Method and system for managing digital rights
CN101860743A (en) * 2010-06-24 2010-10-13 北京理工大学 Real-time digital video watermarking method based on MPEG-2 standard

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
彭欢: "基于I帧图像点特征的MPEG-2视频水印方案", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106162226A (en) * 2016-08-31 2016-11-23 珠海迈科智能科技股份有限公司 The transmission method of a kind of TS stream and system
CN113489982A (en) * 2021-07-28 2021-10-08 广东博华超高清创新中心有限公司 Digital watermark copyright protection method based on AVS3 coding framework

Similar Documents

Publication Publication Date Title
KR101529082B1 (en) Apparatus for watermarking by dividing off tracking information and method therefor
US9299119B2 (en) Overlay-based watermarking for video synchronization with contextual data
US8270664B2 (en) Method and system for utilizing GPS information to secure digital media
KR102086514B1 (en) Method and apparatus for processing digital service signals
EP2387250B1 (en) Method and system for watermark insertion using video start codes
JP5562645B2 (en) Text-based piracy prevention system and method for digital cinema
US10575068B2 (en) Streaming piracy detection method and system
US20180302690A1 (en) A system for inserting a mark into a video content
CN103873954A (en) Method of embedding invisible digital watermarking into streaming media, and apparatus and system thereof
US20160094802A1 (en) Receiver-side marking of content for unique identification
CN102647635B (en) A kind of method, Apparatus and system preventing video finger print from attacking
Su et al. A practical design of digital watermarking for video streaming services
US8861729B2 (en) Method and system for the secure distribution of audiovisual data by transactional marking
CN103503464B (en) The method in the source of the security module in identification pay-TV decoder system
CN103929646A (en) Device and method used for insertion, detection and extraction of watermark
US10698988B2 (en) Difference attack protection
WO2012164361A1 (en) Frequency-modulated watermarking
CN100387062C (en) Method for protecting MPEG-2 video frequency data with compensation
US20100026826A1 (en) Apparatus for protecting image
Lin et al. Video and image watermark synchronization
EP2416317A1 (en) Detection of watermarks in signals
Tomàs-Buliart et al. Traitor tracing over YouTube video service—proof of concept
WO2001013642A1 (en) Watermarking data streams at multiple distribution stages
CN105139335A (en) Image copyright identification and tampering detection system
Sindhush et al. Digital data theft detection using watermarking

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140716