A method and system for extracting vehicle videos
By generating temporary security credentials with time, path, and access restrictions, the problems of inconvenient extraction of video data from mining vehicles, bandwidth and storage conflicts, and insufficient security are solved, enabling efficient, secure, and low-cost extraction of video data in intelligent mine safety management.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- EACON TECHNOLOGY CO LTD
- Filing Date
- 2026-03-06
- Publication Date
- 2026-06-02
AI Technical Summary
The problems of inconvenient extraction of video data from mining vehicles, prominent contradictions between bandwidth and storage, and insufficient security affect the efficiency of accident tracing and liability determination, and existing technologies cannot meet the needs of intelligent safety management in mines.
By generating temporary security credentials with time, path, and access restrictions, the system enables remote, on-demand acquisition of video data from mining vehicles. An event-driven mechanism replaces polling, ensuring the security and efficient extraction of video data.
It enables remote, on-demand acquisition of video data from mining vehicles, reducing operation and maintenance costs, improving the efficiency of accident tracing and evidence collection, enhancing video data security, and adapting to the need for efficient and low-cost extraction in complex environments.
Smart Images

Figure CN122137935A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the fields of autonomous driving and video surveillance technology, and in particular to a method and system for extracting vehicle video. Background Technology
[0002] In the construction of intelligent mines, mining vehicles, as core operating equipment, are generally equipped with video monitoring equipment and vehicle-mounted terminals. The video data they record is an important basis for accident review, production management, and safety supervision, and is crucial for improving the level of mine safety management. However, traditional technologies face the following challenges in acquiring video data from mining vehicles, which restricts the realization of the value of video data: 1. Inconvenient video retrieval. Current methods require manual disassembly of the video surveillance equipment or vehicle-mounted terminal's storage media for copying, or manual downloading via a local area network, which is time-consuming and labor-intensive, and makes it impossible to obtain video evidence remotely and in a timely manner, affecting the efficiency of accident tracing and liability determination.
[0003] 2. The conflict between bandwidth and storage is prominent. Mining vehicles generate large amounts of video data. Uploading to the cloud dispatch platform in real time wastes bandwidth and storage costs, while local storage alone makes subsequent retrieval inconvenient. It is impossible to balance convenience and cost control.
[0004] 3. Insufficient security. Open storage addresses during network transmission can easily lead to unauthorized access, and manual transmission of storage media poses risks of loss and leakage. Furthermore, existing technologies lack dedicated security protection solutions for mining scenarios, making it impossible to guarantee the security of video data. Summary of the Invention
[0005] This disclosure provides a method and system for extracting vehicle videos, which addresses the problems of inconvenient extraction, significant bandwidth and storage conflicts, and insufficient security in existing mining vehicle videos.
[0006] In view of the above problems, in a first aspect, the present disclosure provides a vehicle video extraction method, including: Based on the received user video extraction request, create a video extraction task; Based on the video extraction task, a video extraction instruction including a first temporary security credential is generated; wherein, the first temporary security credential carries operation permission information for a specified storage path in the cloud object storage unit, and the first temporary security credential is valid for a first preset operation restriction time. The system receives an event notification from the cloud object storage unit carrying the storage status of the target video, and retrieves the target video from the cloud object storage unit for the user based on the storage status of the target video; wherein the target video is uploaded by the target vehicle terminal to the designated storage path of the cloud object storage unit within the first preset operation limit time.
[0007] In conjunction with the first aspect, in one possible implementation, it further includes: The video extraction instruction is sent to the secondary dispatch platform so that the secondary dispatch platform can determine the target vehicle based on the target vehicle identification information and send the video extraction instruction to the vehicle terminal of the target vehicle. The video extraction instructions include: target vehicle identification information.
[0008] In conjunction with the first aspect, in one possible implementation, when the channel information of the video extraction instruction includes multiple channels, Generate a corresponding first temporary security credential for each channel; or, Generate a first temporary security credential for multiple channels.
[0009] In conjunction with the first aspect, in one possible implementation, retrieving the target video for the user from the cloud object storage unit based on the target video's storage status includes: When the video extraction task status is "completed" and a user's video playback or download request is received, a second temporary security credential is generated. This second temporary security credential carries operation permission information for a specified storage path in the cloud object storage unit and is valid for a second preset operation restriction period. The video extraction task status is determined based on an event notification of the target video's storage status. Based on the second temporary security credential, the corresponding target video is retrieved from the cloud object storage unit for playback or download.
[0010] In conjunction with the first aspect, in one possible implementation, the method further includes: If the video extraction task status is "task failed," the user is prompted that the video extraction request failed; the video extraction task status is determined based on an event notification regarding the target video storage status; and / or, A new first temporary security credential is generated for the video extraction task, and the video extraction task is re-executed.
[0011] In conjunction with the first aspect, in one possible implementation, the method further includes: If the target video is in a deleted storage state, set the target video status of the video extraction task to deleted; and / or, According to the video extraction task, the storage status of the target video is queried from the cloud object storage unit at preset time intervals; and if the storage status of the target video is deleted, the status of the target video of the video extraction task is set to deleted. If the target video for a video extraction task is already deleted, the user will be prompted that the target video has been deleted.
[0012] Secondly, a method for extracting vehicle videos is provided, including: The system receives a video extraction instruction sent by a cloud-based dispatch platform. The video extraction instruction includes target vehicle identification information. The video extraction instruction is generated by the cloud-based dispatch platform based on a video extraction task. The video extraction task is created by the cloud-based dispatch platform after receiving a user's video extraction request. The video extraction instruction carries a first temporary security credential. The target vehicle is determined based on the target vehicle identification information, and the video extraction instruction is sent to the vehicle terminal of the target vehicle; wherein, the vehicle terminal is used to upload the target video within the first preset operation limit time.
[0013] In conjunction with the second aspect, in one possible implementation, determining the target vehicle based on the target vehicle identification information and sending the video extraction command to the target vehicle's in-vehicle terminal includes: The connection status of the on-board terminal of the target vehicle is determined based on the target vehicle identification information. When the connection status is online, the video extraction command is sent to the vehicle terminal of the target vehicle; The method further includes: when the connection status of the target vehicle's on-board terminal is offline, sending a failure message for the video extraction task to the cloud scheduling platform, or temporarily storing the video extraction task until the connection status becomes online.
[0014] Thirdly, a method for extracting vehicle videos is provided, including: Receive a video extraction instruction; the video extraction instruction includes: a first temporary security credential; the first temporary security credential carries operation permission information for a specified storage path within the cloud object storage unit, and the first temporary security credential is valid for a first preset operation restriction time; The target video is retrieved according to the video extraction instructions, and uploaded to the specified storage path of the cloud object storage unit within the first preset operation time limit.
[0015] In conjunction with the third aspect, in one possible implementation, the video extraction instruction further includes: target video corresponding time period information and channel information; The step of retrieving the target video according to the video extraction instruction and uploading the target video to the designated storage path of the cloud object storage unit within a first preset operation time limit includes: The received video extraction command is parsed to determine the time period and channel information of the target video, and the target video of the corresponding time period is retrieved from the videos collected in the corresponding channel locally. Within the first preset operation time limit, the target video of each channel is uploaded to the designated storage path of the cloud object storage unit using the first temporary security credentials corresponding to each channel; or, Within the first preset operation time limit, the target videos corresponding to multiple channels are packaged and uploaded to the specified storage path of the cloud object storage unit using a first temporary security credential corresponding to multiple channels. The method further includes: Before uploading the target video, the target video is transcoded and / or packaged according to the playback requirements information of the cloud scheduling platform in the video extraction instruction to obtain the processed target video.
[0016] In conjunction with the third aspect, in one possible implementation, the upload progress is monitored during the process of uploading the target video to the designated storage path of the cloud object storage unit; in the event of an interruption in communication with the cloud object storage unit, a retransmission mechanism is used to upload the target video to the designated storage path of the cloud object storage unit; the retransmission mechanism includes: an HTTP breakpoint resume mechanism and / or a backoff retransmission mechanism.
[0017] Fourthly, a vehicle video extraction system is provided, comprising: a cloud-based dispatching platform, a secondary dispatching platform, an in-vehicle terminal, and a cloud object storage unit; The cloud-based scheduling platform is used to create a video extraction task based on the received user video extraction request; and to generate a video extraction instruction including a first temporary security credential based on the video extraction task; wherein the first temporary security credential carries operation permission information for a specified storage path in the cloud object storage unit, and the first temporary security credential is valid for a first preset operation restriction time. The secondary dispatch platform is used to receive video extraction instructions sent by the cloud dispatch platform, and the video extraction instructions also include: target vehicle identification information; The target vehicle is identified based on the target vehicle identification information, and the video extraction command is sent to the vehicle terminal of the target vehicle. The vehicle-mounted terminal is used to receive video extraction instructions; perform target video retrieval according to the video extraction instructions; and upload the target video to the designated storage path of the cloud object storage unit within the first preset operation limit time. The cloud object storage unit is used to store the target video in a specified storage path and send an event notification of the storage status of the target video to the cloud scheduling platform. The cloud-based scheduling platform is also used to receive event notifications of the target video storage status sent by the cloud object storage unit, and to extract the target video for the user from the cloud object storage unit according to the target video storage status.
[0018] The beneficial effects of the embodiments disclosed herein include: This disclosure provides a vehicle video extraction method and system, comprising: creating a video extraction task based on a received user video extraction request; generating a video extraction instruction including a first temporary security credential based on the video extraction task; wherein the first temporary security credential carries operation permission information for a specified storage path within a cloud object storage unit, and the first temporary security credential is valid for a first preset operation restriction time; receiving an event notification from the cloud object storage unit carrying the storage status of a target video, and extracting the target video for the user from the cloud object storage unit according to the storage status of the target video; wherein the target video is uploaded by the target vehicle terminal to the specified storage path of the cloud object storage unit within the first preset operation restriction time. The vehicle video extraction method provided in this disclosure acquires mining vehicle video data remotely on demand, eliminating manual disassembly and copying operations, reducing maintenance costs, and improving the efficiency of accident tracing and evidence collection. By employing a first temporary security credential with time-limited, path-limited, and permission-limited access, and automatic expiration, it effectively avoids unauthorized access and data leakage, thus enhancing video data security. It only uploads user-specified target videos, saving bandwidth and cloud storage resources. It can adapt to the needs of secure, efficient, and low-cost video data extraction in complex environments such as open-pit mines and underground mines, and is highly practical. Attached Figure Description
[0019] Figure 1 This is one of the flowcharts for the vehicle video extraction method provided in this embodiment of the disclosure; Figure 2 A second flowchart illustrating the vehicle video extraction method provided in this embodiment of the disclosure; Figure 3 The third flowchart of the vehicle video extraction method provided in this embodiment of the disclosure; Figure 4 This is one of the structural diagrams of the vehicle video extraction system provided in the embodiments of this disclosure; Figure 5 This is a second structural diagram of the vehicle video extraction system provided in an embodiment of this disclosure. Detailed Implementation
[0020] This disclosure provides a vehicle video extraction method and system. Preferred embodiments of this disclosure are described below with reference to the accompanying drawings. It should be understood that the preferred embodiments described herein are for illustrative and explanatory purposes only and are not intended to limit the scope of this disclosure. Furthermore, the embodiments and features described herein can be combined with each other unless otherwise specified.
[0021] This disclosure provides a vehicle video extraction method, applied to a cloud-based dispatch platform, such as... Figure 1 As shown, it includes: S101. Create a video extraction task based on the received user video extraction request; S102. Based on the video extraction task, generate a video extraction instruction including a first temporary security credential; wherein the first temporary security credential carries operation permission information for a specified storage path in the cloud object storage unit, and the first temporary security credential is valid for a first preset operation restriction time. S103. Receive an event notification sent by the cloud object storage unit carrying the storage status of the target video, and extract the target video from the cloud object storage unit for the user according to the storage status of the target video; wherein, the target video is uploaded by the target vehicle terminal to the designated storage path of the cloud object storage unit within the first preset operation limit time.
[0022] In this embodiment of the disclosure, during the process of intelligent mine construction, mining vehicles, as core equipment for mining operations, are generally equipped with video monitoring equipment and vehicle-mounted terminals. The video data they record can comprehensively reflect the vehicle's driving status, the surrounding working environment, and the operation of unmanned vehicles. This data serves as crucial evidence for mine accident tracing, production process management, and safety compliance supervision, and is of great significance for improving the level of intelligent mine safety management and reducing the incidence of safety accidents. However, traditional technologies face numerous prominent challenges in the acquisition, transmission, storage, and maintenance of video data from mining vehicles, severely restricting the full realization of the value of video data and failing to meet the actual needs of intelligent mine safety management. For example, existing video data extraction methods require manual disassembly of the storage media of video monitoring equipment or vehicle-mounted terminals for copying, or manual triggering of downloads via a local area network. These processes are cumbersome, time-consuming, and labor-intensive, and rely on manual triggering or polling-based extraction, making operational errors prone to occur. Furthermore, they cannot achieve remote and timely acquisition of video evidence, affecting the efficiency of accident tracing and liability determination. Bandwidth waste is severe, and storage costs remain high. Video surveillance of mining vehicles needs to operate 24 / 7, generating large amounts of data. Existing solutions mostly upload videos to a cloud-based dispatch platform around the clock, which not only consumes significant network bandwidth and is difficult to adapt to the limited network resources in mining areas, but also leads to a substantial increase in cloud storage costs for long-term storage of massive amounts of historical video. Furthermore, relying solely on local storage exacerbates the inconvenience of subsequent video retrieval, failing to balance ease of retrieval with cost control. Data security risks are prominent. During network transmission, storage credentials and video addresses are constantly exposed, easily leading to unauthorized access. Existing technologies lack specific security protection solutions for mining scenarios, and lack effective access control and expiration cleanup mechanisms. Manual transmission of storage media also carries the risk of lost media and leakage of sensitive video data, failing to guarantee the security and integrity of video data. Network transmission reliability is poor. The complex operating environment and unstable network environment in mining areas mean that existing technical solutions cannot guarantee the success rate and stability of uploading large files such as mining vehicle videos, further affecting the timely acquisition and effective utilization of video data.
[0023] In this embodiment, the cloud-based scheduling platform refers to a central scheduling and management platform deployed on a cloud server, possessing functions such as task management, user interface, and access control. The cloud-based scheduling platform includes a front-end, a back-end, and a database. The front-end receives video extraction requests initiated by users (monitoring terminals or authorized operators). These requests may include target vehicle identification information, vehicle terminal identification, target video corresponding channel information, and target video corresponding time period information. For example, authorized operators (mine scheduling managers) select the target vehicle and the required target video time period (e.g., 10:00 to 10:30 on a certain day) and the required channel information (e.g., front and rear cameras) through the front-end interface. Based on the received user video extraction request, the back-end creates a new video extraction task. The video extraction task includes user-specified parameters and metadata such as task identifiers for tracking and management. Based on the video extraction task, the front-end generates a video extraction instruction including a first temporary security credential. The first temporary security credential can be a pre-signed PUT URL. For example, unique object keys can be generated. For instance, the video file path can be named based on the target vehicle identification information, the vehicle terminal identification, the task identification, and the corresponding channel information of the target video, and storage space can be prepared on the cloud object storage unit. For each requested target video channel, a corresponding pre-signed PUT URL is generated. The pre-signed PUT URL carries the operation permission information for uploading the target video to the specified storage path within the cloud object storage unit within a first preset operation limit time, which can prevent unauthorized uploads and avoid leakage of credentials. The operation permission information can include upload only, and no read / overwrite / delete permissions. The first preset operation limit time can be set according to the scale of the video extraction task, for example, it can be valid for 2 hours. Within this time, the vehicle must complete the target video upload operation.
[0024] Furthermore, the cloud object storage unit is used for file storage services on the cloud scheduling platform, receiving and saving video files uploaded by vehicles. Within a first preset operation limit time, the target vehicle terminal uses a first temporary security credential to upload the target video to the designated storage path of the cloud object storage unit. After the target vehicle terminal completes the upload and the cloud object storage unit receives the target video, the cloud object storage unit generates an event notification carrying the storage status of the target video, such as "storage complete". Based on the storage status of the target video, the front end retrieves the target video from the cloud object storage unit for the user, providing the user with retrieval services such as video viewing, downloading, and playback. The database is used to generate video extraction task records based on the video extraction task, recording information such as the video extraction task, vehicle, and file. The video extraction task record includes at least one of the following: video extraction task creation time, target vehicle identification information, vehicle terminal identification, video extraction task status, target video corresponding channel information, target video corresponding time period information, designated storage path, and target video status. In the event of changes in the video extraction task or target video storage status, such as storage complete, task failure, or deletion, the database is updated for querying.
[0025] This application embodiment achieves remote, on-demand acquisition of mining vehicle video data by receiving user video extraction requests and creating video extraction tasks, eliminating the need for manual disassembly of storage media or manual downloading, significantly reducing manual maintenance costs and improving the efficiency of accident tracing and video evidence collection. By generating a video extraction instruction carrying a first temporary security credential with time, path, and access restrictions, only the minimum operational permissions required for the current task are granted, and the credential automatically expires within a preset time, avoiding long-term exposure of storage addresses and the risk of unauthorized access, significantly improving the security of video data during transmission and storage. The target video extraction is completed based on event notifications from the cloud object storage unit, using an event-driven mechanism instead of polling, reducing system resource consumption, improving response speed and execution reliability, and extracting only the user-specified target video data, effectively alleviating network bandwidth pressure in mining areas and reducing cloud storage resource waste. It is well-suited to the actual needs of secure, efficient, and low-cost extraction of mining vehicle video data in complex operating environments such as open-pit mines and underground mines, and has strong practicality and promotional value.
[0026] In another embodiment of this disclosure, the method further includes: Send a video extraction command to the secondary dispatch platform so that the secondary dispatch platform can determine the target vehicle based on the target vehicle identification information and send the video extraction command to the vehicle terminal of the target vehicle. The video extraction instructions include: target vehicle identification information.
[0027] In this embodiment, the cloud-based dispatch platform sends video extraction instructions, including target vehicle identification information, to the secondary dispatch platform. The secondary dispatch platform accurately matches and locates the target vehicle based on the target vehicle identification information, and then forwards the video extraction instructions to the corresponding vehicle-mounted terminal, achieving reliable transmission and accurate delivery of video extraction instructions in a multi-level architecture. The secondary dispatch platform is typically deployed in a local data center or edge server within the mining area for communication and task relay with vehicles within its jurisdiction. The secondary dispatch platform maintains an online connection with the cloud-based dispatch platform, for example, through a dedicated line, VPN, or public network secure channel, receiving video extraction instructions from the cloud-based dispatch platform and forwarding them to the target vehicle. The purpose of setting up a secondary dispatch platform is to consider the network environment of the mining area and reduce the latency and instability of direct communication between the cloud-based dispatch platform and the target vehicle by utilizing nearby relay. In practical applications, multiple secondary dispatch platforms can be set up according to the mining area or region, with each secondary dispatch platform managing several vehicles. By leveraging the communication management capabilities of the secondary dispatch platform for vehicle-mounted terminals, the probability of video extraction instruction loss in complex mining environments can be reduced, ensuring the stable execution of the video extraction process.
[0028] In another embodiment of this disclosure, when the channel information of the video extraction instruction includes multiple channels, Generate a corresponding first temporary security credential for each channel; or, Generate a first temporary security credential for multiple channels.
[0029] In this embodiment of the disclosure, for scenarios where the video extraction command's channel information includes multiple channels, the method for generating a first temporary security credential includes: generating a corresponding independent first temporary security credential for each channel, or generating a unified shared first temporary security credential for all multiple channels, thereby achieving flexible control of security permissions in multi-channel video extraction scenarios and adapting to the actual needs of video extraction in different mining areas. One first temporary security credential is generated for each channel. Based on multiple channel information (each channel corresponds to the acquisition path of a camera on a mining vehicle, such as the front channel, rear channel, and in-vehicle channel), an independent first temporary security credential is generated for each channel. Each first temporary security credential carries operation permission information for a specified storage path within a cloud object storage unit matching the corresponding channel, and is valid for a first preset operation restriction time; each first temporary security credential corresponds only to the video upload and extraction permissions of one channel, and they are independent and do not affect each other, achieving independent security control of video data for each channel. Another method generates a first temporary security credential for multiple channels. Based on multiple channel information, the operation permission requirements corresponding to all channels are integrated to generate a unified first temporary security credential. The first temporary security credential carries operation permission information for the specified storage path within the cloud object storage unit corresponding to all channels and is valid for a first preset operation restriction time. This single first temporary security credential enables the synchronous uploading and extraction of video data from multiple channels, eliminating the need for separate credential operations for each channel and simplifying the multi-channel video extraction process. The generation method of the first temporary security credential can be flexibly selected according to the actual application scenario. For example, when independent permission control is required for each channel's video to avoid cross-permission leakage, a separate first temporary security credential can be generated for each channel; when rapid extraction of synchronously acquired videos from multiple channels is required to simplify the operation process, a single shared first temporary security credential can be generated for all channels. This ensures both the security and convenience of video extraction in multi-channel scenarios.
[0030] In another embodiment of this disclosure, step S103 above, retrieving the target video for the user from the cloud object storage unit according to the target video storage status, includes: Step 1: When the video extraction task status is "completed" and a user's video playback or download request is received, generate a second temporary security credential. This second temporary security credential carries operation permission information for a specified storage path in the cloud object storage unit and is valid for a second preset operation restriction period. The video extraction task status is determined based on an event notification of the target video's storage status. Step 2: Based on the second temporary security credential, retrieve the corresponding target video from the cloud object storage unit for playback or download.
[0031] In this embodiment, when the video extraction task status is "completed" (i.e., the target video has been successfully uploaded to the specified storage path of the cloud object storage unit) and a user's video playback or download request is received, a second temporary security credential with time and access restrictions is generated. Then, based on this second temporary security credential, the target video is retrieved from the cloud object storage unit for the user to play or download. This achieves secondary security control of the target video extraction, ensuring the security and standardization of the entire video extraction process. Regarding step 1 above, when the target video storage status is "storage completed" (i.e., the event notification indicates the target video storage is complete), the backend sets the video extraction task status in the database to "completed," allowing the user to request playback or download of the video. Upon receiving a user's video playback or download request, the frontend generates a second temporary security credential. This second temporary security credential can be a pre-signed GET URL. For example, when a user clicks the video playback button for the corresponding video extraction task, the frontend generates a pre-signed GET URL for the uploaded target video file. This URL has a second preset operation time limit (e.g., 10 minutes or depending on the security policy) and is bound to user operation permission information. For example, it can only be used to play or download the target video under this path, and has no permission to modify, delete, or access other paths. Regarding step 2 above, the frontend can use this URL to pull video data from the cloud object storage unit for playback or download. Alternatively, this URL can be returned to the user's browser or client. The user's device uses this URL to pull video data from the cloud object storage unit via HTTP GET for playback or download. Since the video file is saved in MP4 format that supports progressive download, the user can watch while downloading and freely drag the progress bar in the player. The backend will request the corresponding range of data via HTTP Range, achieving a streaming media-like experience. The pre-signed GET URL expires after its validity period, ensuring that the video file cannot be shared and distributed for a long time. If the user needs to watch it again, they need to obtain a new valid URL from the frontend, thus ensuring access control. Building upon the existing first temporary security credential (used for uploading videos to the vehicle-mounted terminal), a second temporary security credential is added for users to retrieve videos. This implements dual time- and access-restricted control over the "upload-retrieval" process, preventing unauthorized playback and download of uploaded videos, further reducing the risk of video data leakage, and aligning with mine video data security supervision requirements. The second temporary security credential is generated and the video is retrieved only after the video retrieval task has been completed and a legitimate user request has been received, ensuring that the retrieved video is a compliant target video, facilitating traceability of user retrieval operations, and improving the standardization of mine video management.
[0032] In another embodiment of this disclosure, the method further includes: If the video extraction task status is "task failed," the user is prompted that the video extraction request failed; the video extraction task status is determined based on an event notification regarding the target video storage status; and / or, Generate a new first temporary security credential for the video extraction task and re-execute the video extraction task.
[0033] In this embodiment, for scenarios where the video extraction task status is "task failed," the user is prompted that the video extraction request has failed, informing them of the abnormal task status. A new first temporary security credential is regenerated for the failed video extraction task, and the video extraction task is re-executed based on this new first temporary security credential. This achieves rapid remediation and anomaly feedback after task failure, ensuring the integrity and reliability of the video extraction process and adapting to the video extraction needs in complex mining environments. For example, if the task execution time exceeds the first preset operation limit, the first temporary security credential expires, or the target video fails to be uploaded to the cloud object storage unit, or the target video storage status is "storage failed," and the target video storage status event notification indicates "target video storage failed," then the corresponding video extraction task status is set to "task failed," or the corresponding channel is marked as failed. In this case, the user is prompted that the video extraction request has failed. This allows the user to promptly understand the abnormal situation and take subsequent countermeasures (such as re-initiating the request or contacting maintenance personnel to troubleshoot the problem). In cases where a video extraction task fails, the existing first temporary security credential for the current task can be invalidated (if the credential has not expired, it will be forcibly invalidated to avoid security risks caused by repeated use). Based on the failed video extraction task, a new first temporary security credential is generated. This new first temporary security credential has the same configuration rules as the original first temporary security credential, carries operation permission information for the specified storage path within the cloud object storage unit, and is valid for a new first preset operation restriction time. Based on this new first temporary security credential, the video extraction task is re-executed. For example, a video extraction instruction containing the target vehicle identification information is re-sent to the secondary scheduling platform, which forwards it to the target vehicle terminal. Subsequent operations such as video uploading, event notification reception, and target video extraction are completed according to the original process until the task succeeds or fails again. If multiple failures occur, a user-initiated handling method can be triggered. A failure handling mechanism has been added to address the characteristics of unstable mining network and easy interruption of vehicle terminal communication, enhancing adaptability to complex mining environments. When a video extraction task fails, the system promptly notifies the user of the failure information, allowing them to quickly understand the task's abnormality and avoid prolonged waiting. It also provides guidance for subsequent operations (such as re-initiating a request or troubleshooting the problem), improving operational convenience.
[0034] In another embodiment of this disclosure, the method further includes: If the target video is in a deleted storage state, set the target video status of the video extraction task to deleted; and / or, According to the video extraction task, the storage status of the target video is queried from the cloud object storage unit at preset time intervals; and if the storage status of the target video is deleted, the status of the target video of the video extraction task is set to deleted. If the target video for a video extraction task is already deleted, the user will be prompted that the target video has been deleted.
[0035] In this embodiment of the disclosure, for scenarios where the target video's storage status is deleted, when the target video's storage status is detected to be deleted, the target video status of the corresponding video extraction task is set to deleted; the target video's storage status is actively queried from the cloud object storage unit, and if it is found to be deleted, the target video status of the video extraction task is updated to deleted; after the target video status of the video extraction task is updated to deleted, the user is prompted that the target video has been deleted, thereby achieving status synchronization after the target video is deleted and ensuring the standardization of the video extraction process.
[0036] After a target video is deleted (including automatic deletion upon expiration and manual deletion), the cloud object storage unit proactively sends an event notification with a "deleted" status to the cloud scheduling platform. Upon receiving this event notification, the cloud scheduling platform updates the "target video status" of the corresponding video extraction task to "deleted," synchronizing the task status with the actual storage status of the video and ensuring accurate control of the target video status by the cloud scheduling platform. To avoid status lag caused by the cloud object storage unit not proactively pushing deletion notifications, the cloud scheduling platform automatically sends a storage status query request to the cloud object storage unit for each completed video extraction task at a pre-configured preset time interval (which can be flexibly configured according to the mine video storage cycle and regulatory requirements, such as every 24 hours or every 12 hours). The query request carries information such as the target video's identifier and specified storage path. After receiving a query request, the cloud object storage unit reports the current storage status of the target video (stored, deleted, abnormal, etc.). The cloud scheduling platform analyzes the report. If the target video is determined to be deleted, it locates the corresponding video extraction task and updates its target video status to "deleted," thus proactively checking and synchronizing the deletion status of the target video. The cloud scheduling platform updates the target video status of the video extraction task to "deleted," triggering a user notification process. The user interface is marked (e.g., no longer providing a playback link, indicating the file has expired), prompting the user that the target video has been deleted. If the user still attempts to access the previously obtained second temporary security credential, it will fail because the video file does not exist, further ensuring that expired files are inaccessible. This system supports both passive detection and proactive querying, adapting to the notification mechanisms of different mining area cloud object storage units, avoiding status delays caused by the cloud object storage unit not proactively pushing deletion notifications, and ensuring that deletion status is detected promptly. To meet the management needs of mine video data for "on-demand storage and deletion upon expiration", the system clearly informs users that the video has been deleted through status synchronization and user notifications, assisting the cloud scheduling platform in completing task status cleanup and reducing the operation, maintenance and storage management costs of the cloud scheduling platform.
[0037] This disclosure provides a vehicle video extraction method, applied to a secondary dispatch platform, such as... Figure 2 As shown, it includes: S201. Receive a video extraction instruction sent by the cloud dispatch platform. The video extraction instruction includes: target vehicle identification information; wherein, the video extraction instruction is generated by the cloud dispatch platform based on the video extraction task; the video extraction task is created by the cloud dispatch platform after receiving the user's video extraction request; the video extraction instruction carries a first temporary security credential. S202. Determine the target vehicle based on the target vehicle identification information and send the video extraction command to the vehicle's onboard terminal; wherein the onboard terminal is used to upload the target video within a first preset operation time limit.
[0038] In this embodiment, the secondary scheduling platform in the multi-level scheduling architecture of the mine acts as an intermediate relay node between the cloud scheduling platform and the vehicle-mounted terminal, responsible for receiving instructions, locating vehicles, and forwarding instructions. The secondary scheduling platform maintains a continuous communication connection with the cloud scheduling platform, receiving various instructions issued by the cloud scheduling platform in real time. After the cloud scheduling platform completes the creation of a video extraction task (created after receiving a user's video extraction request), it generates a corresponding video extraction instruction based on the task and sends it to the secondary scheduling platform in the corresponding area. The secondary scheduling platform receives the video extraction instruction, which carries a first temporary security credential. This credential is a time-limited, path-limited, and permission-limited security access credential generated by the cloud scheduling platform, used by the vehicle-mounted terminal to access the cloud object storage unit when uploading the target video. The video extraction instruction includes target vehicle identification information. This target vehicle identification information can refer to identification information used to uniquely identify and distinguish different mining vehicles, including at least one of the following: vehicle number, terminal number, license plate information, equipment serial number, etc., which is the core basis for the secondary scheduling platform to locate the target vehicle. The secondary dispatch platform parses the target vehicle identification information in the video extraction command, locates the target vehicle corresponding to that identification information, and identifies the vehicle-mounted terminal installed on that vehicle. After identifying the target vehicle-mounted terminal, the secondary dispatch platform sends the video extraction command (including core content such as the first temporary security credential) to the target vehicle-mounted terminal via a stable communication link. Upon receiving the video extraction command, the target vehicle-mounted terminal parses the first temporary security credential and related requirements, and uploads the corresponding target video to the designated storage path in the cloud object storage unit within a first preset operation limit time. The secondary dispatch platform can track the forwarding status of the video extraction command; if forwarding fails, it can report back to the cloud dispatch platform to ensure a smooth process. With the secondary dispatch platform responsible for target vehicle location and video extraction command forwarding, the cloud dispatch platform does not need to directly maintain communication links with all vehicle-mounted terminals, reducing cloud resource consumption, lowering development and maintenance costs, and improving overall operational efficiency. The secondary dispatch platform can manage vehicle-mounted terminals within its local area, shortening command transmission distance, reducing the impact of network fluctuations in the mining area on command transmission, improving the speed of video extraction command issuance and response, and ensuring that vehicle-mounted terminals can complete the target video upload within the first preset operation limit time.
[0039] In another embodiment of this disclosure, step S202 above, determining the target vehicle based on the target vehicle identification information and sending the video extraction command to the vehicle-mounted terminal of the target vehicle, includes: Determine the connection status of the on-board terminal of the target vehicle based on the target vehicle identification information; When the connection status is online, the video extraction command is sent to the vehicle terminal of the target vehicle; The method also includes: sending a video extraction task failure message to the cloud scheduling platform when the connection status of the target vehicle's on-board terminal is offline, or temporarily storing the video extraction task until the connection status becomes online.
[0040] In this embodiment, the connection status of the vehicle-mounted terminal is determined based on the target vehicle identification information. If online, a video extraction command is issued; if offline, a failure message is reported to the cloud dispatch platform, or the video extraction task is temporarily stored and resent after the vehicle-mounted terminal becomes online. This achieves status prediction and anomaly handling before the video extraction command is issued, ensuring reliable transmission of the video extraction command. The cloud dispatch platform sends the video extraction command to the corresponding secondary dispatch platform via the network. The video extraction command includes: target vehicle identification information, vehicle-mounted terminal identification, target video corresponding channel information, target video corresponding time period information, specified storage path, first temporary security credential, etc. After receiving the video extraction command, the secondary dispatch platform locates the target vehicle and determines whether the target vehicle's vehicle-mounted terminal is online (via heartbeat or registration information). If online, the video extraction command is sent to the target vehicle's vehicle-mounted terminal; if offline, the video extraction task can be temporarily stored until the target vehicle's vehicle-mounted terminal becomes online before resending, or a video extraction task failure message can be returned to the cloud dispatch platform. The cloud dispatch platform updates the video extraction task status, provides user prompts, or re-initiates the video extraction task. By determining the online status of the vehicle-mounted terminal before forwarding video extraction commands, invalid transmissions to offline vehicle-mounted terminals are avoided, reducing the loss of video extraction commands. A mechanism for reporting failures or temporarily storing and retransmitting commands is provided for offline scenarios, adapting to situations where mining areas have unstable networks and vehicles frequently enter and exit signal blind spots.
[0041] This disclosure provides a vehicle video extraction method, applied to an in-vehicle terminal, such as... Figure 3 As shown, it includes: S301. Receive video extraction instruction; the video extraction instruction includes: a first temporary security credential; the first temporary security credential carries operation permission information for a specified storage path in the cloud object storage unit, and the first temporary security credential is valid for a first preset operation restriction time. S302. Perform target video retrieval according to video extraction instructions, and upload the target video to the specified storage path of the cloud object storage unit within the first preset operation time limit.
[0042] In this embodiment, the vehicle-mounted terminal refers to an onboard intelligent device installed on a mining vehicle, containing a processor, storage, and communication modules, as well as a vehicle camera interface. The vehicle-mounted terminal can locally store video data captured by the vehicle camera (typically stored in an onboard hard drive / NVR, saving loop recordings from the most recent few days). The vehicle-mounted terminal has wireless communication capabilities (such as a 4G / 5G module or WiFi) for communication with a secondary dispatch platform or a cloud dispatch platform. After receiving a video extraction command, the vehicle-mounted terminal performs local target video retrieval and export, and uploads the specified target video to a specified storage path in the cloud object storage unit. The vehicle-mounted terminal maintains a continuous communication connection with the secondary dispatch platform, receiving video extraction commands forwarded by the secondary dispatch platform in real time (these video extraction commands are generated by the cloud dispatch platform based on the video extraction task and forwarded after the secondary dispatch platform locates the target vehicle). The video extraction instruction includes: a first temporary security credential; explicitly carrying operation permissions for a specified storage path within the cloud object storage unit (such as video upload permission, without unauthorized permissions such as read, modify, or delete), and this credential is only valid within a first preset operation restriction period. The vehicle terminal must complete the subsequent target video upload operation within this validity period to avoid upload failure due to the expiration of the first temporary security credential.
[0043] After parsing the video extraction command, the vehicle-mounted terminal performs a precise search on the video data stored in local storage modules (such as vehicle hard drives and memory cards) based on the target video-related parameters (such as video time period and channel information) contained in the video extraction command. It then selects the target videos that meet the requirements (i.e., the video data specified in the user's extraction request for the corresponding time period and channel). After the search is complete, the vehicle-mounted terminal uses the first temporary security credential in the video extraction command to proactively establish a secure communication link with the cloud object storage unit and uploads the retrieved target videos to the cloud object storage unit according to the specified storage path. The vehicle-mounted terminal monitors the first preset operation time limit in real time to ensure that all target videos are uploaded within the validity period of the first temporary security credential. If it is anticipated that the upload cannot be completed within the validity period, an anomaly feedback mechanism can be triggered (feedback to the secondary scheduling platform, which then synchronizes it to the cloud scheduling platform) to avoid upload failure or data leakage due to the expiration of the first temporary security credential. After the upload is completed, the cloud object storage unit generates an event notification carrying the storage status of the target videos and sends it to the cloud scheduling platform, completing the video upload process for the vehicle-mounted terminal and laying the foundation for subsequent user video extraction. The vehicle-mounted terminal retrieves the target video based on the video extraction command and uploads only the video data that meets the requirements. This avoids bandwidth waste and storage redundancy caused by uploading irrelevant videos, aligning with the core requirement of "on-demand extraction." The "time-limited, path-limited, and permission-limited" characteristics of the first temporary security credential mean that the vehicle-mounted terminal can only access the specified storage path and upload videos within the validity period, with no additional operational permissions. This prevents data leakage, mistransmission, or tampering during video upload, ensuring video data security.
[0044] After the target video file is uploaded to the in-vehicle terminal and received by the cloud object storage unit, the object storage service will generate a file creation completion event notification. This event notification will be sent to the backend service interface of the cloud scheduling platform. The backend will locate the corresponding video extraction task based on the event notification, update the video extraction task status to "completed," and record information such as the storage address, size, and upload completion time of the target video file. If the video extraction task contains multi-channel video files, the cloud scheduling platform can wait until all target video files have been uploaded before updating the video extraction task status to "completed." For example, if the video extraction task issues two URLs, both should receive corresponding event notifications.
[0045] In another embodiment of this disclosure, the video extraction instruction further includes: time period information and channel information corresponding to the target video; In step S302 above, the target video is retrieved according to the video extraction instruction, and the target video is uploaded to the specified storage path of the cloud object storage unit within the first preset operation limit time, including: Step 1: Parse the received video extraction command to determine the time period and channel information of the target video, and retrieve the target video of the corresponding time period from the videos collected in the corresponding channel locally; Step 2: Within the first preset operation time limit, using the first temporary security credentials corresponding to each of the multiple channels, upload the target video of the corresponding channel to the designated storage path of the cloud object storage unit; or, Within the first preset operation time limit, the target videos corresponding to multiple channels are packaged and uploaded to the specified storage path of the cloud object storage unit using a first temporary security credential corresponding to multiple channels. The method also includes: Before uploading the target video, the target video is transcoded and / or packaged according to the playback requirements information of the cloud scheduling platform in the video extraction instruction to obtain the processed target video.
[0046] In this embodiment, the vehicle-mounted terminal parses the video extraction command and retrieves the target video for a specified time period from the corresponding local channel video. Within a first preset operation time limit, the target video is uploaded to the specified storage path of the cloud object storage unit using either a "single channel single credential" or "multi-channel single credential packaging" method. Before uploading the target video, it can be pre-processed by transcoding and / or encapsulation according to the playback requirements of the cloud scheduling platform to ensure accurate, secure, and compliant upload of the target video, and to adapt to subsequent user playback needs, thus connecting the entire video upload process of the vehicle-mounted terminal. Regarding step one above, after receiving the video extraction command forwarded by the secondary scheduling platform, the vehicle-mounted terminal, after completing the integrity and legality verification of the command, further parses the target video's corresponding time period information (e.g., from X:X to X:X on X:X in 202X) and channel information (e.g., front camera, rear camera, etc.) contained in the command. The local storage module of the vehicle-mounted terminal has already classified and stored the video data collected from each channel according to the "channel classification + timestamp" method for easy retrieval. Based on the parsed channel information, the vehicle terminal locates the video storage directory of the corresponding channel, and then filters out all video data collected by the channel within that time period, which is the target video to be uploaded. If the video extraction instruction contains information on multiple channels, the above search operation is performed on each channel to filter out the target video corresponding to each channel, ensuring that the search results accurately match the user's extraction needs.
[0047] Regarding step two above, after the retrieval is completed, the vehicle terminal performs the corresponding upload operation according to the type of the first temporary security credential carried in the video extraction instruction (single credential for a single channel, or multiple channels for a single credential). The entire upload process must be completed within the first preset operation limit time to ensure that the first temporary security credential is within its validity period. Since the first temporary security credential limits the target storage path and validity period, even if the upload link is leaked, it cannot be abused after the validity period expires, ensuring the security of the data upload process. If the video extraction instruction configures corresponding first temporary security credentials for multiple channels (i.e., single credential for a single channel), the vehicle terminal calls the first temporary security credential corresponding to each channel for the target video, establishes an independent secure communication link with the cloud object storage unit, and uploads the target video of that channel to the corresponding storage path specified by the first temporary security credential. The upload operations of each channel can be executed in parallel, realizing independent upload and security control of the video of each channel, and avoiding the impact of abnormal upload of a single channel on other channels. If the video extraction command configures a shared first temporary security credential (i.e., multi-channel single credential) for multiple channels, the vehicle terminal first packages the target videos corresponding to the retrieved channels according to a preset format (such as a unified encapsulation format, distinguished by channel naming) to form a unified video package. Then, it calls the shared first temporary security credential to establish a secure communication link with the cloud object storage unit, uploading the packaged video package to the designated storage path, simplifying multi-channel video upload operations and improving upload efficiency. For example, the upload uses the HTTP / HTTPS protocol's PUT method, directly transmitting file data to the designated storage path of the cloud object storage unit without going through a secondary scheduling platform. This direct transmission mode effectively reduces the traffic burden and latency of intermediate servers.
[0048] The method also includes: before uploading the target video, transcoding and / or encapsulating the target video according to the playback requirements information of the cloud scheduling platform in the video extraction instruction to obtain the processed target video. When the vehicle terminal parses the video extraction instruction, it extracts the playback requirements information of the cloud scheduling platform contained therein (such as video encoding format, resolution, encapsulation format, etc., to adapt to the playback compatibility requirements of the cloud management platform and user terminal). After completing the target video retrieval and before formal uploading, the vehicle terminal starts the video preprocessing process: if the current format (encoding, resolution) of the target video does not meet the playback requirements, it transcodes (converts the encoding format, adjusts the resolution) and / or encapsulates (converts the video encapsulation format) to ensure that the processed target video fully meets the cloud playback requirements; for example, using Fast Start encapsulation. Fast Start is an optimization technology for MP4 container format. By rearranging the internal structure of the file, it enables the video to be downloaded and played simultaneously in a network environment (progressive download / pseudo-streaming media) without waiting for the entire file to be downloaded. Fast StartMP4 can achieve immediate video playback, downloading and playing simultaneously, adapting to the user's playback needs for the target video. If the target video format already meets the requirements, no preprocessing is needed, and the subsequent upload operation can be performed directly. This preprocessing step avoids issues such as the target video being unable to play properly after being uploaded to the cloud due to format incompatibility, which could affect incident tracing or regulatory efficiency.
[0049] By analyzing time periods and channel information, the system accurately locates the target video, avoiding irrelevant video retrieval and uploading, reducing bandwidth waste and storage redundancy, and aligning with the core requirement of "on-demand extraction." It is suitable for multi-channel video acquisition scenarios in mining vehicles. Single-channel, single-credential operation enables independent security management of each channel's video, while multi-channel packaged uploading simplifies operations and improves efficiency, adapting to scenarios with varying channel numbers and extraction priorities. Upload security is ensured based on a first temporary security credential. Video transcoding and pre-processing ensure the target video meets the playback requirements of the cloud-based scheduling platform, preventing format incompatibility and playback issues for subsequent users. This meets the rapid viewing needs in scenarios such as mine supervision and accident retrospective analysis.
[0050] In another embodiment of this disclosure, the upload progress is monitored during the process of uploading the target video to the designated storage path of the cloud object storage unit; in the event of an interruption in communication with the cloud object storage unit, a retransmission mechanism is used to upload the target video to the designated storage path of the cloud object storage unit; the retransmission mechanism includes: an HTTP breakpoint resume mechanism and / or a backoff retransmission mechanism.
[0051] In this embodiment, during the process of uploading the target video to the cloud object storage unit, the vehicle-mounted terminal monitors the upload progress in real time. When a communication interruption occurs, the upload is automatically resumed through HTTP breakpoint resume and / or backoff retransmission mechanisms, ensuring that the video can be uploaded completely and stably to the designated storage path even in the unstable network environment of the mining area. The HTTP breakpoint resume mechanism can refer to a mechanism that supports continuing transmission from the point of interruption, uploading only the incomplete part, thereby improving transmission efficiency and reliability. The backoff retransmission mechanism can refer to a mechanism that retryes according to a preset time interval and number of retransmissions, avoiding network congestion and excessive system pressure caused by frequent retransmissions. During the process of uploading the target video to the designated storage path of the cloud object storage unit, the vehicle-mounted terminal monitors the upload progress in real time, records the length of uploaded data, the current transmission status, and communication connectivity, and detects in real time whether a communication interruption occurs with the cloud object storage unit. If a communication interruption such as network disconnection, signal loss, or connection timeout occurs during the upload process, the vehicle-mounted terminal immediately initiates the retransmission mechanism to continue uploading the target video to the designated storage path of the cloud object storage unit. The retransmission mechanism includes: an HTTP resume upload mechanism and / or a backoff retransmission mechanism. The HTTP resume upload mechanism allows the vehicle terminal to continue uploading the remaining data from the last interrupted position after communication is restored, without needing to retransmit the entire video file. The backoff retransmission mechanism, after a transmission failure, gradually increases the retransmission interval according to a preset strategy to avoid frequent retransmissions in a short period, reducing network load. For example, if network instability causes an upload interruption, the HTTP Range header can be used to support resume upload or a new upload request can be initiated, with a maximum of 3 retries, each interval being an exponential backoff delay, preventing temporary network failures from causing permanent task failure.
[0052] Based on the same disclosed concept, embodiments of this disclosure also provide a vehicle video extraction system, such as... Figure 4 As shown, it includes: a cloud scheduling platform 401, a secondary scheduling platform 402, an in-vehicle terminal 403, and a cloud object storage unit 404; The cloud scheduling platform 401 is used to create a video extraction task based on the received user video extraction request; and to generate a video extraction instruction including a first temporary security credential based on the video extraction task; wherein the first temporary security credential carries operation permission information for a specified storage path in the cloud object storage unit, and the first temporary security credential is valid for a first preset operation restriction time. The secondary dispatch platform 402 is used to receive video extraction instructions sent by the cloud dispatch platform. The video extraction instructions also include: target vehicle identification information. The target vehicle is identified based on its identification information, and the video extraction command is sent to the vehicle's onboard terminal. The vehicle-mounted terminal 403 is used to receive video extraction instructions; perform target video retrieval according to the video extraction instructions; and upload the target video to the specified storage path of the cloud object storage unit within a first preset operation limit time. The cloud object storage unit 404 is used to store the target video in a specified storage path and send event notifications of the storage status of the target video to the cloud scheduling platform. The cloud scheduling platform 401 is also used to receive event notifications of the target video storage status sent by the cloud object storage unit, and to extract the target video for the user from the cloud object storage unit according to the target video storage status.
[0053] In this embodiment of the disclosure, such as Figure 4 As shown, the cloud-based scheduling platform 401 may include a front-end 4011, a back-end 4012, and a database 4013. The front-end 4011 receives user video extraction requests, and the back-end 4012 creates video extraction tasks. The front-end 4011 generates video extraction instructions based on the video extraction task, including a first temporary security credential; wherein the first temporary security credential carries operation permission information for a specified storage path within the cloud object storage unit, and the first temporary security credential is valid for a first preset operation restriction time. The front-end 4011 receives event notifications from the cloud object storage unit regarding the target video storage status, and extracts the target video for the user from the cloud object storage unit according to the target video storage status. The database 4013 is used to generate video extraction task records based on the video extraction tasks. The video extraction task record includes at least one of the following: video extraction task creation time, target vehicle identification information, vehicle terminal identification, video extraction task status, target video corresponding channel information, target video corresponding time period information, specified storage path, and target video status.
[0054] like Figure 5As shown, user 501 submits a video extraction request. Frontend 4011 generates a video extraction instruction including a first temporary security credential and sends the instruction to the secondary scheduling platform 402. The secondary scheduling platform 402 forwards the instruction to the vehicle terminal 403. The vehicle terminal 403 uploads the target video to the cloud object storage unit 404 according to the extraction instruction. The cloud object storage unit 404 sends an event notification of the target video's storage status to the backend 4012. The backend 4012 updates the video extraction task record in database 4013, for example, indicating the task status as "completed." User 501 submits a video playback or download request. Frontend 4011 generates a second temporary security credential, retrieves the target video from the cloud object storage unit 404, and returns it to user 501. The cloud object storage unit 404 also provides lifecycle management for the target video; the target video is automatically deleted upon expiration, and an event notification indicating the storage status is "deleted" is sent to the backend 4012. When the target video's storage reaches a set period (e.g., 30 days), the storage service automatically deletes it. This implements a "temporary storage upon retrieval" strategy, meeting evidence collection needs while preventing the cloud object storage unit 404 from accumulating infinitely growing video data. This mechanism eliminates the tediousness of manual deletion, reduces storage costs, and improves data security. Backend 4012 updates the database 4013 video extraction task record, for example, setting the target video status to "deleted."
[0055] Based on the same disclosed concept, this disclosure also provides a cloud-based dispatching platform, a secondary dispatching platform, and an in-vehicle terminal. Since the principles by which these cloud-based dispatching platforms, secondary dispatching platforms, and in-vehicle terminals solve the problem are similar to those of the aforementioned vehicle video extraction method, the implementation of the cloud-based dispatching platform, secondary dispatching platform, and in-vehicle terminal can refer to the implementation of the aforementioned method, and the repeated parts will not be described again.
[0056] This disclosure provides a cloud-based dispatching platform, including a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the cloud-based dispatching platform is running, the processor communicates with the memory via the bus. When the machine-readable instructions are executed by the processor, the steps of the vehicle video extraction method described in any of the above embodiments are performed.
[0057] This disclosure provides a secondary scheduling platform, including a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the secondary scheduling platform is running, the processor communicates with the memory via the bus. When the machine-readable instructions are executed by the processor, the steps of the vehicle video extraction method as described in any of the above embodiments are performed.
[0058] This disclosure provides an in-vehicle terminal, including a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the in-vehicle terminal is running, the processor communicates with the memory via the bus. When the machine-readable instructions are executed by the processor, the steps of the vehicle video extraction method as described in any of the above embodiments are performed.
[0059] Through the above description of the embodiments, those skilled in the art can clearly understand that the embodiments of this disclosure can be implemented in hardware or by means of software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solutions of the embodiments of this disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, mobile hard drive, etc.) and includes several instructions to cause a computer device (such as a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments of this disclosure.
[0060] Those skilled in the art will understand that the accompanying drawings are merely schematic diagrams of a preferred embodiment, and the modules or processes in the drawings are not necessarily essential for implementing this disclosure.
[0061] Those skilled in the art will understand that the modules in the apparatus of the embodiments can be distributed in the apparatus of the embodiments as described in the embodiments, or they can be located in one or more devices different from this embodiment with corresponding changes. The modules of the above embodiments can be combined into one module, or they can be further divided into multiple sub-modules.
[0062] The sequence numbers of the embodiments disclosed above are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0063] Obviously, those skilled in the art can make various modifications and variations to this disclosure without departing from its spirit and scope. Therefore, if such modifications and variations fall within the scope of the claims of this disclosure and their equivalents, this disclosure is also intended to include such modifications and variations.
Claims
1. A method for extracting vehicle video, characterized in that, include: Based on the received user video extraction request, create a video extraction task; Based on the video extraction task, a video extraction instruction including a first temporary security credential is generated; wherein, the first temporary security credential carries operation permission information for a specified storage path in the cloud object storage unit, and the first temporary security credential is valid for a first preset operation restriction time. The system receives an event notification from the cloud object storage unit carrying the storage status of the target video, and retrieves the target video from the cloud object storage unit for the user based on the storage status of the target video; wherein the target video is uploaded by the target vehicle terminal to the designated storage path of the cloud object storage unit within the first preset operation limit time.
2. The method as described in claim 1, characterized in that, Also includes: The video extraction instruction is sent to the secondary dispatch platform so that the secondary dispatch platform can determine the target vehicle based on the target vehicle identification information and send the video extraction instruction to the vehicle terminal of the target vehicle. The video extraction instructions include: target vehicle identification information.
3. The method as described in claim 1, characterized in that, When the channel information of the video extraction instruction includes multiple channels. Generate a corresponding first temporary security credential for each channel; or, Generate a first temporary security credential for multiple channels.
4. The method as described in claim 1, characterized in that, The step of retrieving the target video from the cloud object storage unit for the user based on the target video's storage status includes: When the video extraction task status is "completed" and a user's video playback or download request is received, a second temporary security credential is generated. This second temporary security credential carries operation permission information for a specified storage path in the cloud object storage unit and is valid for a second preset operation restriction period. The video extraction task status is determined based on an event notification of the target video's storage status. Based on the second temporary security credential, the corresponding target video is retrieved from the cloud object storage unit for playback or download.
5. The method as described in claim 1, characterized in that, The method further includes: If the video extraction task status is "task failed," the user is prompted that the video extraction request failed; the video extraction task status is determined based on an event notification regarding the target video storage status; and / or, A new first temporary security credential is generated for the video extraction task, and the video extraction task is re-executed.
6. The method as described in claim 1, characterized in that, The method further includes: If the target video is in a deleted storage state, set the target video status of the video extraction task to deleted; and / or, According to the video extraction task, the storage status of the target video is queried from the cloud object storage unit at preset time intervals; and if the storage status of the target video is deleted, the status of the target video of the video extraction task is set to deleted. If the target video for a video extraction task is already deleted, the user will be prompted that the target video has been deleted.
7. A method for extracting vehicle video, characterized in that, include: The system receives a video extraction instruction sent by a cloud-based dispatch platform. The video extraction instruction includes target vehicle identification information. The video extraction instruction is generated by the cloud-based dispatch platform based on a video extraction task. The video extraction task is created by the cloud-based dispatch platform after receiving a user's video extraction request. The video extraction instruction carries a first temporary security credential. The target vehicle is determined based on the target vehicle identification information, and the video extraction instruction is sent to the vehicle terminal of the target vehicle; wherein, the vehicle terminal is used to upload the target video within the first preset operation limit time.
8. The method as described in claim 7, characterized in that, The process of determining the target vehicle based on the target vehicle identification information and sending the video extraction command to the vehicle's onboard terminal includes: The connection status of the on-board terminal of the target vehicle is determined based on the target vehicle identification information. When the connection status is online, the video extraction command is sent to the vehicle terminal of the target vehicle; The method further includes: when the connection status of the target vehicle's on-board terminal is offline, sending a failure message for the video extraction task to the cloud scheduling platform, or temporarily storing the video extraction task until the connection status becomes online.
9. A method for extracting vehicle video, characterized in that, include: Receive video extraction instructions; The video extraction command includes: a first temporary security credential; The first temporary security credential carries operation permission information for a specified storage path within the cloud object storage unit, and the first temporary security credential is valid for a first preset operation restriction time. The target video is retrieved according to the video extraction instructions, and uploaded to the specified storage path of the cloud object storage unit within the first preset operation time limit.
10. The method as described in claim 9, characterized in that, The video extraction instruction also includes: the time period information and channel information corresponding to the target video; The step of retrieving the target video according to the video extraction instruction and uploading the target video to the designated storage path of the cloud object storage unit within a first preset operation time limit includes: The received video extraction command is parsed to determine the time period and channel information of the target video, and the target video of the corresponding time period is retrieved from the videos collected in the corresponding channel locally. Within the first preset operation time limit, the target video of each channel is uploaded to the designated storage path of the cloud object storage unit using the first temporary security credentials corresponding to each channel; or, Within the first preset operation time limit, the target videos corresponding to multiple channels are packaged and uploaded to the specified storage path of the cloud object storage unit using a first temporary security credential corresponding to multiple channels. The method further includes: Before uploading the target video, the target video is transcoded and / or packaged according to the playback requirements information of the cloud scheduling platform in the video extraction instruction to obtain the processed target video.
11. The method as described in claim 9, characterized in that, During the process of uploading the target video to the designated storage path of the cloud object storage unit, the upload progress is monitored; In the event of a communication interruption with the cloud object storage unit, a retransmission mechanism is employed to upload the target video to the designated storage path of the cloud object storage unit. The retransmission mechanism includes: HTTP breakpoint resume mechanism and / or backoff retransmission mechanism.
12. A vehicle video extraction system, characterized in that, include: Cloud-based dispatching platform, secondary dispatching platform, vehicle-mounted terminal, and cloud object storage unit; The cloud-based scheduling platform is used to create a video extraction task based on the received user video extraction request; and to generate a video extraction instruction including a first temporary security credential based on the video extraction task; wherein the first temporary security credential carries operation permission information for a specified storage path in the cloud object storage unit, and the first temporary security credential is valid for a first preset operation restriction time. The secondary dispatch platform is used to receive video extraction instructions sent by the cloud dispatch platform, and the video extraction instructions also include: target vehicle identification information; The target vehicle is identified based on the target vehicle identification information, and the video extraction command is sent to the vehicle terminal of the target vehicle. The vehicle-mounted terminal is used to receive video extraction instructions; perform target video retrieval according to the video extraction instructions; and upload the target video to the designated storage path of the cloud object storage unit within the first preset operation limit time. The cloud object storage unit is used to store the target video in a specified storage path and send an event notification of the storage status of the target video to the cloud scheduling platform. The cloud-based scheduling platform is also used to receive event notifications of the target video storage status sent by the cloud object storage unit, and to extract the target video for the user from the cloud object storage unit according to the target video storage status.