CN112055173A - Method for preventing monitoring video from being tampered by using block chain - Google Patents
Method for preventing monitoring video from being tampered by using block chain Download PDFInfo
- Publication number
- CN112055173A CN112055173A CN202010858996.5A CN202010858996A CN112055173A CN 112055173 A CN112055173 A CN 112055173A CN 202010858996 A CN202010858996 A CN 202010858996A CN 112055173 A CN112055173 A CN 112055173A
- Authority
- CN
- China
- Prior art keywords
- frame
- block
- video
- check
- chain
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/18—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/64—Protecting data integrity, e.g. using checksums, certificates or signatures
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Abstract
The invention belongs to the technical field of block chains, in particular to a method for preventing tampering with a monitoring video by using a block chain, which generates a video fingerprint chain by a frame _ block data structure: a video segment can generate a group of frame _ block _ chains which are formed by arranging frame _ blocks in an ascending order according to the size of time _ stamp; a video is a sequence of a group of frames, the sequence of the video frames is arranged in an ascending order according to time stamps of the frames, the sequence of the video frames is very similar to an accounting storage structure of a block chain, a frame block (frame _ block) data structure can be created on the basis of the video frames, then the frame blocks are connected in series in a chain table mode to form the frame chain (frame _ chain), the video is subjected to block chain storage according to the frame _ block structure, tampering is prevented, the video frames are stored locally according to the frame block chain (frame _ block _ chain), only data of a storage check frame is uploaded to a block chain system, bandwidth and system pressure are saved, block chain storage is performed in a streaming mode, and the video frame storage is not in a file mode and is consistent with a format of monitoring video storage.
Description
Technical Field
The invention belongs to the technical field of block chains, and particularly relates to a method for preventing monitoring videos from being tampered by using a block chain.
Background
The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism and an encryption algorithm. The Blockchain (Blockchain) is an important concept of the bitcoin, which is essentially a decentralized database, and is used as the underlying technology of the bitcoin, and is a series of data blocks which are generated by using a cryptographic method to be related, wherein each data block contains information of a batch of bitcoin network transactions, and the information is used for verifying the validity (anti-counterfeiting) of the information and generating the next block.
Video generally refers to various technologies for capturing, recording, processing, storing, transmitting and reproducing a series of static images in an electric signal mode, and when continuous image changes more than 24 frames of pictures per second, human eyes cannot distinguish a single static picture according to the principle of persistence of vision; it appears as a smooth continuous visual effect, so that the continuous picture is called a video.
The application of videos and audios as judicial evidences is wider and wider, the requirements on the reality of the videos and audios are higher and higher, but due to the improvement of the AI technology at present, the videos are easy to tamper, and the videos are also maliciously deleted.
The invention provides a monitoring video block chain evidence storage technology which can efficiently save network transmission cost aiming at the characteristic that the storage format of a video is the same as that of a block chain account book.
Disclosure of Invention
To solve the problems set forth in the background art described above. The invention provides a method for preventing tampering with a surveillance video by using a block chain, which is characterized in that a video frame is formed into a frame chain frame _ block _ chain to be locally stored, only data of a stored check frame is uploaded to a block chain system, so that the bandwidth and the system pressure are saved, block chain storage is carried out in a streaming mode, and the block chain storage is not in a file form and is consistent with a format in accordance with surveillance video storage.
In order to achieve the purpose, the invention provides the following technical scheme: a method for preventing tampering with surveillance video using blockchains, comprising the steps of:
s1, generating a video fingerprint chain through the frame _ block data structure: a video segment can generate a group of frame _ block _ chains which are formed by arranging frame _ blocks in an ascending order according to the size of time _ stamp;
s2, uploading the video fingerprint certification to a block chain: uploading the generated frame _ block to a block chain for storage;
s3, check frame check _ frame: setting a check point every N frames, and uploading check _ frame _ block to a block chain only by frame _ block corresponding to the check frame;
s4, uploading in real time: each check point, namely, the check point, namely, the check point; if the check frame is legal, the block chain system stores the check frame into a block chain account book;
s5, verifying the video: the playing video is based on whether the video itself has frame _ block _ chain data, and the video without frame _ block _ chain is video without verification.
Preferably, the frame _ block data structure in step S1 includes:
s2.1, setting _ id as the unique number of the camera;
s2.2, generating frame _ id by adding time stamp to device _ id;
s2.3, previous _ frame _ id is the frame _ id of the previous frame of the video frame, and if no previous frame exists, the frame _ id is null;
s2.4, time _ stamp: recording time for the video frame;
s2.5, content _ hash is the hash value of the binary data of the video frame.
Preferably, in step S2.2, the frame _ id is sha256(device _ id + time _ stamp + previous _ frame _ id + time _ stamp + content _ hash).
Preferably, in step S2, a check frame uploading scheme is adopted, so that the purpose of preventing tampering can be achieved without uploading frame _ blocks of all frames to a block chain.
Preferably, in step S5, it is required to check whether all check points of frame _ block _ chain are legal, and the check includes the following steps:
s5.1, traversing and checking the validity of the frame _ block;
s5.2, verifying whether each check _ frame _ block contained in the frame _ block _ chain has a certificate on a block chain;
and S5.3, if the verification of the step S5.1 and the verification of the step S5.2 are passed at the same time, the video is legal and valid and is not tampered.
Compared with the prior art, the invention has the beneficial effects that:
1. the method can prevent video tampering, and uploads the generated frame _ blocks to the block chain for storage, but because the monitoring video is recorded in real time and is continuously recorded, and if the frame _ blocks of all the frames are uploaded, pressure with larger monitoring bandwidth and performance is caused, so that a checking frame uploading scheme is provided, and the purpose of preventing tampering can be achieved without uploading the frame _ blocks of all the frames to the block chain.
2. A video is a sequence of a group of frames, the sequence of the video frames is arranged in an ascending order according to time stamps of the frames, the sequence of the video frames is very similar to an accounting storage structure of a block chain, a frame block (frame _ block) data structure can be created on the basis of the video frames, then the frame blocks are connected in series in a chain table mode to form the frame chain (frame _ chain), the video is subjected to block chain storage according to the frame _ block structure, tampering is prevented, the video frames are stored locally according to the frame block chain (frame _ block _ chain), only data of a storage check frame is uploaded to a block chain system, bandwidth and system pressure are saved, block chain storage is performed in a streaming mode, and the video frame storage is not in a file mode and is consistent with a format of monitoring video storage.
Detailed Description
The technical solutions in the present invention will be described clearly and completely with reference to the following embodiments of the present invention, and it should be understood 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 provides the following technical scheme: a method for preventing tampering with surveillance video using blockchains, comprising the steps of:
s1, generating a video fingerprint chain through the frame _ block data structure: a video segment can generate a group of frame _ block _ chains which are formed by arranging frame _ blocks in an ascending order according to the size of time _ stamp;
s2, uploading the video fingerprint certification to a block chain: uploading the generated frame _ block to a block chain for storage;
s3, check frame check _ frame: setting a check point every N frames, and uploading check _ frame _ block to a block chain only by frame _ block corresponding to the check frame;
s4, uploading in real time: each check point, namely, the check point, namely, the check point; if the check frame is legal, the block chain system stores the check frame into a block chain account book;
s5, verifying the video: the playing video is based on whether the video itself has frame _ block _ chain data, and the video without frame _ block _ chain is video without verification.
Specifically, the frame _ block data structure in step S1 includes:
s2.1, setting _ id as the unique number of the camera;
s2.2, generating frame _ id by adding time stamp to device _ id;
s2.3, previous _ frame _ id is the frame _ id of the previous frame of the video frame, and if no previous frame exists, the frame _ id is null;
s2.4, time _ stamp: recording time for the video frame;
s2.5, content _ hash is the hash value of the binary data of the video frame.
Specifically, in step S2.2, frame _ id is sha256(device _ id + time _ stamp + previous _ frame _ id + time _ stamp + content _ hash).
Specifically, in step S2, a check frame uploading scheme is adopted, and the purpose of preventing tampering can be achieved without uploading frame _ blocks of all frames to a block chain.
Specifically, in step S5, it is necessary to check whether all check points of frame _ block _ chain are legal, and the check includes the following steps:
s5.1, traversing and checking the validity of the frame _ block;
s5.2, verifying whether each check _ frame _ block contained in the frame _ block _ chain has a certificate on a block chain;
and S5.3, if the verification of the step S5.1 and the verification of the step S5.2 are passed at the same time, the video is legal and valid and is not tampered.
The working principle and the using process of the invention are as follows: a video is a frame sequence composed of a group of frames according to the time stamp sequence of the frames, the video is stored and played in the structure of the frame sequence, for example, a monitoring video is generally 25 frames per minute of the video, each frame contains the time stamp and the binary coding content of the monitoring picture, a video is a sequence of a group of frames, the time stamps of the frames are arranged in ascending order, the sequence of the video frames is very similar to the book storage structure of a block chain, a frame block (frame _ block) data structure can be created on the basis of the video frames, then the frame blocks are connected in series in a chain form to form the frame chain (frame _ chain), the video is stored in the block chain in the structure of the frame _ block to prevent falsification, the frame _ block _ chain of the video frame is stored locally, only the data of the storage check frame is uploaded to the block chain system, the bandwidth and the system pressure are saved, block chaining evidence is carried out in a streaming mode, the file form is not the file form, and the format is consistent with the format of the storage of the monitoring video.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation. The phrase "comprising a defined element does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
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 (5)
1. A method for preventing tampering with a surveillance video using a blockchain, comprising: the method comprises the following steps:
s1, generating a video fingerprint chain through the frame _ block data structure: a video segment can generate a group of frame _ block _ chains which are formed by arranging frame _ blocks in an ascending order according to the size of time _ stamp;
s2, uploading the video fingerprint certification to a block chain: uploading the generated frame _ block to a block chain for storage;
s3, check frame check _ frame: setting a check point every N frames, and uploading check _ frame _ block to a block chain only by frame _ block corresponding to the check frame;
s4, uploading in real time: each check point, namely, the check _ frame _ block is generated and then is immediately uploaded to a block chain and verified with a timestamp of a block chain system, the time _ stamp of the check _ frame _ block cannot be slower than the current time (current _ system _ time) of the block chain system by a threshold delay _ time, if the current _ system _ time-check _ frame _ block > delay _ time, the check frame is illegal, and the block chain system does not store the check frame; if the check frame is legal, the block chain system stores the check frame into a block chain account book;
s5, verifying the video: the playing video is based on whether the video itself has frame _ block _ chain data, and the video without frame _ block _ chain is video without verification.
2. The method for preventing tampering with surveillance video using blockchains as claimed in claim 1, wherein: the frame _ block data structure in step S1 includes:
s2.1, setting _ id as the unique number of the camera;
s2.2, generating frame _ id by adding time stamp to device _ id;
s2.3, previous _ frame _ id is the frame _ id of the previous frame of the video frame, and if no previous frame exists, the frame _ id is null;
s2.4, time _ stamp: recording time for the video frame;
s2.5, content _ hash is the hash value of the binary data of the video frame.
3. The method for preventing tampering with surveillance video using blockchains as claimed in claim 2, wherein: in step S2.2, frame _ id ═ sha256(device _ id + time _ stamp + previous _ frame _ id + time _ stamp + content _ hash).
4. The method for preventing tampering with surveillance video using blockchains as claimed in claim 1, wherein: in step S2, a check frame uploading scheme is adopted, and the purpose of tamper prevention can be achieved without uploading frame _ blocks of all frames to a block chain.
5. The method for preventing tampering with surveillance video using blockchains as claimed in claim 1, wherein: in step S5, it is necessary to check whether all check points of frame _ block _ chain are legal, and the check includes the following steps:
s5.1, traversing and checking the validity of the frame _ block;
s5.2, verifying whether each check _ frame _ block contained in the frame _ block _ chain has a certificate on a block chain;
and S5.3, if the verification of the step S5.1 and the verification of the step S5.2 are passed at the same time, the video is legal and valid and is not tampered.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010858996.5A CN112055173B (en) | 2020-08-24 | 2020-08-24 | Method for preventing monitoring video from being tampered by using block chain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010858996.5A CN112055173B (en) | 2020-08-24 | 2020-08-24 | Method for preventing monitoring video from being tampered by using block chain |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112055173A true CN112055173A (en) | 2020-12-08 |
CN112055173B CN112055173B (en) | 2023-04-18 |
Family
ID=73600660
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010858996.5A Active CN112055173B (en) | 2020-08-24 | 2020-08-24 | Method for preventing monitoring video from being tampered by using block chain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112055173B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112839189A (en) * | 2021-01-13 | 2021-05-25 | 上海源庐加佳信息科技有限公司 | Network video recording storage method and system and network video recorder |
CN115618426A (en) * | 2022-11-17 | 2023-01-17 | 山东区块链研究院 | Block chain data tamper-proof method and system based on check point |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109447809A (en) * | 2018-11-14 | 2019-03-08 | 成都皓图智能科技有限责任公司 | A kind of video active identification method of combination block chain |
CN109543065A (en) * | 2018-11-14 | 2019-03-29 | 成都皓图智能科技有限责任公司 | A kind of video active identification method of combination block chain |
CN109766390A (en) * | 2019-01-16 | 2019-05-17 | 杭州趣链科技有限公司 | A kind of tamper-evident means diploma system based on block chain |
CN110650321A (en) * | 2019-10-24 | 2020-01-03 | 黄芸芸 | Block chain technology-based video content tamper-proof, loss-proof and recovery method |
US20200159891A1 (en) * | 2018-11-20 | 2020-05-21 | International Business Machines Corporation | Chain-of-custody of digital content in a database system |
CN111460526A (en) * | 2020-04-17 | 2020-07-28 | 支付宝(杭州)信息技术有限公司 | Image data recording, acquiring and verifying method and device based on block chain |
CN111488393A (en) * | 2019-01-25 | 2020-08-04 | 国际商业机器公司 | Virtual block chain |
-
2020
- 2020-08-24 CN CN202010858996.5A patent/CN112055173B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109447809A (en) * | 2018-11-14 | 2019-03-08 | 成都皓图智能科技有限责任公司 | A kind of video active identification method of combination block chain |
CN109543065A (en) * | 2018-11-14 | 2019-03-29 | 成都皓图智能科技有限责任公司 | A kind of video active identification method of combination block chain |
US20200159891A1 (en) * | 2018-11-20 | 2020-05-21 | International Business Machines Corporation | Chain-of-custody of digital content in a database system |
CN109766390A (en) * | 2019-01-16 | 2019-05-17 | 杭州趣链科技有限公司 | A kind of tamper-evident means diploma system based on block chain |
CN111488393A (en) * | 2019-01-25 | 2020-08-04 | 国际商业机器公司 | Virtual block chain |
CN110650321A (en) * | 2019-10-24 | 2020-01-03 | 黄芸芸 | Block chain technology-based video content tamper-proof, loss-proof and recovery method |
CN111460526A (en) * | 2020-04-17 | 2020-07-28 | 支付宝(杭州)信息技术有限公司 | Image data recording, acquiring and verifying method and device based on block chain |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112839189A (en) * | 2021-01-13 | 2021-05-25 | 上海源庐加佳信息科技有限公司 | Network video recording storage method and system and network video recorder |
CN115618426A (en) * | 2022-11-17 | 2023-01-17 | 山东区块链研究院 | Block chain data tamper-proof method and system based on check point |
Also Published As
Publication number | Publication date |
---|---|
CN112055173B (en) | 2023-04-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109543065B (en) | Video active identification method combined with block chain | |
US10803049B2 (en) | Method for creating signals for time-stamping of documents and method for time-stamping of documents | |
US6115818A (en) | Method and apparatus for embedding authentication information within digital data | |
JP4584300B2 (en) | Electronic signature program, computer-readable recording medium, electronic signature device, and electronic signature method | |
US8904184B2 (en) | Certification of authenticity of media signals | |
CN112055173B (en) | Method for preventing monitoring video from being tampered by using block chain | |
US20060047967A1 (en) | Method and system for data authentication for use with computer systems | |
EP3659311B1 (en) | Data stream integrity | |
US8549306B2 (en) | Image managing method and image managing system | |
JP5333239B2 (en) | STREAM DATA MANAGEMENT PROGRAM, METHOD, AND SYSTEM | |
Atrey et al. | A scalable signature scheme for video authentication | |
US20050168576A1 (en) | Monitor device and monitor system | |
Danko et al. | Assuring the integrity of videos from wireless-based IoT devices using blockchain | |
CN102567657A (en) | Digital work ownership authentication system and digital work ownership authentication method | |
EP4080437A1 (en) | Duplicate image evidence management system for verifying authenticity and integrity | |
US11328095B2 (en) | Peceptual video fingerprinting | |
CN113872772B (en) | Video segment shooting device and time recording method and corresponding verification method | |
US20220012276A1 (en) | Device and method to render multimedia data stream tamper-proof based on block chain recording | |
CN109271811B (en) | Group signature-based electronic material evidence tamper-proof storage method | |
JP2022013298A (en) | Information processing system | |
CN109509095B (en) | Video active identification method combined with block chain | |
Bexheti et al. | Securely Storing and Sharing Memory Cues in Memory Augmentation Systems: A Practical Approach | |
CN113177214A (en) | Image publishing and auditing method, related device and computer program product | |
CN115277093B (en) | Tamper verification method, tamper verification system, tamper verification device and electronic equipment | |
Ghimire et al. | Ramdomg Hash for Integrity Verification Method of Multimedia Data in Surveillance System |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |