CN109743641A - The method and system of monitor video superposition watermark - Google Patents

The method and system of monitor video superposition watermark Download PDF

Info

Publication number
CN109743641A
CN109743641A CN201910061210.4A CN201910061210A CN109743641A CN 109743641 A CN109743641 A CN 109743641A CN 201910061210 A CN201910061210 A CN 201910061210A CN 109743641 A CN109743641 A CN 109743641A
Authority
CN
China
Prior art keywords
watermark
video
configuration information
pes
data
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
CN201910061210.4A
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.)
Wuhan Beacon Wisdom Star Technology Co Ltd
Original Assignee
Wuhan Beacon Wisdom Star 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 Wuhan Beacon Wisdom Star Technology Co Ltd filed Critical Wuhan Beacon Wisdom Star Technology Co Ltd
Priority to CN201910061210.4A priority Critical patent/CN109743641A/en
Publication of CN109743641A publication Critical patent/CN109743641A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

The present invention provides a kind of method and system of monitor video superposition watermark, method includes the following steps: S1, media server obtains watermark configuration information, and watermark configuration information is converted to structured data;S2, media server receive the PS video flowing that video source device is sent, and search PES head, watermark data are inserted into after PES, and give the PS video stream for inserting watermark data to decoding client;S3, decoding client receive the PS video flowing that media server is sent, and search PES head, extract the watermark data after PES, and parse watermark configuration information from watermark data;S4, decoding client are superimposed watermark after decoding video on video pictures.The present invention is compiled without a large amount of upgrading front-end cameras without complete solution is carried out to video entirely, can be achieved with being superimposed the video that video monitoring system exports customized watermark, easy to operate, safe and efficient, concealed anti-fake and do not influence video quality and code rate.

Description

The method and system of monitor video superposition watermark
Technical field
The present invention relates to field of video monitoring more particularly to a kind of method and system of monitor video superposition watermark.
Background technique
Video monitoring has attracted much attention in safety-security area, and technology development is maked rapid progress, and various regions project construction is like a raging fire.Especially It is under the background of GB/T28181 publication, different geographical does not have to industry and carries out the big networking of video as required, realize resource-sharing, User group's range and quantity constantly expand therewith, and video leakage event takes place frequently, and video information safety problems demand solves.
Video watermark is as a kind of information source tracing technology, although it cannot prevent video leakage and malicious dissemination event immediately Generation, but may determine that whether video data is protected, monitor by the propagation of protection video data, discern the false from the genuine, solve Leakage dispute simultaneously provides evidence for judicial department, therefore plays extremely important effect to video information safety.
Using traditional watermark adding technique, simplest method is that front-end camera directly adds watermark and encodes hair Stream, but can not be bound in this way with user behavior, watermark content is not flexible, and needs a large amount of upgrading front-end cameras, therefore not Has operability.
And the watermarking in coded video flowing, it is necessary to compressed video data be decoded as original video format, folded Then watermarking picture recompiles to be pushed out and to some fixed area in video, therefore to realize that live video stream adds Watermark just needs to use Video Transcoding Technology.It is complete that existing Video Transcoding Technology mostly uses FFmpeg and x264 to carry out video The disadvantages of Xie Quan is compiled, and there are the gop structures of source stream video and code rate to be changed, video quality loss, computationally intensive transcoding, can not Meet actual demand.
Summary of the invention
The purpose of the present invention is to provide a kind of method and system of monitor video superposition watermark, it is intended to existing for solving The problem of watermark adding method is troublesome in poeration, watermark content is not flexible and video quality loss.
The present invention is implemented as follows:
On the one hand, the present invention provides a kind of method of monitor video superposition watermark, comprising the following steps:
S1, media server obtains watermark configuration information, and watermark configuration information is converted to structured data;
S2, media server receive the PS video flowing that video source device is sent, and search PES head, are inserted into water after PES Printing evidence, and give the PS video stream for inserting watermark data to decoding client;
S3, decoding client receive the PS video flowing that media server is sent, and search PES head, extract after PES Watermark data, and watermark configuration information is parsed from watermark data;
S4, decoding client are superimposed watermark after decoding video on video pictures.
Further, the step S1 is specifically included: watermark configuration information is arranged by NM client and is stored in water It prints in configuration server, media server timing obtains watermark configuration information and converted from watermark configuration server.
Further, in the step S2, when being inserted into watermark data after PES, by PES_extension_flag Whether mark position in the step S3, before extracting watermark data, judges PES_extension_flag flag bit at 1 It is 1, after being judged as 1, then extracts out the operation of watermark data.
Further, watermark is superimposed in the step S4 on video pictures to specifically include:
S4.1, newly-built transparent background window are simultaneously hidden, and the size and location coordinate and video playback window of window keep one It causes;
Watermark is attached in transparent background window by S4.2 by the watermark configuration information parsed;
S4.3, video pictures show above-mentioned transparent background window while broadcasting.
Further, the above method further include:
S4.4, video pictures stop hiding above-mentioned transparent background window when playing.
On the other hand, the present invention also provides a kind of systems of monitor video superposition watermark, including video source device, media clothes Business device and decoding client;
The media server includes:
Watermark configuration information obtains module, is converted to structure for obtaining watermark configuration information, and by watermark configuration information Volume data;
Watermark data is inserted into module, and the PS video flowing sent for receiving video source device searches PES head, in PES head After be inserted into watermark data, and give the PS video stream for inserting watermark data to decoding client;
The decoding client includes:
Watermark configuration information extraction module, the PS video flowing sent for receiving media server search PES head, extract Watermark data after PES out, and watermark configuration information is parsed from watermark data;
Watermark superposition module, for being superimposed watermark on video pictures after decoding video.
It further, further include NM client and watermark configuration server;
The NM client is for being arranged watermark configuration information and being transmitted to watermark configuration server;
The watermark configuration server is for storing watermark configuration information.
Further, the watermark data insertion module is also used to when being inserted into watermark data after PES, by PES_ The mark position extension_flag is at 1;
The watermark configuration information extraction module is also used to before extracting watermark data, judges PES_extension_ Whether flag flag bit is 1, after being judged as 1, then extracts out the operation of watermark data.
Further, the watermark superposition module is specifically used for:
Newly-built transparent background window is simultaneously hidden, and size and location coordinate and the video playback window of window are consistent;
Watermark is attached in transparent background window by the watermark configuration information parsed;
Video pictures show above-mentioned transparent background window while broadcasting.
Further, the watermark superposition module is also used to:
Video pictures stop hiding above-mentioned transparent background window when playing.
Compared with prior art, the invention has the following advantages:
The method and system of this monitor video superposition watermark provided by the invention, upgrade front-end cameras without a large amount of, It is compiled entirely without complete solution is carried out to video, can be achieved with being superimposed customized watermark to the video that video monitoring system exports, It is easy to operate, safe and efficient, concealed anti-fake and do not influence video quality and code rate.
Detailed description of the invention
Fig. 1 is the flow chart for the method that a kind of monitor video provided in an embodiment of the present invention is superimposed watermark;
Fig. 2 is the structural block diagram for the system that a kind of monitor video provided in an embodiment of the present invention is superimposed watermark.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts all other Embodiment shall fall within the protection scope of the present invention.
As shown in Figure 1, the embodiment of the present invention provides a kind of method of monitor video superposition watermark, comprising the following steps:
S1, media server obtains watermark configuration information, and watermark configuration information is converted to structured data.
In the present embodiment, the watermark configuration information is that formats, the watermark configuration informations such as XML or JSON include watermark text Or image data, and the relative position coordinates in video pictures.Preferably, the step S1 is specifically included: being passed through NM client setting watermark configuration information is simultaneously stored in watermark configuration server, and media server passes through Web Service Interface timing obtains watermark configuration information and is converted from watermark configuration server.Due to can be by NM client to watermark Configuration information is configured, and therefore, watermark content is flexible, the watermark information of the settable customization of user, and applicability is wide.
S2, media server receive the PS video flowing that video source device is sent, and search PES head, are inserted into water after PES Printing evidence, and give the PS video stream for inserting watermark data to decoding client.
In the present embodiment, media server is responsible for the PS video flowing that reception video source device is sent and is transmitted to decoding client End, media server and decoding client belong to a part of video monitoring platform, and video source device can be to be directly accessed The national standard video camera of the video monitoring platform, or mutual by national standard (GB/T28181-2016) with the video monitoring platform Junior's monitor supervision platform of connection.It can also include a signal server, video source device, media server and decoding client Between using signal server as medium, mutually controlled by SIP signaling.Media server is during forwarding video flowing Watermark data is added in video streaming, is specially inserted into watermark data after the PES head of PS video flowing, it is preferable that in PES head When being inserted into watermark data later, also by the mark position PES_extension_flag at 1, to be marked, facilitate decoding visitor Family end parses watermark configuration information.
S3, decoding client receive the PS video flowing that media server is sent, and search PES head, extract after PES Watermark data, and watermark configuration information is parsed from watermark data.
In the present embodiment, the decoding that decoding client is mainly responsible for video plays and shows in video pictures watermark effect Fruit extracts watermark data and parses watermark text or picture number from the watermark data of structural body when receiving PS video flowing According to, and the watermarks configuration information such as relative position coordinates in video pictures.Based on above-mentioned steps S3, decodes client and mentioning Before taking watermark data, also judges whether PES_extension_flag flag bit is 1, after being judged as 1, then extract water outlet The operation of printing evidence, prevents maloperation, reduces the probability of error.
S4, decoding client are superimposed watermark after decoding video on video pictures.
In the present embodiment, decoding client plays after decoding original video, is existed according to the watermark configuration information parsed Video pictures designated position is superimposed watermark text or picture, specifically includes:
S4.1, newly-built transparent background window are simultaneously hidden, and the size and location coordinate and video playback window of window keep one It causes;
Watermark is attached in transparent background window by S4.2 by the watermark configuration information parsed;
S4.3, video pictures show above-mentioned transparent background window while broadcasting.
It may be implemented during video playing by watermark superposition into video pictures, realize anti-fake by the above method With mark etc. functions.
Preferably, the above method further include:
S4.4, video pictures stop hiding above-mentioned transparent background window when playing.
To hide watermark information when video pictures stop playing to observe video pictures, watermark letter is placed The interference to video pictures is ceased, observation is facilitated.
The method of this monitor video superposition watermark provided in an embodiment of the present invention, upgrades front-end cameras without a large amount of, It is compiled entirely without complete solution is carried out to video, can be achieved with being superimposed customized watermark to the video that video monitoring system exports, It is easy to operate, safe and efficient, concealed anti-fake and do not influence video quality and code rate.
Based on the same inventive concept, the embodiment of the present invention also provides a kind of system of monitor video superposition watermark, due to this The principle that system solves technical problem is similar with above method embodiment, therefore the implementation of the system is referred to the reality of the above method It applies, overlaps will not be repeated.
As shown in Fig. 2, for a kind of system that monitor video is superimposed watermark provided in an embodiment of the present invention, for realizing above-mentioned The method of embodiment, the system include video source device 1, media server 2 and decoding client 3;
The media server 2 includes:
Watermark configuration information obtains module 21, is converted to knot for obtaining watermark configuration information, and by watermark configuration information Structure volume data;
Watermark data is inserted into module 22, and the PS video flowing sent for receiving video source device searches PES head, in PES head It is inserted into watermark data later, and gives the PS video stream for inserting watermark data to decoding client;
The decoding client 3 includes:
Watermark configuration information extraction module 31, the PS video flowing sent for receiving media server are searched PES head, are mentioned The watermark data after PES is taken out, and parses watermark configuration information from watermark data;
Watermark superposition module 32, for being superimposed watermark on video pictures after decoding video.
In one embodiment, which further includes NM client 5 and watermark configuration server 4;
The NM client 5 is for being arranged watermark configuration information and being transmitted to watermark configuration server 4;
The watermark configuration server 4 is for storing watermark configuration information.
In one embodiment, the watermark data insertion module 22 is also used to when being inserted into watermark data after PES, By the mark position PES_extension_flag at 1;
The watermark configuration information extraction module 31 is also used to before extracting watermark data, judges PES_extension_ Whether flag flag bit is 1, after being judged as 1, then extracts out the operation of watermark data.
In one embodiment, the watermark superposition module 32 is specifically used for:
Newly-built transparent background window is simultaneously hidden, and size and location coordinate and the video playback window of window are consistent;
Watermark is attached in transparent background window by the watermark configuration information parsed;
Video pictures show above-mentioned transparent background window while broadcasting.
In one embodiment, the watermark superposition module 32 is also used to:
Video pictures stop hiding above-mentioned transparent background window when playing.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of embodiment is can to lead to Program is crossed to instruct relevant hardware and complete, which can be stored in a computer readable storage medium, storage medium It may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention Within mind and principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of method of monitor video superposition watermark, which comprises the following steps:
S1, media server obtains watermark configuration information, and watermark configuration information is converted to structured data;
S2, media server receive the PS video flowing that video source device is sent, and search PES head, and watermark number is inserted into after PES According to, and give the PS video stream for inserting watermark data to decoding client;
S3, decoding client receive the PS video flowing that media server is sent, and search PES head, extract the watermark after PES Data, and watermark configuration information is parsed from watermark data;
S4, decoding client are superimposed watermark after decoding video on video pictures.
2. the method for monitor video superposition watermark as described in claim 1, which is characterized in that the step S1 is specifically included: Watermark configuration information is set by NM client and is stored in watermark configuration server, media server timing is matched from watermark It sets and obtains watermark configuration information in server and convert.
3. the method for monitor video superposition watermark as described in claim 1, it is characterised in that: in the step S2, in PES head When being inserted into watermark data later, by the mark position PES_extension_flag at 1, in the step S3, watermark number is being extracted According to before, judging whether PES_extension_flag flag bit is 1, after being judged as 1, then the behaviour of watermark data is extracted out Make.
4. the method for monitor video superposition watermark as described in claim 1, which is characterized in that drawn in the step S4 in video Watermark is superimposed on face to specifically include:
S4.1, newly-built transparent background window are simultaneously hidden, and size and location coordinate and the video playback window of window are consistent;
Watermark is attached in transparent background window by S4.2 by the watermark configuration information parsed;
S4.3, video pictures show above-mentioned transparent background window while broadcasting.
5. the method for monitor video superposition watermark as claimed in claim 4, which is characterized in that the above method further include:
S4.4, video pictures stop hiding above-mentioned transparent background window when playing.
6. a kind of system of monitor video superposition watermark, it is characterised in that: including video source device, media server and decoding Client;
The media server includes:
Watermark configuration information obtains module, is converted to structural body number for obtaining watermark configuration information, and by watermark configuration information According to;
Watermark data is inserted into module, and the PS video flowing sent for receiving video source device searches PES head, inserts after PES Enter watermark data, and gives the PS video stream for inserting watermark data to decoding client;
The decoding client includes:
Watermark configuration information extraction module, the PS video flowing sent for receiving media server search PES head, extract PES Watermark data after head, and watermark configuration information is parsed from watermark data;
Watermark superposition module, for being superimposed watermark on video pictures after decoding video.
7. the system of monitor video as claimed in claim 6 superposition watermark, it is characterised in that: further include NM client and Watermark configuration server;
The NM client is for being arranged watermark configuration information and being transmitted to watermark configuration server;
The watermark configuration server is for storing watermark configuration information.
8. the system of monitor video superposition watermark as claimed in claim 6, it is characterised in that:
The watermark data insertion module is also used to when being inserted into watermark data after PES, by PES_extension_flag Mark position is at 1;
The watermark configuration information extraction module is also used to before extracting watermark data, judges that PES_extension_flag is marked Whether will position is 1, after being judged as 1, then extracts out the operation of watermark data.
9. the system of monitor video superposition watermark as claimed in claim 6, which is characterized in that the watermark superposition module is specific For:
Newly-built transparent background window is simultaneously hidden, and size and location coordinate and the video playback window of window are consistent;
Watermark is attached in transparent background window by the watermark configuration information parsed;
Video pictures show above-mentioned transparent background window while broadcasting.
10. the system of monitor video superposition watermark as claimed in claim 9, which is characterized in that the watermark superposition module is also For:
Video pictures stop hiding above-mentioned transparent background window when playing.
CN201910061210.4A 2019-01-23 2019-01-23 The method and system of monitor video superposition watermark Pending CN109743641A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910061210.4A CN109743641A (en) 2019-01-23 2019-01-23 The method and system of monitor video superposition watermark

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910061210.4A CN109743641A (en) 2019-01-23 2019-01-23 The method and system of monitor video superposition watermark

Publications (1)

Publication Number Publication Date
CN109743641A true CN109743641A (en) 2019-05-10

Family

ID=66365682

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910061210.4A Pending CN109743641A (en) 2019-01-23 2019-01-23 The method and system of monitor video superposition watermark

Country Status (1)

Country Link
CN (1) CN109743641A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110730355A (en) * 2019-09-06 2020-01-24 西安万像电子科技有限公司 Video image processing method and device
CN112153237A (en) * 2019-06-27 2020-12-29 山东华软金盾软件股份有限公司 Protection method and system for watermark gateway

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101894357A (en) * 2010-04-09 2010-11-24 中山大学 Video media watermark protection method
CN102118631A (en) * 2010-01-05 2011-07-06 耶德托公司 Broadcasting variants of digital signals in a conditional access system
US20140019767A1 (en) * 2011-03-29 2014-01-16 Irdeto B.V. Content segmentation of watermarking
CN104135670A (en) * 2014-07-22 2014-11-05 乐视网信息技术(北京)股份有限公司 Video playing method and device
CN107690052A (en) * 2017-08-14 2018-02-13 浙江宇视科技有限公司 A kind of method and device of video monitoring image superposition watermark

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102118631A (en) * 2010-01-05 2011-07-06 耶德托公司 Broadcasting variants of digital signals in a conditional access system
CN101894357A (en) * 2010-04-09 2010-11-24 中山大学 Video media watermark protection method
US20140019767A1 (en) * 2011-03-29 2014-01-16 Irdeto B.V. Content segmentation of watermarking
CN104135670A (en) * 2014-07-22 2014-11-05 乐视网信息技术(北京)股份有限公司 Video playing method and device
CN107690052A (en) * 2017-08-14 2018-02-13 浙江宇视科技有限公司 A kind of method and device of video monitoring image superposition watermark

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
吴岳,施惠娟: "基于FFMPEG的视频水印系统", 《电子设计工程》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112153237A (en) * 2019-06-27 2020-12-29 山东华软金盾软件股份有限公司 Protection method and system for watermark gateway
CN110730355A (en) * 2019-09-06 2020-01-24 西安万像电子科技有限公司 Video image processing method and device

Similar Documents

Publication Publication Date Title
CN104581202B (en) Audio and video synchronization method and system and encoding apparatus and decoding apparatus
US6915012B2 (en) System and method of storing data in JPEG files
JP4076754B2 (en) Synchronization method
CN102647618B (en) Method and system for interaction with television programs
US7604172B2 (en) Image signal output device and a method of generating a coded image signal
KR102023788B1 (en) Streaming distribution device and method, streaming receiving device and method, streaming system, program, and recording medium
KR101401964B1 (en) A method for encoding/decoding metadata and an apparatus thereof
KR100729224B1 (en) Exteneded Multimedia File Structure and Multimedia File Producting Method and Multimedia File Executing Method
KR101357447B1 (en) Data tunneling via closed captioning
CN109743641A (en) The method and system of monitor video superposition watermark
US20100063978A1 (en) Apparatus and method for inserting/extracting nonblind watermark using features of digital media data
CN101558645A (en) Text-based anti-piracy system and method for digital cinema
CN106293052A (en) Reinforced augmented reality multimedia system
KR100828479B1 (en) Apparatus and method for inserting addition data in image file on electronic device
CN108882055A (en) The method and device of net cast method and system, synthetic video stream
RU2016108851A (en) TRANSMISSION DEVICE, TRANSMISSION METHOD, RECEIVING DEVICE AND RECEIVING METHOD
KR20060054124A (en) Execution method, execution device of content comprise watermark, and contents packet storing medium
KR20090088432A (en) Method and system for a distribution of audiovisual data protected by transactional marking
US8306368B2 (en) Storing and presenting ancillary information obtained from scanned prints
US20050232498A1 (en) System and method of storing data in JPEG files
CN114419502A (en) Data analysis method and device and storage medium
CN108696713B (en) Code stream safety test method, device and test equipment
CN113571048A (en) Audio data detection method, device, equipment and readable storage medium
CN104219212B (en) Video file across a network transmission method, apparatus and system
US10721544B2 (en) Embedding watermarking data

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: 20190510

RJ01 Rejection of invention patent application after publication