Real-time video storage and retrieval method and device
A real-time video and video technology, applied in the field of video storage, can solve the problems of inefficient video retrieval, abnormal loading of block index files, and inability to retrieve, and achieve the effect of fast retrieval.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0056] The embodiment of the present invention provides a real-time video storage method. In the present invention, the storage medium is divided into multiple storage blocks, and each storage block is divided into multiple page frames, and each page frame includes a page body and a page header , store the real-time video in the page body, and record the real-time video index in the page header, so that the real-time video can be quickly retrieved through the page frame, even if the block index file is abnormal, the real-time video can be quickly retrieved.
[0057] Such as figure 1 As shown, the method provided by the embodiment of the present invention is used for real-time video storage, including steps S110-S120, as follows.
[0058] S110. Select a storage block for storing real-time video from a storage medium, where the storage block includes multiple page frames, and each page frame includes a page header and a page body.
[0059] Wherein, the above-mentioned storage m...
Embodiment 2
[0084] Embodiments of the present invention provide a real-time video retrieval method, such as image 3 As shown, steps S310-S330 are included, specifically as follows.
[0085] S310, determine the number of page frames included in the storage block, and use a linear ratio method to locate the page frame where the video to be retrieved is located according to the number of page frames, the duration of the real-time video stored in the storage block, and the time of the video to be retrieved .
[0086] The above-mentioned time of the video to be retrieved refers to the actual occurrence time of the video to be retrieved, that is, the actual collection time of the video frame to be retrieved.
[0087] The number of page frames included in the above storage block can be calculated according to the capacity of the storage block and the capacity of the page frame by calculating the capacity of the storage block / the capacity of the page frame.
[0088] The duration of the real-ti...
Embodiment 4
[0114] An embodiment of the present invention provides a real-time video retrieval device, which is used to implement the real-time video retrieval method provided in Embodiment 2 above.
[0115] Such as Figure 5 As shown, the real-time video retrieval device provided by the embodiment of the present invention includes a positioning module 510, an acquisition module 520 and a retrieval module 530;
[0116] The above positioning module 510 is used to determine the number of page frames included in the storage block, and according to the number of page frames, the duration of the real-time video stored in the storage block, and the time of the video to be retrieved, use a method of limited ratio to locate the above-mentioned to-be-retrieved video. Retrieve the page frame where the video is located;
[0117] The acquisition module 520 is configured to acquire the video frame and video frame information in the page body corresponding to the page header according to the page head...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


