Multi-type video file block storage system and method
A technology of video file and block storage, which is applied in the parts, electrical components, image communication and other directions of TV systems, can solve the problems of low system operation efficiency, easy generation of disk fragments, and incomplete solutions, so as to reduce the burden and save money. Disk resources, the effect of improving 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 invention discloses a multi-type video file block storage system, the storage system prepares video disk space for video in advance, and the size and position of the video disk space are specified by the user; the disk space is divided into more low-level subdirectories, and then create block files in the subdirectories; in each subdirectory, create a configuration file (the tracking information of the configuration file may include: the number of free blocks in the current directory, the minimum free block number, the Usage) to track the usage of all block files in the current directory; when recording, a hard link file pointing to the block file is generated in the recording directory, and when the length of the recording exceeds the size of the block file, the next block file until the end of the video; save the video information in the database for users to query and watch; save the video block information in the database; make a table of correspo...
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, the disk space does not need to be divided into more lower-level subdirectories.
[0067] In this embodiment, the recording disk space is prepared for the recording in advance; a block file and a configuration file are created in the disk to track the usage of all block files; when recording, a hard link file pointing to the block file is generated; When the length exceeds the block file size, then assign the next block file until the end of the recording; save the recording information into the database for users to query and watch; the recording block information is also stored in the database; make a copy The correspondence table between recordings and recording blocks, the table lists one or more recording block files corresponding to one recording, or multiple recordings corresponding to one recording block.
Embodiment 3
[0069] When the recording software is installed on a certain DVR, when the software is running, the recording files are usually stored separately according to the recording time and recording channel.
[0070] Now, the solution of this embodiment is to prepare all the recording disk space (the size and location of which are specified by the user) for the recording in advance, and divide the space into file blocks of equal size for unified management; in practical applications, The disk space can be subdivided into more lower-level subdirectories, and block files are created in these subdirectories, and the subdirectories are named by number; these block files are named by BlockXXX (number).
[0071] In each subdirectory, create a configuration file to track the usage of all blocks in the current directory. The tracking information includes: the number of free blocks in the current directory, the minimum number of free blocks, and the usage of each block. The content of the con...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 