KR101407166B1 - Method for database recovery in digital video recorder - Google Patents

Method for database recovery in digital video recorder Download PDF

Info

Publication number
KR101407166B1
KR101407166B1 KR1020070060285A KR20070060285A KR101407166B1 KR 101407166 B1 KR101407166 B1 KR 101407166B1 KR 1020070060285 A KR1020070060285 A KR 1020070060285A KR 20070060285 A KR20070060285 A KR 20070060285A KR 101407166 B1 KR101407166 B1 KR 101407166B1
Authority
KR
South Korea
Prior art keywords
file
index
recorded
database
digital video
Prior art date
Application number
KR1020070060285A
Other languages
Korean (ko)
Other versions
KR20080111839A (en
Inventor
박진모
Original Assignee
엘지전자 주식회사
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 엘지전자 주식회사 filed Critical 엘지전자 주식회사
Priority to KR1020070060285A priority Critical patent/KR101407166B1/en
Publication of KR20080111839A publication Critical patent/KR20080111839A/en
Application granted granted Critical
Publication of KR101407166B1 publication Critical patent/KR101407166B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/78Television signal recording using magnetic recording
    • H04N5/781Television signal recording using magnetic recording on disks or drums
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/426Internal components of the client ; Characteristics thereof
    • H04N21/42661Internal components of the client ; Characteristics thereof for reading from or writing on a magnetic storage medium, e.g. hard disk drive
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations

Abstract

본 발명은, 디지털 비디오 레코더에서의 데이터베이스 복구방법에 관한 것으로, 예를 들어, 카메라 영상의 비디오 프레임을 하드디스크와 같은 스토리지에 데이터베이스로 기록 관리하는 디지털 비디오 레코더에서, 다수의 인덱스 파일들을 통합 관리하기 위한 하나의 인덱스 관리 파일(Index Management File)을 추가적으로 기록 관리함과 아울러, 데이터베이스 복구(Recovery)시, 상기 하나의 인덱스 관리 파일을 검색 참조하여, 에러가 발생한 인덱스 파일을 신속하게 선별한 후, 그 인덱스 파일에 연계된 데이터 파일을 스캔하여, 정상적인 인덱스 파일을 생성 복구함으로써, 데이터베이스 복구에 소요되는 시간을 효율적으로 단축시킬 수 있게 되므로, 카메라 영상의 녹화 중단으로 인해, 디지털 비디오 레코더의 감시 성능이 저하되는 것을 최소화시킬 수 있게 되는 매우 유용한 발명인 것이다. The present invention relates to a method for restoring a database in a digital video recorder. For example, in a digital video recorder that records and manages video frames of a camera image in a storage such as a hard disk as a database, The index management file is additionally recorded and managed in addition to the one index management file for searching the one index management file at the time of recovery of the database, It is possible to efficiently shorten the time required for database restoration by scanning the data file associated with the file and generating and restoring the normal index file. As a result, the monitoring performance of the digital video recorder is deteriorated due to the interruption of the recording of the camera image You can minimize It will be very useful inventions.

디지털 비디오 레코더, 데이터 파일, 인덱스 파일, 타임 슬라이드 맵, 인덱스 관리 파일, 데이터베이스 복구 Digital video recorder, data file, index file, time slide map, index management file, database recovery

Description

디지털 비디오 레코더에서의 데이터베이스 복구방법 {Method for database recovery in digital video recorder} [0001] The present invention relates to a digital video recorder, and more particularly,

도 1은 일반적인 다수의 감시용 카메라가 디지털 비디오 레코더에 연결 접속된 실시예를 도시한 것이고, 1 shows an embodiment in which a plurality of general monitoring cameras are connected and connected to a digital video recorder,

도 2는 일반적인 디지털 비디오 레코더에 대한 실시예의 구성을 도시한 것이고, 2 shows a configuration of an embodiment of a general digital video recorder,

도 3은 일반적인 디지털 비디오 레코더에 의해 관리되는 데이터베이스에 대한 실시예를 도시한 것이고, 3 shows an embodiment of a database managed by a general digital video recorder,

도 4는 본 발명이 적용되는 디지털 비디오 레코더에 의해 관리되는 데이터베이스에 대한 실시예를 도시한 것이고,4 shows an embodiment of a database managed by a digital video recorder to which the present invention is applied,

도 5는 본 발명에 따른 디지털 비디오 레코더에서의 데이터베이스 복구방법에 대한 동작 흐름도를 도시한 것이고,5 is a flowchart illustrating an operation of a database recovery method in a digital video recorder according to the present invention,

도 6 및 도 7은 본 발명에 따른 디지털 비디오 레코더에서 데이터베이스를 복구하는 실시예의 과정을 도시한 것이다.Figures 6 and 7 illustrate the process of an embodiment of recovering a database in a digital video recorder according to the present invention.

※ 도면의 주요부분에 대한 부호의 설명[Description of Drawings]

100~115 : 카메라 200 : 디지털 비디오 레코더100 to 115: camera 200: digital video recorder

300 : 모니터 20 : 멀티 디지털 신호 처리부300: monitor 20: multi-digital signal processor

21 : 오에스디 생성부 22 : 마이컴21: OSD generation unit 22: Microcomputer

23 : 모션 검출부 24 : 타이머23: Motion detection unit 24: Timer

25 : 코덱(Codec) 26 : 하드디스크 25: Codec 26: Hard disk

본 발명은, 디지털 비디오 레코더에서의 데이터베이스 복구방법에 관한 것으로, 예를 들어, 카메라 영상의 비디오 프레임(Video Frame)을 하드디스크와 같은 스토리지에 데이터베이스(Database)로 기록 관리하는 디지털 비디오 레코더에서의 데이터베이스 복구방법에 관한 것이다. BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a database restoration method in a digital video recorder, and more particularly, to a database restoration method in a digital video recorder that records and manages a video frame of a camera image in a database, Recovery method.

도 1은, 일반적인 다수의 감시용 카메라들이 디지털 비디오 레코더에 연결 접속된 실시예를 도시한 것으로, 예를 들어 16 개의 카메라들(100~115)은, 하나의 디지털 비디오 레코더(200)에 연결 사용될 수 있으며, 각각의 카메라에는, 고유의 채널 번호(예: CH1~16)가 부여된다.1 shows an embodiment in which a plurality of general monitoring cameras are connected and connected to a digital video recorder. For example, sixteen cameras 100 to 115 are connected to one digital video recorder 200 , And each camera is assigned a unique channel number (e.g., CH1 to 16).

한편, 상기 디지털 비디오 레코더(200)에서는, 고유의 채널 번호가 부여된 각 카메라에 의해 촬영되는 영상을 수신하여, 모니터(300) 화면에 표시하게 되는 데, 예를 들어 도 1에 도시한 바와 같이, 다수의 카메라 영상들(예: 4 개)이 모니터 화면에 분할 표시될 수 있다.On the other hand, in the digital video recorder 200, an image photographed by each camera assigned a unique channel number is received and displayed on the screen of the monitor 300. For example, as shown in FIG. 1 , And a plurality of camera images (e.g., four) can be displayed in a split manner on the monitor screen.

또한, 상기 디지털 비디오 레코더에는, 예를 들어 도 2에 도시한 바와 같이, 멀티 디지털 신호 처리부(20), 오에스디 생성부(21), 마이컴(22), 모션 검출부(23), 타이머(24), 코덱(Codec), 그리고 하드디스크(26) 등이 포함 구성될 수 있으며, 상기 마이컴(22)에서는, 상기 멀티 디지털 신호 처리부(20)와 상기 코덱(25) 등을 동작 제어하여, 상기 하드디스크(26) 내에, 카메라 영상의 비디오 프레임을 기록하는 일련의 녹화 동작을 수행하게 된다. 2, the digital video recorder includes a multi-digital signal processing unit 20, an audio generation unit 21, a microcomputer 22, a motion detection unit 23, a timer 24, A codec and a hard disk 26. The microcomputer 22 controls operations of the multi-digital signal processor 20 and the CODEC 25, And performs a series of recording operations for recording video frames of the camera image in the memory 26.

그리고, 상기 마이컴(22)에서는, 상기 하드디스크(26)에 기록되는 다수의 비디오 프레임들을, 예를 들어 도 3에 도시한 바와 같이, 헤더 정보(HD: Header)와 함께 하나의 데이터 파일(*.dat)로 기록 관리함과 아울러, 그에 대응되는 인덱스 파일(*.idx)을 생성 기록하게 되는 데, 상기 인덱스 파일에는, 각 비디오 프레임의 채널 정보, 녹화 시간, 사이즈, 그리고 옵셋 정보 등이 포함 기록된다.The microcomputer 22 is configured to record a plurality of video frames recorded on the hard disk 26 into one data file (*) together with header information (HD: Header), for example, .dat) corresponding to each video frame, and also generates and records an index file (*. idx) corresponding thereto. The index file includes information such as channel information, recording time, size, and offset information of each video frame do.

또한, 상기 마이컴(22)에서는, 상기 인덱스 파일을 참조하여, 유저 인터페이스(User Interface)의 오에스디 영상을 제공하기 위한 타임 슬라이드 맵(Time Slide Map)을 생성 기록하게 되는 데, 예를 들어 상기 타임 슬라이드 맵에는, 각 채널에 대한 날짜별 녹화 시간과, 녹화 모드 정보 등이 포함 기록된다.In addition, the microcomputer 22 generates and records a time slide map for providing an OS image of a user interface by referring to the index file. For example, In the slide map, the date-specific recording time for each channel, recording mode information, and the like are recorded.

한편, 상기 녹화 모드 정보는, 예를 들어 비디오 프레임이 모션 검출에 의해 녹화되었는지, 또는 알람 검출에 의해 녹화되었는지, 또는 일반적인 연속 녹화 동작에 의해 녹화되었는지를 나타내는 정보로서, 사용자가 영상 검색을 위한 메뉴 화면을 요청하게 되면, 상기 마이컴(22)에서는, 상기 타임 슬라이드 맵을 검색 참조함과 아울러, 상기 오에스디 생성부(21)를 동작 제어하여, 각 채널에 대한 날짜별 녹화 시간과 녹화 모드를, 사용자가 간편하게 선택 지정할 수 있도록 하기 위한 오에스디 영상을 출력 표시하게 된다.On the other hand, the recording mode information is information indicating whether a video frame is recorded by motion detection, by an alarm detection, or by a normal continuous recording operation, for example, The microcomputer 22 searches for and displays the time slide map and controls the operation of the OSD generation unit 21 to record the recording time and the recording mode for each channel for each channel, And displays the OSD image for easy selection and specification by the user.

그리고, 상기 마이컴(22)에서는, 사용자가, 상기 오에스디 영상을 통해, 자신이 원하는 특정 채널에 대한 날짜별 녹화 시간과 녹화 모드 등을 선택 지정하면, 상기 타임 슬라이드 맵을 검색 참조하여, 해당 인덱스 파일을 억세스한 후, 그 인덱스 파일과 연계된 데이터 파일의 비디오 프레임을 재생하는 일련의 재생 동작을 수행하게 된다.The microcomputer 22 searches the time slide map for the recording time and the recording mode for each specific channel desired by the user through the OSD image, After the file is accessed, a series of reproduction operations for reproducing the video frame of the data file associated with the index file is performed.

한편, 상기와 같이 데이터 파일, 인덱스 파일, 그리고 타임 슬라이드 맵을 상호 연계시켜, 하나의 데이터베이스를 기록 관리하는 상태에서, 갑작스런 정전, 또는 외부 충격 등으로 인해 시스템이 비정상 종료되어, 데이터베이스 복구(Recovery)가 요구되는 경우, 상기 마이컴(22)에서는, 상기 하드디스크(26)에 기록된 모든 데이터 파일들을 순차적으로 스캔하면서, 한 쌍으로 연계 기록된 인덱스 파일들과의 일치 여부를 확인하게 된다. Meanwhile, as described above, the system is abnormally terminated due to a sudden power outage or an external impact in a state in which a data file, an index file, and a time slide map are linked to record and manage one database. The microcomputer 22 sequentially checks all the data files recorded on the hard disk 26 and confirms whether the index files match with the index files recorded in association with each other.

그리고, 상기 데이터 파일을 기준으로 하여, 새로운 인덱스 파일을 생성 복구하게 되는 데, 예를 들어 상기 하드디스크(26)에, 많은 개수의 데이터 파일과 인덱스 파일이 기록되어 있는 경우, 데이터베이스 복구 동작에 장시간이 소요되기 때문에, 그 동안 카메라 영상을 녹화할 수 없게 되므로, 디지털 비디오 레코더의 감시 성능을 크게 저하시키는 문제점이 발생하게 된다. When a large number of data files and index files are recorded on the hard disk 26, a new index file is created and restored based on the data file. For example, It is impossible to record the camera image during that time. Therefore, there arises a problem that the monitoring performance of the digital video recorder is significantly lowered.

따라서, 본 발명은 상기와 같은 문제점을 해결하기 위하여 창작된 것으로서, 예를 들어 디지털 비디오 레코더에서, 다수의 인덱스 파일들을 통합 관리하기 위한 하나의 인덱스 관리 파일(Index Management File)을 추가로 기록 관리함과 아울러, 데이터베이스 복구(Recovery)시, 상기 하나의 인덱스 관리 파일을 검색 참조하여, 에러가 발생한 인덱스 파일을 신속하게 선별한 후, 그 인덱스 파일에 연계된 데이터 파일을 스캔하여, 정상적인 인덱스 파일을 생성 복구함으로써, 데이터베이스 복구에 소요되는 시간을 단축시킬 수 있도록 하기 위한 디지털 비디오 레코더에서의 데이터베이스 복구방법을 제공하는 데, 그 목적이 있는 것이다. SUMMARY OF THE INVENTION Accordingly, the present invention has been made in an effort to solve the above-mentioned problems. For example, in the digital video recorder, an index management file for collectively managing a plurality of index files is additionally recorded and managed In addition, at the time of database recovery, the one index management file is searched for and referenced, the index file in which an error occurs is quickly selected, the data file associated with the index file is scanned, and a normal index file is created The present invention provides a method for restoring a database in a digital video recorder in order to shorten the time required for database restoration.

상기와 같은 목적을 달성하기 위한 본 발명에 따른 디지털 비디오 레코더에서의 데이터베이스 복구방법은, 디지털 비디오 레코더의 데이터베이스에 기록된 다수의 인덱스 파일들을 통합 관리하기 위한 하나의 인덱스 관리 파일을 기록 관리하는 1단계; 상기 디지털 비디오 레코더의 데이터베이스 복구시, 상기 하나의 인덱스 관리 파일을 검색 참조하여, 에러가 발생한 인덱스 파일을 선별하는 2단계; 및 상기 선별된 인덱스 파일에 연계 기록된 데이터 파일을 스캔하여, 정상적인 인덱스 파일을 생성 복구하는 3단계를 포함하여 이루어지는 것을 특징으로 하며,According to an aspect of the present invention, there is provided a method for restoring a database in a digital video recorder, including the steps of: (1) recording and managing one index management file for managing a plurality of index files recorded in a database of a digital video recorder; ; A second step of retrieving and referring to the one index management file at the time of restoring the database of the digital video recorder to select an index file in which an error occurs; And scanning the data file associated with the selected index file to generate and restore a normal index file,

또한, 상기 3단계 이후, 상기 복구된 인덱스 파일을 참조하여, 유저 인터페이스를 위해 기록 관리되는 타임 슬라이드 맵을 복구 갱신하는 단계를 더 포함하여 이루어지는 것을 특징으로 하며,The method may further include restoring and updating the time slide map recorded and managed for the user interface by referring to the restored index file after step 3,

또한, 상기 3단계 이후, 상기 복구된 인덱스 파일을 참조하여, 상기 하나의 인덱스 관리 파일을 갱신하는 단계를 더 포함하여 이루어지는 것을 특징으로 하며,The method may further include updating the one index management file by referring to the restored index file after step 3,

또한, 상기 데이터 파일에는, 헤더 정보와 다수의 비디오 프레임들이 기록되고, 상기 인덱스 파일에는, 각 비디오 프레임의 채널, 녹화 시간, 사이즈, 옵셋 정 보 중 어느 하나 이상이 기록되고, 상기 타임 슬라이드 맵에는, 각 채널에 대한 날짜별 녹화 시간, 녹화 모드 중 어느 하나 이상이 기록되는 것을 특징으로 하며,In the data file, header information and a plurality of video frames are recorded, and at least one of a channel, a recording time, a size, and offset information of each video frame is recorded in the index file, , A date-specific recording time for each channel, and a recording mode.

또한, 상기 인덱스 관리 파일에는, 한 쌍의 데이터 파일과 인덱스 파일을 억세스하기 위한 정보가, 하나의 엔트리로 구분 기록되며, 상기 엔트리의 에러 여부를 검출하기 위한 부가 정보가 부가 기록되는 것을 특징으로 하며,Further, in the index management file, information for accessing the pair of data files and the index file is divided into one entry, and additional information for detecting whether or not the entry is erroneous is additionally recorded ,

또한, 상기 하나의 엔트리에는, 해당 데이터 파일에 기록된 첫 번째 비디오 프레임의 녹화 시간과, 마지막 비디오 프레임의 녹화 시간, 그리고 해당 인덱스 파일을 억세스하기 위한 경로 정보가 기록되는 것을 특징으로 하며,Also, the one entry may record the recording time of the first video frame recorded in the data file, the recording time of the last video frame, and the path information for accessing the corresponding index file.

또한, 상기 부가 정보는, 각 엔트리의 에러 여부를 검출하기 위한 체크 섬 또는 체크 비트인 것을 특징으로 하며, The additional information is characterized by being a checksum or a check bit for detecting whether or not each entry is erroneous,

또한, 상기 3단계는, 상기 선별된 인덱스 파일에 연계 기록된 데이터 파일을 스캔하여, 상기 데이터 파일의 헤더 정보와, 실제로 기록된 비디오 프레임이 일치하는 경우, 그에 대응되는 새로운 인덱스 파일을 생성 복구하는 것을 특징으로 한다. In the step 3, the data file associated with the selected index file is scanned, and when the header information of the data file and the actually recorded video frame coincide with each other, a new index file corresponding thereto is generated and restored .

이하, 본 발명에 따른 디지털 비디오 레코더에서의 데이터베이스 복구방법에 대한 바람직한 실시예에 대해, 첨부된 도면을 참조하여 상세히 설명한다. Hereinafter, preferred embodiments of a database restoration method in a digital video recorder according to the present invention will be described in detail with reference to the accompanying drawings.

우선, 본 발명에 따른 데이터베이스 복구방법은, 도 2를 참조로 전술한 바와 같이 구성되는 디지털 비디오 레코더(200)에 적용될 수 있는 것으로, 예를 들어, 본 발명이 적용되는 디지털 비디오 레코더의 마이컴(22)에서는, 카메라 영상을 녹 화하는 경우, 전술한 바와 같이, 멀티 디지털 신호 처리부(20)와 코덱(25)을 동작 제어하여, 헤더 정보와 다수의 비디오 프레임들을 데이터 파일(*,dat)로 기록 관리함과 아울러, 각 비디오 프레임의 채널, 녹화 시간, 사이즈, 옵셋 정보 등을 인덱스 파일(*.idx)로 연계 기록하게 된다. First, the database restoration method according to the present invention can be applied to the digital video recorder 200 configured as described above with reference to FIG. 2. For example, when the microcomputer 22 of the digital video recorder to which the present invention is applied The digital video signal processing unit 20 and the codec 25 are controlled to record header information and a plurality of video frames in a data file (*, dat), as described above, In addition to the manager, the channel, recording time, size, and offset information of each video frame are linked and recorded in an index file (* .idx).

또한, 상기 인덱스 파일을 참조하여, 각 채널에 대한 날짜별 녹화 시간, 녹화 모드(예: 모션, 알람, 연속) 정보 등을, 유저 인터페이스(User Interface)의 오에스디 영상을 제공하기 위한 타임 슬라이드 맵(Time Slide Map)으로 기록 관리하되, 상기 마이컴(22)에서는, 도 4에 도시한 바와 같이, 다수의 인덱스 파일들을 통합 관리하기 위한 상위 레이어(Upper Layer)의 인덱스 관리 파일(Index Management File)을 추가 기록하여 관리하게 된다. In addition, referring to the index file, a time slide map for providing an OS image of a user interface, such as date-based recording time, recording mode (e.g., motion, alarm, 4, an upper management layer index management file (Index Management File) for collectively managing a plurality of index files is stored in the microcomputer 22, Additional recording and management will be performed.

한편, 상기 인덱스 관리 파일은, 파일 시스템 헤더(File System Header)와 다수의 엔트리들(Entry)로 구성되는 데, 상기 파일 시스템 헤더에는, 인덱스 관리 파일의 기록 사이즈(Size)와, 엔트리 개수(Number of Entry), 그리고 첫 번째 엔트리(1st Entry) 정보와 마지막 엔트리(Last Entry) 정보 등이 포함 기록될 수 있다.The index management file is composed of a file system header and a plurality of entries. The file system header includes a record size of an index management file, a number of entries of Entry, first entry information, last entry information, and the like.

그리고, 하나의 엔트리는, 도 4에 도시한 바와 같이, 한 쌍의 인덱스 파일과 데이터 파일에 일대일로 대응되는 것으로, 각각의 엔트리에는, 한 쌍의 데이터 파일과 인덱스 파일을 억세스하기 위한 정보와, 상기 엔트리의 에러 여부를 검출하기 위한 부가 정보가 부가 기록된다.One entry corresponds to a pair of index files and a data file on a one-to-one basis, as shown in Fig. 4. Each entry includes information for accessing a pair of data files and an index file, Additional information for detecting whether the entry is erroneous is additionally recorded.

예를 들어, 각각의 엔트리에는, 해당 데이터 파일에 기록된 첫 번째 비디오 프레임의 녹화 시간(FT: First video frame record Time)과, 마지막 비디오 프레임의 녹화 시간(LT: Last video frame record Time), 그리고 해당 인덱스 파일을 억세스하기 위해 데이터베이스 상에서의 디렉토리 및 파일 명을 나타내는 경로(Path) 정보가 기록되며, 또한 상기 부가 정보로서, 각 엔트리의 에러 여부를 검출하기 위한 체크 섬(CS: Check Sum) 또는 체크 비트(Check Bit)가 각각 부가적으로 기록된다. For example, each entry includes a first video frame record time (FT) of the first video frame recorded in the data file, a last video frame record time (LT) (Path) information indicating a directory and a file name on the database in order to access the corresponding index file is recorded. As the additional information, a Check Sum (CS) for detecting an error in each entry or a Check And a bit (Check Bit) are additionally recorded.

한편, 상기 마이컴(22)에서는, 상기와 같이 데이터 파일, 인덱스 파일, 타임 슬라이드 맵, 그리고 다수의 인덱스 파일들을 통합 관리하기 위한 하나의 인덱스 관리 파일이, 상호 연계되어 데이터베이스로 관리되는 상태에서, 갑작스런 정전, 또는 외부 충격 등으로 인해 시스템이 비정상 종료되어, 데이터베이스 복구(Recovery)가 요구되면, 상기 인덱스 관리 파일을 검색 참조하여, 에러가 발생한 인덱스 파일을 신속하게 선별한 후, 그 인덱스 파일에 연계된 데이터 파일을 스캔하여, 정상적인 인덱스 파일을 생성 복구함으로써, 데이터베이스 복구에 소요되는 시간을 효율적으로 단축하게 되는 데, 이에 대해 상세히 설명하면 다음과 같다. Meanwhile, in the microcomputer 22, one index management file for integrally managing the data file, the index file, the time slide map, and the plurality of index files as described above is managed in a database linked to each other, The system is abnormally terminated due to a power failure, an external shock, or the like, and when a database recovery is requested, the index management file is searched for and referred to, the index file in which an error occurred is quickly selected, The data file is scanned and a normal index file is generated and restored, thereby effectively shortening the time required for database restoration, which will be described in detail as follows.

도 5는, 본 발명에 따른 디지털 비디오 레코더에서의 데이터베이스 복구방법에 대한 동작 흐름도를 도시한 것으로, 전술한 바와 같이, 상기 마이컴(22)에서는, 멀티 디지털 신호 처리부(20)와 코덱(25)을 동작 제어하여, 카메라 영상의 비디오 프레임을 하드디스크(26)에 녹화하는 경우(S10), 헤더 정보와 다수의 비디오 프레임들을 데이터 파일(*.dat)로 기록 관리하고, 상기 데이터 파일에 대응되는 인덱스 파일(*.idx)을 생성 기록함과 아울러, 상기 인덱스 파일을 검색 참조하여, 타임 슬라이드 맵(Time Slide Map)을 갱신 관리하는 일련의 데이터베이스 관리 동작을 수행하게 된다(S11). 5 is a flowchart illustrating a method of restoring a database in a digital video recorder according to the present invention. As described above, the microcomputer 22 includes a multi-digital signal processor 20 and a CODEC 25 In operation S10, when a video frame of a camera image is recorded on the hard disk 26, the header information and a plurality of video frames are recorded and managed as a data file (* .dat), and an index corresponding to the data file (*. Idx), and performs a series of database management operations for updating and managing a time slide map by referring to the index file (S11).

또한, 상기 마이컴(22)에서는, 상기 인덱스 파일 및 데이터 파일을 검색 참조하여, 다수의 인덱스 파일들을 통합 관리하기 위한 하나의 인덱스 관리 파일을 갱신 기록하게 되며(S12), 이후, 갑작스런 정전 또는 외부 충격 등으로 인해, 데이터베이스 복구가 필요하게 되면, 녹화 동작을 중지한 상태에서, 데이터베이스 복구 모드를 설정하게 된다.In addition, the microcomputer 22 updates and records one index management file for integrated management of a plurality of index files by referring to the index file and the data file (S12). Thereafter, the microcomputer 22 performs a sudden power failure or external shock , The database recovery mode is set while the recording operation is stopped.

그리고, 상기와 같은 일련의 과정을 거쳐, 데이터베이스 복구 모드가 설정된 경우(S13), 상기 마이컴(22)에서는, 상기 인덱스 관리 파일에 기록된 각 엔트리의 부가 정보로서 기록되어 있는 체크 섬(CS)을 검출 확인하여, 에러가 발생된 엔트리를 선별하게 된다(S14).When the database restoration mode is set (S13), the microcomputer 22 updates the checksum (CS) recorded as the additional information of each entry recorded in the index management file through the above-described series of processes Detection is confirmed, and an entry in which an error has occurred is selected (S14).

예를 들어, 도 6에 도시한 바와 같이, 제2 데이터 파일은, 정상 기록되되, 제2 인덱스 파일(Index File 2)에 에러가 발생하였고, 또한 제3 데이터 파일(Data File 3)과 제3 인덱스 파일(Index File 3)에 모두 에러가 발생한 경우에는, 상기 인덱스 관리 파일에 기록된 제2 엔트리의 체크 섬(CS)과 제3 엔트리의 체크 섬(CS)이 각각 에러 값으로 검출된다. For example, as shown in FIG. 6, the second data file is normally recorded, but an error has occurred in the second index file (Index File 2), and the third data file (Data File 3) When an error occurs in all of the index files (Index File 3), the checksum (CS) of the second entry and the checksum (CS) of the third entry recorded in the index management file are detected as error values, respectively.

그리고, 상기 마이컴(22)에서는, 상기 제2 엔트리에 기록된 시간 정보(FT & LT)와 경로 정보(Path)를 참조하여, 상기 제2 인덱스 파일에 연계 기록된 제2 데이터 파일을 신속하게 선별 및 억세스한 후, 상기 제2 데이터 파일의 헤더 정보를 검 색하게 된다(S15).The microcomputer 22 refers to the time information (FT & LT) and the path information (Path) recorded in the second entry to quickly select the second data file recorded in association with the second index file And accesses the header information of the second data file (S15).

또한, 상기 검색된 헤더 정보와, 실제로 기록된 비디오 프레임이 일치하는 경우, 그에 대응되는 새로운 제2 인덱스 파일, 예를 들어 각 비디오 프레임의 채널, 녹화 시간, 사이즈, 옵셋 정보 등이 정상적으로 포함되는 새로운 제2 인덱스 파일을 생성 복구함과 아울러, 상기 복구된 제2 인덱스 파일을 참조하여, 상기 타임 슬라이드 맵을 갱신하게 된다(S16). In addition, when the retrieved header information matches the actually recorded video frame, a new index file corresponding to the second index file, for example, a channel of each video frame, a recording time, size, and offset information, 2 index file and restores the time slide map by referring to the restored second index file (S16).

그리고, 상기 마이컴(22)에서는, 도 7에 도시한 바와 같이, 정상 복구된 제2 인덱스 파일을 참조하여, 그에 대응되는 제2 엔트리의 시간 정보와 경로 정보, 그리고 체크 섬을 갱신 기록하게 된다(S17).7, the microcomputer 22 refers to the normally recovered second index file, updates the time information and the path information of the second entry corresponding to the second index file, and the check is updated ( S17).

또한, 상기 마이컴(22)에서는, 도 6에 도시한 바와 같이, 상기 제3 엔트리에 기록된 시간 정보(FT & LT)와 경로 정보(Path)를 참조하여, 상기 제3 인덱스 파일에 연계 기록된 제3 데이터 파일을 신속하게 선별 및 억세스한 후, 상기 제3 데이터 파일의 헤더 정보를 검색하게 된다.6, the microcomputer 22 refers to the time information (FT & LT) and the path information (Path) recorded in the third entry and records the link information recorded in association with the third index file The third data file is quickly selected and accessed, and then the header information of the third data file is searched.

그리고, 상기 검색된 헤더 정보와, 실제로 기록된 비디오 프레임이 일치하는 지를 비교하게 되는 데, 예를 들어 서로 일치하지 않으면, 데이터 파일 복구가 불가능하다고 판단한 후, 도 7에 도시한 바와 같이, 제3 데이터 파일과 제3 인덱스 파일을 삭제하며, 또한 상기 타임 슬라이드 맵 내에서 관리되는 관련 정보와, 상기 인덱스 관리 파일 내에서 관리되는 제3 엔트리를 삭제하는 일련의 갱신 동작을 수행하게 된다. If it is determined that the retrieved header information matches the actually recorded video frame, for example, if they do not coincide with each other, it is determined that the data file can not be recovered. Then, as shown in FIG. 7, File and the third index file, and performs a series of update operations for deleting the related information managed in the time slide map and the third entry managed in the index management file.

한편, 상기 마이컴(22)에서는, 데이터베이스 복구 동작이 완료되면(S18), 상 기와 같이 일련의 갱신 동작을 통해 복구된 데이터베이스를 이용하여, 사용자가 원하는 임의의 녹화 또는 재생 동작을 수행하게 되므로, 데이터베이스 복구에 소요되는 시간을 효율적으로 단축시킬 수 있게 된다. Meanwhile, in the microcomputer 22, when the database restoration operation is completed (S18), the user performs a desired recording or playback operation using the restored database through a series of update operations as described above. It is possible to efficiently shorten the time required for recovery.

참고로, 상기 인덱스 관리 파일 내의 각 엔트리에는, 해당 데이터 파일과 인덱스 파일에 관련된 보다 다양한 여러 정보들이 추가적으로 기록 관리될 수 있다.For reference, more various information related to the data file and the index file may be additionally recorded and managed in each entry in the index management file.

이상, 전술한 본 발명의 바람직한 실시예는, 예시의 목적을 위해 개시된 것으로, 당업자라면, 이하 첨부된 특허청구범위에 개시된 본 발명의 기술적 사상과 그 기술적 범위 내에서, 또 다른 다양한 실시예들을 개량, 변경, 대체 또는 부가 등이 가능할 것이다.It will be apparent to those skilled in the art that various modifications and variations can be made in the present invention without departing from the spirit or scope of the invention as defined in the appended claims. , Alteration, substitution, addition, or the like.

상기와 같이 구성 및 이루어지는 본 발명에 따른 디지털 비디오 레코더에서의 데이터베이스 복구방법은, 예를 들어, 카메라 영상의 비디오 프레임을 하드디스크와 같은 스토리지에 데이터베이스로 기록 관리하는 디지털 비디오 레코더에서, 다수의 인덱스 파일들을 통합 관리하기 위한 하나의 인덱스 관리 파일(Index Management File)을 추가적으로 기록 관리함과 아울러, 데이터베이스 복구(Recovery)시, 상기 하나의 인덱스 관리 파일을 검색 참조하여, 에러가 발생한 인덱스 파일을 신속하게 선별한 후, 그 인덱스 파일에 연계된 데이터 파일을 스캔하여, 정상적인 인덱스 파일을 생성 복구함으로써, 데이터베이스 복구에 소요되는 시간을 효율적으로 단축시킬 수 있게 되므로, 카메라 영상의 녹화 중단으로 인해, 디지털 비디오 레코더의 감시 성능이 저하되는 것을 최소화시킬 수 있게 되는 매우 유용한 발명인 것이다. In the digital video recorder configured and configured as described above, for example, in a digital video recorder for recording and managing video frames of a camera image into a database in a storage such as a hard disk, a plurality of index files (Index Management File) for collectively managing the index management file, and at the time of recovery of the database, the index management file for searching the one index management file is referred to, It is possible to efficiently shorten the time required for database restoration by scanning the data file associated with the index file and restoring the normal index file. Performance degradation Very useful inventions will be able to minimize that.

Claims (8)

디지털 비디오 레코더의 데이터베이스에 기록된 복수의 인덱스 파일들을 통합 관리하기 위한 인덱스 관리 파일을 관리하는 1단계; A first step of managing an index management file for integrally managing a plurality of index files recorded in a database of a digital video recorder; 상기 디지털 비디오 레코더의 데이터베이스 복구시 상기 인덱스 관리 파일을 참조하여 에러가 발생한 인덱스 파일을 선별하는 2단계; 및 A step (2) of selecting an index file in which an error occurs by referring to the index management file at the time of database restoration of the digital video recorder; And 상기 선별된 인덱스 파일에 연계된 데이터 파일을 스캔하여 정상적인 인덱스 파일로 복구하는 3단계를 포함하여 이루어지고,And a third step of scanning the data file associated with the selected index file and restoring the data file as a normal index file, 상기 인덱스 관리 파일에는, 한 쌍의 데이터 파일과 인덱스 파일을 억세스하기 위한 정보가 하나의 엔트리로 구분 기록되며, 상기 엔트리의 에러 여부를 검출하기 위한 부가 정보가 기록되는 것을 특징으로 하는 디지털 비디오 레코더에서의 데이터베이스 복구방법. Wherein the information for accessing the pair of data files and the index file is divided into one entry and the additional information for detecting whether or not the entry is erroneous is recorded in the index management file How to recover a database. 제 1항에 있어서,The method according to claim 1, 상기 3단계 이후, 상기 복구된 인덱스 파일을 참조하여, 유저 인터페이스를 위해 기록 관리되는 타임 슬라이드 맵을 복구 갱신하는 단계를 더 포함하여 이루어지는 것을 특징으로 하는 디지털 비디오 레코더에서의 데이터베이스 복구방법. Further comprising restoring and updating the time slide map recorded and managed for the user interface by referring to the restored index file after the third step. 제 1항에 있어서,The method according to claim 1, 상기 3단계 이후, 상기 복구된 인덱스 파일을 참조하여, 상기 하나의 인덱스 관리 파일을 갱신하는 단계를 더 포함하여 이루어지는 것을 특징으로 하는 디지털 비디오 레코더에서의 데이터베이스 복구방법. And updating the one index management file by referring to the restored index file after the third step. ≪ Desc / Clms Page number 19 > 제 2항에 있어서,3. The method of claim 2, 상기 데이터 파일에는, 헤더 정보와 다수의 비디오 프레임들이 기록되고, In the data file, header information and a plurality of video frames are recorded, 상기 인덱스 파일에는, 각 비디오 프레임의 채널, 녹화 시간, 사이즈, 옵셋 정보 중 어느 하나 이상이 기록되고, At least one of a channel, a recording time, a size, and offset information of each video frame is recorded in the index file, 상기 타임 슬라이드 맵에는, 각 채널에 대한 날짜별 녹화 시간, 녹화 모드 중 어느 하나 이상이 기록되는 것을 특징으로 하는 디지털 비디오 레코더에서의 데이터베이스 복구방법. Wherein the time slide map includes at least one of a date-and-time recording time and a recording mode for each channel. 삭제delete 제 1항에 있어서,The method according to claim 1, 상기 하나의 엔트리에는, 해당 데이터 파일에 기록된 첫 번째 비디오 프레임의 녹화 시간과, 마지막 비디오 프레임의 녹화 시간, 그리고 해당 인덱스 파일을 억세스하기 위한 경로 정보가 기록되는 것을 특징으로 하는 디지털 비디오 레코더에서의 데이터베이스 복구방법. Wherein the recording of the first video frame recorded in the data file, the recording time of the last video frame, and the path information for accessing the corresponding index file are recorded in the one entry How to recover the database. 제 1항에 있어서, The method according to claim 1, 상기 부가 정보는, 각 엔트리의 에러 여부를 검출하기 위한 체크 섬 또는 체크 비트인 것을 특징으로 하는 디지털 비디오 레코더에서의 데이터베이스 복구방법. Wherein the additional information is a check sum or a check bit for detecting whether or not each entry is erroneous. 제 1항에 있어서, The method according to claim 1, 상기 3단계는, 상기 선별된 인덱스 파일에 연계 기록된 데이터 파일을 스캔하여, 상기 데이터 파일의 헤더 정보와, 실제로 기록된 비디오 프레임이 일치하는 경우, 그에 대응되는 새로운 인덱스 파일을 생성 복구하는 것을 특징으로 하는 디지털 비디오 레코더에서의 데이터베이스 복구방법. The step 3 scans the data file recorded in association with the selected index file to generate and restore a new index file corresponding to the header information of the data file and the actually recorded video frame, A method of recovering a database in a digital video recorder.
KR1020070060285A 2007-06-20 2007-06-20 Method for database recovery in digital video recorder KR101407166B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020070060285A KR101407166B1 (en) 2007-06-20 2007-06-20 Method for database recovery in digital video recorder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020070060285A KR101407166B1 (en) 2007-06-20 2007-06-20 Method for database recovery in digital video recorder

Publications (2)

Publication Number Publication Date
KR20080111839A KR20080111839A (en) 2008-12-24
KR101407166B1 true KR101407166B1 (en) 2014-06-13

Family

ID=40369900

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020070060285A KR101407166B1 (en) 2007-06-20 2007-06-20 Method for database recovery in digital video recorder

Country Status (1)

Country Link
KR (1) KR101407166B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20160032761A (en) 2014-09-16 2016-03-25 상명대학교서울산학협력단 The method for recovery of multimedia piece file

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020022673A (en) * 1999-05-25 2002-03-27 실버브룩 키아 Method and system for providing targeted information in a document
KR20020027370A (en) * 1999-06-30 2002-04-13 추후제출 Method and system for obtaining a video-related document
JP2004007075A (en) * 2002-05-30 2004-01-08 Toshiba Corp Video image recording apparatus and video image recording method
KR20060135794A (en) * 2004-02-26 2006-12-29 미디어 가이드, 인코포레이티드 Method and apparatus for automatic detection and identification of broadcast audio or video programming signal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020022673A (en) * 1999-05-25 2002-03-27 실버브룩 키아 Method and system for providing targeted information in a document
KR20020027370A (en) * 1999-06-30 2002-04-13 추후제출 Method and system for obtaining a video-related document
JP2004007075A (en) * 2002-05-30 2004-01-08 Toshiba Corp Video image recording apparatus and video image recording method
KR20060135794A (en) * 2004-02-26 2006-12-29 미디어 가이드, 인코포레이티드 Method and apparatus for automatic detection and identification of broadcast audio or video programming signal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20160032761A (en) 2014-09-16 2016-03-25 상명대학교서울산학협력단 The method for recovery of multimedia piece file

Also Published As

Publication number Publication date
KR20080111839A (en) 2008-12-24

Similar Documents

Publication Publication Date Title
KR100288203B1 (en) Real time data recording method
CN111506251A (en) Data processing method, data processing device, SMR storage system and storage medium
JP2002082825A (en) Method for managing file
US11750784B2 (en) Automatic video file repair method and system
JP2007179435A (en) Information processor, information processing method, and program
US7234078B2 (en) Data recovery method and data recording apparatus
US7848193B2 (en) Disc device
JP4595936B2 (en) Information processing apparatus, information processing method, and program
JPWO2005062184A1 (en) Data processing apparatus and data processing method
US20060098950A1 (en) Digital video recording device
JP5032583B2 (en) Video recording apparatus, video recording method, video recording program, and integrated circuit
US20060015681A1 (en) Apparatus and method for writing and reading data
KR101407166B1 (en) Method for database recovery in digital video recorder
JP4481226B2 (en) Image management device
JP2001045420A (en) Recorder, method and computer-readable storage medium
KR101044602B1 (en) Apparatus and method for data backup in monitoring digital video recorder
JP4901375B2 (en) Video recording / playback device
KR101196349B1 (en) Method for managing index file in digital video recorder
JP4190477B2 (en) Portable playback device
KR100484448B1 (en) Method for partial updating a program of digital video recorder for monitoring
KR100598281B1 (en) Method for protecting title recorded on optical disc
KR101879616B1 (en) Dual Indexed File System
KR20040016031A (en) Method for searching a data file in digital video recorder for monitoring
JP4373259B2 (en) Data recording / reproducing device
KR100513351B1 (en) Method for file close in digital recorder

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20170512

Year of fee payment: 4

FPAY Annual fee payment

Payment date: 20180509

Year of fee payment: 5

FPAY Annual fee payment

Payment date: 20190514

Year of fee payment: 6