Video Cache Management for Non-Sequential I-Frame Storage
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing data storage devices face performance deterioration due to frequent small-block storage, leading to memory space fragmentation, and fail to fully utilize cache space when storing non-sequentially written video data, resulting in suboptimal storage performance.
Innovation Solution
A method and apparatus that utilize a dual-cache space system with prioritized writing, where I-frame-group video data is cached in a first cache space with higher priority, and when full, all data is written to memory, and the cache is emptied, allowing for increased data writing amounts and reduced memory writing times.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If data is written to cache space sequentially, then cache space is utilized, but when cache space is not full, data is written to memory space in advance causing cache space to cannot be fully utilized
Solution Approach 1:
The patent performs preliminary detection to check whether written data exists in cache space and whether the target writing position overlaps with existing data before writing. This preliminary action prevents premature writing to memory space and enables full utilization of cache space for non-sequentially written video data, thereby improving storage performance without sacrificing cache utilization
2Productivity
If frequent small-block storage is performed, then data is stored in memory space, but memory space becomes fragmented causing storage performance to deteriorate
Solution Approach 1:
The patent introduces cache space as an intermediary between the writing terminal device and memory space. Non-sequentially written video data is first cached in the cache space, which acts as a buffer. This intermediary approach allows the system to store data without immediately writing to memory space, preventing memory fragmentation while maintaining data storage capability
3Productivity
If cache space is used for transferring and caching data, then memory writing times are reduced, but when cache space is not full, data is written to memory space in advance reducing cache space utilization
Solution Approach 1:
The patent performs preliminary detection before writing data to cache space to check for existing data and position overlaps. This preliminary action ensures that cache space is fully utilized for non-sequentially written video data by preventing premature writes to memory space, thereby extending cache space usage time and improving overall storage performance
Data Source
AI summary
A method for storing video data includes, when receiving the I-frame data to be stored, detecting whether the written data exists in the video cache space; when detecting that the written data exists in the video cache space, reading a target writing position of the I-frame data to be stored and determining whether the target writing position is located within a position range corresponding to the written data in the first cache space; when determining the target writing position is located within the position range, writing, based on the target writing position, the I-frame data to be stored to the first cache space for caching and detecting whether the first cache space is full; and when detecting that the first cache space is full, writing all the video data in the video cache space to a memory space of the terminal device for storage and emptying the video cache space.


