Method, equipment and storage medium for securing live video
By collecting and analyzing TS stream slices of live video, identifying and saving illegal content to the blockchain, the problems of high evidence collection cost and low security in network live streaming monitoring are solved, and efficient and secure evidence preservation is achieved.
Patent Information
- Application Number
- CN202211002641.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-19
- Publication Date
- 2025-10-28
- Estimated Expiration
- 2042-08-19
AI Technical Summary
In existing technologies, the cost of collecting evidence of violations in online live streaming monitoring is high, and manual operation can easily lead to missed collections, while evidence preservation is not secure.
By acquiring video stream information from live videos, collecting multiple TS stream slice files and determining the TS stream slice set, performing speech-to-text conversion, identifying target keywords, and broadcasting videos containing keywords to the blockchain for storage.
It reduces the cost of manual monitoring, ensures the security and reliability of evidence, and improves the efficiency and consistency of evidence preservation.
Smart Images

Figure CN115550670B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of computer networks, and more particularly to a method, apparatus, and computer-readable storage medium for securing live video. Background Technology
[0002] Evidence collection for violations during live streaming monitoring involves recording and collecting video footage of specific streamers' live streams on designated platforms as evidence. With the development of the internet and e-commerce industries, many streamers' marketing terminology and advertising language during live streams are suspected of being illegal. Examples include inducing purchases, exaggerated advertising, and inappropriate remarks. Live streaming monitoring technology is needed to collect evidence of these violations. However, manual evidence collection is costly and prone to omissions. Furthermore, how to preserve the collected evidence is also a pressing issue. Summary of the Invention
[0003] The main objective of this application is to provide a method, device, and computer-readable storage medium for securing evidence from live video, aiming to reduce the cost of collecting live video evidence and improve the security of evidence preservation.
[0004] Firstly, this application provides a method for securing evidence of live video, the method comprising the following steps:
[0005] Obtain video stream information from the live stream;
[0006] Based on the video stream information, multiple TS stream slices corresponding to the live video are collected to obtain a first TS stream slice file and a second TS stream slice file, wherein the first TS stream slice file and the second TS stream slice file are stored in different locations;
[0007] Determine the TS stream slice set based on the first TS stream slice file and the second TS stream slice file;
[0008] The target video is determined based on the TS stream slices in the TS stream slice set;
[0009] The target video is converted from speech to text to obtain the target text corresponding to the target video;
[0010] When the target text contains target keywords, the target video corresponding to the target text and the video stream information corresponding to the target video are broadcast to a preset blockchain.
[0011] Secondly, this application also provides a computer device, the computer device including a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, it implements the steps of the above-described method for securing live video.
[0012] Thirdly, this application also provides a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, it implements the steps of the above-described method for securing live video.
[0013] This application provides a method, device, and computer-readable storage medium for securing evidence of live video. The method includes: acquiring video stream information of a live video; collecting multiple TS stream slices corresponding to the live video based on the video stream information to obtain a first TS stream slice file and a second TS stream slice file, wherein the first TS stream slice file and the second TS stream slice file are stored in different locations; determining a TS stream slice set based on the first TS stream slice file and the second TS stream slice file; determining a target video based on the TS stream slices in the TS stream slice set; performing speech-to-text conversion on the target video to obtain target text corresponding to the target video; when the target text includes target keywords, broadcasting the target video corresponding to the target text and the video stream information corresponding to the target video to a preset blockchain. This application acquires a first TS stream slice file and a second TS stream slice file, determines a TS stream slice set based on the first and second TS stream slice files, and determines the target video through the TS stream slice set. This enables the determination of whether the target video contains the target keyword after the target video is determined. If the target video contains the target keyword, the target video can be used as evidence and stored in the blockchain. This eliminates the need for manual video monitoring and improves the security of the target video as evidence by storing it in the blockchain. Attached Figure Description
[0014] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0015] Figure 1 A flowchart illustrating a method for securing live video data according to an embodiment of this application;
[0016] Figure 2 A diagram illustrating a use case of a live video authentication method provided in an embodiment of this application;
[0017] Figure 3 This is a schematic block diagram of the structure of a computer device according to an embodiment of this application. Detailed Implementation
[0018] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0019] The flowchart shown in the attached diagram is for illustrative purposes only and does not necessarily include all content and operations / steps, nor does it necessarily have to be performed in the order described. For example, some operations / steps can be broken down, combined, or partially merged, so the actual execution order may change depending on the actual situation.
[0020] This application provides a method for securing evidence of live video, a computer device, and a computer-readable storage medium. The method for securing evidence of live video can be applied to a server, which can be a standalone server or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.
[0021] The following detailed description of some embodiments of this application is provided in conjunction with the accompanying drawings. Unless otherwise specified, the following embodiments and features can be combined with each other.
[0022] Please refer to Figure 1 , Figure 2 , Figure 1 This is a flowchart illustrating a method for securing live video data according to an embodiment of this application. Figure 2 This is a diagram illustrating a use case of a live video authentication method provided in an embodiment of this application.
[0023] like Figure 2 As shown, for the sake of simplicity, the following methods are all described in... Figure 2 The monitoring platform, operation service provider platform, and judicial appraisal center platform shown are used for implementation. It is understood that the method of securing evidence from live video is not limited to these three platforms; it can include more or fewer platforms. Furthermore, these three platforms can share a single server, or each platform can use a separate server to implement the method of securing evidence from live video. The following explanation uses a shared server as an example, where each platform has its own interface for transmitting corresponding information.
[0024] like Figure 1 As shown, the method for securing the live video includes steps S101 to S106.
[0025] Step S101: Obtain the video stream information of the live video.
[0026] For example, the video stream information may include the network address of the live stream, the start time of recording, and the end time of recording. In other embodiments, the video stream information may also include the m3u8 stream address corresponding to the network address of the live stream.
[0027] For example, the network address of the live stream to be monitored can be imported into the monitoring platform by manual input or batch file import. This allows the server to collect the live video and store it in the storage locations corresponding to the operating service provider platform and the judicial appraisal center platform on the server. Understandably, the operating service provider platform can obtain the corresponding file in the storage location corresponding to its own platform on the server, and similarly, the judicial appraisal center platform can also obtain the corresponding file in its own storage location. The two storage locations are not interconnected and can work independently, thus enabling the operating service provider platform and the judicial appraisal center platform to obtain the collected live video separately.
[0028] In the specific implementation process, the network address of the live broadcast is preset, such as the m3u8 stream address of the live broadcast, or the live broadcast room number information corresponding to the app, and then the monitoring platform generates the recording start time and recording end time. In this way, the live broadcast video is recorded during the time period from the recording start time to the recording end time. Specifically, the corresponding file can be downloaded through the live broadcast network address during this period to realize the recording of the live broadcast video.
[0029] Step S102: Collect multiple TS stream slices corresponding to the live video based on the video stream information to obtain the first TS stream slice file and the second TS stream slice file. The first TS stream slice file and the second TS stream slice file are stored in different locations.
[0030] For example, as described in step S101, the first TS stream slice file can be stored in the storage location corresponding to the operating service provider platform on the server, and the second TS stream slice file can be stored in the storage location corresponding to the judicial appraisal center platform on the server.
[0031] For example, during a live stream, the live video may be divided into several TS stream slices in the live stream address. The server downloads all of these TS stream slices to obtain the first TS stream slice and the second TS stream slice.
[0032] In some implementations, the server does not need to distinguish the time sequence when downloading TS stream slices; it only needs to download the TS stream slices and store them in the corresponding storage locations to improve download efficiency.
[0033] Step S103: Determine the TS stream slice set based on the first TS stream slice file and the second TS stream slice file.
[0034] For example, after the recording ends, the download of the TS stream slice can be considered complete. It is understood that the recording end time can be preset, such as the live broadcast end time, or in some cases, the broadcaster will end the live broadcast in advance. The time when the broadcaster's instruction to end the live broadcast is obtained can be determined as the recording end time, thereby avoiding resource waste.
[0035] For example, after obtaining the first TS stream slice file and the second TS stream slice file, the TS stream slice set can be determined based on the first TS stream slice file and the second TS stream slice file.
[0036] In some embodiments, determining the TS stream slice set based on the first TS stream slice file and the second TS stream slice file includes: calculating a first hash value for each TS stream slice in the first TS stream slice file, and calculating a second hash value for each TS stream slice in the second TS stream slice file; and determining the TS stream slice set based on the first hash value and the second hash value.
[0037] Understandably, calculating the first hash value of each TS stream slice in the first TS stream slice file and the second hash value of each TS stream slice in the second TS stream slice file is used to ensure that the TS stream slices in the first TS stream slice file and the second TS stream slice file are the same, that is, they have the same set of TS stream slices in different storage locations or servers. Therefore, by calculating the hash values and performing an intersection operation based on the hash values, the set of TS stream slices is determined.
[0038] In some embodiments, determining the TS stream slice set based on the first hash value and the second hash value includes: taking the TS stream slices with the same first hash value and the same second hash value as target TS stream slices, and taking the set of target TS stream slices as the TS stream slice set.
[0039] For example, the target TS stream slice is the same TS stream slice in different storage locations. These TS stream slices can be used as a TS stream slice set to ensure that both the operation service provider platform and the judicial appraisal center platform can obtain the TS stream slices in the TS stream slice set, thereby ensuring the consistency of the evidence.
[0040] Step S104: Determine the target video based on the TS stream slices in the TS stream slice set.
[0041] For example, after determining the TS stream slice set, the target video can be determined based on the TS stream slices in the TS stream slice set, thereby enabling the determination of whether the target video contains prohibited words.
[0042] For example, the target video can be obtained by splicing TS stream slices. Specifically, the TS stream slices are spliced according to their chronological order to obtain the target video.
[0043] For example, the target video obtained by splicing can be a video of a preset duration, such as a 10-minute video.
[0044] In some embodiments, determining the target video based on the target TS stream slices in the TS stream slice set includes: determining the number of target TS stream slices in the TS stream slice set and / or the duration of each target TS stream slice; determining the effective ratio of the target TS stream slices based on the number of target TS stream slices and / or the duration of each target TS stream slice; and if the effective ratio meets a preset condition, splicing the target TS stream slices together to obtain the target video.
[0045] For example, the effective ratio of a target TS stream slice can be determined, and the effectiveness of the target TS stream slice can be determined by the effective ratio. Specifically, the effective ratio is determined based on the number of target TS stream slices and / or the duration of each target TS stream slice, thereby determining whether the target TS stream slice is effective.
[0046] In some embodiments, determining the effective ratio of target TS stream slices based on the number of target TS stream slices and / or the duration of each target TS stream slice includes: determining a first ratio based on the number of target TS stream slices and the number of TS stream slices in a first TS stream slice file or a second TS stream slice file; determining a second ratio based on the duration of the target TS stream slices and the duration of the TS stream slices in the first TS stream slice file or the second TS stream slice file; and determining that the effective ratio meets a preset condition when the first ratio and / or the second ratio is greater than or equal to a preset ratio threshold.
[0047] For example, the ratio of the number of target TS stream slices to the number of TS stream slices in the first TS stream slice file is calculated to obtain a first ratio; or the ratio of the number of target TS stream slices to the number of TS stream slices in the second TS stream slice file is calculated to obtain a first ratio.
[0048] Similarly, the second ratio is obtained by calculating the ratio of the duration of the target TS stream slice to the duration of the TS stream slice in the first TS stream slice file; or the second ratio is obtained by calculating the ratio of the duration of the target TS stream slice to the duration of the TS stream slice in the second TS stream slice file.
[0049] Understandably, when the first ratio and / or the second ratio are greater than or equal to the preset ratio threshold, it can be determined that the effective ratio of the target TS stream slice meets the preset conditions, that is, the target TS stream slice can be used to stitch together to obtain the target video, and the obtained target video is considered valid.
[0050] The preset ratio threshold can be 95%, that is, when the first ratio and / or the second ratio corresponding to the target TS stream slice is greater than 95%, the target TS stream slice is spliced to obtain the target video.
[0051] The validity of the generated target video can be ensured by calculating the effective ratio corresponding to the TS stream slice set.
[0052] Step S105: Perform speech-to-text conversion on the target video to obtain the target text corresponding to the target video.
[0053] For example, speech-to-text conversion of a target video may include speech recognition of the target video to obtain audio, and then text conversion of the audio to obtain the corresponding target text. It is understood that there may be other processes for speech-to-text conversion of the target video, such as processing through a deep learning model to obtain the corresponding target text, which is not limited in this application.
[0054] Step S106: When the target text contains the target keyword, broadcast the target video corresponding to the target text and the video stream information corresponding to the target video to the preset blockchain.
[0055] For example, when it is determined that the target text includes target keywords, the target video corresponding to the target text and the video stream information corresponding to the target video can be broadcast to a preset blockchain. It can be understood that the preset blockchain can be a consortium blockchain, such as a blockchain corresponding to a consortium composed of an operating service provider, a judicial appraisal center and a notary office.
[0056] For example, regular expressions can be used to determine whether the target text contains target keywords, where target keywords are used to indicate prohibited words, such as words that induce the purchase of goods, words that exaggerate advertising claims, or words that contain inappropriate remarks by live streamers.
[0057] For example, when it is determined that the target text contains the target keywords, the target video, along with its corresponding video stream information (such as the live stream address, recording start time, and recording end time), can be broadcast to the blockchain for storage. This ensures the security of the target video and its corresponding video stream information.
[0058] In some embodiments, broadcasting the target video corresponding to the target text containing the target keyword, and the video stream information corresponding to the target video, to a preset blockchain includes: calculating a third hash value of the target video corresponding to the target text containing the target keyword, and determining whether the target video is valid based on the third hash value; when the target video is valid, broadcasting the target video and the food tracking information corresponding to the target video to the preset blockchain.
[0059] For example, a hash value is calculated on the target video to obtain a third hash value, and the third hash value is used as the data fingerprint of the target video. Before storing it in the blockchain, the correctness and validity of the target video are determined based on the data fingerprint. When the target video is determined to be correct and valid, the target video and its corresponding video stream information are stored in the blockchain.
[0060] In some embodiments, determining whether a target video is valid based on a third hash value includes: obtaining consensus information from several terminals; and determining that the target video is valid when the consensus information is the same as the third hash value.
[0061] For example, consensus information from several terminals is used to instruct consensus information from each consortium member in the blockchain. Specifically, the consensus nodes of each consortium member in the blockchain are obtained, and the consensus nodes of each consortium member confirm the correctness and validity of the third hash value of the target video. When the comparison results of the third hash value by the consensus nodes of each consortium member are consistent, the data fingerprint of the target video is determined to be correct and valid. For example, when the comparison result of the third hash value by the blockchain consensus node of the judicial appraisal center is consistent with the comparison result of the third hash value by the blockchain consensus node of the operating service provider, the data fingerprint of the target video is determined to be correct and valid. After the data fingerprint is determined to be correct and valid, the target video and the corresponding video stream information are stored in the blockchain.
[0062] For example, the third hash value of the target video and the video stream information can be broadcast to the blockchain as evidence preservation events through the on-chain evidence preservation interface provided by the member nodes of the operation service provider, such as the SDK interface or API interface. After the alliance members, such as judicial appraisal centers, notary offices and operation service providers, reach a consensus on the evidence preservation through a consensus mechanism, such as the Byzantine algorithm or RAFT algorithm, the third hash value of the target video, the target video and its corresponding video stream information are stored in the blockchain. After the above information is stored in the blockchain as evidence, the evidence can be traced and prevented from being tampered with, thereby improving the security and reliability of the evidence.
[0063] In some embodiments, the method further includes: obtaining an evidence viewing request from the terminal; based on the evidence viewing request, obtaining the corresponding target video and the video stream information corresponding to the target video in the blockchain, and sending them to the viewing node corresponding to the terminal in the blockchain, so that the terminal can view the target video and the corresponding video stream information on the corresponding viewing node.
[0064] For example, a terminal can be used to instruct the terminal or server corresponding to a member of the blockchain consortium to determine the corresponding storage address in the blockchain after receiving an evidence viewing request, and send the target video and corresponding food information to the viewing node corresponding to the terminal in the blockchain, so that the terminal can view the target video and corresponding video stream information.
[0065] Understandably, after evidence is stored on the blockchain, blockchain consortium members can access the evidence stored on the blockchain through nodes and data interfaces in the blockchain, thereby enabling them to further analyze the evidence and output the corresponding information of each consortium member.
[0066] For example, each alliance member in the blockchain obtains evidence storage information through their respective view nodes in the blockchain. Specifically, they obtain the evidence stored in the blockchain through the SDK or API interface of the view node and output the corresponding information.
[0067] For example, judicial appraisal centers can access evidence stored in the blockchain through the SDK or API interface of their viewing nodes and output judicial appraisal reports; notary offices can access evidence stored in the blockchain through the SDK or API interface of their viewing nodes and output notarized certificates. In this way, they can jointly access evidence in the blockchain, ensuring the reliability of the data obtained and improving the efficiency of judicial trials.
[0068] The method for securing evidence of live video provided in the above embodiments involves: acquiring video stream information of the live video; collecting multiple TS stream slices corresponding to the live video based on the video stream information to obtain a first TS stream slice file and a second TS stream slice file, wherein the first TS stream slice file and the second TS stream slice file are stored in different locations; determining a TS stream slice set based on the first TS stream slice file and the second TS stream slice file; determining a target video based on the TS stream slices in the TS stream slice set; performing speech-to-text conversion on the target video to obtain target text corresponding to the target video; and broadcasting the target video corresponding to the target text and the video stream information corresponding to the target video to a preset blockchain when the target text contains target keywords. This eliminates the need for manual monitoring of the live video, reducing labor costs. Furthermore, by determining the target video and storing the target video containing the target keywords as evidence in the blockchain, the consistency of TS stream files obtained from different servers and / or different storage addresses can be guaranteed, and the reliability and security of storing the target video as evidence can be improved.
[0069] Please see Figure 3 , Figure 3 This is a schematic block diagram illustrating the structure of a computer device provided in an embodiment of this application. The computer device may be a server or a terminal.
[0070] like Figure 3 As shown, the computer device includes a processor, a memory, and a network interface connected via a system bus, wherein the memory may include a storage medium and internal memory.
[0071] The storage medium may store an operating system and a computer program. The computer program includes program instructions that, when executed, cause the processor to perform any method of securing live video.
[0072] The processor provides computing and control capabilities, supporting the operation of the entire computer device.
[0073] Internal memory provides an environment for the execution of computer programs stored in storage media. When these computer programs are executed by a processor, the processor can execute any method of securing live video.
[0074] This network interface is used for network communication, such as sending assigned tasks. Those skilled in the art will understand that... Figure 3 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0075] It should be understood that the processor can be a Central Processing Unit (CPU), but it can also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among these, a general-purpose processor can be a microprocessor or any conventional processor.
[0076] In one embodiment, the processor is configured to run a computer program stored in memory to perform the following steps:
[0077] Obtain video stream information from the live stream;
[0078] Based on the video stream information, multiple TS stream slices corresponding to the live video are collected to obtain a first TS stream slice file and a second TS stream slice file, wherein the first TS stream slice file and the second TS stream slice file are stored in different locations;
[0079] Determine the TS stream slice set based on the first TS stream slice file and the second TS stream slice file;
[0080] The target video is determined based on the TS stream slices in the TS stream slice set;
[0081] The target video is converted from speech to text to obtain the target text corresponding to the target video;
[0082] When the target text contains target keywords, the target video corresponding to the target text and the video stream information corresponding to the target video are broadcast to a preset blockchain.
[0083] In one embodiment, when the processor determines the TS stream slice set based on the first TS stream slice file and the second TS stream slice file, it is configured to:
[0084] Calculate the first hash value of each TS stream slice in the first TS stream slice file, and calculate the second hash value of each TS stream slice in the second TS stream slice file;
[0085] The TS stream slice set is determined based on the first hash value and the second hash value.
[0086] In one embodiment, when the processor determines the TS stream slice set based on the first hash value and the second hash value, it is configured to:
[0087] The TS stream slice with the same first hash value and the same second hash value is taken as the target TS stream slice, and the set of the target TS stream slices is taken as the TS stream slice set.
[0088] In one embodiment, when the processor determines the target video based on the target TS stream slices in the TS stream slice set, it is configured to:
[0089] Determine the number of target TS stream slices in the TS stream slice set and / or the duration of each target TS stream slice;
[0090] The effective ratio of the target TS stream slices is determined based on the number of target TS stream slices and / or the duration of each target TS stream slice;
[0091] If the effective ratio meets the preset conditions, the target TS stream slices are spliced together to obtain the target video.
[0092] In one embodiment, the processor, when implementing the determination of the effective ratio of the target TS stream slices based on the number of target TS stream slices and / or the duration of each target TS stream slice, is configured to:
[0093] A first ratio is determined based on the number of target TS stream slices and the number of TS stream slices in the first TS stream slice file or the second TS stream slice file.
[0094] A second ratio is determined based on the duration of the target TS stream slice and the duration of the TS stream slice in the first TS stream slice file or the second TS stream slice file;
[0095] When the processor determines that the effective ratio meets the preset conditions, it is used to:
[0096] When the first ratio and / or the second ratio are greater than or equal to a preset ratio threshold, the effective ratio is determined to meet the preset conditions.
[0097] In one embodiment, when the processor broadcasts the target video corresponding to the target text containing the target keyword, and the video stream information corresponding to the target video, to a preset blockchain, it is configured to:
[0098] Calculate the third hash value of the target video corresponding to the target text containing the target keyword;
[0099] The validity of the target video is determined based on the third hash value.
[0100] When the target video is valid, the target video and the corresponding video stream information are broadcast to a preset blockchain.
[0101] In one embodiment, when the processor determines whether the target video is valid based on the third hash value, it is configured to:
[0102] Obtain consensus information from several terminals;
[0103] When the consensus information is the same as the third hash value, the target video is determined to be valid.
[0104] In one embodiment, when implementing the method for securing live video, the processor is configured to:
[0105] Obtain evidence viewing request from the terminal;
[0106] Based on the evidence viewing request, the corresponding target video and the corresponding video stream information are obtained from the blockchain and sent to the viewing node corresponding to the terminal in the blockchain, so that the terminal can view the target video and the corresponding video stream information on the corresponding viewing node.
[0107] It should be noted that those skilled in the art will understand that, for the sake of convenience and brevity, the specific working process of securing live video described above can be referred to the corresponding process in the aforementioned embodiments of the live video securing control method, and will not be repeated here.
[0108] This application also provides a computer-readable storage medium storing a computer program, the computer program including program instructions, and the method implemented when the program instructions are executed can refer to various embodiments of the live video consolidation method of this application.
[0109] The computer-readable storage medium may be an internal storage unit of the computer device described in the foregoing embodiments, such as the hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, SmartMedia Card (SMC), Secure Digital (SD) card, or Flash Card equipped on the computer device.
[0110] It should be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the scope of the application. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.
[0111] It should also be understood that the term "and / or" as used in this specification and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes such combinations. It should be noted that, herein, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.
[0112] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments. The above descriptions are merely specific implementations of this application, but the scope of protection of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method for securing evidence of live video, characterized in that, include: Obtain video stream information from the live stream; Based on the video stream information, multiple TS stream slices corresponding to the live video are collected to obtain a first TS stream slice file and a second TS stream slice file, wherein the first TS stream slice file and the second TS stream slice file are stored in different locations; Calculate the first hash value of each TS stream slice in the first TS stream slice file, and calculate the second hash value of each TS stream slice in the second TS stream slice file; The TS stream slice set is determined based on the first hash value and the second hash value; the target video is determined based on the TS stream slices in the TS stream slice set. The target video is converted from speech to text to obtain the target text corresponding to the target video; When the target text contains target keywords, the target video corresponding to the target text and the video stream information corresponding to the target video are broadcast to a preset blockchain; The step of determining the TS stream slice set based on the first hash value and the second hash value includes: The TS stream slice with the same first hash value and the same second hash value is taken as the target TS stream slice, and the set of the target TS stream slices is taken as the TS stream slice set.
2. The method for securing evidence of live video as described in claim 1, characterized in that, The step of determining the target video based on the TS stream slices in the TS stream slice set includes: Determine the number of target TS stream slices in the TS stream slice set and / or the duration of each target TS stream slice; The effective ratio of the target TS stream slices is determined based on the number of target TS stream slices and / or the duration of each target TS stream slice; If the effective ratio meets the preset conditions, the target TS stream slices are spliced together to obtain the target video.
3. The method for securing evidence of live video as described in claim 2, characterized in that, The step of determining the effective ratio of the target TS stream slices based on the number of target TS stream slices and / or the duration of each target TS stream slice includes: A first ratio is determined based on the number of target TS stream slices and the number of TS stream slices in the first TS stream slice file or the second TS stream slice file. A second ratio is determined based on the duration of the target TS stream slice and the duration of the TS stream slice in the first TS stream slice file or the second TS stream slice file; The effective ratio meets preset conditions, including: The first ratio and / or the second ratio is greater than or equal to a preset ratio threshold.
4. The method for securing evidence of live video as described in claim 1, characterized in that, Broadcasting the target video corresponding to the target text containing the target keyword, and the video stream information corresponding to the target video, to a preset blockchain includes: Calculate the third hash value of the target video corresponding to the target text containing the target keyword; The validity of the target video is determined based on the third hash value. When the target video is valid, the target video and the corresponding video stream information are broadcast to a preset blockchain.
5. The method for securing evidence of live video as described in claim 4, characterized in that, The step of determining whether the target video is valid based on the third hash value includes: Obtain consensus information from several terminals; When the consensus information is the same as the third hash value, the target video is determined to be valid.
6. The method for securing evidence of live video as described in claim 4, characterized in that, The method further includes: Obtain evidence viewing request from the terminal; Based on the evidence viewing request, the corresponding target video and the corresponding video stream information are obtained from the blockchain and sent to the viewing node corresponding to the terminal in the blockchain, so that the terminal can view the target video and the corresponding video stream information on the corresponding viewing node.
7. A computer device, characterized in that, The computer device includes a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, it implements the steps of the method for securing live video as claimed in any one of claims 1 to 6.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, it implements the steps of the method for securing live video as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Big data disperse uplink method and system
CN112767110A
Data processing method and device, computer readable medium and electronic equipment
CN113342774A