CN100498779C - Embedded hardware video system - Google Patents

Embedded hardware video system Download PDF

Info

Publication number
CN100498779C
CN100498779C CNB2006100216514A CN200610021651A CN100498779C CN 100498779 C CN100498779 C CN 100498779C CN B2006100216514 A CNB2006100216514 A CN B2006100216514A CN 200610021651 A CN200610021651 A CN 200610021651A CN 100498779 C CN100498779 C CN 100498779C
Authority
CN
China
Prior art keywords
file
module
processor
memory storage
pointer
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.)
Expired - Fee Related
Application number
CNB2006100216514A
Other languages
Chinese (zh)
Other versions
CN1924852A (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.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric 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 Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CNB2006100216514A priority Critical patent/CN100498779C/en
Publication of CN1924852A publication Critical patent/CN1924852A/en
Application granted granted Critical
Publication of CN100498779C publication Critical patent/CN100498779C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Management Or Editing Of Information On Record Carriers (AREA)

Abstract

This invention relates to imbed hardware recording system and to file management technique , which comprises recording device, display device, memory device, and processor and the record device is connected to the display device through processor and the processor is connected to the memory device; the processor comprises test module, play module and collate module. The collate module is used to process the files number of memory to make their number and generation time same and after packing the file needle automatically adds and play module is used to control memory device files to output to the display device according to files number.

Description

Embedded hardware video system
Technical field
The present invention relates to art file management technology, particularly the art file management technology of hard disk recording system.
Background technology
Hard disk recording system of the prior art comprises recording apparatus, display device, memory storage, processor, and recording apparatus links to each other with display device by processor, and processor links to each other with memory storage, and processor comprises detection module and playing module.Behind a certain file of user or system-kill, or when system recorded new file, detection module is locating file sequence number resource at first, when having found file sequence number vacancy, then stores this document on this vacancy sequence number.When playing or searching a certain file, particularly play next and during file that a last document time is continuous, playing module will be searched continuous next filename of time, when quantity of documents is very huge, searching like this can expend a lot of system times, serious meeting causes broadcasting pictures to pause problems such as system in case of system halt.Particularly embedded system can't be compared with PC owing to resource, and the probability that these problems occur is bigger.
Summary of the invention
Technical matters solved by the invention is to provide a kind of and can effectively manage the huge file of quantity, and can search the embedded hardware video system of required file fast.
The present invention solves the problems of the technologies described above the technical scheme that is adopted to be, embedded hardware video system, comprise recording apparatus, display device, memory storage, processor, recording apparatus links to each other with display device by processor, processor links to each other with memory storage, and processor comprises detection module, playing module, sorting module;
Detection module is used to detect the current store status of the port status and the described memory storage of described recording apparatus, and testing result is outputed to sorting module;
Sorting module is used for the file sequence number of memory storage is put in order, makes the sequence consensus of the rise time of file sequence number and this document; After the file packing, make file pointer increase by 1 automatically;
Playing module is used for controlling the file of exporting memory storage, arrives display device according to file numeric order output file.
Memory storage is stored file respectively by the port of described recording apparatus;
Concrete, it is by the minimum file pointer and the maximum file pointer that detect each port that sorting module keeps the sequence consensus of the rise time of file sequence number and this document, file is pressed the pointer size order arrange, arrange the refreshing file sequence number, the file sequence number is numbered according to the pointer size by this;
When the memory capacity of memory storage reaches maximal value, the file of the automatic deleted file pointer of sorting module minimum.
Further, processor also comprises filtering module, and described filtering module outputs to described display device to by customer requirements file being screened the file in the memory storage by rise time, recording apparatus port numbers, file size with satisfactory file.
Concrete, the file sequence number is included in the filename, and the rise time of file is included in the configuration file, and file size is obtained by system command, and the recording apparatus port numbers is included in the filename.
The invention has the beneficial effects as follows that embedded system of the present invention is play quick, smooth by keeping the consistent of file sequence number and document time, make to stride file.System stability, user's locating file is convenient, fast.
The present invention will be further described below in conjunction with accompanying drawing and embodiment.
Description of drawings
Fig. 1 is the system construction drawing of embodiment;
The process flow diagram that Fig. 2 manages file for processor.
Embodiment
With the Embedded hard disk recording system that adopts LINUX operating system is example, and this system can maximum articulate 4 hard disks, and the file maximum can not surpass 2G, the file storage of will packing.255 the array stored parameters of only having given each port assignment in the Installed System Memory, when the video file sequence number greater than 255 the time, parameters such as the time of file are overflowed with regard to crossing the border, and cause this document parameter to be lost, promptly a hard disk can only be stored 255 files.The memory storage of forming system by 4 hard disks.
System architecture as shown in Figure 1, system comprises recording apparatus, display device, memory storage, processor, recording apparatus links to each other with display device by processor, and processor links to each other with memory storage, and processor comprises detection module, playing module, sorting module, filtering module.Detection module links to each other with playing module by sorting module, and filtering module links to each other with playing module.
Embedded DVR adopts LINUX operating system, and (can maximum articulate 4 hard disks, the file maximum can not surpass 2G, the file storage of will packing.255 the array stored parameters of only having given each port assignment in the Installed System Memory, when the video file sequence number greater than 255 the time, parameters such as the time of file are overflowed with regard to crossing the border, and cause this document parameter to be lost, promptly a hard disk can only be stored 255 files.
Detection module can be monitored disk size, residual capacity and the current information relevant with disk such as disk number of recording in real time, judge all disks whether record full, return whether record full sign and current video recording magnetic the disk residual capacity to sorting module.
But Automatic Cycle covers or warning during recorded file, so that effective hyperdisk.When the hard disk record was full, system can report to the police or search automatically and delete creation-time file the earliest automatically, continues to record so that vacate disk space.Automatically report to the police or cover automatically and select to be provided with by the user.
Sorting module is carried out classification and storage in recorded video according to port numbers, and the file sequence number of a certain port is arranged in chronological order.When the file of recording during greater than appointment big or small, promptly the file maximum can not surpass 2G, can create new file again and continue to record automatically with closing of a file; When file sequence number during greater than the maximal value of appointment, can put in order file, can not allow the file sequence number of being deposited overflow; Regularly arrangement makes file sequence number and document time reach consistent, after the file packing, makes file pointer increase by 1 automatically, and the file sequence number also increases 1 simultaneously.File sequence number and port numbers are included in the filename, as CHANNELO/VWOUT001.mpg, and CHANNEL0/VWOUT002.mpg.Make and stride file and play fast, smooth, promptly only need on a last file sequence number, add 1 or subtract 1.Receive the message of the automatic covering that detection module sends when sorting module after, the document creation of at first judging four those ports of video file in the port the earliest; Then with this MPG file and LOG file delete, thereby realize the automatic covering of video file.Wherein comprise audio/video frames information etc. in LOG file and the MPG file, the file rise time is deposited in the configuration file, and information such as file size and last modification time are obtained by system command, and port numbers and file sequence number are directly obtained by filename.
Filtering module is used for when the user will check recorded file, the user can by report to the police, regularly, parameters such as time, port numbers, file size retrieve file: the video file of a certain port is stored on one or more hard disks, when the user need browse all video files of this port, first calling system order showed that the file of all these ports is stored in the pipe file; In the File menu class that the system that again the video file name in the pipe file is delivered to sets up; During the display file name,, and the file that shows is carried out " filtration " according to information such as time, port numbers, file sizes according to the sequencing of time of document creation.
Playing module links to each other with display device, presses the numeric order output file of file, and when playing continuously the file of a certain port continuous time, system need not expend time in and search the filename of next file, only needs the file sequence number is added 1.
The flow process that processor manages file as shown in Figure 2, after the system start-up, detection module is set up the disk parameter class earlier, carries out constructed fuction, run system command is checked the number of partitions of the disk of system, and this quantity is deposited in the class variable; From configuration file, read the relevant parameter of file system then and deposit in the variable, as: the start time of recording sequence number, video file of each port and current memory disk partition number etc.; Again each port is specified the video file name; Setting up disk file management subprocess at last monitors the various information of disk and file in real time and communicates by letter with host process.
After disk file management subprocess is set up, allowing this process sleep at first earlier 10 seconds, mainly is in order to accelerate system start-up speed and few occupying system resources of trying one's best; Detection module is judged in four ports and is had or not video state then, if any judging whether that then all hard disk records are full, if judge that then whether current hard-disk capacity is less than the value of setting, present embodiment is made as 300M with this value, if then the selection according to the user starts the loudspeaker warning or sends the automatic message that covers to sorting module, store some necessary parameter at last.
The file maximum is no more than 2G, surpasses the file maximal value, and file is packed automatically, and sorting module also increases by 1 automatically with file pointer.When first hard disk is expired in record, sorting module will automatically switch to next hard-disc recording file, all record is full up to a plurality of hard disks, if the user selects automatic covering, sorting module checks out that according to detection module the file of recording the earliest in four ports covers, thereby can carry out the Automatic Cycle video recording.
When the quantity of documents of video recording greater than 255 the time, promptly disk is full, the time parameter storage of file can be overflowed, reason be file when packing automatically file pointer increase automatically.And disk is when full, and the automatic deletion time can be created file early by system, i.e. the file of file pointer minimum, so when quantity greater than 255 the time, must put in order file.At first check the minimum file pointer and the maximum file pointer of each port, then file pointer is rearranged, change filename simultaneously; Again attributes such as corresponding file start time are stored again; Preserve the video file pointer of current each port at last.
Check video file, when the file pointer of a certain port during greater than maximal value, the pointer of recording a video transforms.At first check the minimum pointer and the maximum pointer of each port, filename is changed in rearrangement simultaneously then.Again attributes such as corresponding file start time are stored again; Preserve the video file pointer of current each port at last.

Claims (6)

1, embedded hardware video system, comprise recording apparatus, display device, memory storage, processor, recording apparatus links to each other with display device by processor, processor links to each other with memory storage, processor comprises detection module and playing module, it is characterized in that: described processor also comprises sorting module; Detection module links to each other with playing module by sorting module;
Described detection module is used to detect the current store status of the port status and the described memory storage of described recording apparatus, and testing result is outputed to sorting module;
Described sorting module is used for the file sequence number of memory storage is put in order, makes the sequence consensus of the rise time of file sequence number and this document; After the file packing, make file pointer increase by 1 automatically;
Described playing module is used for controlling the file of exporting memory storage, outputs to display device according to the file numeric order.
2, embedded hardware video system as claimed in claim 1 is characterized in that, described memory storage is stored file respectively by the port of described recording apparatus;
Described sorting module detects the minimum file pointer and the maximum file pointer of each port, file is pressed the pointer size order arrange, and arranges the refreshing file sequence number by this, according to the pointer size file sequence number is numbered.
3, embedded hardware video system as claimed in claim 2 is characterized in that, when described sorting module reaches maximal value in the memory capacity of memory storage, and the file of automatic deleted file pointer minimum.
4, embedded hardware video system as claimed in claim 3 is characterized in that, described file sequence number is included in the filename.
5, embedded hardware video system as claimed in claim 1, it is characterized in that, described processor also comprises filtering module, described filtering module is pressed customer requirements, file is screened the file in the memory storage by rise time, recording apparatus port numbers, the file size of file, satisfactory file is outputed to described display device.
6, embedded hardware video system as claimed in claim 5 is characterized in that, the rise time of described file is included in the configuration file, and described file size is obtained by system command, and described recording apparatus port numbers is included in the filename.
CNB2006100216514A 2006-08-25 2006-08-25 Embedded hardware video system Expired - Fee Related CN100498779C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100216514A CN100498779C (en) 2006-08-25 2006-08-25 Embedded hardware video system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100216514A CN100498779C (en) 2006-08-25 2006-08-25 Embedded hardware video system

Publications (2)

Publication Number Publication Date
CN1924852A CN1924852A (en) 2007-03-07
CN100498779C true CN100498779C (en) 2009-06-10

Family

ID=37817493

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100216514A Expired - Fee Related CN100498779C (en) 2006-08-25 2006-08-25 Embedded hardware video system

Country Status (1)

Country Link
CN (1) CN100498779C (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102081947A (en) * 2010-08-05 2011-06-01 浙江工业大学 Management control method of video and audio file on embedded multimedia system
CN107703786A (en) * 2017-08-02 2018-02-16 深圳市好盈科技有限公司 Multi-path electricity, which is adjusted, docks conversion monitoring method and apparatus with the data between main control device
CN112463746B (en) * 2020-12-11 2023-11-03 杭州海康汽车软件有限公司 File storage and generation method and device and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2606507Y (en) * 2002-04-02 2004-03-10 北京海尔集成电路设计有限公司 Digital hard disc video corder
CN1750164A (en) * 2005-07-20 2006-03-22 杭州海康威视数字技术有限公司 Digital hard disc recorder file managing method for preventing file fragment production

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2606507Y (en) * 2002-04-02 2004-03-10 北京海尔集成电路设计有限公司 Digital hard disc video corder
CN1750164A (en) * 2005-07-20 2006-03-22 杭州海康威视数字技术有限公司 Digital hard disc recorder file managing method for preventing file fragment production

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
非线性检索数字硬盘录像系统的设计与开发. 耿驰远.长安大学工学硕士学位论文. 2003
非线性检索数字硬盘录像系统的设计与开发. 耿驰远.长安大学工学硕士学位论文. 2003 *

Also Published As

Publication number Publication date
CN1924852A (en) 2007-03-07

Similar Documents

Publication Publication Date Title
CN100527241C (en) Information storage medium containing multi-path data, and storage apparatus and player thereof
CN1741178B (en) Reproducing apparatus
CN101256809B (en) Storage medium storing audio-visual data including metadata, reproducing apparatus, and method of searching for audio-visual data using the metadata
JP4739786B2 (en) Data relocation method
KR950030059A (en) Record carrier and playback device
RU2007138224A (en) FILE MANAGEMENT DEVICE, METHOD FOR MANAGING THIS DEVICE, COMPUTER SOFTWARE AND MEDIA
CN102566928A (en) System and method for automatically managing desktop application icons of mobile terminal
CN109491589A (en) A kind of delamination process and device based on file content
CN100498779C (en) Embedded hardware video system
CN101685653A (en) Information reproducing apparatus and method for controlling information reproducing apparatus
CN100472639C (en) Recording apparatus and method
CN107480281B (en) Method for constructing unified view among heterogeneous file systems
CN102075670A (en) Log recording method and device for broadcast machine
CN109710188A (en) A kind of data in magnetic disk management method, device, equipment and readable storage medium storing program for executing
Zhu et al. Sequential association mining for video summarization
US20080219138A1 (en) Control Device, Control Method, Recording Device and Recording Method
JP2011155667A (en) Multimedia system framework having layer consolidating access to a plurality of media devices
CN112148917B (en) Media play control method, device and system and computer readable storage medium
TW200522006A (en) Information processing apparatus with a disc drive and a disc for such an apparatus
CN101236481A (en) Apparatus, system, and method for uninterrupted storage configuration
CN102075690A (en) Journal monitoring method and device for caption broadcasting machines
JP2014204324A (en) Recording apparatus, recording method, and playback apparatus
CN102272710A (en) Method and apparatus for creating files in a file system
CN101115190A (en) Method for managing main monitoring image of digital hard disk videocorder
CN104049913A (en) Method and device for managing magnetic tape file

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090610

Termination date: 20210825

CF01 Termination of patent right due to non-payment of annual fee