KR20090041478A - Method of editing media file - Google Patents

Method of editing media file Download PDF

Info

Publication number
KR20090041478A
KR20090041478A KR1020070106995A KR20070106995A KR20090041478A KR 20090041478 A KR20090041478 A KR 20090041478A KR 1020070106995 A KR1020070106995 A KR 1020070106995A KR 20070106995 A KR20070106995 A KR 20070106995A KR 20090041478 A KR20090041478 A KR 20090041478A
Authority
KR
South Korea
Prior art keywords
media file
editing
block
inode
edited
Prior art date
Application number
KR1020070106995A
Other languages
Korean (ko)
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 KR1020070106995A priority Critical patent/KR20090041478A/en
Publication of KR20090041478A publication Critical patent/KR20090041478A/en

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B27/00Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
    • G11B27/02Editing, e.g. varying the order of information signals recorded on, or reproduced from, record carriers
    • G11B27/031Electronic editing of digitised analogue information signals, e.g. audio or video signals
    • G11B27/034Electronic editing of digitised analogue information signals, e.g. audio or video signals on discs
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B2020/10898Overwriting or replacing recorded data
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B2220/00Record carriers by type
    • G11B2220/20Disc-shaped record carriers
    • G11B2220/25Disc-shaped record carriers characterised in that the disc is based on a specific recording technology
    • G11B2220/2508Magnetic discs
    • G11B2220/2516Hard disks

Abstract

A media file editing method is provided to reduce time to edit by resetting and editing only the block bitmap and i-node of original files without deletion and copy procedure of the original media file. A media file editing method comprises: a step(S200) in which an editing section for editing an original media file is input from outside; a step(S220) producing i-node of the editing media file; a step(S230) initializing block bitmap value, corresponding to the original copy media file, into 0; a step(S240) extracting physical address values of the initial point and end point of the editing section; a step(S250) producing the block entry map of the i-node of the editing media file; a step(S260) resetting the block bitmap; and a step(S270) rewriting the i-node of the editing media file in the section in which the i-node of the original copy media file is stored.

Description

미디어 파일 편집 방법{Method of editing media file}{Method of editing media file}

본 발명은 미디어 파일의 편집 방법에 관한 것으로, 상세하게는 리눅스 환경에서 대용량 멀티 미디어 파일을 고속으로 편집할 수 있는 미디어 파일 편집 방법에 관한 것이다.The present invention relates to a method for editing a media file, and more particularly, to a method for editing a media file that can edit a large amount of multimedia files at high speed in a Linux environment.

디지털 기술의 발전과 디지털 캠코더와 같은 장비의 대중화로 인하여, 오늘날 누구나 쉽게 영상물을 촬영하고 디지털화 하여 저장할 수 있다. 특히 이런 장비들은 고화질의 미디어 컨텐츠를 제공하는데, 이는 대용량을 갖는 파일의 형태로 저장된다. 영상 촬영 후 이런 대용량 파일에서, 필요한 부분만을 편집하여 저장하는 것이 미디어 컨텐츠를 만드는 일반적인 과정이라고 볼 수 있다. 또한, 영상 촬영을 하지 않아도 원본 미디어 컨텐츠에서 필요한 부분만을 편집, 저장하여 디지털 미디어 컨텐츠를 만들 수도 있다. 따라서, 개인적으로 또는 방송이나 홍보를 위한 사업적으로, 대용량 미디어 파일 편집기술은 디지털 컨텐츠의 보관 및 유통과 관련 필수적이라고 할 수 있다. With the development of digital technology and the popularization of equipment such as digital camcorders, today, anyone can easily shoot, digitize and store images. In particular, these devices provide high-definition media content, which is stored in the form of large files. After capturing video, editing and storing only the necessary parts in such a large file is a general process of creating media content. In addition, digital media content may be created by editing and storing only necessary portions of the original media content without taking an image. Therefore, large-scale media file editing technology can be said to be essential for the storage and distribution of digital content, either personally or for business purposes for broadcasting or promotion.

특히, 영상 화질과 관련해서 같은 내용을 촬영했더라도 고화질일수록 미디어 파일의 용량은 커지게 된다. 최근 Full HD(high definition)급 고화질의 미디어 파 일의 시청이 가능한 TV 및 미디어 플레이어가 보급되면서, Full HD급의 대용량 컨텐츠가 점차 활발히 유통되고 있다. 미디어 파일의 용량이 커질수록 이를 편집하는데 더 많은 시간이 걸린다. 따라서, 대용량 미디어 파일의 효과적인 편집기술이 필요하게 된다.In particular, even if the same contents are taken in relation to the image quality, the higher the quality, the larger the size of the media file. Recently, with the spread of TVs and media players capable of viewing Full HD (high definition) high definition media files, full HD contents are being actively distributed. The larger the media file, the longer it takes to edit it. Thus, there is a need for an effective editing technique for large media files.

도 1은 종래의 기술에 따른 미디어 파일의 편집방법을 순차적으로 설명하는 흐름도이다. 도 1을 참조하면 원본 미디어 파일의 편집하고자 하는 시작 지점과 종료 지점을 설정한다(단계 100). 설정 후에, 시작 지점부터 종료 지점까지 해당되는 파일을 복사한다(단계 110). 이렇게 복사한 파일을 원본 미디어 파일과 다른 영역에 저장(단계 120) 후에, 원본 미디어 파일을 삭제한다(단계 130). 1 is a flowchart sequentially illustrating a method of editing a media file according to the prior art. Referring to FIG. 1, a starting point and an ending point of an original media file to be edited are set (step 100). After setting, the corresponding file is copied from the start point to the end point (step 110). After storing the copied file in a different area from the original media file (step 120), the original media file is deleted (step 130).

상기와 같은 종래의 기술에 따른 편집방법은, 먼저 편집을 위한 미디어 파일을 생성해야 한다. 그 후, 원본 미디어 파일의 편집하고자 하는 부분을 그대로 복사하여 이를 저장하게 된다. 파일을 복사하는 것은 데이터를 읽고 쓰는 과정을 수반하게 된다. 그런데 이러한 편집 미디어 파일의 생성과 복사를 위해 데이터를 읽고 쓰는 과정이 상당한 시간이 요구되며, 편집 미디어 파일의 저장이 완료된 후 원본 미디어 파일을 삭제하는데 시간이 소요되는 문제가 있다.In the conventional editing method as described above, a media file for editing must first be generated. After that, the part of the original media file to be edited is copied and stored as it is. Copying a file involves reading and writing data. However, the process of reading and writing data for creating and copying such an edited media file requires a considerable time, and it takes a long time to delete the original media file after the storage of the edited media file is completed.

전술한 문제점을 해결하기 위한 본 발명의 목적은 원본 미디어 파일을 복사하거나 삭제하는 과정 없이, 파일의 데이터 블록 정보만을 재설정함으로써, 대용량 미디어 파일을 고속으로 편집할 수 있는 방법을 제공하는 것이다. SUMMARY OF THE INVENTION An object of the present invention for solving the above problems is to provide a method for rapidly editing a large media file by resetting only the data block information of the file, without copying or deleting the original media file.

전술한 기술적 과제를 달성하기 위한 본 발명의 특징은 미디어 파일을 고속으로 편집하는 방법에 관한 것으로서, 상기 미디어 파일 편집 방법은,A feature of the present invention for achieving the above-described technical problem relates to a method for editing a media file at high speed, the media file editing method,

(a) 원본 미디어 파일의 편집하고자 하는 편집구간을 외부로부터 입력받는 단계,(a) receiving an editing section to be edited from an external media file from an external source,

(b) 편집하여 새로이 생성할 편집 미디어 파일에 대한 아이노드를 생성하는 단계,(b) creating an inode for editing media files to be created by editing;

(c) 원본 미디어 파일에 해당하는 블록비트맵 값을 '0'으로 초기화하는 단계,(c) initializing the block bitmap value corresponding to the original media file to '0',

(d) 원본 미디어 파일의 아이노드를 참조하여 편집구간의 시작지점과 종료지점에 대한 물리적 주소값들을 추출하는 단계,(d) extracting the physical address values of the start point and the end point of the editing section by referring to the inode of the original media file,

(e) 상기 추출된 물리적 주소값들을 참조하여 편집 미디어 파일의 아이노드의 블록엔트리맵을 생성하는 단계,(e) generating a block entry map of the inode of the edited media file with reference to the extracted physical address values;

(f) 상기 편집 미디어 파일의 아이노드의 블록엔트리맵을 참조하여 상기 블 록비트맵을 재설정하는 단계,(f) resetting the block bitmap with reference to the block entry map of the inode of the edited media file;

(g) 상기 원본 미디어 파일의 아이노드가 저장되어 있는 곳에, 편집 미디어 파일의 아이노드를 덮어쓰기 하는 단계,(g) overwriting the inode of the edit media file where the inode of the original media file is stored;

를 구비하여, 원본 미디어 파일의 복사 및 삭제과정 없이 편집 미디어 파일을 생성하여 미디어 파일을 편집하게 된다.With the above, the media file is edited by creating an edit media file without copying and deleting the original media file.

본 발명에 따른 미디어 파일 편집 방법은, 원본 미디어 파일의 복사 및 삭제과정 없이, 원본 파일의 블록비트맵 및 아이노드 만을 재설정하여 편집함으로써, 편집에 걸리는 시간이 단축되는 효과를 얻을 수 있다. In the media file editing method according to the present invention, the time required for editing can be shortened by resetting and editing only the block bitmap and inode of the original file without copying and deleting the original media file.

또한, 본 발명에 따른 편집 방법은 편집 미디어 파일을 저장할 별도의 공간이 필요 없으므로, 디스크의 저장 용량을 효과적으로 확보할 수 있다.In addition, the editing method according to the present invention does not require a separate space for storing the edit media file, it is possible to effectively secure the storage capacity of the disk.

이하, 첨부된 도면을 참조하여 본 발명의 바람직한 실시예에 따른 미디어 파일의 편집 방법을 구체적으로 설명한다. 특히 대용량 미디어 파일의 편집과 관련해서, 고화질의 동영상 파일이 여기에 해당된다고 볼 것이다.Hereinafter, a method of editing a media file according to an exemplary embodiment of the present invention will be described in detail with reference to the accompanying drawings. Especially with regard to the editing of large media files, high-quality video files are considered to be the case here.

본 발명에 있어 미디어 파일이란, 컴퓨터나 각종 미디어 플레이로 동작시킬 수 있는, 사진과 같은 이미지 파일, 음악과 같은 오디오 파일, 비디오와 같은 동영상 파일 등을 의미한다. 편집 미디어 파일이란, 원본 미디어 파일로부터 편집되어 새로이 저장되는 파일을 의미한다.In the present invention, a media file means an image file such as a picture, an audio file such as music, a video file such as a video, etc., which can be operated by a computer or various media play. The edited media file means a file that is edited from the original media file and newly stored.

도 2는 본 발명의 바람직한 실시예에 따른 미디어 파일의 편집방법을 설명하 는 흐름도이다. 먼저 편집자로부터 원본 미디어 파일의 편집하고자 하는 편집구간을 외부로부터 입력받는다.(단계 200). 이하 도 3을 참조하여 상기 편집구간의 시작지점과 종료지점을 설정하는 것을 예시적으로 설명한다. 도 3을 참조하면, 8.3G byte 크기의 원본 미디어 파일의 구조가 예시적으로 도시되어 있고, 편집 미디어 파일을 위한 시작지점 'a' 와 종료지점 'b' 가 예시적으로 도시되어 있다. 상기 편집구간은 편집자의 의도에 따라 저장구간이나 삭제구간으로 설정할 수 있다. 도 3에서는 'a' 지점부터 'b'지점 까지의 구간을 삭제구간으로 설정하였다. 따라서, '저장구간1'은 원본 미디어 파일의 0 byte ~ 2,968,843,264 byte 까지 이고, '저장구간2' 는 5,937,682,432 byte ~ 8,906,526,720 byte 까지 이다.2 is a flowchart illustrating a method of editing a media file according to a preferred embodiment of the present invention. First, the editor receives an editing section of the original media file from the outside (step 200). Hereinafter, setting the start point and the end point of the editing section will be described with reference to FIG. 3. Referring to FIG. 3, an example of a structure of an original media file having a size of 8.3G bytes is illustrated, and a start point 'a' and an end point 'b' for an edit media file are shown as an example. The editing section may be set as a storage section or a deletion section according to the editor's intention. In FIG. 3, a section from point 'a' to point 'b' is set as an erase section. Therefore, 'storage section 1' is from 0 byte to 2,968,843,264 bytes of the original media file, and 'storage section 2' is from 5,937,682,432 bytes to 8,906,526,720 bytes.

상기 200 단계의 설정 후에 원본 미디어 파일의 아이노드(inode)를 관리하기 위한 핸들값을 할당받는다(단계 210). 도 4는 리눅스 환경에서 사용되는 아이노드의 구조를 도시한 그림이다. 리눅스 환경의 파일에 있어서, 아이노드는 파일의 모드상태, 사용자 정보, 용량, 데이터 블록의 정보 등과 같은 파일에 대한 모든 정보를 담고 있는 자료 구조를 말한다. 모든 파일에는 그 파일의 정보를 담고 있는 아이노드가 존재하게 된다. 핸들값은 디스크내에서, 운영체제의 관리를 위해 할당받는 프로그램 관리번호이다. 본 발명과 관련하여, 핸들값 번호를 부여하는 이유는 원본 미디어 파일에 대한 아이노드와 이후 단계에서 생성되는 편집 미디어 파일에 대한 아이노드와 구별하기 위함이다.After setting of step 200, a handle value for managing an inode of an original media file is allocated (step 210). 4 is a diagram illustrating the structure of an inode used in a Linux environment. For files in a Linux environment, an inode is a data structure that contains all the information about a file, such as the file's mode status, user information, capacity, and data block information. Every file has an inode containing the file's information. The handle value is a program management number assigned to manage the operating system in the disk. In the context of the present invention, the reason for assigning the handle value number is to distinguish between the inode for the original media file and the inode for the edit media file created in a later step.

다음, 편집하여 새로이 생성할 편집 미디어 파일에 대한 신규 아이노드를 생성하고, 생성된 신규 아이노드에 대한 핸들값을 할당받는다(단계 220).Next, a new inode is created for the edited media file to be edited and newly created, and a handle value for the generated new inode is assigned (step 220).

다음, 원본 미디어 파일에 해당하는 블록비트맵 값을 모두 '0'으로 설정하여 초기화한다(단계 230). 리눅스 환경에서는 파일의 데이터 저장방법으로 데이터 블록 구조를 사용한다. 블록비트맵은 블록의 사용 여부만을 나타낸다. 도 5는 블록비트맵을 예시적으로 도시한 도표이다. 도 5 블록비트맵에 표시된 값은 블록의 사용현황을 표시한 것이며, 블록비트맵 값이 '1'로 설정된 것은 해당 블록이 사용중이라는 것을 의미하며, '0'으로 설정된 것은 사용되지 않은 것을 의미한다.Next, all of the block bitmap values corresponding to the original media file are set to '0' and initialized (step 230). In the Linux environment, the data block structure is used to store data in files. The block bitmap only indicates whether a block is used. 5 is a diagram exemplarily illustrating a block bit map. The value displayed in the block bitmap of FIG. 5 indicates the use status of the block. The value of the block bitmap set to '1' means that the corresponding block is in use, and the value set to '0' means that it is not used. .

도 6은 본 발명의 바람직한 실시예에 따라 데이터 블록 단위의 편집 과정을 예시적으로 도시한 그림이다. 도 6의 아이노드를 살펴보면, 12개의 직접 블록 (direct block)정보와 3개의 간접 블록(indirect block)정보가 있다. 직접 블록정보에는, 직접 데이터에 대한 포인터가 기록된다. 상기 직접 블록을 모두 다 사용한 경우에 간접 블록을 사용한다. 간접(Indirect)블록정보에는, 아이노드의 외부에 할당된 블록을 지정하는 포인터가 기록되며, 상기 지정된 아이노드 외부에 할당된 블록에는, 데이터 블록의 포인터들을 기록한다. 이중 간접 (Double Indirect)블록에는 아이노드의 외부에 할당된 블록을 지정하는 포인터가 기록되며, 외부에 할당된 블록이 한번 더 다른 블록을 지정하고, 이렇게 2번 지정된 블록에 데이터 블록의 포인터를 기록한다. 삼중 간접(Triple Indirect) 블록에는, 아이노드 외부에 할당된 블록을 3번 지정 후, 그 블록에 데이터 블록의 포인터를 기록한다. 상기와 같은 방법으로, 포인터를 기록한 블록들을 블록엔트리맵(Block Entry Map)이라 한다.6 is a diagram illustrating an example of a process of editing data blocks in accordance with a preferred embodiment of the present invention. Referring to the inode of FIG. 6, there are 12 direct block information and 3 indirect block information. In the direct block information, a pointer to direct data is recorded. Indirect blocks are used when all of the direct blocks are used up. In the indirect block information, a pointer designating a block allocated outside of the inode is recorded, and in the block allocated outside of the designated inode, pointers of the data block are recorded. In double indirect blocks, a pointer designating a block allocated externally to the inode is recorded, and an externally allocated block designates another block once more, and a pointer of the data block is written to the block designated twice. do. In a triple indirect block, a block allocated outside the inode is designated three times, and a pointer of a data block is recorded in the block. In the above manner, the blocks on which the pointer is recorded are called a block entry map.

도 6을 참조하면, 원본 미디어 파일의 데이터가 4K byte 블록 단위로 데이터01, 데이터02, 데이터n 등의 순서로 되어있고 이에 대한 데이터 블록 정보가 원본 아이노드의 직접 블록과 간접 블록에 기록되어 있다. 원본 미디어 파일이 편집되어 데이터02, 데이터m 등이 삭제되는 경우, 편집 미디어 파일의 아이노드에는, 남아 있는 데이터01, 데이터13 등의 데이터 블록 정보가 직접 블록과 간접 블록에 기록된다. 도 6의 예시적인 편집 방법을, 이하 각 단계를 통해 설명한다.Referring to FIG. 6, data of an original media file is in the order of data 01, data 02, data n, etc. in units of 4K byte blocks, and data block information is recorded in direct and indirect blocks of the original inode. . When the original media file is edited and data 02, data m, and the like are deleted, data block information such as data 01 and data 13 remaining in the inode of the edit media file is recorded in the direct block and the indirect block. An exemplary editing method of FIG. 6 will be described below with each step.

원본 미디어 파일의 아이노드의 데이터 블록정보를 참조하여, 편집구간의 시작지점과 종료지점에 대한 디스크 상의 물리적 주소(physical address) 값들을 추출한다(단계 240).With reference to the data block information of the inode of the original media file, the physical address values on the disk for the start point and the end point of the edit section are extracted (step 240).

다음, 상기 240 단계의 물리적 주소값들을 참조하여 편집 미디어 파일의 아이노드의 블록엔트리맵을 생성한다(단계250).Next, the block entry map of the inode of the edit media file is generated by referring to the physical address values of step 240 (step 250).

다음, 상기 250 단계의 블록엔트리맵을 참조하여 상기 블록비트맵을 재설정한다(단계 260). 상기 230 단계에서 원본 미디어 파일에서 사용중인 블록비트맵의 값은 모두 '0'으로 초기화 되었다. 여기에 상기 250 단계의 작성된 블록엔트리맵을 참조하여, 해당 데이터 블록의 사용 여부를 확인한다. 이때 해당 데이터 블록이 사용중인 경우, 블록 비트맵에서의 해당영역을 '1'로 설정하여, 해당 블록이 사용중임을 표시한다. 따라서, 원본 미디어 파일의 데이터 블록 중에서 편집된 내용의 데이터 블록만 활성화된다.Next, the block bitmap is reset with reference to the block entry map of step 250 (step 260). In step 230, all values of the block bitmap being used in the original media file are initialized to '0'. Here, the block entry map created in step 250 is used to check whether the corresponding data block is used. At this time, when the corresponding data block is in use, the corresponding area in the block bitmap is set to '1' to indicate that the corresponding block is in use. Therefore, only the data block of the edited content among the data blocks of the original media file is activated.

상기 단계를 거친 편집 미디어 파일에 대한 신규 아이노드에는 사용자 정보,용량 과 상기 250단계의 블록엔트리맵을 포함하는 데이터 블록정보 등과 같은 편집 미디어 파일의 모든 정보가 저장되어있다. 핸들값에 따라 원본 미디어 파일의 아이노드와 편집 미디어 파일의 아이노드를 구별하여, 원본 미디어 파일의 아이노드가 저장되어 있는 곳에, 편집 미디어 파일의 아이노드를 덮어쓰기 한다(단계 270). 따라서 편집 미디어 파일의 아이노드만 남게 되고, 미디어 파일에 대한 편집을 완성한다.The new inode for the edited media file having the above-described steps stores all information of the edited media file such as user information, capacity, and data block information including the block entry map of step 250. The inode of the original media file is distinguished from the inode of the edited media file according to the handle value, and the inode of the edited media file is overwritten where the inode of the original media file is stored (step 270). Thus, only the inode of the edited media file remains, completing the edit of the media file.

본 발명에 의한 편집 미디어 파일의 일부 블록에는, 편집구간 이외의 데이터가 포함될 수 있다. 도 7은 본 발명에 의하여 편집이 이루어진 후의 편집 미디어 파일을 예시적으로 도시한 그림이다. 도 3에서 편집 구간으로 정해진, '저장구간1' 과 '저장구간2' 가 하나의 파일로 편집되어있다. 편집 미디어 파일은 4k byte 크기의 데이터 블록들의 결합으로 구성되어 있다. 따라서, 편집 시작지점이나 종료지점이 해당 데이터 블록의 경계가 아닌 중간에 있는 경우 그 블록에는 불필요한 데이터가 포함될 수 있다.Some blocks of the edit media file according to the present invention may include data other than the edit section. 7 is a diagram illustrating an example of an edited media file after editing is performed according to the present invention. In FIG. 3, 'storage section 1' and 'storage section 2', which are designated as editing sections, are edited into one file. The edit media file consists of a combination of data blocks of 4k byte size. Therefore, when the edit start point or the end point is in the middle of the data block, the unnecessary data may be included in the block.

그러므로 상기 일부만 사용된 블록에 대하여 유효한 데이터 구간이 존재한다. 도 7을 참조하면, '저장구간1'은 0 byte ~ 2,968,843,264 byte 이지만, 본 발명의 방법을 사용할 경우 블록 단위로 편집이 되므로, '편집된 저장구간1' 에는 2,968,846,336 byte 까지 저장된다. 이는 크기가 4k byte(4096 byte)인 724,816 개의 블록들로 구성된 것이다. '편집된 저장구간1'의 마지막 블록에는 1024 byte 만이 '저장구간1'에 해당되고 나머지 3072 byte 는 불필요하게 저장된 데이터이다. 마찬가지로 '편집된 저장구간2'의 처음 블록에는 2048 byte 의 불필요하게 저장된 데이터가 있고 나머지 2048 byte 가 '저장구간2'에 해당된다. 따라서 상기 불필요하게 저장된 데이터를 제외한 유효데이터 구간은 0 byte ~ 2,968,843,264 byte, 및 2,968,848,384 byte ~ 5,968,697,792 byte 이다. Therefore, there is a valid data interval for the block that is only partially used. Referring to FIG. 7, 'storage section 1' is 0 byte to 2,968,843,264 bytes. However, since the 'storage section 1' is edited in block units, the 'storage section 1' is stored up to 2,968,846,336 bytes. It consists of 724,816 blocks of size 4k bytes (4096 bytes). In the last block of the edited storage section 1, only 1024 bytes correspond to the storage section 1, and the remaining 3072 bytes are unnecessary data. Similarly, the first block of 'edited storage section 2' contains 2048 bytes of unnecessarily stored data, and the remaining 2048 bytes correspond to 'storage section 2.' Accordingly, valid data intervals excluding the unnecessary stored data are 0 bytes to 2,968,843,264 bytes, and 2,968,848,384 bytes to 5,968,697,792 bytes.

그러나, 상기 일부만 사용되는 블록에 불필요한 데이터가 포함되어 있더라도, 그 블록의 크기는 4K byte 이고 이것은 전체 미디어 파일의 데이터와 비교해 보았을 때 극히 일부에 불과한 것이다. 상기 실시예를 참조하면, 원본 미디어 파일의 크기는 8.3G byte 이고, 상기의 일부만 사용되는 블록은 4K byte 에 불과하다. 따라서, 편집 미디어 파일 재생시에 상기의 블록은, 1프레임의 극히 일부에 불과하여 불필요한 데이터 부분의 인식 없이, 편집구간을 재생할 수 있다. However, even if the only partially used block contains unnecessary data, the size of the block is 4K bytes, which is only a fraction of the data of the entire media file. Referring to the above embodiment, the size of the original media file is 8.3G bytes, and only a part of the block used above is 4K bytes. Therefore, at the time of reproduction of the edited media file, the above block is only a fraction of one frame and can reproduce the edit section without recognizing unnecessary data portions.

한편, 본 발명의 다른 실시형태에서는, 정확한 편집구간의 재생을 위해 상기 일부만 사용되는 블록에 대한 유효데이터 구간에 대한 정보를 별도의 파일에 기록,보관할 수도 있다. 그리고, 편집 미디어 파일 재생시에 사용자가 상기 별도로 보관한 유효데이터 구간의 정보를, 미디어 플레이어에 입력하여야 한다. 미디어 플레이어는 재생하기 전, 전체 파일을 분석하는 스트림 파싱단계에서 상기 유효데이터 구간 이외의 데이터는 불필요한 노이즈로 인식하여 이를 생략한 후, 편집 미디어 파일을 재생한다.On the other hand, in another embodiment of the present invention, information on the valid data section for a block used only in part for reproducing the correct editing section may be recorded and stored in a separate file. Then, when playing the edited media file, the user must input the information of the valid data section stored separately in the media player. In the stream parsing step of analyzing the entire file, the media player recognizes data other than the valid data section as unnecessary noise, omits it, and plays the edited media file.

이상에서 본 발명에 대하여 그 바람직한 실시예를 중심으로 설명하였으나, 이는 단지 예시일 뿐 본 발명을 한정하는 것이 아니며, 본 발명이 속하는 분야의 통상의 지식을 가진 자라면 본 발명의 본질적인 특성을 벗어나지 않는 범위에서 이상에 예시되지 않은 여러 가지의 변형과 응용이 가능함을 알 수 있을 것이다. 그리고, 이러한 변형과 응용에 관계된 차이점들은 첨부된 청구 범위에서 규정하는 본 발명의 범위에 포함되는 것으로 해석되어야 할 것이다.Although the present invention has been described above with reference to preferred embodiments thereof, this is merely an example and is not intended to limit the present invention, and those skilled in the art do not depart from the essential characteristics of the present invention. It will be appreciated that various modifications and applications which are not illustrated above in the scope are possible. And differences relating to such modifications and applications should be construed as being included in the scope of the invention defined in the appended claims.

본 발명에 따른 미디어 파일 편집 방법은 디지털 컨텐츠의 제작, 유통과 관련된 홍보사업 및 방송사업 분야에서 널리 사용될 수 있다.The media file editing method according to the present invention can be widely used in the field of publicity and broadcasting business related to the production and distribution of digital content.

도 1은 종래의 기술에 따른 미디어 파일을 편집하는 방법을 순차적으로 설명하는 흐름도이다.1 is a flowchart sequentially illustrating a method of editing a media file according to the prior art.

도 2는 본 발명의 바람직한 실시예에 따른 미디어 파일을 편집하는 방법을 순차적으로 설명하는 흐름도이다.2 is a flowchart sequentially illustrating a method of editing a media file according to a preferred embodiment of the present invention.

도 3은 본 발명의 바람직한 실시예에 따른 편집 시작지점 및 종료지점을 설정하는 것을 예시적으로 도시한 그림이다.3 is a diagram illustrating an example of setting an editing start point and an end point according to a preferred embodiment of the present invention.

도 4는 본 발명의 바람직한 실시예에 따른 아이노드의 구조를 예시적으로 도시한 그림이다.4 is a diagram illustrating an exemplary structure of an inode according to a preferred embodiment of the present invention.

도 5는 본 발명의 바람직한 실시예에 따른 블록비트맵을 예시적으로 도시한 도표이다.5 is a diagram exemplarily illustrating a block bit map according to a preferred embodiment of the present invention.

도 6은 본 발명의 바람직한 실시예에 따른 데이터 블록 단위의 편집과정을 예시적으로 도시한 그림이다.FIG. 6 is a diagram illustrating an example of a data block unit editing process according to an exemplary embodiment of the present invention.

도 7은 본 발명의 바람직한 실시예에 따른 편집이 이루어진 후의 편집 미디어 파일을 예시적으로 도시한 그림이다.7 is a diagram illustrating an example of an edit media file after editing is performed according to a preferred embodiment of the present invention.

Claims (2)

미디어 파일을 편집하는 방법에 있어서,In the method of editing a media file, (a ) 원본 미디어 파일의 편집하고자 하는 편집구간을 외부로부터 입력받는 단계;(a) receiving an editing section to be edited from an external media file from an external source; (b) 편집하여 새로이 생성할 편집 미디어 파일에 대한 아이노드를 생성하는 단계;(b) creating an inode for the edit media file to be edited and newly created; (c) 원본 미디어 파일에 해당하는 블록비트맵 값을 '0'으로 초기화하는 단계;(c) initializing a block bitmap value corresponding to the original media file to '0'; (d) 원본 미디어 파일의 아이노드를 참조하여 편집구간의 시작지점과 종료지점에 대한 물리적 주소값들을 추출하는 단계;(d) extracting physical address values for the start point and the end point of the editing section by referring to the inode of the original media file; (e) 상기 추출된 물리적 주소값들을 참조하여 편집 미디어 파일에 대한 아이노드의 블록엔트리맵을 생성하는 단계;(e) generating a block entry map of the inode to the edit media file with reference to the extracted physical address values; (f) 상기 편집 미디어 파일의 아이노드의 블록엔트리맵을 참조하여 상기 블록비트맵을 재설정하는 단계;(f) resetting the block bitmap with reference to the block entry map of the inode of the edited media file; (g) 상기 원본 미디어 파일의 아이노드가 저장되어 있는 곳에, 상기 편집 미디어 파일의 아이노드를 덮어쓰기 하는 단계;(g) overwriting the inode of the edited media file where the inode of the original media file is stored; 를 구비하여, 원본 미디어 파일의 복사 및 삭제과정 없이 편집 미디어 파일을 생성하는 미디어 파일 편집 방법.A media file editing method comprising: generating an edited media file without copying and deleting the original media file. 제 1 항에 있어서, 상기 미디어 파일 편집 방법은The method of claim 1, wherein the media file editing method is (h) 일부만 사용되는 블록에 대하여 유효데이터 구간에 대한 정보를 설정하고, 설정된 유효데이터 구간에 대한 정보를 별도의 파일에 저장하는 단계;(h) setting information on a valid data section for a block that is only partially used, and storing information on the set valid data section in a separate file; 를 더 구비하는 것을 특징으로 하는 미디어 파일 편집 방법.The media file editing method further comprising.
KR1020070106995A 2007-10-24 2007-10-24 Method of editing media file KR20090041478A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020070106995A KR20090041478A (en) 2007-10-24 2007-10-24 Method of editing media file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020070106995A KR20090041478A (en) 2007-10-24 2007-10-24 Method of editing media file

Publications (1)

Publication Number Publication Date
KR20090041478A true KR20090041478A (en) 2009-04-29

Family

ID=40764497

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020070106995A KR20090041478A (en) 2007-10-24 2007-10-24 Method of editing media file

Country Status (1)

Country Link
KR (1) KR20090041478A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019160289A1 (en) * 2018-02-14 2019-08-22 삼성전자(주) Electronic device and control method therefor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019160289A1 (en) * 2018-02-14 2019-08-22 삼성전자(주) Electronic device and control method therefor

Similar Documents

Publication Publication Date Title
JP4537083B2 (en) Data processing apparatus and control method thereof
US7804505B2 (en) Information processing apparatus and associated method of prioritizing content for playback
JP4779921B2 (en) Data processing apparatus, data processing method, and computer program
JPH1064247A (en) Device for editing source material recorded on recording medium and data recording medium therefor
JP2001157155A (en) Recording medium, recorder, reproducing device, recording method and computer-readable recording medium
US8416658B2 (en) Recording apparatus and recording method for data and file system information
JP4251219B2 (en) Editing apparatus and editing method
US20060120224A1 (en) Recording/reproduction device, recording/reproduction method, and recording medium
US9542398B2 (en) Electronic apparatus
KR20090041478A (en) Method of editing media file
US7835614B2 (en) Data recording method, data recording apparatus, and data recording medium
KR100960767B1 (en) Recording method and recording device
JP4549855B2 (en) Data recording method, data reproducing method, data recording device, data reproducing device, data structure, program, and recording medium storing the program
US8565584B2 (en) Editing apparatus and editing method
JP2004363825A (en) Recording and reproducing device, recording and reproducing method, and recording medium and program therefor
JP2004171311A (en) Data management device, data management method, recording medium, data management program, and computer-readable recording medium storing data management program
KR100882470B1 (en) Method of editing media file
JP2004252959A (en) Apparatus and method for recording/reproduction, computer program providing medium, computer program, and recording medium
JP4289403B2 (en) Editing apparatus and editing method
JP4255796B2 (en) DATA RECORDING DEVICE, DATA RECORDING METHOD, DATA RECORDING PROGRAM, AND RECORDING MEDIUM CONTAINING THE PROGRAM
JP3329338B1 (en) Recording method, recording device, and computer-readable recording medium
JPWO2006008952A1 (en) Information recording control device, information recording control method, information reproduction control device, information reproduction control method, information recording medium, information recording control program, and information reproduction control program
JP3329339B2 (en) Reproduction method, reproduction apparatus, and computer-readable recording medium
KR100378175B1 (en) Recording medium for storing virtual deletion information for still picture
KR100378173B1 (en) Recording medium for storing virtual deletion information for still picture

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E601 Decision to refuse application