CN111400038A - Video and picture multi-resolution self-adaptive video watermarking method and system - Google Patents

Video and picture multi-resolution self-adaptive video watermarking method and system Download PDF

Info

Publication number
CN111400038A
CN111400038A CN202010161077.2A CN202010161077A CN111400038A CN 111400038 A CN111400038 A CN 111400038A CN 202010161077 A CN202010161077 A CN 202010161077A CN 111400038 A CN111400038 A CN 111400038A
Authority
CN
China
Prior art keywords
video
watermarking
task
watermark
picture
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
CN202010161077.2A
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.)
Shandong Huimao Electronic Port Co Ltd
Original Assignee
Shandong Huimao Electronic Port 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 Shandong Huimao Electronic Port Co Ltd filed Critical Shandong Huimao Electronic Port Co Ltd
Priority to CN202010161077.2A priority Critical patent/CN111400038A/en
Publication of CN111400038A publication Critical patent/CN111400038A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/0021Image watermarking
    • G06T1/0028Adaptive watermarking, e.g. Human Visual System [HVS]-based watermarking
    • 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/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/44008Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
    • 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/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5011Pool
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5018Thread allocation

Abstract

The invention relates to the technical field of streaming media processing, and particularly provides a video watermarking method and a video watermarking system with self-adaptive video and picture resolutions. A video and picture multiresolution self-adaptive video watermarking method adopts Java high-level language to process multithreading, uses a general processor CPU as a host end to run a main program, and distributes a video watermarking task to a task execution module executor through a task distribution module dispatcher; the executor adds each received transcoding task into a thread pool, the thread pool allows 10 video watermarking tasks to be simultaneously performed at maximum, when one video watermarking task is finished, the thread is released, and at the moment, the next video watermarking task can enter the thread pool to be processed. Compared with the prior art, the method and the device have the advantages that the user-defined video watermarking function is completed, the success rate of video watermarking is improved, the application stability is ensured, and the method and the device have good popularization value.

Description

Video and picture multi-resolution self-adaptive video watermarking method and system
Technical Field
The invention relates to the technical field of streaming media processing, and particularly provides a video watermarking method and a video watermarking system with self-adaptive video and picture resolutions.
Background
The watermark is that adds some digital information to the data multimedia (such as picture, sound, video signal, etc.) in order to achieve the function such as the true and false authentication of the file, copyright protection, the information of watermark that is imbedded is hidden in the host file, does not influence observability and integrality of the original file, so can add the watermark in the course of encrypting the video too many kinds, for example, L OGO of copyright person, arbitrary position warning language, word advertisement and race lamp watermark, etc., various watermarks although the technological realization form is different in the course of encrypting the video, its purpose is in order to promote the video and crack the difficulty, increase the subscriber's operating cost, reduce the probability that the video is cracked.
However, in the prior art, the complexity of video information processing is very high, the success rate of adding watermarks is not very high, and the resolution of videos and watermarked pictures also has the problem of non-adaptation.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides a video watermarking method with strong practicability and self-adaption of video and picture multi-resolution.
The invention further provides a video watermarking system which is reasonable in design, safe and applicable and has multiple resolutions of videos and pictures.
The technical scheme adopted by the invention for solving the technical problems is as follows:
a video and picture multiresolution self-adaptive video watermarking method adopts Java high-level language to process multithreading, uses a general processor CPU as a host end to run a main program, and distributes a video watermarking task to a task execution module executor through a task distribution module dispatcher;
the executor adds each received transcoding task into a thread pool, the thread pool allows 10 video watermarking tasks to be simultaneously performed at maximum, when one video watermarking task is finished, the thread is released, and at the moment, the next video watermarking task can enter the thread pool to be processed.
Further, the method comprises the following steps:
s01, task distribution, multi-thread scheduling,
s02, analyzing the source video, obtaining the video coding format,
s03, customizing the watermark picture, processing the watermark picture by using a picture algorithm,
and S04, outputting the video watermark, and determining the final watermark result.
Further, in step S01, the user submits a video watermark 5 job to be saved in the database, the dispatcher module scans the job to be watermarked in the database every minute, and transmits the scanned video watermark job parameter to the executor module, and the executor module receives the video watermark job and enters the thread pool.
Preferably, in step S02, ffmpeg is called to analyze the original video, so as to analyze the resolution and the encoding format of the original video.
Further, in step S03, the user-defined watermark picture is processed by the image processing algorithm to be converted into a user-defined resolution, the video watermarking operation is performed according to the user-defined watermark adding position, and the progress is reported to the dispatcher module and stored in the database in the watermarking process, so that the user can conveniently check the watermark picture.
Further, in step S04, the task is ended after the watermark is successfully added, the video with the added watermark is uploaded to the object for storage, and the generated video information and video address are reported to the dispatcher and stored in the database for the user to use, and the process of reporting is ended, the thread is released, and the newly added video watermark task is received.
The utility model provides a video and picture resolution ratio self-adaptation's video watermark system, is including the dispatch ware module and the execute module that connect gradually, the dispatch ware module is arranged in regularly every minute scanning database need add the task of watermark to the video watermark task parameter that will scan gives the execute module, and the execute module is arranged in putting received video watermark task into the thread pond and carries out the video and adds the watermark operation, and reports to the dispatch ware module and adds the watermark progress, adds the watermark video, uploads the object storage.
Furthermore, the executor module is used for receiving a video watermark task, entering a thread pool, calling ffmpeg to analyze an original video, analyzing the resolution and the coding format of the original video, processing a user-defined watermark picture through an image processing algorithm, converting the user-defined watermark picture into a user-defined resolution, performing video watermarking operation according to a user-defined watermark adding position, reporting the progress to the dispatcher module in the watermarking process and storing the dispatcher module in a database, finishing the task after the watermark is successfully added, uploading the video with the watermark added to an object for storage, and reporting the generated video information and the generated video address to the dispatcher module and storing the video information and the video address in the database.
Compared with the prior art, the video and picture multi-resolution self-adaptive video watermarking method and system have the following outstanding beneficial effects:
(1) aiming at the problem of high complexity of video information processing, the method provides that ffmpeg is used for analyzing the video to obtain the resolution and the coding mode of the video, thereby effectively reducing the time length of video analysis and improving the efficiency of video watermarking.
(2) Aiming at the problems that the success rate of adding watermarks to a video is not high and the resolutions of the video and a watermark picture are not adaptive at present, the method analyzes and adapts the original resolution of the video and the resolution of a user-defined picture, outputs the video watermark meeting the expectation of the user, and improves the success rate of adding watermarks to the video.
(3) Through Java multithreading processing, the executor can execute ten video watermarking tasks at the same time, all received video watermarking tasks can be reasonably arranged, and the video watermarking efficiency is improved.
In summary, by using the invention, user-defined watermark pictures and user-defined video watermarks can be realized in media processing projects and video on demand projects, and high availability and high stability of video watermark functions in streaming media processing are ensured.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flow chart of a video watermarking method and system with multi-resolution adaptation between video and picture.
Detailed Description
The present invention will be described in further detail with reference to specific embodiments in order to better understand the technical solutions of the present invention. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
A preferred embodiment is given below:
as shown in fig. 1, in the video and picture multi-resolution adaptive video watermarking method in this embodiment, a Java high-level language is used to perform multi-thread processing, a general-purpose processor CPU is used as a host to run a main program, and a task distribution module dispatcher distributes a video watermarking task to a task execution module executer.
The executor adds each received transcoding task into a thread pool, the thread pool allows 10 video watermarking tasks to be simultaneously performed at maximum, when one video watermarking task is finished, the thread is released, and at the moment, the next video watermarking task can enter the thread pool to be processed.
Comprises the following steps:
s01, task distribution, multi-thread scheduling,
s02, analyzing the source video, obtaining the video coding format,
s03, customizing the watermark picture, processing the watermark picture by using a picture algorithm,
and S04, outputting the video watermark, and determining the final watermark result.
In step S01, the user submits a video watermark 5 job and saves the job in the database, the dispatcher module scans the job requiring watermark addition in the database every minute at regular time, transmits the scanned video watermark job parameter to the executor module, and the executor module receives the video watermark job and enters the thread pool.
In step S02, ffmpeg is called to analyze the original video, and the resolution and the encoding format of the original video are analyzed.
In step S03, the user-defined watermark picture is processed by the image processing algorithm to be converted into a user-defined resolution, a video watermarking operation is performed according to the user-defined watermark adding position, and the progress is reported to the dispatcher module and stored in the database in the watermarking process, so that the user can conveniently check the watermark.
In step S04, the task is ended after the watermark is successfully added, the video with the watermark added is uploaded to an object for storage, and the generated video information and video address are simultaneously reported to the dispatcher and stored in the database for the user to use.
The video watermarking system running on the basis of the video and picture multi-resolution self-adaption comprises a dispatcher module and an execotr module which are sequentially connected, wherein the dispatcher module is used for scanning a task needing to be added with a watermark in a database every minute at regular time and transmitting a scanned video watermarking task parameter to the execotr module, and the execotr module is used for putting a received video watermarking task into a thread pool to carry out video watermarking operation, reporting watermarking progress to the dispatcher module, adding a watermarking video, and uploading the watermarking video to an object for storage.
The executor module is used for receiving a video watermark task, entering a thread pool, calling a ffmpeg to analyze an original video, analyzing the resolution and the coding format of the original video, processing a user-defined watermark picture through an image processing algorithm, converting the user-defined watermark picture into a user-defined resolution, performing video watermarking operation according to a user-defined watermark adding position, reporting the progress to the dispatcher module in the watermarking process and storing the video in a database, finishing the task after the watermark is successfully added, uploading the video with the watermark added to an object for storage, and reporting generated video information and a video address to the dispatcher module and storing the video information and the video address in the database.
The above embodiments are only specific examples of the present invention, and the scope of the present invention includes but is not limited to the above embodiments, and any video and picture multi-resolution adaptive video watermarking method and system according to the claims of the present invention and any suitable changes or substitutions thereof by those of ordinary skill in the art shall fall within the scope of the present invention.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (8)

1. A video and picture multiresolution self-adaptive video watermarking method is characterized in that a Java high-level language is adopted for multithreading processing, a general processor CPU is used as a host end to run a main program, and a task distributing module dispatcher distributes a video watermarking task to a task execution module executor;
the executor adds each received transcoding task into a thread pool, the thread pool allows 10 video watermarking tasks to be simultaneously performed at maximum, when one video watermarking task is finished, the thread is released, and at the moment, the next video watermarking task can enter the thread pool to be processed.
2. The video watermarking method with adaptive video and picture resolution according to claim 1, comprising the following steps:
s01, task distribution, multi-thread scheduling,
s02, analyzing the source video, obtaining the video coding format,
s03, customizing the watermark picture, processing the watermark picture by using a picture algorithm,
and S04, outputting the video watermark, and determining the final watermark result.
3. The video watermarking method with self-adaptive video and picture resolution according to claim 2, wherein in step S01, a user submits a video watermarking task to be saved in a database, a dispatcher module scans tasks needing to be added with watermarks in the database every minute at regular time, and transmits the scanned video watermarking task parameters to an executor module, and the executor module receives the video watermarking task and enters a thread pool.
4. The video watermarking method with adaptive video and picture resolution according to claim 2 or 3, wherein in step S02, ffmpeg is called to analyze the original video to analyze the resolution and coding format of the original video.
5. The video watermarking method with self-adaptive video and picture resolution according to claim 4, wherein in step S03, the user-defined watermark picture is processed through an image processing algorithm and converted into user-defined resolution, video watermarking operation is performed according to a user-defined watermark adding position, and progress is reported to a dispatcher module in the watermarking process and is stored in a database, so that a user can conveniently check the watermarking.
6. The video watermarking method with self-adaptive video and picture resolution according to claim 5, wherein in step S04, the task is ended after the watermark is successfully added, the video with the watermark added is uploaded to an object for storage, and meanwhile, the generated video information and video address are reported to a dispatcher and stored in a database for a user to use, the reporting progress is ended, a thread is released, and a newly added video watermarking task is received.
7. The utility model provides a video and picture resolution ratio self-adaptation's video watermark system, its characterized in that, including the dispatch ware module and the execute module that connect gradually, the dispatch ware module is arranged in regularly every minute scanning database need add the task of watermark to the video watermark task parameter that will scan gives the execute module, and the execute module is arranged in putting into the thread pool with received video watermark task and carries out the video and adds the watermark operation, and reports to the dispatch ware module and adds the watermark progress, adds the watermark video, uploads the object storage.
8. The video watermarking system with the self-adaptive video and picture resolution according to claim 7, wherein the executor module is used for receiving a video watermarking task, entering a thread pool, calling ffmpeg to analyze an original video, analyzing the resolution and a coding format of the original video, processing a user-defined watermarking picture through an image processing algorithm, converting the user-defined watermarking picture into a user-defined resolution, performing video watermarking operation according to a user-defined watermarking adding position, reporting the progress to the dispatcher module in the watermarking process and storing the dispatcher module in a database, finishing the task after the watermarking is successfully added, uploading the video with the watermarking to an object for storage, and reporting the generated video information and video address to the dispatcher module and storing the video information and the video address in the database.
CN202010161077.2A 2020-03-10 2020-03-10 Video and picture multi-resolution self-adaptive video watermarking method and system Pending CN111400038A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010161077.2A CN111400038A (en) 2020-03-10 2020-03-10 Video and picture multi-resolution self-adaptive video watermarking method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010161077.2A CN111400038A (en) 2020-03-10 2020-03-10 Video and picture multi-resolution self-adaptive video watermarking method and system

Publications (1)

Publication Number Publication Date
CN111400038A true CN111400038A (en) 2020-07-10

Family

ID=71430777

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010161077.2A Pending CN111400038A (en) 2020-03-10 2020-03-10 Video and picture multi-resolution self-adaptive video watermarking method and system

Country Status (1)

Country Link
CN (1) CN111400038A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112783481A (en) * 2021-02-27 2021-05-11 中电万维信息技术有限责任公司 Ffmpeg transcoding method based on java multithreading concurrency

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020120849A1 (en) * 2000-02-14 2002-08-29 Mckinley Tyler J. Parallel processing of digital watermarking operations
CN101442657A (en) * 2008-12-23 2009-05-27 西安交通大学 Design method for stream medium distributed digital watermarking architecture
CN103826168A (en) * 2014-02-25 2014-05-28 深圳市掌网立体时代视讯技术有限公司 Method and system for adding watermark to video
CN106804003A (en) * 2017-03-09 2017-06-06 广州四三九九信息科技有限公司 Video editing method and device based on ffmpeg
CN108010095A (en) * 2017-11-14 2018-05-08 阿里巴巴集团控股有限公司 The method, apparatus and equipment of a kind of textures synthesis
CN110213636A (en) * 2018-04-28 2019-09-06 腾讯科技(深圳)有限公司 Video frame generating method, device, storage medium and the equipment of Online Video

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020120849A1 (en) * 2000-02-14 2002-08-29 Mckinley Tyler J. Parallel processing of digital watermarking operations
CN101442657A (en) * 2008-12-23 2009-05-27 西安交通大学 Design method for stream medium distributed digital watermarking architecture
CN103826168A (en) * 2014-02-25 2014-05-28 深圳市掌网立体时代视讯技术有限公司 Method and system for adding watermark to video
CN106804003A (en) * 2017-03-09 2017-06-06 广州四三九九信息科技有限公司 Video editing method and device based on ffmpeg
CN108010095A (en) * 2017-11-14 2018-05-08 阿里巴巴集团控股有限公司 The method, apparatus and equipment of a kind of textures synthesis
CN110213636A (en) * 2018-04-28 2019-09-06 腾讯科技(深圳)有限公司 Video frame generating method, device, storage medium and the equipment of Online Video

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112783481A (en) * 2021-02-27 2021-05-11 中电万维信息技术有限责任公司 Ffmpeg transcoding method based on java multithreading concurrency

Similar Documents

Publication Publication Date Title
US8787460B1 (en) Method and apparatus for motion vector estimation for an image sequence
CN113473214B (en) Screen recording method and device, computing equipment and readable storage medium
CN113473126B (en) Video stream processing method and device, electronic equipment and computer readable medium
CN111400038A (en) Video and picture multi-resolution self-adaptive video watermarking method and system
CN115037944B (en) Cloud streaming media hard decoding method and device and storage medium
Chen et al. Context-aware image compression optimization for visual analytics offloading
US10154275B2 (en) Systems and methods for embedding metadata into video contents
CN112348627A (en) Application pushing method, device, equipment and computer readable storage medium
CN109151574B (en) Video processing method, video processing device, electronic equipment and storage medium
CN112153388A (en) Image compression method, device and related equipment
WO2020192399A1 (en) Method and apparatus for fast analysis of two-dimensional code image
CN113395523B (en) Image decoding method, device, equipment and storage medium based on parallel threads
CN114247138A (en) Image rendering method, device and equipment and storage medium
JP4575751B2 (en) Histogram approximation restoration device, histogram approximation restoration method, image retrieval device and image retrieval method
CN113613024A (en) Video preprocessing method and device
TWI669947B (en) Image transcoding method, computational apparatus, and storage medium
CN113453010B (en) Processing method based on high-performance concurrent video real-time processing framework
CN115883922A (en) Video coding rendering method, device, equipment and storage medium
CN117435112B (en) Data processing method, system and device, electronic equipment and storage medium
Hristova et al. 3CPS: a novel supercompression for the delivery of 3D object textures
CN114390153B (en) Lossless transmission, hiding and reading method of secret information and computer system
CN110189272B (en) Method, apparatus, device and storage medium for processing image
JPH089167A (en) Image coding and decoding method and image coder and decoder
CN112437309A (en) JPEG encoding method and device
CN117336524A (en) Video data processing method, device, equipment and storage medium

Legal Events

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

Application publication date: 20200710