CN104333724B - The alarm video recording prerecording method of built-in hard disk video tape recorder - Google Patents
The alarm video recording prerecording method of built-in hard disk video tape recorder Download PDFInfo
- Publication number
- CN104333724B CN104333724B CN201410694422.3A CN201410694422A CN104333724B CN 104333724 B CN104333724 B CN 104333724B CN 201410694422 A CN201410694422 A CN 201410694422A CN 104333724 B CN104333724 B CN 104333724B
- Authority
- CN
- China
- Prior art keywords
- file
- recording
- video
- alarm
- data
- 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.)
- Active
Links
Landscapes
- Signal Processing For Digital Recording And Reproducing (AREA)
- Management Or Editing Of Information On Record Carriers (AREA)
Abstract
Before a kind of alarm of built-in hard disk video tape recorder video recording prerecording method, including video recording, pre-record file and a file header and invalid frame are created;Start to write prerecorded data during video recording, after the prerecorded data of write-in, which exceedes, pre-records file size, turn back and continue to start to write to the position after file header and invalid frame;When receiving alarm signal in file of pre-recording, effectively pre-record file and effective document head are created, while is write in file system of the Video data in hard disk after the file of pre-recording that will alarm.The present invention starts to record a video after alarm signal is received, open and pre-record before alarm, prerecorded data is repetitively written in one piece of data area, alarm start after time of pre-recording within effective prerecorded data be saved in and effectively pre-record in file, update effective prerecorded data starting position of video recording and effective prerecorded data end position.It is such to lose video recording, and I/O interfaces are reduced, avoid the occurrence of the problem of copying repeatedly.
Description
Technical field
The invention belongs to field of video monitoring, and in particular to a kind of alarm video recording side of pre-recording of built-in hard disk video tape recorder
Method.
Background technology
Embedded device includes embedded digital video recorder (DVR)(Digital Video Recorder are DVR)Equipment, it is embedded
Formula NVR(Network Video Recorder are network hard disk video recorder)Equipment and embedded mixed type DVR equipment.
Embedded digital video recorder (DVR) equipment is that one kind can connect analog video camera, ball machine etc., and analog acquisition its vision signal, is entered
The local output echo of row, and the embedded type network video equipment that Video coding is locally stored, network real-time video is propagated.
Embedded NVR equipment is that one kind can connect and control network IPC(Internet Protocol Camra are net
Network video camera)Front end, the video data that IPC is transmitted is locally stored and forwarded, and decodes in the defeated of NVR equipment
The equipment that the real time video signals that IPC is gathered are shown on outgoing interface.
Embedded mixed type DVR equipment is the embedded digital video recorder (DVR) built-in hard disk video tape recorder equipment all with NVR functions.
With safety precaution, the continuous development of Video Surveillance Industry, the development speed of digital video monitoring is more and more faster, closely
Several years not only traditional embedded digital video recorder (DVR) equipment achieve tremendous development, and the new equipment such as embedded NVR, mixed type DVR also should
Transport and give birth to.The thing followed, due to security requirement more and more higher of the user to video monitoring.
Embedded digital video recorder (DVR), NVR, mixed type DVR above all recording function.The record of embedded digital video recorder (DVR), NVR, mixed type DVR
As being divided into, timing is recorded a video and alarm video recording, alarm video recording are generally used for including port alarm, mobile detection alert, video-losing report
Police, the alarm of audio loss alarm, intellectual analysis etc..Alarm video recording, which generally requires, pre-records and prolongs record, and it is before finding alarm to pre-record
The thing of a period of time, the time of generally pre-recording no more than one minute, the reason for helping to find to alarm and dangerous situation.It is existing to pre-record
It is to create a file of pre-recording, in copying prerecorded data to video file when alarm, but is having the high I/O of comparison
(Input/output, input and output)During interface, hard disk write-in failure can be caused, loses video recording.
The content of the invention
The present invention be for above-mentioned technical problem, and propose a kind of built-in hard disk video tape recorder alarm video recording pre-record
Method.
The technical scheme is that:
The alarm video recording prerecording method of built-in hard disk video tape recorder of the present invention, it is specially:
Before I video recording, the file of pre-recording of a fixed capacity is created in hard disk, and records the file of pre-recording and starts to pre-record
The position of data and the position for terminating prerecorded data, while write the file header of a fixed capacity in file start-position of pre-recording
And invalid frame;
After II creates file of pre-recording, when equipment meets video recording condition and starts video recording, the file header in file of pre-recording
Prerecorded data is write with the position after invalid frame, and an I frame index is write for each I frame of prerecorded data, when write-in
After prerecorded data exceedes file size of pre-recording, turn back and continue to start to write to the position after file header and invalid frame;
III in file of pre-recording when receiving alarm signal, according to present system time and pre-records the time, is sought by I frame index
Look for an alarm I frame nearest before recording a video and be created as file of effectively pre-recording, one is created before the file of effectively pre-recording
The effective document head of fixed capacity, and record the file of effectively pre-recording and start the address of effective prerecorded data and terminate effectively to pre-record
The address of data, while write in file system of the Video data in hard disk after the file of pre-recording that will alarm;
IV after this effectively pre-records file and alarm video data recording, after this pre-records file and alarm Video data
Hard disk in create a new file of pre-recording again;
V in file of pre-recording when not receiving alarm signal, then deletes the file of pre-recording, and re-creates one and new pre-records
File.
The beneficial effects of the invention are as follows:
The present invention, without video recording, starts to record a video before alarm signal is received after alarm signal is received.Alarm
Open and pre-record before, prerecorded data is unconditionally repetitively written in one piece of data area, and records I frame index, after alarm starts
Time of pre-recording within effective prerecorded data be saved in and effectively pre-record in file, and refresh I frame index datas, update video recording
Effective prerecorded data starting position and effective prerecorded data end position.It is such to lose video recording, and reduce I/O and connect
Mouthful, avoid the occurrence of the problem of copying repeatedly.
Brief description of the drawings
Fig. 1 is the structural representation of file of being pre-recorded in hard disk of the present invention;
Fig. 2 is the FB(flow block) of the present invention.
Embodiment
Hereinafter, referring to the drawings and embodiment the present invention is described in detail:
As shown in Figure 1-2, the alarm video recording prerecording method of built-in hard disk video tape recorder of the present invention, it is specially:
Before I video recording, the file of pre-recording of a fixed capacity is created in hard disk, and records the file of pre-recording and starts to pre-record
The position of data and the position for terminating prerecorded data, while write the file header of a fixed capacity in file start-position of pre-recording
And invalid frame;
After II creates file of pre-recording, when equipment meets video recording condition and starts video recording, the file header in file of pre-recording
Prerecorded data is write with the position after invalid frame, and an I frame index is write for each I frame of prerecorded data, when write-in
After prerecorded data exceedes file size of pre-recording, turn back and continue to start to write to the position after file header and invalid frame;
III in file of pre-recording when receiving alarm signal, according to present system time and pre-records the time, passes through I frame index
Find an I frame nearest before alarm is recorded a video and be created as file of effectively pre-recording, one is created before the file of effectively pre-recording
The effective document head of individual fixed capacity, and record the file of effectively pre-recording and start the address of effective prerecorded data and terminate effectively pre-
The address of data is recorded, while is write in file system of the Video data in hard disk after the file of pre-recording that will alarm;
IV after this effectively pre-records file and alarm video data recording, after this pre-records file and alarm Video data
Hard disk in create a new file of pre-recording again;
V in file of pre-recording when not receiving alarm signal, then deletes the file of pre-recording, and re-creates one and new pre-records
File.
The alarm video recording prerecording method of described built-in hard disk video tape recorder, when Video data is alarmed in backup, first basis
Pre-record effectively pre-record in file file start address and end address read effective prerecorded data, effective prerecorded data reads it
Afterwards, then alarm Video data is read, and effective prerecorded data and alarm Video data is backuped in the file system in hard disk.
The alarm video recording prerecording method of described built-in hard disk video tape recorder, when inquiry plays back alarm Video data, first
Effective prerecorded data is read according to the start address for file of effectively being pre-recorded in file of pre-recording and end address, effective prerecorded data is read
Take and then read Normal Alarm Video data.
In DVR/NVR/ mixing DVR picture recording modules in video file packing and the timed task opened, if detection does not have
Certain passage starts to record a video and pre-recorded, and hard disk has enough memory spaces, then is created for the passage in its hard-disc storage area
Build a file of pre-recording.Empty file head and an invalid frame are write, in order to access alignment of data and polishing 512K, for file note of pre-recording
Record prerecorded data write-in starting position and end position.
Data processing threads detection is write if file satisfaction of pre-recording and pre-recorded in DVR/NVR/ mixing DVR picture recording modules
During the condition of data, data are sent in file of pre-recording and preserved.
Write when pre-recording file, an I frame index is write for each I frame.If the 64M for file of pre-recording, which has write, to expire, from
Head starts to rewrite, and brushes off capped I frame index.
If meeting packing condition, audio coding mode, digital channel disconnection are such as changed, then deletes file of pre-recording, clearly
Fall prerecorded data, restart to pre-record.
After alarm signal generation, data processing threads stop sending prerecorded data.Simultaneously according to present system time and
It is required that pre-record the time, calculate distance alarm Video data forward and start a nearest I frame effectively to pre-record file, according to this
The position of individual I frame data calculates forward the position of 512K effective document heads, updates effective document head, and updates the text of effectively pre-recording
Effective prerecorded data starting position of part and end position.While in the position write-in alarm video recording number after pre-recording file
Delivered newspaper alert Video data according to, data processing threads.
When reading alarm Video data, read, read effectively pre- since the file start-position of effectively pre-recording for file of pre-recording
End of file position is recorded, the end position for then branching to file of pre-recording starts alert Video data of reading the newspaper.
Claims (3)
- A kind of 1. alarm video recording prerecording method of built-in hard disk video tape recorder, it is characterised in that:Before I video recording, the file of pre-recording of a fixed capacity is created in hard disk, and records the file of pre-recording and starts prerecorded data Position and terminate prerecorded data position, while pre-record file start-position write a fixed capacity file header and nothing Imitate frame;After II creates file of pre-recording, when equipment meets video recording condition and starts video recording, file header and nothing in file of pre-recording The position write-in prerecorded data after frame is imitated, and an I frame index is write for each I frame of prerecorded data, when pre-recording for write-in After data exceed file size of pre-recording, turn back and continue to start to write to the position after file header and invalid frame;III in file of pre-recording when receiving alarm signal, according to present system time and pre-records the time, is sought by I frame index Look for an alarm I frame nearest before recording a video and be created as file of effectively pre-recording, one is created before the file of effectively pre-recording The effective document head of individual fixed capacity, and record the file of effectively pre-recording and start the address of effective prerecorded data and terminate effectively pre- The address of data is recorded, while is write in file system of the Video data in hard disk after the file of effectively pre-recording that will alarm;IV after this effectively pre-records file and alarm video data recording, after this effectively pre-records file and alarm Video data Hard disk in create a new file of pre-recording again;V in file of pre-recording when not receiving alarm signal, then deletes the file of pre-recording, and re-creates a new file of pre-recording.
- 2. the alarm video recording prerecording method of the built-in hard disk video tape recorder according to claim 1, it is characterised in that:When During backup alarm Video data, first read according to the start address for file of effectively being pre-recorded in file of pre-recording and end address effectively pre- Record data, effective prerecorded data reads and then read alarm Video data, and by effective prerecorded data and alarm Video data Backup in the file system in hard disk.
- 3. the alarm video recording prerecording method of the built-in hard disk video tape recorder according to claim 1, it is characterised in that:When During inquiry playback alarm Video data, first being read according to the start address for file of effectively being pre-recorded in file of pre-recording and end address has Prerecorded data is imitated, effective prerecorded data reads and then read Normal Alarm Video data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410694422.3A CN104333724B (en) | 2014-11-27 | 2014-11-27 | The alarm video recording prerecording method of built-in hard disk video tape recorder |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410694422.3A CN104333724B (en) | 2014-11-27 | 2014-11-27 | The alarm video recording prerecording method of built-in hard disk video tape recorder |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104333724A CN104333724A (en) | 2015-02-04 |
CN104333724B true CN104333724B (en) | 2017-12-08 |
Family
ID=52408366
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410694422.3A Active CN104333724B (en) | 2014-11-27 | 2014-11-27 | The alarm video recording prerecording method of built-in hard disk video tape recorder |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104333724B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105141891B (en) * | 2015-08-04 | 2019-04-30 | 浙江宇视科技有限公司 | It records a video before a kind of police caching method and device |
CN105338279B (en) * | 2015-09-28 | 2018-12-28 | 深圳市豪恩安全科技有限公司 | A kind of control method that video is pre-recorded with alarm system linkage |
CN106550203B (en) * | 2016-12-07 | 2019-07-23 | 高新兴科技集团股份有限公司 | A kind of video prerecording method and its application for realizing monitor video based on file cache |
CN109639501B (en) * | 2018-12-29 | 2022-04-12 | 浙江宇视科技有限公司 | Abnormal record information storage method and device |
CN109803107B (en) * | 2019-01-09 | 2021-06-22 | 安徽睿极智能科技有限公司 | Embedded file system of multimedia data and fast read-write method thereof |
CN111405220B (en) * | 2019-09-30 | 2022-07-05 | 杭州海康威视系统技术有限公司 | Video prerecording method and cloud storage system |
CN111447473A (en) * | 2020-03-03 | 2020-07-24 | 深圳市天视通电子科技有限公司 | Alarm video processing method and system |
CN112202990B (en) * | 2020-09-14 | 2021-05-11 | 深圳市睿联技术股份有限公司 | Video prerecording method, camera and electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001292411A (en) * | 2000-04-10 | 2001-10-19 | Sony Corp | Image data recorder and image data recording method |
CN101365088A (en) * | 2007-08-10 | 2009-02-11 | 深圳市锐明视讯技术有限公司 | Hard disc video recording method |
CN101729836A (en) * | 2009-12-09 | 2010-06-09 | 艾默生网络能源有限公司 | Method for videoing bottom acquisition device |
CN101968967A (en) * | 2010-08-04 | 2011-02-09 | 深圳英飞拓科技股份有限公司 | Prerecording method used for monitoring equipment |
CN103369284A (en) * | 2012-03-31 | 2013-10-23 | 浙江大华技术股份有限公司 | Audio video data prerecording method and device |
-
2014
- 2014-11-27 CN CN201410694422.3A patent/CN104333724B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001292411A (en) * | 2000-04-10 | 2001-10-19 | Sony Corp | Image data recorder and image data recording method |
CN101365088A (en) * | 2007-08-10 | 2009-02-11 | 深圳市锐明视讯技术有限公司 | Hard disc video recording method |
CN101729836A (en) * | 2009-12-09 | 2010-06-09 | 艾默生网络能源有限公司 | Method for videoing bottom acquisition device |
CN101968967A (en) * | 2010-08-04 | 2011-02-09 | 深圳英飞拓科技股份有限公司 | Prerecording method used for monitoring equipment |
CN103369284A (en) * | 2012-03-31 | 2013-10-23 | 浙江大华技术股份有限公司 | Audio video data prerecording method and device |
Also Published As
Publication number | Publication date |
---|---|
CN104333724A (en) | 2015-02-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104333724B (en) | The alarm video recording prerecording method of built-in hard disk video tape recorder | |
CN101867792B (en) | Real-time transmission method for video record buffering | |
CN101968967B (en) | Prerecording method used for monitoring equipment | |
CN102843538B (en) | The content consciousness of video signal data stores | |
CN105872484B (en) | A kind of abnormal guard method of monitoring video | |
CN102456376B (en) | Recording and play method for monitoring device | |
WO2004017249A3 (en) | Recording device that stores buffered digital signals to memory flashcards | |
CN104408109B (en) | Alarm video recording method for recording and device | |
KR101743411B1 (en) | Method and apparatus for data access | |
CN104168443A (en) | Method for carrying out video recording on video monitor and network video recorder | |
CN107093436A (en) | The storage method and device of the audio, video data pre-recorded, mobile terminal | |
CN103686312A (en) | DVR multipath audio and video recording method | |
CN103188474A (en) | Video intelligent analysis system and storing and playing method of surveillance video thereof | |
CN101895736B (en) | Media stream data processing method and device thereof | |
EP1884949A3 (en) | Methods for searching data recorded in a storage and recording systems that allow playback utilizing trick-mode operations | |
CN102196249A (en) | Monitoring data playback method, EC (Encoder) and video management server | |
CN101710983A (en) | Method for playing real-time streaming files and device thereof | |
US10555034B2 (en) | Digital video recorder with additional video inputs over a packet link | |
CN103546724A (en) | Network camera collecting-distributing redundancy storage system and storage method thereof | |
CN103544975B (en) | A kind of guard method of vehicle-mounted hard disks | |
CN102279779A (en) | Method and device for realizing redundancy backup of video data on digital video recorder | |
CN202334750U (en) | High-definition AV (Audio/Video) trial system | |
CN104333725B (en) | The streaming storage device and its method of built-in hard disk video tape recorder | |
JP4790643B2 (en) | Video recording / playback device | |
CN203554599U (en) | Network camera collecting-distributing redundancy storage system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 300384 Tianjin City Huayuan Industrial Zone (outer ring road No. 8) two Haitai branch Applicant after: Tiandi Weiye Technology Co., Ltd. Address before: 300384 Tianjin city Xiqing District Huayuan new technology Industrial Park (outer ring road No. 8) two Haitai branch Applicant before: Tianjin Tiandy Digital Technology Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |