CN111314644A - Video compression method and system based on analog video compressor - Google Patents

Video compression method and system based on analog video compressor Download PDF

Info

Publication number
CN111314644A
CN111314644A CN202010182693.6A CN202010182693A CN111314644A CN 111314644 A CN111314644 A CN 111314644A CN 202010182693 A CN202010182693 A CN 202010182693A CN 111314644 A CN111314644 A CN 111314644A
Authority
CN
China
Prior art keywords
initialization data
determining
private key
video
signature information
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
CN202010182693.6A
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 CN202010182693.6A priority Critical patent/CN111314644A/en
Publication of CN111314644A publication Critical patent/CN111314644A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/91Television signal processing therefor
    • H04N5/913Television signal processing therefor for scrambling ; for copy protection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/46Embedding additional information in the video signal during the compression process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2347Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving video stream encryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
    • H04N21/26613Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel for generating or managing keys in general
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/91Television signal processing therefor
    • H04N5/913Television signal processing therefor for scrambling ; for copy protection
    • H04N2005/91307Television signal processing therefor for scrambling ; for copy protection by adding a copy protection signal to the video signal

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention relates to a video compression method and a video compression system based on an analog video compressor. The method comprises the steps of obtaining initialization data of a current frame of a video; determining a private key of the initialization data of the current frame according to the initialization data; according to the initialization data, a video encoder is used for encoding, and the video stream after encoding and compression is determined; determining fingerprint information according to the video stream after encoding and compressing; signing the fingerprint information by using the private key to determine first signature information; signing the coded and compressed video stream by using the private key to determine second signature information; and storing the first signature information and the second signature information into a block chain. The video compression method and the video compression system based on the analog video compressor provided by the invention can prevent the compressed file from being tampered and improve the accuracy of the compressed file.

Description

Video compression method and system based on analog video compressor
Technical Field
The invention relates to the field of data processing, in particular to a video compression method and a video compression system based on an analog video compressor.
Background
The existing video systems for obtaining evidence by public inspection and the like have the problems that data storage is centralized, other auxiliary systems are needed for preventing compressed files from being tampered, the compressed files cannot be disclosed to the outside, and the like, or the compressed files are disclosed, so that data are easily tampered.
Disclosure of Invention
The invention aims to provide a video compression method and a video compression system based on an analog video compressor, which can prevent a compressed file from being tampered and improve the accuracy of the compressed file.
In order to achieve the purpose, the invention provides the following scheme:
a video compression method based on an analog video compressor, comprising:
acquiring initialization data of a current frame of a video;
determining a private key of the initialization data of the current frame according to the initialization data;
according to the initialization data, a video encoder is used for encoding, and the video stream after encoding and compression is determined;
determining fingerprint information according to the video stream after encoding and compressing;
signing the fingerprint information by using the private key to determine first signature information;
signing the coded and compressed video stream by using the private key to determine second signature information;
and storing the first signature information and the second signature information into a block chain.
Optionally, the determining the private key of the initialization data of the current frame according to the initialization data specifically includes:
judging whether the initialization data is data of a first frame or not;
if the initialization data is data of a first frame, generating a random number by using a pseudo-random number generator according to the data of the first frame;
generating a private key by adopting an SM2 algorithm according to the random number;
and if the initialization data is not the data of the first frame, directly determining the private key of the initialization data of the current frame according to the initialization data.
Optionally, the storing the first signature information and the second signature information into a block chain further includes:
and packaging, storing or streaming live broadcasting the coded and compressed video stream.
Optionally, the storing the first signature information and the second signature information into a block chain further includes:
determining a public key by using an SM2 algorithm according to the private key;
determining an address according to the public key;
and verifying the signature information by using the public key and the address.
A video compression system based on an analog video compressor, comprising:
the initialization data acquisition module is used for acquiring initialization data of a current frame of the video;
the private key determining module is used for determining a private key of the initialization data of the current frame according to the initialization data;
the video stream determining module after coding compression is used for coding by using a video coder according to the initialization data and determining the video stream after coding compression;
the fingerprint information determining module is used for determining fingerprint information according to the video stream after the coding compression;
the first signature information determining module is used for signing the fingerprint information by using the private key and determining first signature information;
the second signature information determining module is used for signing the coded and compressed video stream by using the private key and determining second signature information;
and the uplink module is used for storing the first signature information and the second signature information into a block chain.
Optionally, the private key determining module specifically includes:
a judging unit, configured to judge whether the initialization data is data of a first frame;
a random number generation unit, configured to generate a random number by using a pseudo-random number generator according to the data of the first frame if the initialization data is the data of the first frame;
the first private key generating unit is used for generating a private key by adopting an SM2 algorithm according to the random number;
and the second private key generating unit is used for directly determining the private key of the initialization data of the current frame according to the initialization data if the initialization data is not the data of the first frame.
Optionally, the method further includes:
and the video stream processing module after encoding and compressing is used for packaging, storing or live broadcasting the video stream after encoding and compressing.
Optionally, the method further includes:
the public key determining module is used for determining a public key by utilizing an SM2 algorithm according to the private key;
the address determining module is used for determining an address according to the public key;
and the verification module is used for verifying the signature information by utilizing the public key and the address.
According to the specific embodiment provided by the invention, the invention discloses the following technical effects:
according to the video compression method and system based on the analog video compressor, when video data are generated, the uplink of fingerprint information is determined according to the video stream after encoding and compression, and the fingerprint information is carried out by using a block chain technology, so that the verifiability of video tamper resistance is achieved. And simultaneously, the video stream after the coding compression is provided for chain storage, so that the non-tampering characteristic of the video data is achieved. The accuracy of the compressed file is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a schematic flow chart of a video compression method based on an analog video compressor according to the present invention;
fig. 2 is a schematic structural diagram of a video compression system based on an analog video compressor according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. 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.
The invention aims to provide a video compression method and a video compression system based on an analog video compressor, which can prevent a compressed file from being tampered and improve the accuracy of the compressed file.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
The block chain is a set of governing architecture, and the core of the block chain is an excitation constraint mechanism established based on a plurality of technology combinations. The method adopts technologies such as distributed data storage, point-to-point transmission, consensus mechanism and encryption algorithm to subvert the calculation mode, thereby greatly improving the 'doing harm' threshold. In addition, the block chain also promotes the transition of the information internet to the value internet and the trust internet by setting an incentive mechanism, so that the internal positive force is fully exploited, the ecological order of the network world is maintained, a more benign management architecture is realized, the national management system and the management capacity modernization construction are effectively enabled, and the block chain is widely considered to possibly cause a global technical innovation and industrial change.
Fig. 1 is a schematic flow chart of a video compression method based on an analog video compressor according to the present invention, and as shown in fig. 1, the video compression method based on an analog video compressor according to the present invention includes:
s101, acquiring initialization data of a current frame of a video.
S102, determining a private key of the initialization data of the current frame according to the initialization data.
And judging whether the initialization data is data of a first frame or not.
And if the initialization data is the data of the first frame, generating a random number by using a pseudo-random number generator according to the data of the first frame.
And generating a private key by adopting an SM2 algorithm according to the random number.
And if the initialization data is not the data of the first frame, directly determining the private key of the initialization data of the current frame according to the initialization data.
And S103, encoding by using a video encoder according to the initialization data, and determining the video stream after encoding and compression. The models of video encoders include: h.264, h.265, VP9, MPEG4, or Daala.
And S104, determining fingerprint information according to the coded and compressed video stream. And specifically, determining fingerprint information of the encoded and compressed video stream by using an SM3 algorithm.
S105, signing the fingerprint information by using the private key, and determining first signature information.
S106, signing the coded and compressed video stream by using the private key, and determining second signature information.
S107, storing the first signature information and the second signature information into a block chain. The first signature information and the second signature information may be stored in the same block chain, or may be stored in different block chains.
And packaging, storing or streaming live broadcasting the coded and compressed video stream.
In order to further verify the accuracy of the video compression system based on the analog video compressor provided by the invention, the invention further comprises:
and determining a public key by using an SM2 algorithm according to the private key.
And determining an address according to the public key.
And verifying the signature information by using the public key and the address.
Fig. 2 is a schematic structural diagram of a video compression system based on an analog video compressor provided by the present invention, and as shown in fig. 2, the video compression system based on an analog video compressor provided by the present invention includes: the system comprises an initialization data acquisition module 201, a private key determination module 202, an encoded and compressed video stream determination module 203, a fingerprint information determination module 204, a first signature information determination module 205, a second signature information determination module 206 and an uplink module 207.
The initialization data acquisition module 201 is configured to acquire initialization data of a current frame of a video;
the private key determining module 202 is configured to determine a private key of the initialization data of the current frame according to the initialization data.
The encoded and compressed video stream determining module 203 is configured to perform encoding by using a video encoder according to the initialization data, and determine an encoded and compressed video stream.
The fingerprint information determining module 204 is configured to determine fingerprint information according to the encoded and compressed video stream.
The first signature information determining module 205 is configured to sign the fingerprint information with the private key, and determine first signature information.
The second signature information determining module 206 is configured to sign the encoded and compressed video stream with the private key, and determine second signature information.
The uplink module 207 is configured to store the first signature information and the second signature information in a block chain.
The private key determining module 202 specifically includes: the device comprises a judging unit, a random number generating unit, a first private key generating unit and a second private key generating unit.
The judging unit is used for judging whether the initialization data is data of a first frame.
And the random number generation unit is used for generating a random number by using a pseudo-random number generator according to the data of the first frame if the initialization data is the data of the first frame.
The first private key generating unit is used for generating a private key by adopting an SM2 algorithm according to the random number.
The second private key generating unit is used for directly determining the private key of the initialization data of the current frame according to the initialization data if the initialization data is not the data of the first frame.
The video compression system based on the analog video compressor provided by the invention also comprises: the device comprises a video stream processing module after encoding and compression, a public key determining module, an address determining module and a verifying module.
And the video stream processing module after encoding and compressing is used for packaging, storing or live broadcasting the video stream after encoding and compressing.
And the public key determining module is used for determining a public key by utilizing an SM2 algorithm according to the private key.
And the address determining module is used for determining an address according to the public key.
And the verification module is used for verifying the signature information by using the public key and the address.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the system disclosed by the embodiment, the description is relatively simple because the system corresponds to the method disclosed by the embodiment, and the relevant points can be referred to the method part for description.
The principle and the implementation mode of the invention are explained by applying a specific example, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, the specific embodiments and the application range may be changed. In view of the above, the present disclosure should not be construed as limiting the invention.

Claims (8)

1. A video compression method based on an analog video compressor is characterized by comprising the following steps:
acquiring initialization data of a current frame of a video;
determining a private key of the initialization data of the current frame according to the initialization data;
according to the initialization data, a video encoder is used for encoding, and the video stream after encoding and compression is determined;
determining fingerprint information according to the video stream after encoding and compressing;
signing the fingerprint information by using the private key to determine first signature information;
signing the coded and compressed video stream by using the private key to determine second signature information;
and storing the first signature information and the second signature information into a block chain.
2. The method according to claim 1, wherein the determining the private key of the initialization data of the current frame according to the initialization data specifically comprises:
judging whether the initialization data is data of a first frame or not;
if the initialization data is data of a first frame, generating a random number by using a pseudo-random number generator according to the data of the first frame;
generating a private key by adopting an SM2 algorithm according to the random number;
and if the initialization data is not the data of the first frame, directly determining the private key of the initialization data of the current frame according to the initialization data.
3. The method of claim 1, wherein the storing the first signature information and the second signature information into a block chain further comprises:
and packaging, storing or streaming live broadcasting the coded and compressed video stream.
4. The method of claim 1, wherein the storing the first signature information and the second signature information into a block chain further comprises:
determining a public key by using an SM2 algorithm according to the private key;
determining an address according to the public key;
and verifying the signature information by using the public key and the address.
5. A video compression system based on an analog video compressor, comprising:
the initialization data acquisition module is used for acquiring initialization data of a current frame of the video;
the private key determining module is used for determining a private key of the initialization data of the current frame according to the initialization data;
the video stream determining module after coding compression is used for coding by using a video coder according to the initialization data and determining the video stream after coding compression;
the fingerprint information determining module is used for determining fingerprint information according to the video stream after the coding compression;
the first signature information determining module is used for signing the fingerprint information by using the private key and determining first signature information;
the second signature information determining module is used for signing the coded and compressed video stream by using the private key and determining second signature information;
and the uplink module is used for storing the first signature information and the second signature information into a block chain.
6. The video compression system based on the analog video compressor of claim 5, wherein the private key determining module specifically comprises:
a judging unit, configured to judge whether the initialization data is data of a first frame;
a random number generation unit, configured to generate a random number by using a pseudo-random number generator according to the data of the first frame if the initialization data is the data of the first frame;
the first private key generating unit is used for generating a private key by adopting an SM2 algorithm according to the random number;
and the second private key generating unit is used for directly determining the private key of the initialization data of the current frame according to the initialization data if the initialization data is not the data of the first frame.
7. The analog video compressor-based video compression system of claim 5, further comprising:
and the video stream processing module after encoding and compressing is used for packaging, storing or live broadcasting the video stream after encoding and compressing.
8. The analog video compressor-based video compression system of claim 5, further comprising:
the public key determining module is used for determining a public key by utilizing an SM2 algorithm according to the private key;
the address determining module is used for determining an address according to the public key;
and the verification module is used for verifying the signature information by utilizing the public key and the address.
CN202010182693.6A 2020-03-16 2020-03-16 Video compression method and system based on analog video compressor Pending CN111314644A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010182693.6A CN111314644A (en) 2020-03-16 2020-03-16 Video compression method and system based on analog video compressor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010182693.6A CN111314644A (en) 2020-03-16 2020-03-16 Video compression method and system based on analog video compressor

Publications (1)

Publication Number Publication Date
CN111314644A true CN111314644A (en) 2020-06-19

Family

ID=71160627

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010182693.6A Pending CN111314644A (en) 2020-03-16 2020-03-16 Video compression method and system based on analog video compressor

Country Status (1)

Country Link
CN (1) CN111314644A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105975868A (en) * 2016-04-29 2016-09-28 杭州云象网络技术有限公司 Block chain-based evidence preservation method and apparatus
CN106604023A (en) * 2016-11-29 2017-04-26 北京航天爱威电子技术有限公司 Video stream authenticity verification method and video stream authenticity verification system
CN109035024A (en) * 2018-08-15 2018-12-18 杭州链汇通区块链科技有限公司 Method, system and the storage medium of electronic signature
CN109067524A (en) * 2018-07-31 2018-12-21 杭州复杂美科技有限公司 A kind of public private key pair generation method and system
WO2019046317A1 (en) * 2017-08-28 2019-03-07 (N)Alibaba Group Holding Limited Key data processing method and apparatus, and server
CN109871709A (en) * 2018-12-20 2019-06-11 顺丰科技有限公司 Block chain private data deposits card method, system and storage medium
US20190355059A1 (en) * 2018-05-16 2019-11-21 Chicago Mercantile Exchange Inc. Secure deterministic tokens for encrypting electronic communications
CN110601853A (en) * 2019-09-17 2019-12-20 腾讯科技(深圳)有限公司 Block chain private key generation method and equipment
EP3591930A1 (en) * 2017-03-03 2020-01-08 Tencent Technology (Shenzhen) Company Limited Information storage method, device, and computer-readable storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105975868A (en) * 2016-04-29 2016-09-28 杭州云象网络技术有限公司 Block chain-based evidence preservation method and apparatus
CN106604023A (en) * 2016-11-29 2017-04-26 北京航天爱威电子技术有限公司 Video stream authenticity verification method and video stream authenticity verification system
EP3591930A1 (en) * 2017-03-03 2020-01-08 Tencent Technology (Shenzhen) Company Limited Information storage method, device, and computer-readable storage medium
WO2019046317A1 (en) * 2017-08-28 2019-03-07 (N)Alibaba Group Holding Limited Key data processing method and apparatus, and server
US20190355059A1 (en) * 2018-05-16 2019-11-21 Chicago Mercantile Exchange Inc. Secure deterministic tokens for encrypting electronic communications
CN109067524A (en) * 2018-07-31 2018-12-21 杭州复杂美科技有限公司 A kind of public private key pair generation method and system
CN109035024A (en) * 2018-08-15 2018-12-18 杭州链汇通区块链科技有限公司 Method, system and the storage medium of electronic signature
CN109871709A (en) * 2018-12-20 2019-06-11 顺丰科技有限公司 Block chain private data deposits card method, system and storage medium
CN110601853A (en) * 2019-09-17 2019-12-20 腾讯科技(深圳)有限公司 Block chain private key generation method and equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
孙韵秋等: "基于区块链技术的高校成绩管理系统", 《密码学报》 *

Similar Documents

Publication Publication Date Title
JP3735521B2 (en) Embedded code generation method and apparatus, embedded code detection method and apparatus, and digital watermark embedding apparatus
CN103593618A (en) Verification method and system for adoptability of electronic data evidence
GB2362240A (en) Robust watermark for detecting alterations
CN110168494B (en) Method for providing a random number to a control unit of a vehicle network and vehicle network for carrying out said method
Korus et al. Adaptive self-embedding scheme with controlled reconstruction performance
CN110969207B (en) Electronic evidence processing method, device, equipment and storage medium
CN111104694B (en) Data encoding method and system supporting data support sexual certification and data repair
CN110457873A (en) A kind of watermark embedding and detection method and device
Yin et al. A semi-fragile watermarking system for MPEG video authentication
CN106685640B (en) Electronic evidence fixed information generation method and electronic evidence fixed server
CN110210270A (en) Two-dimensional barcode information safety encryption and system and image in 2 D code analytic method and system
CN111339040A (en) Cloud storage method, device, equipment and storage medium for data files
CN111583498A (en) Electronic voting method, system, equipment and storage medium based on block chain
WO2008001628A1 (en) Distributed information generator and restoring device
US20070253592A1 (en) Method and System for Protecting and Authenticating a Digital Image
CN111859439A (en) Electronic contract processing method and device and electronic equipment
CN113722767A (en) Data integrity verification method, system, storage medium and computing equipment
CN111314644A (en) Video compression method and system based on analog video compressor
CN117037988B (en) Electronic medical record storage method and device based on blockchain
CN116170801B (en) 5G message-based evidence-preserving and evidence-fixing application method
CN110992219A (en) Intellectual property protection method and system based on block chain technology
KR20220153505A (en) A device and a method for signing a video segment comprising one or more groups of pictures
CN101854546B (en) Video watermark embedding extraction method based on H.264 motion vector
CN114745122A (en) Power dispatching instruction and digital watermarking uplink method, system, device and medium
CN109257341B (en) Block chain address management method and equipment

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

RJ01 Rejection of invention patent application after publication