CN103793506A - Video file management method and device - Google Patents

Video file management method and device Download PDF

Info

Publication number
CN103793506A
CN103793506A CN201410038755.0A CN201410038755A CN103793506A CN 103793506 A CN103793506 A CN 103793506A CN 201410038755 A CN201410038755 A CN 201410038755A CN 103793506 A CN103793506 A CN 103793506A
Authority
CN
China
Prior art keywords
file
video
video file
xml
predetermined format
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.)
Pending
Application number
CN201410038755.0A
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.)
SHENZHEN HUABAO ELECTRONIC TECHNOLOGY Co Ltd
Original Assignee
SHENZHEN HUABAO ELECTRONIC 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 SHENZHEN HUABAO ELECTRONIC TECHNOLOGY Co Ltd filed Critical SHENZHEN HUABAO ELECTRONIC TECHNOLOGY Co Ltd
Priority to CN201410038755.0A priority Critical patent/CN103793506A/en
Publication of CN103793506A publication Critical patent/CN103793506A/en
Pending legal-status Critical Current

Links

Images

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)
  • Television Signal Processing For Recording (AREA)

Abstract

The invention relates to the technical field of videos, and provides a video file management method and device. The method includes the steps of creating an XML index file according to a preset format, and inserting index information of a video file into the XML index file through an XML parser according to a sorting sequence corresponding to the preset format when the video file is created through a DVR. According to the video file management method, the XML index file is created according to the preset format, when the video file is produced through the DVR, the index information of the video file is inserted into the XML index file through the XML parser according to the sorting sequence corresponding to the preset format, and accordingly the specified video file is quickly positioned according to the sorting sequence corresponding to the preset format, and management efficiency of the video file is greatly improved.

Description

A kind of video file management method and device
Technical field
The invention belongs to video technique field, relate in particular to a kind of video file management method and device.
Background technology
Along with development, the raising of memory technology and the reduction of carrying cost of infotech, develop jumbo DVR(Digital Video Recorder, digital video recorder) become a kind of inexorable trend, the retention time of the video file of existing DVR can be from some months by several years.
Generalized case, DVR system is text or the privately owned form of scale-of-two by video file record, extracts key message and is kept in storer by user-defined format, inquires about for DVR.Storer detaches after DVR, need to be equipped with corresponding query software, makes query software by the text in user-defined format read memory or the privately owned form of scale-of-two, thus inquiry video file.Prior art has following shortcoming: the first, and interface sealing, need to be equipped with corresponding query software and could inquire about video file; The second, inquiry velocity is slow, no matter is to read or read by user-defined format entirety by row, and file I/O (Input/Output, I/O) operation is all very slow, particularly large file; The 3rd, if video file is recorded as the privately owned form of scale-of-two, so all video files in storer for query software just like a black box, can only filename be traveled through opened file folder one by one, need the standardization of dependent file name to judge video file, in the time of storage heap file, very inconvenient, efficiency is extremely low.
Summary of the invention
The object of the embodiment of the present invention is to provide a kind of video file management method, is intended to solve the low problem of the efficiency of management of existing video file.
The embodiment of the present invention is achieved in that a kind of video file management method, comprising:
Create expandable mark language XML index file according to predetermined format;
In the time that digital video recorder DVR produces video file, the clooating sequence corresponding according to described predetermined format, is inserted into the index information of described video file in described XML index file by XML resolver.
Another object of the embodiment of the present invention is to provide a kind of video file management devices, comprising:
XML index file creation module, for creating expandable mark language XML index file according to predetermined format;
Video index information insert module, in the time that digital video recorder DVR produces video file, the clooating sequence corresponding according to described predetermined format, is inserted into the index information of described video file in described XML index file by XML resolver.
The embodiment of the present invention creates XML index file according to predetermined format, in the time that digital video recorder DVR produces video file, the clooating sequence corresponding according to predetermined format, by XML resolver, the index information of video file is inserted in XML index file, navigate to fast the video file of appointment by clooating sequence corresponding to predetermined format thus, thereby greatly improved the efficiency of management of video file.
Accompanying drawing explanation
Fig. 1 is the realization flow figure of the video file management method that provides of the embodiment of the present invention;
Fig. 2 is the realization flow figure of the video file management method that provides of another embodiment of the present invention;
Fig. 3 is the structured flowchart of the video file management devices that provides of the embodiment of the present invention.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
The embodiment of the present invention creates XML index file according to predetermined format, in the time that digital video recorder DVR produces video file, the clooating sequence corresponding according to predetermined format, by XML resolver, the index information of video file is inserted in XML index file, navigate to fast the video file of appointment by clooating sequence corresponding to predetermined format thus, thereby greatly improved the efficiency of management of video file.
Fig. 1 shows the realization flow figure of the video file management method that the embodiment of the present invention provides, with reference to Fig. 1:
In step S101, create expandable mark language XML index file according to predetermined format.
As one embodiment of the present of invention, create XML(eXtensible Markup Language according to predetermined format, extend markup language) index file comprises: under root node, generate described XML index file according to complete moon node, day node and video file node three-layered node dot structure.Under root node, monthly closing entry point is order ordered arrangement in chronological sequence; Under moon node, day node is order ordered arrangement in chronological sequence; Under day node, video file node is by video recording start time ordered arrangement.
As an alternative embodiment of the invention, creating XML index file according to predetermined format can also comprise: if the video recording start time of more than two video file is identical, record a video identical more than two video file of start time by DVR(Digital Video Recorder, digital video recorder) channel number ordered arrangement.
It should be noted that, the video file in the embodiment of the present invention includes but not limited to the audio-video document of DVR shooting and the picture that DVR captures.
DVR can be divided into 1 tunnel, 2 tunnels, 4 tunnels, 6 tunnels, 9 tunnels, 12 tunnels, 16 tunnels, 32 tunnels etc. video camera input way, this not the number of the input way to DVR be construed as limiting.If the input way Wei16 road of DVR, the multipotency of this DVR is connected with 16 CCTV cameras so, respectively each road input video is distributed to a DVR channel number.
As one embodiment of the present of invention, in the time that DVR starts shooting, judge the XML index file of whether haveing been friends in the past in the storer of this DVR.If the XML index file of haveing been friends in the past in storer, directly read this old XML index file by XML resolver, thereby existing video file and new video system are combined together, facilitate the secondary utilization of third party's video system to existing video file, realize video file and repeatedly utilize to greatest extent.If there is no old XML index file in storer, create XML index file according to predetermined format and corresponding language form, the XML index file now creating is empty XML framework text, then reads this XML index file by XML resolver.
In step S102, in the time that digital video recorder DVR produces video file, the clooating sequence corresponding according to described predetermined format, is inserted into the index information of described video file in described XML index file by XML resolver.
The type of the language that here, the type of XML resolver adopts with XML index file is corresponding.
Further, the clooating sequence that described predetermined format is corresponding comprises following at least one: the DVR channel number order that the time sequencing that described predetermined format is corresponding or described predetermined format are corresponding.
As one embodiment of the present of invention, create after XML index file, in XML index file, insert in an orderly manner the index information of video file according to the video recording start time of video file.As one embodiment of the present of invention, in insertion process, insert in order according to the sequencing of the video recording start time of video file, if the video recording start time of more than two video file is identical, insert in order according to the DVR channel number of this more than two video file.Now, all video files have formed an orderly arrangement, are recorded in XML index file.
Preferably, the index information of described video file comprises following at least one: video recording start time, DVR channel number, file path or video type.
In embodiments of the present invention, the index information of the video file inserting in XML index file can comprise the video recording start time of video file, input the DVR channel number of this video file, concrete storing documents path and the video type of video file etc. of video file, in this no limit.
Fig. 2 shows the realization flow figure of the video file management method that another embodiment of the present invention provides, with reference to Fig. 2:
In step S103, receive inquiry request, the clooating sequence corresponding according to described predetermined format inquired about the index information of described video file from described XML index file by described XML resolver.
Due to the increase of DVR memory capacity, video file retention time can be from some months by several years, therefore, if the index information of video file is unordered, in the time of the index information of inquiry designated file, worst condition need to be read end-of-file from file header always, and efficiency is very low, therefore the video file that, fast query retrieval is specified becomes key.
In embodiments of the present invention, due to the index information ordered arrangement of the video file in XML index file, therefore, can navigate to fast according to the video recording start time of video file the video file of appointment, and without again video file being traveled through, thereby greatly improve the search efficiency of video file.When after the index information of video file that navigates to fast appointment, video can also be derived to preserve or check here.
In the time that the use memory space of DVR storer arrives default storage threshold, need to delete old video file.As one embodiment of the present of invention, can delete and meet pre-conditioned video file according to clooating sequence corresponding to predetermined format.The pre-conditioned video file that can comprise before certain date of deletion or certain time point, also can comprise total memory space size that needs are deleted.In addition, pre-conditionedly can also comprise the video file of deleting particular type.Here, particular type comprises mobile detection alert type, overspeed alarming type or emergency alarm type etc., in this no limit.Successfully deleting after video file, upgrading XML index file, consistent with actual video file to guarantee XML index file.
Further, described method also comprises:
In the time that the storer of described DVR is connected with computing machine, provide interface to described computing machine, so that the index information of video file check video described in described computer inquery.
In actual applications, when the storer of DVR detaches DVR and is connected to while checking video on the computing machine that function is more powerful, the fast query of XML index file can be brought very large facility for people.The video file management method that the embodiment of the present invention provides provides a DLL (dynamic link library) for user, interface uses the XML technology of general maturation, any popular programming language all can be read and query manipulation it, original video file seamlessly can also be joined in new DVR system.
As one embodiment of the present of invention, due to the index information ordered arrangement of the video file in XML index file, therefore, make user can add the algorithm of multiple orderly inquiry to accelerate inquiry velocity, improve to a greater degree thus the efficiency of video file inquiry.
The embodiment of the present invention creates XML index file according to predetermined format, in the time that digital video recorder DVR produces video file, the clooating sequence corresponding according to predetermined format, by XML resolver, the index information of video file is inserted in XML index file, navigate to fast the video file of appointment by clooating sequence corresponding to predetermined format thus, thereby greatly improved the efficiency of management of video file.
Fig. 3 shows the structured flowchart of the video file management devices that the embodiment of the present invention provides, and this device is for moving the video file management method shown in Fig. 1 and 2.For convenience of explanation, only show the part relevant to the embodiment of the present invention.
With reference to Fig. 3, this device comprises:
XML index file creation module 31, creates expandable mark language XML index file according to predetermined format.
Video index information insert module 32, in the time that digital video recorder DVR produces video file, the clooating sequence corresponding according to described predetermined format, is inserted into the index information of described video file in described XML index file by XML resolver.
Further, described device also comprises:
Video index information inquiry module, receives inquiry request, and the clooating sequence corresponding according to described predetermined format inquired about the index information of described video file from described XML index file by described XML resolver.
Further, the clooating sequence that described predetermined format is corresponding comprises following at least one: the DVR channel number order that the time sequencing that described predetermined format is corresponding or described predetermined format are corresponding.
Further, the index information of described video file comprises following at least one: video recording start time, DVR channel number, file path or video type.
Further, described device also comprises:
Computer inquery module, in the time that the storer of described DVR is connected with computing machine, provides interface to described computing machine, so that the index information of video file check video described in described computer inquery.
The embodiment of the present invention creates XML index file according to predetermined format, in the time that digital video recorder DVR produces video file, the clooating sequence corresponding according to predetermined format, by XML resolver, the index information of video file is inserted in XML index file, navigate to fast the video file of appointment by clooating sequence corresponding to predetermined format thus, thereby greatly improved the efficiency of management of video file.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any modifications of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.

Claims (10)

1. a video file management method, is characterized in that, comprising:
Create expandable mark language XML index file according to predetermined format;
In the time that digital video recorder DVR produces video file, the clooating sequence corresponding according to described predetermined format, is inserted into the index information of described video file in described XML index file by XML resolver.
2. the method for claim 1, is characterized in that, described method also comprises:
Receive inquiry request, the clooating sequence corresponding according to described predetermined format inquired about the index information of described video file from described XML index file by described XML resolver.
3. the method for claim 1, is characterized in that, the clooating sequence that described predetermined format is corresponding comprises following at least one: the DVR channel number order that the time sequencing that described predetermined format is corresponding or described predetermined format are corresponding.
4. the method for claim 1, is characterized in that, the index information of described video file comprises following at least one: video recording start time, DVR channel number, file path or video type.
5. the method for claim 1, is characterized in that, described method also comprises:
In the time that the storer of described DVR is connected with computing machine, provide interface to described computing machine, so that the index information of video file check video described in described computer inquery.
6. a video file management devices, is characterized in that, comprising:
XML index file creation module, for creating expandable mark language XML index file according to predetermined format;
Video index information insert module, in the time that digital video recorder DVR produces video file, the clooating sequence corresponding according to described predetermined format, is inserted into the index information of described video file in described XML index file by XML resolver.
7. device as claimed in claim 6, is characterized in that, described device also comprises:
Video index information inquiry module, for receiving inquiry request, the clooating sequence corresponding according to described predetermined format inquired about the index information of described video file from described XML index file by described XML resolver.
8. device as claimed in claim 7, is characterized in that, the clooating sequence that described predetermined format is corresponding comprises following at least one: the DVR channel number order that the time sequencing that described predetermined format is corresponding or described predetermined format are corresponding.
9. device as claimed in claim 6, is characterized in that, the index information of described video file comprises following at least one: video recording start time, DVR channel number, file path or video type.
10. device as claimed in claim 6, is characterized in that, described device also comprises:
Computer inquery module, in the time that the storer of described DVR is connected with computing machine, provides interface to described computing machine, so that the index information of video file check video described in described computer inquery.
CN201410038755.0A 2014-01-26 2014-01-26 Video file management method and device Pending CN103793506A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410038755.0A CN103793506A (en) 2014-01-26 2014-01-26 Video file management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410038755.0A CN103793506A (en) 2014-01-26 2014-01-26 Video file management method and device

Publications (1)

Publication Number Publication Date
CN103793506A true CN103793506A (en) 2014-05-14

Family

ID=50669172

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410038755.0A Pending CN103793506A (en) 2014-01-26 2014-01-26 Video file management method and device

Country Status (1)

Country Link
CN (1) CN103793506A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105407307A (en) * 2014-09-04 2016-03-16 杭州海康威视数字技术股份有限公司 Multichannel video recording data processing method, system and device
CN106202157A (en) * 2016-06-23 2016-12-07 深圳市华域无线技术股份有限公司 Video method for quickly retrieving based on time stream
CN106933974A (en) * 2017-02-14 2017-07-07 浙江大华技术股份有限公司 The structure and querying method and device of a kind of video file index information
CN109977268A (en) * 2019-02-26 2019-07-05 南京邮电大学 A kind of video information search method
CN110996029A (en) * 2019-12-19 2020-04-10 山东广电信通网络运营有限公司 Dark visit video recording method and device, terminal and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119455A (en) * 2007-09-13 2008-02-06 中兴通讯股份有限公司 Method to fast display program information in handset television
US8069176B1 (en) * 2008-09-25 2011-11-29 Google Inc. LSH-based retrieval using sub-sampling
KR20120000365A (en) * 2010-06-25 2012-01-02 김동환 Method for making and playing an index for video, and computer readable medium recording a program for the method
CN103324642A (en) * 2012-03-23 2013-09-25 日电(中国)有限公司 Data index establishing system and method as well as data query method
CN103514226A (en) * 2012-06-28 2014-01-15 浙江大华技术股份有限公司 Rapid indexing method and device for file storage of digital video recorder

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119455A (en) * 2007-09-13 2008-02-06 中兴通讯股份有限公司 Method to fast display program information in handset television
US8069176B1 (en) * 2008-09-25 2011-11-29 Google Inc. LSH-based retrieval using sub-sampling
KR20120000365A (en) * 2010-06-25 2012-01-02 김동환 Method for making and playing an index for video, and computer readable medium recording a program for the method
CN103324642A (en) * 2012-03-23 2013-09-25 日电(中国)有限公司 Data index establishing system and method as well as data query method
CN103514226A (en) * 2012-06-28 2014-01-15 浙江大华技术股份有限公司 Rapid indexing method and device for file storage of digital video recorder

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105407307A (en) * 2014-09-04 2016-03-16 杭州海康威视数字技术股份有限公司 Multichannel video recording data processing method, system and device
CN106202157A (en) * 2016-06-23 2016-12-07 深圳市华域无线技术股份有限公司 Video method for quickly retrieving based on time stream
CN106933974A (en) * 2017-02-14 2017-07-07 浙江大华技术股份有限公司 The structure and querying method and device of a kind of video file index information
CN109977268A (en) * 2019-02-26 2019-07-05 南京邮电大学 A kind of video information search method
CN109977268B (en) * 2019-02-26 2022-10-14 南京邮电大学 Video information retrieval method
CN110996029A (en) * 2019-12-19 2020-04-10 山东广电信通网络运营有限公司 Dark visit video recording method and device, terminal and storage medium

Similar Documents

Publication Publication Date Title
CN100512409C (en) Data processing apparatus and data processing method
CN101917396B (en) Real-time repetition removal and transmission method for data in network file system
CN103793506A (en) Video file management method and device
CN102693305B (en) A kind of fileinfo method for previewing and system
CN101446984A (en) Method and device for storing files and method and device for deleting files
US20130067237A1 (en) Providing random access to archives with block maps
CN101916290B (en) Managing method of internal memory database and device
CN109726175A (en) A kind of offline partition management method of mass file based on HBase
CN106648442A (en) Metadata node internal memory mirroring method and device
CN104199967A (en) Cellphone file recovery method and device
CN102446176A (en) Multimedia user data recording and loading method used in electronic reading
CN106294810A (en) A kind of system and method for enterprise product data filing
US20160092131A1 (en) Storage system, storage system control method, and recording medium storing virtual tape device control program
CN103500206A (en) Storage method and device based on file storage data
CN108989724A (en) Embedded video camera videotape storage means
CN114255010A (en) Electronic file archival management and knowledge service collaborative implementation method in electronic government platform
CN102479216A (en) Method for realizing multimedia annotation of electronic book
CN104050251B (en) A kind of file management method and management system
CN102799583B (en) Object-oriented access method and system
JP2006148912A (en) Recording method of video data and its recording device
CN103207916A (en) Metadata processing method and device
CN111930708B (en) Ceph object storage-based object tag expansion system and method
CN103778231A (en) Method and system for managing operation record information, of databank
JPWO2009050894A1 (en) Video recording apparatus, video recording method, video recording program, and integrated circuit
CN103077187A (en) Log management method and log management 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20140514

RJ01 Rejection of invention patent application after publication