CN103794233A - Method and device for storing video/audio data - Google Patents
Method and device for storing video/audio data Download PDFInfo
- Publication number
- CN103794233A CN103794233A CN201410031890.2A CN201410031890A CN103794233A CN 103794233 A CN103794233 A CN 103794233A CN 201410031890 A CN201410031890 A CN 201410031890A CN 103794233 A CN103794233 A CN 103794233A
- Authority
- CN
- China
- Prior art keywords
- storage
- video
- index information
- audio
- piece
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Abstract
The invention provides a method for storing video/audio data. Formatting is carried out on a storage card, the storage card is evenly partitioned into multiple storage blocks according to fixed size, each storage block is divided into an index part and a data part, the index parts store block index information generated by videos, and the data parts store the video/audio data. The invention further provides a device for storing the video/audio data. According to the method and device for storing the video/audio data, the index information is scattered to all the positions of the storage card, erasing times are evenly distributed, and the service life of the storage card can be prolonged.
Description
Technical field
The present invention relates to security protection video monitoring product technical field, relate in particular to a kind of storage means and memory storage of video/audio.
Background technology
At present a lot of IP Camera products are all with storage card, if SD card, TF card etc. are as the storage medium of video/audio.But this class storage card has the restriction of erasable number of times, in the time that erasable number of times reaches stipulated number, they will damage.Most security product can produce an index file for storing index information in the video/audio of storage video recording, and index information has comprised start time, length data and some other additional information of each video file.The object of index file is to want the video/audio of video recording for user can be navigated to fast.The shortcoming that produces separately an index file is, index file will be synchronizeed and upgrade with the video/audio of video recording, upgrades frequently, causes the storage area at index file place erasable frequent, thereby cause storage card regional area easily to damage, storage medium more easily damages like this.
Summary of the invention
One of the technical problem to be solved in the present invention, is to provide a kind of storage means of video/audio, reduces the erasable number of times of storage card, extends the storage card life-span.
One of problem of the present invention is achieved in that a kind of storage means of video/audio,
Storage card is formatd, make storage card average mark be slit into multiple storage blocks;
Each storage block comprises piece description and blocks of data two parts, describes the piece index information of partly storing this piece, described blocks of data part storage video/audio for described.
Further, the format of storage card is specially: the piece index information of the piece of each storage block being described to part carries out initialization, and is labeled as unused state.
Further, when storage video/audio, in internal memory, synchronously piece index information is upgraded, in the time that current storage block is write full or video recording end, this piece index information is write in current storage block.
Further, storage video/audio, the concrete steps that the piece index information of generation is stored in each storage block comprise,
After step 10, device power, the piece index information of all storage blocks in storage card is read in the internal memory of system, and form an internal memory chained list;
Step 20, start video recording or video process storage block switch time, from internal memory chained list, find out one and be labeled as untapped index information, upgrade this piece index information flag state for using;
Step 30, in blocks of data part corresponding to current storage block, write video/audio, and data length and the storage synchronously upgraded in piece index information corresponding with this piece in internal memory chained list finish temporal information;
Step 40, in the time that current storage block is write full or video recording and is finished, piece index information corresponding to this storage block in the internal memory chained list after upgrading write to piece corresponding to this storage block and describes part;
Step 50, in next storage block, repeating step 20 is to the operation of step 40, until video recording finishes.
Further, after described step 50, further comprise:
Step 60, when all storage blocks are all labeled as while having used state, adopt sequential loop coverage mode video/audio to be covered to the storage block using the earliest, thereby guarantee to be uniform to the number of operations of each storage block.
Further, the storage space of described each storage block is 4~16Mbyte.
Further, described index information comprises: resolution, audio coding form and the audio sample rate of the frame per second of the coded format of the video data of end time of initial video time, storage, data length, storage, the video data of storage, the video data of storage.
Two of the technical problem to be solved in the present invention, is to provide a kind of memory storage of video/audio, reduces the erasable number of times of storage card, extends the storage card life-span.
Two of problem of the present invention is achieved in that a kind of memory storage of video/audio, comprises formatting module and memory module;
Described formatting module: for storage card is formatd, make storage card average mark be slit into multiple storage blocks;
Described memory module: for storing video/audio, and the piece index information of generation is stored in the storage block of this video/audio of storage.
Further, described formatting module comprises:
Initialization module: carry out initialization for the piece index information of the piece of each storage block being described to part;
Mark module: do not use for the piece index information after initialization not being labeled as.
Further, described memory module comprises:
Writing module: write video/audio for the blocks of data part toward current storage block, and synchronously piece index information is upgraded in internal memory;
Update module: when expiring or record a video end for writing when current storage block, this piece index information is write in current storage block.
Further, described memory module also comprises:
Read module: for after device power, the piece index information of all storage blocks in storage card is read in the internal memory of system, and form an internal memory chained list;
Index module: in the time starting video recording or the switching of video process storage block, find out one and be labeled as untapped index information from internal memory chained list, upgrade this piece index information flag state for using;
Repeat module: in next storage block, repeat to move successively the operation of index module, writing module and update module, until video recording finishes.
Further, described memory module also comprises a covering update module,
Described covering update module: while having used state for being all labeled as in all storage blocks, adopt sequential loop coverage mode video/audio to be covered to the storage block using the earliest, thereby guarantee to be uniform to the number of operations of each storage block.
Further, the storage space of described each storage block is 4~16Mbyte.
Further, described index information comprises: resolution, audio coding form and the audio sample rate of the frame per second of the coded format of the video data of end time of initial video time, storage, data length, storage, the video data of storage, the video data of storage.
Tool of the present invention has the following advantages: the present invention is slit into a plurality of storage blocks by the storage space of storage card by a default big or small average mark, each storage block is divided into piece index information and blocks of data two parts, when storage card formats, the piece index information of each is carried out initialization and is marked as unused state; After device power, the piece index information part of all storage blocks in storage card is read in the internal memory of system, and form an internal memory chained list; When video recording, from internal memory chained list, find out one and be labeled as untapped index information, upgrade this piece index information flag state for using; Write video or voice data toward blocks of data part in storage block, and synchronously upgrade piece index information corresponding with this piece in internal memory chained list; In the time that storage block is write full or video recording end, piece index information corresponding to this storage block in the internal memory chained list after upgrading write to piece index information part corresponding to storage block.The present invention is distributed to index information (being the piece index information in each storage block) each position of storage card, erasable number of times is shared equally, to extend the storage card life-span.
Accompanying drawing explanation
Fig. 1 is the idiographic flow schematic diagram that the present invention stores video/audio.
Fig. 2 is the principle schematic of memory storage of the present invention.
Fig. 3 is the concrete principle schematic of memory storage of the present invention.
Embodiment
Please participate in shown in Fig. 1, the storage means of a kind of video/audio of the present invention,
Storage card is formatd, make storage card average mark be slit into a plurality of storage blocks; It is specially:
1) storage space of storage card is slit into a plurality of storage blocks by a default big or small average mark, this default size is: 4~16Mbyte, and the storage space of each storage block is 4~16Mbyte; Each storage block comprises that piece describes block descriptor and blocks of data Private Data two parts; Described the piece index information of partly storing this piece is described; Described index information comprises: resolution, audio coding form and the audio sample rate of the frame per second of the coded format of the video data of end time of initial video time, storage, data length, storage, the video data of storage, the video data of storage; Described blocks of data part stored video data and voice data;
2) the piece index information of the piece of each storage block being described to part carries out initialization, and is labeled as unused state;
Each storage block is divided into piece and describes part and blocks of data part, and piece is described the piece index information that part storage video recording produces, blocks of data part storage video/audio;
When storage video/audio, in internal memory, synchronously piece index information is upgraded, in the time that current storage block is write full or video recording end, this piece index information is write in current storage block.
Storage video/audio, the piece index information that video/audio is produced disperses to store in each storage block, video/audio corresponding each piece index information is stored in corresponding stored piece simultaneously, and this specifically comprises the steps:
After step 10, device power, the piece index information of all storage blocks in storage card is read in the internal memory of system, and form an internal memory chained list;
Step 20, start video recording or video process storage block switch time, from internal memory chained list, find out one and be labeled as untapped index information, upgrade this piece index information flag state for using; And upgrade the piece index information of this storage block, upgrade the information of resolution, audio coding form and the audio sample rate of the video data of frame per second, the storage of the video data of coded format, the storage of the video data of end time, data length, the storage of initial video time in this storage block, storage;
Step 30, in blocks of data part corresponding to current storage block, write video/audio, and data length and the storage synchronously upgraded in piece index information corresponding with this piece in internal memory chained list finish temporal information;
Step 40, in the time that current storage block is write full or video recording and is finished, piece index information corresponding to this storage block in the internal memory chained list after upgrading write to piece corresponding to storage block and describes part;
Step 50, in next storage block, repeating step 20 is to the operation of step 40, until video recording finishes.
Step 60, when all storage blocks are all labeled as while having used state, adopt sequential loop coverage mode video/audio to be covered to the storage block using the earliest, thereby guarantee to be uniform to the number of operations of each storage block.
In the present invention, do not finish or when the storage space of a storage block is full, repeating step 20 is to the operation of step 40 in current video recording.
Refer to shown in Fig. 2 and Fig. 3, the memory storage of a kind of video/audio of the present invention, comprises formatting module and memory module;
Described formatting module: for storage card is formatd, make storage card average mark be slit into a plurality of storage blocks;
Described memory module: for storing video/audio, the piece index information that video/audio is produced disperses to store in each storage block, video/audio corresponding each piece index information is stored in corresponding stored piece simultaneously.
Wherein, described formatting module comprises:
Initialization module: carry out initialization for the piece index information of the piece of each storage block being described to part; The operating function of described initialization module, is specially:
The storage space of storage card is slit into a plurality of storage blocks by a default big or small average mark, and described default size is 4~16Mbyte, and the storage space of each storage block is 4~16Mbyte; Each storage block comprises piece description and blocks of data two parts; Described the piece index information of partly storing this piece is described; Described blocks of data part stored video data and voice data; Described index information comprises: resolution, audio coding form and the audio sample rate of the frame per second of the coded format of the video data of end time of initial video time, storage, data length, storage, the video data of storage, the video data of storage;
Mark module: do not use for the piece index information after initialization not being labeled as.
Described memory module specifically comprises: read module, index module, writing module, update module, repeat module and cover update module;
Described read module: after device power, the piece index information of all storage blocks in storage card is read in the internal memory of system, and form an internal memory chained list;
Described index module: in the time starting video recording or the switching of video process storage block, find out one and be labeled as untapped index information from internal memory chained list, upgrade this piece index information flag state for using;
Said write module: write video/audio in blocks of data part corresponding to current storage block, and data length and the storage synchronously upgraded in piece index information corresponding with this piece in internal memory chained list finish temporal information;
Described update module: in the time that current storage block is write full or video recording end, piece index information corresponding to this storage block in the internal memory chained list after upgrading write to piece corresponding to storage block and describe part;
Repeat module: in next storage block, repeat to move successively the operation of index module, writing module and update module, until video recording finishes.
Described covering update module: be all labeled as while having used state in all storage blocks, adopt sequential loop coverage mode video/audio to be covered to the storage block using the earliest, thereby guarantee to be uniform to the number of operations of each storage block.
In addition, in the present invention, do not finish or when the storage space of a storage block is full, repeat index module, writing module and update module in current video recording.
In a word, the present invention is distributed to index information (being the piece index information in each storage block) each position of storage card, erasable number of times is shared equally, to extend the storage card life-span.
The foregoing is only preferred embodiment of the present invention, all equalizations of doing according to the present patent application the scope of the claims change and modify, and all should belong to covering scope of the present invention.
Claims (14)
1. a storage means for video/audio, is characterized in that:
Storage card is formatd, make storage card average mark be slit into multiple storage blocks;
Each storage block comprises piece description and blocks of data two parts, describes the piece index information of partly storing this piece, described blocks of data part storage video/audio for described.
2. the storage means of a kind of video/audio according to claim 1, its feature is being: the format of storage card is specially: the piece index information of the piece of each storage block being described to part carries out initialization, and is labeled as unused state.
3. the storage means of a kind of video/audio according to claim 2, it is characterized in that: when storage video/audio, in internal memory, synchronously piece index information is upgraded, in the time that current storage block is write full or video recording end, this piece index information is write in current storage block.
4. the storage means of a kind of video/audio according to claim 3, is characterized in that: storage video/audio, and the concrete steps that the piece index information of generation is stored in each storage block comprise,
After step 10, device power, the piece index information of all storage blocks in storage card is read in the internal memory of system, and form an internal memory chained list;
Step 20, start video recording or video process storage block switch time, from internal memory chained list, find out one and be labeled as untapped index information, upgrade this piece index information flag state for using;
Step 30, in blocks of data part corresponding to current storage block, write video/audio, and data length and the storage synchronously upgraded in piece index information corresponding with this piece in internal memory chained list finish temporal information;
Step 40, in the time that current storage block is write full or video recording and is finished, piece index information corresponding to this storage block in the internal memory chained list after upgrading write to piece corresponding to this storage block and describes part;
Step 50, in next storage block, repeating step 20 is to the operation of step 40, until video recording finishes.
5. the storage means of a kind of video/audio according to claim 4, is characterized in that: after described step 50, further comprise:
Step 60, when all storage blocks are all labeled as while having used state, adopt sequential loop coverage mode video/audio to be covered to the storage block using the earliest, thereby guarantee to be uniform to the number of operations of each storage block.
6. the storage means of a kind of video/audio according to claim 1, is characterized in that: the storage space of described each storage block is 4~16Mbyte.
7. the storage means of a kind of video/audio according to claim 1, is characterized in that: described index information comprises: resolution, audio coding form and the audio sample rate of the frame per second of the coded format of the video data of end time of initial video time, storage, data length, storage, the video data of storage, the video data of storage.
8. a memory storage for video/audio, is characterized in that: comprise formatting module and memory module;
Described formatting module: for storage card is formatd, make storage card average mark be slit into multiple storage blocks;
Described memory module: for storing video/audio, and the piece index information of generation is stored in the storage block of this video/audio of storage.
9. the memory storage of a kind of video/audio according to claim 8, is characterized in that: described formatting module comprises:
Initialization module: carry out initialization for the piece index information of the piece of each storage block being described to part;
Mark module: do not use for the piece index information after initialization not being labeled as.
10. the memory storage of a kind of video/audio according to claim 9, is characterized in that: described memory module comprises:
Writing module: write video/audio for the blocks of data part toward current storage block, and synchronously piece index information is upgraded in internal memory;
Update module: when expiring or record a video end for writing when current storage block, this piece index information is write in current storage block.
The memory storage of 11. a kind of video/audios according to claim 10, is characterized in that: described memory module also comprises:
Read module: for after device power, the piece index information of all storage blocks in storage card is read in the internal memory of system, and form an internal memory chained list;
Index module: in the time starting video recording or the switching of video process storage block, find out one and be labeled as untapped index information from internal memory chained list, upgrade this piece index information flag state for using;
Repeat module: in next storage block, repeat to move successively the operation of index module, writing module and update module, until video recording finishes.
The memory storage of 12. a kind of video/audios according to claim 11, is characterized in that: described memory module also comprises a covering update module,
Described covering update module: while having used state for being all labeled as in all storage blocks, adopt sequential loop coverage mode video/audio to be covered to the storage block using the earliest, thereby guarantee to be uniform to the number of operations of each storage block.
The memory storage of 13. a kind of video/audios according to claim 8, is characterized in that: the storage space of described each storage block is 4~16Mbyte.
The memory storage of 14. a kind of video/audios according to claim 8, is characterized in that: described index information comprises: resolution, audio coding form and the audio sample rate of the frame per second of the coded format of the video data of end time of initial video time, storage, data length, storage, the video data of storage, the video data of storage.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410031890.2A CN103794233B (en) | 2014-01-23 | 2014-01-23 | A kind of storage means of video/audio and storage device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410031890.2A CN103794233B (en) | 2014-01-23 | 2014-01-23 | A kind of storage means of video/audio and storage device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103794233A true CN103794233A (en) | 2014-05-14 |
CN103794233B CN103794233B (en) | 2016-05-18 |
Family
ID=50669816
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410031890.2A Active CN103794233B (en) | 2014-01-23 | 2014-01-23 | A kind of storage means of video/audio and storage device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103794233B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105744200A (en) * | 2016-02-22 | 2016-07-06 | 深圳英飞拓科技股份有限公司 | Video monitoring video storage method and device |
CN106095338A (en) * | 2016-06-13 | 2016-11-09 | 深圳创维空调科技有限公司 | The erasable implementation method of a kind of memory chip and realize system |
CN107393052A (en) * | 2017-06-28 | 2017-11-24 | 深圳市爱培科技术股份有限公司 | A kind of recorder date storage method and its storage device |
CN109947978A (en) * | 2017-07-28 | 2019-06-28 | 杭州海康威视数字技术股份有限公司 | A kind of audio storage, playback method and device |
CN112601040A (en) * | 2020-12-09 | 2021-04-02 | 上海商米科技集团股份有限公司 | Video storage method and device, network camera and readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1913639A (en) * | 2005-08-08 | 2007-02-14 | 三星电机株式会社 | Image compression device and image compression method |
CN102136290A (en) * | 2011-04-21 | 2011-07-27 | 北京联合大学 | Method for storing embedded real-time video files |
CN102222077A (en) * | 2010-04-14 | 2011-10-19 | 中兴通讯股份有限公司 | Storage method and device for audio data |
JP2012003803A (en) * | 2010-06-16 | 2012-01-05 | Nihon Digital Kaden:Kk | Endless video recording device |
-
2014
- 2014-01-23 CN CN201410031890.2A patent/CN103794233B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1913639A (en) * | 2005-08-08 | 2007-02-14 | 三星电机株式会社 | Image compression device and image compression method |
CN102222077A (en) * | 2010-04-14 | 2011-10-19 | 中兴通讯股份有限公司 | Storage method and device for audio data |
JP2012003803A (en) * | 2010-06-16 | 2012-01-05 | Nihon Digital Kaden:Kk | Endless video recording device |
CN102136290A (en) * | 2011-04-21 | 2011-07-27 | 北京联合大学 | Method for storing embedded real-time video files |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105744200A (en) * | 2016-02-22 | 2016-07-06 | 深圳英飞拓科技股份有限公司 | Video monitoring video storage method and device |
CN105744200B (en) * | 2016-02-22 | 2019-03-12 | 深圳英飞拓科技股份有限公司 | The storage method and device of surveillance video |
CN106095338A (en) * | 2016-06-13 | 2016-11-09 | 深圳创维空调科技有限公司 | The erasable implementation method of a kind of memory chip and realize system |
CN107393052A (en) * | 2017-06-28 | 2017-11-24 | 深圳市爱培科技术股份有限公司 | A kind of recorder date storage method and its storage device |
CN107393052B (en) * | 2017-06-28 | 2019-01-04 | 深圳市爱培科技术股份有限公司 | A kind of recorder date storage method and its storage device |
CN109947978A (en) * | 2017-07-28 | 2019-06-28 | 杭州海康威视数字技术股份有限公司 | A kind of audio storage, playback method and device |
CN109947978B (en) * | 2017-07-28 | 2021-04-02 | 杭州海康威视数字技术股份有限公司 | Audio storage and playing method and device |
CN112601040A (en) * | 2020-12-09 | 2021-04-02 | 上海商米科技集团股份有限公司 | Video storage method and device, network camera and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN103794233B (en) | 2016-05-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9767035B2 (en) | Pass-through tape access in a disk storage environment | |
CN103794233A (en) | Method and device for storing video/audio data | |
KR20190018656A (en) | Method, computer-readable storage media and storage controller module for managing storage regions on a storage device | |
CN104268088B (en) | Vehicle-mounted DVR hard disc data storage method | |
US20130304978A1 (en) | High-performance storage structures and systems featuring multiple non-volatile memories | |
CN101872639B (en) | Method and device for storing and retrieving image data on digital hard disk video recorder | |
JP2010146326A (en) | Storage device, method of controlling same, and electronic device using storage device | |
US20140280387A1 (en) | System and method for expanding storage space of network device | |
CN103092687A (en) | Device and method of application program management | |
CN105208267A (en) | USB camera and USB camera identification method and system | |
US9442656B2 (en) | Efficient use of metadata accompanying file writing to media | |
SG126863A1 (en) | Recording apparatus | |
US20160124650A1 (en) | Data Storage Device and Flash Memory Control Method | |
WO2008146475A1 (en) | Recording apparatus | |
KR101370503B1 (en) | System and method for saving multimedia data and computer readable saving medium recording program for process of saving method thereof | |
US20140052902A1 (en) | Electronic device and method of generating virtual universal serial bus flash device | |
WO2011120335A8 (en) | Method, device and computer for data operation | |
CN102541957A (en) | Method and device for operating data files on basis of data flow magnetic tapes | |
CN110018985B (en) | Snapshot deleting method, device and system | |
US8487777B2 (en) | Semiconductor storage apparatus and early-warning systems and methods for the same | |
CN105005451A (en) | Solid state hard disk based user information storage method | |
SG10201900022YA (en) | Storage devices that support cached physical address verification and methods of operating same | |
KR101669722B1 (en) | Database management apparatus and method | |
CN102819608A (en) | Method and device for data extraction based on Oracle database system | |
KR101214784B1 (en) | Multi-channel record and playback apparatus for improving record and playback velocity |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: 350108, No. 2, building 9, 7 hi tech Avenue, Fuzhou Town, Minhou County, Fujian, China Patentee after: Fujian star net joint information system Co., Ltd. Address before: 361000 Fujian province Xiamen software park two sunrise Road No. 56 1001-2 unit Patentee before: Fujian Star-Net Security Technology Co., Ltd. |