CN104361029A - Double-index video circulating memory and quick retrieval method - Google Patents

Double-index video circulating memory and quick retrieval method Download PDF

Info

Publication number
CN104361029A
CN104361029A CN201410574245.5A CN201410574245A CN104361029A CN 104361029 A CN104361029 A CN 104361029A CN 201410574245 A CN201410574245 A CN 201410574245A CN 104361029 A CN104361029 A CN 104361029A
Authority
CN
China
Prior art keywords
file
video
index
storage
quick
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
Application number
CN201410574245.5A
Other languages
Chinese (zh)
Other versions
CN104361029B (en
Inventor
王春波
黄均
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CHENGDU YIMENG HENGXIN TECHNOLOGY Co Ltd
Original Assignee
CHENGDU YIMENG HENGXIN TECHNOLOGY Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by CHENGDU YIMENG HENGXIN TECHNOLOGY Co Ltd filed Critical CHENGDU YIMENG HENGXIN TECHNOLOGY Co Ltd
Priority to CN201410574245.5A priority Critical patent/CN104361029B/en
Publication of CN104361029A publication Critical patent/CN104361029A/en
Application granted granted Critical
Publication of CN104361029B publication Critical patent/CN104361029B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/78Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Multimedia (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a double-index video circulating memory and quick retrieval method. The double-index video circulating memory and quick retrieval method comprises a video image storage method and a quick retrieval method, wherein the video image storage method comprises the following steps: judging whether the video data to be stored are I-frame data, conducting storage of the video data, checking the current storage path volume, meanwhile creating a video file and a video index file, and conducting multipath disk management to add the file path indexes to a database; the quick retrieval method comprises the following steps: calculating the name of the video file according to time through the database indexes, directly retrieving the storage position of the files in the database, accurately locating the deviation position of specific point in time in the files according to the file indexes, and directly obtaining the video data from the time point to play. The double-index video circulating memory and quick retrieval method disclosed by the invention has the benefits that the video is stored and retrieved through the double indexes to greatly shorten the retrieval time, increase the storage reliability and reduce the clip files.

Description

A kind of video circulation storage of duplicate key and the method for quick-searching
Technical field
The present invention relates to the image storage technique in computer realm, particularly relate to a kind of video circulation storage of duplicate key and the method for quick-searching.
Background technology
It is all that video file is had two kinds that the image of prior art stores generally, and a kind of is store according to the mode of fixed size, and a kind of is store according to the mode of set time.
Conventional video storage stores according to fixed size, generally file is divided into small documents and stores, can produce the file of flood tide like this.Carry out indexed search by database during retrieval, the longer time can be spent, particularly on embedded device.
If stored according to the set time, data volume is less so in a database, but during the concrete time point of locating file, can spend the longer time.
The storage of these two kinds of modes and retrieval mode, when video time is longer, all there is the situation that retrieval is slower, particularly in embedded device, retrieval rate can be slower.
Summary of the invention
Object of the present invention is overcoming the deficiencies in the prior art, the problem of comprehensive various storage and retrieval, propose a kind of video circulation storage of duplicate key and the method for quick-searching, can navigate to easily on the video storage time point of needs, during for user's quick-searching.
The object of the invention is to be achieved through the following technical solutions: a kind of video circulation of duplicate key stores and the method for quick-searching, and it comprises video image storing step and quick-searching step;
Described video image storage comprises following sub-step:
S101, obtain the video data that a frame needs to preserve, judge whether it is I frame data, if so, then carry out step S102, if not then end operation;
S102, carry out the storage of video data;
S103, check that current store path space is whether enough, if so, then create file, judge whether to be stored in current path or other path according to current store path, create video file and video index file, if not, then the oldest video file is deleted in circulation simultaneously;
S104, judge whether file puts in storage, if so, then end operation, if not, is then saved in database by file path index and relevant information, does the index of document location and relevant information;
Described quick-searching comprises following sub-step:
S201, database index, user, when retrieving the video of concrete time point, can go out the title of video file according to Time Calculation, then by the memory location of the direct retrieving files of database, just can navigate to file;
S201, pass through file index: the deviation post that accurately can be navigated to concrete time point in file by index file, just directly can obtain video data from this time point and play.
Following sub-step is also comprised in described step S102:
(1) current filename is generated computing time;
(2) judge whether to need to re-establish file according to filename, if so, then re-create new file, carry out step (3), if not, then directly store current video frame in current file;
(3) check whether there is this file, if there is no, then carry out step S103, if existed, then find the active position of file to continue stored video data.
The invention has the beneficial effects as follows: by duplicate key, carry out storage and the retrieval of video, greatly reduce the time of retrieval, and add the reliability of storage and reduce fragment file.By two secondary indexs of database index and file index, the video data of concrete time point in file can be found rapidly, and just directly can carry out decoding after sense data and play, there will not be the situation that mosaic or initial file can not be play.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of video storage of the present invention;
Fig. 2 is the process flow diagram of the present invention according to the concrete file of timi requirement;
Fig. 3 is that the present invention navigates to the process flow diagram of data segment according to file index.
Embodiment
Below in conjunction with accompanying drawing, technical scheme of the present invention is described in further detail, but protection scope of the present invention is not limited to the following stated.
As shown in Figure 1, a kind of video circulation storage of duplicate key and the method for quick-searching, it comprises video image storing step and quick-searching step;
Described video image storage comprises following sub-step:
S101, obtain the video data that a frame needs to preserve, judge whether it is I frame data, if so, then carry out step S102, if not then end operation;
S102, carry out the storage of video data;
S103, check that current store path space is whether enough, if so, then create file, judge whether to be stored in current path or other path according to current store path, create video file and video index file, if not, then the oldest video file is deleted in circulation simultaneously;
S104, judge whether file puts in storage, if so, then end operation, if not, is then saved in database by file path index and relevant information, does the index of document location and relevant information;
Described quick-searching comprises following sub-step:
S201, as shown in Figure 2, database index, user, when retrieving the video of concrete time point, can go out the title of video file according to Time Calculation, then by the memory location of the direct retrieving files of database, just can navigate to file;
S201, as shown in Figure 3, pass through file index: the deviation post that accurately can be navigated to concrete time point in file by index file, just directly can obtain video data from this time point and play.
Following sub-step is also comprised in described step S102:
(1) current filename is generated computing time;
(2) judge whether to need to re-establish file according to filename, if so, then re-create new file, carry out step (3), if not, then directly store current video frame in current file;
(3) check whether there is this file, if there is no, then carry out step S103, if existed, then find the active position of file to continue stored video data.

Claims (2)

1. the video circulation storage of duplicate key and a method for quick-searching, is characterized in that: it comprises video image storing step and quick-searching step;
Described video image storage comprises following sub-step:
S101, obtain the video data that a frame needs to preserve, judge whether it is I frame data, if so, then carry out step S102, if not, then end operation;
S102, carry out the storage of video data;
S103, check that current store path space is whether enough, if so, then create file, judge whether to be stored in current path or other path according to current store path, create video file and video index file, if not, then the oldest video file is deleted in circulation simultaneously;
S104, judge whether file puts in storage, if so, then end operation, if not, is then saved in database by file path index and relevant information, does the index of document location and relevant information;
Described quick-searching comprises following sub-step:
S201, database index, user, when retrieving the video of concrete time point, can go out the title of video file according to Time Calculation, then by the memory location of the direct retrieving files of database, just can navigate to file;
S201, pass through file index: the deviation post that accurately can be navigated to concrete time point in file by index file, just directly can obtain video data from this time point and play.
2. the video circulation of a kind of duplicate key according to claim 1 stores and quick-searching step, it is characterized in that: also comprise following sub-step in described step S102:
(1) current filename is generated computing time;
(2) judge whether to need to re-establish file according to filename, if so, then re-create new file, carry out step (3), if not, then directly store current video frame in current file;
(3) check whether there is this file, if there is no, then carry out step S103, if existed, then find the active position of file to continue stored video data.
CN201410574245.5A 2014-10-24 2014-10-24 A kind of video cycle storage of duplicate key and the method for quick-searching Expired - Fee Related CN104361029B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410574245.5A CN104361029B (en) 2014-10-24 2014-10-24 A kind of video cycle storage of duplicate key and the method for quick-searching

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410574245.5A CN104361029B (en) 2014-10-24 2014-10-24 A kind of video cycle storage of duplicate key and the method for quick-searching

Publications (2)

Publication Number Publication Date
CN104361029A true CN104361029A (en) 2015-02-18
CN104361029B CN104361029B (en) 2018-04-06

Family

ID=52528291

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410574245.5A Expired - Fee Related CN104361029B (en) 2014-10-24 2014-10-24 A kind of video cycle storage of duplicate key and the method for quick-searching

Country Status (1)

Country Link
CN (1) CN104361029B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107357901A (en) * 2017-07-14 2017-11-17 广东工业大学 A kind of video file method for quickly retrieving and system
CN107729566A (en) * 2017-11-14 2018-02-23 郑州天迈科技股份有限公司 A kind of index method for reconstructing for public transport vehicle-mounted hard disk audio/video data access
CN109213898A (en) * 2018-07-18 2019-01-15 北京世纪东方通讯设备有限公司 The video retrieval method and device of video monitoring system
CN117708138A (en) * 2024-02-05 2024-03-15 力高(山东)新能源技术股份有限公司 Data storage method, component, equipment and medium based on energy storage system database

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5481701A (en) * 1991-09-13 1996-01-02 Salient Software, Inc. Method and apparatus for performing direct read of compressed data file
CN102325244A (en) * 2011-08-26 2012-01-18 杭州海康威视数字技术股份有限公司 Method for rapidly positioning videos by time, video storage control device and positioning device
CN103702053A (en) * 2014-01-16 2014-04-02 深圳英飞拓科技股份有限公司 Video storage and search method and system as well as monitoring system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5481701A (en) * 1991-09-13 1996-01-02 Salient Software, Inc. Method and apparatus for performing direct read of compressed data file
CN102325244A (en) * 2011-08-26 2012-01-18 杭州海康威视数字技术股份有限公司 Method for rapidly positioning videos by time, video storage control device and positioning device
CN103702053A (en) * 2014-01-16 2014-04-02 深圳英飞拓科技股份有限公司 Video storage and search method and system as well as monitoring system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107357901A (en) * 2017-07-14 2017-11-17 广东工业大学 A kind of video file method for quickly retrieving and system
CN107729566A (en) * 2017-11-14 2018-02-23 郑州天迈科技股份有限公司 A kind of index method for reconstructing for public transport vehicle-mounted hard disk audio/video data access
CN107729566B (en) * 2017-11-14 2021-02-23 郑州天迈科技股份有限公司 Index reconstruction method for bus-mounted hard disk audio/video data access
CN109213898A (en) * 2018-07-18 2019-01-15 北京世纪东方通讯设备有限公司 The video retrieval method and device of video monitoring system
CN117708138A (en) * 2024-02-05 2024-03-15 力高(山东)新能源技术股份有限公司 Data storage method, component, equipment and medium based on energy storage system database
CN117708138B (en) * 2024-02-05 2024-06-11 力高(山东)新能源技术股份有限公司 Data storage method, component, equipment and medium based on energy storage system database

Also Published As

Publication number Publication date
CN104361029B (en) 2018-04-06

Similar Documents

Publication Publication Date Title
CN102831222B (en) Differential compression method based on data de-duplication
CN103080896B (en) Always searched to reduce the time to tape-shaped medium's to access rearrangement
US11269902B2 (en) Time series data management method, device, and apparatus
CN104361029A (en) Double-index video circulating memory and quick retrieval method
CN105718455A (en) Data query method and apparatus
CN104461390A (en) Method and device for writing data into imbricate magnetic recording SMR hard disk
CN106844089B (en) Method and equipment for recovering tree data storage
US8775742B2 (en) System and method for cache management in a DIF enabled storage system
CN105677742A (en) Method and apparatus for storing files
CN103902479A (en) Quick reconstruction mechanism for metadata cache on basis of metadata log
CN105068888B (en) A kind of data reconstruction method based on oracle database
CN107958079A (en) Aggregate file delet method, system, device and readable storage medium storing program for executing
US20210397631A1 (en) Detecting relationships across data columns
CN105786410A (en) Method for increasing processing speed of data storage system and data storage system
US11461316B2 (en) Detecting relationships across data columns
CN104239443A (en) Serialization data operation log storage method
US20190287571A1 (en) Method and device for playing video
US20120113785A1 (en) Disk position system and method
CN109213898A (en) The video retrieval method and device of video monitoring system
KR101588375B1 (en) Method and system for managing database
CN104636401A (en) Data rollback method and device for SCADA system
CN103176867A (en) Fast file differential backup method
CN103207916A (en) Metadata processing method and device
CN107741968A (en) A kind of method of document retrieval, system, device and computer-readable recording medium
CN104572893A (en) Hybrid storage method for data in database

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180406

Termination date: 20181024