Methods, systems, equipment, and storage media for extracting surveillance video.

By employing automatic retry and video file locking mechanisms, the problem of interrupted surveillance video transmission was resolved, enabling timely recovery and efficient extraction of surveillance video, improving the success rate of video extraction, and supporting customer service personnel in making rapid decisions.

CN116055688BActive Publication Date: 2026-11-10ZHEJIANG GEELY HLDG GRP CO LTD +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202310097950.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-10
Publication Date
2026-11-10
Estimated Expiration
2043-02-10

AI Technical Summary

Technical Problem

In existing technologies, the extraction process of surveillance videos is prone to failure due to external factors such as network outages, making it impossible to recover video files immediately, and manual intervention is inefficient.

Method used

The automatic retry mechanism restores video transmission when the network is interrupted or the device is powered off. This includes pre-verification, video file locking, delay queue management, and device online monitoring, ensuring the integrity of video files and timely recovery.

Benefits of technology

It improves the success rate of extracting surveillance video, ensures that video files are automatically recovered when the equipment returns to normal, reduces manual intervention, and improves the efficiency of on-site reconstruction and decision-making.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116055688B_ABST
    Figure CN116055688B_ABST
Patent Text Reader

Abstract

This invention provides a method, system, device, and storage medium for extracting surveillance video, belonging to the field of video-on-demand technology. The method includes: responding to a video extraction request, obtaining the time period of the surveillance video and the identifier of the recording device to which the surveillance video belongs; based on the recording device identifier, locating and obtaining the corresponding recording device, and sending a video file upload request to the recording device; wherein the recording device stores the surveillance video; extracting the surveillance video returned by the recording device; wherein, if a transmission interruption occurs during the sending of the video file upload request or the receiving of the surveillance video, the process is automatically retried until successful transmission. This solves the problem that in current surveillance video extraction processes, when video transmission fails due to external factors such as network outages, the video file cannot be recovered immediately.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of video-on-demand technology, specifically to a method, system, device, and storage medium for extracting surveillance video. Background Technology

[0002] In the current vehicle operation process, situations may arise such as passenger loss of belongings, conflicts within the vehicle, or even dangerous driving leading to accidents. In these special circumstances, customer service personnel need to extract surveillance video from the onboard cameras to obtain the relevant video files, facilitating on-site reconstruction and rapid decision-making. Therefore, surveillance video extraction is a crucial node in video traceability capabilities, and its success rate needs to be guaranteed. Currently, various problems during vehicle operation may cause surveillance video extraction failures, such as power outages, network interruptions, or device malfunctions. Since these scenarios are unavoidable, existing surveillance video extraction methods typically rely on manual intervention in such situations. However, this method is inefficient and cannot guarantee immediate video file recovery, resulting in a very low success rate for surveillance video extraction. Therefore, there is a need to provide a method, system, device, and storage medium for surveillance video extraction. Summary of the Invention

[0003] In view of the shortcomings of the prior art, the purpose of this invention is to provide a method, system, device and storage medium for extracting surveillance video, so as to improve the problem that in the process of extracting surveillance video, when video transmission fails due to external reasons such as network outage, the video file cannot be recovered in time.

[0004] To achieve the above and other related objectives, the present invention provides a method for extracting surveillance video, comprising the following steps:

[0005] In response to a video extraction request, the time period of the surveillance video and the identifier of the recording device to which the surveillance video belongs are obtained;

[0006] Based on the recording device identifier, the corresponding recording device is located and obtained, and a video file upload request is sent to the recording device; wherein, the recording device stores the surveillance video;

[0007] Extract the surveillance video returned by the recording device; wherein, if a transmission interruption occurs during the process of sending the video file upload request or receiving the surveillance video, the process will automatically retry until the transmission is successful.

[0008] In one embodiment of the present invention, before sending a video file upload request to the recording device, the method further includes: performing a pre-verification of the surveillance video, wherein the pre-verification process includes:

[0009] Determine whether the duration of the monitored video is greater than or equal to a preset duration threshold;

[0010] If the duration of the surveillance video is greater than or equal to the duration threshold, the surveillance video is divided into multiple consecutive sub-videos, and the duration of each sub-video is less than the duration threshold.

[0011] If the duration of the surveillance video is less than the duration threshold, then based on the current cumulative extraction duration and online status of the recording device, it is determined whether the surveillance video meets the preset extraction criteria, and if the extraction criteria are met, a video file upload request is sent to the recording device.

[0012] In one embodiment of the present invention, after performing pre-verification on the surveillance video, the method further includes:

[0013] Determine if there are duplicate video extraction requests;

[0014] If the same video extraction request exists, return the task containing the existing video extraction request;

[0015] If no identical video extraction request exists, a video file upload request is sent to the recording device.

[0016] In one embodiment of the present invention, before sending the video file upload request to the recording device, the method further includes: sending a monitoring video lock request to the recording device to lock the monitoring video.

[0017] In one embodiment of the present invention, the step of automatically retrying if a transmission interruption occurs includes:

[0018] Receive online information transmitted by the recording device;

[0019] Determine whether the time limit of the monitored video exceeds a preset time range;

[0020] If the time limit of the monitored video exceeds the specified time range, the operation will be stopped;

[0021] If the time limit of the monitored video does not exceed the time range, a video extraction request is resent to the recording device.

[0022] In one embodiment of the present invention, after the operation is stopped, the method further includes: sending a prompt message containing the reason for the timeout to a preset display interface.

[0023] In one embodiment of the present invention, after extracting the surveillance video returned by the recording device, the method further includes: sending a surveillance video unlocking request to the recording device to unlock the surveillance video.

[0024] In one embodiment of the present invention, a system for extracting surveillance video is also provided, the system comprising:

[0025] The video information acquisition module is used to respond to a video extraction request and acquire the time period of the monitored video and the identification of the recording device to which the monitored video belongs;

[0026] The recording device acquisition module is used to find and acquire the corresponding recording device based on the recording device identifier, and send a video file upload request to the recording device;

[0027] The video transmission module is used to extract the monitoring video returned by the recording device; wherein, if a transmission interruption occurs during the process of sending the video file upload request or receiving the monitoring video, it will automatically retry until the transmission is successful.

[0028] In one embodiment of the present invention, a surveillance video extraction device is also provided, including a processor coupled to a memory, the memory storing program instructions, which, when executed by the processor, implement the method described in any of the above-mentioned embodiments.

[0029] In one embodiment of the present invention, a computer-readable storage medium is also provided, including a program that, when run on a computer, performs the method described in any one of the above descriptions.

[0030] In summary, this invention, based on a video extraction request issued by the customer service platform, obtains the time period for which the required surveillance video needs to be extracted, as well as the identifier of the recording device to which the surveillance video belongs. Based on the recording device identifier, the corresponding recording device is located, and a video file upload request is sent to the recording device, thereby extracting the surveillance video returned by the recording device. Considering abnormal factors such as network interruptions or device power outages, if a transmission interruption occurs during the process of sending the video file upload request to the recording device, or during the process of receiving the surveillance video returned by the recording device, the process automatically retryes until the transmission is successful. This solves the problem that in current surveillance video extraction processes, when video transmission fails due to external factors such as network outages, the video file cannot be recovered immediately. Attached Figure Description

[0031] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0032] Figure 1The diagram shows a flowchart of a method for extracting surveillance video in one embodiment of the present invention.

[0033] Figure 2 This is a flowchart illustrating the process of determining whether there are identical video extraction requests in one embodiment of the present invention.

[0034] Figure 3 The diagram shown is a schematic diagram of the principle structure of a surveillance video extraction system according to an embodiment of the present invention.

[0035] Component designation explanation:

[0036] 100. Surveillance video extraction system; 110. Video information acquisition module; 120. Recording device acquisition module; 130. Video transmission module. Detailed Implementation

[0037] The following specific examples illustrate the implementation of the present invention. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that, unless otherwise specified, the following embodiments and features can be combined with each other. It should also be understood that the terminology used in the embodiments of the present invention is for describing specific implementation schemes and not for limiting the scope of protection of the present invention. Test methods in the following embodiments that do not specify specific conditions are generally performed under conventional conditions or according to the conditions recommended by the respective manufacturers.

[0038] Please see Figures 1 to 3 It should be understood that the structures, proportions, sizes, etc., depicted in the accompanying drawings are merely for illustrative purposes to aid those skilled in the art and to facilitate understanding. They are not intended to limit the scope of the invention and therefore have no substantial technical significance. Any modifications to the structure, changes in proportions, or adjustments to size, without affecting the effectiveness and purpose of the invention, should still fall within the scope of the technical content disclosed herein. Furthermore, the terms such as "upper," "lower," "left," "right," "middle," and "one" used in this specification are merely for clarity and not intended to limit the scope of the invention. Changes or adjustments to their relative relationships, without substantially altering the technical content, should also be considered within the scope of the invention.

[0039] When numerical ranges are given in the embodiments, it should be understood that, unless otherwise stated in the present invention, both endpoints of each numerical range and any value between the two endpoints may be selected. Unless otherwise defined, all technical and scientific terms used in this invention, as well as the prior art known to those skilled in the art and the description of this invention, may be implemented using any prior art methods, devices, and materials similar to or equivalent to those described, used, or made of materials in the embodiments of this invention.

[0040] Please see Figure 1 , Figure 1 This diagram illustrates a flowchart of a method for extracting surveillance video according to an embodiment of the present invention. The present invention provides a method for extracting surveillance video. Based on a video extraction request issued by a customer service platform, the request includes the time period for which the surveillance video needs to be extracted, as well as the identifier of the recording device to which the surveillance video belongs. Based on the recording device identifier, the corresponding recording device is located, and a video file upload request is sent to the recording device, thereby extracting the surveillance video returned by the recording device. Considering abnormal factors such as network interruptions or device power outages, if a transmission interruption occurs during the process of sending the video file upload request to the recording device, or during the process of receiving the surveillance video returned by the recording device, the process automatically retryes until the transmission is successful. This solves the problem that in the current surveillance video extraction process, when video transmission fails due to external reasons such as network outages, the video file cannot be recovered immediately.

[0041] Please see Figure 1 In one embodiment of the present invention, a method for extracting surveillance video is provided, the method comprising the following steps:

[0042] S10. In response to the video extraction request, obtain the time period of the surveillance video and the identifier of the recording device to which the surveillance video belongs.

[0043] When it's necessary to retrieve surveillance video from a vehicle, the customer service platform sends a video retrieval request to the vehicle networking platform. The request includes the time period of the surveillance video and the identifier of the recording device to which the video belongs. The recording device identifier has a one-to-one mapping with the recording device, allowing unique identification of each device. The vehicle networking platform remotely communicates with a vast number of vehicles under its jurisdiction and can send video file upload requests to any one or more vehicles to obtain the surveillance video transmitted back by the recording device within the vehicle. For example, if it's necessary to retrieve the surveillance video from a vehicle between 10:00 AM and 10:10 AM on December 25, 2022, the recording device for that vehicle can be located using its identifier, and the required surveillance video can be retrieved by remotely uploading the video.

[0044] S20. Based on the recording device identifier, locate and obtain the corresponding recording device, and send a video file upload request to the recording device; wherein, the recording device stores the surveillance video.

[0045] After receiving a video extraction request from the customer service platform, the vehicle networking platform, based on the recording device identifier carried in the request, searches for the corresponding vehicle and related in-vehicle recording device in the background database, and then sends a video file upload request to the recording device of that vehicle. The recording devices described in this application include, but are not limited to, dashcams and in-vehicle cameras.

[0046] In one embodiment of the present invention, before sending a video file upload request to the recording device, the method further includes: performing a pre-verification of the surveillance video, wherein the pre-verification process includes:

[0047] S21. Determine whether the duration of the surveillance video is greater than or equal to a preset duration threshold.

[0048] S22. If the duration of the surveillance video is greater than or equal to the duration threshold, the surveillance video is divided into multiple consecutive sub-videos, and the duration of each sub-video is less than the duration threshold.

[0049] S23. If the duration of the surveillance video is less than the duration threshold, then based on the current cumulative extraction duration and online status of the recording device, determine whether the surveillance video meets the preset extraction criteria, and if the extraction criteria are met, send a video extraction request to the recording device.

[0050] When the vehicle-to-everything (V2X) platform receives a video retrieval request from the customer service platform, it first performs a series of pre-verification checks to determine whether the desired surveillance video meets the current retrieval criteria. Specifically, it first checks whether the duration of the surveillance video is greater than or equal to a preset duration threshold. If the duration is greater than or equal to the threshold, it indicates that the video spans a long period. Since surveillance videos are typically extracted as files per minute, for example, if the video duration exceeds 30 minutes, continuously extracting it would require retrieving more than 30 files from the recording device, resulting in excessive retrieval and potentially malfunctioning the recording device. Therefore, the surveillance video needs to be segmented so that the duration of each sub-video is less than the duration threshold, ensuring that the device is not affected during video retrieval. If the video duration is less than the threshold, it then needs to be determined whether the video meets the retrieval criteria based on the recording device's current cumulative extraction duration and whether it is online. Specifically, the system first determines whether the current cumulative extraction time of the recording device is greater than or equal to a preset extraction time threshold. If the current cumulative extraction time is greater than or equal to the threshold, the operation is paused, and the cumulative extraction time is monitored in real time. If the extraction time is less than the threshold and the corresponding recording device is online, the surveillance video can be extracted. For example, a current cumulative extraction time of 1 hour means that multiple videos are being extracted simultaneously by the recording device at the current moment. For instance, if three videos from different time periods, each 25 minutes long, need to be extracted, the current cumulative extraction time exceeds 1 hour, so a wait is required to prevent the recording device from continuously uploading videos and causing recording to malfunction. If the current cumulative extraction time is less than the threshold, the system determines whether the recording device is online and sends a video extraction request to it if it is online. When the recording device is offline, the system checks if the surveillance video exists in the vehicle networking platform. If it exists, the video is returned to the customer service platform; if it does not exist, the system waits for the recording device to come online before attempting to extract the video again. By checking whether the recording device is online, we can ensure that the device is online when extracting video later, so that it can receive various instructions transmitted by the vehicle networking platform in a timely manner.

[0051] Figure 2 This is a flowchart illustrating a process for determining whether there are identical video extraction requests in one embodiment of the present invention. In one embodiment of the present invention, after performing pre-verification on the surveillance video, the process further includes:

[0052] S201. Determine if there are identical video extraction requests;

[0053] S202. If the same video extraction request exists, return the task containing the existing video extraction request.

[0054] S203. If there is no identical video extraction request, a video file upload request is sent to the recording device.

[0055] Since each video extraction request is issued as a task, after pre-verification, it's necessary to determine if the same video extraction request already exists on the vehicle-to-everything (V2X) platform. If the same request exists, there's no need to send another video file upload request to the recording device. Instead, the task identifier of the existing request is returned to the V2X platform, allowing the platform to retrieve the existing task and reduce unnecessary task creation, thus speeding up the video extraction process. If the V2X platform does not have the same request, then a video file upload request needs to be sent to the recording device.

[0056] Considering the potential issue of surveillance coverage during video extraction, to avoid this, in one embodiment of the invention, before sending the video file upload request to the recording device, the method further includes sending a surveillance video lock request to the recording device to lock the surveillance video. When the pre-verification passes and no identical video extraction request exists, the vehicle network platform generates a file list of the surveillance video time periods (e.g., if the time period is 25 minutes, then each minute is a video file, forming a file list), sends a file list lock request to the found recording device, and waits for the recording device to return a file list lock response for that time period. This locks the surveillance video to be retrieved on the recording device, ensuring that this portion of the video will not be overwritten before extraction is complete, effectively guaranteeing the integrity of the video file. Specifically, after receiving the video extraction request from the customer service platform, the vehicle network platform's iov-device first performs pre-verification. If the pre-verification conditions are met and no identical video extraction request exists, the iov-device sends a file list lock instruction to the delayed queue kafka. This file list lock instruction carries the current task identifier to locate the corresponding recording device and obtain the surveillance video to be extracted. Upon receiving a file list lock command, the delayed queue Kafka translates the command into a different language and sends a monitoring video lock request to the Iov-HiveMQ on the vehicle networking platform. Iov-HiveMQ then sends the corresponding monitoring video lock request to the recording device. Iov-HiveMQ is an MQTT-based communication platform designed to deliver data quickly, efficiently, and reliably to connected IoT devices. It uses the MQTT protocol for real-time, bidirectional data push between the recording device and the vehicle networking platform.

[0057] S30. Extract the surveillance video returned by the recording device; wherein, if a transmission interruption occurs during the process of sending the video file upload request or receiving the surveillance video, the transmission will be automatically retried until the transmission is successful.

[0058] After receiving the video lock response from the recording device, the iov-hivemq of the vehicle-to-everything (V2X) platform transmits the response to the Kafka delay queue. The Kafka delay queue generates a video file list lock message and sends it to the iov-device. The iov-device then uses the task identifier in the video file list lock message to check if the corresponding monitoring time period contains video files stored in the database. By comparing the video file list with the already saved file list in the database, the extra video files are added to the database, and the number of files to be extracted for the current task is updated before video extraction begins. For example, if the required monitoring time period is 7:00 PM to 7:13 PM, and the file list in the database is from 6:45 PM to 7:06 PM, there is an overlap with the monitoring video. The file list for the overlapping time period is directly sent back to the customer service platform. Then, the non-overlapping monitoring video is treated as extra video files and added to the database to begin video extraction. Since each minute of video information is treated as a single video file in this application, it is necessary to update the number of files extracted by the current task (i.e., 7 files) and store the updated number of files in the remote dictionary Redis of the vehicle networking platform.

[0059] During video extraction, the first step is to query the delay queue to see the number of files currently being extracted by the recording device, and determine if this number is less than a preset file number threshold. If the number of files is greater than or equal to the threshold, it indicates that the recording device is uploading too many files simultaneously, which can easily lead to network congestion. This affects both file uploads and the normal operation of the recording device. Therefore, the number of videos that a recording device can extract simultaneously is limited to prevent excessive file uploads at the same time, which could consume too much bandwidth and affect the normal operation of other device functions. At this point, the delay queue needs to be monitored until the number of files in the delay queue is less than the file number threshold. If it is less, it indicates that the network is smooth, and a single file upload command can be sent to the delay queue. The delay queue then sends a video file upload request to iov-hivemq. Upon receiving the video file upload request, iov-hivemq sends the monitoring video information for the required time period to the recording device. After sending, the number of files currently being extracted by the recording device in Redis is incremented by one. The current task status and current file status in the database are updated to "extracting," and the current file upload request is added to the delay queue. After adding the file to the delay queue for a preset upload duration, the system verifies whether the current file has been successfully uploaded. For example, if the upload duration is 10 minutes, the system checks whether the file was successfully uploaded after 10 minutes in the delay queue. If successful, it proceeds to the next file transfer; otherwise, it automatically retransmits. This ensures that even if a single video file is interrupted during extraction due to network interruptions or restarts on the device, it can be retried, avoiding the problem of file transfer failures and inability to recover promptly due to power outages or other abnormal scenarios.

[0060] Furthermore, after receiving a video file upload request, the recording device sends the monitoring video for the corresponding time period to iov-hivemq. iov-hivemq then sends a video file upload response to the delay queue, which in turn sends the response information to iov-device. Upon receiving the response, iov-device decrements the number of files currently being extracted in Redis and the number of files being uploaded in the delay queue, updates the file's status in the database to "extracted," and saves the video file's playback address to the database for later download. At this point, it checks if the recording device has any more video files to be extracted. If not, the current video extraction task status is updated to "completed," and the task ends. If files exist, the process continues, repeatedly checking the number of files currently being extracted from the delay queue and determining if it is less than a preset threshold before proceeding with video extraction.

[0061] In one embodiment of the present invention, the step of automatically retrying if a transmission interruption occurs includes:

[0062] S301. Receive the online information transmitted by the recording device;

[0063] S302. Determine whether the time limit of the monitoring video exceeds the preset time range;

[0064] S303. If the time limit of the monitored video exceeds the time range, the operation shall be stopped;

[0065] S304. If the time limit of the monitored video has not exceeded the time range, then a video extraction request is resent to the recording device.

[0066] When the recording device loses power or stops operating midway, the video extraction process is interrupted. When the recording device restarts and logs back online, it sends an online notification to the vehicle network platform to resume the video extraction process. Upon receiving the online notification, the vehicle network platform clears the number of files being uploaded stored in Redis to zero, ensuring the task is not repeated. At this point, it checks if the monitoring video's time limit has expired. If not, it sends a video extraction lock request to the recording device and repeats the video extraction process. For example, with a preset time range of 3 days, if the monitoring video was detected to have been captured more than 3 days ago, the current extraction work stops, and a prompt message containing the timeout reason is sent to the preset display interface, prompting the administrator to re-initiate the video extraction request to the vehicle network platform through the customer service platform. By setting this timeout handling mechanism, the video extraction task has a certain time limit, avoiding the situation where timeout tasks accumulate in the delay queue and consume a large amount of resources.

[0067] In one embodiment of the present invention, after extracting the surveillance video returned by the recording device, the method further includes: sending a surveillance video unlock request to the recording device to unlock the surveillance video. Once the recording device has returned the required surveillance video, the surveillance video can be unlocked, allowing subsequent videos to overwrite the current video over time, facilitating the extraction of subsequent videos.

[0068] The steps described above are for clarity only. In practice, they can be combined into one step or some steps can be split into multiple steps. As long as they contain the same logical relationship, they are all within the protection scope of this invention. Adding insignificant modifications or introducing insignificant designs to the algorithm or process, without changing the core design of the algorithm and process, are also within the protection scope of this invention.

[0069] Please see Figure 3 , Figure 3The diagram shows the principle structure of a surveillance video extraction system according to an embodiment of the present invention. The surveillance video extraction system 100 includes a video information acquisition module 110, a recording device acquisition module 120, and a video transmission module 130. The video information acquisition module 110 is used to acquire the time period of the surveillance video and the identifier of the recording device to which the surveillance video belongs in response to a video extraction request. The recording device acquisition module 120 is used to locate and acquire the corresponding recording device based on the recording device identifier and send a video file upload request to the recording device. The recording device stores the surveillance video. The video transmission module 130 is used to extract the surveillance video returned by the recording device. If a transmission interruption occurs during the sending of the video file upload request or the receiving of the surveillance video, the system automatically retryes until the transmission is successful.

[0070] It should be noted that, in order to highlight the innovative aspects of this invention, this embodiment does not include modules that are not closely related to solving the technical problems proposed by this invention, but this does not mean that there are no other modules in this embodiment.

[0071] Furthermore, those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the system described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here. In the embodiments provided by this invention, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative; for example, the division of modules is merely a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.

[0072] The modules described as separate components may or may not be physically separate. Similarly, the components shown as modules may or may not be physical modules; they may be located in one place or distributed across multiple network modules. Some or all of the units can be selected to achieve the purpose of this embodiment, depending on actual needs.

[0073] Furthermore, the functional modules in the various embodiments of the present invention can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional units.

[0074] This embodiment also proposes a surveillance video extraction device, which includes a processor and a memory, coupled together. The memory stores program instructions, and when the program instructions stored in the memory are executed by the processor, the aforementioned task management method is implemented. The processor can be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The memory may include Random Access Memory (RAM) and may also include Non-Volatile Memory, such as at least one disk storage device. The memory can be an internal memory of the Random Access Memory (RAM) type, and the processor and memory can be integrated into one or more independent circuits or hardware, such as an Application Specific Integrated Circuit (ASIC). It should be noted that when the computer program in the aforementioned memory is implemented as 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 invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, electronic device, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of the present invention.

[0075] This embodiment also proposes a computer-readable storage medium storing computer instructions for instructing a computer to execute the aforementioned method for extracting surveillance video. The storage medium can be an electronic medium, magnetic medium, optical medium, electromagnetic medium, infrared medium, or a semiconductor system or propagation medium. The storage medium may also include semiconductor or solid-state memory, magnetic tape, removable computer disk, random access memory (RAM), read-only memory (ROM), hard disk, and optical disc. Optical discs may include optical disc-read-only memory (CD-ROM), optical disc-read / write (CD-RW), and DVD.

[0076] In summary, this invention, based on the video extraction request issued by the customer service platform, obtains the time period of the surveillance video to be extracted and the identifier of the recording device to which the surveillance video belongs. Based on the recording device identifier, the corresponding recording device is located, and a video file upload request is sent to the recording device, thereby extracting the surveillance video returned by the recording device. Considering abnormal factors such as network interruptions or device power outages, if a transmission interruption occurs during the process of sending the video file upload request to the recording device and receiving the surveillance video returned by the recording device, it will automatically retry until the transmission is successful. This solves the problem that in the current surveillance video extraction process, when video transmission fails due to external reasons such as network outages, the video files cannot be recovered immediately. Each video extraction adopts a task-level approach, with one task representing one video extraction operation. Tasks ensure that all video files are ultimately extracted to the server each time. A delay queue is introduced to ensure that individual video files under an extraction task can be retried after an extraction interruption, preventing abnormal scenarios such as device network interruptions or restarts. Extraction time and video file number limits are added, such as a single extraction not exceeding 30 minutes and no more than 3 files being extracted at the same time. This is mainly to prevent network problems caused by the device being constantly uploading files or too many files being uploaded at the same time, which could affect the normal use of other device functions. By listening for device login messages, previously failed video files can be extracted immediately. Secondly, retry logic is implemented on the server side. If a video file upload on the device is interrupted due to network reasons and fails to respond to the server within the preset upload time, the server will resend the video file extraction command until the extraction is complete. Special handling is implemented for files that are about to be overwritten on the device. Each time video is extracted, the video files to be extracted are locked before being overwritten until extraction is complete, effectively ensuring the integrity of the video files. The video extraction method described in this application aims to restore the video extraction function as quickly as possible without manual intervention when the device returns to normal, regardless of any abnormal situation on the device, maximizing the success rate of video extraction and better assisting customer service personnel in on-site reconstruction and rapid decision-making. Therefore, this invention effectively overcomes some practical problems in the prior art, thus having high utilization value and significance.

[0077] The above embodiments are merely illustrative of the principles and effects of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by those skilled in the art without departing from the spirit and technical concept disclosed in the present invention should still be covered by the claims of the present invention.

Claims

1. A method for extracting surveillance video, characterized in that, Includes the following processes: In response to a video extraction request, the time period of the surveillance video and the identifier of the recording device to which the surveillance video belongs are obtained; Based on the recording device identifier, the corresponding recording device is located and obtained, and a video file upload request is sent to the recording device; wherein, the recording device stores the surveillance video; Extract the surveillance video returned by the recording device; wherein, if a transmission interruption occurs during the process of sending the video file upload request or receiving the surveillance video, the process will automatically retry until the transmission is successful. When extracting the surveillance video, the system queries the delay queue to see the number of files currently being extracted by the recording device. It then determines whether the number of files being extracted is less than a preset file number threshold. If the number of files is less than the threshold, a single file upload command is sent to the delay queue, which in turn sends a video file upload request to the iov-hivemq of the vehicle networking platform. Upon receiving the video file upload request, iov-hivemq sends the surveillance video information for the required time period to the recording device. After sending, the current file upload request is added to the delay queue. After a preset upload duration in the delay queue, the system checks whether the file upload was successful. If it is unsuccessful, it is automatically retransmitted.

2. The method for extracting surveillance video according to claim 1, characterized in that, Before sending a video file upload request to the recording device, the method further includes: performing a pre-verification of the surveillance video, the pre-verification process including: Determine whether the duration of the monitored video is greater than or equal to a preset duration threshold; If the duration of the surveillance video is greater than or equal to the duration threshold, the surveillance video is divided into multiple consecutive sub-videos, and the duration of each sub-video is less than the duration threshold. If the duration of the surveillance video is less than the duration threshold, then based on the current cumulative extraction duration and online status of the recording device, it is determined whether the surveillance video meets the preset extraction criteria, and if the extraction criteria are met, a video file upload request is sent to the recording device.

3. The method for extracting surveillance video according to claim 2, characterized in that, After performing pre-verification on the surveillance video, the method further includes: Determine if there are duplicate video extraction requests; If the same video extraction request exists, return the task containing the existing video extraction request; If no identical video extraction request exists, a video file upload request is sent to the recording device.

4. The method for extracting surveillance video according to claim 1, characterized in that, Before sending the video file upload request to the recording device, the method further includes: sending a monitoring video lock request to the recording device to lock the monitoring video.

5. The method for extracting surveillance video according to claim 1, characterized in that, The automatic retry mechanism in case of transmission interruption includes: Receive online information transmitted by the recording device; Determine whether the time limit of the monitored video exceeds a preset time range; If the time limit of the monitored video exceeds the specified time range, the operation will be stopped; If the time limit of the monitored video does not exceed the time range, a video extraction request is resent to the recording device.

6. The method for extracting surveillance video according to claim 5, characterized in that, After the stop operation is completed, the method further includes: sending a prompt message containing the timeout reason to a preset display interface.

7. The method for extracting surveillance video according to claim 1, characterized in that, After extracting the surveillance video returned by the recording device, the method further includes: sending a surveillance video unlock request to the recording device to unlock the surveillance video.

8. A system for extracting surveillance video, characterized in that, The system includes: The video information acquisition module is used to respond to a video extraction request and acquire the time period of the monitored video and the identification of the recording device to which the monitored video belongs; The recording device acquisition module is used to find and acquire the corresponding recording device based on the recording device identifier, and send a video file upload request to the recording device; The video transmission module is used to extract the surveillance video returned by the recording device; wherein, if a transmission interruption occurs during the process of sending the video file upload request or receiving the surveillance video, it will automatically retry until the transmission is successful. When extracting the surveillance video, the system queries the delay queue to see the number of files currently being extracted by the recording device. It then determines whether the number of files being extracted is less than a preset file number threshold. If the number of files is less than the threshold, a single file upload command is sent to the delay queue, which in turn sends a video file upload request to the iov-hivemq of the vehicle networking platform. Upon receiving the video file upload request, iov-hivemq sends the surveillance video information for the required time period to the recording device. After sending, the current file upload request is added to the delay queue. After a preset upload duration in the delay queue, the system checks whether the file upload was successful. If it is unsuccessful, it is automatically retransmitted.

9. A device for extracting surveillance video, characterized in that: The method includes a processor coupled to a memory storing program instructions, which, when executed by the processor, implement the method of any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: Includes a program that, when run on a computer, performs the method as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Video retrieval method and device for video surveillance system

    CN109213898A

  • Video uploading method, video uploading device and computer readable storage medium

    CN110213623A

  • Task management method and device and computer equipment

    CN112685145A