CN111405223A - Video processing method, device and equipment - Google Patents
Video processing method, device and equipment Download PDFInfo
- Publication number
- CN111405223A CN111405223A CN201910002443.7A CN201910002443A CN111405223A CN 111405223 A CN111405223 A CN 111405223A CN 201910002443 A CN201910002443 A CN 201910002443A CN 111405223 A CN111405223 A CN 111405223A
- Authority
- CN
- China
- Prior art keywords
- video
- information
- access
- account book
- book 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/46—Embedding additional information in the video signal during the compression process
- H04N19/467—Embedding additional information in the video signal during the compression process characterised by the embedded information being invisible, e.g. watermarking
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
- H04N5/91—Television signal processing therefor
- H04N5/913—Television signal processing therefor for scrambling ; for copy protection
-
- 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
- H04N7/181—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast for receiving images from a plurality of remote sources
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
- H04N5/91—Television signal processing therefor
- H04N5/913—Television signal processing therefor for scrambling ; for copy protection
- H04N2005/91307—Television signal processing therefor for scrambling ; for copy protection by adding a copy protection signal to the video signal
- H04N2005/91335—Television signal processing therefor for scrambling ; for copy protection by adding a copy protection signal to the video signal the copy protection signal being a watermark
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
本发明提供一种视频处理方法、装置及设备,涉及信息处理技术领域。该方法包括:根据第一密钥对接收到的目标视频进行加密;将加密的所述目标视频进行存储,并生成对应的访问地址;根据所述访问地址和所述目标视频的属性信息,生成账本信息;将所述账本信息存储到视频监控信息区块链中。本发明的方案,解决了传统的视频监控系统对视频的存储缺乏可信服证据的问题。
The present invention provides a video processing method, device and equipment, and relates to the technical field of information processing. The method includes: encrypting the received target video according to a first key; storing the encrypted target video, and generating a corresponding access address; and generating a corresponding access address according to the access address and attribute information of the target video Ledger information; store the account book information in the video surveillance information blockchain. The solution of the present invention solves the problem that the traditional video monitoring system lacks credible evidence for video storage.
Description
技术领域technical field
本发明涉及信息处理技术领域,特别是指一种视频处理方法、装置及设备。The present invention relates to the technical field of information processing, and in particular, to a video processing method, device and equipment.
背景技术Background technique
目前,视频监控在社会生活、公共安全、亲情沟通中越来越起到重要的作用。随着IP摄像头(网络摄像机)的普及,视频监控设备购置和组网成本不断下降,产业成熟度和技术标准性越来越高。在业务方面,越来越多的客户为了自身和其服务客户的安全,使用视频监控系统实现平安工程、透明工程、放心工程,比如:幼儿园、学校、大型商场超市、公园、广场、路面、食堂、酒店、办公场所几乎全面被视频监控所覆盖。At present, video surveillance plays an increasingly important role in social life, public safety, and family communication. With the popularity of IP cameras (network cameras), the cost of video surveillance equipment purchase and networking continues to drop, and the industry maturity and technical standards are getting higher and higher. In terms of business, more and more customers use video surveillance systems to achieve safety engineering, transparency engineering, and reassurance engineering for the safety of themselves and their service customers, such as: kindergartens, schools, large shopping malls, supermarkets, parks, squares, roads, canteens , hotels, and offices are almost fully covered by video surveillance.
传统的视频监控系统结构中,前端主要由IP摄像头和网络设备组成,经过局域网与后端连接,后端包括视频处理服务器、控制服务器、存储设备、控制终端。在某些情况下,该监控系统还要经过广域网连接外部网络,向上级部门提供监控终端、向使用互联网的授权用户提供远程监控终端。有些行业、企业、场所还设置了视频内容归档系统,将资料传递给集中的归档系统中。In the traditional video surveillance system structure, the front end is mainly composed of IP cameras and network equipment, and is connected to the back end through a local area network. The back end includes a video processing server, a control server, a storage device, and a control terminal. In some cases, the monitoring system is also connected to an external network through a wide area network, providing monitoring terminals to superior departments and remote monitoring terminals to authorized users using the Internet. Some industries, enterprises, and places have also set up video content archiving systems to transfer data to a centralized archiving system.
然而,传统的视频监控系统,对视频的存储缺乏有效的统一归档,降低了视频访问的便捷性。However, traditional video surveillance systems lack effective unified archiving for video storage, which reduces the convenience of video access.
发明内容SUMMARY OF THE INVENTION
本发明的目的是提供一种视频处理方法、装置及设备,以解决传统的视频监控系统对视频的存储缺乏有效的统一归档的问题,能够更便捷地完成针对性的视频访问。The purpose of the present invention is to provide a video processing method, device and equipment, so as to solve the problem that the traditional video monitoring system lacks effective unified filing for video storage, and can more conveniently complete targeted video access.
为达到上述目的,本发明的实施例提供一种视频处理方法,包括:In order to achieve the above object, an embodiment of the present invention provides a video processing method, including:
根据第一密钥对接收到的目标视频进行加密;Encrypt the received target video according to the first key;
将加密的所述目标视频进行外部存储,并生成对应的访问地址;The encrypted target video is externally stored, and a corresponding access address is generated;
根据所述访问地址和所述目标视频的属性信息,生成账本信息;Generate ledger information according to the access address and the attribute information of the target video;
将所述账本信息存储到视频监控信息区块链中。The ledger information is stored in the video surveillance information blockchain.
其中,根据第一密钥对接收到的目标视频进行加密,包括:Wherein, encrypting the received target video according to the first key, including:
将接收到的、归属于同一节点的摄像头采集的视频流数据进行分割,获得目标视频;Divide the received video stream data collected by cameras belonging to the same node to obtain the target video;
通过第一密钥对所述目标视频进行加密。The target video is encrypted with the first key.
其中,将加密的所述目标视频进行外部存储,包括:Wherein, the encrypted target video is externally stored, including:
将加密后的所述目标视频,存储至与所述目标视频对应的外部存储对象中。The encrypted target video is stored in an external storage object corresponding to the target video.
其中,所述账本信息包括以下至少一项:Wherein, the ledger information includes at least one of the following:
视频标识;video identification;
视频的时间信息;Time information of the video;
视频的监控位置;video surveillance location;
视频的哈希值;the hash of the video;
视频的归属用户及保密等级;The user and confidentiality level of the video;
视频的可访问期限;the period for which the video will be accessible;
视频的访问地址。The access address of the video.
其中,在将所述账本信息存储到视频监控信息区块链中之后,还包括:Wherein, after the ledger information is stored in the video surveillance information blockchain, it further includes:
对所述账本信息进行签名;sign the ledger information;
将签名后的账本信息广播到视频监控区块链网络中。Broadcast the signed ledger information to the video surveillance blockchain network.
其中,所述方法还包括:Wherein, the method also includes:
从广播信息中提取所述账本信息,核对本地存储的视频区块链账本中是否已记录所述账本信息;Extract the ledger information from the broadcast information, and check whether the ledger information has been recorded in the locally stored video blockchain ledger;
若已记录,则忽略该广播信息;If recorded, ignore the broadcast information;
若未记录,则对所述账本信息进行验证,在验证通过后,存入本地视频区块链账本,并继续将所述账本信息进行广播。If not recorded, the ledger information is verified, and after the verification is passed, the ledger is stored in the local video blockchain ledger, and the ledger information is continued to be broadcast.
其中,若未记录,则对所述账本信息进行验证,包括:Wherein, if it is not recorded, the ledger information is verified, including:
对所述账本信息的来源合法性进行检查,并与外部存储交互,确定所述账本信息对应的目标视频已经正确存储且指纹正确。Check the legality of the source of the ledger information, and interact with the external storage to determine that the target video corresponding to the ledger information has been correctly stored and the fingerprint is correct.
其中,在将所述账本信息存储到视频监控信息区块链中之后,还包括:Wherein, after the ledger information is stored in the video surveillance information blockchain, it further includes:
在访问用户通过授权验证后,生成本次访问的访问发起信息和数字水印;After the access user passes the authorization verification, the access initiation information and digital watermark of this access are generated;
根据所述访问用户的访问请求,查找对应的访问视频;Find the corresponding access video according to the access request of the access user;
根据查找结果进行反馈。Feedback based on search results.
其中,根据所述访问用户的访问请求,查找对应的访问视频,包括:Wherein, according to the access request of the access user, the corresponding access video is searched, including:
从所述视频监控信息区块链中提取账本信息;extracting ledger information from the video surveillance information blockchain;
将所述账本信息与本次访问的检索信息进行匹配;Matching the ledger information with the retrieval information of this visit;
若匹配成功,则根据所述账本信息的访问地址,提取访问视频。If the match is successful, the access video is extracted according to the access address of the ledger information.
其中,根据查找结果进行反馈,包括:Among them, feedback based on the search results, including:
若未提取到所述账本信息,则反馈信息指示视频未存储;If the account book information is not extracted, the feedback information indicates that the video is not stored;
若提取到所述账本信息,但根据所述账本信息的访问地址未提取到访问视频,则反馈信息指示存储的视频失效;If the account book information is extracted, but the access video is not extracted according to the access address of the account book information, the feedback information indicates that the stored video is invalid;
若提取到所述访问视频,则根据所述第一密钥是否能够解密所述访问视频,在解密失败的情况下,反馈信息指示所述访问视频未允许访问;在解密成功的情况下,将所述数字水印叠加到解密的所述访问视频后,输出至播放设备。If the access video is extracted, according to whether the access video can be decrypted by the first key, if the decryption fails, the feedback information indicates that the access video is not allowed to be accessed; After the digital watermark is superimposed on the decrypted access video, it is output to a playback device.
其中,在根据查找结果进行反馈之后,还包括:Among them, after feedback according to the search results, it also includes:
生成本次访问的访问信息;Generate access information for this visit;
将所述访问信息存储到视频监控信息区块链中;storing the access information in the video surveillance information blockchain;
对所述访问信息进行签名;sign the access information;
将签名后的访问信息广播到视频监控区块链网络中。Broadcast the signed access information to the video surveillance blockchain network.
其中,所述访问信息包括以下至少一项:Wherein, the access information includes at least one of the following:
所述访问发起信息;the access initiation information;
使用第二密钥加密的所述数字水印;the digital watermark encrypted using the second key;
访问视频的时间信息;access time information for the video;
访问视频的账本信息标识。Access the ledger information ID of the video.
其中,所述方法还包括:Wherein, the method also includes:
若所述访问视频的反馈信息指示存储的视频失效,则提取当前视频的历史访问信息。If the feedback information of the accessed video indicates that the stored video is invalid, the historical access information of the current video is extracted.
为达到上述目的,本发明的实施例提供一种视频处理装置,包括:In order to achieve the above object, an embodiment of the present invention provides a video processing apparatus, including:
加密模块,用于根据第一密钥对接收到的目标视频进行加密;an encryption module for encrypting the received target video according to the first key;
第一处理模块,用于将加密的所述目标视频进行外部存储,并生成对应的访问地址;a first processing module, for externally storing the encrypted target video, and generating a corresponding access address;
账本生成模块,用于根据所述访问地址和所述目标视频的属性信息,生成账本信息;A ledger generation module, configured to generate ledger information according to the access address and the attribute information of the target video;
第二处理模块,用于将所述账本信息存储到视频监控信息区块链中。The second processing module is used for storing the ledger information in the video surveillance information block chain.
其中,所述加密模块包括:Wherein, the encryption module includes:
预处理子模块,用于将接收到的、归属于同一节点的摄像头采集的视频流数据进行分割,获得目标视频;The preprocessing submodule is used to divide the received video stream data collected by the cameras belonging to the same node to obtain the target video;
加密子模块,用于通过第一密钥对所述目标视频进行加密。An encryption submodule, configured to encrypt the target video by using the first key.
其中,所述第一处理模块还用于:Wherein, the first processing module is also used for:
将加密后的所述目标视频,存储至与所述目标视频对应的外部存储对象中。The encrypted target video is stored in an external storage object corresponding to the target video.
其中,所述账本信息包括以下至少一项:Wherein, the ledger information includes at least one of the following:
视频标识;video identification;
视频的时间信息;Time information of the video;
视频的监控位置;video surveillance location;
视频的哈希值;the hash of the video;
视频的归属用户及保密等级;The user and confidentiality level of the video;
视频的可访问期限;the period for which the video will be accessible;
视频的访问地址。The access address of the video.
其中,所述装置还包括:Wherein, the device also includes:
账本签名模块,用于对所述账本信息进行签名;a ledger signature module, used to sign the ledger information;
账本广播模块,用于将签名后的账本信息广播到视频监控区块链网络中。The ledger broadcast module is used to broadcast the signed ledger information to the video surveillance blockchain network.
其中,所述装置还包括:Wherein, the device also includes:
账本处理模块,用于从广播信息中提取所述账本信息,核对本地存储的视频区块链账本中是否已记录所述账本信息;若已记录,则忽略该广播信息;若未记录,则对所述账本信息进行验证,在验证通过后,存入本地视频区块链账本,并继续将所述账本信息进行广播。The ledger processing module is used to extract the ledger information from the broadcast information, and check whether the ledger information has been recorded in the locally stored video blockchain ledger; if it has been recorded, ignore the broadcast information; The ledger information is verified, and after the verification is passed, the ledger is stored in the local video blockchain ledger, and the ledger information is continued to be broadcast.
其中,所述账本处理模块还用于:Wherein, the ledger processing module is also used for:
对所述账本信息的来源合法性进行检查,并与外部存储交互,确定所述账本信息对应的目标视频已经正确存储且指纹正确。Check the legality of the source of the ledger information, and interact with the external storage to determine that the target video corresponding to the ledger information has been correctly stored and the fingerprint is correct.
其中,所述装置还包括:Wherein, the device also includes:
第三处理模块,用于在访问用户通过授权验证后,生成本次访问的访问发起信息和数字水印;The third processing module is used to generate the access initiation information and digital watermark of this access after the access user passes the authorization verification;
查找模块,用于根据所述访问用户的访问请求,查找对应的访问视频;a search module, used to search for a corresponding access video according to the access request of the access user;
第四处理模块,用于根据查找结果进行反馈。The fourth processing module is used for feedback according to the search result.
其中,所述查找模块包括:Wherein, the search module includes:
账本提取子模块,用于从所述视频监控信息区块链中提取账本信息;A ledger extraction sub-module, used for extracting ledger information from the video surveillance information blockchain;
匹配子模块,用于将所述账本信息与本次访问的检索信息进行匹配;a matching submodule, used to match the ledger information with the retrieval information of this visit;
视频提取子模块,用于若匹配成功,则根据所述账本信息的访问地址,提取访问视频。The video extraction sub-module is used to extract the access video according to the access address of the ledger information if the match is successful.
其中,所述第四处理模块还用于:Wherein, the fourth processing module is also used for:
若未提取到所述账本信息,则反馈信息指示视频未存储;If the account book information is not extracted, the feedback information indicates that the video is not stored;
若提取到所述账本信息,但根据所述账本信息的访问地址未提取到访问视频,则反馈信息指示存储的视频失效;If the account book information is extracted, but the access video is not extracted according to the access address of the account book information, the feedback information indicates that the stored video is invalid;
若提取到所述访问视频,则根据所述第一密钥是否能够解密所述访问视频,在解密失败的情况下,反馈信息指示所述访问视频未允许访问;在解密成功的情况下,将所述数字水印叠加到解密的所述访问视频后,输出至播放设备。If the access video is extracted, according to whether the access video can be decrypted by the first key, if the decryption fails, the feedback information indicates that the access video is not allowed to be accessed; After the digital watermark is superimposed on the decrypted access video, it is output to a playback device.
其中,所述装置还包括:Wherein, the device also includes:
访问生成模块,用于生成本次访问的访问信息;The access generation module is used to generate the access information of this visit;
第五处理模块,用于将所述访问信息存储到视频监控信息区块链中;a fifth processing module, configured to store the access information in the video surveillance information block chain;
访问签名模块,用于对所述访问信息进行签名;an access signature module for signing the access information;
访问广播模块,用于将签名后的访问信息广播到视频监控区块链网络中。The access broadcast module is used to broadcast the signed access information to the video surveillance blockchain network.
其中,所述访问信息包括以下至少一项:Wherein, the access information includes at least one of the following:
所述访问发起信息;the access initiation information;
使用第二密钥加密的所述数字水印;the digital watermark encrypted with the second key;
访问视频的时间信息;access time information for the video;
访问视频的账本信息标识。Access the ledger information ID of the video.
其中,所述装置还包括:Wherein, the device also includes:
第六处理模块,用于若所述访问视频的反馈信息指示存储的视频失效,则提取当前视频的历史访问信息。The sixth processing module is configured to extract historical access information of the current video if the feedback information of the accessed video indicates that the stored video is invalid.
为达到上述目的,本发明的实施例提供一种网络设备,包括收发器、存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序;所述处理器执行所述计算机程序时实现如上所述的视频处理方法。To achieve the above object, embodiments of the present invention provide a network device, including a transceiver, a memory, a processor, and a computer program stored in the memory and running on the processor; the processor executes the The above-described video processing method is implemented when the computer program is described.
为达到上述目的,本发明的实施例提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上所述的视频处理方法中的步骤。To achieve the above object, embodiments of the present invention provide a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the steps in the above-mentioned video processing method.
本发明的上述技术方案的有益效果如下:The beneficial effects of the above-mentioned technical solutions of the present invention are as follows:
本发明实施例的视频处理方法,首先会使用第一密钥对目标视频进行加密;然后将加密的目标视频进行外部存储,并生成对应的访问地址,以用于后续的视频访问;之后再根据该访问地址和目标视频的属性信息,生成该目标视频的账本信息,最终将账本信息存储到视频监控信息区块链中。如此,就能够通过存储在区块链的账本信息实现对视频的高效管理,实现更便捷地视频访问。In the video processing method of the embodiment of the present invention, firstly, the target video is encrypted by using the first key; then the encrypted target video is externally stored, and a corresponding access address is generated for subsequent video access; The access address and the attribute information of the target video generate the ledger information of the target video, and finally store the ledger information in the video surveillance information blockchain. In this way, efficient management of videos can be achieved through the ledger information stored in the blockchain, and more convenient video access can be achieved.
附图说明Description of drawings
图1为本发明实施例的视频处理方法的流程示意图之一;1 is one of the schematic flowcharts of a video processing method according to an embodiment of the present invention;
图2为视频监控区块链网络结构示意图;Figure 2 is a schematic diagram of the video surveillance blockchain network structure;
图3为本发明实施例的视频处理方法的应用图之一;3 is one of the application diagrams of the video processing method according to the embodiment of the present invention;
图4为本发明实施例的视频处理方法的流程示意图之二;4 is a second schematic flowchart of a video processing method according to an embodiment of the present invention;
图5为本发明实施例的视频处理方法的流程示意图之三;5 is a third schematic flowchart of a video processing method according to an embodiment of the present invention;
图6为访问视频提取判断示意图;6 is a schematic diagram of access video extraction judgment;
图7为本发明实施例的视频处理方法的应用图之二;FIG. 7 is the second application diagram of the video processing method according to the embodiment of the present invention;
图8为应用本发明实施例的视频处理方法的视频区块链服务器示意图;8 is a schematic diagram of a video blockchain server applying the video processing method according to an embodiment of the present invention;
图9为本发明实施例的视频处理装置的结构示意图;9 is a schematic structural diagram of a video processing apparatus according to an embodiment of the present invention;
图10为本发明实施例的网络设备的结构示意图。FIG. 10 is a schematic structural diagram of a network device according to an embodiment of the present invention.
具体实施方式Detailed ways
为使本发明要解决的技术问题、技术方案和优点更加清楚,下面将结合附图及具体实施例进行详细描述。In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, the following will be described in detail with reference to the accompanying drawings and specific embodiments.
如图1所示,本发明实施例的一种视频处理方法,包括:As shown in FIG. 1, a video processing method according to an embodiment of the present invention includes:
步骤101,根据第一密钥对接收到的目标视频进行加密;
步骤102,将加密的所述目标视频进行外部存储,并生成对应的访问地址;
步骤103,根据所述访问地址和所述目标视频的属性信息,生成账本信息;
步骤104,将所述账本信息存储到视频监控信息区块链中。Step 104: Store the ledger information in the video surveillance information block chain.
通过上述步骤101-104,本发明实施例的视频处理方法,首先会使用第一密钥对目标视频进行加密;然后将加密的目标视频进行外部存储,并生成对应的访问地址,以用于后续的视频访问;之后再根据该访问地址和目标视频的属性信息,生成该目标视频的账本信息,最终将账本信息存储到视频监控信息区块链中。如此,就能够通过存储在区块链的账本信息实现对视频的高效管理,实现更便捷地视频访问。Through the above steps 101-104, the video processing method according to the embodiment of the present invention firstly encrypts the target video using the first key; then externally stores the encrypted target video, and generates a corresponding access address for subsequent use Then, according to the access address and the attribute information of the target video, the ledger information of the target video is generated, and finally the ledger information is stored in the video surveillance information blockchain. In this way, efficient management of videos can be achieved through the ledger information stored in the blockchain, and more convenient video access can be achieved.
在该实施例中,第一密钥是预先设定的,使用第一密钥加密视频,提升了视频的安全性。In this embodiment, the first key is preset, and the video is encrypted by using the first key, which improves the security of the video.
应该知道的是,该实施例的视频处理方法,主要针对的视频是监控视频,当然,不限于监控视频。而对于接收到的监控视频(目标视频),是由监控摄像头如IP摄像头采集的,应用该实施例的视频处理方法的设备(如单独部署的服务器或者原有的管理服务器),能够接收其对应视频监控节点(如一个局域网区域)下所有监控摄像头采集的监控视频。其中,视频监控节点的规模大小可根据物理位置、行政管理区域、安全等级不同自由划分。在视频监控区块链网络中,如图2所示,包括多个视频监控节点,优选地,应用该实施例的视频处理方法的设备是与视频监控节点一一对应的。在该视频监控区块链网络中,数据网络既可以是因特网Internet,也可以是专用网络(如局域网、专线网等)。It should be known that the video processing method in this embodiment mainly targets surveillance video, and of course, is not limited to surveillance video. For the received surveillance video (target video), which is collected by surveillance cameras such as IP cameras, a device applying the video processing method of this embodiment (eg, a separately deployed server or an original management server) can receive its corresponding Surveillance video collected by all surveillance cameras under a video surveillance node (such as a local area network area). Among them, the scale of video surveillance nodes can be freely divided according to different physical locations, administrative areas, and security levels. In a video surveillance blockchain network, as shown in FIG. 2 , a plurality of video surveillance nodes are included. Preferably, the devices applying the video processing method of this embodiment are in one-to-one correspondence with the video surveillance nodes. In the video surveillance blockchain network, the data network can be either the Internet or a dedicated network (such as a local area network, a dedicated line network, etc.).
此外,考虑到摄像头在持续工作期间,将实时监控拍摄的数据流以特定通道送到应用该实施例的视频处理方法的设备,为便于存储,可选地,步骤101包括:In addition, considering that during the continuous operation of the camera, the data stream captured by real-time monitoring is sent to the device applying the video processing method of this embodiment through a specific channel, in order to facilitate storage, optionally,
将接收到的、归属于同一节点的摄像头采集的视频流数据进行分割,获得目标视频;Divide the received video stream data collected by cameras belonging to the same node to obtain the target video;
通过第一密钥对所述目标视频进行加密。The target video is encrypted with the first key.
这里,会将接收到的、与应用该实施例的视频处理方法的设备归属于同一节点(视频监控节点)的各个摄像头的视频流数据进行分割,以视频流片段作为目标视频进行加密。其中,分割是基于设定规则进行,如设定时间长度进行分割,如以5min为单位分割视频流数据。Here, the received video stream data of each camera belonging to the same node (video monitoring node) as the device applying the video processing method of this embodiment will be segmented, and the video stream segment will be used as the target video for encryption. The segmentation is performed based on a set rule, for example, the segmentation is performed by setting a time length, for example, the video stream data is segmented in units of 5 minutes.
在加密完成后,就能够将加密的目标视频进行外部存储。在该实施例中,不同的视频监控节点根据各自的服务签约、安全等级要求、商业合作方式选择各自对应的商业云存储服务或者共有云上的块存储服务。所以,可选地,将加密的所述目标视频进行外部存储,包括:After the encryption is completed, the encrypted target video can be stored externally. In this embodiment, different video surveillance nodes select their corresponding commercial cloud storage services or block storage services on a shared cloud according to their respective service subscriptions, security level requirements, and business cooperation methods. Therefore, optionally, the encrypted target video is externally stored, including:
将加密后的所述目标视频,存储至与所述目标视频对应的外部存储对象中。The encrypted target video is stored in an external storage object corresponding to the target video.
如此,可将加密后的目标视频存储到所需的位置,而基于该外部存储对象,则能够生成访问地址,以便后续通过访问地址在该外部存储对象中提取出目标视频。In this way, the encrypted target video can be stored in a desired location, and based on the external storage object, an access address can be generated, so that the target video can be subsequently extracted from the external storage object through the access address.
当然,对于接收的视频流数据,经缓存,并分割得到的视频流片段,而进一步加密之前,可通过转码、去噪等处理提高视频的质量,并生成该视频流片段的视频描述信息。该视频描述信息包括文件标识(视频摘要)、采集位置、时间戳、时间片段、文件指纹等。Of course, for the received video stream data, after buffering and segmenting the obtained video stream segments, before further encryption, the quality of the video can be improved by processing such as transcoding and denoising, and the video description information of the video stream segment is generated. The video description information includes file identification (video summary), collection location, time stamp, time segment, file fingerprint, and the like.
因此,目标视频的属性信息包括以下至少一项:视频标识;视频的时间信息;视频的监控位置;视频的哈希值;视频的归属用户及保密等级;视频的可访问期限。其中,视频标识ID,是该目标视频唯一的身份标识,可用于查找视频;视频的时间信息包括起始时间、终止时间以及播放时间长度等;视频的监控位置是该视频对应摄像头的监控区域;视频的哈希值用于防止视频被篡改;视频的归属用户及保密等级可访问期限是预先确定的,归属用户可以是个人或单位;视频的可访问期限则限定视频在该期限内可访问。Therefore, the attribute information of the target video includes at least one of the following: video identification; video time information; video monitoring location; video hash value; video user and security level; Among them, the video identification ID is the unique identification of the target video, which can be used to find the video; the time information of the video includes the start time, the end time, and the playback time length, etc.; the monitoring position of the video is the monitoring area of the video corresponding to the camera; The hash value of the video is used to prevent the video from being tampered with; the access period of the video's attributable user and security level is predetermined, and the attributable user can be an individual or a unit; the video's access period limits the video's access within this period.
故,根据访问地址和目标视频的属性信息生成的账本信息,可选地,所述账本信息包括以下至少一项:Therefore, the ledger information generated according to the access address and the attribute information of the target video, optionally, the ledger information includes at least one of the following:
视频标识;video identification;
视频的时间信息;Time information of the video;
视频的监控位置;video surveillance location;
视频的哈希值;the hash of the video;
视频的归属用户及保密等级;The user and confidentiality level of the video;
视频的可访问期限;the period for which the video will be accessible;
视频的访问地址。The access address of the video.
另外,该实施例中,账本信息以交易内容的形式打包,并提交到视频监控信息区块链上存证。存证形成后,通过在区块链上的记账,形成了不可篡改的内容源信息和证据链条,一旦发生特殊事件,可依据区块链上的记录,确认摄像头视频内容有没有存证、存储服务上的内容是不是不提取,以及是不是当事方主观上不公开该视频。In addition, in this embodiment, the ledger information is packaged in the form of transaction content and submitted to the video surveillance information block chain for storage. After the certificate is formed, through the bookkeeping on the blockchain, the content source information and evidence chain that cannot be tampered with are formed. Once a special event occurs, the record on the blockchain can be used to confirm whether the video content of the camera has a certificate or not. Whether the content on the storage service is not extracted, and whether the video is subjectively not disclosed by the parties.
为了使得视频监控区块链网络中,其它共用该视频监控信息区块链的、应用该实施例的视频处理方法的设备也能够进行该账本信息的验证、公式和记账,该实施例中,可选地,在将所述账本信息存储到视频监控信息区块链中之后,还包括:In order to enable other devices that share the video surveillance information blockchain and apply the video processing method of this embodiment in the video surveillance blockchain network, the verification, formula and accounting of the ledger information can also be performed. In this embodiment, Optionally, after the ledger information is stored in the video surveillance information blockchain, the method further includes:
对所述账本信息进行签名;sign the ledger information;
将签名后的账本信息广播到视频监控区块链网络中。Broadcast the signed ledger information to the video surveillance blockchain network.
这里,签名使用的是预设私钥。Here, the signature uses the default private key.
此外,应用该实施例的视频处理方法的设备也能够通过广播信息获取到其它设备广播的账本信息,所以,可选地,所述方法还包括:In addition, the device applying the video processing method of this embodiment can also obtain the ledger information broadcast by other devices through the broadcast information, so, optionally, the method further includes:
从广播信息中提取所述账本信息,核对本地存储的视频区块链账本中是否已记录所述账本信息;Extract the ledger information from the broadcast information, and check whether the ledger information has been recorded in the locally stored video blockchain ledger;
若已记录,则忽略该广播信息;If recorded, ignore the broadcast information;
若未记录,则对所述账本信息进行验证,在验证通过后,存入本地视频区块链账本,并继续将所述账本信息进行广播。If not recorded, the ledger information is verified, and after the verification is passed, the ledger is stored in the local video blockchain ledger, and the ledger information is continued to be broadcast.
其中,若未记录,则对所述账本信息进行验证,包括:Wherein, if it is not recorded, the ledger information is verified, including:
对所述账本信息的来源合法性进行检查,并与外部存储交互,确定所述账本信息对应的目标视频已经正确存储且指纹正确。Check the legality of the source of the ledger information, and interact with the external storage to determine that the target video corresponding to the ledger information has been correctly stored and the fingerprint is correct.
例如,如图3所示,视频监控节点1中的视频采集设备(摄像头)采集视频后,会将采集到的视频传输到同属于该视频监控节点1的视频区块链服务器1(应用该实施例的视频处理方法的设备)。视频区块链服务器1缓存视频流数据,并根据预设规则分割,将分割得到的视频流片段进行预处理,该预处理包括:缓存视频流片段、使用第一密钥加密视频内容、生成视频描述信息。之后,视频区块链服务器1将加密后的视频流片段存储到对应的外部存储设备,其中,若存储成功则会反馈包括存储地址(如URL)的成功响应,以生成访问地址;若存储识别则进行差错处理,如选择次要存储设备或者重试。经账本上链准备(即根据访问地址和已存储视频流片段的属性信息生成的账本信息)后,将账本信息存储到视频监控信息区块链中。并且,账本信息经过签名后,会在视频监控区块链网络中广播。具体地,视频区块链服务器1以交易广播的形式,使用区块链通信协议向邻居节点P2P发布账本信息。而接收到该账本信息的、归属于其它节点的视频区块链服务器m也以相同的方式向邻居节点的视频区块链服务器nP2P发布账本信息。视频区块链服务器1、视频区块链服务器m、视频区块链服务器n可使用区块链账目数据检查、来源检查等对账本信息的合法性、完整性验证。合法性验证通过的数据在各节点记录,在各节点之间形成一致的存证账本。至此,一个视频监控设备采集的内容就以多个加密分片的形式安全地存储在存储设备中,各片段的上链账本信息被无法篡改地保存在区块链中,且其最初来源可验证。此外,视频片段的安全性也得到了保障:仅有所属节点的视频区块链服务器掌握解密视频的密钥,即便存储在链上的访问路径公开,依然能够保障内容无法解密和查看。For example, as shown in Figure 3, after the video capture device (camera) in the video surveillance node 1 captures the video, it will transmit the captured video to the video blockchain server 1 that also belongs to the video surveillance node 1 (applying this implementation Examples of video processing methods of the device). The video block chain server 1 caches the video stream data, and divides it according to preset rules, and preprocesses the segmented video stream segments. The preprocessing includes: caching the video stream segments, encrypting the video content with the first key, and generating a video Description. After that, the video blockchain server 1 stores the encrypted video stream segment in the corresponding external storage device, wherein, if the storage is successful, a successful response including the storage address (such as a URL) will be fed back to generate an access address; Then perform error handling, such as selecting a secondary storage device or retrying. After the ledger is prepared on the chain (that is, the ledger information generated according to the access address and the attribute information of the stored video stream segments), the ledger information is stored in the video surveillance information blockchain. And, after the ledger information is signed, it will be broadcast in the video surveillance blockchain network. Specifically, the video blockchain server 1 uses the blockchain communication protocol to publish ledger information to neighboring nodes P2P in the form of transaction broadcast. The video blockchain server m belonging to other nodes that has received the ledger information also publishes the ledger information to the video blockchain server nP2P of the neighbor node in the same way. Video blockchain server 1, video blockchain server m, and video blockchain server n can use blockchain account data check, source check, etc. to verify the legitimacy and integrity of ledger information. The data that passes the legality verification is recorded in each node, and a consistent certificate book is formed between each node. At this point, the content collected by a video surveillance device is securely stored in the storage device in the form of multiple encrypted segments, and the on-chain ledger information of each segment is stored in the blockchain without tampering, and its original source can be verified. . In addition, the security of video clips is also guaranteed: only the video blockchain server of the node to which it belongs has the key to decrypt the video. Even if the access path stored on the chain is public, it can still ensure that the content cannot be decrypted and viewed.
还应该知道的是,该实施例中,为了保证视频不被泄露,会对访问用户进行授权验证,所以,可选地,在将所述账本信息存储到视频监控信息区块链中之后,如图4所示,还包括:It should also be known that, in this embodiment, in order to ensure that the video is not leaked, authorization verification will be performed on the visiting user. Therefore, optionally, after the account book information is stored in the video surveillance information blockchain, such as As shown in Figure 4, it also includes:
步骤105,在访问用户通过授权验证后,生成本次访问的访问发起信息和数字水印;
步骤106,根据所述访问用户的访问请求,查找对应的访问视频;
步骤107,根据查找结果进行反馈。
按照上述步骤,先会对通过授权验证的访问用户,生成本次访问的访问发起信息和数字水印,然后根据该访问用户的访问请求,查找对应的访问视频,最终将查找结果进行反馈。According to the above steps, firstly, the access initiation information and digital watermark of this visit are generated for the access user who has passed the authorization verification, and then the corresponding access video is searched according to the access request of the access user, and finally the search result is fed back.
其中,对访问用户进行授权验证,是对访问用户进行身份核实,包括身份标记、身份认证、访问授权检查。对于通过授权验证的访问用户,生成的访问发起信息将用于对本次访问进行记录,数字水印则用于与访问视频的叠加。具体的,该访问发起信息包括:访问用户访问使用的终端的标识、本次访问的时间标识和访问用户的身份标识;该数字水印包括本次访问的标识(如是一个UUID或者不重复的数字字母串)和根据数字水印生成规则为访问视频准备的水印P。Among them, the authorization verification of the access user is to verify the identity of the access user, including identity marking, identity authentication, and access authorization check. For access users who have passed authorization and verification, the generated access initiation information will be used to record the access, and the digital watermark will be used to superimpose the access video. Specifically, the access initiation information includes: the identification of the terminal used by the visiting user to access, the time identification of this visit and the identification of the visiting user; the digital watermark includes the identification of this visit (such as a UUID or a non-repeating digital letter) string) and the watermark P prepared for accessing the video according to the digital watermark generation rules.
另外,该实施例中,可选地,如图5所示,步骤106包括:In addition, in this embodiment, optionally, as shown in FIG. 5 ,
步骤501,从所述视频监控信息区块链中提取账本信息;
步骤502,将所述账本信息与本次访问的检索信息进行匹配;
步骤503,若匹配成功,则根据所述账本信息的访问地址,提取访问视频。
基于上述步骤501-503,首先会从视频监控信息区块链中提取账本信息,将该账本信息与本次访问的检索信息进行匹配,从而在匹配成功的情况下,根据该账本信息中的访问地址提取访问视频。Based on the above steps 501-503, the ledger information will be extracted from the video surveillance information blockchain first, and the ledger information will be matched with the retrieval information of the current visit, so that if the matching is successful, according to the access information in the ledger information Address extraction to access the video.
具体的,检索信息是访问者输入的,其内容包括但不限于时间段、地理位置、密级要求。在匹配过程中,会基于账本信息在视频监控信息区块链中的标识ID,按照存储时间先后顺序排序,依次解析出账本信息的具体信息项进行匹配。而提取的访问视频因是使用第一密钥加密的,所以,还需使用第一密钥对视频流片段解密,之后使用数字水印叠加到播放内容上,输出给播放端。数字水印的叠加方法既可采用访问者可见的字幕方式(指定位置或者随机位置展现)、也可采用频域叠加的方式,让访问者不可肉眼觉察。Specifically, the retrieval information is input by the visitor, and its content includes but is not limited to time period, geographic location, and security level requirements. In the matching process, based on the identification ID of the ledger information in the video surveillance information blockchain, it will be sorted in the order of storage time, and then the specific information items of the ledger information will be parsed out for matching. Since the extracted access video is encrypted with the first key, the video stream segment needs to be decrypted with the first key, and then superimposed on the playback content with a digital watermark, and output to the playback end. The superposition method of the digital watermark can either use the subtitles visible to the visitor (displayed at a specified position or a random position), or the superposition in the frequency domain, so that the visitor cannot perceive it with the naked eye.
然而,该实施例中,对应于本次访问,还可能存在无法提取到账本信息,提取到账本信息但访问地址未提取到访问视频,以及提取到访问视频但无法解密的情况,所以,可选地,步骤107包括:However, in this embodiment, corresponding to this visit, there may also be situations in which the ledger information cannot be extracted, the ledger information is extracted but the access video is not extracted from the access address, and the access video is extracted but cannot be decrypted. Therefore, optional Ground,
若未提取到所述账本信息,则反馈信息指示视频未存储;If the account book information is not extracted, the feedback information indicates that the video is not stored;
若提取到所述账本信息,但根据所述账本信息的访问地址未提取到访问视频,则反馈信息指示存储的视频失效;If the account book information is extracted, but the access video is not extracted according to the access address of the account book information, the feedback information indicates that the stored video is invalid;
若提取到所述访问视频,则根据所述第一密钥是否能够解密所述访问视频,在解密失败的情况下,反馈信息指示所述访问视频未允许访问;在解密成功的情况下,将所述数字水印叠加到解密的所述访问视频后,输出至播放设备。If the access video is extracted, according to whether the access video can be decrypted by the first key, if the decryption fails, the feedback information indicates that the access video is not allowed to be accessed; After the digital watermark is superimposed on the decrypted access video, it is output to a playback device.
这样,如图6所示,可先判断是否有账本信息,若没有提取到账本信息,则告知访问用户摄像头未采集原始数据(视频未存储);若提取到账本信息,会由访问地址如URL,向存储设备提取访问视频。之后,若未提取到访问视频,则告知访问用户存储设备故障(存储的视频失效);若提取到访问视频,会使用第一密钥进行解密。之后,若解密失败,则告知访问用户主体不愿公开(该访问视频未允许访问);若解密成功,访问用户可成功获取视频内容。In this way, as shown in Figure 6, it is possible to first determine whether there is account book information. If the account book information is not extracted, the visiting user will be informed that the camera does not collect the original data (the video is not stored); if the account book information is extracted, the access address such as URL , fetches the access video to the storage device. After that, if the access video is not extracted, the accessing user is informed that the storage device is faulty (the stored video is invalid); if the access video is extracted, the first key will be used for decryption. Afterwards, if the decryption fails, the visiting user is informed that the subject is unwilling to disclose (the access video is not allowed to be accessed); if the decryption succeeds, the visiting user can successfully obtain the video content.
该实施例中,在步骤107之后,还包括:In this embodiment, after
生成本次访问的访问信息;Generate access information for this visit;
将所述访问信息存储到视频监控信息区块链中;storing the access information in the video surveillance information blockchain;
对所述访问信息进行签名;sign the access information;
将签名后的访问信息广播到视频监控区块链网络中。Broadcast the signed access information to the video surveillance blockchain network.
这样,就会针对每次访问,生成对应的访问信息,将其存储到视频监控信息区块链中,并对访问信息进行签名和广播,以便后续发生未授权视频扩算时溯源。而该访问信息的存储和广播的具体实现与账本信息的存储和广播方式相同,在此不再赘述。In this way, corresponding access information will be generated for each access, stored in the video surveillance information blockchain, and the access information will be signed and broadcast, so that the source can be traced when unauthorized video expansion occurs in the future. The specific implementation of the storage and broadcast of the access information is the same as the storage and broadcast of the ledger information, which will not be repeated here.
其中,所述访问信息包括以下至少一项:Wherein, the access information includes at least one of the following:
所述访问发起信息;the access initiation information;
使用第二密钥加密的所述数字水印;the digital watermark encrypted using the second key;
访问视频的时间信息;access time information for the video;
访问视频的账本信息标识。Access the ledger information ID of the video.
这里,访问视频的时间信息包括访问视频的时间戳、时间起止;访问视频的账本信息标识是账本信息记录在视频监控信息区块链中的ID。Here, the time information for accessing the video includes the time stamp and time start and end of the accessing video; the ledger information identifier for accessing the video is the ID of the ledger information recorded in the video surveillance information blockchain.
该实施例中,可选地,所述方法还包括:In this embodiment, optionally, the method further includes:
若所述访问视频的反馈信息指示存储的视频失效,则提取当前视频的历史访问信息。If the feedback information of the accessed video indicates that the stored video is invalid, the historical access information of the current video is extracted.
如此,会在视频失效的情况下,进一步提取出历史访问信息,以便用户查询失效原因。In this way, in the case of video failure, historical access information will be further extracted, so that the user can inquire about the failure reason.
如图7所示,在访问用户输入访问视频的检索信息后,视频区块链服务器1会发起对访问用户的授权验证,对访问用户进行身份认证和访问授权检查,并记录相关信息。若访问用户未通过授权验证,则结束流程;若访问用户通过授权验证,则生成本次访问的访问发起信息和数字水印。之后,对于通过授权验证的访问用户,查找对应的访问视频。若成功提取到存储设备中的访问视频,通过缓存、解密、叠加数字水印后,提供给访问用户。经访问存证上链准备(即生成本次访问的访问信息)后,将访问信息存储到视频监控信息区块链中。并且,访问信息经过签名后,会在视频监控区块链网络中广播。具体地,视频区块链服务器1以交易广播的形式,使用区块链通信协议向邻居节点P2P发布访问信息。而接收到该访问信息的、归属于其它节点的视频区块链服务器m也以相同的方式向邻居节点的视频区块链服务器nP2P发布访问信息。视频区块链服务器1、视频区块链服务器m、视频区块链服务器n可使用区块链账目数据检查、来源检查等对访问信息的合法性、完整性验证。合法性验证通过的数据在各节点记录,在各节点之间形成一致的存证账本。至此,一个监控视频的调用访问完成,在调用过程中,依靠区块链中的存储存证账目进行数据片段的获取,并在归属视频区块链服务器中进行解密、打水印的过程。成功提供给访问用户的视频带有水印。本次访问日志(访问发起信息)、水印密文均被不可篡改地记录在区块链中,以便以后发生未授权视频扩散时溯源。As shown in Figure 7, after the access user enters the retrieval information of the access video, the video blockchain server 1 will initiate authorization verification for the access user, perform identity authentication and access authorization check on the access user, and record the relevant information. If the access user fails the authorization verification, the process ends; if the access user passes the authorization verification, the access initiation information and digital watermark of the current access are generated. After that, for the access users who have passed the authorization verification, look up the corresponding access video. If the access video successfully extracted into the storage device is cached, decrypted, and superimposed with a digital watermark, it is provided to the access user. After the access certificate is prepared on the chain (that is, the access information of this visit is generated), the access information is stored in the video surveillance information blockchain. And, after the access information is signed, it will be broadcast in the video surveillance blockchain network. Specifically, the video blockchain server 1 uses the blockchain communication protocol to publish access information to neighboring nodes P2P in the form of transaction broadcast. The video blockchain server m belonging to other nodes that has received the access information also publishes the access information to the video blockchain server nP2P of the neighbor node in the same way. Video blockchain server 1, video blockchain server m, and video blockchain server n can use blockchain account data check, source check, etc. to verify the legitimacy and integrity of access information. The data that passes the legality verification is recorded in each node, and a consistent certificate book is formed between each node. At this point, the invocation and access of a surveillance video is completed. During the invocation process, the data fragments are obtained by relying on the storage certificate account in the blockchain, and the process of decryption and watermarking is performed in the home video blockchain server. Videos that are successfully served to visiting users are watermarked. The access log (access initiation information) and the watermark ciphertext are all recorded in the blockchain in a non-tamperable manner, so that the source can be traced when unauthorized video spreads in the future.
通过上述内容,应用该实施例的视频处理方法的视频区块链服务器,如图8所示,主要包括视频处理模块、区块链处理模块和管理模块,其中,视频处理模块实现视频传输功能,视频缓存功能,视频分割、组合、转码功能,视频加解密功能;区块链处理模块实现通信功能,智能合约功能,共识记账功能,数字签名及验证功能,分布式账本存储及同步功能;管理模块实现配置管理,密钥存储,认证授权,存储管理,接入管理。Through the above content, the video blockchain server applying the video processing method of this embodiment, as shown in FIG. 8 , mainly includes a video processing module, a blockchain processing module and a management module, wherein the video processing module realizes the video transmission function, Video caching function, video segmentation, combination, transcoding function, video encryption and decryption function; blockchain processing module realizes communication function, smart contract function, consensus bookkeeping function, digital signature and verification function, distributed ledger storage and synchronization function; The management module implements configuration management, key storage, authentication and authorization, storage management, and access management.
综上所述,本发明实施例的视频处理方法,会使用第一密钥对目标视频进行加密;然后将加密的目标视频进行外部存储,并生成对应的访问地址,以用于后续的视频访问;之后再根据该访问地址和目标视频的属性信息,生成该目标视频的账本信息,最终将账本信息存储到视频监控信息区块链中。而对于授权验证后的访问用户的访问请求,会查找对应的访问视频,最终将查找结果进行反馈。如此,就能够通过存储在区块链的账本信息实现对视频的高效管理,实现更便捷地视频访问,同时,实现对视频的访问行为及传播行为进行有效溯源的视频访问控制。To sum up, in the video processing method of the embodiment of the present invention, the first key is used to encrypt the target video; then the encrypted target video is externally stored, and a corresponding access address is generated for subsequent video access ; Then, according to the access address and the attribute information of the target video, the ledger information of the target video is generated, and finally the ledger information is stored in the video surveillance information blockchain. For the access request of the access user after authorization and verification, the corresponding access video will be found, and finally the search result will be fed back. In this way, efficient management of videos can be achieved through the ledger information stored in the blockchain, enabling more convenient video access, and at the same time, video access control that effectively traces the source of video access behavior and dissemination behavior.
如图9所示,本发明实施例的一种视频处理装置,包括:As shown in FIG. 9, a video processing apparatus according to an embodiment of the present invention includes:
加密模块910,用于根据第一密钥对接收到的目标视频进行加密;an
第一处理模块920,用于将加密的所述目标视频进行外部存储,并生成对应的访问地址;The
账本生成模块930,用于根据所述访问地址和所述目标视频的属性信息,生成账本信息;A
第二处理模块940,用于将所述账本信息存储到视频监控信息区块链中。The
其中,所述加密模块包括:Wherein, the encryption module includes:
预处理子模块,用于将接收到的、归属于同一节点的摄像头采集的视频流数据进行分割,获得目标视频;The preprocessing submodule is used to divide the received video stream data collected by the cameras belonging to the same node to obtain the target video;
加密子模块,用于通过第一密钥对所述目标视频进行加密。An encryption submodule, configured to encrypt the target video by using the first key.
其中,所述第一处理模块还用于:Wherein, the first processing module is also used for:
将加密后的所述目标视频,存储至与所述目标视频对应的外部存储对象中。The encrypted target video is stored in an external storage object corresponding to the target video.
其中,所述账本信息包括以下至少一项:Wherein, the ledger information includes at least one of the following:
视频标识;video identification;
视频的时间信息;Time information of the video;
视频的监控位置;video surveillance location;
视频的哈希值;the hash of the video;
视频的归属用户及保密等级;The user and confidentiality level of the video;
视频的可访问期限;the period for which the video will be accessible;
视频的访问地址。The access address of the video.
其中,所述装置还包括:Wherein, the device also includes:
账本签名模块,用于对所述账本信息进行签名;a ledger signature module, used to sign the ledger information;
账本广播模块,用于将签名后的账本信息广播到视频监控区块链网络中。The ledger broadcast module is used to broadcast the signed ledger information to the video surveillance blockchain network.
其中,所述装置还包括:Wherein, the device also includes:
账本处理模块,用于从广播信息中提取所述账本信息,核对本地存储的视频区块链账本中是否已记录所述账本信息;若已记录,则忽略该广播信息;若未记录,则对所述账本信息进行验证,在验证通过后,存入本地视频区块链账本,并继续将所述账本信息进行广播。The ledger processing module is used to extract the ledger information from the broadcast information, and check whether the ledger information has been recorded in the locally stored video blockchain ledger; if it has been recorded, ignore the broadcast information; The ledger information is verified, and after the verification is passed, the ledger is stored in the local video blockchain ledger, and the ledger information is continued to be broadcast.
其中,所述账本处理模块还用于:Wherein, the ledger processing module is also used for:
对所述账本信息的来源合法性进行检查,并与外部存储交互,确定所述账本信息对应的目标视频已经正确存储且指纹正确。Check the legality of the source of the ledger information, and interact with the external storage to determine that the target video corresponding to the ledger information has been correctly stored and the fingerprint is correct.
其中,所述装置还包括:Wherein, the device also includes:
第三处理模块,用于在访问用户通过授权验证后,生成本次访问的访问发起信息和数字水印;The third processing module is used to generate the access initiation information and digital watermark of this access after the access user passes the authorization verification;
查找模块,用于根据所述访问用户的访问请求,查找对应的访问视频;a search module, used to search for a corresponding access video according to the access request of the access user;
第四处理模块,用于根据查找结果进行反馈。The fourth processing module is used for feedback according to the search result.
其中,所述查找模块包括:Wherein, the search module includes:
账本提取子模块,用于从所述视频监控信息区块链中提取账本信息;A ledger extraction sub-module, used for extracting ledger information from the video surveillance information blockchain;
匹配子模块,用于将所述账本信息与本次访问的检索信息进行匹配;a matching submodule, used to match the ledger information with the retrieval information of this visit;
视频提取子模块,用于若匹配成功,则根据所述账本信息的访问地址,提取访问视频。The video extraction sub-module is used to extract the access video according to the access address of the ledger information if the match is successful.
其中,所述第四处理模块还用于:Wherein, the fourth processing module is also used for:
若未提取到所述账本信息,则反馈信息指示视频未存储;If the account book information is not extracted, the feedback information indicates that the video is not stored;
若提取到所述账本信息,但根据所述账本信息的访问地址未提取到访问视频,则反馈信息指示存储的视频失效;If the account book information is extracted, but the access video is not extracted according to the access address of the account book information, the feedback information indicates that the stored video is invalid;
若提取到所述访问视频,则根据所述第一密钥是否能够解密所述访问视频,在解密失败的情况下,反馈信息指示所述访问视频未允许访问;在解密成功的情况下,将所述数字水印叠加到解密的所述访问视频后,输出至播放设备。If the access video is extracted, according to whether the access video can be decrypted by the first key, if the decryption fails, the feedback information indicates that the access video is not allowed to be accessed; After the digital watermark is superimposed on the decrypted access video, it is output to a playback device.
其中,所述装置还包括:Wherein, the device also includes:
访问生成模块,用于生成本次访问的访问信息;The access generation module is used to generate the access information of this visit;
第五处理模块,用于将所述访问信息存储到视频监控信息区块链中;a fifth processing module, configured to store the access information in the video surveillance information block chain;
访问签名模块,用于对所述访问信息进行签名;an access signature module for signing the access information;
访问广播模块,用于将签名后的访问信息广播到视频监控区块链网络中。The access broadcast module is used to broadcast the signed access information to the video surveillance blockchain network.
其中,所述访问信息包括以下至少一项:Wherein, the access information includes at least one of the following:
所述访问发起信息;the access initiation information;
使用第二密钥加密的所述数字水印;the digital watermark encrypted with the second key;
访问视频的时间信息;access time information for the video;
访问视频的账本信息标识。Access the ledger information ID of the video.
其中,所述装置还包括:Wherein, the device also includes:
第六处理模块,用于若所述访问视频的反馈信息指示存储的视频失效,则提取当前视频的历史访问信息。The sixth processing module is configured to extract historical access information of the current video if the feedback information of the accessed video indicates that the stored video is invalid.
本发明实施例的视频处理装置,会使用第一密钥对目标视频进行加密;然后将加密的目标视频进行外部存储,并生成对应的访问地址,以用于后续的视频访问;之后再根据该访问地址和目标视频的属性信息,生成该目标视频的账本信息,最终将账本信息存储到视频监控信息区块链中。而对于授权验证后的访问用户的访问请求,会查找对应的访问视频,最终将查找结果进行反馈。如此,就能够通过存储在区块链的账本信息实现对视频的高效管理,实现更便捷地视频访问,同时,实现对视频的访问行为及传播行为进行有效溯源的视频访问控制。The video processing apparatus of the embodiment of the present invention will use the first key to encrypt the target video; then externally store the encrypted target video, and generate a corresponding access address for subsequent video access; Access the address and attribute information of the target video, generate the ledger information of the target video, and finally store the ledger information in the video surveillance information blockchain. For the access request of the access user after authorization and verification, the corresponding access video will be found, and finally the search result will be fed back. In this way, efficient management of videos can be achieved through the ledger information stored in the blockchain, enabling more convenient video access, and at the same time, video access control that effectively traces the source of video access behavior and dissemination behavior.
需要说明的是,该装置是应用了上述的装置,上述的实施例的实现方式适用于该装置,也能达到相同的技术效果。It should be noted that the above-mentioned device is applied to the device, and the implementation manner of the above-mentioned embodiment is applicable to the device, and the same technical effect can also be achieved.
本发明另一实施例的网络设备,如图10所示,包括收发器1010、存储器1020、处理器1000及存储在所述存储器1020上并可在所述处理器1000上运行的计算机程序;所述处理器1000执行所述计算机程序时实现上述的视频处理方法。A network device according to another embodiment of the present invention, as shown in FIG. 10 , includes a
所述收发器1010,用于在处理器1000的控制下接收和发送数据。The
其中,在图10中,总线架构可以包括任意数量的互联的总线和桥,具体由处理器1000代表的一个或多个处理器和存储器1020代表的存储器的各种电路链接在一起。总线架构还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路链接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口提供接口。收发器1010可以是多个元件,即包括发送机和接收机,提供用于在传输介质上与各种其他装置通信的单元。处理器1000负责管理总线架构和通常的处理,存储器1020可以存储处理器1000在执行操作时所使用的数据。10, the bus architecture may include any number of interconnected buses and bridges, specifically, one or more processors represented by the
本发明实施例的一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上所述的视频处理方法中的步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-OnlyMemory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。A computer-readable storage medium according to an embodiment of the present invention stores a computer program thereon, and when the computer program is executed by a processor, implements the steps in the above-mentioned video processing method, and can achieve the same technical effect, which is: To avoid repetition, I will not repeat them here. The computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk, or an optical disk.
进一步需要说明的是,此说明书中所描述的许多功能部件都被称为模块,以便更加特别地强调其实现方式的独立性。It should be further noted that many of the functional components described in this specification are referred to as modules in order to more particularly emphasize the independence of their implementations.
本发明实施例中,模块可以用软件实现,以便由各种类型的处理器执行。举例来说,一个标识的可执行代码模块可以包括计算机指令的一个或多个物理或者逻辑块,举例来说,其可以被构建为对象、过程或函数。尽管如此,所标识模块的可执行代码无需物理地位于一起,而是可以包括存储在不同位里上的不同的指令,当这些指令逻辑上结合在一起时,其构成模块并且实现该模块的规定目的。In this embodiment of the present invention, the modules may be implemented in software so as to be executed by various types of processors. For example, an identified executable code module may comprise one or more physical or logical blocks of computer instructions, which may be structured as objects, procedures, or functions, for example. Nonetheless, the executable code of the identified module need not be physically located together, but may include different instructions stored in different bits that, when logically combined, constitute the module and implement the specification of the module Purpose.
实际上,可执行代码模块可以是单条指令或者是许多条指令,并且甚至可以分布在多个不同的代码段上,分布在不同程序当中,以及跨越多个存储器设备分布。同样地,操作数据可以在模块内被识别,并且可以依照任何适当的形式实现并且被组织在任何适当类型的数据结构内。所述操作数据可以作为单个数据集被收集,或者可以分布在不同位置上(包括在不同存储设备上),并且至少部分地可以仅作为电子信号存在于系统或网络上。In practice, an executable code module may be a single instruction or many instructions, and may even be distributed over multiple different code segments, among different programs, and across multiple memory devices. Likewise, operational data may be identified within modules, and may be implemented in any suitable form and organized within any suitable type of data structure. The operational data may be collected as a single data set, or may be distributed over different locations (including over different storage devices), and may exist at least in part only as electronic signals on a system or network.
在模块可以利用软件实现时,考虑到现有硬件工艺的水平,所以可以以软件实现的模块,在不考虑成本的情况下,本领域技术人员都可以搭建对应的硬件电路来实现对应的功能,所述硬件电路包括常规的超大规模集成(VLSI)电路或者门阵列以及诸如逻辑芯片、晶体管之类的现有半导体或者是其它分立的元件。模块还可以用可编程硬件设备,诸如现场可编程门阵列、可编程阵列逻辑、可编程逻辑设备等实现。When a module can be implemented by software, considering the level of existing hardware technology, a module that can be implemented by software, regardless of cost, can build corresponding hardware circuits to implement corresponding functions. The hardware circuits include conventional very large scale integration (VLSI) circuits or gate arrays as well as off-the-shelf semiconductors such as logic chips, transistors, or other discrete components. A module may also be implemented in programmable hardware devices, such as field programmable gate arrays, programmable array logic, programmable logic devices, and the like.
上述范例性实施例是参考该些附图来描述的,许多不同的形式和实施例是可行而不偏离本发明精神及教示,因此,本发明不应被建构成为在此所提出范例性实施例的限制。更确切地说,这些范例性实施例被提供以使得本发明会是完善又完整,且会将本发明范围传达给那些熟知此项技术的人士。在该些图式中,组件尺寸及相对尺寸也许基于清晰起见而被夸大。在此所使用的术语只是基于描述特定范例性实施例目的,并无意成为限制用。如在此所使用地,除非该内文清楚地另有所指,否则该单数形式“一”、“一个”和“该”是意欲将该些多个形式也纳入。会进一步了解到该些术语“包含”及/或“包括”在使用于本说明书时,表示所述特征、整数、步骤、操作、构件及/或组件的存在,但不排除一或更多其它特征、整数、步骤、操作、构件、组件及/或其族群的存在或增加。除非另有所示,陈述时,一值范围包含该范围的上下限及其间的任何子范围。The above-described exemplary embodiments are described with reference to the drawings, many different forms and embodiments are possible without departing from the spirit and teachings of the present invention, and therefore the present invention should not be construed as the exemplary embodiments set forth herein limits. Rather, these exemplary embodiments are provided so that this disclosure will be thorough and complete, and will convey the scope of the invention to those skilled in the art. In the drawings, component sizes and relative sizes may be exaggerated for clarity. The terminology used herein is for the purpose of describing particular exemplary embodiments only and is not intended to be limiting. As used herein, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It will be further understood that the terms "comprising" and/or "comprising" when used in this specification denote the presence of stated features, integers, steps, operations, components and/or components, but do not exclude one or more other The presence or addition of features, integers, steps, operations, components, components and/or groups thereof. Unless otherwise indicated, when stated, a range of values includes the upper and lower limits of that range and any subranges therebetween.
以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明所述原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above are the preferred embodiments of the present invention. It should be pointed out that for those skilled in the art, without departing from the principles of the present invention, several improvements and modifications can be made. It should be regarded as the protection scope of the present invention.
Claims (28)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910002443.7A CN111405223A (en) | 2019-01-02 | 2019-01-02 | Video processing method, device and equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910002443.7A CN111405223A (en) | 2019-01-02 | 2019-01-02 | Video processing method, device and equipment |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN111405223A true CN111405223A (en) | 2020-07-10 |
Family
ID=71436068
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910002443.7A Pending CN111405223A (en) | 2019-01-02 | 2019-01-02 | Video processing method, device and equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111405223A (en) |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111918012A (en) * | 2020-08-05 | 2020-11-10 | 杭州当虹科技股份有限公司 | Video encryption and key management method based on private block chain |
| CN112235543A (en) * | 2020-10-14 | 2021-01-15 | 重庆紫光华山智安科技有限公司 | Video encryption method and system based on block chain |
| CN113923482A (en) * | 2021-09-02 | 2022-01-11 | 北京奇艺世纪科技有限公司 | A video playback method, system, electronic device and storage medium |
| CN114422117A (en) * | 2021-12-14 | 2022-04-29 | 杭州宇链科技有限公司 | Privacy-protecting video acquisition method and corresponding playing method thereof |
| CN114449314A (en) * | 2020-11-05 | 2022-05-06 | 国家广播电视总局广播电视规划院 | Audiovisual program management method, device, server device and storage medium |
| CN115119070A (en) * | 2022-06-08 | 2022-09-27 | 中国银行股份有限公司 | Video signing method, device and system based on alliance chain |
| CN117728962A (en) * | 2024-02-18 | 2024-03-19 | 深圳码隆智能科技有限公司 | Signature transmission method for ensuring storage consistency of multi-level video data |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105975868A (en) * | 2016-04-29 | 2016-09-28 | 杭州云象网络技术有限公司 | Block chain-based evidence preservation method and apparatus |
| CN107360156A (en) * | 2017-07-10 | 2017-11-17 | 广东工业大学 | P2P network method for cloud storage based on block chain under a kind of big data environment |
| CN107580196A (en) * | 2017-07-28 | 2018-01-12 | 国创科视科技股份有限公司 | A kind of video data shared system and method |
| WO2018032374A1 (en) * | 2016-08-13 | 2018-02-22 | 深圳市樊溪电子有限公司 | Encrypted storage system for block chain and method using same |
| CN107948736A (en) * | 2017-11-03 | 2018-04-20 | 法信公证云(厦门)科技有限公司 | A kind of audio and video preservation of evidence method and system |
| CN108462568A (en) * | 2018-02-11 | 2018-08-28 | 西安电子科技大学 | A kind of secure file storage and sharing method based on block chain |
| CN108462885A (en) * | 2018-05-09 | 2018-08-28 | 广东工业大学 | A kind of video storage method, device and medium based on block chain |
| CN109040012A (en) * | 2018-06-19 | 2018-12-18 | 西安电子科技大学 | A kind of data security protecting and sharing method based on block chain and system and application |
-
2019
- 2019-01-02 CN CN201910002443.7A patent/CN111405223A/en active Pending
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105975868A (en) * | 2016-04-29 | 2016-09-28 | 杭州云象网络技术有限公司 | Block chain-based evidence preservation method and apparatus |
| WO2018032374A1 (en) * | 2016-08-13 | 2018-02-22 | 深圳市樊溪电子有限公司 | Encrypted storage system for block chain and method using same |
| CN107360156A (en) * | 2017-07-10 | 2017-11-17 | 广东工业大学 | P2P network method for cloud storage based on block chain under a kind of big data environment |
| CN107580196A (en) * | 2017-07-28 | 2018-01-12 | 国创科视科技股份有限公司 | A kind of video data shared system and method |
| CN107948736A (en) * | 2017-11-03 | 2018-04-20 | 法信公证云(厦门)科技有限公司 | A kind of audio and video preservation of evidence method and system |
| CN108462568A (en) * | 2018-02-11 | 2018-08-28 | 西安电子科技大学 | A kind of secure file storage and sharing method based on block chain |
| CN108462885A (en) * | 2018-05-09 | 2018-08-28 | 广东工业大学 | A kind of video storage method, device and medium based on block chain |
| CN109040012A (en) * | 2018-06-19 | 2018-12-18 | 西安电子科技大学 | A kind of data security protecting and sharing method based on block chain and system and application |
Cited By (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111918012A (en) * | 2020-08-05 | 2020-11-10 | 杭州当虹科技股份有限公司 | Video encryption and key management method based on private block chain |
| CN112235543A (en) * | 2020-10-14 | 2021-01-15 | 重庆紫光华山智安科技有限公司 | Video encryption method and system based on block chain |
| CN112235543B (en) * | 2020-10-14 | 2023-02-17 | 重庆紫光华山智安科技有限公司 | Video encryption method and system based on block chain |
| CN114449314A (en) * | 2020-11-05 | 2022-05-06 | 国家广播电视总局广播电视规划院 | Audiovisual program management method, device, server device and storage medium |
| CN113923482A (en) * | 2021-09-02 | 2022-01-11 | 北京奇艺世纪科技有限公司 | A video playback method, system, electronic device and storage medium |
| CN114422117A (en) * | 2021-12-14 | 2022-04-29 | 杭州宇链科技有限公司 | Privacy-protecting video acquisition method and corresponding playing method thereof |
| CN114422117B (en) * | 2021-12-14 | 2023-09-22 | 杭州宇链科技有限公司 | Privacy-protected video acquisition method and corresponding playing method thereof |
| CN115119070A (en) * | 2022-06-08 | 2022-09-27 | 中国银行股份有限公司 | Video signing method, device and system based on alliance chain |
| CN115119070B (en) * | 2022-06-08 | 2024-04-16 | 中国银行股份有限公司 | Video signing method, device and system based on alliance chain |
| CN117728962A (en) * | 2024-02-18 | 2024-03-19 | 深圳码隆智能科技有限公司 | Signature transmission method for ensuring storage consistency of multi-level video data |
| CN117728962B (en) * | 2024-02-18 | 2024-06-11 | 深圳码隆智能科技有限公司 | Signature transmission method for ensuring storage consistency of multi-level video data |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111405223A (en) | Video processing method, device and equipment | |
| US11868509B2 (en) | Method and arrangement for detecting digital content tampering | |
| US8688991B1 (en) | Media player embodiments and secure playlist packaging | |
| CN115811412B (en) | Communication method and device, SIM card, electronic equipment and terminal equipment | |
| CN109492424B (en) | Data asset management method, data asset management device, and computer-readable medium | |
| US20140304297A1 (en) | Method, Server, and User Terminal for Providing and Acquiring Media Content | |
| US12511439B2 (en) | Digital forensic image verification system | |
| CN114254269B (en) | System and method for determining rights of biological digital assets based on block chain technology | |
| US8893307B2 (en) | Information processing system and method for providing authorized content | |
| Megias | Improved privacy-preserving P2P multimedia distribution based on recombined fingerprints | |
| CN105335667A (en) | Innovation and creativity data processing method, device and system and certificate storing equipment | |
| CN105007301A (en) | Electronic evidence processing system and method based on social platform | |
| Zheng et al. | A novel video copyright protection scheme based on blockchain and double watermarking | |
| CN111193755A (en) | Data access method, data encryption method and data encryption and access system | |
| CN101075866B (en) | Method and system for loading message on Internet | |
| CN108235152B (en) | DRM application system and method for transferring DRM private data | |
| Kwon et al. | Decentralized identifier based illegal digital content distribution tracking system using the format‐preserving encryption algorithm | |
| CN113595741B (en) | Credible data chain generation system and method based on 5G law enforcement recorder | |
| CN120342622A (en) | Method and system for coupling data sequences and method and device for verifying the coupling thereof | |
| CN113722684A (en) | Data tracing method and device, electronic equipment and computer readable storage medium | |
| KR102908864B1 (en) | Blockchain-based iot security system | |
| CN106713297A (en) | Electronic data fixing platform based on cloud service | |
| CN120034343A (en) | Blockchain-based authorization method, device, computer and readable storage medium | |
| Naz et al. | Lightweight Encryption Model for IOT Security and Privacy Protection | |
| CN117955696A (en) | Method and device for realizing cross-domain service, electronic 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 |