Video continuity detection method and storage medium

By using various analytical methods to detect the continuity of video data in video cloud storage, the accuracy of video data detection in cloud storage is solved, and the accuracy and stability of detection are improved.

CN119011816BActive Publication Date: 2025-01-03ZHEJIANG DAHUA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411481330.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-23
Publication Date
2025-01-03
Estimated Expiration
2044-10-23

AI Technical Summary

Technical Problem

In video cloud storage application scenarios, the continuity detection method of video data is relatively limited, and it is easily affected by network jitter, switch failure and cloud platform instability, resulting in breakpoints in stored video data and lack of efficient and accurate detection methods.

Method used

Provide a video continuity detection method, by obtaining the time information of the video to be detected, using a variety of preset analysis methods such as time difference analysis method, video time interval intersection method, video time point number method and video time analysis method to judge the video data Whether the interval is continuous, and the target analysis results are determined based on the initial analysis results to improve the accuracy of the detection.

Benefits of technology

It significantly improves the accuracy of video continuity detection, and can accurately judge the continuity between videos to be detected when receiving the video continuity detection instruction, reducing breakpoint misjudgment caused by network and platform problems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119011816B_ABST
    Figure CN119011816B_ABST
Patent Text Reader

Abstract

The present application discloses a video continuity detection method and a storage medium, the video continuity detection method comprising: in response to a received video continuity detection instruction, obtaining a first video to be detected and a second video to be detected, the video end time point of the first video to be detected being earlier than the video end time point of the second video to be detected; performing video continuity analysis on the first video to be detected and the second video to be detected in at least one preset analysis method according to the time information of the video to be detected, and obtaining at least one initial analysis result characterizing whether the first video to be detected and the second video to be detected are continuous; determining a target analysis result between the first video to be detected and the second video to be detected according to at least one initial analysis result. The above scheme can accurately detect whether each video is continuous.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of video detection technology, and in particular to a video continuity detection method and a storage medium. Background Art

[0002] In recent years, with the widespread application and vigorous development of video cloud storage technology, users' perception and experience of video data not only needs to meet the storage space requirements, but also puts forward higher requirements on the storage quality of video data. The continuity of video data is a key link in the storage quality of video data.

[0003] In the application scenario of video cloud storage, the distributed storage system is easily affected by the network when acquiring the video recordings of the front-end equipment. Network jitter, switch failure, etc. will affect the continuity of video data storage. In addition, the instability of various services on the cloud platform will also cause breakpoints in the stored video data.

[0004] Currently, there are relatively few methods for analyzing the continuity of video data, and usually the front-end device detects whether there are breakpoints in the video data. Therefore, an efficient and accurate detection method is urgently needed to analyze whether the video data is continuous. Summary of the invention

[0005] The present application at least provides a video continuity detection method, apparatus, device and computer-readable storage medium.

[0006] The first aspect of the present application provides a video continuity detection method, comprising: in response to a received video continuity detection instruction, obtaining a first video to be detected and a second video to be detected, wherein a video end time point of the first video to be detected is earlier than a video end time point of the second video to be detected; performing video continuity analysis on the first video to be detected and the second video to be detected in at least one preset analysis method according to time information of the videos to be detected, and obtaining at least one initial analysis result characterizing whether the first video to be detected and the second video to be detected are continuous; and determining a target analysis result between the first video to be detected and the second video to be detected according to the at least one initial analysis result.

[0007] In one embodiment, the at least one preset analysis method includes one or more of the following:

[0008] Time difference analysis method; wherein, the time difference analysis method includes: judging whether the first video to be detected and the second video to be detected are continuous according to the time difference between the video time point of the first video to be detected and the video time point of the second video to be detected; video time period intersection method; wherein, the video time period intersection method includes: judging whether the first video to be detected and the second video to be detected are continuous according to the time period intersection between the first video period of the first video to be detected and the second video period of the second video to be detected; video time point quantity method; wherein, the video time point quantity method includes: judging whether the first video to be detected and the second video to be detected are continuous according to the number of video time points that are not successfully matched between the first video to be detected and the second video to be detected; video duration analysis method; wherein, the video duration analysis method includes: judging whether the first video to be detected and the second video to be detected are continuous according to the matching result between the expected duration and the actual duration of the first video to be detected and the second video to be detected.

[0009] In one embodiment, the step of judging whether the first video to be detected and the second video to be detected are continuous based on the time difference between the video time point of the first video to be detected and the video time point of the second video to be detected includes: in response to the time difference being less than or equal to a preset time difference threshold, judging that the first video to be detected and the second video to be detected are continuous, and obtaining the initial analysis result; in response to the time difference being greater than the preset time difference threshold, judging that the first video to be detected and the second video to be detected are discontinuous, and obtaining the initial analysis result.

[0010] In one embodiment, the video time points include video start time points and video end time points. Before the step of judging whether the first video to be detected and the second video to be detected are continuous based on the time difference between the video time points of the first video to be detected and the video time points of the second video to be detected, the method further includes: determining the time difference based on the video end time point of the first video to be detected and the video start time point of the second video to be detected; and / or determining the time difference based on the video start time point of the first video to be detected and the video start time point of the second video to be detected; and / or determining the time difference based on the video end time point of the first video to be detected and the video end time point of the second video to be detected; and / or determining the time difference based on the video start time point of the first video to be detected and the video end time point of the second video to be detected; and / or determining the time difference based on the video start time point of the first video to be detected and the video end time point of the second video to be detected.

[0011] In one embodiment, the step of judging whether the first video to be detected and the second video to be detected are continuous based on the time period intersection between the first video time period of the first video to be detected and the second video time period of the second video to be detected comprises: determining the first video time period of the first video to be detected based on the video start time point and the video end time point of the first video to be detected, and determining the second video time period of the second video to be detected based on the video start time point and the video end time point of the second video to be detected; in response to the existence of an intersection between the first video time period and the second video time period, judging that the first video to be detected and the second video to be detected are continuous, and obtaining the initial analysis result; in response to the absence of an intersection between the first video time period and the second video time period, judging that the first video to be detected and the second video to be detected are discontinuous, and obtaining the initial analysis result.

[0012] In one embodiment, after the step of determining that the first video to be detected and the second video to be detected are continuous and obtaining the initial analysis result in response to the existence of an intersection between the first video time period and the second video time period, the method further includes: determining a continuous status flag of the second video to be detected based on the initial analysis result; storing the video start time point, the video end time point and the continuous status flag corresponding to the second video to be detected in an index file, and the validity period of the index file matches the validity period of the second video to be detected; after the step of storing the video start time point, the video end time point and the continuous status flag corresponding to the second video to be detected in the index file, the method further includes: in response to the received video time point to be queried, searching for the corresponding continuous status flag in the index file according to the video time point to be queried; or, in response to the received status to be queried, searching for the corresponding video start time point and / or video end time point in the index file according to the status to be queried.

[0013] In one embodiment, the step of judging whether the first video to be detected and the second video to be detected are continuous based on the number of video time points that have not been successfully matched between the first video to be detected and the second video to be detected includes: matching the video start time point and the video end time point of the first video to be detected with the video start time point and the video end time point of the second video to be detected to obtain a single time point that has not been successfully matched; in response to the number of the single time points matching a preset number, judging whether the number of video start time points and the number of video end time points of each video to be detected are the same; if they are the same, judging that the first video to be detected and the second video to be detected are continuous to obtain the initial analysis result.

[0014] In one embodiment, the step of judging whether the first video to be detected and the second video to be detected are continuous based on the matching result between the expected duration and the actual duration of the first video to be detected and the second video to be detected comprises: determining the expected duration between the first video to be detected and the second video to be detected based on the video start time point of the first video to be detected and the video end time point of the second video to be detected; determining the actual duration of the first video to be detected and the second video to be detected based on the video duration of the first video to be detected and the video duration of the second video to be detected; and determining that the first video to be detected and the second video to be detected are continuous in response to the match between the expected duration and the actual duration, thereby obtaining the initial analysis result.

[0015] In one embodiment, the initial analysis result includes an initial continuous result and / or an initial discontinuous result, and the step of determining the target analysis result between the first video to be detected and the second video to be detected based on at least one initial analysis result includes: comparing the proportion of the initial continuous result in the initial analysis result with a continuous ratio threshold to obtain the target analysis result; or comparing the proportion of the initial discontinuous result in the initial analysis result with a discontinuous ratio threshold to obtain the target analysis result.

[0016] The second aspect of the present application provides a video continuity detection device, including: a video acquisition module, used to respond to a received video continuity detection instruction to acquire a first video to be detected and a second video to be detected, wherein the video end time point of the first video to be detected is earlier than the video end time point of the second video to be detected; an analysis module, used to perform video continuity analysis on the first video to be detected and the second video to be detected in at least one preset analysis method according to the time information of the video to be detected, and obtain at least one initial analysis result characterizing whether the first video to be detected and the second video to be detected are continuous; a determination module, used to determine the target analysis result between the first video to be detected and the second video to be detected according to the at least one initial analysis result.

[0017] A third aspect of the present application provides an electronic device, including a memory and a processor, wherein the processor is used to execute program instructions stored in the memory to implement the above-mentioned video continuity detection method.

[0018] A fourth aspect of the present application provides a computer-readable storage medium having program instructions stored thereon, which implement the above-mentioned video continuity detection method when the program instructions are executed by a processor.

[0019] The above scheme, when receiving a video continuity detection instruction, obtains the first video to be detected and the second video to be detected corresponding to the video continuity detection instruction to analyze the continuity of the first video to be detected and the second video to be detected. According to the time information of the video to be detected, the first video to be detected and the second video to be detected are analyzed for video continuity in at least one preset analysis method to obtain at least one initial analysis result characterizing whether the first video to be detected and the second video to be detected are continuous. According to the at least one initial analysis result, the target analysis result between the first video to be detected and the second video to be detected is determined. The target analysis result is used to finally determine whether the first video to be detected and the second video to be detected are continuous, which significantly improves the accuracy of the video continuity detection process compared to the single judgment process in the traditional method.

[0020] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.

[0022] Figure 1 It is a simplified schematic diagram of the system architecture of video cloud storage in the video continuity detection method of the present application;

[0023] Figure 2 is a flowchart of an exemplary embodiment of the video continuity detection method of the present application;

[0024] Figure 3 It is a flow chart of continuity detection according to a video analysis tool in the video continuity detection method of the present application;

[0025] Figure 4 It is a simplified schematic diagram of the index file data format in the video continuity detection method of the present application;

[0026] Figure 5 It is a schematic diagram of a flow chart of performing continuity detection according to the number of video time points in the video continuity detection method of the present application;

[0027] Figure 6 It is a schematic diagram of the process of determining the continuity of a video according to the video file name in this application;

[0028] Figure 7 is a block diagram of a video continuity detection device shown in an exemplary embodiment of the present application;

[0029] Figure 8 It is a structural schematic diagram of an embodiment of the electronic device of the present application;

[0030] Fig. 9 It is a structural diagram of an embodiment of a computer-readable storage medium of the present application. DETAILED DESCRIPTION

[0031] The scheme of the embodiment of the present application is described in detail below in conjunction with the drawings of the specification.

[0032] In the following description, for the purpose of explanation rather than limitation, specific details such as specific system structures, interfaces, and technologies are provided to facilitate a thorough understanding of the present application.

[0033] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the objects associated before and after are in an "or" relationship. In addition, "many" in this article means two or more than two. In addition, the term "at least one" in this article means any combination of at least two of any one or more of a plurality of, for example, including at least one of A, B, and C, can mean including any one or more elements selected from the set consisting of A, B, and C.

[0034] For ease of understanding, one of the applicable scenarios of this application is now exemplified. In the application scenario of video cloud storage, a common method is to use a distributed storage system to store video files obtained from a front-end recording device. However, during the recording process of the front-end device, device factors, network factors, and server factors may cause breakpoints in the recording data, affecting the integrity of the recording data storage, making the multiple video files stored discontinuous.

[0035] Currently, there is relatively little research on analysis methods for video continuity. Most of the research is done by querying and sensing whether video files are continuous from the recording client (such as client APP, etc.). When the length of the video files to be analyzed and counted becomes longer, it is very easy to affect the accuracy of the judgment process.

[0036] Therefore, the present application provides a video continuity detection method based on multi-dimensional statistical analysis, which supports the scenario where any third-party streaming media service is connected to video cloud storage.

[0037] For example, see Figure 1 , Figure 1It is a simplified schematic diagram of the system architecture of the video cloud storage in the video continuity detection method of the present application. Among them, the streaming media service in each storage server (storage node) can write the video recording data captured by the front-end camera (front-end device, such as IPC device) into the storage node by calling the software development kit (Software Development Kit, SDK) provided by the video cloud storage. At the same time, the database (such as MySQL database) of the metadata server (metadata node) of the video cloud storage system will also record the file name of the video data written in each storage node in real time to facilitate the query of the video data. It should be noted that this application Figure 1 The setting methods of IPC devices, storage nodes, and metadata nodes shown in the are only examples and do not specifically limit the corresponding relationship between devices and nodes. The method of the present application can quickly statistically analyze the continuity of the video based on the video file name stored in the cloud storage system, the log when the video data is written to the cloud storage by calling the SDK of the streaming media service, the video status flag, etc., and it is not necessary to rely on the platform client to play the video playback to determine whether the video is continuous and complete.

[0038] See also Figure 2 , Figure 2 FIG. 1 is a flow chart of an exemplary embodiment of the video continuity detection method of the present application. Specifically, the following steps may be included:

[0039] Step S110, in response to the received video continuity detection instruction, a first video to be detected and a second video to be detected are obtained, and the video end time point of the first video to be detected is earlier than the video end time point of the second video to be detected.

[0040] Among them, the video continuity detection instruction (hereinafter referred to as the detection instruction) is used to perform video continuity detection. The instruction may be received from the user, or may be automatically generated by the cloud storage system regularly or irregularly, which is not limited here. According to the detection instruction, the video to be detected can be determined, which is equivalent to determining the first video to be detected and the second video to be detected. The video end time point of the first video to be detected may be earlier than the video end time point of the second video to be detected, which is equivalent to the recording process of the first video to be detected ending earlier than the recording process of the second video to be detected, which is also equivalent to the timing of the first video to be detected being before the second video to be detected. In other implementation processes, the video end time point of the first video to be detected may be later than or equal to the video end time point of the second video to be detected, which is not limited here.

[0041] Exemplarily, the detection instruction may include a time period to be detected, and the video to be detected in the time period to be detected is determined according to the time period to be detected, so as to obtain a first video to be detected and a second video to be detected; and / or, the detection instruction may include a file identifier to be detected (such as a file name, a file number, etc.), and the corresponding video to be detected is determined according to the file identifier to be detected, so as to obtain a first video to be detected and a second video to be detected. The specific method of determining the video to be detected according to the detection instruction is not limited in this application.

[0042] It should be noted that the present application's method for determining continuity between video files should be performed on at least two videos to be detected. If there is only one video to be detected in the cloud storage system, it can be directly determined that the video to be detected is continuous and complete. Therefore, for ease of explanation, the present application mainly uses the analysis of the continuity between the first video to be detected and the second video to be detected as an example for explanation, but in fact the video continuity detection method of the present application can be applied to multiple videos to be detected, and continuity analysis is performed between every two videos to be detected (for example, it can also include a third video to be detected, a fourth video to be detected, and a fifth video to be detected, etc., which will not be elaborated here).

[0043] Step S120, performing video continuity analysis on the first video to be detected and the second video to be detected in at least one preset analysis method according to the time information of the video to be detected, and obtaining at least one initial analysis result indicating whether the first video to be detected and the second video to be detected are continuous.

[0044] The time information of the video to be detected may include time point information and time period information. The time point information may include the video start time point when the video to be detected starts recording and / or the video end time point when the video to be detected ends recording, etc.; the time period information may include the video duration of the video to be detected and / or the recording time period (video time period) of the video to be detected, etc., without specific limitation.

[0045] The preset analysis method of the present application may be one or more, including but not limited to performing continuity analysis based on the time point information and / or time period information of the video to be detected. Thus, an initial analysis result is obtained to characterize whether the first video to be detected and the second video to be detected are continuous. Among them, there may be one or more initial analysis results, which are not limited here, depending on the time information and analysis method involved in the continuity analysis.

[0046] For example, there may be only one initial analysis result, which indicates whether the first video to be detected and the second video to be detected are continuous or discontinuous (discontinuous). There may also be multiple initial analysis results, some of which may indicate whether the first video to be detected and the second video to be detected are continuous, and other initial analysis results may indicate whether the first video to be detected and the second video to be detected are discontinuous. Alternatively, multiple initial analysis results may indicate whether the first video to be detected and the second video to be detected are continuous or discontinuous, which is not limited here.

[0047] Step S130: determining a target analysis result between the first video to be detected and the second video to be detected according to at least one initial analysis result.

[0048] It should be noted that although the initial analysis result of the present application characterizes whether the videos to be detected are continuous to a certain extent, the final determination of whether the videos to be detected are continuous depends on the target analysis result.

[0049] In combination with the above steps, an exemplary description is given. For at least one initial analysis result obtained in the above steps, if there is only one initial analysis result, the target analysis result can be directly determined based on the video continuity (continuous or discontinuous) represented by the initial analysis result. If there are multiple initial analysis results, and the video continuity represented by all the initial analysis results is consistent, the target analysis result can also be directly determined based on the video continuity represented by the initial analysis results. If there are multiple initial analysis results, and some of the multiple initial analysis results have inconsistent video continuity, it is necessary to make a comprehensive judgment on the multiple initial analysis results, determine the target analysis result between the videos to be detected based on all or part of the multiple initial analysis results (equivalent to obtaining the target analysis result between the first video to be detected and the second video to be detected), and use the target analysis result to represent the video continuity between the videos to be detected.

[0050] It can be seen that when the present application receives a video continuity detection instruction, the first video to be detected and the second video to be detected corresponding to the video continuity detection instruction are obtained to analyze the continuity of the first video to be detected and the second video to be detected. Video continuity analysis is performed on the first video to be detected and the second video to be detected in at least one preset analysis method according to the time information of the video to be detected, and at least one initial analysis result is obtained to characterize whether the first video to be detected and the second video to be detected are continuous. The target analysis result between the first video to be detected and the second video to be detected is determined according to the at least one initial analysis result. The target analysis result is used to finally determine whether the first video to be detected and the second video to be detected are continuous, which significantly improves the accuracy of the video continuity detection process compared to the single judgment process in the traditional method.

[0051] Based on the above embodiments, the embodiments of the present application illustrate one or more preset analysis methods that can be used in the present application. Among them, the preset analysis methods of the present application may include one or more of the following:

[0052] 1. Time difference analysis method; wherein, the time difference analysis method includes: judging whether the first video to be detected and the second video to be detected are continuous according to the time difference between the video time point of the first video to be detected and the video time point of the second video to be detected.

[0053] 2. Video time period intersection method; wherein, the video time period intersection method includes: judging whether the first video to be detected and the second video to be detected are continuous according to the time period intersection between the first video time period of the first video to be detected and the second video time period of the second video to be detected.

[0054] 3. Video time point quantity method; wherein, the video time point quantity method includes: judging whether the first video to be detected and the second video to be detected are continuous according to the number of video time points that are not successfully matched between the first video to be detected and the second video to be detected.

[0055] 4. Video duration analysis method; wherein, the video duration analysis method includes: judging whether the first video to be detected and the second video to be detected are continuous based on the matching result between the expected duration and the actual duration of the first video to be detected and the second video to be detected.

[0056] It should be noted that, in the specific implementation of this application, the number of applications of the preset analysis method is not limited, and continuous analysis can be performed according to one or more preset analysis methods to obtain one or more initial analysis results. In addition, the preset analysis method of this application can be adaptively adjusted according to the actual application scenario, which will not be elaborated here.

[0057] The following are examples of various preset analysis methods.

[0058] Based on the above embodiment, the embodiment of the present application describes the step of determining whether the first video to be detected and the second video to be detected are continuous based on the time difference between the video time point of the first video to be detected and the video time point of the second video to be detected. Specifically, the method of this embodiment includes the following steps:

[0059] In response to the time difference being less than or equal to a preset time difference threshold, it is determined that the first video to be detected and the second video to be detected are continuous, and an initial analysis result is obtained; in response to the time difference being greater than the preset time difference threshold, it is determined that the first video to be detected and the second video to be detected are discontinuous, and an initial analysis result is obtained.

[0060] In conjunction with the above-mentioned embodiments, the time information of this embodiment may refer to the time point information of the video to be detected (video time point). The method of obtaining the time information in this application may include but is not limited to obtaining it according to the file name of the video file (for example, during the video recording process, the file name is generated according to its recording time), or obtaining it according to the relevant log file generated during the video recording process (for example, during the video data recording process, a log file will be generated according to the relevant data of the video data), or directly looking up the time information corresponding to the video to be detected (for example, during the video data recording process, its time information is recorded and stored accordingly).

[0061] The initial analysis result of this embodiment may include an initial continuous result for characterizing the continuity between the videos to be detected, and / or an initial discontinuous result for characterizing the discontinuity between the videos to be detected.

[0062] Specifically, the preset analysis method of this embodiment is mainly to calculate the time difference (time difference information) between the first video to be detected and the second video to be detected, and compare the time difference with the preset time difference threshold, and judge the continuity between the first video to be detected and the second video to be detected according to the comparison result between the time difference and the preset time difference threshold, thereby obtaining the initial analysis result corresponding to the preset analysis method. Among them, the preset time difference threshold refers to the preset value set before the time difference and the time difference threshold are formally compared, and it does not limit whether its value is fixed or flexibly adjustable.

[0063] It should be noted that in the detection method of the present application, there may be one or more methods for determining the time difference, and therefore, there may also be one or more preset time difference thresholds for measuring the continuity between the videos to be detected, which will not be elaborated here.

[0064] It is understandable that if the time difference information between the two videos to be detected is too long, it is highly likely that the two videos to be detected are discontinuous, and an initial discontinuous result is obtained. Therefore, in this embodiment, the time difference between the two videos to be detected can be compared with the preset time difference threshold. If the time difference is less than or equal to the preset time difference threshold, it can be preliminarily determined that the first video to be detected and the second video to be detected are continuous, and an initial continuous result is obtained; if the time difference is greater than the preset time difference threshold, it can be preliminarily determined that the first video to be detected and the second video to be detected are discontinuous (intermittent), and an initial discontinuous result is obtained.

[0065] Based on the above embodiment, the embodiment of the present application describes the steps before judging whether the first video to be detected and the second video to be detected are continuous according to the time difference between the video time point of the first video to be detected and the video time point of the second video to be detected. The video time point includes the video start time point and the video end time point. Specifically, the method of this embodiment includes the following steps:

[0066] The time difference is determined based on the video end time point of the first video to be detected and the video start time point of the second video to be detected; and / or, the time difference is determined based on the video start time point of the first video to be detected and the video start time point of the second video to be detected; and / or, the time difference is determined based on the video end time point of the first video to be detected and the video end time point of the second video to be detected; and / or, the time difference is determined based on the video start time point of the first video to be detected and the video end time point of the second video to be detected.

[0067] In conjunction with the above-mentioned embodiments, in the detection method of the present application, there may be multiple methods for calculating the time difference between two videos to be detected. In the specific implementation process of the method of the present application, all or part of the methods may be selected for implementation, and the time difference determined by different methods needs to be compared with the preset time difference threshold corresponding to the method (the preset duration threshold corresponding to different methods may be different), and then the initial analysis result corresponding to each method is obtained.

[0068] Exemplarily, there may be multiple implementable methods in this embodiment, and each implementable method will respectively determine its corresponding time difference, and determine its initial analysis result according to the preset time threshold corresponding to each implementable method.

[0069] The first possible implementation method may be to determine the first time difference based on the video end time point of the first video to be detected and the video start time point of the second video to be detected. The first time difference is equivalent to representing the time interval between the two videos to be detected, that is, the longer the first time difference is, the discontinuity between the two videos to be detected is represented. Among them, the preset time threshold (first time threshold) corresponding to the first possible implementation method can be set to a value greater than or equal to 0. Preferably, the preset time threshold can be set to 0, that is, when the time interval between the two videos to be detected is greater than the preset time threshold (>0), it represents the discontinuity between the two videos to be detected, and an initial discontinuity result is obtained.

[0070] The second possible implementation method may be to determine the second time difference based on the video start time point of the first video to be detected and the video start time point of the second video to be detected. The preset time threshold (second time threshold) corresponding to the second possible implementation method may be set based on the video duration of the first video to be detected, for example, the video duration of the first video to be detected is set to the second time threshold corresponding to the second possible implementation method. If the second time difference is greater than the second time threshold, it is determined that the first video to be detected and the second video to be detected are discontinuous, and an initial discontinuous result is obtained. If the second time difference is less than or equal to the second time difference threshold, it is determined that the first video to be detected and the second video to be detected are continuous, and an initial continuous result is obtained.

[0071] A third possible implementation method may be to determine the time difference based on the video end time point of the first video to be detected and the video end time point of the second video to be detected. The preset time threshold (third time threshold) corresponding to the third possible implementation method may be set based on the video duration of the second video to be detected, for example, the video duration of the second video to be detected is set to the third time threshold corresponding to the third possible implementation method. If the third time difference is greater than the third time threshold, it is determined that the first video to be detected and the second video to be detected are discontinuous, and an initial discontinuous result is obtained. If the third time difference is less than or equal to the third time difference threshold, it is determined that the first video to be detected and the second video to be detected are continuous, and an initial continuous result is obtained.

[0072] A fourth possible implementation method may be to determine the time difference based on the video start time point of the first video to be detected and the video end time point of the second video to be detected. The preset time threshold (fourth time threshold) corresponding to the fourth possible implementation method may be set based on the video duration of the first video to be detected and the video duration of the second video to be detected, for example, the sum of the video duration of the first video to be detected and the video duration of the second video to be detected is set as the fourth time threshold corresponding to the fourth possible implementation method. If the fourth time difference is greater than the fourth time threshold, it is determined that the first video to be detected and the second video to be detected are discontinuous, and an initial discontinuous result is obtained. If the fourth time difference is less than or equal to the fourth time difference threshold, it is determined that the first video to be detected and the second video to be detected are continuous, and an initial continuous result is obtained.

[0073] In summary, in the specific implementation process of the present application, one or more possible implementation methods can be selected from the first to fourth possible implementation methods to determine the time difference between the two videos to be detected, and the initial analysis result of the current implementation method can be determined according to the time threshold corresponding to the selected possible implementation method. For the scenario where multiple possible implementation methods are selected for execution, the same or different initial analysis results can be obtained, which will not be elaborated here.

[0074] Based on the above embodiment, the embodiment of the present application describes the step of determining whether the first video to be detected and the second video to be detected are continuous according to the time period intersection between the first video period of the first video to be detected and the second video period of the second video to be detected. Specifically, the method of this embodiment includes the following steps:

[0075] A first video period of the first video to be detected is determined according to the video start time point and the video end time point of the first video to be detected, and a second video period of the second video to be detected is determined according to the video start time point and the video end time point of the second video to be detected; in response to the existence of an intersection between the first video period and the second video period, it is determined that the first video to be detected and the second video to be detected are continuous, and an initial analysis result is obtained; in response to the absence of an intersection between the first video period and the second video period, it is determined that the first video to be detected and the second video to be detected are discontinuous, and an initial analysis result is obtained.

[0076] In combination with the above-mentioned embodiment, this embodiment further provides another implementable process of the preset analysis method, which mainly analyzes the continuity between each video to be detected by the time span of the video to be detected.

[0077] Exemplarily, the first video period of the first video to be detected can be determined according to the video start time point and the video end time point of the first video to be detected. For example, the video start time point of the first video to be detected is 12:00 on xx / xx / xx, and its video end time point is 14:00 on xx / xx / xx, then the first video period of the first video to be detected can be obtained as 12:00-14:00 on xx / xx / xx. Similarly, the second video period of the second video to be detected can be determined according to the video start time point and the video end time point of the second video to be detected. For example, the video start time point of the second video to be detected is 14:00 on xx / xx / xx, and its video end time point is 16:00 on xx / xx / xx, then the second video period of the second video to be detected can be obtained as 14:00-16:00 on xx / xx / xx.

[0078] Further, determine whether there is a time intersection between the first video period and the second video period. If there is an intersection between the first video period and the second video period, determine that the first video to be detected and the second video to be detected are continuous, and obtain an initial analysis result (initial continuous result). If there is no intersection between the first video period and the second video period, determine that the first video to be detected and the second video to be detected are discontinuous, and obtain an initial analysis result (initial discontinuous result). In the above example, there is a time intersection between the first video period and the second video period, and the time intersection is 14:00 on xx / xx / xx, so an initial analysis result characterizing the continuity of the first video to be detected and the second video to be detected can be obtained.

[0079] It should also be noted that the detection method of the present application can be used not only for continuity detection of video files collected by the same camera, but also for continuity detection of video files collected by different cameras or different camera devices. For example, multiple camera devices are set in a certain application scenario. When one or more camera devices fail or the field of view is blocked, the video data of the application scenario can be collected by other camera devices. Therefore, it is necessary to ensure that the video time period of the video files collected by multiple camera devices covers the continuous time period as much as possible. For example, there are currently common multi-eye cameras (multiple cameras are set on the same camera device), and different cameras correspond to video files output by different channels. Therefore, when a camera fails or the field of view is blocked in the multi-eye device, the video data of the application scenario can be collected by other cameras of the multi-eye device. Therefore, it is also necessary to ensure that the video time period of the video files collected by multiple cameras covers the continuous time period as much as possible. Therefore, the video continuity detection method of the present application can realize the judgment of whether each video is continuous in a variety of application scenarios, which is of great significance.

[0080] Another exemplary example is to take a multi-eye device as an example. If the detection instruction characterization requires a continuity test on a video file collected by a multi-eye device, then the continuity analysis can be performed on the video files collected by all cameras of the multi-eye device, or the continuity analysis can be performed on the video files collected by each camera separately. If the detection instruction characterization requires a continuity test on a video file collected by a camera in a multi-eye device, then the continuity analysis can be performed on the video file collected by the camera separately.

[0081] Based on the above embodiment, the embodiment of the present application describes the steps after the first video period and the second video period are determined to be continuous in response to the intersection between the first video period and the second video period, and the initial analysis result is obtained. Specifically, the method of this embodiment includes the following steps:

[0082] Determine the continuous status flag of the second video to be detected based on the initial analysis result; store the video start time point, video end time point and continuous status flag corresponding to the second video to be detected in the index file accordingly, and the validity period of the index file matches the validity period of the second video to be detected.

[0083] After the step of storing the video start time point, video end time point and the continuous status flag corresponding to the second video to be detected in the index file, the method further includes: in response to the received video time point to be queried, searching for the corresponding continuous status flag in the index file according to the video time point to be queried; or, in response to the received status to be queried, searching for the corresponding video start time point and / or video end time point in the index file according to the status to be queried.

[0084] In combination with the above-mentioned embodiment, in the present application, a video analysis tool can be pre-set, and the tool can parse each video data generated in the video channel in real time, and the analysis results may include but are not limited to the creation time of the video file (the start time point of the video), the closing time (the end time point of the video) and the continuous status flag.

[0085] The continuous state flag can be used to represent the continuity of the video file. The continuous state flag can be binary data, which represents whether the video file is discontinuous or continuous through 0 and 1.

[0086] For example, for the first video file of a target channel (the first video file in the time sequence can be determined by the time information of each video file), its continuous state flag is set to 1 by default, indicating that the first video file is continuous and complete. This is equivalent to the above-mentioned embodiment, when there is only one video to be detected, it can be directly determined that the video to be detected is continuous and complete, and the details are not repeated.

[0087] For the creation time (starting time point) to closing time (ending time point) of each subsequently parsed video data, its corresponding video time period can be determined according to the above example, and the intersection operation is performed with the video time period of the previous video data. If the intersection exists, the continuous state flag of the currently parsed video data is set to 1, indicating that the video data is continuous with the previous video data. If the intersection does not exist, the continuous state flag is set to 0, indicating that the video data is discontinuous with the previous video data.

[0088] For example, for the first video to be detected and the second video to be detected, if there is an intersection between the first video period of the first video to be detected and the second video period of the second video to be detected, and an initial continuous result is obtained, the continuous state flag of the second video to be detected can be set to 1. It should be noted that in the implementation method of the present application, the continuous state flag of the video to be detected can be determined according to the initial analysis result, or after the target analysis result is determined according to the initial analysis result, the continuous state flag of the video to be detected can be determined according to the target analysis result, which is not limited here.

[0089] Furthermore, the time information and / or file identification information of the video to be detected can be used as a key value, and the continuous state flag of the video to be detected can be used as a value value, and stored in a preset index file in the form of a key-value pair. So that in the subsequent video analysis process, continuous video files and / or discontinuous video files can be quickly found through time information and / or file identification information. For example, according to the time point of the video to be queried (the video start time point and / or the video end time point), the corresponding continuous state flag and / or video file can be found in the index file; according to the state to be queried (continuous state and / or discontinuous state), the corresponding video time point (video start time point and / or video end time point) and / or video file can be found in the index file; it can also be based on the time point of the video to be queried and the state to be queried. The corresponding video file is found in the index file, which is not limited here. This can achieve accurate and fast search for continuous videos and / or discontinuous videos.

[0090] The index file can be updated and persisted on disk at regular intervals, so that the index file can be persistently stored in the system. When the index file is stored on disk, the validity period of the corresponding index file can be set according to the validity period of the video file. For example, if the index file and its corresponding video file have the same validity period, when a video file is deleted due to its expiration, the index file corresponding to the video file or the data corresponding to the video file in the index file can also be deleted synchronously, thereby saving storage space.

[0091] It can also be illustrated that the present application can be combined with Figure 3 The above embodiments should be understood accordingly. Figure 3 This is a flow chart of the continuity detection process according to the video analysis tool in the video continuity detection method of the present application. The video analysis tool can be used to parse the video data. After the parsing is completed, the video creation time and closing time will be used as the key value, and the continuity status flag will be used as the value, and stored in the video_stat file (index file) of the system memory in the form of key-value. The specific format of the data content written to the index file can be as follows: Figure 4 As shown, Figure 4 It is a simple schematic diagram of the index file data format in the video continuity detection method of the present application. The index file can be updated and persisted on a disk at regular intervals.

[0092] The proposed channel recording status flag method only needs to obtain all the recording data status flags in the video_stat file and filter whether there is 0. If there is 0, it means that the cloud storage recording data is incomplete, and if there is no 0, it means that the cloud storage recording data is complete.

[0093] It should also be noted that, in this embodiment, the method of judging the continuity of the video and determining the corresponding continuous status flag to be written into the index file can also be applied to the analysis methods of other embodiments, and the continuous status flag can also be determined and written into the index file in the same way, which will not be elaborated here.

[0094] Based on the above embodiment, the embodiment of the present application describes the step of determining whether the first video to be detected and the second video to be detected are continuous according to the number of video time points that are not successfully matched between the first video to be detected and the second video to be detected. Specifically, the method of this embodiment includes the following steps:

[0095] The video start time point and the video end time point of the first video to be detected are matched with the video start time point and the video end time point of the second video to be detected to obtain a single time point that has not been successfully matched; in response to the number of single time points matching the preset number, determine whether the number of video start time points and the number of video end time points of each video to be detected is the same; if they are the same, determine that the first video to be detected and the second video to be detected are continuous to obtain an initial analysis result.

[0096] Here, a single time point refers to that there is only one video time point (video start time point or video end time point) at one or more moments.

[0097] For ease of understanding, the above example is still used for illustration. For example, for the first video to be detected and the second video to be detected, the video start time point of the first video to be detected is 12:00 on xx / xx / xx, and its video end time point is 14:00 on xx / xx / xx, and the video start time point of the second video to be detected is 14:00 on xx / xx / xx, and its video end time point is 16:00 on xx / xx / xx. Among them, the video end time point of the first video to be detected matches the video start time point of the second video to be detected, and the video start time point of the first video to be detected does not match the video end time point of the second video to be detected.

[0098] From this, we can know that at 12:00 on xx / xx / xx, xx, there is a video time point which is the video start time point of the first video to be detected (that is, the video start time point of the first video to be detected is a single time point); at 14:00 on xx / xx / xx, xx, there are two video time points, namely the video end time point of the first video to be detected and the video start time point of the second video to be detected (that is, there is no single time point at this moment); at 16:00 on xx / xx / xx, xx, there is a video time point which is the video end time point of the second video to be detected (that is, the video end time point of the second video to be detected is a single time point).

[0099] Further, a single time point characterizes the start and / or end of a video file. Therefore, if the number of single time points matches a preset number (e.g., the number of single time points=2), it can be shown to a certain extent that the videos to be detected are continuous. In addition, in addition to being able to judge based on the number of single time points, it is also possible to judge whether it is continuous by comparing the number of video start time points and the number of video end time points of each video to be detected. If they are the same, it is determined that each video to be detected is continuous, and an initial analysis result is obtained. Otherwise, if they are not the same, it is determined to be discontinuous. Still taking the aforementioned example as an example to illustrate, the single time point of the first video to be detected and the second video to be detected is 2, the number of the video start time points of the two is 2 in total, and the number of the video end time points is 2 in total, so the number of the video start time points of the two is the same as the number of the video end time points. Therefore, it can be determined that the first video to be detected and the second video to be detected are continuous, and an initial analysis result is obtained.

[0100] The above method does not limit the number of videos to be detected for continuity detection at the same time. For example, the method of the above embodiment can be used to simultaneously perform continuity detection on three or more videos to be detected, and the determination can be made by obtaining the number of single time points, the number of video start time points, and the number of video end time points of multiple videos to be detected. Compared with other continuity determination methods, the efficiency is significantly improved in the scenario of performing continuity determination on multiple video files.

[0101] For example, the present application may also be combined with Figure 5 The above embodiments should be understood accordingly. Figure 5 It is a flow chart of continuity detection according to the number of video time points in the video continuity detection method of the present application. Among them, the time information of the video to be detected (such as the creation time and closing time of the video file) can be obtained by querying the video log in the cloud storage system, and then the integrity of the video can be analyzed and judged using a dual judgment model. The dual judgment model means that in the judgment process, the judgment is first made according to the number of single time points, and then according to the number of video start time points and the number of video end time points. This can fully guarantee the detection accuracy of the continuity of the video to be detected.

[0102] Based on the above embodiment, the embodiment of the present application describes the steps of determining whether the first video to be detected and the second video to be detected are continuous according to the matching result between the expected duration and the actual duration of the first video to be detected and the second video to be detected. Specifically, the method of this embodiment includes the following steps:

[0103] According to the video start time point of the first video to be detected and the video end time point of the second video to be detected, the expected duration between the first video to be detected and the second video to be detected is determined; according to the video duration of the first video to be detected and the video duration of the second video to be detected, the actual durations of the first video to be detected and the second video to be detected are determined; in response to a match between the expected duration and the actual duration, it is determined that the first video to be detected and the second video to be detected are continuous, and an initial analysis result is obtained.

[0104] The expected duration refers to the video duration that the video to be detected should have under ideal conditions, determined based on the creation time and closing time of the video to be detected. The actual duration refers to the video duration that the video to be detected actually has, determined by analyzing the video data of the video to be detected and / or reading the video log file.

[0105] In conjunction with the above-mentioned embodiment, there are many methods for obtaining the video time point of the video to be detected, which will not be described in detail in this embodiment. Still taking the first video to be detected and the second video to be detected as an example for explanation, according to the video start time point of the first video to be detected and the video end time point of the second video to be detected, it is possible to determine the expected duration between the first video to be detected and the second video to be detected, that is, the video duration that the first video to be detected and the second video to be detected should have in the video continuity state.

[0106] Then, according to the video duration of the first video to be detected and the video duration of the second video to be detected, the actual duration of the first video to be detected and the second video to be detected is determined, that is, the actual video duration of the first video to be detected and the second video to be detected. Among them, there can be multiple methods for obtaining the video duration of the video to be detected, such as by analyzing the video data in the aforementioned embodiment, and / or according to the video log file, or by referring to other existing methods, so it is not repeated here.

[0107] The expected duration of the first video to be detected and the second video to be detected are matched with the actual duration of the first video to be detected and the second video to be detected. If the expected duration and the actual duration of the two videos to be detected are the same, it can be determined that the first video to be detected and the second video to be detected are continuous, and an initial continuous result is obtained. On the contrary, if they are not the same, it can be determined that the first video to be detected and the second video to be detected are discontinuous, and an initial discontinuous result is obtained.

[0108] The above method also does not limit the number of videos to be detected that are simultaneously tested for continuity. For example, the method of the above embodiment can be used to simultaneously test the continuity of three or more videos to be detected, and the expected duration and actual duration of multiple videos to be detected can be obtained for matching and judging, which can also improve the efficiency of continuity judgment of multiple video files to a certain extent.

[0109] Based on the above embodiment, the embodiment of the present application describes the steps of determining the target analysis result between the first video to be detected and the second video to be detected according to at least one initial analysis result. The initial analysis result includes an initial continuous result and / or an initial discontinuous result. Specifically, the method of this embodiment includes the following steps:

[0110] The proportion of the initial continuous results in the initial analysis results is compared with the continuous proportion threshold to obtain the target analysis result; or the proportion of the initial discontinuous results in the initial analysis results is compared with the discontinuous proportion threshold to obtain the target analysis result.

[0111] In conjunction with the above-mentioned embodiments, if one of the multiple preset analysis methods provided by the present application is used in the specific implementation process, an initial analysis result (including an initial continuous result or an initial discontinuous result) can be obtained, and the initial analysis result is determined as the target analysis result. If multiple of the multiple preset analysis methods provided by the present application are used in the specific implementation process, multiple initial analysis results (including initial continuous results and / or initial discontinuous results) can be obtained, and the target analysis result is determined based on the multiple initial analysis results.

[0112] Specifically, in the process of determining the target analysis result based on multiple initial analysis results, the proportion of the initial continuous results in the initial analysis results can be compared with the continuous ratio threshold, or the proportion of the initial discontinuous results in the initial analysis results can be compared with the discontinuous ratio threshold, and the target analysis result can be determined based on the comparison result. Among them, the continuous ratio threshold and the discontinuous ratio threshold can be preset or generated in real time, there can be one or more, and the ratio thresholds in different implementations can be the same or different, which is not limited here.

[0113] For example, in an implementation of comparing the proportion of the initial continuous result in the initial analysis result with the preset ratio threshold, the preset ratio threshold can be set to 0%, 30%, 50%, 100% or other multiple values. Taking 0% as an example, if the multiple initial analysis results include at least one initial continuous result, the proportion of the initial continuous result in all the initial analysis results is greater than the preset ratio threshold (>0), so the target analysis result (target continuous result) representing the continuity between the videos to be detected can be obtained. Alternatively, in an implementation of comparing the proportion of the initial discontinuous result in the initial analysis result with the preset ratio threshold, the preset ratio threshold can also be set to 0%, 30%, 50%, 100% or other multiple values. Taking 0% as an example, if the multiple initial analysis results include at least one initial discontinuous result, the proportion of the initial discontinuous result in all the initial analysis results is greater than the preset ratio threshold (>0), so the target analysis result (target discontinuous result) representing the discontinuity (discontinuity) between the videos to be detected can be obtained.

[0114] In addition, there may be a variety of determination methods, for example, when all initial analysis results are initial continuous results, the target analysis result is determined to be a target continuous result; otherwise, if there is at least one initial discontinuous result in the initial analysis results, the target analysis result is determined to be a target discontinuous result. Alternatively, it may be determined whether the number of initial continuous results in all initial analysis results is greater than the number of initial discontinuous results, which is equivalent to determining whether the proportion of initial continuous results in the initial analysis results is greater than the proportion of initial discontinuous results in the initial analysis results (or the proportions of both are compared with a preset ratio threshold of 50%). If the number of initial continuous results in the initial analysis results is greater than (or greater than or equal to) the number of initial discontinuous results, the target analysis result may be determined to be a target continuous result. Specifically, how to determine the target analysis result based on the initial analysis result may be adaptively applied with reference to the determination method provided in the embodiment of the present application or the determination method that can be provided in the prior art, and this application will not elaborate.

[0115] Exemplarily, the first video to be detected and the second video to be detected are still used as examples for explanation. For the first video to be detected and the second video to be detected, two initial continuous results are obtained according to the analysis method of the time difference between the two video files; an initial continuous result is obtained according to the analysis method of the time period intersection of the two video files; an initial discontinuous result is obtained according to the analysis method of a single time point of the two video files. Since the number of initial continuous results is greater than the number of initial discontinuous results, it can be determined that the target analysis result is a target continuous result, which is equivalent to confirming the continuity between the first video to be detected and the second video to be detected. Alternatively, if the preset ratio threshold in the current implementation is 50%, the proportion of the initial continuous result in the initial analysis result is greater than the preset ratio threshold, and the target analysis result can also be determined to be a target continuous result, thereby confirming the continuity between the first video to be detected and the second video to be detected.

[0116] On the basis of the above embodiments, the embodiments of the present application also need to explain that, for some special application scenarios, there may be a need for regular or irregular interruptions during video recording. Therefore, for such application scenarios, it is also necessary to determine whether the interruptions between the videos to be detected are normal or abnormal.

[0117] Exemplarily, the first video to be detected and the second video to be detected are still used as an example for explanation. For such application scenarios, a discontinuity duration threshold can usually be pre-set according to the required duration of normal discontinuities. If video discontinuity (discontinuity) is detected between the first video to be detected and the second video to be detected, the discontinuity duration between the first video to be detected and the second video to be detected is analyzed to see whether the discontinuity duration and the discontinuity duration threshold match, to determine whether the current discontinuity problem is a normal discontinuity or an abnormal discontinuity.

[0118] In addition, when the video recording process is normally interrupted, a recording interruption instruction (or an active interruption instruction) should usually be received to control the pause or stop of the video recording process, and when such an operation instruction is received, such an operation can be written into the log file. Therefore, when a video discontinuity (interruption) is detected between the first video to be detected and the second video to be detected, it can be determined by reading the log file, etc., whether such an instruction is received, and then it can be determined whether the current interruption problem is a normal interruption or an abnormal interruption.

[0119] On the basis of the above embodiments, it should be further explained in this embodiment that, in order to facilitate the analysis of the time information of the video file, the present application also provides a video file naming method based on a sequential timestamp. When the recorded video data is stored as a video file, the naming method of the present application can be used to set the file name of the video file, thereby improving the efficiency of detecting the continuity of the video.

[0120] Specifically, in the naming method of the present application, the start time and end time of the video recording are used as the file name of the corresponding video file, for example, 2024_05_29_100534_120534.dav, where 2024_05_29 represents the year, month and day when the video file is created, 100534 represents that the video file is created at 10:05:34, and 120534 represents that the video file ends at 12:05:34.

[0121] Therefore, by combining this embodiment with the method for judging the continuity of a video based on the time difference in the aforementioned embodiment, at least one possible implementation method can be obtained, including: obtaining the file name of the video to be detected, determining the time difference between the two videos to be detected based on the time information in the file names of the two videos to be detected, and comparing the time difference with a preset time difference threshold to determine whether the two videos to be detected are continuous. Optionally, when a number of video files that need to be detected for continuity have a large time span such as across years, months, or days, and are analyzed and detected, the number of days in the year in which the video to be detected is determined, and the continuity of each video to be detected is analyzed in units of days, to ensure the accuracy of the statistical analysis of the integrity of the video according to the cloud storage video file name.

[0122] For example, reference may be made to Figure 6 As shown, Figure 6 It is a flowchart of judging the continuity of a video according to the name of a video file in the present application. Among them, after the acquired video file is named according to a preset naming method, the video file names of the two videos to be detected can be directly compared by obtaining the video file name through a preset timing continuity verification algorithm, thereby judging whether the two videos to be detected are continuous. It should be noted that if there is a video file with the latest time (or the last video file in the timing) in the current video to be detected, the video file can be directly judged as continuous. For multiple files to be detected, if the time difference is less than or equal to the preset time threshold, it is judged whether it is the last video file. If not, it can continue to iterate to judge whether the subsequent video files are continuous with the previous adjacent video file until the last video file is judged. If there is no video file with a time difference greater than the preset time difference threshold, it can be judged that multiple videos to be detected are continuous.

[0123] Optionally, when executing the continuity detection method of the present application, each initial video file can be sorted in time order according to the time information or file name of the initial video file, so as to obtain the video to be detected. Then, the continuity analysis is performed on the videos to be detected in turn, thereby improving the detection efficiency of video continuity to a certain extent, and it is not easy to miss the video files to be detected.

[0124] It should be further explained that the execution subject of the video continuity detection method may be a video continuity detection device, for example, the video continuity detection method may be executed by a terminal device or a server or other processing device, wherein the terminal device may be a user equipment (UE), a computer, a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. In some possible implementations, the video continuity detection method may be implemented by a processor calling a computer-readable instruction stored in a memory.

[0125] Figure 7 FIG. 1 is a block diagram of a video continuity detection device shown in an exemplary embodiment of the present application. Figure 7 As shown, the exemplary video continuity detection device 700 includes: a video acquisition module 710, an analysis module 720 and a determination module 730. Specifically:

[0126] The video acquisition module 710 is used to acquire a first video to be detected and a second video to be detected in response to a received video continuity detection instruction, wherein a video end time point of the first video to be detected is earlier than a video end time point of the second video to be detected.

[0127] The analysis module 720 is used to perform video continuity analysis on the first video to be detected and the second video to be detected in at least one preset analysis method according to the time information of the video to be detected, and obtain at least one initial analysis result indicating whether the first video to be detected and the second video to be detected are continuous.

[0128] The determination module 730 is used to determine a target analysis result between the first video to be detected and the second video to be detected according to at least one initial analysis result.

[0129] In this exemplary video continuity detection device, when a video continuity detection instruction is received, the first video to be detected and the second video to be detected corresponding to the video continuity detection instruction are obtained to analyze the continuity of the first video to be detected and the second video to be detected. Video continuity analysis is performed on the first video to be detected and the second video to be detected in at least one preset analysis method according to the time information of the video to be detected, and at least one initial analysis result is obtained to characterize whether the first video to be detected and the second video to be detected are continuous. The target analysis result between the first video to be detected and the second video to be detected is determined according to the at least one initial analysis result. The target analysis result is used to finally determine whether the first video to be detected and the second video to be detected are continuous, which significantly improves the accuracy of the video continuity detection process compared to the single judgment process in the traditional method.

[0130] It should be noted that the device provided in the above embodiment and the method provided in the above embodiment belong to the same concept, wherein the specific manner in which each module and unit performs the operation has been described in detail in the method embodiment, and will not be repeated here. In practical applications, the device provided in the above embodiment can distribute the above functions to different functional modules as needed, that is, divide the internal structure of the device into different functional modules to complete all or part of the functions described above, and this is not limited here.

[0131] Among them, the functions of each module can be found in the embodiment of the video continuity detection method, and will not be repeated here.

[0132] See also Figure 8 , Figure 8 1 is a schematic diagram of the structure of an embodiment of an electronic device of the present application. The electronic device 100 includes a memory 101 and a processor 102, and the processor 102 is used to execute program instructions stored in the memory 101 to implement the steps in any of the above-mentioned video continuity detection method embodiments. In a specific implementation scenario, the electronic device 100 may include but is not limited to: a microcomputer, a server, and in addition, the electronic device 100 may also include a mobile device such as a laptop computer and a tablet computer, which is not limited here.

[0133] Specifically, the processor 102 is used to control itself and the memory 101 to implement the steps in any of the above-mentioned video continuity detection method embodiments. The processor 102 can also be called a CPU (Central Processing Unit). The processor 102 may be an integrated circuit chip with signal processing capabilities. The processor 102 can also be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field-programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. In addition, the processor 102 can be implemented by an integrated circuit chip.

[0134] In this exemplary electronic device, when a video continuity detection instruction is received, the first video to be detected and the second video to be detected corresponding to the video continuity detection instruction are obtained to analyze the continuity of the first video to be detected and the second video to be detected. Video continuity analysis is performed on the first video to be detected and the second video to be detected in at least one preset analysis method according to the time information of the video to be detected, and at least one initial analysis result is obtained to characterize whether the first video to be detected and the second video to be detected are continuous. The target analysis result between the first video to be detected and the second video to be detected is determined according to the at least one initial analysis result. The target analysis result is used to finally determine whether the first video to be detected and the second video to be detected are continuous, which significantly improves the accuracy of the video continuity detection process compared to the single judgment process in the traditional method.

[0135] See also Fig. 9 , Fig. 9 The computer-readable storage medium 110 stores program instructions 111 that can be executed by a processor, and the program instructions 111 are used to implement the steps in any of the above-mentioned video continuity detection method embodiments.

[0136] In this exemplary storage medium, by running the program instructions in the storage medium, when receiving the video continuity detection instruction, the first video to be detected and the second video to be detected corresponding to the video continuity detection instruction are obtained to analyze the continuity of the first video to be detected and the second video to be detected. According to the time information of the video to be detected, the first video to be detected and the second video to be detected are analyzed for video continuity in at least one preset analysis method, and at least one initial analysis result is obtained to characterize whether the first video to be detected and the second video to be detected are continuous. According to the at least one initial analysis result, the target analysis result between the first video to be detected and the second video to be detected is determined. The target analysis result is used to finally determine whether the first video to be detected and the second video to be detected are continuous, which significantly improves the accuracy of the video continuity detection process compared to the single judgment process in the traditional method.

[0137] In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.

[0138] The above description of various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other, and for the sake of brevity, they will not be repeated herein.

[0139] In the several embodiments provided in the present application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device implementation described above is only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation, such as units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0140] In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit. If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform all or part of the steps of each implementation method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.

Claims

1. A video continuity detection method, characterized in that: The method comprises: In response to the received video continuity detection instruction, a first video to be detected and a second video to be detected are acquired, wherein a video end time point of the first video to be detected is earlier than a video end time point of the second video to be detected; Performing video continuity analysis on the first video to be detected and the second video to be detected in at least one preset analysis method according to the time information of the video to be detected, and obtaining at least one initial analysis result characterizing whether the first video to be detected and the second video to be detected are continuous; the preset analysis method includes: time difference analysis method, and / or video time period intersection method, and / or video time point quantity method, and / or video duration analysis method; the initial analysis result includes: initial continuous result and / or initial discontinuous result; Determine a target analysis result between the first video to be detected and the second video to be detected according to at least one initial analysis result; Determining the target analysis result between the first video to be detected and the second video to be detected based on at least one initial analysis result includes: determining the target analysis result based on the proportion of the initial continuous result in the initial analysis result, or based on the proportion of the initial discontinuous result in the initial analysis result.

2. The method according to claim 1, characterized in that: The time difference analysis method comprises: judging whether the first video to be detected and the second video to be detected are continuous according to the time difference between the video time point of the first video to be detected and the video time point of the second video to be detected; The video time period intersection method comprises: judging whether the first video to be detected and the second video to be detected are continuous according to the time period intersection between the first video time period of the first video to be detected and the second video time period of the second video to be detected; The video time point quantity method includes: judging whether the first video to be detected and the second video to be detected are continuous according to the number of video time points that are not successfully matched between the first video to be detected and the second video to be detected; The video duration analysis method includes: judging whether the first video to be detected and the second video to be detected are continuous according to a matching result between an expected duration and an actual duration of the first video to be detected and the second video to be detected.

3. The method according to claim 2, characterized in that The step of judging whether the first video to be detected and the second video to be detected are continuous according to the time difference between the video time point of the first video to be detected and the video time point of the second video to be detected comprises: In response to the time difference being less than or equal to a preset time difference threshold, determining that the first video to be detected and the second video to be detected are continuous, and obtaining the initial analysis result; In response to the time difference being greater than the preset time difference threshold, it is determined that there is a discontinuity between the first video to be detected and the second video to be detected, and the initial analysis result is obtained.

4. The method according to claim 2, characterized in that: The video time point includes a video start time point and a video end time point. Before the step of judging whether the first video to be detected and the second video to be detected are continuous based on the time difference between the video time point of the first video to be detected and the video time point of the second video to be detected, the method further includes: Determine the time difference according to the video end time point of the first video to be detected and the video start time point of the second video to be detected; and / or, determining the time difference according to a video starting time point of the first video to be detected and a video starting time point of the second video to be detected; and / or, determining the time difference according to a video end time point of the first video to be detected and a video end time point of the second video to be detected; And / or, the time difference is determined according to a video start time point of the first video to be detected and a video end time point of the second video to be detected.

5. The method according to claim 2, characterized in that: The step of judging whether the first video to be detected and the second video to be detected are continuous according to the time period intersection between the first video time period of the first video to be detected and the second video time period of the second video to be detected comprises: Determine a first video period of the first video to be detected according to a video start time point and a video end time point of the first video to be detected, and determine a second video period of the second video to be detected according to a video start time point and a video end time point of the second video to be detected; In response to the existence of an intersection between the first video period and the second video period, determining that the first to-be-detected video and the second to-be-detected video are continuous, and obtaining the initial analysis result; In response to the absence of an intersection between the first video period and the second video period, it is determined that the first video to be detected and the second video to be detected are discontinuous, and the initial analysis result is obtained.

6. The method according to claim 5, characterized in that After the step of determining that the first video to be detected and the second video to be detected are continuous in response to the existence of an intersection between the first video period and the second video period, and obtaining the initial analysis result, the method further includes: Determine a continuous state flag of the second video to be detected based on the initial analysis result; The video start time point, the video end time point and the continuous state flag corresponding to the second video to be detected are stored in an index file correspondingly, and the validity period of the index file matches the validity period of the second video to be detected; After the step of storing the video start time point, the video end time point and the continuous state flag corresponding to the second video to be detected in the index file, the method further includes: In response to the received time point of the video to be queried, the corresponding continuous status flag in the index file is searched according to the time point of the video to be queried; or, in response to the received status to be queried, the corresponding video start time point and / or video end time point in the index file is searched according to the status to be queried.

7. The method according to claim 2, characterized in that The step of judging whether the first video to be detected and the second video to be detected are continuous according to the number of video time points that are not successfully matched between the first video to be detected and the second video to be detected comprises: Matching the video start time point and the video end time point of the first video to be detected with the video start time point and the video end time point of the second video to be detected to obtain a single time point that is not successfully matched; In response to the number of the single time points matching the preset number, determining whether the number of video start time points and the number of video end time points of each video to be detected are the same; If they are the same, it is determined that the first video to be detected and the second video to be detected are continuous, and the initial analysis result is obtained.

8. The method according to claim 2, characterized in that: The step of judging whether the first video to be detected and the second video to be detected are continuous according to the matching result between the expected duration and the actual duration of the first video to be detected and the second video to be detected comprises: Determining an expected duration between the first video to be detected and the second video to be detected according to a video start time point of the first video to be detected and a video end time point of the second video to be detected; Determine actual durations of the first video to be detected and the second video to be detected according to the video duration of the first video to be detected and the video duration of the second video to be detected; In response to the expected duration matching the actual duration, it is determined that the first video to be detected and the second video to be detected are continuous, and the initial analysis result is obtained.

9. The method according to claim 1, characterized in that: The step of determining a target analysis result between the first video to be detected and the second video to be detected according to at least one initial analysis result comprises: Compare the proportion of the initial continuous result in the initial analysis result with a continuous ratio threshold to obtain the target analysis result; Alternatively, the proportion of the initial discontinuity result in the initial analysis result is compared with a discontinuity ratio threshold to obtain the target analysis result.

10. A computer-readable storage medium having program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the method according to any one of claims 1 to 9 is implemented.