KR101173552B1 - Method for recording multi image stream and its apparatus - Google Patents
Method for recording multi image stream and its apparatus Download PDFInfo
- Publication number
- KR101173552B1 KR101173552B1 KR1020090023985A KR20090023985A KR101173552B1 KR 101173552 B1 KR101173552 B1 KR 101173552B1 KR 1020090023985 A KR1020090023985 A KR 1020090023985A KR 20090023985 A KR20090023985 A KR 20090023985A KR 101173552 B1 KR101173552 B1 KR 101173552B1
- Authority
- KR
- South Korea
- Prior art keywords
- cylinder
- segment
- recording
- video stream
- multiple video
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 25
- 238000013500 data storage Methods 0.000 claims 2
- 230000008859 change Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000013467 fragmentation Methods 0.000 description 2
- 238000006062 fragmentation reaction Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000008901 benefit Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000004886 head movement Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000012827 research and development Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
- H04N5/78—Television signal recording using magnetic recording
- H04N5/781—Television signal recording using magnetic recording on disks or drums
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11B—INFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
- G11B5/00—Recording by magnetisation or demagnetisation of a record carrier; Reproducing by magnetic means; Record carriers therefor
- G11B5/48—Disposition or mounting of heads or head supports relative to record carriers ; arrangements of heads, e.g. for scanning the record carrier to increase the relative speed
- G11B5/54—Disposition or mounting of heads or head supports relative to record carriers ; arrangements of heads, e.g. for scanning the record carrier to increase the relative speed with provision for moving the head into or out of its operative position or across tracks
- G11B5/55—Track change, selection or acquisition by displacement of the head
- G11B5/5521—Track change, selection or acquisition by displacement of the head across disk tracks
- G11B5/5526—Control therefor; circuits, track configurations or relative disposition of servo-information transducers and servo-information tracks for control thereof
- G11B5/553—Details
- G11B5/5534—Initialisation, calibration, e.g. cylinder "set-up"
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
- H04N21/4332—Content storage operation, e.g. storage operation in response to a pause request, caching operations by placing content in organized collections, e.g. local EPG data repository
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/44008—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Signal Processing For Digital Recording And Reproducing (AREA)
- Television Signal Processing For Recording (AREA)
- Management Or Editing Of Information On Record Carriers (AREA)
Abstract
본 발명은 다중 영상 스트림 녹화 방법 및 그 장치에 관한 것으로, 하드 디스크의 실린더 정보를 고려하여 동시에 녹화되는 영상 파일들끼리 가까운 실린더에 배치하여 하드 디스크 헤드의 탐색시간을 최소화하고, 할당단위를 블록보다 큰 세그먼트 단위로 수행, 즉 하드 디스크 상의 연속되는 다수의 블록 단위로 기록함으로써, 쓰기 성능을 끌어 올려 하드 디스크의 대역폭을 최대한 활용하여 다수의 영상 스트림을 동시에 녹화할 수 있다. 또한, 본 발명은 다중 영상 스트림 녹화 방법 및 그 장치를 제공함으로써, 다수의 영상 스트림을 동시에 녹화하더라도 디스크 대역폭 활용도가 높아 녹화를 원활히 수행할 수 있다.The present invention relates to a method for recording multiple video streams and a device thereof, wherein image files recorded simultaneously in consideration of cylinder information of a hard disk are arranged in a close cylinder to minimize search time of a hard disk head, and to allocate an allocation unit to a block. By performing a large segment unit, that is, recording by a plurality of contiguous blocks on the hard disk, a plurality of video streams can be recorded simultaneously by increasing write performance to make the most of the bandwidth of the hard disk. In addition, the present invention provides a method and apparatus for recording multiple video streams, so that even when recording multiple video streams at the same time, the disk bandwidth utilization is high, so that recording can be performed smoothly.
실린더, 세그먼트, 녹화, 하드 디스크, 영상 스트림 Cylinder, segment, recording, hard disk, video stream
Description
본 발명은 다중 영상 스트림 녹화 방법 및 그 장치에 관한 것으로, 보다 상세하게는 하드 디스크를 저장매체로 디지털 영상의 스트림을 녹화하는 장치에 있어서, 하드 디스크의 실린더 정보를 고려하여 동시에 녹화되는 영상 파일들끼리 가까운 실린더에 배치하여 하드 디스크 헤드의 탐색시간을 최소화하고, 할당단위를 블록보다 큰 세그먼트 단위로 녹화할 수 있는 방법 및 그 장치에 관한 것이다. The present invention relates to a method for recording multiple video streams and a device thereof, and more particularly, to a device for recording a stream of digital video onto a storage medium of a hard disk, wherein video files are simultaneously recorded in consideration of cylinder information of the hard disk. The present invention relates to a method and apparatus for minimizing the seek time of a hard disk head by arranging them in cylinders close to each other, and recording allocation units in segments larger than blocks.
본 발명은 지식경제부 및 정보통신연구진흥원의 IT성장동력기술개발사업의 일환으로 수행한 연구로부터 도출된 것이다[과제관리번호: 2007-S-051-02, 과제명: 디지털 크리쳐 제작 S/W 개발].The present invention is derived from the research conducted as part of the IT growth engine technology development project of the Ministry of Knowledge Economy and the Ministry of Information and Telecommunication Research and Development. [Task management number: 2007-S-051-02, Title: Digital creature production S / W development ].
주지된 바와 같이, 하드 디스크를 저장매체로 디지털 영상의 스트림을 녹화하기 위한 장치(예컨대, PVR(personal video recorder) 혹은 DVR(digital video recorder) 등)는 동시에 여러 개의 영상 스트림을 녹화하여야 한다. As is well known, an apparatus (eg, a personal video recorder (PVR) or digital video recorder (DVR), etc.) for recording a stream of digital video onto a storage medium on a hard disk must simultaneously record several video streams.
이에, 많은 분야에서 미디어 정보의 디지털화가 이루어짐으로 인해서 디지털 영상 정보를 하드 디스크에 녹화하는 경우가 늘어나고 있으며, 특히 가정용 디지털 텔레비전에서부터 영화촬영 현장의 촬영장비까지 매우 다양한 장비에 의해 생성된 디지털 영상 정보의 스트림이 하드 디스크에 녹화되는 것이다. In many fields, digital information is increasingly recorded on the hard disk due to the digitization of media information. In particular, digital image information generated by a wide variety of equipment, from home digital televisions to cinematography equipments, can be used. The stream is recorded on the hard disk.
상술한 바와 같이 디지털 영상 정보의 스트림을 녹화하기 위해 하드 디스크의 사용이 늘고는 있지만, 하드 디스크에 사용되는 일반적인 파일 시스템들은 본래 영상 콘텐츠 등의 녹화를 염두에 두고 만들어지지 않았고, 단지 다수의 작은 텍스트 파일을 주로 다루고 이 파일들의 크기와 내용이 자주 변경되는 기존의 컴퓨터 시스템을 위해 설계되었다.As mentioned above, although the use of hard disks is increasing for recording streams of digital video information, the general file systems used for hard disks are not originally designed with the recording of video content in mind, but only a large number of small texts. It is designed for existing computer systems that primarily deal with files and whose sizes and contents change frequently.
이런 환경에서의 하드 디스크에 대한 사용은 순차적인 접근보다는 임의 접근이 대부분이며 파일 시스템들 또한 이에 맞게 설계되어 있다. 다수의 작은 파일들에 대한 접근을 위해 임의 접근을 가정하고, 파일 크기와 내용이 자주 바뀌므로 작은 블록 단위로 공간을 할당하고 각 파일이 녹화된 위치 사이에 거리가 있더라도 저장 공간으로 활용할 수 있도록 설계되어 있다. In this environment, the use of hard disks is mostly random rather than sequential, and file systems are designed accordingly. Since random access is assumed for accessing a large number of small files, and the file size and contents change frequently, it is designed to allocate space in small blocks and to use it as a storage space even if there is a distance between each recorded location. It is.
즉, 파일 시스템은 적용되는 하드 디스크 파티션의 첫 블록에 데이터를 위한 메타데이터인 슈퍼블록과 아이노드 리스트를 기록 또는 저장한다. 슈퍼블록에는 파일 시스템의 크기, 아이노드 블록 범위, 데이터 블록 범위, 유휴 아이노드 리스트, 유휴 데이터 블록 리스트 등의 정보가 들어간다. 이후에는 데이터 블록을 위한 공간으로 사용된다.That is, the file system records or stores a superblock and an inode list, which are metadata for data, in the first block of a hard disk partition to which the file system is applied. The superblock contains information such as file system size, inode block range, data block range, idle inode list, and idle data block list. The space is then used as a space for data blocks.
그러나, 상술한 바와 같은 종래의 파일 시스템을 사용하는 하드 디스크는 다수의 영상 스트림을 동시에 녹화되는 경우, 각 스트림이 다른 실린더, 특히 서로 거리가 먼 실린더에 녹화되어 결점의 원인이 된다. 또한 각 스트림을 번갈아 가면서 녹화되면서 각 실린더 사이를 왕복해야 하며, 이 때 헤드가 움직이는 동작에 소요되는 탐색시간(seek time)이 디스크 접근 시간 중 제일 큰 비중을 차지함에 따라 하드 디스크의 대역폭이 높더라도 탐색시간에 시간을 허비하여 활용하지 못하므로 녹화 성능을 크게 저하시키는 문제점이 있다. However, in the case of a hard disk using the conventional file system as described above, when multiple video streams are recorded simultaneously, each stream is recorded in different cylinders, especially cylinders far from each other, which causes defects. In addition, each stream must be alternately recorded and shuttled back and forth between cylinders. Even though the hard disk bandwidth is high, the seek time required for the head movement is the largest part of the disk access time. There is a problem in that the recording performance is greatly reduced since it does not use time in search time.
이에, 본 발명의 기술적 과제는 상술한 문제점을 해결하기 위해 안출한 것으로서, 하드 디스크 기반의 영상 녹화 장치에서, 하드 디스크의 실린더 정보를 고려하여 동시에 녹화되는 영상 파일들끼리 가까운 실린더에 배치하여 하드 디스크 헤드의 탐색시간을 최소화하고, 할당단위를 블록보다 큰 세그먼트 단위로 수행, 즉 하드 디스크 상의 연속되는 다수의 블록 단위로 기록함으로써, 쓰기 성능을 끌어 올려 하드 디스크의 대역폭을 최대한 활용하여 다수의 영상 스트림을 동시에 녹화할 수 있는 다중 영상 스트림 녹화 방법 및 그 장치를 제공한다.Accordingly, the technical problem of the present invention is to solve the above-described problems, in the hard disk-based video recording apparatus, considering the cylinder information of the hard disk, at the same time the video files recorded at the same time arranged in a close cylinder of the hard disk Minimize the seek time of the head and perform allocation unit by segment larger than block, that is, write by contiguous block unit on the hard disk, to increase write performance and make the most of the hard disk bandwidth to maximize the number of video streams Provided are a multi-image stream recording method and apparatus capable of simultaneously recording a video stream.
본 발명의 일 관점에 따른 다중 영상 스트림 녹화 방법은, 각각의 영상 스트림들이 입력되는 경우, 하드 디스크내에서 우선순위별로 실린더를 선택하는 단계와, 선택된 실린더의 정보에 따라 실린더 내에서 해당 파일의 마지막 세그먼트에 인접된 세그먼트가 채워져있는 경우 실린더 내 사용중인 세그먼트 리스트에서 마지 막 세그먼트를 선택하는 단계와, 선택된 마지막 세그먼트를 기준으로 특정 거리만큼 떨어진 위치가 실린더 이내이면서 비어있는 경우 녹화신호를 발생하는 단계와, 녹화신호에 따라 하드 디스크에 각각의 영상 스트림들이 세그먼트 단위로 녹화되도록 제어하는 단계를 포함하는 것을 특징으로 한다. According to an aspect of the present invention, a method of recording multiple video streams includes selecting cylinders by priority in a hard disk when respective video streams are input, and ending the corresponding file in the cylinder according to the selected cylinder information. Selecting the last segment from the segment list in use in the cylinder when the segment adjacent to the segment is filled; and generating a recording signal when the position within the cylinder is empty and within a certain distance from the selected segment. And controlling each video stream to be recorded in units of segments on the hard disk according to the recording signal.
본 발명의 다른 관점에 따른 다중 영상 스트림 녹화 장치는, 각각의 영상 스트림들이 입력되는 경우, 하드 디스크내에서 우선순위별로 실린더를 선택하는 실린더 선택부와, 선택된 실린더의 정보에 따라 실린더 내에서 해당 파일의 마지막 세그먼트에 인접된 세그먼트가 채워져있는 경우 실린더 내 사용중인 세그먼트 리스트에서 마지막 세그먼트를 선택하고, 선택된 마지막 세그먼트를 기준으로 특정 거리만큼 떨어진 위치가 실린더 이내이면서 비어있는 경우 녹화신호를 발생하는 세그먼트 선택부와, 녹화신호에 따라 하드 디스크에 각각의 영상 스트림들이 세그먼트 단위로 녹화되도록 제어하는 녹화 제어부를 포함하는 것을 특징으로 한다. According to another aspect of the present invention, a multiple video stream recording apparatus includes a cylinder selection unit for selecting cylinders by priority in a hard disk when respective video streams are input, and a corresponding file in a cylinder according to information of the selected cylinder. Segment selector that selects the last segment from the list of segments in use in the cylinder when the segment adjacent to the last segment in is filled, and generates a recording signal when the position within the cylinder is empty and within a certain distance from the selected segment. And a recording control unit for controlling each video stream to be recorded in units of segments on the hard disk according to the recording signal.
본 발명은 하드 디스크의 실린더 정보를 고려하여 동시에 녹화되는 영상 파일들끼리 가까운 실린더에 배치하여 하드 디스크 헤드의 탐색시간을 최소화하고, 할당단위를 블록보다 큰 세그먼트 단위로 수행, 즉 하드 디스크 상의 연속되는 다수의 블록 단위로 기록함으로써, 쓰기 성능을 끌어 올려 하드 디스크의 대역폭을 최대한 활용하여 다수의 영상 스트림을 동시에 녹화할 수 있다. The present invention minimizes the seek time of the hard disk head by arranging video files simultaneously recorded in consideration of cylinder information of the hard disk in a close cylinder, and performs allocation unit by segment larger than the block, that is, continuous on the hard disk. By recording in multiple block units, it is possible to record multiple video streams at the same time by increasing write performance to make the most of the bandwidth of the hard disk.
또한, 본 발명은 다중 영상 스트림 녹화 방법 및 그 장치를 제공함으로써, 다수의 영상 스트림을 동시에 녹화하더라도 디스크 대역폭 활용도가 높아 녹화를 원활히 수행할 수 있는 이점이 있다. 예컨대, 다수의 감시용 카메라의 영상을 녹화하는 하드 디스크의 파일 시스템으로 활용할 경우, 동시에 녹화되는 영상 스트림의 수가 많아져도 디스크 대역폭 손실이 적어서 많은 수의 카메라를 수용하거나 영상 품질을 높일 수 있다.In addition, the present invention provides a method and a device for recording multiple video streams, and even if a plurality of video streams are recorded at the same time, disk bandwidth utilization is high, and thus there is an advantage in that recording can be performed smoothly. For example, when the video system of a plurality of surveillance cameras is used as a file system of a hard disk, even if the number of simultaneously recorded video streams increases, disk bandwidth loss is small, so that a large number of cameras can be accommodated or image quality can be improved.
이하, 첨부된 도면을 참조하여 본 발명의 동작 원리를 상세히 설명한다. 하기에서 본 발명을 설명함에 있어서 공지 기능 또는 구성에 대한 구체적인 설명이 본 발명의 요지를 불필요하게 흐릴 수 있다고 판단되는 경우에는 그 상세한 설명을 생략할 것이다. 그리고 후술되는 용어들은 본 발명에서의 기능을 고려하여 정의된 용어들로서 이는 사용자, 운용자의 의도 또는 관례 등에 따라 달라질 수 있다. 그러므로 그 정의는 본 명세서 전반에 걸친 내용을 토대로 내려져야 할 것이다. Hereinafter, with reference to the accompanying drawings will be described in detail the operating principle of the present invention. In the following description of the present invention, if it is determined that a detailed description of a known function or configuration may unnecessarily obscure the subject matter of the present invention, the detailed description thereof will be omitted. The following terms are defined in consideration of the functions of the present invention, and may be changed according to the intentions or customs of the user, the operator, and the like. Therefore, the definition should be based on the contents throughout this specification.
도 1은 본 발명의 일 실시예에 따른 다중 영상 스트림 녹화 장치에 대한 블록 구성도로서, 실린더 선택부(10)와 세그먼트 선택부(20)와 녹화 제어부(30)와 하드 디스크(40) 등을 포함할 수 있다. 1 is a block diagram of an apparatus for recording multiple video streams according to an embodiment of the present invention, wherein the
실린더 선택부(10)는 녹화 제어부(30)로부터 녹화제어예정신호가 입력되는 경우 하드 디스크(40)내에서 ‘해당 파일의 마지막 세그먼트가 위치한 실린더’, ‘스트림수가 1이상인 실린더’, ‘공간 사용 상태가 일부 사용인 실린더’, ‘공 간 사용 상태가 비어있음인 실린더’등의 순으로 우선순위를 두어 실린더를 선택하고, 이 선택된 해당 실린더 정보를 세그먼트 선택부(20)에 제공한다. When the recording control scheduled signal is input from the
세그먼트 선택부(20)는 실린더 선택부(10)로부터 입력되는 해당 실린더 정보에 따라 해당 실린더 내에서 해당 파일의 마지막 세그먼트에 바로 인접된 세그먼트가 비어있는지 아니면 비어있지 않은지를 판단하여 비어있는 경우 녹화 제어부(30)에 녹화신호를 제공하고, 비어있지 않은 경우 해당 실린더 내 사용중인 세그먼트 리스트에서 제일 마지막 세그먼트를 선택하고 이 선택된 마지막 세그먼트를 기준으로 상수(m)×(스트림수-1) 만큼 떨어진 위치가 해당 실린더를 벗어나는지를 체크하여 벗어날 경우 유휴공간이 부족한 상태를 의미하므로 실린더 선택을 다시하도록 하는 실린더 재선택신호를 발생하여 실린더 선택부(10)에 제공하며, 벗어나지 않으면서 비어있는 경우에 녹화 제어부(30)에 녹화신호를 제공한다. The
녹화 제어부(30)는 예컨대, 다수의 감시용 카메라에 의해 각각 촬상된 각각의 영상 스트림(S1-1,S1-2,...,S1-n)이 동시에 입력될 경우, 이를 하드 디스크(40)에 녹화제어하기 위해 실린더 선택부(10)에 녹화제어 예정신호를 제공한다. For example, if the video streams S1-1, S1-2, ..., S1-n respectively captured by the plurality of surveillance cameras are input at the same time, the
또한, 녹화 제어부(30)는 녹화제어 예정신호에 대한 응답으로, 세그먼트 선택부(20)로부터 입력되는 녹화신호에 따라 '첫 세그먼트 할당'인지, 아니면 '이어쓰기(append)'인지, 아니면 '덮어쓰기(overwrite)' 인지의 3가지 녹화분류 중 해당 녹화분류에 맞게 하드 디스크(40)에 세그먼트 단위로 녹화되도록 제어한다. In addition, in response to the recording control scheduled signal, the
즉, 녹화 제어부(30)는 3가지 녹화분류 중 예컨대, '첫 세그먼트 할당'일 경우 파일 생성 후 처음으로 데이터 쓰기를 하는 경우 해당되는데, 녹화된 세그먼트 가 없음에 따라 스트림이 1이상인 실린더를 우선으로 찾아 기준에 맞는 실린더가 있으면 하드 디스크(40)내 해당 실린더에 녹화되도록 제어하고, 반면에 기준에 맞는 실린더가 없으면 우선순위의 실린더 선택에 따라 다음 기준인 ‘공간 사용 상태가 일부 사용인 실린더’를 하드 디스크(40)내에서 찾아 녹화되도록 제어한다. That is, the
다음으로, 녹화 제어부(30)는 3가지 녹화분류 중 예컨대, '이어쓰기'일 경우 각각의 영상 스트림(S1-1,S1-2,...,S1-n)들이 상수(m)의 세그먼트 개수 만큼씩 연속적으로 하드 디스크(40)에 이어쓰기로 녹화되도록 제어한다. 여기서, 상수(m) 값이 클수록 파일 단편화는 줄어들고, 서로다른 영상 스트림들을 합치면 연속적인 세그먼트들이 된다. Next, the
다음으로, 녹화 제어부(30)는 3가지 녹화분류 중 예컨대, '덮어쓰기'일 경우 각각의 영상 스트림(S1-1,S1-2,...,S1-n)들을 하드 디스크(40)내 원래 세그먼트 위치에다가 덮어쓰기로 녹화되도록 제어한다. Next, the
하드 디스크(40)는 도 2에 도시된 바와 같이 슈퍼블록의 유휴 세그먼트 리스트와 아이노드의 세그먼트 리스트를 각 실린더마다 하나씩 가지는데, 도시된 각 타원은 실린더 하나를 의미하며 각 실린더마다 메타데이터를 독립적으로 기록 또는 저장하고 있음을 나타낸다. 즉, 상술한 슈퍼블록은 각 실린더의 첫번째 블록에 기록 또는 저장하며 아이노드는 슈퍼블록 다음 블록부터 기록 또는 저장한다. 물론 각 슈퍼블록과 아이노드는 해당 실린더에 대한 정보만을 담는다.As shown in FIG. 2, the
여기서, 녹화 제어부(30)는 하드 디스크(40)의 각 실린더에 저장된 슈퍼블록 정보를 메모리에 로드하여 로드된 실린더별 슈퍼블록 정보에 ‘스트림 수’와 ‘공간 사용 상태’의 정보를 추가한다. '스트림 수'는 현재 해당 실린더에 쓰기를 진행 중인 파일의 수를 의미하고, ‘공간 사용 상태’는 해당 실린더 내 데이터 저장공간의 사용 정도를 ‘비어있음’, ‘일부 사용’, ‘유휴 공간 없음’의 3가지 상태 중 하나로 분류한 것이다. 이처럼 추가된 2가지의 데이터 필드는 하드 디스크 상에 저장할 필요는 없고 메모리에 로드된 슈퍼블록 정보에만 존재하면 된다.Here, the
따라서, 본 발명은 하드 디스크의 실린더 정보를 고려하여 동시에 녹화되는 영상 파일들끼리 가까운 실린더에 배치하여 하드 디스크 헤드의 탐색시간을 최소화하고, 할당단위를 블록보다 큰 세그먼트 단위로 수행, 즉 하드 디스크 상의 연속되는 다수의 블록 단위로 기록함으로써, 쓰기 성능을 끌어 올려 하드 디스크의 대역폭을 최대한 활용하여 다수의 영상 스트림을 동시에 녹화할 수 있다. Therefore, the present invention minimizes the seek time of the hard disk head by arranging video files simultaneously recorded in consideration of cylinder information of the hard disk in a close cylinder, and performs an allocation unit by a segment unit larger than a block, that is, on a hard disk. By recording in a plurality of contiguous block units, it is possible to record multiple video streams simultaneously by increasing write performance to make the most of the bandwidth of the hard disk.
다음에, 상술한 바와 같은 구성을 갖는 본 발명의 일 실시예에서 다중 영상 스트림 녹화 과정에 대하여 설명한다. Next, a multi-video stream recording process in an embodiment of the present invention having the above-described configuration will be described.
도 3은 본 발명의 일 실시예에 따른 다중 영상 스트림 녹화 방법에 대하여 순차적으로 도시한 흐름도이다. 3 is a flowchart sequentially illustrating a method of recording multiple video streams according to an embodiment of the present invention.
먼저, 녹화 제어부(30)에서는 다수의 감시용 카메라(도시되지 않음)에 의해 각각 촬상된 각각의 영상 스트림(S1-1,S1-2,...,S1-n)이 동시에 입력(S301)되는 경우, 이를 하드 디스크(40)에 녹화제어하기 위해 실린더 선택부(10)에 녹화제어 예정신호를 제공(S303)한다. First, the
그러면, 실린더 선택부(10)에서는 녹화 제어부(30)로부터 녹화제어 예정신호가 입력되는 경우 하드 디스크(40)내에서 ‘해당 파일의 마지막 세그먼트가 위치한 실린더’, ‘스트림수가 1이상인 실린더’, ‘공간 사용 상태가 일부 사용인 실린더’, ‘공간 사용 상태가 비어있음인 실린더’등의 순으로 우선순위를 두어 실린 더를 선택(S305)한다.Then, when the recording control scheduled signal is input from the
다음으로, 실린더 선택부(10)에서는 선택된 해당 실린더 정보를 세그먼트 선택부(20)에 제공(S307)한다. 여기서, 실린더 선택부(10)에 의해 실린더가 선택되는 경우, 조건을 만족하는 실린더가 다수개인 경우, 선택된 실린더들의 유휴 세그먼트 리스트를 비교하여 더 많은 유휴 공간을 가진 실린더를 선택한다. Next, the
세그먼트 선택부(20)에서는 실린더 선택부(10)로부터 입력되는 해당 실린더 정보에 따라 해당 실린더 내에서 해당 파일의 마지막 세그먼트에 바로 인접된 세그먼트가 비어있는지를 판단(S309)한다.The
상기 판단(S309)결과, 인접된 세그먼트가 비어있는 경우 녹화 제어부(30)에 녹화신호를 제공(S311)한다.As a result of the determination (S309), if an adjacent segment is empty, the
반면에, 상기 판단(S309)결과, 인접된 세그먼트가 비어있지 않은 경우 해당 실린더 내 사용중인 세그먼트 리스트에서 제일 마지막 세그먼트를 선택(S313)하고 이 선택된 마지막 세그먼트를 기준으로 상수(m)×(스트림수-1) 개수 만큼 떨어진 위치가 해당 실린더를 벗어나는지를 체크(S315)한다.On the other hand, if the adjacent segment is not empty as a result of the determination (S309), the last segment is selected from the segment list in use in the cylinder (S313), and the constant (m) × (number of streams based on the selected last segment). -1) It is checked whether the position separated by the number leaves the cylinder (S315).
상기 체크(S315)결과, 해당 실린더를 벗어날 경우 유휴공간이 부족한 상태를 의미하므로 실린더 선택을 다시하도록 하는 실린더 재선택신호를 발생하여 실린더 선택부(10)에 제공(S317)한다.As a result of the check (S315), when leaving the cylinder, it means a state in which the idle space is insufficient, and generates a cylinder reselection signal for reselecting the cylinder and provides the cylinder selection unit 10 (S317).
반면에, 상기 체크(S315)결과, 해당 실린더를 벗어나지 않으면서 비어있는 경우에 녹화 제어부(30)에 녹화신호를 제공(S319)한다. On the other hand, as a result of the check (S315), if the empty without leaving the cylinder, the
녹화 제어부(30)에서는 세그먼트 선택부(20)로부터 입력되는 녹화신호에 따 라 '첫 세그먼트 할당'인지, 아니면 '이어쓰기(append)'인지, 아니면 '덮어쓰기(overwrite)'인지의 3가지 녹화분류 중 해당 녹화분류에 맞게 하드 디스크(40)에 세그먼트 단위로 녹화되도록 제어(S321)한다. The
즉, 녹화 제어부(30)는 3가지 녹화분류 중 예컨대, '첫 세그먼트 할당'일 경우 파일 생성 후 처음으로 데이터 쓰기를 하는 경우 해당되는데, 녹화된 세그먼트가 하드 디스크(40)에 없음에 따라 스트림이 1이상인 실린더를 우선으로 찾아 기준에 맞는 실린더가 있으면 하드 디스크(40)내 해당 실린더에 녹화되도록 제어하고, 반면에 기준에 맞는 실린더가 없으면 우선순위의 실린더 선택에 따라 다음 기준인 ‘공간 사용 상태가 일부 사용인 실린더’를 하드 디스크(40)내에서 찾아 녹화되도록 제어한다. That is, the
다음으로, 녹화 제어부(30)는 3가지 녹화분류 중 예컨대, '이어쓰기'일 경우 각각의 영상 스트림(S1-1,S1-2,...,S1-n)들이 상수(m)의 세그먼트 개수 만큼씩 연속적으로 하드 디스크(40)에 이어쓰기로 녹화되도록 제어한다. 여기서, 상수(m) 값이 클수록 파일 단편화는 줄어들고, 서로다른 영상 스트림들을 합치면 연속적인 세그먼트들이 된다. Next, the
다음으로, 녹화 제어부(30)는 3가지 녹화분류 중 예컨대, '덮어쓰기'일 경우 각각의 영상 스트림(S1-1,S1-2,...,S1-n)들을 하드 디스크(40)내 원래 세그먼트 위치에다가 덮어쓰기로 녹화되도록 제어한다. Next, the
이상에서와 같이, 본 발명은 다중 영상 스트림 녹화 방법 및 그 장치를 제공함으로써, 다수의 영상 스트림을 동시에 녹화하더라도 디스크 대역폭 활용도가 높 아 녹화를 원활히 수행할 수 있다.As described above, the present invention provides a method for recording multiple video streams and an apparatus thereof, so that even when simultaneously recording a plurality of video streams, the disk bandwidth utilization is high, so that recording can be performed smoothly.
한편, 본 발명의 상세한 설명에서는 구체적인 실시예에 관해 설명하였으나, 본 발명의 범위에서 벗어나지 않는 한도 내에서 여러 가지 변형이 가능함은 물론이다. 그러므로 본 발명의 범위는 설명된 실시예에 국한되지 않으며, 후술되는 특허청구의 범위뿐만 아니라 이 특허청구의 범위와 균등한 것들에 의해 정해져야 한다. Meanwhile, in the detailed description of the present invention, specific embodiments have been described, but various modifications are possible without departing from the scope of the present invention. Therefore, the scope of the present invention should not be limited to the described embodiments, but should be determined by the scope of the appended claims, and equivalents thereof.
도 1은 본 발명의 일 실시예에 따른 다중 영상 스트림 녹화 장치에 대한 블록 구성도,1 is a block diagram of an apparatus for recording multiple video streams according to an embodiment of the present invention;
도 2는 도 1에 도시된 하드 디스크를 상세하게 도시한 도면,FIG. 2 is a detailed view of the hard disk shown in FIG. 1;
도 3은 본 발명의 일 실시예에 따른 다중 영상 스트림 녹화 방법에 대하여 순차적으로 도시한 흐름도.3 is a flowchart sequentially illustrating a method of recording multiple video streams according to an embodiment of the present invention.
<도면의 주요부분에 대한 부호의 설명><Description of the symbols for the main parts of the drawings>
10 : 실린더 선택부 20 : 세그먼트 선택부10: cylinder selection unit 20: segment selection unit
30 : 녹화 제어부 40 : 하드 디스크30: recording control unit 40: hard disk
Claims (11)
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020080121024 | 2008-12-02 | ||
KR20080121024 | 2008-12-02 |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20100062808A KR20100062808A (en) | 2010-06-10 |
KR101173552B1 true KR101173552B1 (en) | 2012-08-13 |
Family
ID=42363015
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020090023985A KR101173552B1 (en) | 2008-12-02 | 2009-03-20 | Method for recording multi image stream and its apparatus |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR101173552B1 (en) |
-
2009
- 2009-03-20 KR KR1020090023985A patent/KR101173552B1/en active IP Right Grant
Also Published As
Publication number | Publication date |
---|---|
KR20100062808A (en) | 2010-06-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3566152B2 (en) | Data recording / reproducing device and program recording medium | |
CN101055748A (en) | Method for providing multi-path data and method for reproducing multi-path data | |
US7660837B2 (en) | Method for automatically managing disk fragmentation | |
CN104065906B (en) | Video recording method and device of digital video recording equipment | |
CN101872639B (en) | Method and device for storing and retrieving image data on digital hard disk video recorder | |
JP5378197B2 (en) | Memory controller, memory card, nonvolatile memory system | |
US9558124B2 (en) | Data storage system with passive partitioning in a secondary memory | |
US8352674B2 (en) | Semiconductor memory information storage apparatus and method of controlling writing | |
CN102760136A (en) | File system control method based on rapid video data storage | |
KR100694069B1 (en) | Recording apparatus including plurality of data blocks of different sizes, file managing method using the same and printing apparatus including the same | |
US20170309307A1 (en) | Video recording apparatus with pre-event circulation recording function | |
JP4502375B2 (en) | File system and control method thereof | |
JP4059619B2 (en) | Video stream processing method for time-delayed viewing | |
CN102792319A (en) | Data recording device, and data recording method | |
CN101808243B (en) | Data processing method and device based on snapshot | |
KR101173552B1 (en) | Method for recording multi image stream and its apparatus | |
US8458281B2 (en) | File sharing system | |
KR20150137661A (en) | Method and apparatus for fragmentation prevention of non-volatile memory for blackbox device | |
CN1774760A (en) | Allocation class selection for file storage | |
KR101214784B1 (en) | Multi-channel record and playback apparatus for improving record and playback velocity | |
US8565584B2 (en) | Editing apparatus and editing method | |
JP2007265010A (en) | File reproduction apparatus, file reproduction method, and program | |
JPH07200369A (en) | Data storage device | |
KR100468276B1 (en) | Storage and Search Method of multimedia data | |
KR101590845B1 (en) | An apparatus for performing multi channel image recording and management considering the life-time of a storage medium and the method thereof |
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: 20160808 Year of fee payment: 5 |
|
FPAY | Annual fee payment |
Payment date: 20170822 Year of fee payment: 6 |
|
FPAY | Annual fee payment |
Payment date: 20180807 Year of fee payment: 7 |
|
FPAY | Annual fee payment |
Payment date: 20190715 Year of fee payment: 8 |