CN105187783A - Monitoring video file processing method - Google Patents

Monitoring video file processing method Download PDF

Info

Publication number
CN105187783A
CN105187783A CN201510539491.1A CN201510539491A CN105187783A CN 105187783 A CN105187783 A CN 105187783A CN 201510539491 A CN201510539491 A CN 201510539491A CN 105187783 A CN105187783 A CN 105187783A
Authority
CN
China
Prior art keywords
video file
monitor video
generation
frame
delete
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.)
Withdrawn
Application number
CN201510539491.1A
Other languages
Chinese (zh)
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201510539491.1A priority Critical patent/CN105187783A/en
Publication of CN105187783A publication Critical patent/CN105187783A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Television Signal Processing For Recording (AREA)

Abstract

The invention discloses a monitoring video file processing method, relating to the monitoring video file management and storage. The monitoring video file processing method comprises steps of performing frame deletion on an original monitoring video file which achieves the preset storage life limit and is ready to be deleted, uniformly deleting half or more than half of the video frames of the monitoring video files according to the identical interval, generating a new second generation monitoring video file to store after frame deletion is finished, deleting the original monitoring video file, deleting the second generation monitoring video file after the preset second generation monitoring video file storage life limit is achieved, or utilizing the same processing method to generate the third generation, the fourth generation, and N generation monitoring video file. The invention is fast in processing the monitoring video file and is not high in hardware requirement. The beneficial effects of the invention are that: the volume of the monitoring video file is reasonably reduced with the time passing by, and the storage life of the monitoring video file is prolonged.

Description

A kind of processing method of monitor video file
Technical field
The present invention relates to a kind of processing method of video file, particularly relate to a kind of processing method of monitor video file.
Background technology
Along with the development of electronic technology, network technology, present video monitoring has been deep into the every aspect of social management, becomes the indispensable instrument that maintains public order.The common applied field of video monitoring owns: bank, road, institutional settings, rental house, airport and the densely populated place such as station, harbour region, public security prevention and control and sensitizing range.Can say, in many cities, as long as people walk out door, image will be taken by monitored camera.In addition, also there is the monitoring camera being all provided with interconnection network in many families now, a lot of car is also provided with drive recorder and carrys out recording image file.Monitoring camera all can produce the video data of flood tide every day, the monitor video file that these video datas are formed is stored in hard disk and (comprises mechanical hard disk, solid state hard disc, storage card, CD, the this locality such as tape or network storage medium) in, and be limited for the hard-disc storage space of preserving these monitor video files, in order to store the new monitor video file constantly produced, people have to arrange (such as a week pot-life, one month, three months etc.), the monitor video file exceeding the setting pot-life will deleted the minority vital document of specific markers (separately have except), to vacate hard drive space for storing the new monitor video file produced.Many times, the monitor video file due to " expired " deleted fall, when people want to find out " case " clue or " irrefutable evidence " from the monitor video file deleted, helpless, It is now too late to repent.Therefore, people always wish that monitor video file can preserve the longer time.How solving limited storage space and this contradiction of holding time extending monitor video file as far as possible, is a difficult problem of pendulum in face of technical staff.In addition, due to the restriction of memory space, many monitor video files can only adopt the picture format of low resolution to store, and high definition cannot be adopted, full HD, the high-resolution picture format such as ultra high-definition, 4k stores, to have an accident or after case like this, the monitor video file taken out just is difficult to the feature clearly showing suspect, suspected vehicles, thus reduces the use value of monitor video file.
Summary of the invention
In order to solve the existing monitor video file problem that the holding time is not grown due to memory space (hard-disk capacity) restriction, the object of the invention is, a kind of processing method of monitor video file is provided, in limited memory space, extend the holding time of monitor video file with reasonable manner more, also can provide new technological means for the image resolution ratio improving monitor video file in addition.
The processing method of a kind of monitor video file of the present invention is:
A, frame process directly deleted by the original monitor video file preparing to delete to reaching pot-life that (or being about to reach) set, evenly to delete in monitor video file about half or frame of video over half according to identical or close interval, delete frame complete after generation size than original monitor video file left and right half as large or over half two generation monitor video file (file size refers in particular to the size of video data, do not comprise the voice data size in video file), then preserve this newly-generated two generation monitor video file, and delete original monitor video file (namely with newly-generated two generation monitor video file replace original monitor video file and preserve), after reaching two generation monitor video file retention period limits of setting, delete this monitor video file in two generation, or carry out following process again:
B, to reach setting pot-life and prepare delete two generation monitor video file directly delete frame process, evenly to delete in monitor video file about half or frame of video over half according to identical or close interval, delete frame complete after generation size than former two generation monitor video file left and right half as large or three generations's monitor video file over half, then preserve three generations's monitor video file that this is newly-generated, and delete former two generation monitor video file (namely with newly-generated three generations's monitor video file replace two generation monitor video file preserve); After reaching three generations's monitor video file retention period limit of setting, delete this three generations's monitor video file, or carry out following process again:
C, again or repeatedly adopt the processing method identical with said method, N is processed for monitor video file, generate N+1 for monitor video file, and delete N for monitor video file (namely replacing N with newly-generated N+1 for monitor video file to preserve for monitor video file); After N value reaches set point (N value is set as 3,4 or 5 usually), no longer N+1 is processed for monitor video file (such as the 6th generation monitor video file), but after the pot-life that N+1 reaches setting for monitor video file (such as the 6th generation monitor video file), directly delete N+1 for monitor video file.
The invention has the beneficial effects as follows: owing to carrying out the monitor video file after deleting frame process than original left and right half as large or over half, even after repeatedly processing, file size only has 1/8th, 1/16th of original monitor video file (even less), therefore the memory space shared by monitor video file can effectively be reduced, that is can under the prerequisite of basic preservation monitor video file use value, As time goes on rationally reduce the volume of monitor video file, monitor video file can be allowed to preserve the longer time.
Accompanying drawing explanation
Fig. 1 is in one embodiment of the invention, the formation schematic diagram of the frame of video in monitor video file.
Fig. 2 is the schematic diagram using the inventive method the frame of video in Fig. 1 embodiment to be deleted to a kind of mode of frame process.
Fig. 3 uses after the inventive method deletes frame process to the frame of video in Fig. 1 embodiment, the formation schematic diagram of frame of video in two generation monitor video files of generation.
Fig. 4 uses the inventive method to delete the mode schematic diagram of frame process to the frame of video in two generation monitor video files shown in Fig. 3.
Fig. 5 uses after the inventive method deletes frame process to the frame of video in two generation monitor video files shown in Fig. 3, the formation schematic diagram of frame of video in three generations's monitor video file of generation.
Fig. 6 is the schematic diagram using the inventive method the frame of video in Fig. 1 embodiment to be deleted to the second way of frame process.
Fig. 7 is the formation schematic diagram of frame of video in the present invention's two embodiments.
Fig. 8 is the schematic diagram using the inventive method the frame of video in Fig. 7 embodiment to be deleted to the another kind of mode of frame process.
In figure: A, A1, A2 ... An. frame of video, I, I1, I2 ... In. key frame, P. non-key frame.
Embodiment
With reference to Fig. 1, monitor video file format in the present embodiment is AVI(or mobile JPG) form, do not have in the video file structure of this form key frame and non-key frame point, each frame of video can decode separately complete picture, such as A1, A2, A3, A4, A5, A6, A7, A8, A9, A10 ... An frame of video.
Monitor video file is all stored in local hard drive, storage card or net dish (storage medium such as the hard disk on network, CD, tape), and generally all can be set with the pot-life, the monitor video file exceeding the pot-life will be deleted, to vacate memory space to deposit new monitor video file.
With reference to Fig. 2, Fig. 3, the processing method of a kind of monitor video file of the present invention is: the original monitor video file (the monitor video file as in Fig. 1 embodiment) preparing to delete to reaching pot-life that (or being about to reach) set carries out processing and processes, the frame of video of evenly deleting half in monitor video file according to identical or close interval (directly deletes A2 in such as the present embodiment, A4, A6, A8, A10 ... even video frame, retain A1, A3, A5, A7, A9 ... odd video frame), delete after frame process completes, generate new two generation monitor video file (monitor video file as shown in Figure 3, this monitor video file is compared with original monitor video file, only remain A1, A3, A5, A7, A9 ... odd video frame, that is, compared with original monitor video file, decrease the frame of video of half), then preserve this newly-generated two generation monitor video file, and delete original monitor video file.New two generation monitor video file size 50%(file size approximately less of original monitor video file refers in particular to the size of video data, do not comprise the voice data size in video file), with new two generation monitor video file replace original monitor video file and preserve, due to about the little half of file size, therefore valuable memory space can be saved, that is, in identical memory space, monitor video file can be allowed to preserve the longer time.
Frame of video in monitor video file has 25 frames/second usually, also can be understood as monitoring camera and taken 25 sheet photos within 1 second.Use the monitor video file after the inventive method process, because the frame of video be a half, therefore also can be understood as monitoring camera and taken 12 sheet photos within 1 second.When the overwhelming majority, in 1 second, take " case " clue that 25 sheet photos provide, with " case " clue almost few of difference taking 12 sheet photos in 1 second and provide.Such as, the monitor video that ATM in bank monitoring camera takes, take 25 sheet photos in 1 second and in 1 second, take 12 sheet photo roles (because no one only just committed a crime and leaves in 0.04 second before ATM) about the same, recall effective clue that these two kinds of monitor video files can view relevant " case " equally.
After using the inventive method to process original monitor video file, generate two generation monitor video file, after the pot-life reaching setting, both it can have been deleted and no longer retain, also can reuse the inventive method to process this monitor video file, the three generations's monitor video file generating " volume " less is preserved in two generation.
With reference to Fig. 4, Fig. 5, the method that two generations monitor video file (monitor video file as shown in Figure 3) preparing to delete to reaching pot-life that (or being about to reach) set process is: the frame of video of directly deleting half in monitor video file according to same intervals (directly deletes A3 in such as the present embodiment, A7 ... frame of video, retain A1, A5, A9 ... frame of video), delete after frame process completes, generate new three generations's monitor video file (monitor video file as shown in Figure 5, this monitor video file is compared with original two generation monitor video files, additionally reduce the frame of video of half), then three generations's monitor video file that this is newly-generated is preserved, and delete former two generation monitor video file.New three generations's monitor video file size than former two generation monitor video file little again by about 50%, its memory space taken is also less, and monitor video file therefore can be allowed to preserve the longer time.
Above-mentioned three generations's monitor video file is after the pot-life reaching setting, both can delete, also can repeatedly use the inventive method to process this three generations and monitor video file below, generate " volume " less four, five, six ... N preserves for monitor video file.
With reference to Fig. 6, the present invention except above-mentioned " deleting a frame every a frame " mode, can also adopt the mode such as " every three frames delete a frame ", " every three frames delete two frames ", " every four frames delete three frames ", " every five frames delete four frames " to the processing method of monitor video file.As shown in Figure 6, what adopt is the method for " every three frames delete two frames ", in adjacent A1, A2, A3 tri-frame of video, delete A2, A3 frame of video, only retain A1 frame of video, the processing mode of remaining frame of video is also similar, and all videos frame is deleted 2/3rds, and the size of the new monitor video file generated like this is only about 1/3rd of original monitor video file.
With reference to Fig. 7 embodiment, the monitor video file format in the present embodiment is the video of this kind of compressed format of MP4, has I frame and P frame (or B frame) in the video file structure of this form, namely have key frame and non-key frame point.I frame represents key frame, just can generate complete picture to only needing these frame data during this frame decoding; The difference of what P frame represented is this frame and a key frame (or P frame) before, need the difference being superimposed with this frame definition with the picture of buffer memory before during decoding, generate final picture, therefore P frame is also predictive frame, difference frame.
With reference to Fig. 8, the processing method of the present invention to monitor video file is, to reach or be about to reach setting pot-life and prepare delete original monitor video file (monitor video file as shown in Figure 7), the I frame in monitor video file about half is directly deleted and the P frame that is associated (directly deletes I2 in such as the present embodiment according to identical or close interval, I4 ... key frame and the P frame be associated thereof, retain I1, I3, I5 ... key frame and the P frame be associated thereof), delete after frame process completes, generate new two generation monitor video file, delete simultaneously original monitor video file (namely with new two generation monitor video file replace original monitor video file and file), this monitor video file is compared with original monitor video file, decrease the frame of video about half, file size is therefore little than original monitor video file by about 50%.
Monitor video document handling method of the present invention, owing to not needing to carry out new decoding, coding and the process of recompression even depth to the picture in handled video file, but preserve after directly deleting a part of frame of video, therefore not high to hardware relative requirement, deal with speed also fast.
The pot-life of existing monitor video file is set as 7 days, 10 days, 15 days, 1 month, 3 months usually, and As time goes on, the importance of preserving monitor video file in a hard disk can be more and more lower.Because if having case or accident to occur, related personnel can transfer monitor video file to check within the very first time, and within many days, does not all find that there is case and occur, and what use the video image preserved in monitor video file is just equal to nothing substantially.Monitor video document handling method of the present invention, on being in the original monitor video file in important stage (such as nearest one or two week or three or four week just preserve) without any impact (not dealing with), and As time goes on, the importance of monitor video file is in reduction, therefore the volume of " in early days " file is correspondingly reduced in the mode repeatedly reducing frame of video, older monitor video file (the monitor video file namely more early recorded) is made to become less, allowing it can preserve the longer time, is technically very reasonable, useful.
The pot-life supposing existing ATM in bank monitor video file configuration is 3 months, after application the inventive method, can change into and more reasonably preserve scheme below: original monitor video file configuration be preservation 1 month, two generation monitor video file configuration be preservation 2 months, three generations's monitor video file configuration be preservation 3 months, four generation monitor video file preserve 6 months, namely preserve after 1 year and deleted again.Monitor video file is generally 25 frames/second, after application the inventive method process two, three, four generation monitor video file be about 12 respectively, 6,3 frames/second, four generation monitor video file size be only about 1/8th (greatly can save memory space) of original monitor video file, but be also equivalent within 1 second, taken 3 monitoring photographs, quite important image data therefore still can be provided to come for " solving a case ".
As can be seen here, the inventive method be can yet be regarded as the best approach of monitor video file process and preservation.
In addition, if the image resolution ratio of the original monitor video file adopted is 720P, storage life is three months.After application the present invention program, the resolution of scalable employing 1080P, the original monitor video file produced preserves 10 days, then the frame of video of monitor video file is reduced half by the mode of every two frame deletion one frames, monitor video file is preserved 20 days, the last frame of video reducing half in the same way again, preserves 2 months by monitor video file.The monitoring image of high definition can be provided so after the incident, not need again additionally to increase memory space.

Claims (2)

1. a processing method for monitor video file, is characterized in that:
A, to reach setting pot-life and prepare delete original monitor video file delete frame process, half or frame of video over half in monitor video file is evenly deleted according to identical or close interval, delete frame complete after generation new two generation monitor video file, then preserve this monitor video file in two generation, and delete original monitor video file; After reaching two generation monitor video file retention period limits of setting, delete this monitor video file in two generation, or carry out following process again:
B, to reach setting pot-life and prepare delete two generation monitor video file delete frame process, half or frame of video over half in monitor video file is evenly deleted according to identical or close interval, delete frame complete after the new three generations's monitor video file of generation, then preserve this three generations's monitor video file, and delete former two generation monitor video file; After reaching three generations's monitor video file retention period limit of setting, delete this three generations's monitor video file, or carry out following process again:
C, again or repeatedly adopt the processing method identical with said method, N is processed for monitor video file, generates N+1 for the preservation of monitor video file, and delete N for monitor video file; After N value reaches set point, no longer N+1 is processed for monitor video file, but after the pot-life that N+1 reaches setting for monitor video file, directly delete N+1 for monitor video file.
2. the processing method of monitor video file according to claim 1, is characterized in that: N value is 3,4 or 5.
CN201510539491.1A 2015-08-30 2015-08-30 Monitoring video file processing method Withdrawn CN105187783A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510539491.1A CN105187783A (en) 2015-08-30 2015-08-30 Monitoring video file processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510539491.1A CN105187783A (en) 2015-08-30 2015-08-30 Monitoring video file processing method

Publications (1)

Publication Number Publication Date
CN105187783A true CN105187783A (en) 2015-12-23

Family

ID=54909606

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510539491.1A Withdrawn CN105187783A (en) 2015-08-30 2015-08-30 Monitoring video file processing method

Country Status (1)

Country Link
CN (1) CN105187783A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105430480A (en) * 2015-11-13 2016-03-23 Tcl集团股份有限公司 Method and system for storing video data
CN108289183A (en) * 2018-01-24 2018-07-17 浙江大华技术股份有限公司 A kind of video recording store method and electronic equipment
CN108377363A (en) * 2018-02-07 2018-08-07 特斯联(北京)科技有限公司 A kind of monitor video acquisition methods based on event triggering
WO2019174409A1 (en) * 2018-03-12 2019-09-19 杭州海康威视数字技术股份有限公司 Data processing
CN113572983A (en) * 2021-08-30 2021-10-29 深圳市万佳安物联科技股份有限公司 Cloud video processing method and system
CN114157912A (en) * 2021-11-26 2022-03-08 瑞森网安(福建)信息科技有限公司 Cloud video playing method and application thereof in image projection

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050195205A1 (en) * 2004-03-03 2005-09-08 Microsoft Corporation Method and apparatus to decode a streaming file directly to display drivers
US20090172694A1 (en) * 2008-01-02 2009-07-02 Sandisk Il Ltd. Cache management
CN101740082A (en) * 2009-11-30 2010-06-16 孟智平 Method and system for clipping video based on browser
CN101894131A (en) * 2010-06-10 2010-11-24 胡建军 Video storage method convenient for rapidly retrieving images
CN102685436A (en) * 2011-12-13 2012-09-19 上海天跃科技股份有限公司 Storage method employing scalable video coding technical design
CN102970508A (en) * 2012-11-20 2013-03-13 无锡乾煜信息技术有限公司 Frame extraction storing method for digital video surveillance

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050195205A1 (en) * 2004-03-03 2005-09-08 Microsoft Corporation Method and apparatus to decode a streaming file directly to display drivers
US20090172694A1 (en) * 2008-01-02 2009-07-02 Sandisk Il Ltd. Cache management
CN101740082A (en) * 2009-11-30 2010-06-16 孟智平 Method and system for clipping video based on browser
CN101894131A (en) * 2010-06-10 2010-11-24 胡建军 Video storage method convenient for rapidly retrieving images
CN102685436A (en) * 2011-12-13 2012-09-19 上海天跃科技股份有限公司 Storage method employing scalable video coding technical design
CN102970508A (en) * 2012-11-20 2013-03-13 无锡乾煜信息技术有限公司 Frame extraction storing method for digital video surveillance

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105430480A (en) * 2015-11-13 2016-03-23 Tcl集团股份有限公司 Method and system for storing video data
CN105430480B (en) * 2015-11-13 2019-06-11 Tcl集团股份有限公司 A kind of method and system of video data storage
CN108289183A (en) * 2018-01-24 2018-07-17 浙江大华技术股份有限公司 A kind of video recording store method and electronic equipment
CN108377363A (en) * 2018-02-07 2018-08-07 特斯联(北京)科技有限公司 A kind of monitor video acquisition methods based on event triggering
WO2019174409A1 (en) * 2018-03-12 2019-09-19 杭州海康威视数字技术股份有限公司 Data processing
CN110309111A (en) * 2018-03-12 2019-10-08 杭州海康威视数字技术股份有限公司 A kind of data processing method and its device
CN113572983A (en) * 2021-08-30 2021-10-29 深圳市万佳安物联科技股份有限公司 Cloud video processing method and system
CN114157912A (en) * 2021-11-26 2022-03-08 瑞森网安(福建)信息科技有限公司 Cloud video playing method and application thereof in image projection

Similar Documents

Publication Publication Date Title
CN105187783A (en) Monitoring video file processing method
CN105187782A (en) Processing method for monitoring video file
US10650241B2 (en) Systems and methods for identifying matching content
US7770227B2 (en) Right information management method and right information management device
US20130159652A1 (en) Continuous data protection over intermittent connections, such as continuous data backup for laptops or wireless devices
CN103226965B (en) Based on the audio/video data access method of time bitmap
CN103164528B (en) A kind of index establishing method of audio, video data
CN110717070A (en) Video compression method and system for indoor monitoring scene
WO2015063845A1 (en) Data storage device, data storage method, and data storage program
CN110896497A (en) Image processing method, video playing method and device
CN107168651A (en) A kind of small documents polymerize storage processing method
CN1751508A (en) Multimedia data recording apparatus, monitor system, and multimedia data recording method
US8312028B2 (en) Method and system for managing media assets
KR102165087B1 (en) Video Data Control of Vehicle Black Box using for SAT
US11841762B2 (en) Data processing
TWI555406B (en) Storage method and processing device and video recording system thereof
CN101677384B (en) Data storage management system and method
TWI636406B (en) Film media asset management system
US10735512B2 (en) Managing data
US20230039708A1 (en) File processing device, file processing method, and program
CN111524077B (en) Method and system for repairing image data
CN102801946A (en) High-reliability vehicle-mounted video storage device and video storage method
KR102181578B1 (en) Vehicle black box to which SAT variable block method is applied
US20160191742A1 (en) Image file management method, image capturing device, image storage device, and computer readable medium thereof
CN202759536U (en) Highly reliable vehicle-loaded video storage apparatus and vehicle-loaded video apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20151223