Monitoring video stream automatic filing and optical disk storage system and device
By using an automatic video stream archiving and optical disc storage system, and leveraging a Blu-ray disc library and an automatic video stream capture and archiving system, the problem of real-time saving and long-term storage of surveillance video data has been solved, achieving automated data management and security, and reducing operation and maintenance costs.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- HUALU OPTICAL STORAGE RES INST DALIAN CO LTD
- Filing Date
- 2025-12-30
- Publication Date
- 2026-04-17
AI Technical Summary
Existing surveillance video data is difficult to convert from video streams to general video files efficiently and accurately, failing to meet the requirements for archiving time limits, retention periods, and subsequent data management and retrieval. Furthermore, the disk storage of surveillance storage devices cannot cope with the ever-increasing demand for long-term archiving.
An automatic video stream archiving and optical disc storage system is adopted, including a Blu-ray disc library with a built-in management server and an automatic video stream capture and archiving system. The system achieves automatic archiving of video data through format conversion and optical disc burning, and uses ffprobe and FFmpeg tools for video detection and format conversion, combined with the Blu-ray disc library for long-term storage.
It enables real-time saving and long-term secure storage of surveillance video data, reduces operation and maintenance costs, improves work efficiency, ensures data integrity and availability, and solves the problems of high cost and high risk associated with magnetic storage media.
Smart Images

Figure CN121884876A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of Blu-ray storage technology, and in particular to a system and apparatus for automatic archiving and optical disc storage of surveillance video streams. Background Technology
[0002] With the development of information technology, industries such as banking, insurance, and government public resource trading centers have gradually generated a large amount of surveillance video data in their daily production and work processes. According to relevant national regulations, court hearing audio and video recordings should be stored and backed up online or offline using specialized equipment. The court's trial department should transfer all case documents, electronic files, and court hearing audio and video recordings for archiving within three months of case completion. The retention periods for litigation files and related surveillance videos are divided into permanent and periodic categories. Currently, the real-time, long-term, secure, and proper storage of surveillance video data such as trial data, electronic case files, and court hearing audio and video recordings has become an urgent technical issue that needs to be addressed.
[0003] Currently, surveillance video data, generated in real-time by surveillance cameras, is stored as video streams on surveillance storage devices such as hard disk recorders and cloud storage. These video streams require a surveillance storage system or security management platform to function. Due to the closed nature of video storage device interfaces, burning and archiving video streams requires multiple manual operations, a cumbersome process with a high error rate. Data retrieval is also complex, resulting in high management costs and the risk of data loss. Copying surveillance video to other storage media or playing it on other systems requires converting the video stream into a video file. Furthermore, the disk storage of surveillance storage devices is limited by scalability and cost, making it unable to meet the ever-increasing demand for long-term archiving.
[0004] Therefore, based on the above problems, current surveillance videos, after being converted into video streams, are difficult to convert into general video files efficiently, accurately, and securely, and cannot meet the requirements for archiving time limits, retention periods, and subsequent data management and retrieval. Summary of the Invention
[0005] This invention provides a system and apparatus for automatic archiving and optical disc storage of surveillance video streams to overcome the aforementioned technical problems.
[0006] To achieve the above objectives, the technical solution of the present invention is as follows: An automatic archiving and optical disc storage system for surveillance video streams includes a Blu-ray disc library with a built-in management server, and further includes an automatic video stream capture and archiving system and a storage management system that execute commands from the built-in management server. The automatic video stream capture and archiving system is used to capture video streams from front-end monitoring storage devices, convert the video stream format, and burn them to optical discs to archive the videos into a Blu-ray disc library, thereby saving the monitoring videos. The storage management system is used to collect optical disc data stored in the Blu-ray disc library, archived data from the automatic video stream capture and archiving system, and video data, and to uniformly schedule and manage the optical disc data, archived data, and video data to complete the management and retrieval of the monitoring videos.
[0007] Furthermore, the automatic video stream capture and archiving system includes a task management module, a real-time video stream capture module, a format conversion module, and an archiving management module; The task management module is used to configure and manage video stream capture tasks and send capture instructions to the real-time video stream capture module. The real-time video stream capture module is used to receive capture instructions, capture video stream data and source data from the monitoring video storage device according to a preset protocol, and store them in the first temporary cache; The format conversion module is used to perform video detection and format conversion on the video stream data in the first temporary cache, segment and verify the converted video file, and store the verified video file in the second temporary cache; The archive management module is used to burn video files from the second temporary cache to Blu-ray discs and to perform consistency checks on the burning data during the burning process.
[0008] Furthermore, the storage management system includes a media management module and a database module; The media management module is used to obtain the correspondence between video files and optical discs in the archive management module, extract the identifiers and statuses of optical disc cartridges stored in the Blu-ray disc library, and manage and save them. The database module is used to collect, store, manage, and retrieve video data and mapping relationships. The video data and mapping relationships include: video stream source data, video file status and location, and configuration information for the capture task.
[0009] Furthermore, based on the format conversion module, the specific steps of performing video detection and format conversion on the video stream data in the first temporary buffer, segmenting and verifying the converted video file, and storing the verified video file in the second temporary buffer include: The captured video stream is checked for integrity using the ffprobe tool. If it is found to be corrupted, a predefined re-capture mechanism is triggered; if the video stream is intact, the following format conversion operations are performed: Use FFmpeg to uniformly convert the video encoding of the video stream to H.264 and the audio encoding to AAC. An automatic segmentation script was written using FFmpeg's concat and split tools to configure the maximum size threshold for each output file and the duration threshold for a single segment. The converted video data was then segmented by duration according to the preset target file size, and a time redundancy margin was set at the segmentation point. The segmented video is verified using the ffprobe tool. If it is correct, it is encapsulated and cached; if it is incorrect, it is re-converted and segmented. The verified video data is encapsulated into a video file of a preset format and stored in the second temporary cache.
[0010] Furthermore, based on the task management module, the specific content for configuring and managing video stream capture tasks includes: Set up a timed video stream capture task, which includes single tasks and loop tasks.
[0011] Furthermore, the default protocol is RTSP or GB / T 28181 protocol.
[0012] Based on the same inventive concept, a monitoring video stream storage and playback device is also proposed, including an automatic archiving and optical disc storage system for monitoring video streams and an online playback system; The online playback system includes a real-time preview module and a file playback module; The real-time preview module is used to obtain real-time video streams from surveillance video storage devices via streaming media protocols and play them in a browser. The file playback system is used to read specified archived video files from the Blu-ray disc library, cache them, and then play them in a browser through an embedded player.
[0013] Beneficial effects: This invention provides an automatic archiving and optical disc storage system for surveillance video streams. By capturing and burning the video in real time, it solves the real-time storage requirement of key surveillance video data. Through format conversion, it ensures data integrity and availability, decouples the data from the original system, and guarantees the accuracy of the video. This system automates all operations without requiring manual intervention, reducing maintenance costs and operational errors, and significantly improving work efficiency. It also ensures the secure long-term preservation of important monitoring data by using Blu-ray storage technology, which burns the data onto optical discs for storage. This solves the problems of high cost, high risk, and inconvenience in subsequent management and retrieval associated with storing important video data on magnetic storage media for extended periods. Attached Figure Description
[0014] 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 some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0015] Figure 1 This is a system diagram of an automatic archiving and optical disc storage system for surveillance video streams provided by the present invention; Figure 2 A system block diagram for an automatic video stream capture and archiving system; Figure 3 A flowchart illustrating the operation of an automatic video stream capture and archiving system; Figure 4 This is a diagram illustrating the steps involved in burning a CD / DVD. Detailed Implementation
[0016] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0017] This embodiment provides a system for automatically archiving and storing surveillance video streams on optical discs, such as... Figure 1 As shown, the Blu-ray disc library includes a built-in management server, and also includes: an automatic video stream capture and archiving system and a storage management system that execute commands from the built-in management server; The automatic video stream capture and archiving system is used to capture video streams from front-end monitoring storage devices, convert the video stream format, and burn them to optical discs to archive the videos into a Blu-ray disc library, thereby saving the monitoring videos. The storage management system is used to collect optical disc data stored in the Blu-ray disc library, archived data from the automatic video stream capture and archiving system, and video data, and to uniformly schedule and manage the optical disc data, archived data, and video data to complete the management and retrieval of the monitoring videos.
[0018] Specifically, cameras (IPCs) are connected to surveillance video storage devices (NVR / DVR, etc.) via a network. The real-time video data acquired by each IPC is stored in the NVR / DVR in the form of "stream data". The cameras and surveillance video storage devices are the data generating ends and are not included in this system. This system adopts an all-in-one form, which includes an automatic video stream capture and archiving system, a storage management system, and a Blu-ray disc library. The Blu-ray disc library has a built-in management server for deploying the management and control software of the automatic video stream capture and archiving system and the storage management system. The built-in management server connects to the disc library via SAS and USB and is responsible for data transmission and command communication. The Blu-ray disc library has a built-in management ARM board that deploys the disc library driver (DA Driver). The robotic arm and the optical drive provide SMC (SCSI Media Changer Commands, robotic arm control commands) and MMC (Multi Media Commands, optical drive control commands) communication interfaces, respectively. When capturing video, the built-in management server issues capture commands, and after capture, the format is converted. The built-in server controls a robotic arm to move the optical drive and disc to the designated location for disc burning. After burning, the burned disc is placed back into the Blu-ray disc library for storage. In this embodiment, the Blu-ray disc library is a conventional setting for disc storage, and the built-in management server is a common technical means used by those skilled in the art. Those skilled in the art can add processing code according to actual needs, so the Blu-ray disc library and manager will not be described in detail.
[0019] In a specific embodiment, such as Figure 2 As shown, the automatic video stream capture and archiving system includes a task management module, a real-time video stream capture module, a format conversion module, and an archiving management module; The task management module is used to configure and manage video stream capture tasks and send capture instructions to the real-time video stream capture module. Specifically, it sets up timed video stream capture tasks, which include single tasks and loop tasks. Specifically, such as Figure 3 As shown, the task management module can set up timed video stream capture tasks through built-in management services. Capture tasks are divided into two types: single tasks and loop tasks. When setting up tasks, technicians can arbitrarily set the start and end times of capture according to actual needs and send capture instructions to the real-time video stream capture and storage module. Setting task times and triggering capture instructions at regular intervals are common technical means of automated task scheduling. Those skilled in the art know how to set specific capture instructions to achieve the effect of timed capture. The real-time video stream capture module is used to receive capture instructions, capture video stream data and source data from the monitoring video storage device according to a preset protocol, and store them in the first temporary cache; Specifically, the streaming data generated by the camera (IPC) is a dynamic data set that cannot be copied or burned to a Blu-ray disc in the form of a file. Therefore, a portion of the storage space is designated in the system's built-in management server as a first temporary cache to cache the captured video streaming data and source data. Currently, mainstream surveillance video storage devices use RTSP or GB / T 28181 protocols for data transmission and switch control. This embodiment also adopts RTSP or GB / T 28181 protocols. According to the set task, it automatically captures the video stream from the specified camera (IPC) within the specified time node and captures the video stream from the surveillance video storage device together with its management source data into the first temporary cache cache1 to provide a data foundation for subsequent format conversion. To improve data storage efficiency and transmit and store as much video stream data as possible under the same bandwidth environment, the real-time video stream capture and storage module has a built-in video compression card to compress and extract frames from the captured video stream data, so that the Blu-ray disc library can archive and store monitoring data for a longer period of time. The format conversion module is used to perform video detection and format conversion on the video stream data in the first temporary cache, segment and verify the converted video file, and store the verified video file in the second temporary cache; Specifically, different surveillance storage manufacturers will perform additional encapsulation and encoding on the video streams stored on their devices. If the video stream needs to be saved to Blu-ray discs and can be played online or offline, the encoding format must be converted. This module converts the video stream in cache1 into a video file and, through configuration settings, outputs video streams of various encapsulation formats to the second temporary cache cache2 in the original format, mkv format, and mp4 format. For pre-encapsulated and encoded video files from surveillance storage vendors, this format conversion module is specifically used for: The ffprobe tool is used to perform integrity checks on the captured video stream. If it is found to be corrupt, a predefined re-capture mechanism is triggered. Specifically, the ffprobe tool is used to extract media file information from the video stream that has been captured in chace1, quickly checking whether the video data is complete and can be played normally. If the video stream is corrupted, the error information is exchanged with the real-time video stream capture module for retrying the capture. After multiple failures, an error is indicated in the video stream, and subsequent format conversion and archiving operations are no longer performed. The ffprobe tool is a commonly used tool in the field of video processing, and the detection can be performed directly using the ffprobe tool, so the detection process will not be described in detail. If the video stream is complete, perform the following format conversion operations: Use FFmpeg to uniformly convert the video encoding of the video stream to H.264 and the audio encoding to AAC. Specifically, for pre-encapsulated and encoded video files from surveillance storage manufacturers, this module, based on the FFmpeg open-source program, converts the original video format from MPEG-PS encapsulation and HEVC (h.265) to h.264 (AVC), and the audio to AAC, so that it can be played using a common player; An automatic segmentation script was written using FFmpeg's concat and split tools to configure the maximum size threshold for each output file and the duration threshold for a single segment. The converted video data was then segmented by duration according to the preset target file size, and a time redundancy margin was set at the segmentation point. Specifically, through actual verification, the Blu-ray disc library achieves the highest burning and archiving efficiency when the single file size is 4GB. Therefore, this module, based on the open-source FFmpeg tool, uses FFmpeg's concat and split tools to write an automatic segmentation script for video streams that are deemed normal after detection. It configures the maximum size of each output file and the duration of each segment to achieve automatic segmentation of larger video files. To avoid the phenomenon of missing seconds at the beginning and end of video segments due to network latency and other factors during video duration segmentation (for example, if the end time of segment 1 is 13:59:59 and the start time of segment 2 is 14:00:00, it will give the impression of missing 1 second), a function to increase the redundancy margin of video start and end times has been added to the FFmpeg program. FFmpeg is a commonly used processing tool in the field of video processing. The operations and code for segmenting videos and adding redundancy margins are common techniques in the field of video processing. Those in the field know how to add corresponding code in FFmpeg to achieve the effects of segmentation and adding redundancy margins in time. The segmented video is verified using the ffprobe tool. If it is correct, it is encapsulated and cached; if it is incorrect, it is re-converted and segmented. Specifically, the ffprobe tool is used to perform secondary verification on the video file by judging error messages (whether the output contains "Invalid datafound..."), exit status codes (whether the return value is 0), JSON output content (whether the output is missing key information such as duration or start_time), and whether the moov atom exists (whether the output contains "moovtom not found"). This ensures the correctness and integrity of the video format conversion and segmentation. The verified video data is encapsulated into a video file of a preset format and stored in the second temporary cache; The archive management module is used to burn video files from the second temporary cache to Blu-ray discs and to perform consistency checks on the burned data. Specifically, this module mainly provides an archiving function for automatically burning video files to Blu-ray discs. That is, when files in cache2 change (added or modified), they are automatically burned to Blu-ray discs for long-term archiving. The Blu-ray disc library uses a disc cartridge (containing 12 Blu-ray discs) as the smallest storage medium unit. After loading the disc cartridge into the Blu-ray drive, the disc burning operation is performed. The specific steps are as follows: Figure 4 As shown, the preparation stage includes optical drive locking, disc tray application, and capacity confirmation; the burning stage includes loading the disc tray and burning data; and the end stage includes capacity update, data verification, and optical drive release. In this embodiment, data verification uses MD5 value verification. The optical disc burning process and operation in this module adopt conventional optical disc burning and verification methods. The locking of the optical drive, disc cartridge application and capacity confirmation are all performed through the built-in management server. The capacity confirmation command is sent to the media management module, and the disc cartridge application command and locking command are sent to the built-in server of the Blu-ray disc library. The code for locking, application and capacity confirmation is common knowledge to those skilled in the art, so it will not be described in detail.
[0020] In a specific embodiment, the storage management system includes a media management module and a database module; The media management module is used to obtain the correspondence between video files and optical discs in the archive management module, extract the identifiers and statuses of optical disc cartridges stored in the Blu-ray disc library, and manage and save them. Specifically, this system uses Blu-ray discs (cassettes) as the archival storage medium. To facilitate quick searching and management, each disc cassette is embedded with a unique identifier. The media management module obtains the correspondence between the burned video files and the burned discs and disc cassettes in the archival management module, and extracts the identifier, capacity, location, and status information of each disc (cassette) pre-saved in the Blu-ray disc library, as well as the user and group relationships of each disc (cassette). When the archive management module sends a disc cartridge capacity query command, it returns the capacity of the corresponding disc cartridge. When the archive management module completes disc burning, it receives the complete burning command, updates the disc cartridge capacity, and returns the updated capacity to the Blu-ray disc library. At the same time, it extracts the correspondence between video files, disc cartridges, and discs. When batch executing video file tasks, it automatically classifies the corresponding disc cartridge IDs and performs secondary classification and merging of task IDs for the same disc cartridge to reduce the number of disc cartridge exchanges and improve data migration efficiency. The database module is used to collect, store, manage, and retrieve video data and mapping relationships. The video data and mapping relationships include: video stream source data, video file status and location, and configuration information for the capture task. Specifically, this module stores information including surveillance cameras, surveillance storage devices, start and end times, and the corresponding relationships between video stream files to quickly locate the files archived by a specified camera at a specified time; and the status of the video stream files (cache1 / cache2 / CD library) to quickly determine whether to migrate the video stream files back from the hard disk cache or to call the corresponding interface of the Blu-ray CD library for reading. In this embodiment, saving and retrieving data are common techniques in the field of data storage. Those skilled in the art can edit corresponding instructions according to actual needs, so the specific retrieval and saving process will not be described in detail.
[0021] The present invention also provides a surveillance video stream storage and playback device, comprising an automatic archiving and optical disc storage system for surveillance video streams and an online playback system: The online playback system includes a real-time preview module and a file playback module; The real-time preview module is used to obtain real-time video streams from surveillance video storage devices via streaming media protocols and play them in a browser. The file playback system is used to read specified archived video files from the Blu-ray disc library, cache them, and then play them in a browser through an embedded player.
[0022] Specifically, in order to check whether the surveillance camera is in real-time recording, or to verify the start and end times of surveillance videos that are planned to be archived to Blu-ray storage for a long time, whether the camera is correct, or to confirm whether the video files burned to Blu-ray storage are complete, an online playback module is added to the system, which is divided into two parts: real-time preview and online playback, according to application requirements. 1. Real-time preview: Capture real-time video streams from cameras or surveillance storage devices via RTSP or GB / T 28181 protocol, and play them in real-time in a browser as streaming media via HTML5. This method is limited to real-time viewing and cannot perform operations such as pause or fast forward. It is used for checking and confirming before burning and archiving. 2. Online playback: For video files already archived in the Blu-ray disc library, the video files are cached in cache2 from the Blu-ray disc and then played through the VLC player embedded in the browser. The player allows for functions such as pause, fast forward, rewind, and point-to-point playback, enabling users to access and view video data that has been burned and archived in the Blu-ray disc library.
[0023] Real-time preview and online playback are common technologies in the field of video playback, so the specific steps will not be explained in detail.
[0024] In summary, this system addresses the real-time storage needs of critical surveillance video data through real-time capture and recording / archiving. Automatic format conversion ensures data integrity and availability, decoupling the data from the original system. Built-in video compression technology improves data transmission efficiency and storage capacity utilization. To address the complexity and error-prone nature of manual operations, the system automates all operations through planned tasks, eliminating the need for manual intervention, reducing maintenance costs and operational errors, and significantly improving work efficiency. Blu-ray storage technology ensures the secure long-term preservation of important surveillance data.
[0025] This system resolves compatibility issues between different platforms through interface calls and path sharing, simultaneously supporting video surveillance equipment and Blu-ray disc libraries from multiple manufacturers, demonstrating strong versatility. Furthermore, it addresses the high cost and high risk associated with long-term storage of critical video data on magnetic storage media.
[0026] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A surveillance video stream automatic archiving and optical disc storage system comprising a Blu-ray disc library with a built-in management server, characterized in that, It also includes: an automatic video stream capture and archiving system and a storage management system that executes commands from the built-in management server; The automatic video stream capture and archiving system is used to capture video streams from front-end monitoring storage devices, convert the video stream format, and burn them to optical discs to archive the videos into a Blu-ray disc library, thereby saving the monitoring videos. The storage management system is used to collect optical disc data stored in the Blu-ray disc library, archived data from the automatic video stream capture and archiving system, and video data, and to uniformly schedule and manage the optical disc data, archived data, and video data to complete the management and retrieval of the monitoring videos.
2. The system according to claim 1, wherein, The automatic video stream capture and archiving system includes a task management module, a real-time video stream capture module, a format conversion module, and an archiving management module; The task management module is used to configure and manage video stream capture tasks and send capture instructions to the real-time video stream capture module. The real-time video stream capture module is used to receive capture instructions, capture video stream data and source data from the monitoring video storage device according to a preset protocol, and store them in the first temporary cache; The format conversion module is used to perform video detection and format conversion on the video stream data in the first temporary cache, segment and verify the converted video file, and store the verified video file in the second temporary cache; The archive management module is used to burn video files from the second temporary cache to Blu-ray discs and to perform consistency checks on the burning data during the burning process.
3. The system of claim 1, wherein the system further comprises a video stream monitoring and automatic archiving and optical disc storage system, characterized in that, The storage management system includes a media management module and a database module; The media management module is used to obtain the correspondence between video files and optical discs in the archive management module, extract the identifiers and statuses of optical disc cartridges stored in the Blu-ray disc library, and manage and save them. The database module is used to collect, store, manage, and access video data, which includes: video stream source data, video file status and location, and configuration information for the capture task.
4. The system of claim 2 wherein, Based on the format conversion module, the specific steps of performing video detection and format conversion on the video stream data in the first temporary buffer, segmenting and verifying the converted video file, and storing the verified video file in the second temporary buffer include: The captured video stream is checked for integrity using the ffprobe tool. If it is found to be corrupted, a predefined re-capture mechanism is triggered; if the video stream is intact, the following format conversion operations are performed: Use FFmpeg to uniformly convert the video encoding of the video stream to H.264 and the audio encoding to AAC. An automatic segmentation script was written using FFmpeg's concat and split tools to configure the maximum size threshold for each output file and the duration threshold for a single segment. The converted video data was then segmented by duration according to the preset target file size, and a time redundancy margin was set at the segmentation point. The segmented video is verified using the ffprobe tool. If it is correct, it is encapsulated and cached; if it is incorrect, it is re-converted and segmented. The verified video data is encapsulated into a video file of a preset format and stored in the second temporary cache.
5. The automatic archiving and optical disc storage system for surveillance video streams according to claim 2, characterized in that, Based on the task management module, the specific content for configuring and managing video stream capture tasks includes: Set up a timed video stream capture task, which includes single tasks and loop tasks.
6. The automatic archiving and optical disc storage system for surveillance video streams according to claim 2, characterized in that, The default protocol is RTSP or GB / T 28181.
7. A device for storing and playing surveillance video streams, characterized in that, Includes a surveillance video stream automatic archiving and optical disc storage system and an online playback system as described in claim 1; The online playback system includes a real-time preview module and a file playback module; The real-time preview module is used to obtain real-time video streams from surveillance video storage devices via streaming media protocols and play them in a browser. The file playback system is used to read specified archived video files from the Blu-ray disc library, cache them, and then play them in a browser through an embedded player.