Video data processing method, device, system and equipment based on block chain
By adopting a blockchain-based GOP sharding method in video data processing, the video data is segmented and verified, and the sharding granularity problem in the prior art is solved, and efficient, safe and reliable transmission and processing of video data is achieved.
Patent Information
- Application Number
- CN202510004243.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-02
- Publication Date
- 2025-04-18
AI Technical Summary
The existing video data proof storage and verification methods have problems such as too small shard size leading to inconvenience in storage and poor verification performance, or too large shard size leading to time jump accuracy error.
The video data processing method based on blockchain is adopted to segment the video data through image group GOP sharding, generate a data summary, and perform key-value comparison and verification between the sending end and the playback end to achieve accurate verification and real-time verification of the video data.
It improves the transmission security and reliability of video data, improves the processing effect of video data, and achieves more accurate real-time verification.
Smart Images

Figure CN119854496A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a video data processing method, device, system and equipment based on blockchain. Background Art
[0002] With the advent of the information age, the amount of data that needs to be processed has increased exponentially, and how to improve the security and reliability of data processing is particularly important. For example, in order to improve the security of data processing by government offices, video data such as audio-visual evidence collected by them are usually stored on the chain to ensure the integrity and authenticity of the video data, and to improve the security and reliability of the video data. It is also convenient for the subsequent playback of these video data, and the video data to be played can be effectively verified based on the blockchain to ensure the processing effect of these video data.
[0003] At present, there are usually two ways to store and verify video data on the chain: one is to use TS slicing (Transport Stream Segments) to store and verify the video data in segments, but this method needs to consider the TS segmentation granularity. If the segmentation granularity is too small, it will lead to too many TS fragmented files, which will not only be inconvenient to store, but also affect the subsequent data verification performance; if the segmentation granularity is too large, it may cause large precision errors when the playback jumps by time. The second is to segment the video data with frames as the granularity and store and verify it on the chain, but this method will cause the total amount of data on the chain to be very large, and at the playback end, the credibility verification is performed for each frame, which will have a great impact on the playback performance in terms of real-time and efficiency. It can be seen that the two existing methods of realizing the on-chain storage and verification of video data have major problems, which affect the processing effect of video data. Summary of the invention
[0004] The main purpose of the embodiments of the present application is to provide a blockchain-based video data processing method, device, system and equipment, which can realize accurate storage and real-time verification of video data on the blockchain based on image group (Group of Pictures, GOP) segmentation, so as to improve the transmission security and reliability of video data, thereby improving the processing effect of video data.
[0005] In a first aspect, an embodiment of the present application provides a video data processing method based on blockchain, which is applied to a sending end, including:
[0006] Obtain target video data to be processed, and segment the target video data based on a group of pictures (GOP) segmentation method to obtain N GOP data groups corresponding to the target video data; N is a positive integer greater than 0;
[0007] Group-numbering the N GOP data groups to obtain a group number corresponding to each group of GOP data; and generating a data summary corresponding to each group of GOP data;
[0008] According to the group sequence number and data summary corresponding to each group of GOP data, a first key-value pair of N GOP data groups is formed, and the first key-value pair is submitted to the blockchain for on-chain storage;
[0009] The target video data is sent to the playback end so that when the playback end plays the target video data, the target video data can be grouped and group-numbered in a GOP segmentation-based manner and a data summary corresponding to each group of GOP data can be generated, thereby forming a second key-value pair for each group of GOP data, and using the second key-value pair to compare and verify with the first key-value pair stored on the blockchain to determine a verification result for the target video data.
[0010] In a possible implementation, the target video data is segmented based on the group of pictures (GOP) segmentation method to obtain N GOP data groups corresponding to the target video data, including:
[0011] In the process of reading data according to the timestamp of each audio and video frame in the target video data, starting from the time corresponding to a key frame and ending before the next key frame, all video frames and audio frames in this time period are arranged in chronological order, and when the audio and video timestamps are exactly the same, the data contained in this time period is regarded as a complete GOP data group, and so on, the target video data can be divided into N GOP data groups.
[0012] In a possible implementation, the data in each GOP data group is arranged in such a way that the video data comes first and the audio data comes last.
[0013] In a possible implementation, group-numbering the N GOP data groups to obtain a group sequence number corresponding to each group of GOP data includes:
[0014] The N GOP data are grouped and numbered according to the order in which the timestamps are read, so as to obtain a group sequence number corresponding to each group of GOP data.
[0015] In a possible implementation, generating a data summary corresponding to each group of GOP data includes:
[0016] The cryptographic algorithm SM3 is used to calculate the hash value corresponding to each group of GOP data as the data summary corresponding to each group of GOP data.
[0017] In a second aspect, the embodiment of the present application further provides a video data processing method based on blockchain, which is applied to a playback end, including:
[0018] Receive the target video data to be processed sent by the sending end, and when playing the target video data, group and group number the target video data based on the GOP segmentation method, obtain N GOP data groups and corresponding group sequence numbers, and generate a data summary corresponding to each group of GOP data; N is a positive integer greater than 0;
[0019] According to the group sequence number and data summary corresponding to each group of GOP data, a second key-value pair of N GOP data groups is formed;
[0020] The second key-value pair is compared and verified with the first key-value pair stored on the blockchain to determine the verification result for the target video data; the first key-value pair is formed after the sender groups and groups the target video data based on GOP fragmentation and generates a data summary corresponding to each group of GOP data.
[0021] In a possible implementation, when playing the target video data, the target video data is grouped and group-numbered based on the GOP segmentation method to obtain N GOP data groups and corresponding group sequence numbers, and a data summary corresponding to each group of GOP data is generated, including:
[0022] When playing the target video data, if a progress jump is performed, the data summary is continued to be calculated according to the entire GOP group data based on the new time point key frame, and the group number of the GOP data group is calculated according to the timestamp.
[0023] In a possible implementation, generating a data summary corresponding to each group of GOP data includes:
[0024] The cryptographic algorithm SM3 is used to calculate the hash value corresponding to each group of GOP data as the data summary corresponding to each group of GOP data.
[0025] In a possible implementation, comparing and verifying the second key-value pair with the first key-value pair stored on the blockchain to determine a verification result for the target video data includes:
[0026] Determine whether the hash values corresponding to the same GOP data group number in the second key-value pair and the first key-value pair are consistent. If so, determine that the verification result for the target video data is passed; if not, determine that the verification result for the target video data is failed.
[0027] In a third aspect, the embodiment of the present application further provides a video data processing device based on blockchain, which is applied to a sending end, including:
[0028] A segmentation unit, used for acquiring target video data to be processed, and segmenting the target video data based on a group of pictures (GOP) segmentation method to obtain N GOP data groups corresponding to the target video data; N is a positive integer greater than 0;
[0029] A generating unit, configured to group-number the N GOP data groups to obtain a grouping sequence number corresponding to each group of GOP data; and to generate a data summary corresponding to each group of GOP data;
[0030] The on-chain unit is used to construct a first key-value pair of N GOP data groups according to the group sequence number and data summary corresponding to each group of GOP data, and submit the key-value pair to the blockchain for on-chain storage;
[0031] A sending unit is used to send the target video data to the playback end, so that when the playback end plays the target video data, the target video data can be grouped and group-numbered in a GOP segmentation-based manner and a data summary corresponding to each group of GOP data can be generated, and then a second key-value pair for each group of GOP data can be formed, and the second key-value pair can be compared and verified with the first key-value pair stored on the blockchain to determine the verification result for the target video data.
[0032] In a possible implementation, the segmentation unit is specifically used for:
[0033] In the process of reading data according to the timestamp of each audio and video frame in the target video data, starting from the time corresponding to a key frame and ending before the next key frame, all video frames and audio frames in this time period are arranged in chronological order, and when the audio and video timestamps are exactly the same, the data contained in this time period is regarded as a complete GOP data group, and so on, the target video data can be divided into N GOP data groups.
[0034] In a possible implementation, the data in each GOP data group is arranged in such a way that the video data comes first and the audio data comes last.
[0035] In a possible implementation, the generating unit is specifically used for:
[0036] The N GOP data are grouped and numbered according to the order in which the timestamps are read, so as to obtain a group sequence number corresponding to each group of GOP data.
[0037] In a possible implementation, the generating unit is specifically used for:
[0038] The cryptographic algorithm SM3 is used to calculate the hash value corresponding to each group of GOP data as the data summary corresponding to each group of GOP data.
[0039] In a fourth aspect, the embodiment of the present application further provides a video data processing device based on blockchain, which is applied to a playback end, including:
[0040] A receiving unit, configured to receive the target video data to be processed sent by the sending end, and when playing the target video data, group and group number the target video data based on the GOP segmentation method, obtain N GOP data groups and corresponding group sequence numbers, and generate a data summary corresponding to each group of GOP data; N is a positive integer greater than 0;
[0041] A forming unit, used to form a second key-value pair of N GOP data groups according to the group sequence number and data summary corresponding to each group of GOP data;
[0042] A verification unit is used to compare and verify the second key-value pair with the first key-value pair stored on the blockchain to determine a verification result for the target video data; the first key-value pair is formed by the sender after grouping and group numbering the target video data in a GOP fragmentation-based manner and generating a data summary corresponding to each group of GOP data.
[0043] In a possible implementation, the receiving unit is specifically configured to:
[0044] When playing the target video data, if a progress jump is performed, the data summary is continued to be calculated according to the entire GOP group data based on the new time point key frame, and the group number of the GOP data group is calculated according to the timestamp.
[0045] In a possible implementation, the receiving unit is specifically configured to:
[0046] The cryptographic algorithm SM3 is used to calculate the hash value corresponding to each group of GOP data as the data summary corresponding to each group of GOP data.
[0047] In a possible implementation, the verification unit is specifically used to:
[0048] Determine whether the hash values corresponding to the same GOP data group number in the second key-value pair and the first key-value pair are consistent. If so, determine that the verification result for the target video data is passed; if not, determine that the verification result for the target video data is failed.
[0049] In a fifth aspect, the embodiment of the present application further provides a video data processing system based on blockchain, including: a sending end, a playing end, a sending end, and a blockchain distributed database on the chain of the sending end;
[0050] The sending end is used to obtain the target video data to be processed, and based on the image group GOP segmentation method, segment the target video data to obtain N GOP data groups corresponding to the target video data; N is a positive integer greater than 0; group number the N GOP data groups to obtain a group sequence number corresponding to each group of GOP data; and generate a data summary corresponding to each group of GOP data; according to the group sequence number and data summary corresponding to each group of GOP data, a first key-value pair of N GOP data groups is formed, and the first key-value pair is submitted to the blockchain distributed database for on-chain storage; and the target video data is sent to the playback end;
[0051] The playback end is used to receive the target video data to be processed sent by the transmission end, and when playing the target video data, group and group number the target video data based on the GOP segmentation method, obtain N GOP data groups and corresponding group numbers, and generate a data summary corresponding to each group of GOP data; according to the group number and data summary corresponding to each group of GOP data, form a second key-value pair of N GOP data groups; and submit the second key-value pair to the blockchain distributed database;
[0052] The blockchain distributed database is used to compare and verify the second key-value pair with the first key-value pair to determine a verification result for the target video data.
[0053] In a sixth aspect, an embodiment of the present application further provides a video data processing device based on blockchain, including: a processor, a memory, and a system bus;
[0054] The processor and the memory are connected via the system bus;
[0055] The memory is used to store one or more programs, and the one or more programs include instructions. When the instructions are executed by the processor, the processor executes any one of the implementations of the blockchain-based video data processing method provided in the first aspect or executes any one of the implementations of the blockchain-based video data processing method provided in the second aspect.
[0056] In the seventh aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium. When the instructions are executed on a terminal device, the terminal device executes any one of the implementation methods of the blockchain-based video data processing method provided in the first and second aspects above.
[0057] In the eighth aspect, an embodiment of the present application further provides a computer program product. When the computer program product is run on a terminal device, the terminal device enables the terminal device to execute any one of the implementation methods of the blockchain-based video data processing method provided in the first and second aspects above.
[0058] The embodiments of the present application provide a video data processing method, device, system and equipment based on blockchain. The sending end first obtains the target video data to be processed, and divides the target video data based on the GOP segmentation method to obtain N GOP data groups corresponding to the target video data; wherein N is a positive integer greater than 0; then the N GOP data groups are group-numbered to obtain the group sequence number corresponding to each group of GOP data; and a data summary corresponding to each group of GOP data is generated; then, according to the group sequence number and data summary corresponding to each group of GOP data, a first key-value pair of the N GOP data groups is constructed, and the first key-value pair is submitted to the blockchain for on-chain storage; then the target video data is sent to the playback end, so that when the playback end plays the target video data, the target video data can be grouped and group-numbered based on the GOP segmentation method and the data summary corresponding to each group of GOP data can be generated. Then, a second key-value pair for each group of GOP data is constructed, and the second key-value pair is compared and verified with the first key-value pair stored on the blockchain to determine the verification result for the target video data.
[0059] It can be seen that since the sending end and the playback end of the present application both group and group number the target video data based on GOP segmentation and generate a data summary corresponding to each group of GOP data to form a key-value pair corresponding to each group of GOP data, the target video data can be more accurately verified in real time by comparing whether the key-value pairs are consistent, thereby improving the transmission security and reliability of the target video data through the blockchain, and also improving the processing effect of the target video data. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0061] Figure 1 A flowchart of a video data processing method based on blockchain provided in an embodiment of the present application;
[0062] Figure 2 An example diagram of GOP data grouping provided in an embodiment of the present application;
[0063] Figure 3 A flowchart of another video data processing method based on blockchain provided in an embodiment of the present application;
[0064] Figure 4 An interactive flow chart of a blockchain-based video data processing system provided in an embodiment of the present application;
[0065] Figure 5 A schematic diagram of the composition of a video data processing device based on blockchain provided in an embodiment of the present application;
[0066] Figure 6 A schematic diagram of the composition of another blockchain-based video data processing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0067] As we all know, in order to ensure the security and reliability of video data, it is usually stored on the chain. For example, government staff usually store the audio-visual evidence and other video data they collect on the chain to ensure the integrity and authenticity of the video data, and improve the security and reliability of the video data. It is also convenient for the subsequent playback of these video data. The video data to be played can be effectively verified based on the blockchain to ensure the processing effect of these video data.
[0068] The existing general video data chain-up methods simply implement the storage and verification of video and audio files, but do not implement the storage and verification of video data segments, or use the FFmpeg command line tool to convert the file to the HTTP Live Streaming (HLS) protocol and save the result as an m3u8 playlist file and multiple TS slices, and perform storage and verification on the TS slices. However, the granularity of the TS slices is generally not too short. Assuming that one minute is 2 seconds, a video file with a duration of 1 hour will directly generate 1,800 TS files, which is severely fragmented. In addition, the TS file is directly used for browser playback. During playback, the browser directly downloads the slice file according to the TS file index address in the m3u8 and plays it directly. It cannot intervene to verify the segments, and it is impossible to verify while playing. That is, it is impossible to achieve real-time verification of video data. Data verification can only be performed after the entire video data is played, so problems in the video data transmission process cannot be discovered in time, affecting the processing effect of the video data.
[0069] At present, in order to improve the processing effect of video data, the following two methods are usually used to store and verify video data on the chain:
[0070] (1) Use TS slicing to verify the video data in segments.
[0071] This method is to divide the video data into TS segments and play it in hls mode. This method divides the MP4 file into M (M is an integer greater than 0) TS files. When playing, the TS files are transmitted to the terminal via HTTP and played continuously. This method needs to consider the TS segmentation granularity. If the segmentation granularity is too small, for example, it is segmented by 2 seconds, it will lead to too many TS fragmented files. An MP4 file of about one hour will have about 1,800 TS files, which will cause extreme fragmentation of storage, which is not only inconvenient for storage, but also affects the subsequent data verification performance. If the segmentation granularity is too large, that is, if the segmentation granularity is long time, then when the playback jumps by time, the entire TS file must be played as the jump point. For example, if the TS segment is segmented by 10 seconds, the jump accuracy can only jump by 10 seconds, which may cause a large accuracy error.
[0072] (2) Video data is segmented into frames and uploaded to the chain for evidence verification.
[0073] For example, based on an average frame rate of 25 frames, the total number of video frames in a one-hour MP4 file is 3600*25=90,000, which requires 90,000 serial numbers and summary data. If audio data is added, the total amount of data on the chain will be very large. On the playback side, the credibility of each frame must be verified, which will have a great impact on the playback performance in terms of real-time and efficiency.
[0074] It can be seen that the above two existing methods of realizing chain storage and verification of video data have major problems, which reduces the processing effect of video data.
[0075] To solve the above defects, the present application provides a video data processing method based on blockchain, wherein the sending end first obtains the target video data to be processed, and divides the target video data based on the GOP segmentation method to obtain N GOP data groups corresponding to the target video data; wherein N is a positive integer greater than 0; then the N GOP data groups are group-numbered to obtain the group sequence number corresponding to each group of GOP data; and a data summary corresponding to each group of GOP data is generated; then, according to the group sequence number and data summary corresponding to each group of GOP data, a first key-value pair of the N GOP data groups is constructed, and the first key-value pair is submitted to the blockchain for on-chain storage; and then the target video data is sent to the playback end, so that when the playback end plays the target video data, the target video data can be grouped and group-numbered based on the GOP segmentation method and the data summary corresponding to each group of GOP data is generated, and then a second key-value pair of each group of GOP data is constructed, and the second key-value pair is compared and verified with the first key-value pair stored on the blockchain to determine the verification result for the target video data.
[0076] It can be seen that since the sending end and the playback end of the present application both group and group number the target video data based on GOP segmentation and generate a data summary corresponding to each group of GOP data to form a key-value pair corresponding to each group of GOP data, the target video data can be more accurately verified in real time by comparing whether the key-value pairs are consistent, thereby improving the transmission security and reliability of the target video data through the blockchain, and also improving the processing effect of the target video data.
[0077] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0078] First embodiment
[0079] See also Figure 1 , is a flowchart of a video data processing method based on blockchain provided in this embodiment, and the method is applied to the sending end. Among them, the present application does not limit the specific composition structure of the sending end, and it can be but not limited to electronic devices such as mobile phones, tablet computers, laptops, netbooks, and wearable devices. The present application also does not limit the field to which the sending end belongs, and it can be a communication device used by government offices, etc. The method specifically includes the following steps:
[0080] S101: Obtain target video data to be processed, and segment the target video data based on a group of pictures (GOP) segmentation method to obtain N GOP data groups corresponding to the target video data; wherein N is a positive integer greater than 0.
[0081] In this embodiment, any video data processed by this embodiment is defined as the target video data to be processed. It should be noted that this embodiment does not limit the type of the target video data. For example, the target video data can be color video data composed of three primary colors of red (R), green (G), and blue (B), or grayscale video data composed of grayscale images. And this application does not limit the content, length, and packaging format of the target video data. For example, the target video data can be video data collected by a government office and containing audio-visual evidence, and the target video data can be 1 hour or 2 hours in length, and the target video data can be a video file formed in a packaging format such as mp4.
[0082] It is understandable that the target video data can be obtained by recording or the like according to actual needs. For example, video data of a witness stating case-related information captured by an ordinary RGB camera installed on a camera can be used as the target video data.
[0083] Furthermore, after acquiring the target video data, in order to be able to perform real-time verification on the target video data when it is subsequently played to improve the security and reliability of data transmission, the target video data can first be segmented based on the image group GOP segmentation method to obtain N GOP data groups corresponding to the target video data.
[0084] Specifically, an optional implementation method is, after acquiring the target video data, opening the file package where the target video data is located, and in the process of reading data according to the timestamp of each audio and video frame in the target video data, starting from the time corresponding to a key frame (Intra Frame, I frame) and ending before the next key frame (I frame), all video frames and audio frames in this time period are arranged in chronological order, and when the audio and video timestamps are exactly the same, the data contained in this time period is arranged in a data arrangement manner in which the video data is in front and the audio is in the back in each GOP data group, and the data contained in this time period is regarded as a complete GOP data group, and so on, the target video data can be divided into N GOP data groups.
[0085] For example: Assuming the frame rate of the target video data (such as an MP4 file) is 25 and the I-frame interval is 2 seconds, a GOP data can contain 50 video frames and multiple audio frames (the number of audio frames is not fixed and the specific number is related to the audio sampling frequency of the device). Figure 2 As shown, when the target video data (such as an mp4 file) is opened using existing or future audio and video processing software (such as Elecard StreamEye Tools), the frame status of the target video data (such as an mp4 file) can be seen. Taking the video frame as an example, the red color in the figure represents the I frame, and the blue color represents the predicted frame (Predictive Frame, P frame). The section from one I frame to the next I frame is a GOP interval.
[0086] exist Figure 2 In the figure, the vertical axis represents the number of bytes, that is, the size of a frame. It can be seen that the I frame represented by red is usually larger, while the P frame represented by blue is differential encoding, which mainly records the changes relative to the previous I frame, so the data volume is smaller. The horizontal axis represents the frame number of the current display interval, that is, Figure 2 The frames currently displayed are frames 0 to 159 (that is, the frame positions and serial numbers recorded in the target video data (such as mp4 files) all start from 0).
[0087] and, in Figure 2 In the FrameInfo (frame information) shown, "Number in Stream order" indicates the currently selected frame number; "Number in Display order" indicates the currently displayed frame number; "Gop" indicates which gop group the currently selected frame belongs to; "Size" indicates the size of the currently selected frame (in bytes); the part before the " / " in "time" indicates the specific time of the currently selected frame, and the part before and after the " / " indicates the total duration of the target video data (such as an mp4 file); "offset" indicates the offset of the storage position of the current frame in the target video data (such as an mp4 file); "Type" indicates the type of the currently selected frame, that is, I frame or P frame.
[0088] S102: group-numbering the N GOP data groups to obtain a group number corresponding to each group of GOP data; and generating a data summary corresponding to each group of GOP data.
[0089] In this embodiment, the target video data is segmented based on the GOP segmentation method in step S101 to obtain N GOP data groups corresponding to the target video data. Further, for each GOP data group, the group can be numbered according to the timestamp reading order to obtain the group number corresponding to each group of GOP data, and the data summary corresponding to each group of GOP data is generated by using the existing or future methods of generating data summary. For example, the cryptographic algorithm SM3 in the GmSSL open source cryptographic toolbox can be used to calculate the hash value corresponding to each group of GOP data as the data summary corresponding to each group of GOP data, so as to execute the subsequent step S103 to ensure the integrity and consistency of the data.
[0090] S103: Construct a first key-value pair of N GOP data groups according to the group sequence number and data summary corresponding to each group of GOP data, and submit the first key-value pair to the blockchain for on-chain storage.
[0091] In this embodiment, the sending end groups the N GOP data groups through step S102 to obtain the group number corresponding to each group of GOP data; and after generating the data summary corresponding to each group of GOP data, it can further construct a key-value pair corresponding to each GOP group in the N GOP data groups (defined as the first key-value pair here) according to the group number and data summary corresponding to each group of GOP data, and submit the obtained N first key-value pairs to the blockchain for on-chain storage for subsequent data verification.
[0092] For example: assuming that a certain GOP data group is group numbered, the group number corresponding to the group of GOP data is "1", and the hash value corresponding to the group of GOP data calculated by the SM3 algorithm is "a01a74b55e5a70cd1c75943ecdb5b5e3c35edfab0a21fb6acb50ab550057cab8", then the first key-value pair formed by the group number corresponding to the group of GOP data and the data summary is: "1, a01a74b55e5a70cd1c75943ecdb5b5e3c35edfab0a21fb6acb50ab550057cab8". Similarly, other first key-value pairs can be constructed, such as "2,1b8c081fb7210fabdcc3953480e342a0bf7349c051120cdbc979bc03b255723c", "3,cb9e385b57ca6b3c92befadf0d5d8a970dede893418aa98289e0b4291252b0f4", etc.
[0093] S104: Send the target video data to the playback end so that when the playback end plays the target video data, the target video data can be grouped and group-numbered based on the GOP segmentation method and a data summary corresponding to each group of GOP data can be generated. Then, a second key-value pair for each group of GOP data is formed, and the second key-value pair is compared and verified with the first key-value pair stored on the blockchain to determine the verification result for the target video data.
[0094] In this embodiment, after the sending end submits the obtained N first key-value pairs to the blockchain for on-chain storage in step S103, the target video data can be further sent to the playback end (which can be an electronic device capable of playing videos, such as a mobile phone, a tablet computer, a laptop computer, a netbook, and a wearable device), so that when the playback end plays the target video data, the target video data can be grouped and group-numbered based on the GOP segmentation method and the data summary corresponding to each group of GOP data can be generated to form a second key-value pair for each group of GOP data (the specific implementation process can be referred to the statement of generating the first key-value pair in the above steps S101-S103 or the introduction of the second embodiment below, which will not be repeated here), and the second key-value pair is used to compare and verify with the first key-value pair stored on the blockchain to determine the verification result for the target video data. Alternatively, the obtained N second key-value pairs can be submitted to the blockchain to compare and verify the second key-value pair with the first key-value pair stored previously through the blockchain to determine the verification result for the target video data.
[0095] Specifically, an optional implementation method is that when comparing and verifying the second key-value pair and the first key-value pair, it can be determined whether the hash values corresponding to the same GOP data group number in the second key-value pair and the first key-value pair are consistent. If so, the verification result for the target video data is determined to be a passed verification, indicating that the target video data has not been tampered with during the transmission process and has high integrity and credibility; if not, the verification result for the target video data is determined to be a failed verification, indicating that the target video data may have been tampered with during the transmission process, and targeted processing is required in a timely manner to improve the transmission security and reliability of the target video data.
[0096] In summary, the present embodiment provides a video data processing method based on blockchain, in which the sending end first obtains the target video data to be processed, and divides the target video data based on the GOP segmentation method to obtain N GOP data groups corresponding to the target video data; wherein N is a positive integer greater than 0; then the N GOP data groups are group-numbered to obtain the group sequence number corresponding to each group of GOP data; and a data summary corresponding to each group of GOP data is generated; then, according to the group sequence number and data summary corresponding to each group of GOP data, a first key-value pair of the N GOP data groups is formed, and the first key-value pair is submitted to the blockchain for on-chain storage; and then the target video data is sent to the playback end, so that when the playback end plays the target video data, the target video data can be grouped and group-numbered based on the GOP segmentation method and the data summary corresponding to each group of GOP data is generated, and then a second key-value pair of each group of GOP data is formed, and the second key-value pair is compared and verified with the first key-value pair stored on the blockchain to determine the verification result for the target video data.
[0097] It can be seen that since the sending end and the playback end of the present application both group and group number the target video data based on GOP segmentation and generate a data summary corresponding to each group of GOP data to form a key-value pair corresponding to each group of GOP data, the target video data can be more accurately verified in real time by comparing whether the key-value pairs are consistent, thereby improving the transmission security and reliability of the target video data through the blockchain, and also improving the processing effect of the target video data.
[0098] Second embodiment
[0099] See also Figure 3, which is a flowchart of another video data processing method based on blockchain provided by an embodiment of the present application. The method is applied to the playback end. Among them, the present application does not limit the specific composition structure of the playback end, which can be but not limited to mobile phones, tablet computers, laptops, netbooks, wearable devices and other electronic devices that can play video data. The present application does not limit the field to which the playback end belongs, and it can be a communication device used by government offices, etc. The method specifically includes the following steps:
[0100] S301: Receive the target video data to be processed sent by the sending end, and when playing the target video data, group and group number the target video data based on the GOP segmentation method, obtain N GOP data groups and corresponding group numbers, and generate a data summary corresponding to each group of GOP data; wherein N is a positive integer greater than 0.
[0101] In this embodiment, after the playback end receives the target video data to be processed sent by the sending end, it can further group and group number the target video data based on the GOP segmentation method when playing the target video data, obtain N GOP data groups and corresponding group numbers, and generate a data summary corresponding to each group of GOP data to execute the subsequent step S302.
[0102] The specific implementation process of the target video data received by the playback end is grouped and group-numbered based on the GOP segmentation method, and N GOP data groups and corresponding group numbers are obtained, as well as the data summary corresponding to each group of GOP data is generated. Please refer to the introduction of the target video data received by the transmitter based on the GOP segmentation method in steps S101-S102 above, and the description will not be repeated here. Just replace "the target video data obtained by the transmitter" with "the target video data received by the playback end".
[0103] S302: Constructing second key-value pairs of N GOP data groups according to the group sequence number and data summary corresponding to each group of GOP data.
[0104] In this embodiment, the playback end performs group numbering for each GOP data group through step S301 to obtain the group serial number corresponding to each group of GOP data, and uses existing or future methods for generating data summaries to generate a data summary corresponding to each group of GOP data (such as using cryptographic algorithm SM3 to calculate the hash value corresponding to each group of GOP data as the data summary corresponding to each group of GOP data). Further, based on the group serial number and data summary corresponding to each group of GOP data, a key-value pair corresponding to each GOP group in the N GOP data groups (defined here as the second key-value pair) can be constructed to execute the subsequent step S303.
[0105] Specifically, when the playback end plays the received target video data, it also starts with receiving an I frame, and uses the timestamp of this I frame to calculate the GOP group number to which this I frame and subsequent frames belong (the calculation method can be to divide the timestamp by the video sampling base, and the sampling base is usually 90000. For example, the I frame timestamp is 180000, then it can be determined that this I frame is the first frame of the second group of GOP. The sending of timestamps starts from 0, and the first frame timestamp is 0, so it is the 0th group of GOP data). When the playback end receives the next I frame, it will generate a data summary according to the SM3 algorithm for the previously saved complete GOP group data, and at the same time, generate a second key-value pair according to the calculated GOP group number and save it.
[0106] In addition, an optional implementation method is that when playing the target video data, if the progress jump is performed, the data summary is continued to be calculated according to the entire GOP group data based on the new time point key frame (I frame), and the group number of the GOP data group is calculated according to the timestamp.
[0107] For example: when playing the target video data, when it is necessary to jump to the 5th minute, the sender can address the offset in the mp4 file to which the target video data belongs according to the position of 5 minutes (i.e. 300 seconds), find the nearest I frame, read the timestamp of the I frame, and continue to send data from the new I frame. When the playback end receives the new I frame timestamp, the progress can be jumped, and the GOP group number calculation is also calculated according to the new timestamp, that is, the middle GOP data group will be skipped, and the GOP group number will be calculated according to the actual timestamp after the jump.
[0108] S303: Use the second key-value pair to compare and verify with the first key-value pair stored on the blockchain to determine the verification result of the target video data; wherein the first key-value pair is formed after the sender groups and groups the target video data based on GOP fragmentation and generates a data summary corresponding to each group of GOP data.
[0109] In this embodiment, after the playback end obtains the second key-value pairs corresponding to each of the N GOP data groups through step S302, it can further use the second key-value pairs to compare and verify with the first key-value pairs stored on the blockchain to determine the verification result for the target video data. Among them, the first key-value pair is formed by the sending end after grouping and group numbering the target video data based on the GOP segmentation method and generating the data summary corresponding to each group of GOP data (see the above steps S101-S103 for details), or the playback end can also submit the obtained N second key-value pairs to the blockchain, so as to compare and verify the second key-value pairs with the first key-value pairs stored previously through the blockchain to determine the verification result for the target video data.
[0110] Specifically, an optional implementation method is that when comparing and verifying the second key-value pair and the first key-value pair, it can be determined whether the hash values corresponding to the same GOP data group number in the second key-value pair and the first key-value pair are consistent. If so, the verification result for the target video data is determined to be a passed verification, indicating that the target video data has not been tampered with during the transmission from the sending end to the playback end, and has high integrity and credibility; if not, the verification result for the target video data is determined to be a failed verification, indicating that the target video data may have been tampered with during the transmission from the sending end to the playback end, and targeted processing is required in a timely manner to improve the transmission security and reliability of the target video data.
[0111] In practical applications, at fixed intervals (the specific time interval is determined according to business needs, if the interval is too small, the blockchain interface will be frequently called for data verification, affecting performance, and if the interval is too large, the real-time nature of the verification will be affected, and the verification failure cannot be known in time to take corresponding measures, usually 10s or 20s can be used), the playback end forms a data group with the complete GOP group number received within the current interval and the second key-value pair of the hash value obtained through SM3, and uploads it by calling the blockchain interface. The blockchain side compares the hash value of the data actually received by the playback end with the first key-value pair previously stored on the chain. For example, assuming that the playback end uploads the video data received in the first 20s, that is, 10 hash key-value pairs, the blockchain will compare the received data hash value with the GOP key-value pairs from 0 to 9 previously stored on the chain. For the same GOP number, the hash value should be exactly the same. If not, the verification fails, and if the hash value is consistent, the verification passes.
[0112] In summary, when playing the target video data, the sending end can send it to the playback end according to the actual audio and video frame order in the mp4 file to which the target video data belongs. After receiving the data, the playback end also generates a data summary in the same SM3 manner according to the I frame, P frame, and audio frame, and each I frame GOP interval data set, and verifies the credibility and integrity of the blockchain according to the GOP grouping sequence number and the data summary value (such as hash value). Considering the need for business progress jump, the received data does not have to be guaranteed to be continuous, as long as it is based on the GOP grouping. Even if there is duplicate data, the integrity and credibility of all video data received during the entire playback process can be ensured through the blockchain. It can be seen that the video data processing method based on blockchain provided in this embodiment is an optimal processing scheme from the aspects of the storage difficulty of target video data such as audio-visual evidence, the amount of blockchain data, the data accuracy, and the difficulty of verification at the playback end and the impact on playback performance, which can effectively improve the processing effect on the target video data.
[0113] Third embodiment
[0114] Next, the interaction process of each component in a blockchain-based video data processing system provided in an embodiment of the present application is introduced.
[0115] See also Figure 4 The processing system includes a sending end 401, a playing end 403, a sending end and a blockchain distributed database 402 on the sending end. The three are connected in pairs. The aforementioned "connection" can be a direct connection or an indirect connection. The functions of the blockchain distributed database 402 may include but are not limited to data storage and reading, decentralization and distributed storage, transparency and immutability, security and reliability, version control and historical records, and support for complex queries and analysis, etc.
[0116] Among them, the sending end 401 is used to obtain the target video data to be processed, and based on the GOP segmentation method, segment the target video data to obtain N GOP data groups corresponding to the target video data; group number the N GOP data groups to obtain the group sequence number corresponding to each group of GOP data; and generate a data summary corresponding to each group of GOP data; according to the group sequence number and data summary corresponding to each group of GOP data, a first key-value pair of N GOP data groups is constructed, and the first key-value pair is submitted to the blockchain distributed database 402 for on-chain storage; the target video data is sent to the playback end 403. For the specific implementation process, please refer to the introduction of steps S101-S104 above, which will not be repeated here.
[0117] The playback end 403 is used to receive the target video data to be processed sent by the transmission end 401, and when playing the target video data, the target video data is grouped and grouped based on the GOP segmentation method to obtain N GOP data groups and corresponding group numbers, and generate a data summary corresponding to each group of GOP data; according to the group number and data summary corresponding to each group of GOP data, a second key-value pair of N GOP data groups is constructed; and the second key-value pair is submitted to the blockchain distributed database 402; for the specific implementation process, please refer to the introduction of steps S301-S303 above, which will not be repeated here.
[0118] The blockchain distributed database 402 is used to compare and verify the second key-value pair on the chain of the playback end 403 with the first key-value pair stored on the chain of the sending end 401 to determine the verification result for the target video data.
[0119] Fourth embodiment
[0120] This embodiment will introduce a video data processing device based on blockchain. For related content, please refer to the first embodiment mentioned above.
[0121] See also Figure 5 , is a schematic diagram of the composition of a video data processing device based on blockchain provided in this embodiment, the device 500 is applied to the sending end, and includes:
[0122] The segmentation unit 501 is used to obtain the target video data to be processed, and segment the target video data based on the group of pictures GOP segmentation method to obtain N GOP data groups corresponding to the target video data; N is a positive integer greater than 0;
[0123] The generating unit 502 is used to group-number the N GOP data groups to obtain a group number corresponding to each group of GOP data; and generate a data summary corresponding to each group of GOP data;
[0124] The on-chain unit 503 is used to construct a first key-value pair of N GOP data groups according to the group sequence number and data summary corresponding to each group of GOP data, and submit the key-value pair to the blockchain for on-chain storage;
[0125] The sending unit 504 is used to send the target video data to the playback end, so that when the playback end plays the target video data, the target video data can be grouped and group numbered in a GOP segmentation-based manner and a data summary corresponding to each group of GOP data can be generated. Then, a second key-value pair for each group of GOP data is formed, and the second key-value pair is compared and verified with the first key-value pair stored on the blockchain to determine the verification result for the target video data.
[0126] In an implementation of this embodiment, the segmentation unit 501 is specifically used for:
[0127] In the process of reading data according to the timestamp of each audio and video frame in the target video data, starting from the time corresponding to a key frame and ending before the next key frame, all video frames and audio frames in this time period are arranged in chronological order, and when the audio and video timestamps are exactly the same, the data contained in this time period is regarded as a complete GOP data group, and so on, the target video data can be divided into N GOP data groups.
[0128] In one implementation of this embodiment, the data in each GOP data group is arranged in such a way that the video data comes first and the audio data comes last.
[0129] In an implementation of this embodiment, the generating unit 502 is specifically configured to:
[0130] The N GOP data are grouped and numbered according to the order in which the timestamps are read, so as to obtain a group sequence number corresponding to each group of GOP data.
[0131] In an implementation of this embodiment, the generating unit 502 is specifically configured to:
[0132] The cryptographic algorithm SM3 is used to calculate the hash value corresponding to each group of GOP data as the data summary corresponding to each group of GOP data.
[0133] Fifth embodiment
[0134] This embodiment will introduce another video data processing device based on blockchain. For related content, please refer to the second embodiment above.
[0135] See also Figure 6 , is a schematic diagram of another video data processing device based on blockchain provided in this embodiment, the device 600 is applied to a playback end, and includes:
[0136] The receiving unit 601 is used to receive the target video data to be processed sent by the sending end, and when playing the target video data, group and group number the target video data based on the GOP segmentation method, obtain N GOP data groups and corresponding group sequence numbers, and generate a data summary corresponding to each group of GOP data; N is a positive integer greater than 0;
[0137] A forming unit 602, configured to form second key-value pairs of N GOP data groups according to the group sequence number and data summary corresponding to each group of GOP data;
[0138] The verification unit 603 is used to compare and verify the second key-value pair with the first key-value pair stored on the blockchain to determine the verification result for the target video data; the first key-value pair is formed by the sender after grouping and group numbering the target video data in a GOP fragmentation-based manner and generating a data summary corresponding to each group of GOP data.
[0139] In an implementation of this embodiment, the receiving unit 601 is specifically configured to:
[0140] When playing the target video data, if a progress jump is performed, the data summary is continued to be calculated according to the entire GOP group data based on the new time point key frame, and the group number of the GOP data group is calculated according to the timestamp.
[0141] In an implementation of this embodiment, the receiving unit 601 is specifically configured to:
[0142] The cryptographic algorithm SM3 is used to calculate the hash value corresponding to each group of GOP data as the data summary corresponding to each group of GOP data.
[0143] In an implementation of this embodiment, the verification unit 603 is specifically used to:
[0144] Determine whether the hash values corresponding to the same GOP data group number in the second key-value pair and the first key-value pair are consistent. If so, determine that the verification result for the target video data is passed; if not, determine that the verification result for the target video data is failed.
[0145] Furthermore, the embodiment of the present application also provides a video data processing device based on blockchain, including: a processor, a memory, and a system bus;
[0146] The processor and the memory are connected via the system bus;
[0147] The memory is used to store one or more programs, and the one or more programs include instructions. When the instructions are executed by the processor, the processor executes any implementation method of the blockchain-based video data processing method provided in the first embodiment or executes any implementation method of the blockchain-based video data processing method provided in the second embodiment.
[0148] Furthermore, an embodiment of the present application also provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on a terminal device, the terminal device executes any one of the implementation methods of the blockchain-based video data processing method provided in the first and second embodiments above.
[0149] Furthermore, an embodiment of the present application also provides a computer program product. When the computer program product is run on a terminal device, the terminal device executes any one of the implementation methods of the blockchain-based video data processing method provided in the first and second embodiments above.
[0150] It can be known from the description of the above implementation mode that those skilled in the art can clearly understand that all or part of the steps in the above-mentioned embodiment method can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product can be stored in a storage medium such as ROM / RAM, a disk, an optical disk, etc., including several instructions for enabling a computer device (which can be a personal computer, a server, or a network communication device such as a media gateway, etc.) to execute the methods described in the various embodiments of the present application or certain parts of the embodiments.
[0151] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0152] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0153] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A video data processing method based on blockchain, characterized in that: Applied to the sending end, including: Obtain target video data to be processed, and segment the target video data based on a group of pictures (GOP) segmentation method to obtain N GOP data groups corresponding to the target video data; N is a positive integer greater than 0; Group-numbering the N GOP data groups to obtain a group number corresponding to each group of GOP data; and generating a data summary corresponding to each group of GOP data; According to the group sequence number and data summary corresponding to each group of GOP data, a first key-value pair of N GOP data groups is formed, and the first key-value pair is submitted to the blockchain for on-chain storage; The target video data is sent to the playback end so that when the playback end plays the target video data, the target video data can be grouped and group-numbered in a GOP segmentation-based manner and a data summary corresponding to each group of GOP data can be generated, thereby forming a second key-value pair for each group of GOP data, and using the second key-value pair to compare and verify with the first key-value pair stored on the blockchain to determine a verification result for the target video data.
2. The method according to claim 1, characterized in that The target video data is segmented based on the group of pictures (GOP) segmentation method to obtain N GOP data groups corresponding to the target video data, including: In the process of reading data according to the timestamp of each audio and video frame in the target video data, starting from the time corresponding to a key frame and ending before the next key frame, all video frames and audio frames in this time period are arranged in chronological order, and when the audio and video timestamps are exactly the same, the data contained in this time period is regarded as a complete GOP data group, and so on, the target video data can be divided into N GOP data groups.
3. The method according to claim 2, characterized in that The data in each GOP data group is arranged in such a way that the video data comes first and the audio data comes last.
4. The method according to any one of claims 1 to 3, characterized in that: The grouping of the N GOP data groups to obtain a group sequence number corresponding to each group of GOP data includes: The N GOP data are grouped and numbered according to the order in which the timestamps are read, so as to obtain a group sequence number corresponding to each group of GOP data.
5. The method according to any one of claims 1 to 3, characterized in that: The generating of the data summary corresponding to each group of GOP data includes: The cryptographic algorithm SM3 is used to calculate the hash value corresponding to each group of GOP data as the data summary corresponding to each group of GOP data.
6. A video data processing method based on blockchain, characterized in that: Applied to the playback end, including: Receive the target video data to be processed sent by the sending end, and when playing the target video data, group and group number the target video data based on the GOP segmentation method, obtain N GOP data groups and corresponding group sequence numbers, and generate a data summary corresponding to each group of GOP data; N is a positive integer greater than 0; According to the group sequence number and data summary corresponding to each group of GOP data, a second key-value pair of N GOP data groups is formed; The second key-value pair is compared and verified with the first key-value pair stored on the blockchain to determine the verification result for the target video data; the first key-value pair is formed after the sender groups and groups the target video data based on GOP fragmentation and generates a data summary corresponding to each group of GOP data.
7. The method according to claim 6, characterized in that When playing the target video data, the target video data is grouped and group-numbered based on the GOP segmentation method to obtain N GOP data groups and corresponding group sequence numbers, and a data summary corresponding to each group of GOP data is generated, including: When playing the target video data, if a progress jump is performed, the data summary is continued to be calculated according to the entire GOP group data based on the new time point key frame, and the group number of the GOP data group is calculated according to the timestamp.
8. The method according to claim 6, characterized in that The generating of the data summary corresponding to each group of GOP data includes: The cryptographic algorithm SM3 is used to calculate the hash value corresponding to each group of GOP data as the data summary corresponding to each group of GOP data.
9. The method according to claim 8, characterized in that The comparing and verifying the second key-value pair with the first key-value pair stored on the blockchain to determine a verification result for the target video data includes: Determine whether the hash values corresponding to the same GOP data group number in the second key-value pair and the first key-value pair are consistent. If so, determine that the verification result for the target video data is passed; if not, determine that the verification result for the target video data is failed.
10. A video data processing device based on blockchain, characterized in that: Applied to the sending end, including: A segmentation unit, used for acquiring target video data to be processed, and segmenting the target video data based on a group of pictures (GOP) segmentation method to obtain N GOP data groups corresponding to the target video data; N is a positive integer greater than 0; A generating unit, configured to group-number the N GOP data groups to obtain a grouping sequence number corresponding to each group of GOP data; and to generate a data summary corresponding to each group of GOP data; The on-chain unit is used to construct a first key-value pair of N GOP data groups according to the group sequence number and data summary corresponding to each group of GOP data, and submit the key-value pair to the blockchain for on-chain storage; A sending unit is used to send the target video data to the playback end, so that when the playback end plays the target video data, the target video data can be grouped and group-numbered in a GOP segmentation-based manner and a data summary corresponding to each group of GOP data can be generated, and then a second key-value pair for each group of GOP data can be formed, and the second key-value pair can be compared and verified with the first key-value pair stored on the blockchain to determine the verification result for the target video data.
11. A video data processing device based on blockchain, characterized in that: Applied to the playback end, including: A receiving unit, configured to receive the target video data to be processed sent by the sending end, and when playing the target video data, group and group number the target video data based on the GOP segmentation method, obtain N GOP data groups and corresponding group sequence numbers, and generate a data summary corresponding to each group of GOP data; N is a positive integer greater than 0; A forming unit, used to form a second key-value pair of N GOP data groups according to the group sequence number and data summary corresponding to each group of GOP data; A verification unit is used to compare and verify the second key-value pair with the first key-value pair stored on the blockchain to determine a verification result for the target video data; the first key-value pair is formed by the sender after grouping and group numbering the target video data in a GOP fragmentation-based manner and generating a data summary corresponding to each group of GOP data.
12. A video data processing system based on blockchain, characterized in that: include: The blockchain distributed database of the sender, the player, the sender, and the sender on the chain; The transmitting end is used to obtain the target video data to be processed, and segment the target video data based on the group of pictures GOP segmentation method to obtain N GOP data groups corresponding to the target video data; N is a positive integer greater than 0; group number the N GOP data groups to obtain a group number corresponding to each group of GOP data; And generate a data summary corresponding to each group of GOP data; according to the group sequence number and data summary corresponding to each group of GOP data, form a first key-value pair of N GOP data groups, and submit the first key-value pair to the blockchain distributed database for on-chain storage; send the target video data to the playback end; The playback end is used to receive the target video data to be processed sent by the transmission end, and when playing the target video data, group and group number the target video data based on the GOP segmentation method, obtain N GOP data groups and corresponding group numbers, and generate a data summary corresponding to each group of GOP data; according to the group number and data summary corresponding to each group of GOP data, form a second key-value pair of N GOP data groups; and submit the second key-value pair to the blockchain distributed database; The blockchain distributed database is used to compare and verify the second key-value pair with the first key-value pair to determine a verification result for the target video data.
13. A video data processing device based on blockchain, characterized in that: include: Processor, memory, system bus; The processor and the memory are connected via the system bus; The memory is used to store one or more programs, and the one or more programs include instructions, which, when executed by the processor, enable the processor to execute the method of any one of claims 1-5 or the method of any one of claims 6-9.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed on a terminal device, the terminal device executes the method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Video encryption method and system based on block chain
CN112235543A
Video storage method, verification method and device based on block chain
CN115248940A
Video stream reverse playing method and device based on RTP-PS
CN118353885A
Blockchain digest augmention of media files including group-of-pictures video streams for MXF files
US10404467B1