Multi-type video file block storage system and method
A video file and block storage technology, which is applied to the video file block storage system, multi-type video file block storage system, and the storage field of the above-mentioned multi-type video file block storage system, can solve the problem of system operation efficiency reduction, easy Generate disk fragments, waste disk space, etc., to reduce the burden, save disk resources, and improve utilization
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0042] see figure 1 , the present invention discloses a block storage system for multi-type video files, the storage system prepares a video disk space for video recording in advance, the size and location of the video disk space are specified by the user; the disk space is divided into more low-level Subdirectory, create block file again in described subdirectory; In each subdirectory, create a configuration file (the tracking information of described configuration file can include: the free block quantity of current directory, the minimum free block number, the number of each block usage) to track the usage of all block files in the current directory; when recording, generate a hard link file pointing to the block file in the recording directory, when the length of the video exceeds the size of the block file, then allocate the next one to it block file until the end of this recording; store the video information in the database for users to query and watch; store the inform...
Embodiment 2
[0066] The difference between this embodiment and Embodiment 1 is that in this embodiment, step 2 in the method of Embodiment 1 may not be included, that is, there is no need to divide the disk space into more lower-level subdirectories.
[0067] In this embodiment, video recording disk space is prepared in advance for video recording; block files and a configuration file are created in the disk to track the usage of all block files; when video recording, a hard link file pointing to block files is generated; when video recording When the length exceeds the size of the block file, the next block file will be assigned to it until the end of the video recording; the video information will be stored in the database for users to query and watch; the video block information will also be stored in the database; make a copy A table of correspondence between recordings and recording blocks, which lists one or more recording block files corresponding to one recording, or multiple record...
Embodiment 3
[0069] A video recording software is installed on a certain DVR. When the software is running, the video files are usually stored separately according to the video recording time and video channel. When the video recording starts, the file is created, and when the user issues a delete video command, the file is deleted.
[0070] Now, the solution of this embodiment is to prepare all video disk space (its size and position are specified by the user) for video recording in advance, and divide this space into file blocks of equal size for unified management; in actual application, The disk space can be further divided into more lower-level subdirectories, and block files are created in these subdirectories, and the subdirectories are named in a numbered manner; these block files are named in a BlockXXX (numbered) manner.
[0071] In each subdirectory, create a configuration file to track the usage of all blocks in the current directory. The tracking information includes: the numbe...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 