KR102146459B1 - Method for extracting cctv image data in the unallocated area based on informal xfs file system and apparatus thereof - Google Patents

Method for extracting cctv image data in the unallocated area based on informal xfs file system and apparatus thereof Download PDF

Info

Publication number
KR102146459B1
KR102146459B1 KR1020180135618A KR20180135618A KR102146459B1 KR 102146459 B1 KR102146459 B1 KR 102146459B1 KR 1020180135618 A KR1020180135618 A KR 1020180135618A KR 20180135618 A KR20180135618 A KR 20180135618A KR 102146459 B1 KR102146459 B1 KR 102146459B1
Authority
KR
South Korea
Prior art keywords
file
xfs
area
image data
information
Prior art date
Application number
KR1020180135618A
Other languages
Korean (ko)
Other versions
KR20200052561A (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 KR1020180135618A priority Critical patent/KR102146459B1/en
Publication of KR20200052561A publication Critical patent/KR20200052561A/en
Application granted granted Critical
Publication of KR102146459B1 publication Critical patent/KR102146459B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/148File search processing
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/765Interface circuits between an apparatus for recording and another apparatus
    • H04N5/77Interface circuits between an apparatus for recording and another apparatus between a recording apparatus and a television camera
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Library & Information Science (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

본 발명은 비정형 XFS 파일 시스템 기반의 비할당 영역에서의 CCTV 영상 데이터 추출 방법 및 그 장치에 대한 것이다.
본 발명에 따르면, 비정형 XFS 파일 시스템 기반의 CCTV 영상 데이터 추출 장치에 있어서, 얼로케이션 그룹에 포함된 슈퍼블록을 탐색하여 XFS 시그니처가 저장되어 있는 위치를 검출하는 슈퍼블록 탐색부, 비정형 XFS 파일 시스템의 할당 영역 및 비할당 영역 각각에 대하여 정보를 분석하고 파일을 추출하는 정보 분석 및 파일 추출부, 그리고 추출된 비할당 영역에 저장된 데이터로부터 CCTV 영상 데이터를 추출하는 영상 데이터 추출부를 포함한다.
이와 같이 본 발명에 따르면, 비정형 XFS 파일 시스템을 사용하는 CCTV 영상 녹화기에서 XFS 파일 시스템의 슈퍼 블록과 얼로케이션 그룹 데이터를 탐색하여 분석하는 방법을 이용함으로써, 특히 비할당 영역에 저장되어 있는 CCTV 영상 데이터를 찾아 추출할 수 있다.
또한 본 발명에 따르면, 단일의 XFS 파티션에서뿐만 아니라 MBR, GPT와 혼합된 XFS 파티션에서도 슈퍼블록을 탐색하여 할당영역과 비할당 영역을 구분하고 각각의 영역에 저장되어 있는 영상 데이터를 추출할 수 있다.
The present invention relates to a method and apparatus for extracting CCTV image data in an unallocated area based on an unstructured XFS file system.
According to the present invention, in an apparatus for extracting CCTV image data based on an unstructured XFS file system, a superblock search unit that detects a location where an XFS signature is stored by searching for a superblock included in an allocation group, and an unstructured XFS file system An information analysis and file extracting unit for analyzing information and extracting a file for each of the allocated and non-allocated areas, and an image data extracting unit for extracting CCTV image data from data stored in the extracted non-allocated area.
As described above, according to the present invention, in a CCTV video recorder using an unstructured XFS file system, by using a method of searching and analyzing the superblock and alignment group data of the XFS file system, in particular, CCTV image data stored in an unallocated area. You can find and extract it.
In addition, according to the present invention, not only in a single XFS partition, but also in an XFS partition mixed with MBR and GPT, a superblock can be searched to distinguish an allocated area and an unallocated area, and image data stored in each area can be extracted.

Description

비정형 XFS 파일 시스템 기반의 비할당 영역에서의 CCTV 영상 데이터 추출 방법 및 그 장치{METHOD FOR EXTRACTING CCTV IMAGE DATA IN THE UNALLOCATED AREA BASED ON INFORMAL XFS FILE SYSTEM AND APPARATUS THEREOF}CCTV image data extraction method and device in unallocated area based on unstructured XFS file system {METHOD FOR EXTRACTING CCTV IMAGE DATA IN THE UNALLOCATED AREA BASED ON INFORMAL XFS FILE SYSTEM AND APPARATUS THEREOF}

본 발명은 비정형 XFS 파일 시스템 기반의 비할당 영역에서의 CCTV 영상 데이터 추출 방법 및 그 장치에 관한 것으로서, 더욱 상세하게는 비할당 영역에 저장되어 있는 CCTV 영상 데이터를 비정형 XFS 파일 시스템에서도 추출할 수 있는 CCTV 영상 데이터 추출 방법 및 그 장치에 관한 것이다.The present invention relates to a method and apparatus for extracting CCTV image data in an unallocated area based on an unstructured XFS file system, and more particularly, to extract CCTV image data stored in an unallocated area in an unstructured XFS file system. It relates to a method and apparatus for extracting CCTV image data.

최근 CCTV 영상의 화질이 SD(Standard Definition) 화질에서 HD(High Definition) 화질로 향상되면서 CCTV 영상 데이터의 크기가 증가하였고, 이로 인해 기존에 사용하던 임베디드 파일 시스템으로는 HD 영상을 저장하고 관리하는 것이 어려워지면서 정형화된 파일 시스템 중 빠른 처리 속도와 대용량 파일 처리에 특화되어 있는 XFS 파일 시스템을 사용하게 되었다. Recently, as the quality of CCTV video has improved from SD (Standard Definition) to HD (High Definition), the size of CCTV video data has increased. For this reason, it is difficult to store and manage HD video with the existing embedded file system. As it became difficult, the XFS file system, which is specialized for processing large files and fast processing speed among standard file systems, was used.

현재 CCTV 시스템에서는 영상 녹화기인 DVR 또는 NVR을 이용하여 녹화된 영상 데이터를 저장하는 방식을 주로 사용하고 있으며, 효과적으로 HD 영상을 저장하고 관리하기 위해 리눅스 기반의 파일 시스템인 XFS를 사용하는 제품이 증가하고 있다. 그러나 CCTV 영상 녹화기 제조사에서는 정형화되어 있는 XFS 파일 시스템 대신 HD 영상 데이터 녹화에 최적화된 비정형 XFS 파일 시스템을 사용한 경우 컴퓨터에서 사용할 수 있는 일반적인 방법으로는 영상 녹화기에서 저장한 CCTV 영상 데이터를 확인할 수 없는 상황이 발생한다. Currently, CCTV systems mainly use a method of storing recorded video data using DVR or NVR, which is a video recorder, and products that use XFS, a Linux-based file system, are increasing to effectively store and manage HD video. have. However, when CCTV video recorder manufacturers use an atypical XFS file system optimized for HD video data recording instead of the standard XFS file system, there is a situation in which CCTV video data saved by a video recorder cannot be checked by a general method that can be used on a computer. Occurs.

CCTV 영상 녹화기에서 영상을 확인하더라도 할당 영역에 저장된 영상 데이터만을 확인할 수 있으며, 리눅스 파일 시스템을 윈도우에 포팅하기 위한 소프트웨어인 UFS Explorer등을 이용하여 비정형 XFS 파일 시스템을 사용하는 영상녹화기에서 할당 영역에 저장된 영상 데이터를 추출하는 것은 가능하지만 이 방법 역시 비할당 영역에 저장된 영상 데이터를 추출하는 것은 불가능하다. Even if you check the video on the CCTV video recorder, you can check only the video data stored in the allocated area. Using UFS Explorer, a software for porting the Linux file system to Windows, is saved in the allocated area in the video recorder using the unstructured XFS file system. Although it is possible to extract image data, it is also impossible to extract image data stored in the unallocated area in this method.

또한 기존의 단일 XFS에서는 LBA 0 에 슈퍼블록이 위치하기 때문에 파악이 용이하지만, 최근의 MBR, GPT 기반으로 구성된 XFS 시스템에서는 슈퍼블록의 위치 정보를 파악하기 어렵다는 문제점이 있다. In addition, in the existing single XFS, since the superblock is located at LBA 0, it is easy to identify, but there is a problem in that it is difficult to identify the location information of the superblock in the recent MBR and GPT based XFS system.

본 발명의 배경이 되는 기술은 대한민국 공개특허공보 제2015-0074533호(2015. 07. 02. 공개)에 개시되어 있다.The technology behind the present invention is disclosed in Korean Patent Application Publication No. 2015-0074533 (published on July 02, 2015).

본 발명이 이루고자 하는 기술적 과제는, 비할당 영역에 저장되어 있는 CCTV 영상 데이터를 비정형 XFS 파일 시스템에서도 추출할 수 있는 비정형 XFS 파일 시스템 기반의 비할당 영역에서의 CCTV 영상 데이터 추출 방법 및 그 장치를 제공하기 위한 것이다. The technical problem to be achieved by the present invention is to provide a method and apparatus for extracting CCTV image data in an unallocated area based on an unstructured XFS file system that can extract CCTV image data stored in an unallocated area even in an unstructured XFS file system. It is to do.

이러한 기술적 과제를 이루기 위한 본 발명의 실시예에 따르면, 비정형 XFS 파일 시스템 기반의 CCTV 영상 데이터 추출 장치에 있어서, 얼로케이션 그룹에 포함된 슈퍼블록을 탐색하여 XFS 시그니처가 저장되어 있는 위치를 검출하는 슈퍼블록 탐색부, 비정형 XFS 파일 시스템의 할당 영역 및 비할당 영역 각각에 대하여 정보를 분석하고 파일을 추출하는 정보 분석 및 파일 추출부, 그리고 추출된 비할당 영역에 저장된 데이터로부터 CCTV 영상 데이터를 추출하는 영상 데이터 추출부를 포함한다. According to an embodiment of the present invention for achieving such a technical problem, in an apparatus for extracting CCTV image data based on an unstructured XFS file system, a super block that searches for a super block included in an allocation group and detects a location where an XFS signature is stored. Block search unit, information analysis and file extraction unit that analyzes information for each of the allocated and unallocated areas of the unstructured XFS file system and extracts files, and a video that extracts CCTV video data from data stored in the extracted non-allocated areas It includes a data extraction unit.

상기 슈퍼블록 탐색부는, 비정형 XFS 파일 시스템의 MBR 영역을 분석하여 MBR 영역에 XFS 시그니처가 존재하는지 판단하고, MBR 영역에 XFS 시그니처가 존재하면 전체 영역을 단일 파티션으로 이루어지는 것으로 판단하여 슈퍼블록 탐색을 종료하고, MBR 영역 내에 XFS 시그니처가 존재하지 않는 경우에는 복수의 파티션으로 분할된 것으로 판단하여, MBR 파티션 정보로부터 파티션 개수를 확인하고, 복수의 파티션 각각에 대하여 순차적으로 XFS 시그니처를 탐색할 수 있다.The superblock search unit analyzes the MBR area of the unstructured XFS file system to determine whether an XFS signature exists in the MBR area, and if there is an XFS signature in the MBR area, the superblock search is terminated by determining that the entire area is composed of a single partition. And, if the XFS signature does not exist in the MBR area, it is determined that it has been divided into a plurality of partitions, the number of partitions can be checked from the MBR partition information, and the XFS signature can be sequentially searched for each of the plurality of partitions.

상기 정보 분석 및 파일 추출부는, 할당 영역의 루트노드(root node) 데이터와 아이노드(inode) 데이터를 분석하여 파일 리스트를 생성하고, 추출하고자 하는 파일이 선택되면 선택된 파일의 아이노드 정보를 분석하여 해당 위치에 저장되어 있는 파일 데이터를 추출할 수 있다. The information analysis and file extraction unit generates a file list by analyzing root node data and inode data of the allocated area, and analyzes the inode information of the selected file when a file to be extracted is selected. You can extract the file data stored in the location.

상기 정보 분석 및 파일 추출부는, 비할당 영역에 대한 B tree 데이터를 분석하고, 불연속적으로 저장된 비할당 영역의 n번째 파일의 마지막 프레임의 생성시간과 n+1 번째 파일의 첫번째 프레임의 생성시간의 시간차이를 임계값과 비교하고, 시간차이가 기설정된 임계값보다 작으면 비할당 영역에 대한 연결 정보를 생성한 후, 연결 정보에 따라 데이터를 단일 파일 형태로 추출하며, 시간차이가 기설정된 임계값 이상이면 비할당 영역 각각에 대하여 다중 파일 형태로 추출할 수 있다. The information analysis and file extraction unit analyzes the B tree data for the unallocated area, and determines the generation time of the last frame of the nth file of the non-allocated area and the generation time of the first frame of the n+1th file that are stored discontinuously. The time difference is compared with the threshold value, and if the time difference is less than the preset threshold, connection information for the unallocated area is generated, and then data is extracted in the form of a single file according to the connection information, and the time difference is a preset threshold. If the value is more than the value, it can be extracted in the form of multiple files for each unallocated area.

상기 영상 데이터 추출부는, 비할당 영역에 대한 단일 파일 또는 다중 파일에 대하여 파일 리스트를 생성하고, 생성된 리스트의 순서대로 파일 데이터를 분석하여 영상 데이터 추출 가능 여부를 판단하고, 영상 데이터 추출이 가능한 경우 영상 프레임을 기준 영상 정보인 I 프레임과 변화 영상 정보인 P 프레임으로 리스트 업하고, 프레임 간 연결 정보의 분석을 통해 영상 프레임의 연결이 가능한지를 판단하며, 영상 프레임 연결이 가능한 경우 영상 프레임을 재구성하여 동영상 파일로 추출하고, 영상 프레임 연결이 불가능한 경우 영상 프레임 중 기준 영상 정보인 I 프레임만을 추출한 후 개별 이미지 파일로 추출할 수 있다.The image data extraction unit generates a file list for a single file or multiple files for an unallocated area, analyzes the file data in the order of the generated list to determine whether image data can be extracted, and when image data extraction is possible The video frames are listed as I-frames, which are reference video information, and P-frames, which are changed video information, and the connection information between frames is analyzed to determine whether video frames can be connected. If video frames are connected, the video frames are reconstructed. When it is extracted as a video file and it is impossible to connect the video frame, only the I frame, which is the reference video information, may be extracted among the video frames and then extracted as an individual image file.

본 발명의 다른 실시예에 따르면, CCTV 영상 데이터 추출 장치를 이용한 비정형 XFS 파일 시스템 기반의 CCTV 영상 데이터 추출 방법에 있어서, XFS 시그니처가 저장되어 있는 위치를 검출하기 위하여 얼로케이션 그룹에 포함된 슈퍼블록을 탐색하는 단계, 비정형 XFS 파일 시스템의 할당 영역 및 비할당 영역 각각에 대하여 정보를 분석하고 파일을 추출하는 단계, 그리고 추출된 비할당 영역에 저장된 데이터로부터 CCTV 영상 데이터를 추출하는 단계를 포함한다. According to another embodiment of the present invention, in a method for extracting CCTV image data based on an unstructured XFS file system using a CCTV image data extraction device, a superblock included in an allocation group is used to detect a location where an XFS signature is stored. Searching, analyzing information on each of the allocated and unallocated areas of the unstructured XFS file system and extracting files, and extracting CCTV image data from data stored in the extracted non-allocated areas.

이와 같이 본 발명에 따르면, 비정형 XFS 파일 시스템을 사용하는 CCTV 영상 녹화기에서 XFS 파일 시스템의 슈퍼 블록과 얼로케이션 그룹 데이터를 탐색하여 분석하는 방법을 이용함으로써, 특히 비할당 영역에 저장되어 있는 CCTV 영상 데이터를 찾아 추출할 수 있다. As described above, according to the present invention, a CCTV video recorder using an unstructured XFS file system uses a method of searching and analyzing the superblock and allocation group data of the XFS file system, and in particular, CCTV image data stored in an unallocated area. You can find and extract it.

또한 본 발명에 따르면, 단일의 XFS 파티션에서뿐만 아니라 MBR, GPT와 혼합된 XFS 파티션에서도 슈퍼블록을 탐색하여 할당영역과 비할당 영역을 구분하고 각각의 영역에 저장되어 있는 영상 데이터를 추출할 수 있다.In addition, according to the present invention, not only in a single XFS partition, but also in an XFS partition mixed with MBR and GPT, a superblock can be searched to divide an allocated area and an unallocated area, and image data stored in each area can be extracted.

또한, 본 발명에 따르면, MBR, GPT 기반으로 구성된 XFS 시스템에서 보다 효과적으로 슈퍼블록의 위치 정보를 파악하는 것이 가능하다. 또한 얼로케이션 그룹 데이터 분석 알고리즘을 이용하여 비할당 영역에 저장된 데이터 추출 시 개별 영역 또는 전체 영역으로 데이터를 분리하여 추출하는 것이 가능하다. In addition, according to the present invention, it is possible to more effectively identify the location information of the superblock in the XFS system configured based on MBR and GPT. In addition, when data stored in an unallocated area is extracted using an allocation group data analysis algorithm, it is possible to separate and extract data into individual areas or entire areas.

도 1은 XFS 파일 시스템의 기본 구조를 설명하기 위한 도면이다.
도 2는 본 발명의 실시예에 따른 CCTV 영상 데이터 추출 장치의 구성도이다.
도 3은 본 발명의 실시예에 따른 CCTV 영상 데이터 추출 장치의 영상 데이터 추출 방법을 설명하기 위한 순서도이다.
도 4는 도 3의 S310 단계를 설명하기 위한 흐름도이다.
도 5는 도 3의 S320 단계를 설명하기 위한 흐름도이다.
도 6은 도 3의 S330 단계를 설명하기 위한 흐름도이다.
도 7은 비할당 영역이 불연속적으로 할당되어 있는 것을 나타낸 예시도이다.
도 8는 도 3의 S340 단계를 설명하기 위한 흐름도이다.
1 is a diagram for describing a basic structure of an XFS file system.
2 is a block diagram of an apparatus for extracting CCTV image data according to an embodiment of the present invention.
3 is a flowchart illustrating a method of extracting image data of a CCTV image data extracting apparatus according to an embodiment of the present invention.
FIG. 4 is a flowchart illustrating step S310 of FIG. 3.
5 is a flowchart illustrating step S320 of FIG. 3.
6 is a flowchart illustrating step S330 of FIG. 3.
7 is an exemplary diagram showing that non-allocated areas are discontinuously allocated.
FIG. 8 is a flowchart illustrating step S340 of FIG. 3.

이하 첨부된 도면을 참조하여 본 발명에 따른 바람직한 실시예를 상세히 설명하기로 한다. 이 과정에서 도면에 도시된 선들의 두께나 구성요소의 크기 등은 설명의 명료성과 편의상 과장되게 도시되어 있을 수 있다. Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. In this process, the thickness of the lines or the size of components shown in the drawings may be exaggerated for clarity and convenience of description.

또한 후술되는 용어들은 본 발명에서의 기능을 고려하여 정의된 용어들로서, 이는 사용자, 운용자의 의도 또는 관례에 따라 달라질 수 있다. 그러므로 이러한 용어들에 대한 정의는 본 명세서 전반에 걸친 내용을 토대로 내려져야 할 것이다.In addition, terms to be described later are terms defined in consideration of functions in the present invention, which may vary according to the intention or custom of users or operators. Therefore, definitions of these terms should be made based on the contents throughout the present specification.

먼저, 도 1을 통해 본 발명의 실시예에 따른 타임스탬프를 이용한 이미지 정렬 장치에 대하여 설명한다.First, an image alignment apparatus using a time stamp according to an embodiment of the present invention will be described with reference to FIG. 1.

도 1은 XFS 파일 시스템의 기본 구조를 설명하기 위한 도면이다. 1 is a diagram for describing a basic structure of an XFS file system.

도 1에 나타낸 XFS 파일 시스템의 기본 구조도의 경우, CCTV에서 사용하는 비정형 XFS 파일 시스템에서도 동일한 구조를 가지고 있다. In the case of the basic structure diagram of the XFS file system shown in FIG. 1, the unstructured XFS file system used in CCTV also has the same structure.

도 1과 같이 XFS 파일 시스템은 하나의 파티션을 할당 영역인 얼로케이션 그룹(Allocation Group)으로 나누어 관리하고 있으며, 각각의 얼로케이션 그룹(Allocation Group)은 복수의 블록으로 이루어지는데, 그 중 첫번째 블록은 얼로케이션 그룹 헤더(Allocation Group Header)가 위치한다. As shown in Fig. 1, the XFS file system divides and manages one partition into an allocation group, an allocation area, and each allocation group consists of a plurality of blocks, of which the first block is The Allocation Group Header is located.

또한, 얼로케이션 그룹 헤더(Allocation Group Header)는 복수의 섹터(sector)로 구성되며, 그 중 첫번째 섹터는 슈퍼블록(Super Block)으로 이루어진다. In addition, the Allocation Group Header is composed of a plurality of sectors, of which the first sector is composed of a Super Block.

여기서, 슈퍼블록(Super Block)은 각 얼로케이션 그룹의 맨 처음에 위치한 블록으로 XFS 파일 시스템임을 확인할 수 있는 블록이자 모든 할당 영역을 취합한 정보를 갖고 있는 블록이다. 따라서 슈퍼블록의 위치를 탐색하고 슈퍼블록의 내용을 분석하면 XFS 파일 시스템의 할당 영역과 비할당 영역의 파악이 가능하다. Here, the super block is a block that is located at the very beginning of each allocation group, is a block that can confirm that it is an XFS file system, and has information about all allocation areas. Therefore, by searching the location of the superblock and analyzing the contents of the superblock, it is possible to identify the allocated and unallocated areas of the XFS file system.

도 2는 본 발명의 실시예에 따른 CCTV 영상 데이터 추출 장치의 구성도이다.2 is a block diagram of an apparatus for extracting CCTV image data according to an embodiment of the present invention.

도 2에 나타낸 것처럼, 본 발명의 실시예에 따른 CCTV 영상 데이터 추출 장치(200)는 슈퍼블록 탐색부(210), 정보 분석 및 파일 추출부(220) 및 영상 데이터 추출부(230)를 포함한다. As shown in FIG. 2, the CCTV image data extraction apparatus 200 according to the embodiment of the present invention includes a superblock search unit 210, an information analysis and file extraction unit 220, and an image data extraction unit 230. .

도 3은 본 발명의 실시예에 따른 CCTV 영상 데이터 추출 장치의 영상 데이터 추출 방법을 설명하기 위한 순서도이다. 3 is a flowchart illustrating a method of extracting image data of a CCTV image data extracting apparatus according to an embodiment of the present invention.

더욱 상세하게 설명하면, 도 3은 비정형 XFS 파일 시스템의 슈퍼블록 및 얼로케이션 그룹 데이터 분석 알고리즘과 할당 영역 및 비할당 영역에서의 영상 데이터 추출 방법에 대한 흐름도이다. In more detail, FIG. 3 is a flowchart illustrating a superblock and allocation group data analysis algorithm of an unstructured XFS file system and a method of extracting image data from an allocated area and an unallocated area.

먼저, 슈퍼블록 탐색부(210)는 비정형 XFS 파일 시스템에서 슈퍼블록을 탐색하여 XFS 파일 시스템의 정보가 저장되어 있는 위치를 확인한다(S310). First, the superblock search unit 210 searches for a superblock in the unstructured XFS file system and checks a location where information of the XFS file system is stored (S310).

여기서, XFS 파일 시스템의 정보는 XFS 시그니처를 포함한다. Here, the information of the XFS file system includes the XFS signature.

다음으로 정보 분석 및 파일 추출부(220)는 비정형 XFS 파일 시스템의 할당 영역 및 비할당 영역 각각에 대하여 정보를 분석하고 파일을 추출한다(S320, S330).Next, the information analysis and file extraction unit 220 analyzes information on each of the allocated area and the non-allocated area of the unstructured XFS file system and extracts a file (S320 and S330).

즉, 비정형 XFS 파일 시스템의 정보 분석 및 파일 추출은 데이터 할당 영역에 대한 것과 비할당 영역에 대한 것으로 구분되므로, 정보 분석 및 파일 추출부(220)는 할당 영역과 비할당 영역 각각에 대하여 정보 분석 및 파일을 추출하도록 한다. That is, since the information analysis and file extraction of the unstructured XFS file system is divided into a data allocation area and a non-allocated area, the information analysis and file extraction unit 220 analyzes and analyzes information for each of the allocated area and the non-allocated area. Let's extract the file.

마지막으로, 영상 데이터 추출부(230)는 비할당 영역의 CCTV 영상 데이터를 추출한다(S340).Finally, the image data extracting unit 230 extracts CCTV image data of the unallocated area (S340).

이하에서는 도 4 내지 도 8을 이용하여, 도 3에 나타낸 각각의 단계에 대하여 상세하게 설명한다. Hereinafter, each step shown in FIG. 3 will be described in detail with reference to FIGS. 4 to 8.

도 4는 도 3의 S310 단계를 설명하기 위한 흐름도로서, 비정형 XFS 파일 시스템의 슈퍼블록 탐색에 대한 흐름도이다. FIG. 4 is a flowchart for explaining step S310 of FIG. 3, and is a flowchart for searching a superblock of an unstructured XFS file system.

슈퍼블록 탐색부(210)는 비정형 XFS 파일 시스템의 마스터 부트 레코드(Master Boot Recorder, 이하에서는 "MBR"이라고 함)을 분석한다(S311).The superblock search unit 210 analyzes the master boot record (“MBR” hereinafter) of the unstructured XFS file system (S311).

MBR은 LBA0에 대응되며, 부팅을 위한 시작정보를 의미한다. 즉, MBR은 하드디스크의 맨 앞에 기록되어 있는 기동용 영역으로서, PC에 전원을 인가하면 먼저 첫 번째 하드디스크의 MBR에 기록되어 있는 프로그램이 읽히게 된다. 이렇게 읽힌 MBR의 프로그램은 분할표(partition table)의 정보를 기점으로 기동하는 분할(partition)의 부트 섹터(boot sector: 분할의 맨 앞에 있는 OS 기동 프로그램이 기록된 부분)를 독출하게 되며, 독출된 해당 섹터의 프로그램에 의해서 OS가 기동된다. MBR corresponds to LBA0 and means start information for booting. That is, the MBR is a start-up area recorded at the front of the hard disk, and when power is applied to the PC, the program recorded in the MBR of the first hard disk is read. The MBR program read in this way reads the boot sector of the partition starting from the information in the partition table (the part where the OS startup program at the beginning of the partition is recorded), and the read The OS is started by the program of the sector.

그리고, 슈퍼블록 탐색부(210)는 비정형 XFS 파일 시스템의 MBR 영역에 XFS 시그니처 존재 유무를 확인한다(S312). Then, the superblock search unit 210 checks whether the XFS signature exists in the MBR area of the unstructured XFS file system (S312).

만일 MBR 영역에 XFS 시그니처가 존재하는 경우, 슈퍼블록 탐색부(210)는 해당 비정형 XFS 파일 시스템은 전체 하드 디스크 영역을 단일 파티션을 사용하는 비정형 XFS 파일 시스템이라고 판단하여, 슈퍼블록 탐색을 종료한다(S313). If an XFS signature exists in the MBR area, the superblock search unit 210 determines that the unstructured XFS file system is an unstructured XFS file system using a single partition for the entire hard disk area, and ends the superblock search ( S313).

그러나 MBR 영역 내에 XFS 시그니처가 존재하지 않는 경우, 슈퍼블록 탐색부(210)는 MBR 파티션 정보를 분석하여 파티션 개수를 확인한다(S314). However, if the XFS signature does not exist in the MBR area, the superblock search unit 210 analyzes the MBR partition information to check the number of partitions (S314).

즉, MBR 영역 내에 XFS 시그니처가 존재하지 않는 경우에는 슈퍼블록 탐색부(210)는 하드디스크가 복수의 파티션으로 분할된 것으로 판단하여, MBR 파티션 정보로부터 파티션 개수를 확인한다That is, if the XFS signature does not exist in the MBR area, the superblock search unit 210 determines that the hard disk is divided into a plurality of partitions, and checks the number of partitions from the MBR partition information.

예를 들어, 전체 영역을 단일 또는 n 개의 파티션으로 분할하여 사용하는 경우, MBR과 XFS 파일 시스템을 결합하여 사용하는 경우, GPT(GUID Partition Table)와 XFS 파일 시스템을 결합하여 사용하는 경우, MBR과 GPT와 XFS 파일 시스템을 결합하여 사용하는 경우가 발생할 수 있기 때문에, 슈퍼블록 탐색부(210)는 MBR 파티션 정보를 분석하여 파티션 개수를 확인한다. For example, when the entire area is divided into single or n partitions, the MBR and the XFS file system are used in combination, the GUID Partition Table (GPT) and the XFS file system are used in combination, the MBR and Since the GPT and the XFS file system may be used in combination, the superblock search unit 210 analyzes the MBR partition information to check the number of partitions.

다음으로, 슈퍼블록 탐색부(210)는 복수의 파티션 각각에 대하여 순차적으로 스캔 과정을 통하여 XFS 시그니처를 탐색한다(S315). Next, the superblock search unit 210 searches for an XFS signature through a sequential scan process for each of the plurality of partitions (S315).

만일 확인된 파티션의 개수가 n인 경우, 슈퍼블록 탐색부(210)는 0번째 파티션의 시작 위치로 이동한 후 XFS 시그니처의 존재 유무를 확인한다. 만일 시작 위치에 XFS 시그니처가 존재하지 않는다면 섹터를 증가시키면서 XFS 시그니처를 탐색하는 순차 탐색을 통해 XFS 시그너처를 확인한다. If the number of the identified partitions is n, the superblock search unit 210 moves to the start position of the 0 th partition and then checks whether the XFS signature exists. If the XFS signature does not exist at the start position, the XFS signature is checked through sequential search that searches for the XFS signature while increasing the sector.

이와 같은 스캔 과정을 통하여 XFS 시그니처가 확인되면, 슈퍼블록 탐색부(210)는 다음 파티션 위치로 이동하고 동일한 탐색 과정을 반복한다. When the XFS signature is confirmed through such a scan process, the superblock search unit 210 moves to the next partition location and repeats the same search process.

이와 같이, n개의 파티션에 대해 슈퍼블록의 위치가 모두 확인되면, 슈퍼블록 탐색부(210)는 S313 단계로 이동하여 슈퍼블록 탐색을 종료하게 된다. In this way, when all the positions of the superblocks for n partitions are confirmed, the superblock search unit 210 moves to step S313 to end the superblock search.

도 5는 도 3의 S320 단계를 설명하기 위한 흐름도로서, 할당 영역의 정보 분석 및 파일 추출에 대한 흐름도이다.5 is a flowchart for explaining step S320 of FIG. 3, which is a flowchart for analyzing information on an allocated area and extracting a file.

먼저, 정보 분석 및 파일 추출부(220)는 할당 영역의 루트노드(root node) 데이터와 아이노드(inode) 데이터를 분석한 후(S321), 파일 리스트를 생성한다(S322). First, the information analysis and file extraction unit 220 analyzes the root node data and inode data of the allocated area (S321), and then generates a file list (S322).

여기서, 루트노드(root node)는 계층구조 트리에서 부모 노드가 존재하지 않는 최상위 노드를 의미하며, 아이노드(inode)는 UFS와 같은 전통적인 유닉스 계통 파일 시스템에서 사용하는 자료구조로서, 정규 파일, 디렉터리 등 파일 시스템에 관한 정보를 가지고 있다.Here, the root node means the top node in the hierarchical tree that does not have a parent node, and the inode is a data structure used in a traditional Unix-like file system such as UFS. Etc. Contains information about the file system.

파일들은 각각 1개의 아이노드를 가지고 있으며, 아이노드는 소유자 그룹, 접근 모드(읽기, 쓰기, 실행 권한), 파일 형태, 아이노드 숫자(inode number, i-number, 아이넘버) 등 해당 파일에 관한 정보를 가지고 있다. 따라서, 파일시스템 내의 파일들은 고유한 아이노드 숫자를 통해 식별 가능하다.Each file has one inode, and the inode has an owner group, access mode (read, write, execute permission), file type, and inode number (inode number, i-number, i-number), etc. I have information. Therefore, files in the file system can be identified through a unique inode number.

다음으로, 사용자로부터 추출하고자 하는 파일이 선택되면(S323), 정보 분석 및 파일 추출부(220)는 선택된 파일의 아이노드(inode) 정보를 분석하여(S324), 해당 위치에 저장되어 있는 파일 데이터를 추출한다(S325). Next, when a file to be extracted from the user is selected (S323), the information analysis and file extraction unit 220 analyzes the inode information of the selected file (S324), and the file data stored in the corresponding location Is extracted (S325).

도 6은 도 3의 S330 단계를 설명하기 위한 흐름도로서, 비할당 영역의 정보 분석 및 파일 추출에 대한 흐름도이고, 도 7은 비할당 영역이 불연속적으로 할당되어 있는 것을 나타낸 예시도이다. 6 is a flowchart for explaining step S330 of FIG. 3, a flowchart illustrating information analysis and file extraction of a non-allocated area, and FIG. 7 is an exemplary diagram showing that non-allocated areas are discontinuously allocated.

먼저, 정보 분석 및 파일 추출부(220)는 비할당 영역에 대한 B tree 데이터를 분석한다(S331). First, the information analysis and file extraction unit 220 analyzes B tree data for an unallocated area (S331).

여기서, B tree 데이터는 다방향 탐색 트리로서, 대용량의 파일을 효율적으로 검색하고 갱신하기 위해 고안된 트리 형태의 자료 구조이나 테이블 정보를 의미한다. Here, the B tree data is a multi-directional search tree, meaning a tree-type data structure or table information designed to efficiently search and update large files.

다음으로, 정보 분석 및 파일 추출부(220)는 불연속적으로 저장된 비할당 영역의 n번째 파일의 마지막 프레임의 생성시간과 n+1 번째 파일의 첫번째 프레임의 생성시간의 시간차이를 임계값과 비교한다(S332).Next, the information analysis and file extraction unit 220 compares the time difference between the generation time of the last frame of the nth file of the non-allocated area stored discontinuously and the generation time of the first frame of the n+1th file with the threshold value. Do (S332).

즉, 도 7과 같이 비할당 영역에 동영상 파일이 분할되어 불연속적으로 할당 저장되는 경우가 많다. 따라서, 연속적으로 촬영된 CCTV 영상의 경우에는 비할당 영역에 저장되어 있다고 하더라도 단일 파일로 추출하는 것이 바람직하고, 불연속적으로 촬영된 CCTV 영상의 경우에는 다중 파일로 추출하는 것이 데이터 관리상 바람직하다. That is, as shown in FIG. 7, there are many cases where a moving picture file is divided into an unallocated area and discontinuously allocated and stored. Therefore, in the case of continuously photographed CCTV images, even if they are stored in an unallocated area, it is preferable to extract them as a single file, and in the case of discontinuously photographed CCTV images, it is preferable for data management to extract them as multiple files.

따라서, 정보 분석 및 파일 추출부(220)는 비할당 영역의 n번째 파일의 마지막 프레임의 생성시간과 n+1 번째 파일의 첫번째 프레임의 생성시간을 B tree 데이터를 통해 확인하고, 시간차이가 기설정된 임계값보다 작으면, 연속적으로 촬영된 CCTV 영상으로 판단한다. 그러면 정보 분석 및 파일 추출부(220)는 도 7과 같이 비할당 영역에 대한 연결 정보를 생성한 후(S333), 연결 정보에 따라 데이터를 단일 파일 형태로 추출한다(S334). Therefore, the information analysis and file extraction unit 220 checks the generation time of the last frame of the nth file of the unallocated area and the generation time of the first frame of the n+1th file through B tree data, and the time difference is If it is less than the set threshold, it is determined as a CCTV image continuously photographed. Then, the information analysis and file extraction unit 220 generates connection information for the unallocated area as shown in FIG. 7 (S333), and then extracts data in the form of a single file according to the connection information (S334).

그리고, 비할당 영역의 n번째 파일의 마지막 프레임의 생성시간과 n+1 번째 파일의 첫번째 프레임의 생성시간의 시간차이가 기설정된 임계값 이상이면, 불연속적으로 촬영된 CCTV 영상으로 판단하여, 비할당 영역에 대한 불연속 영역 리스트를 생성한 후(S335), 비할당 영역 각각에 대하여 불연속 영역별 파일을 생성한다(S336). And, if the time difference between the generation time of the last frame of the nth file of the unallocated area and the generation time of the first frame of the n+1th file is greater than or equal to a preset threshold, it is determined as a discontinuously photographed CCTV image. After generating a list of discontinuous regions for the allocated regions (S335), a file for each discontinuous region is generated for each non-allocated region (S336).

그리고, 정보 분석 및 파일 추출부(220)는 해당 영역에서 데이터를 추출하여 다중 파일 형태로 데이터를 저장한다(S337). In addition, the information analysis and file extraction unit 220 extracts data from a corresponding region and stores the data in the form of multiple files (S337).

이와 같이 본 발명의 실시예에 따르면, 정보 분석 및 파일 추출부(220)는 불연속적으로 위치한 비할당 영역의 데이터를 단일 파일로 추출할 것인지 개별 파일로 추출할 것인지를 결정하여 파일을 생성하고 추출된 데이터를 저장한다. As described above, according to an embodiment of the present invention, the information analysis and file extraction unit 220 determines whether to extract data of a non-allocated area located discontinuously as a single file or as an individual file to generate and extract a file. Stored data.

도 8는 도 3의 S340 단계를 설명하기 위한 흐름도로서, 비할당 영역의 영상 데이터 추출에 대한 흐름도이다.FIG. 8 is a flowchart for explaining step S340 of FIG. 3, and is a flowchart for extracting image data of an unallocated area.

할당 영역의 경우 추출된 CCTV 영상 데이터는 CCTV 제조사에 제공하는 전용 프로그램을 이용하여 영상 재생이 가능하기 때문에 별도로 영상 데이터를 추출하지 않아도 되지만 비할당 영역에서 추출된 데이터의 경우 CCTV 제조사에서 제공하는 전용 프로그램으로는 재생이 되지 않기 때문에 별도의 영상 데이터 추출 작업이 필요하다. In the case of the allocated area, the extracted CCTV image data can be reproduced using a dedicated program provided to the CCTV manufacturer, so it is not necessary to separately extract the image data, but in the case of data extracted from the unallocated area, a dedicated program provided by the CCTV manufacturer Since it cannot be played back, a separate image data extraction operation is required.

비할당 영역에서 영상 데이터를 추출하기 위해 영상 데이터 추출부(230)는 먼저 비할당 영역에서 추출된 파일에 대해 리스트를 생성한다(S341). In order to extract image data from the unallocated area, the image data extracting unit 230 first generates a list of files extracted from the unallocated area (S341).

즉, 영상 데이터 추출부(230)는 S330 단계에서 추출된 비할당 영역에 대한 단일 파일 또는 다중 파일에 대하여 파일 리스트를 생성한다. That is, the image data extracting unit 230 generates a file list for a single file or multiple files for the unallocated area extracted in step S330.

그리고, 영상 데이터 추출부(230)는 생성된 리스트의 순서대로 파일 데이터를 분석하여 파일 안에 영상 프레임 정보가 있는지 확인하고(S342), 영상 데이터 추출 가능 여부를 판단한다(S343). Then, the image data extraction unit 230 analyzes the file data in the order of the generated list, checks whether there is image frame information in the file (S342), and determines whether image data can be extracted (S343).

즉, 영상 데이터 추출부(230)는 추출된 비할당 파일의 데이터를 확인하며, 파일 데이터 안에 정상적인 영상 프레임 정보가 있는지 확인한다. 비할당 파일에서 영상 프레임의 구조가 1개라도 존재한다면, 해당 파일에서 데이터를 획득할 수 있으므로 S344 단계로 이동한다.That is, the image data extraction unit 230 checks the data of the extracted unallocated file, and checks whether there is normal image frame information in the file data. If there is even one image frame structure in the unallocated file, since data can be obtained from the file, the process moves to step S344.

판단결과, 영상 데이터 추출이 불가능한 경우 또는 영상 데이터가 없는 경우 영상 데이터 추출부(230)는 영상 데이터 추출 작업을 종료하고 다음 파일에 대하여 작업을 진행한다. As a result of the determination, when it is impossible to extract image data or if there is no image data, the image data extraction unit 230 ends the image data extraction operation and proceeds with the next file.

만일, 영상 데이터 추출이 가능한 경우 영상 데이터 추출부(230)는 영상 프레임 서치를 진행하여(S344), 영상 프레임을 기준 영상 정보인 I 프레임과 변화 영상 정보인 P 프레임으로 리스트 업하고(S345), 각 프레임들의 연결 정보를 분석한다(S346). If it is possible to extract the image data, the image data extraction unit 230 performs an image frame search (S344), and lists the image frames into an I frame as reference image information and a P frame as change image information (S345), The connection information of each frame is analyzed (S346).

영상 데이터 추출부(230)는 프레임 간 연결 정보의 분석을 통해 영상 프레임의 연결이 가능한지를 판단한다(S347). The image data extracting unit 230 determines whether connection of image frames is possible through analysis of connection information between frames (S347).

영상 프레임은 CCTV 녹화기에서 생성해서 추가한 메타데이터 정보와 영상 데이터로 구성되어 있으며, 메타데이터 정보에는 영상데이터의 속성(I/P 프레임)과 영상의 시간 정보 및 영상 순서 등에 대한 정보가 포함되어 있다. The video frame is composed of metadata information and video data added by a CCTV recorder, and the metadata information includes information on the properties of the video data (I/P frames), time information and video sequence of the video. .

따라서, 영상 데이터 추출부(230)는 영상데이터의 속성 정보와 시간 및 영상의 순서에 대한 정보를 이용하여 영상데이터의 결합 가능 여부를 판단한다.Accordingly, the image data extracting unit 230 determines whether the image data can be combined using the attribute information of the image data and information about the time and the order of the images.

판단 결과, 영상 프레임 연결이 가능한 경우 영상 데이터 추출부(230)는 영상 프레임을 재구성하여 동영상 파일로 추출하고(S348), 영상 프레임 연결이 불가능한 경우 영상 데이터 추출부(230)는 영상 프레임 중 기준 영상 정보인 I 프레임만을 추출한 후 개별 이미지 파일로 추출한다(S349). As a result of the determination, if the image frame connection is possible, the image data extracting unit 230 reconstructs the image frame and extracts it as a moving image file (S348). If the image frame connection is impossible, the image data extracting unit 230 performs a reference image among the image frames. After extracting only the information I frame, it is extracted as an individual image file (S349).

이와 같이 본 발명의 실시예에 따르면, 비정형 XFS 파일 시스템을 사용하는 CCTV 영상 녹화기에서 XFS 파일 시스템의 슈퍼 블록과 얼로케이션 그룹 데이터를 탐색하여 분석하는 방법을 이용함으로써, 특히 비할당 영역에 저장되어 있는 CCTV 영상 데이터를 찾아 추출할 수 있다. As described above, according to an embodiment of the present invention, a CCTV video recorder using an unstructured XFS file system searches for and analyzes the superblock and alignment group data of the XFS file system. You can find and extract CCTV video data.

또한 본 발명의 실시예에 따르면, 단일의 XFS 파티션에서뿐만 아니라 MBR, GPT와 혼합된 XFS 파티션에서도 슈퍼블록을 탐색하여 할당영역과 비할당 영역을 구분하고 각각의 영역에 저장되어 있는 영상 데이터를 추출할 수 있다.In addition, according to an embodiment of the present invention, a superblock is searched not only in a single XFS partition, but also in an XFS partition mixed with MBR and GPT to distinguish an allocated area and an unallocated area, and to extract image data stored in each area. I can.

또한, 본 발명의 실시예에 따르면, MBR, GPT 기반으로 구성된 XFS 시스템에서 보다 효과적으로 슈퍼블록의 위치 정보를 파악하는 것이 가능하다. 또한 얼로케이션 그룹 데이터 분석 알고리즘을 이용하여 비할당 영역에 저장된 데이터 추출 시 개별 영역 또는 전체 영역으로 데이터를 분리하여 추출하는 것이 가능하다. In addition, according to an embodiment of the present invention, it is possible to more effectively identify the location information of the superblock in an XFS system configured based on MBR and GPT. In addition, when data stored in an unallocated area is extracted using an allocation group data analysis algorithm, it is possible to separate and extract data into individual areas or entire areas.

본 발명은 도면에 도시된 실시예를 참고로 하여 설명되었으나 이는 예시적인 것에 불과하며, 당해 기술이 속하는 분야에서 통상의 지식을 가진 자라면 이로부터 다양한 변형 및 균등한 타 실시예가 가능하다는 점을 이해할 것이다. 따라서 본 발명의 진정한 기술적 보호범위는 아래의 특허청구범위의 기술적 사상에 의하여 정해져야 할 것이다.The present invention has been described with reference to the embodiments shown in the drawings, but these are only exemplary, and those of ordinary skill in the art will understand that various modifications and equivalent other embodiments are possible therefrom. will be. Therefore, the true technical protection scope of the present invention should be determined by the technical idea of the following claims.

200 : CCTV 영상 데이터 추출 장치 210 : 슈퍼블록 탐색부
220 : 정보 분석 및 파일 추출부 230 : 영상 데이터 추출부
200: CCTV image data extraction device 210: Super block search unit
220: information analysis and file extraction unit 230: image data extraction unit

Claims (10)

비정형 XFS 파일 시스템 기반의 CCTV 영상 데이터 추출 장치에 있어서,
얼로케이션 그룹에 포함된 슈퍼블록을 탐색하여 XFS 시그니처가 저장되어 있는 위치를 검출하는 슈퍼블록 탐색부,
비정형 XFS 파일 시스템의 할당 영역 및 비할당 영역 각각에 대하여 정보를 분석하고 파일을 추출하는 정보 분석 및 파일 추출부, 그리고
추출된 비할당 영역에 저장된 데이터로부터 CCTV 영상 데이터를 추출하는 영상 데이터 추출부를 포함하며,
상기 슈퍼블록 탐색부는,
비정형 XFS 파일 시스템의 MBR 영역을 분석하여 MBR 영역에 XFS 시그니처가 존재하는지 판단하고,
MBR 영역에 XFS 시그니처가 존재하면 전체 영역을 단일 파티션으로 이루어지는 것으로 판단하여 슈퍼블록 탐색을 종료하고,
MBR 영역 내에 XFS 시그니처가 존재하지 않는 경우에는 복수의 파티션으로 분할된 것으로 판단하여, MBR 파티션 정보로부터 파티션 개수를 확인하고, 복수의 파티션 각각에 대하여 순차적으로 XFS 시그니처를 탐색하는 CCTV 영상 데이터 추출 장치.
In the CCTV image data extraction device based on the unstructured XFS file system,
A superblock search unit that searches for a superblock included in the allocation group and detects the location where the XFS signature is stored,
An information analysis and file extraction unit that analyzes information and extracts files for each of the allocated and unallocated areas of the unstructured XFS file system, and
It includes an image data extracting unit for extracting CCTV image data from the data stored in the extracted unallocated area,
The superblock search unit,
Analyze the MBR area of the unstructured XFS file system to determine whether an XFS signature exists in the MBR area,
If there is an XFS signature in the MBR area, it is determined that the entire area is composed of a single partition, and the superblock search is terminated.
CCTV image data extraction device that determines that the XFS signature does not exist in the MBR area, determines that it has been divided into a plurality of partitions, checks the number of partitions from the MBR partition information, and sequentially searches for the XFS signature for each of the plurality of partitions.
삭제delete 제1항에 있어서,
상기 정보 분석 및 파일 추출부는,
할당 영역의 루트노드(root node) 데이터와 아이노드(inode) 데이터를 분석하여 파일 리스트를 생성하고, 추출하고자 하는 파일이 선택되면 선택된 파일의 아이노드 정보를 분석하여 해당 위치에 저장되어 있는 파일 데이터를 추출하는 CCTV 영상 데이터 추출 장치.
The method of claim 1,
The information analysis and file extraction unit,
The file list is created by analyzing the root node data and inode data of the allocated area, and when the file to be extracted is selected, the inode information of the selected file is analyzed and the file data stored in the corresponding location CCTV image data extraction device to extract.
제1항에 있어서,
상기 정보 분석 및 파일 추출부는,
비할당 영역에 대한 B tree 데이터를 분석하고,
불연속적으로 저장된 비할당 영역의 n번째 파일의 마지막 프레임의 생성시간과 n+1 번째 파일의 첫번째 프레임의 생성시간의 시간차이를 임계값과 비교하고,
시간차이가 기설정된 임계값보다 작으면 비할당 영역에 대한 연결 정보를 생성한 후, 연결 정보에 따라 데이터를 단일 파일 형태로 추출하며,
시간차이가 기설정된 임계값 이상이면 비할당 영역 각각에 대하여 다중 파일 형태로 추출하는 CCTV 영상 데이터 추출 장치.
The method of claim 1,
The information analysis and file extraction unit,
Analyze the B tree data for the unallocated area,
Compare the time difference between the creation time of the last frame of the nth file of the non-allocated area stored discontinuously and the creation time of the first frame of the n+1th file with the threshold value,
If the time difference is less than a preset threshold, connection information for the unallocated area is generated, and then data is extracted in the form of a single file according to the connection information.
A CCTV video data extraction device that extracts multiple files for each unallocated area when the time difference is greater than or equal to a preset threshold.
제4항에 있어서,
상기 영상 데이터 추출부는,
비할당 영역에 대한 단일 파일 또는 다중 파일에 대하여 파일 리스트를 생성하고, 생성된 리스트의 순서대로 파일 데이터를 분석하여 영상 데이터 추출 가능 여부를 판단하고,
영상 데이터 추출이 가능한 경우 영상 프레임을 기준 영상 정보인 I 프레임과 변화 영상 정보인 P 프레임으로 리스트 업하고,
프레임 간 연결 정보의 분석을 통해 영상 프레임의 연결이 가능한지를 판단하며,
영상 프레임 연결이 가능한 경우 영상 프레임을 재구성하여 동영상 파일로 추출하고, 영상 프레임 연결이 불가능한 경우 영상 프레임 중 기준 영상 정보인 I 프레임만을 추출한 후 개별 이미지 파일로 추출하는 CCTV 영상 데이터 추출 장치.
The method of claim 4,
The image data extraction unit,
Create a file list for a single file or multiple files for an unallocated area, analyze the file data in the order of the created list to determine whether image data can be extracted,
If video data can be extracted, list up the video frames as I frames, which are reference video information, and P frames, which are change video information,
It determines whether video frames can be connected through analysis of connection information between frames,
A CCTV video data extraction device that reconstructs an image frame when it is possible to connect it and extracts it as a video file. When it is not possible to connect an image frame, it extracts only the I frame, which is the reference image information, and then extracts it as an individual image file.
CCTV 영상 데이터 추출 장치를 이용한 비정형 XFS 파일 시스템 기반의 CCTV 영상 데이터 추출 방법에 있어서,
XFS 시그니처가 저장되어 있는 위치를 검출하기 위하여 얼로케이션 그룹에 포함된 슈퍼블록을 탐색하는 단계,
비정형 XFS 파일 시스템의 할당 영역 및 비할당 영역 각각에 대하여 정보를 분석하고 파일을 추출하는 단계, 그리고
추출된 비할당 영역에 저장된 데이터로부터 CCTV 영상 데이터를 추출하는 단계를 포함하며,
상기 슈퍼블록을 탐색하는 단계는,
비정형 XFS 파일 시스템의 MBR 영역을 분석하여 MBR 영역에 XFS 시그니처가 존재하는지 판단하는 단계,
MBR 영역에 XFS 시그니처가 존재하면 전체 영역을 단일 파티션으로 이루어지는 것으로 판단하여 슈퍼블록 탐색을 종료하는 단계, 그리고
MBR 영역 내에 XFS 시그니처가 존재하지 않는 경우에는 복수의 파티션으로 분할된 것으로 판단하여, MBR 파티션 정보로부터 파티션 개수를 확인하고, 복수의 파티션 각각에 대하여 순차적으로 XFS 시그니처를 탐색하는 단계를 포함하는 CCTV 영상 데이터 추출 방법.
In a CCTV image data extraction method based on an unstructured XFS file system using a CCTV image data extraction device,
Searching for a superblock included in the allocation group to detect the location where the XFS signature is stored,
Analyzing information and extracting files for each of the allocated and unallocated areas of the unstructured XFS file system, and
Comprising the step of extracting CCTV image data from the data stored in the extracted unallocated area,
The step of searching for the superblock,
Analyzing the MBR area of the unstructured XFS file system and determining whether an XFS signature exists in the MBR area,
If there is an XFS signature in the MBR area, it is determined that the entire area is composed of a single partition, and the superblock search is terminated, and
If the XFS signature does not exist in the MBR area, it is determined that it has been divided into a plurality of partitions, the number of partitions is checked from the MBR partition information, and a CCTV image including the step of sequentially searching the XFS signature for each of the plurality of partitions. Data extraction method.
삭제delete 제6항에 있어서,
상기 정보를 분석하고 파일을 추출하는 단계는,
할당 영역의 루트노드(root node) 데이터와 아이노드(inode) 데이터를 분석하여 파일 리스트를 생성하는 단계, 그리고
추출하고자 하는 파일이 선택되면 선택된 파일의 아이노드 정보를 분석하여 해당 위치에 저장되어 있는 파일 데이터를 추출하는 단계를 포함하는 CCTV 영상 데이터 추출 방법.
The method of claim 6,
Analyzing the information and extracting the file,
Analyzing the root node data and inode data of the allocated area to create a file list, and
When a file to be extracted is selected, a method for extracting CCTV image data comprising the step of analyzing the inode information of the selected file and extracting the file data stored in the corresponding location.
제6항에 있어서,
상기 정보를 분석하고 파일을 추출하는 단계는,
비할당 영역에 대한 B tree 데이터를 분석하는 단계,
불연속적으로 저장된 비할당 영역의 n번째 파일의 마지막 프레임의 생성시간과 n+1 번째 파일의 첫번째 프레임의 생성시간의 시간차이를 임계값과 비교하는 단계, 그리고
시간차이가 기설정된 임계값보다 작으면 비할당 영역에 대한 연결 정보를 생성한 후, 연결 정보에 따라 데이터를 단일 파일 형태로 추출하며, 시간차이가 기설정된 임계값 이상이면 비할당 영역 각각에 대하여 다중 파일 형태로 추출하는 단계를 포함하는 CCTV 영상 데이터 추출 방법.
The method of claim 6,
Analyzing the information and extracting the file,
Analyzing B tree data for unallocated areas,
Comparing the time difference between the generation time of the last frame of the nth file of the non-allocated area stored discontinuously and the generation time of the first frame of the n+1th file with a threshold value, and
If the time difference is less than the preset threshold, connection information for the unallocated area is generated, and data is extracted in the form of a single file according to the connection information. If the time difference is more than a preset threshold, each unallocated area is CCTV image data extraction method comprising the step of extracting in the form of multiple files.
제9항에 있어서,
상기 영상 데이터를 추출하는 단계는,
비할당 영역에 대한 단일 파일 또는 다중 파일에 대하여 파일 리스트를 생성하는 단계,
생성된 리스트의 순서대로 파일 데이터를 분석하여 영상 데이터 추출 가능 여부를 판단하는 단계,
영상 데이터 추출이 가능한 경우 영상 프레임을 기준 영상 정보인 I 프레임과 변화 영상 정보인 P 프레임으로 리스트 업하는 단계,
프레임 간 연결 정보의 분석을 통해 영상 프레임의 연결이 가능한지를 판단하는 단계, 그리고
영상 프레임 연결이 가능한 경우 영상 프레임을 재구성하여 동영상 파일로 추출하고, 영상 프레임 연결이 불가능한 경우 영상 프레임 중 기준 영상 정보인 I 프레임만을 추출한 후 개별 이미지 파일로 추출하는 단계를 포함하는 CCTV 영상 데이터 추출 방법.



The method of claim 9,
The step of extracting the image data,
Generating a file list for a single file or multiple files for an unallocated area,
Analyzing the file data in the order of the generated list to determine whether image data can be extracted,
If image data extraction is possible, listing the image frames into I frames as reference image information and P frames as change image information,
Determining whether video frames can be connected through analysis of connection information between frames, and
CCTV video data extraction method including the step of extracting only I-frames, which are reference video information among video frames, by reconfiguring and extracting video frames when video frame connection is possible, and extracting into individual image files when video frame connection is not possible .



KR1020180135618A 2018-11-07 2018-11-07 Method for extracting cctv image data in the unallocated area based on informal xfs file system and apparatus thereof KR102146459B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020180135618A KR102146459B1 (en) 2018-11-07 2018-11-07 Method for extracting cctv image data in the unallocated area based on informal xfs file system and apparatus thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020180135618A KR102146459B1 (en) 2018-11-07 2018-11-07 Method for extracting cctv image data in the unallocated area based on informal xfs file system and apparatus thereof

Publications (2)

Publication Number Publication Date
KR20200052561A KR20200052561A (en) 2020-05-15
KR102146459B1 true KR102146459B1 (en) 2020-08-20

Family

ID=70678739

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020180135618A KR102146459B1 (en) 2018-11-07 2018-11-07 Method for extracting cctv image data in the unallocated area based on informal xfs file system and apparatus thereof

Country Status (1)

Country Link
KR (1) KR102146459B1 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101779174B1 (en) 2016-05-26 2017-09-18 성균관대학교산학협력단 Data discard method for journaling filesystem and memory management apparatus thereof

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101779174B1 (en) 2016-05-26 2017-09-18 성균관대학교산학협력단 Data discard method for journaling filesystem and memory management apparatus thereof

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
http://www.prism.go.kr/homepage/entire/retrieveEntireDetail.do;jsessionid=54ED32153C749E0BC51F433FFBB915D5.node02?cond_research_name=&cond_research_start_date=&cond_research_end_date=&research_id=1280*
https://m.blog.naver.com/PostView.nhn?blogId=pkchan&logNo=220256360027&proxyReferer=https%3A%2F%2Fwww.google.com%2F 1부.

Also Published As

Publication number Publication date
KR20200052561A (en) 2020-05-15

Similar Documents

Publication Publication Date Title
US9286165B2 (en) Apparatus and method for recovering partition using backup boot record information
US10026446B2 (en) Intelligent playback method for video records based on a motion information and apparatus thereof
EP2891109B1 (en) A video file encryption and decryption method, device, and mobile terminal
Yeung et al. Time-constrained clustering for segmentation of video into story units
US6400890B1 (en) Image retrieving method and apparatuses therefor
US9164845B2 (en) Partition recovery method and apparatus
US9465694B2 (en) Method and apparatus for recovering partition based on file system metadata
JP2006197566A (en) Video display apparatus
US9710504B2 (en) Data processing and writing method and related apparatus
KR102146459B1 (en) Method for extracting cctv image data in the unallocated area based on informal xfs file system and apparatus thereof
CN105814561B (en) Image information processing system
US9646017B2 (en) Efficient video data deduplication
US20060098950A1 (en) Digital video recording device
US10884873B2 (en) Method and apparatus for recovery of file system using metadata and data cluster
KR101992631B1 (en) File indexing apparatus and method thereof using asynchronous method
US20150169560A1 (en) Information processing device, information processing method and storage medium for information processing program
JP3977683B2 (en) Video analysis apparatus, video analysis method, video analysis program, and video analysis program recording medium
JP5762014B2 (en) REPRODUCTION DEVICE AND REPRODUCTION DEVICE CONTROL METHOD
US9456191B2 (en) Reproduction apparatus and reproduction method
US8051042B2 (en) Apparatus and method for managing data
KR101373849B1 (en) System and method of managing video
JP5573744B2 (en) List generating apparatus and program thereof
KR101324779B1 (en) Automatic file sorting method
JP4547998B2 (en) Recording information management apparatus and program
US20100131576A1 (en) Information reproduction method and information reproduction apparatus

Legal Events

Date Code Title Description
E701 Decision to grant or registration of patent right
GRNT Written decision to grant