[go: up one dir, main page]

CN101706814A - Motion vector based file storage overlay method - Google Patents

Motion vector based file storage overlay method Download PDF

Info

Publication number
CN101706814A
CN101706814A CN200910241621A CN200910241621A CN101706814A CN 101706814 A CN101706814 A CN 101706814A CN 200910241621 A CN200910241621 A CN 200910241621A CN 200910241621 A CN200910241621 A CN 200910241621A CN 101706814 A CN101706814 A CN 101706814A
Authority
CN
China
Prior art keywords
motion
vector
video file
storage
file
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
CN200910241621A
Other languages
Chinese (zh)
Other versions
CN101706814B (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.)
BEIJING HANBANGGAOKE DIGITAL TECHNOLOGY CO LTD
Original Assignee
BEIJING HANBANGGAOKE DIGITAL 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 BEIJING HANBANGGAOKE DIGITAL TECHNOLOGY CO LTD filed Critical BEIJING HANBANGGAOKE DIGITAL TECHNOLOGY CO LTD
Priority to CN2009102416218A priority Critical patent/CN101706814B/en
Publication of CN101706814A publication Critical patent/CN101706814A/en
Application granted granted Critical
Publication of CN101706814B publication Critical patent/CN101706814B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Television Signal Processing For Recording (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to a motion vector based file storage overlay method, comprising the following steps: setting index blocks in storage media, setting header information for each video file storage block and deciding whether to delete the video file storage blocks by comparing the total statistics of the motion vectors of the header information in the video file storage blocks and the thresholds of the motion vectors in the index blocks, wherein the thresholds are set by users. The invention further sets time period preferred values in the index blocks. If the storage media are not enough to store the current video files, the time period preferred values and the thresholds of the motion vectors, which are set by the users, are read, according to time sequence, the statistics of the motion vectors in the time period in the header information of each file storage block are compared with the thresholds of the motion vectors to decide whether to delete the video file storage blocks. Compared with the prior art, the method has intelligence and can enable the useful history files to be stored for a long time under the condition of full storage media.

Description

File storage overlay method based on motion-vector
Technical field
The present invention relates to a kind of file storage overlay method, be specifically related to the implementation method that video file storage covers, be applicable to that the video file of digital supervision and band video recording memory device covers.
Background technology
In relating to the business of checking historical video record, the problem that often runs into is:
(1) the full whole magnetic disk of video file record is taked the old video recording of which kind of strategy cleaning, could guarantee that new video recording carries out smoothly;
(2) how to delete old video recording and can guarantee that the old video recording that comes in handy is as far as possible not deleted;
(3) how to judge whether video recording is useful, and what the standard of judgement determined according to;
(4) standard of how avoiding being provided with has deviation and does not influence the video file of the possible potentially useful of having deposited as far as possible.
Existing video recording deleting technique adopts the mode that covers in chronological order mostly, and the video record file is lacked more intelligence statistics, can't accomplish according to the old video file of the more intelligent covering of the potential magnitude of value.
Existing video recording coverage mode mainly contains the deficiency of two aspects:
(1) the video file deletion rule is single, lack of wisdom;
(2) video file is lacked analysis and statistics, do not have the standard and the rule of statistics.
Summary of the invention
Technology of the present invention is dealt with problems and is: overcome the deficiencies in the prior art, a kind of file storage overlay method based on motion-vector is provided.Under the full situation of storage medium, this method can make useful history file keep long storage time.
Technical solution of the present invention is:
File storage overlay method based on motion-vector provided by the invention, first kind of technical scheme may further comprise the steps:
(1) in storage medium, sets up an index block that is used for storing judgment criteria, contain the motion-vector threshold values that the user sets in the described index block;
(2) in each file storage piece of storage medium, set up a header that is used for storing motion-vector statistical value in this document; During store video files, add up the quantity of motion-vector simultaneously, the motion-vector of adding up is counted in the header of current file storage block.
(3) check whether storage medium is enough to store the current video file,, then change step (6) over to if this moment, storage medium was enough to store the current video file; If this moment, storage medium was not enough to store the current video file, then change step (4) over to, continue step (5);
(4) read the motion-vector threshold values that the user sets, according to time sequencing, the motion-vector statistical value summation and the described motion-vector threshold values of each file storage piece the inside information are compared, if the motion-vector statistical value summation of this document storage block is less than described motion-vector threshold values, then delete this document storage block, no longer follow-up comparison;
(5) check this moment, whether storage medium was enough to store the current video file, if satisfy, then changed step (6) over to; If this moment, storage medium also was not enough to store the current video file, then cycling step (4) is enough to satisfy the preservation of current video file, execution in step (6) until storage medium; If storage medium also is not enough to store the current video file during loop ends, then jump out;
(6) storage current video file.
Further, comprise the time allocation table of storing current motion-vector statistical value in described each file storage build information of step (2), the motion-vector statistical information counts the corresponding time period of time allocation table by time of origin.
Preferably, described time allocation table is 24 hours allocation tables, and the data of storing in the table are the statistical value of motion-vector in current hour.
Second kind of technical scheme provided by the invention is on the basis of first kind of technical scheme, also comprises the time period preferred value that the user sets in the described index block of step (1); If storage medium is not enough to store the current video file, then read time period preferred value and motion-vector threshold values that the user sets, according to time sequencing, motion-vector statistical value and described motion-vector threshold values that should the time period in each file storage build information be compared, if the motion-vector statistical value of described time period is less than described motion-vector threshold values in this document storage block, then delete this document storage block, no longer follow-up comparison.
In these two kinds of technical schemes, storage medium also is not enough to store the current video file when finishing as if cycling step (4), then can select to carry out in the following steps any:
A, according to time sequencing, deletion time file storage piece the earliest is enough to satisfy the preservation of current video file until storage medium.
The motion-vector threshold values of setting in B, the described index block of set-up procedure (1) continues step (4) and subsequent operation.
Video file of the present invention can be a fixed size, also can be (according to the size of actual conditions decision video file) that differs in size.
The present invention compared with prior art has following advantage:
(1) the present invention is provided with index block in storage medium, and header is set for each video file storage piece, by the motion-vector threshold values comparison that user in the motion-vector statistical value summation of video file storage piece the inside information and the index block is set, whether decision deletes this video file storage piece, the present invention has intelligently compared to existing technology, can make useful history file keep long storage time under the full situation of storage medium.
(2) the present invention further is provided with the time period preferred value in index block, if storage medium is not enough to store the current video file, then read time period preferred value and motion-vector threshold values that the user sets, according to time sequencing, motion-vector statistical value and described motion-vector threshold values that should the time period in each file storage build information be compared, whether decision deletes this video file storage piece, this scheme has bigger dirigibility when covering existing file, can operate according to the time period preferred value that the user sets.
(3) motion-vector threshold values in the index block of the present invention and time period preferred value all can be on-the-fly modified by the user, have strengthened this method feasibility and dirigibility in practice.
(4) video file of the present invention both can be a fixed size, can be again sizing not, can be determined the size of video file by actual conditions.
Description of drawings
Fig. 1 is the content that comprises in the index block of the present invention.
Fig. 2 is the content that comprises in the header of the present invention.
Fig. 3 is a file storage overlay method process flow diagram of the present invention.
Embodiment
Below with reference to accompanying drawing the specific embodiment of the present invention is described.
Embodiment one:
As shown in Figure 3, the file storage overlay method based on motion-vector may further comprise the steps:
(1) in storage medium, sets up an index block that is used for storing judgment criteria, contain the motion-vector threshold values that the user sets in the described index block.The user can on-the-fly modify the memory contents in this storage medium.
(2) in each file storage piece of storage medium, set up a header that is used for storing motion-vector statistical value in this document; During store video files, add up the quantity of motion-vector simultaneously, the motion-vector of adding up is counted in the header of current file storage block.
Each video file storage piece all has a header, is used for adding up the statistical value of motion-vector in this video blocks:
The statistical value of motion-vector in this video file of record in a, the header;
Adopt incremental manner when b, statistics motion-vector.
(3) check whether storage medium is enough to store the current video file,, then change step (6) over to if this moment, storage medium was enough to store the current video file; If this moment, storage medium was not enough to store the current video file, then change step (4) over to;
(4) read the motion-vector threshold values that the user sets, according to time sequencing, the motion-vector statistical value summation and the described motion-vector threshold values of each file storage piece the inside information are compared, if the motion-vector statistical value summation of this document storage block is less than described motion-vector threshold values, then delete this document storage block, no longer follow-up comparison continues step (5);
(5) check this moment, whether storage medium was enough to store the current video file, if satisfy, then changed step (6) over to; If this moment, storage medium also was not enough to store the current video file, then cycling step (4) is enough to satisfy the preservation of current video file, execution in step (6) until storage medium; If storage medium also is not enough to store the current video file during loop ends, then jump out;
(6) storage current video file.
Further, storage medium also is not enough to store the current video file when finishing as if cycling step (4), and then according to time sequencing, deletion time file storage piece the earliest is enough to satisfy the preservation of current video file until storage medium.
Perhaps, storage medium also is not enough to store the current video file when finishing as if cycling step (4), and then the motion-vector threshold values of setting in the described index block of set-up procedure (1) continues step (4) and subsequent operation.
Embodiment two:
Be on the basis of embodiment one, also comprise the time period preferred value that the user sets in the described index block of step (1); Also comprise the time allocation table of storing current motion-vector statistical value in described each file storage build information of step (2), the motion-vector statistical information counts the corresponding time period of time allocation table by time of origin, with 24 hours allocation tables was example, and the data of storing in the table are the statistical value of motion-vector in current hour.
As shown in Figure 3, based on the file storage overlay method of motion-vector, concrete steps comprise:
(1) in storage medium, sets up an index block that is used for storing judgment criteria,, contain the motion-vector threshold values of a, user's setting in the described index block, the time period preferred value that b, user set referring to Fig. 1.The user can on-the-fly modify the memory contents in this storage medium.
(2) in each file storage piece of storage medium, set up a header that is used for storing motion-vector statistical value in this document, referring to Fig. 2; During store video files, add up the quantity of motion-vector simultaneously, the motion-vector of statistics is counted in the header of current file storage block. also comprise the time allocation table of storing current motion-vector statistical value in each file storage build information, the motion-vector statistical information counts the corresponding time period of time allocation table by time of origin, with 24 hours allocation tables was example, and the data of storing in the table are the statistical value of motion-vector in current hour.
Each video file storage piece all has a header, is used for adding up the statistical value of motion-vector in this video blocks:
Can distinguish the motion-vector statistical value in a, the header in which period (1-24 hour);
B, motion-vector statistical value count the corresponding period by time of origin respectively;
Adopt incremental manner when c, statistics motion-vector.
(3) check whether storage medium is enough to store the current video file,, then change step (6) over to if this moment, storage medium was enough to store the current video file; If this moment, storage medium was not enough to store the current video file, then change step (4) over to;
(4) read time period preferred value and the motion-vector threshold values that the user sets, according to time sequencing, motion-vector statistical value and described motion-vector threshold values that should the time period in each file storage build information be compared, if the motion-vector statistical value of described time period is less than described motion-vector threshold values in this document storage block, then delete this document storage block, no longer follow-up comparison continues step (5);
(5) check this moment, whether storage medium was enough to store the current video file, if satisfy, then changed step (6) over to; If this moment, storage medium also was not enough to store the current video file, then cycling step (4) is enough to satisfy the preservation of current video file, execution in step (6) until storage medium; If storage medium also is not enough to store the current video file during loop ends, then jump out;
(6) storage current video file.
Further, storage medium also is not enough to store the current video file when finishing as if cycling step (4), and then according to time sequencing, deletion time file storage piece the earliest is enough to satisfy the preservation of current video file until storage medium.
Perhaps, storage medium also is not enough to store the current video file when finishing as if cycling step (4), and then the motion-vector threshold values of setting in the described index block of set-up procedure (1) continues step (4) and subsequent operation.
Video file among above-mentioned two embodiment (also claiming the video recording piece) both can be a fixed size, also can differ in size, and it is fixed that the big I of video file is come by actual conditions.
Influenced in storing process for fear of video file (video recording piece), the work of deletion video file (video recording piece) should be carried out before memory space inadequate.
The statistical work of motion-vector should trigger once behind the full video recording piece of every record, arranges the time that the statistics that practices every conceivable frugality is searched according to the size order of motion-vector statistical value.
The content that is not described in detail in the instructions of the present invention belongs to this area professional and technical personnel's known technology.
The above; it only is preferred embodiment of the present invention; be not that the present invention is done any pro forma restriction; every foundation technical spirit of the present invention all still belongs to the protection domain of technical solution of the present invention to any simple modification, equivalent variations and modification (as: technical scheme of embodiment one and embodiment two is combined the technical solution problem) that above embodiment did.

Claims (7)

1. based on the file storage overlay method of motion-vector, it is characterized in that, may further comprise the steps:
(1) in storage medium, sets up an index block that is used for storing judgment criteria, contain the motion-vector threshold values that the user sets in the described index block;
(2) in each file storage piece of storage medium, set up a header that is used for storing motion-vector statistical value in this document;
(3) check whether storage medium is enough to store the current video file,, then change step (6) over to if this moment, storage medium was enough to store the current video file; If this moment, storage medium was not enough to store the current video file, then change step (4) over to;
(4) read the motion-vector threshold values that the user sets, according to time sequencing, the motion-vector statistical value summation and the described motion-vector threshold values of each file storage piece the inside information are compared, if the motion-vector statistical value summation of this document storage block is less than described motion-vector threshold values, then delete this document storage block, no longer follow-up comparison continues step (5);
(5) check this moment, whether storage medium was enough to store the current video file, if satisfy, then changed step (6) over to; If this moment, storage medium also was not enough to store the current video file, then cycling step (4) is enough to satisfy the preservation of current video file, execution in step (6) until storage medium; If storage medium also is not enough to store the current video file during loop ends, then jump out;
(6) storage current video file.
2. the file storage overlay method based on motion-vector according to claim 1 is characterized in that: during store video files, add up the quantity of motion-vector simultaneously, the motion-vector of adding up is counted in the header of current file storage block.
3. the file storage overlay method based on motion-vector according to claim 1, it is characterized in that: comprise the time allocation table of storing current motion-vector statistical value in described each file storage build information of step (2), the motion-vector statistical information counts the corresponding time period of time allocation table by time of origin.
4. the file storage overlay method based on motion-vector according to claim 3 is characterized in that: described time allocation table is 24 hours allocation tables, and the data of storing in the table are motion-vector statistical value in current hour.
5. the file storage overlay method based on motion-vector according to claim 4 is characterized in that: also comprise the time period preferred value that the user sets in the described index block of step (1);
If storage medium is not enough to store the current video file, then read time period preferred value and motion-vector threshold values that the user sets, according to time sequencing, motion-vector statistical value and described motion-vector threshold values that should the time period in each file storage build information be compared, if the motion-vector statistical value of described time period is less than described motion-vector threshold values in this document storage block, then delete this document storage block, no longer follow-up comparison.
6. according to claim 1 or 5 based on the file storage overlay method of motion-vector, it is characterized in that: storage medium also is not enough to store the current video file when finishing as if cycling step (4), then according to time sequencing, deletion time file storage piece the earliest is enough to satisfy the preservation of current video file until storage medium.
7. according to claim 1 or 5 based on the file storage overlay method of motion-vector, it is characterized in that: storage medium also is not enough to store the current video file when finishing as if cycling step (4), then the motion-vector threshold values of setting in the described index block of set-up procedure (1) continues step (4) and subsequent operation.
CN2009102416218A 2009-11-27 2009-11-27 Motion vector based file storage overlay method Active CN101706814B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009102416218A CN101706814B (en) 2009-11-27 2009-11-27 Motion vector based file storage overlay method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009102416218A CN101706814B (en) 2009-11-27 2009-11-27 Motion vector based file storage overlay method

Publications (2)

Publication Number Publication Date
CN101706814A true CN101706814A (en) 2010-05-12
CN101706814B CN101706814B (en) 2012-06-20

Family

ID=42377039

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009102416218A Active CN101706814B (en) 2009-11-27 2009-11-27 Motion vector based file storage overlay method

Country Status (1)

Country Link
CN (1) CN101706814B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102655579A (en) * 2012-04-09 2012-09-05 深圳一电科技有限公司 Method and device for storing audio-video images
CN104156376A (en) * 2013-05-15 2014-11-19 腾讯科技(深圳)有限公司 Storage method, device and server for file
CN104243425A (en) * 2013-06-19 2014-12-24 深圳市腾讯计算机系统有限公司 Content management method, device and system in content delivery network
CN104811666A (en) * 2015-04-27 2015-07-29 无锡天脉聚源传媒科技有限公司 Vehicle-mounted monitoring method and device
CN105245945A (en) * 2014-07-07 2016-01-13 深圳市云帆世纪科技有限公司 Method and system for playing network multimedia data

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101374220B (en) * 2007-08-23 2010-06-16 凌阳科技股份有限公司 Video image transmission method and system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102655579A (en) * 2012-04-09 2012-09-05 深圳一电科技有限公司 Method and device for storing audio-video images
CN104156376A (en) * 2013-05-15 2014-11-19 腾讯科技(深圳)有限公司 Storage method, device and server for file
CN104243425A (en) * 2013-06-19 2014-12-24 深圳市腾讯计算机系统有限公司 Content management method, device and system in content delivery network
CN104243425B (en) * 2013-06-19 2018-09-04 深圳市腾讯计算机系统有限公司 A kind of method, apparatus and system carrying out Content Management in content distributing network
US10262005B2 (en) 2013-06-19 2019-04-16 Tencent Technology (Shenzhen) Company Limited Method, server and system for managing content in content delivery network
CN105245945A (en) * 2014-07-07 2016-01-13 深圳市云帆世纪科技有限公司 Method and system for playing network multimedia data
CN104811666A (en) * 2015-04-27 2015-07-29 无锡天脉聚源传媒科技有限公司 Vehicle-mounted monitoring method and device

Also Published As

Publication number Publication date
CN101706814B (en) 2012-06-20

Similar Documents

Publication Publication Date Title
CN101706814B (en) Motion vector based file storage overlay method
CN103024329B (en) A kind of memory management method of monitoring video
CN102073563A (en) Flash memory equipment, and method and system for managing storage blocks in same
CN109428913B (en) Storage capacity expansion method and device
CN103297739A (en) Method and device for recording audio and video
CN107734336A (en) A kind of compression method and device of video memory space
CN102867041A (en) Terminal and storage space management method
CN107547941B (en) Method, device and system for storing media data
CN109491589A (en) A kind of delamination process and device based on file content
CN109471836A (en) Data migration method, device and system
CN101415107A (en) A kind of reliable multilevel medium storage method
CN103064768B (en) A kind of data filing backup method based on tape and system
CN107168651A (en) A kind of small documents polymerize storage processing method
CN111143343A (en) Data efficient deleting method and system based on source-end deduplication
CN102023821A (en) Disc space management method and system
KR20130016333A (en) Method and device for storing audio data
CN104702874A (en) Storing method for file monitored by video
CN104580647A (en) Caching method for call record and communication device
CN110069457A (en) One kind is based on scratch file delet method and system in distributed file storage system
CN101150822B (en) A method for telecommunication operator to collect user numbers
CN102647526A (en) Mobile phone notepad classification processing method, processing unit and mobile phone
CN104581832A (en) A method and system for implementing data traffic offloading
KR102365970B1 (en) Archive Management System
CN103530240B (en) Data-block cache method and apparatus
CN106648447B (en) The data extraction method of embedded security device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent for invention or patent application
CB02 Change of applicant information

Address after: 100190, Beijing, Zhongguancun, Haidian District South Third Street, No. 8, Institute of physics, Chinese Academy of Sciences, block H, 3

Applicant after: Beijing Hanbang Gaoke Digital Technology Co., Ltd.

Address before: 100190, Beijing, Zhongguancun, Haidian District South Third Street, No. 8, Institute of physics, Chinese Academy of Sciences, block H, 3

Applicant before: Beijing Hanbanggaoke Digital Technology Co.,Ltd.

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: BEIJING HANBANGGAOKE DIGITAL TECHNOLOGY CO., LTD. TO: BEIJING HANBANG TECHNOLOGY CORP., LTD.

C53 Correction of patent for invention or patent application
CB02 Change of applicant information

Address after: 100089 Beijing City, Haidian District Changchun Road No. 11 Building No. 4 room 1-12 on the south side of the podium

Applicant after: Beijing Hanbang Gaoke Digital Technology Co., Ltd.

Address before: 100190, Beijing, Zhongguancun, Haidian District South Third Street, No. 8, Institute of physics, Chinese Academy of Sciences, block H, 3

Applicant before: Beijing Hanbang Gaoke Digital Technology Co., Ltd.

C14 Grant of patent or utility model
GR01 Patent grant