CN104702874A - Storing method for file monitored by video - Google Patents

Storing method for file monitored by video Download PDF

Info

Publication number
CN104702874A
CN104702874A CN201510096876.5A CN201510096876A CN104702874A CN 104702874 A CN104702874 A CN 104702874A CN 201510096876 A CN201510096876 A CN 201510096876A CN 104702874 A CN104702874 A CN 104702874A
Authority
CN
China
Prior art keywords
video monitoring
segment
data
file
information
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
CN201510096876.5A
Other languages
Chinese (zh)
Other versions
CN104702874B (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.)
ANHUI QINGXIN INTERNET INFORMATION TECHNOLOGY Co Ltd
Original Assignee
ANHUI QINGXIN INTERNET INFORMATION 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 ANHUI QINGXIN INTERNET INFORMATION TECHNOLOGY Co Ltd filed Critical ANHUI QINGXIN INTERNET INFORMATION TECHNOLOGY Co Ltd
Priority to CN201510096876.5A priority Critical patent/CN104702874B/en
Publication of CN104702874A publication Critical patent/CN104702874A/en
Application granted granted Critical
Publication of CN104702874B publication Critical patent/CN104702874B/en
Active 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/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/71Indexing; Data structures therefor; Storage structures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management Or Editing Of Information On Record Carriers (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The invention relates to a storing method for a file monitored by video. The storing method for the file monitored by video comprises the following steps: establishing video monitoring file, the video monitoring file comprises segment information, data segment and index segment, and writing the segment information by adopting the placeholder way; receiving the video monitoring through a network; if the video monitoring data is stream data, judging whether the stream data is new; if yes, recording the segment information and the index segment of the stream data in a memory; otherwise, writing the current frame of the stream data into the data segment of the video monitoring file, recording the frame index information of the current frame in the memory; if the video monitoring data is signaling, judging whether the signaling is the video reason; if yes, adding the video reason in the memory; otherwise, performing the corresponding treatment according to the signaling type; closing the video monitoring file. The track seeking times can be reduced for the magnetic head by adopting the method, the concurrent write performance is improved, and the efficiency for analyzing video is effectively improved after data transcription operation.

Description

A kind of file memory method of facing video monitoring
Technical field
The present invention relates to video monitoring file storage technology field, be specifically related to a kind of file memory method of facing video monitoring.
Background technology
In video monitoring system, an important function is exactly video record function.The video recording that the supervisory control system being only provided with video record function just can be carried out afterwards is investigated.Video record mainly contains two kinds of modes: front end stores and platform stores.When front end stores, the number of the video camera generally simultaneously stored is fewer, is not too high to the requirement of performance, and due to deployed environment may be relatively severe, what therefore more focus on is the stability stored.When platform stores, general storage facilities is all placed on machine room, and therefore memory device self stability is higher, but when platform stores, the video camera number of general management is more, therefore very high to the performance requirement stored.General kinescope method is the video data that a file only stores a video camera, changes a file at set intervals.Such method realizes the unique identification to store video by the filename that file system provides, and realizes simple.But when platform stores many video stream datas, be just equivalent to write multiple file, for general file system, the sector belonging to a file is roughly continuous print, and therefore the magnetic head of hard disk will write different sectors in checker position simultaneously simultaneously simultaneously.Be mechanical action because magnetic head moves, movement can have a strong impact on the writing rate of hard disk frequently, also will affect concurrency performance when video recording stores.
Certain methods does not adopt the file system (as: high efficiency method that a kind of multipath media stream is recorded a video simultaneously, CN104159058A), by the block of the sizes such as hard disk partition is, each data received first are buffered in internal memory, after reaching certain threshold value, then write the data identical with the block size divided; Such method does not make full use of the management function of file system to hard disk, and the restriction therefore used is more, and writing of upper level applications is comparatively complicated.
As a rule, in the video recording of video monitoring system, the data of more than 99% are all useless, when only having generation critical event, and the video recording before and after this time point, video recording around this place is only valuable, therefore needs a kind of means quick position afterwards inquired about to interested video recording.Common way is stored in a database video recording reason and corresponding time period, so, just very convenient during inquiry video recording in supervisory control system.But in practice, do like this and have certain limitation yet, many times, the place analyzing video recording is not often in Surveillance center, can only be copy standby go back to assay laboratory at a collection of image of choosing that Surveillance center is rough, be then carefully analyzed by expert.So, video recording reason has just been separated with video recording, just cannot be screened fast by video recording reason, be unfavorable for improving analysis efficiency when again analyzing.
Summary of the invention
The object of the present invention is to provide a kind of file memory method of facing video monitoring, many video flowings and video recording reason are compound in a file and store by this file memory method, the tracking number of times of magnetic head can be reduced, improve the concurrent performance write, be conducive to improving the efficiency analyzing video recording after unloading data.
For achieving the above object, present invention employs following technical scheme:
A file memory method for facing video monitoring, the method comprises the step of following order:
(1) create video monitoring file in a hard disk, described video monitoring file comprises segment information, data segment and index segment, and adopts occupy-place mode to write segment information.
(2) by network reception video monitoring data, described video monitoring data comprises flow data and the various signalings relevant to flow data.
(3) type of video monitoring data is judged.
If video monitoring data is flow data, then judge whether this flow data is what newly add; If so, then the segment information of this flow data and index segment information are recorded in internal memory; If not, then by the data segment of the present frame of this flow data write video monitoring file, and the frame index information of present frame is recorded in internal memory;
If video monitoring data is the signaling relevant to flow data, then judge whether this signaling is video recording reason; If so, then video recording reason is added in internal memory; If not, then respective handling is carried out according to signaling type.
(4) judge whether to close video monitoring file; If so, step (5) is then performed; If not, then execution step (2) is returned.
(5) video monitoring file is closed.
In step (1), described segment information comprises the start offset address of data segment and index segment.Described data segment comprises each frame data of each stream.Described index segment comprises the fixed length information of all stream, reason of recording a video and frame index information.
In step (5), described closedown video monitoring file, specifically comprises the following steps:
(51) adopt occupy-place mode, each fixed length information flowed is write to the index segment of video monitoring file.
(52) each video recording reason flowed is write to the index segment of video monitoring file.
(53) each frame index information flowed is write to the index segment of video monitoring file.
(54) segment information of each stream in internal memory is updated to the segment information of video monitoring file.
(55) by the fixed length information updating of each stream in internal memory to the index segment of video monitoring file.
From above technical scheme, many video flowings are compound in a file and store by the present invention, which reduces the tracking number of times of magnetic head, can improve the concurrent performance write significantly; Video recording reason is also compound in file by the method, can not cause being separated of video recording reason and video recording when unloading file, after unloading data, is conducive to improving analysis efficiency; The method takes full advantage of the management function of file system to hard disk, does not limit each write data length, therefore upper level applications write comparatively simple.
Accompanying drawing explanation
Fig. 1 is method flow diagram of the present invention;
Fig. 2 is the form schematic diagram of video monitoring file;
Fig. 3 is the closing process schematic diagram of video monitoring file.
Embodiment
Below in conjunction with accompanying drawing, the present invention will be further described:
The file memory method of a kind of facing video monitoring as shown in Figure 1, the method comprises the step of following order:
Step 101, create video monitoring file in a hard disk, as shown in Figure 2, described video monitoring file comprises segment information, data segment and index segment, and adopts occupy-place mode to write segment information.Because the real time data of video monitoring data is not also known, therefore, adopt occupy-place mode to write segment information, reserve space to segment information, when video monitoring closing of a file, more real segment information is updated to this position.
As shown in Figure 2, because the video data volume is huge, therefore, all side-play amounts in the present invention all adopt 8 byte representations.Described segment information comprises the start offset address of data segment and index segment.Described data segment comprises each frame data of each stream.In the present invention, in order to accelerate access, each frame data is write from the position of 4 bytes or 8 byte-aligned, and the part finally do not lined up mends 0.Described index segment comprises definite length portion and elongated part.Definite length portion comprises the fixed length information of all stream.The fixed length information of every bar stream is concentrated and is left one piece in, is arranged in order.Every bar record comprises the unique ID of equipment, stream type (being shown to be audio frequency or video), stream index (stream which camera being shown to be equipment produces), the beginning and ending time (being at least accurate to second) of stream, video recording reason number, picture recording the start offset amount of reason, the start offset amount etc. of frame index.Elongated part comprises video recording reason and frame index.Video recording reason comprises the video recording reason of all stream; The video recording reason that every bar stream can have quantity not wait, is arranged in order; So just can facilitate and inquire about afterwards; Every bar record comprises description, the beginning and ending time (being at least accurate to second) of video recording reason.Frame index comprises the frame index information of all stream; The frame index information that every bar stream can have quantity not wait, is arranged in order; So just can playback video recording time quick position; Whether every bar record comprises the timestamp of present frame, byte number, is key frame, corresponding actual frame data side-play amount hereof.
Step 102, by network reception video monitoring data, described video monitoring data comprises flow data and the various signalings relevant to flow data.
Step 103, judges the type of video monitoring data.If video monitoring data is flow data, then perform step 104.If video monitoring data is the signaling relevant to flow data, then perform step 107.
Step 104, judges whether this flow data is what newly add; If so, then step 105 is performed; If not, then step 106 is performed.
Step 105, is recorded in the segment information of this flow data and index segment information in internal memory.When video monitoring closing of a file, then by the segment information of this flow data and index segment information write hard disk.
Step 106, by the data segment of the present frame of this flow data write video monitoring file, and is recorded in the frame index information of present frame in internal memory.
Step 107, judges whether this signaling is video recording reason; If so, then step 108 is performed; If not, then step 109 is performed.
Step 108, is added into video recording reason in internal memory.When video monitoring closing of a file, then reason write hard disk of recording a video.
Step 109, carries out respective handling according to signaling type.Perform to this step, illustrate that signaling is and stores irrelevant signaling, the difference according to application carries out respective handling.
Step 110, judges whether to close video monitoring file.If so, then step 111 is performed; If not, then execution step 102 is returned.
Step 111, closes video monitoring file.As shown in Figure 3, described closedown video monitoring file, specifically comprises the following steps:
Step 201, adopts occupy-place mode, each fixed length information flowed is write to the index segment of video monitoring file.Now, some contents of video monitoring file definite length portion information are not also known, adopt occupy-place mode writing in files, are temporarily unknown definite length portion information reserved storage space, this information are upgraded in step 205 again.
Step 202, writes to the index segment of video monitoring file, upgrades the relevant information of definite length portion information in internal memory simultaneously by each video recording reason flowed.
Step 203, writes to the index segment of video monitoring file, upgrades the relevant information of definite length portion information in internal memory simultaneously by each frame index information flowed.
Step 204, is updated to the segment information of video monitoring file by the segment information of each stream in internal memory.
Step 205, by the fixed length information updating of each stream in internal memory to the index segment of video monitoring file.
Above-described embodiment is only be described the preferred embodiment of the present invention; not scope of the present invention is limited; under not departing from the present invention and designing the prerequisite of spirit; the various distortion that those of ordinary skill in the art make technical scheme of the present invention and improvement, all should fall in protection range that claims of the present invention determines.

Claims (3)

1. a file memory method for facing video monitoring, is characterized in that: the method comprises the step of following order:
(1) create video monitoring file in a hard disk, described video monitoring file comprises segment information, data segment and index segment, and adopts occupy-place mode to write segment information;
(2) by network reception video monitoring data, described video monitoring data comprises flow data and the various signalings relevant to flow data;
(3) type of video monitoring data is judged;
If video monitoring data is flow data, then judge whether this flow data is what newly add; If so, then the segment information of this flow data and index segment information are recorded in internal memory; If not, then by the data segment of the present frame of this flow data write video monitoring file, and the frame index information of present frame is recorded in internal memory;
If video monitoring data is the signaling relevant to flow data, then judge whether this signaling is video recording reason; If so, then video recording reason is added in internal memory; If not, then respective handling is carried out according to signaling type;
(4) judge whether to close video monitoring file; If so, step (5) is then performed; If not, then execution step (2) is returned;
(5) video monitoring file is closed.
2. the file memory method of a kind of facing video monitoring according to claim 1, is characterized in that: in step (1), described segment information comprises the start offset address of data segment and index segment; Described data segment comprises each frame data of each stream; Described index segment comprises the fixed length information of all stream, reason of recording a video and frame index information.
3. the file memory method of a kind of facing video monitoring according to claim 1, is characterized in that: in step (5), and described closedown video monitoring file, specifically comprises the following steps:
(51) adopt occupy-place mode, each fixed length information flowed is write to the index segment of video monitoring file;
(52) each video recording reason flowed is write to the index segment of video monitoring file, upgrade the relevant information of definite length portion information in internal memory simultaneously;
(53) each frame index information flowed is write to the index segment of video monitoring file, upgrade the relevant information of definite length portion information in internal memory simultaneously;
(54) segment information of each stream in internal memory is updated to the segment information of video monitoring file;
(55) by the fixed length information updating of each stream in internal memory to the index segment of video monitoring file.
CN201510096876.5A 2015-03-05 2015-03-05 A kind of file memory method of facing video monitoring Active CN104702874B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510096876.5A CN104702874B (en) 2015-03-05 2015-03-05 A kind of file memory method of facing video monitoring

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510096876.5A CN104702874B (en) 2015-03-05 2015-03-05 A kind of file memory method of facing video monitoring

Publications (2)

Publication Number Publication Date
CN104702874A true CN104702874A (en) 2015-06-10
CN104702874B CN104702874B (en) 2018-02-16

Family

ID=53349603

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510096876.5A Active CN104702874B (en) 2015-03-05 2015-03-05 A kind of file memory method of facing video monitoring

Country Status (1)

Country Link
CN (1) CN104702874B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105744200A (en) * 2016-02-22 2016-07-06 深圳英飞拓科技股份有限公司 Video monitoring video storage method and device
CN109120986A (en) * 2017-06-26 2019-01-01 建荣半导体(深圳)有限公司 A kind of video record processing method, system, chip and storage device
CN111125427A (en) * 2019-12-26 2020-05-08 浪潮电子信息产业股份有限公司 Video file reading method and device, electronic equipment and medium
CN111966632A (en) * 2020-10-20 2020-11-20 浙江大华技术股份有限公司 Streaming data storage method, reading method, equipment and readable storage medium
CN113038248A (en) * 2021-03-25 2021-06-25 浙江大华技术股份有限公司 File processing method and device, video playing method and device and electronic device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050265162A1 (en) * 2004-05-27 2005-12-01 Canon Kabushiki Kaisha File system, file recording method, and file reading method
CN101370126A (en) * 2008-09-24 2009-02-18 中兴通讯股份有限公司 Broadcast control method and system for monitoring video
CN101644996A (en) * 2009-09-25 2010-02-10 杭州华三通信技术有限公司 Storage method of index data and storage control device
CN101860731A (en) * 2010-05-20 2010-10-13 杭州普维光电技术有限公司 Video information processing method, system and server
CN102685551A (en) * 2012-05-09 2012-09-19 浙江宇视科技有限公司 Method and system for viewing key event from video data
CN102708210A (en) * 2012-05-24 2012-10-03 浙江宇视科技有限公司 Method and system for checking key events from video data

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050265162A1 (en) * 2004-05-27 2005-12-01 Canon Kabushiki Kaisha File system, file recording method, and file reading method
CN101370126A (en) * 2008-09-24 2009-02-18 中兴通讯股份有限公司 Broadcast control method and system for monitoring video
CN101644996A (en) * 2009-09-25 2010-02-10 杭州华三通信技术有限公司 Storage method of index data and storage control device
CN101860731A (en) * 2010-05-20 2010-10-13 杭州普维光电技术有限公司 Video information processing method, system and server
CN102685551A (en) * 2012-05-09 2012-09-19 浙江宇视科技有限公司 Method and system for viewing key event from video data
CN102708210A (en) * 2012-05-24 2012-10-03 浙江宇视科技有限公司 Method and system for checking key events from video data

Cited By (8)

* Cited by examiner, † Cited by third party
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
CN109120986A (en) * 2017-06-26 2019-01-01 建荣半导体(深圳)有限公司 A kind of video record processing method, system, chip and storage device
CN109120986B (en) * 2017-06-26 2021-10-22 建荣集成电路科技(珠海)有限公司 Video recording processing method, system, chip and storage device
CN111125427A (en) * 2019-12-26 2020-05-08 浪潮电子信息产业股份有限公司 Video file reading method and device, electronic equipment and medium
CN111966632A (en) * 2020-10-20 2020-11-20 浙江大华技术股份有限公司 Streaming data storage method, reading method, equipment and readable storage medium
WO2022083655A1 (en) * 2020-10-20 2022-04-28 Zhejiang Dahua Technology Co., Ltd. Systems and methods for data storage and retrieval
CN113038248A (en) * 2021-03-25 2021-06-25 浙江大华技术股份有限公司 File processing method and device, video playing method and device and electronic device

Also Published As

Publication number Publication date
CN104702874B (en) 2018-02-16

Similar Documents

Publication Publication Date Title
CN107870973B (en) File storage system capable of accelerating simultaneous playback of multiple paths of monitoring
CN104702874A (en) Storing method for file monitored by video
CN105144142B (en) Use the information storage object of the multiple dimensions of object
CN103226965B (en) Based on the audio/video data access method of time bitmap
CN103440201A (en) Dynamic taint analysis device and application thereof to document format reverse analysis
CN102317901B (en) Methods for object adjustment and devices for remove control, node and storage system
US20110216774A1 (en) Packet file system
US20140280387A1 (en) System and method for expanding storage space of network device
US9916323B2 (en) Support for worm cartridges realized by linear tape file system (LTFS)
CN104270605B (en) A kind of processing method and processing device of video monitoring data
CN104811645A (en) Embedded video-recording data storage method
CN111966632B (en) Streaming data storage method, reading method, equipment and readable storage medium
CN108833817B (en) Video data storage method and device
CN104104895A (en) Method for carrying out video playback on video data and hard-disk video recorder
US8656094B2 (en) Locating host data records on a physical stacked volume
CN112181277B (en) Data storage space management method and device, storage medium and electronic equipment
CN107659842A (en) A kind of video is made friends reporting method and the system of passing the imperial examinations at the provincial level
CN105260130B (en) A kind of reading/writing method of Seagate hard-disk system file
CN111143343A (en) Data efficient deleting method and system based on source-end deduplication
CN108140047B (en) Data processing apparatus and method, and data container structure
CN105653385A (en) Vehicle-loaded videorecording method
KR101370503B1 (en) System and method for saving multimedia data and computer readable saving medium recording program for process of saving method thereof
CN104333725B (en) The streaming storage device and its method of built-in hard disk video tape recorder
CN104980680B (en) A kind of method of video data access
CN110874182B (en) Processing method, device and equipment for strip index

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
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Storing method for file monitored by video

Effective date of registration: 20190705

Granted publication date: 20180216

Pledgee: Hefei high tech Company limited by guarantee

Pledgor: ANHUI QINGXIN INTERNET INFORMATION TECHNOLOGY Co.,Ltd.

Registration number: 2019340000361

PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20200713

Granted publication date: 20180216

Pledgee: Hefei high tech Company limited by guarantee

Pledgor: ANHUI QINGXIN INTERNET INFORMATION TECHNOLOGY Co.,Ltd.

Registration number: 2019340000361

PC01 Cancellation of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A file storage method for video surveillance

Effective date of registration: 20220927

Granted publication date: 20180216

Pledgee: Hefei high tech Company limited by guarantee

Pledgor: ANHUI QINGXIN INTERNET INFORMATION TECHNOLOGY Co.,Ltd.

Registration number: Y2022980016624

PE01 Entry into force of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20231026

Granted publication date: 20180216

Pledgee: Hefei high tech Company limited by guarantee

Pledgor: ANHUI QINGXIN INTERNET INFORMATION TECHNOLOGY Co.,Ltd.

Registration number: Y2022980016624

PC01 Cancellation of the registration of the contract for pledge of patent right