KR100859089B1 - Apparatus for checking caption file - Google Patents

Apparatus for checking caption file Download PDF

Info

Publication number
KR100859089B1
KR100859089B1 KR1020060103383A KR20060103383A KR100859089B1 KR 100859089 B1 KR100859089 B1 KR 100859089B1 KR 1020060103383 A KR1020060103383 A KR 1020060103383A KR 20060103383 A KR20060103383 A KR 20060103383A KR 100859089 B1 KR100859089 B1 KR 100859089B1
Authority
KR
South Korea
Prior art keywords
file
subtitle
caption
error
sync
Prior art date
Application number
KR1020060103383A
Other languages
Korean (ko)
Other versions
KR20080036750A (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 KR1020060103383A priority Critical patent/KR100859089B1/en
Publication of KR20080036750A publication Critical patent/KR20080036750A/en
Application granted granted Critical
Publication of KR100859089B1 publication Critical patent/KR100859089B1/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
    • G11B20/18Error detection or correction; Testing, e.g. of drop-outs
    • 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
    • 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/10Indexing; Addressing; Timing or synchronising; Measuring tape travel
    • G11B27/19Indexing; Addressing; Timing or synchronising; Measuring tape travel by using information detectable on the record carrier

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Television Signal Processing For Recording (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

본 발명은 자막 파일 검사 장치에 관한 것으로, 저장 매체로부터 동영상 파일과 자막 파일을 읽어들이는 픽업부와, 픽업부에 의해 읽어들인 동영상 파일 및 자막 파일을 디지털 신호처리하는 DSP와, 디지털 신호처리된 자막 파일을 제공받아서 헤더 부분과 본문 부분을 순차적으로 검사하여 에러가 있는 경우에는 해당 부분을 자동으로 정정하는 자막 검사부와, 디지털 신호처리된 동영상 파일을 디코딩하는 디코더와, 디코딩된 동영상 파일의 비디오 데이터와 정정된 자막 파일의 데이터를 합성하여 출력하는 비디오 신호 처리부를 포함하며, 멀티미디어 파일 재생기에 적용되어 자막 파일의 에러를 검사한 후에 자막 파일의 에러 부분을 자동으로 정정함으로써, 자막 파일의 에러에 의해 화면에 자막이 깨져 나오거나 재생 자체가 불가능해지는 것을 방지하는 이점이 있다.The present invention relates to a caption file inspecting apparatus, comprising: a pickup unit for reading a video file and a caption file from a storage medium; a DSP for digital signal processing the video file and a caption file read by the pickup unit; Subtitle checker receives the subtitle file and checks the header part and the body part sequentially and if there is an error, the subtitle checking part automatically corrects the part, a decoder for decoding the digital signal processed video file, and video data of the decoded video file. And a video signal processing unit for synthesizing the corrected subtitle file data and outputting the data, and applying the multimedia file player to check the error of the subtitle file and automatically correcting an error portion of the subtitle file. To prevent subtitles from appearing on the screen or playback itself There are advantages to.

디빅스 재생장치, 자막, 헤더, 싱크, 자막 길이 Divix Player, Subtitles, Header, Sync, Subtitle Length

Description

자막 파일 검사 장치{APPARATUS FOR CHECKING CAPTION FILE}Subtitle file checking device {APPARATUS FOR CHECKING CAPTION FILE}

도 1은 본 발명에 따른 자막 파일 검사 장치가 적용된 멀티미디어 파일 재생기의 블록 구성도,1 is a block diagram of a multimedia file player to which a caption file inspecting apparatus according to the present invention is applied;

도 2는 본 발명에 따른 자막 파일 검사 과정을 설명하기 위한 흐름도.2 is a flowchart illustrating a caption file checking process according to the present invention;

<도면의 주요부분에 대한 부호의 설명><Description of the code | symbol about the principal part of drawing>

1 : 광디스크 110 : 픽업부1 optical disc 110 pickup section

120 : DSP 130 : 디코더120: DSP 130: decoder

140 : 신호 처리부 150 : CPU140: signal processor 150: CPU

160 : 자막 검사부 161 : 헤더 검사부160: caption checker 161: header checker

162 : 싱크 검사부 163 : 자막 길이 검사부162: sync checker 163: subtitle length checker

170 : 정정 자막 저장부 180 : 저장 매체(HDD)170: correction subtitle storage unit 180: storage medium (HDD)

190 : 키입력부190: key input unit

본 발명은 자막 파일 검사 장치에 관한 것으로, 더욱 상세하게는 멀티미디어 파일 재생기에서 자막 파일의 에러를 검사하여 정정하는 자막 파일 검사 장치에 관 한 것이다.The present invention relates to a caption file inspecting apparatus, and more particularly, to a caption file inspecting apparatus for inspecting and correcting an error of a caption file in a multimedia file player.

근래에 들어서 멀티미디어 파일의 한 포맷으로 디빅스(DivX) 비디오 동영상 파일이 인터넷과 같은 네트워크 등을 통해 널리 보급되고 있다. 이러한 디빅스 비디오 동영상 파일을 재생하는 멀티미디어 파일 재생기인 디빅스 재생기는 MPEG-2 방식을 근간으로 하는 DVD 동영상 파일과는 달리, 동영상 파일의 비디오 데이터를 MPEG4로 디코딩하고, 오디오 데이터를 MP3로 디코딩하기 때문에 DVD 수준과 같은 높은 화질과 음질로 동영상 파일을 재생할 수 있다.In recent years, as a format of a multimedia file, DivX video and video files have been widely distributed through networks such as the Internet. Divix player, which is a multimedia file player that plays such Divx video video files, decodes video data of video files to MPEG4 and decodes audio data to MP3, unlike DVD video files based on MPEG-2 method. You can play video files with the same high quality and sound quality.

이와 같은 디빅스 재생기는, 비디오의 동영상 파일이 기록된 광디스크, 예를 들어 CD 또는 DVD 등에 기록된 디빅스(DivX) 비디오의 동영상 파일을 선택하면, 파일로부터 해상도, 코덱 및 비트 레이트 등의 기본 정보를 로드하고, 디빅스 동영상과 동일한 이름의 자막 파일 여부를 인식하고 이를 로드하여 자막 언어를 확인한다. 이와 같은 디빅스(DivX) 동영상 파일과 자막 파일의 정보 확인이 끝나면 이 디빅스 동영상 파일에서 비디오 데이터를 MPEG4로, 오디오 데이터를 MP3로 디코딩하여 디코딩된 비디오 데이터와 자막 파일을 합성하면서 디코딩된 오디오 데이터와 함께 출력한다.Such a Divix player loads basic information such as resolution, codec and bit rate from the file when selecting a video file of a DivX video recorded on an optical disc, for example, a CD or a DVD. Then, it recognizes whether the subtitle file has the same name as the DivX video and loads it to check the subtitle language. After checking the information of the DivX video file and the subtitle file, the video data is decoded to MPEG4 and the audio data to MP3 from the DivX video file and the decoded video data and the subtitle file are combined together with the decoded audio data. Output

그런데, 자막 파일 자체에 에러가 있는 경우에는 화면에 자막이 깨져 나오거나 심지어 자막 파일의 재생이 불가능하여 사용자가 자막을 볼 수 없는 경우가 발생한다. 예로서 자막의 싱크가 맞지 않는다거나 헤드 부분의 정보가 이상한 경우에 재생 화면에 자막이 재생되지 않거나 깨지는 경우가 발생한다.However, if there is an error in the subtitle file itself, the subtitle may be broken on the screen or even the subtitle file may not be reproduced and thus the user may not be able to see the subtitle. For example, when the subtitles are out of sync or the head information is strange, the subtitles may not be reproduced or broken on the reproduction screen.

그러나, 대부분의 사용자는 자막 파일의 형식(SUB, SRT, TAX, SMI 등)에 대 한 이해가 부족하여 자막 파일의 에러를 직접 정정하기 어려우며, 이 경우에는 자막 파일의 재생은 물론이고 동영상 파일의 재생을 포기하는 문제점이 있었다.However, most users do not have a good understanding of the subtitle file format (SUB, SRT, TAX, SMI, etc.), so it is difficult to directly correct the error of the subtitle file. There was a problem giving up the playback.

본 발명은 이와 같은 종래의 문제점을 해결하기 위하여 제안한 것으로, 멀티미디어 파일 재생기에 적용되어 자막 파일의 에러를 검사한 후에 자막 파일의 에러 부분을 자동으로 정정하는 자막 파일 검사 장치를 제공하는 데 그 목적이 있다.SUMMARY OF THE INVENTION The present invention has been proposed to solve such a conventional problem, and the object of the present invention is to provide a caption file inspection apparatus which is applied to a multimedia file player and automatically corrects an error portion of a caption file after checking an error of the caption file. have.

이와 같은 목적을 실현하기 위하여 본 발명은, 멀티미디어 파일 재생기에 적용되어 자막 파일을 검사 및 정정하는 자막 파일 검사 장치로서, 상기 멀티미디어 파일 재생기로부터 자막 파일을 제공받아 헤더 부분과 본문 부분을 순차적으로 검사하고, 에러가 있는 경우 해당 부분을 정정하는 자막 검사부와, 상기 자막 검사부에 의해 정정된 자막 파일을 저장하는 정정 자막 저장부를 포함하는 자막 파일 검사 장치를 포함한다.In order to realize the above object, the present invention is a subtitle file inspection apparatus applied to a multimedia file player to inspect and correct a subtitle file, and receives a subtitle file from the multimedia file player and sequentially inspects a header part and a body part. And a caption checking unit including a caption checking unit correcting a corresponding part in case of an error, and a corrected caption storing unit storing a caption file corrected by the caption checking unit.

이하에서는 첨부한 도면을 참조하여 바람직한 실시 예에 대하여 상세히 설명하기로 한다. 이 실시 예를 통해 본 발명의 목적, 특징 및 이점들을 보다 잘 이해할 수 있게 된다. 그러나 본 발명은 이러한 실시 예로 제한되는 것은 아니다.Hereinafter, exemplary embodiments will be described in detail with reference to the accompanying drawings. Through this embodiment, it is possible to better understand the objects, features and advantages of the present invention. However, the present invention is not limited to these examples.

도 1은 본 발명에 따른 자막 파일 검사 장치가 적용된 멀티미디어 파일 재생기의 블록 구성도이다.1 is a block diagram of a multimedia file player to which a caption file inspection apparatus according to the present invention is applied.

도 1에 도시된 바와 같이, 본 발명에 따른 자막 파일 검사 장치가 적용된 멀티미디어 파일 재생기는, 픽업부(110)와, DSP(120)와, 디코더(130)와, 신호 처리부(140)와, CPU(150)와, 자막 검사부(160)와, 정정 자막 저장부(170)와, 저장 매체(180) 및 키 입력부(190) 등을 포함한다.As shown in FIG. 1, the multimedia file player to which the caption file inspection apparatus according to the present invention is applied includes a pickup unit 110, a DSP 120, a decoder 130, a signal processor 140, and a CPU. 150, a caption checking unit 160, a corrected caption storage unit 170, a storage medium 180, a key input unit 190, and the like.

픽업부(110)는 광디스크(1)에 기록된 디빅스 동영상 파일 및 자막 파일을 읽어내어 이를 DSP(120)에 전달한다.The pickup unit 110 reads the Divix video file and the subtitle file recorded on the optical disc 1 and transfers them to the DSP 120.

DSP(120)는 픽업부(110)로부터 전달된 디빅스 동영상 파일 및 자막 파일을 디지털 신호처리하여 디코더(130)에 전달한다.The DSP 120 digitally processes the Divix video file and the subtitle file transferred from the pickup unit 110 and transmits the digital signal to the decoder 130.

디코더(130)는 DSP(120)의 디빅스 동영상 파일에서 비디오 데이터를 MPEG4 등의 압축 해제기술로 디코딩하여 원래 비디오 데이터로 복원한 후에 이를 신호 처리부(140)에 전달한다. 그리고 DSP(120)의 디빅스 동영상 파일에서 오디오 데이터를 MP3 등의 압축 해제 기술로 디코딩하여 원래 오디오 데이터로 복원한 후에 이를 신호 처리부(140)에 전달한다.The decoder 130 decodes the video data from the DivX video file of the DSP 120 using a decompression technique such as MPEG4, restores the original video data, and then transfers the video data to the signal processor 140. The audio data is decoded from the DivX video file of the DSP 120 using a decompression technique such as MP3, and then restored to the original audio data, and then transmitted to the signal processor 140.

신호 처리부(140)는 디코더(130)에서 디코딩된 비디오 데이터를 신호처리하고, 이 비디오 데이터와 자막 파일 데이터를 합성하여 이를 TV 등의 디스플레이 장치로 출력함과 아울러 디코더(130)에서 디코딩된 오디오 데이터를 신호처리하고 이를 스피커 등의 출력 장치로 출력한다.The signal processor 140 processes the video data decoded by the decoder 130, synthesizes the video data and the subtitle file data, outputs the synthesized video data to a display device such as a TV, and decodes the audio data decoded by the decoder 130. Signal is processed and output to an output device such as a speaker.

CPU(150)는 디빅스 재생 장치의 작동을 제어하고자, 키 입력부(190)에서 디빅스 재생키가 입력될 경우 픽업부(110)에서 광디스크(1)에 기록된 디빅스 동영상 파일 및 자막 파일을 읽어 내거나 저장 매체(180)로부터 디빅스 동영상 파일 및 자 막 파일을 읽어내고, DSP(120)를 통해 디빅스 동영상 파일 및 자막 파일을 디지털 신호처리하고, 디코더(130)를 통해 디빅스 동영상 파일에서 비디오 데이터를 MPEG4 등의 압축 해제기술로 디코딩하여 원래 비디오 데이터로 복원하면서 오디오 데이터를 MP3 등의 압축 해제 기술로 디코딩하여 원래 오디오 데이터로 복원한 후에, 이를 신호 처리부(140)를 통해 출력되도록 제어한다. 이때, 디코딩 비디오 데이터와 자막 파일 데이터는 신호 처리부(140)를 통해 합성되어 출력된다.To control the operation of the Divix playback device, the CPU 150 reads or stores the Divix video file and the subtitle file recorded on the optical disc 1 in the pickup unit 110 when the Divix playback key is input from the key input unit 190. Reads the Divix video file and the subtitle file from the medium 180, digitally processes the DivX video file and the subtitle file through the DSP 120, and converts the video data from the DivX video file through the decoder 130 such as MPEG4. The audio data is decoded by the decompression technique and decompressed to the original video data while the audio data is decoded by the decompression technique such as MP3 and then restored to the original audio data. In this case, the decoded video data and the subtitle file data are synthesized through the signal processor 140 and output.

아울러, CPU(150)는 키 입력부(190)를 통해 동영상 파일의 재생이 선택되거나 자막 검사가 선택되면 자막 검사부(160)에게 광디스크(1) 또는 저장 매체(180)에서 읽어낸 자막 파일에 대한 에러 검사 및 에러 정정을 요청한다.In addition, when the playback of the video file is selected or the subtitle check is selected through the key input unit 190, the CPU 150 may notify the subtitle inspection unit 160 about the subtitle file read from the optical disc 1 or the storage medium 180. Request check and error correction.

자막 검사부(160)는 CPU(150)로부터 에러 검사 및 에러 정정이 요청되면 광디스크(1) 또는 저장 매체(180)에서 읽어낸 자막 파일에 대해 에러 여부를 검사한 후에 에러가 있으면 이를 정정하여 정정된 자막을 정정 자막 저장부(170)에 저장한다.When the error checking and error correction is requested from the CPU 150, the caption checking unit 160 checks whether there is an error with respect to the caption file read from the optical disc 1 or the storage medium 180, and corrects any errors if any. The caption is stored in the corrected caption storage unit 170.

자막 검사부(160)의 헤더 검사부(161)는 자막 파일의 내용을 분석하여 헤더 부분의 에러 여부를 검사한 후에 에러가 있으면 이를 정정하며, 싱크 검사부(162)는 자막 파일의 내용을 분석하여 본문 부분 중에서 싱크 명령어를 검사하여 에러 여부를 검사한 후에 에러가 있으면 이를 정정하고, 자막 길이 검사부(163)는 자막 파일의 내용을 분석하여 본문 부분 중에서 자막 길이를 검사하여 모든 라인이 기 설정된 임계치를 넘지 않도록 조절한다.The header inspecting unit 161 of the caption checking unit 160 analyzes the contents of the caption file to check whether there is an error in the header portion and corrects any errors, and the sync inspecting unit 162 analyzes the contents of the caption file to analyze the contents of the caption file. After checking the sink command to check whether there is an error, and correcting an error, the subtitle length checker 163 analyzes the contents of the subtitle file to check the subtitle length in the body part so that all lines do not exceed the preset threshold. Adjust

키 입력부(190)는 키 버튼 또는 리모컨으로부터 수신된 키 신호를 입력받아 이를 CPU(150)에 제공한다.The key input unit 190 receives a key signal received from a key button or a remote controller and provides it to the CPU 150.

저장 매체(180)는, 디빅스 동영상 파일 및 자막 파일을 저장하는 하드 디스크(HDD) 등으로서, 디빅스 동영상 파일 재생시 CPU(150)의 제어에 따라 해당 동영상 파일과 자막 파일을 DSP(120)에 전달한다.The storage medium 180 is a hard disk (HDD) for storing a DivX video file and a subtitle file, and delivers the video file and the subtitle file to the DSP 120 under the control of the CPU 150 when the DivX video file is played. do.

이와 같이 구성된 멀티미디어 파일 재생기의 동작 과정 중에서 본 발명에 의한 자막 파일 검사 과정을 도 2의 흐름도를 참조하여 설명하면 다음과 같다.Referring to the flowchart of FIG. 2, the subtitle file inspection process according to the present invention among the operation processes of the multimedia file player configured as described above is as follows.

먼저, 사용자가 키 입력부(190)를 통해 동영상 파일을 선택(S201)한 후에 파일 재생 또는 자막 검사를 선택(S203)하면 CPU(150)는 자막 검사부(160)에게 해당 동영상 파일과 연결된 자막 파일을 검사할 것을 요청한다. 통상적으로 동영상 파일과 연결된 자막 파일이라 함은 동일한 파일명을 가지는 자막 파일을 일컫는다.First, when a user selects a video file through the key input unit 190 (S201) and then selects a file play or subtitle check (S203), the CPU 150 transmits a subtitle file associated with the corresponding video file to the subtitle inspector 160. Ask for inspection. In general, a subtitle file associated with a video file refers to a subtitle file having the same file name.

그러면, 자막 검사부(160)는 광디스크(1)로부터 읽어낸 자막 파일을 DSP(120)를 통해 제공받거나 HDD(180)로부터 자막 파일을 제공받아서 헤더 부분과 본문 부분을 순차적으로 검사하여 에러가 있는 경우에는 해당 부분을 자동으로 정정한다.Then, the subtitle checking unit 160 receives the subtitle file read from the optical disc 1 through the DSP 120 or the subtitle file from the HDD 180, and sequentially checks the header part and the body part and there is an error. Automatically corrects that part.

여기서, 자막 검사부(160)의 헤더 검사부(161)는 자막 파일의 내용을 분석하여 헤더 부분의 에러 여부를 검사한 후에 에러가 있으면 이를 정정하며, 싱크 검사부(162)는 자막 파일의 내용을 분석하여 본문 부분 중에서 싱크 명령어를 검사하여 에러 여부를 검사한 후에 에러가 있으면 이를 정정하고, 자막 길이 검사부(163)는 자막 파일의 내용을 분석하여 본문 부분 중에서 자막 길이를 검사하여 모든 라인이 기 설정된 임계치를 넘지 않도록 조절한다.Here, the header checker 161 of the caption checker 160 analyzes the contents of the caption file and checks whether there is an error in the header portion, and corrects any errors, and the sync checker 162 analyzes the content of the caption file. After checking whether there is an error by checking the sync command in the body part and correcting the error, the subtitle length checker 163 analyzes the contents of the subtitle file and checks the subtitle length in the body part so that all lines have a preset threshold. Adjust it so that it is not over.

이러한 자막 검사부(160)에 의한 자막 검사 및 정정 과정에 대한 이해를 돕기 위하여 자막 파일 형식 중에서 SAMI 파일을 검사 및 정정하는 과정을 살펴보기로 한다.In order to understand the caption inspection and correction process by the caption inspection unit 160, a process of inspecting and correcting a SAMI file among subtitle file formats will be described.

아래는 SAMI 자막 파일의 일 예이다.The following is an example of a SAMI subtitle file.

<SAMI><SAMI>

<HEAD><HEAD>

<Title>제니퍼 자막</Title><Title> Jennifer subtitles </ Title>

<STYLE TYPE="text/css"><STYLE TYPE = "text / css">

<!--<!-

P {margin-left:8pt; margin-right:8pt; margin-bottom:2pt; margin-top:2pt;P {margin-left: 8pt; margin-right: 8pt; margin-bottom: 2pt; margin-top: 2pt;

text-align:center; font-size:20pt; font-family:arial, sans-serif;   text-align: center; font-size: 20pt; font-family: arial, sans-serif;

font-weight:normal; color:white;}   font-weight: normal; color: white;}

.KRCC {Name:English; lang:en-EN; SAMIType:CC;}.KRCC {Name: English; lang: en-EN; SAMIType: CC;}

#STDPrn {Name:Standard Print;}#STDPrn {Name: Standard Print;}

#LargePrn {Name:Large Print; font-size:20pt;}#LargePrn {Name: Large Print; font-size: 20pt;}

#SmallPrn {Name:Small Print; font-size:10pt;}#SmallPrn {Name: Small Print; font-size: 10pt;}

-->->

</STYLE></ STYLE>

</HEAD></ HEAD>

<BODY><BODY>

<SYNC Start=1167><P Class=KRCC> 하이 헬루오 안녕<SYNC Start = 1167> <P Class = KRCC> Hi Heluo Hi

<SYNC Start=5604><P Class=KRCC>&nbsp;<SYNC Start = 5604> <P Class = KRCC> &nbsp;

<SYNC Start=96696><P Class=KRCC> 21세기를 창조하는<BR> 미디어 아티스트 제스퍼라고 해<SYNC Start = 96696> <P Class = KRCC> <br> <br> <br> <br> <br>

<SYNC Start=99563><P Class=KRCC>&nbsp;<SYNC Start = 99563> <P Class = KRCC> &nbsp;

..

. (중간생략). (Middle omitted)

..

<SYNC Start=119219><P Class=KRCC> 뽀로롱~<SYNC Start = 119219> <P Class = KRCC> Porong ~

<SYNC Start=121779><P Class=KRCC>&nbsp;<SYNC Start = 121779> <P Class = KRCC> &nbsp;

</BODY> </ BODY>

</SAMI></ SAMI>

먼저, 헤더 검사부(161)는 명령어 "<HEAD>"로 시작하여 명령어 "</HEAD>"로 끝나는 헤더 부분을 검사(S205)하는데, 필요한 명령어들(<HEAD>, <Title>, </Title>, <STYLE>, </STYLE>, </HEAD>)이 모두 존재하는 지를 먼저 체크한다. 모든 명령어들이 존재하면 정상으로 판정(S207)하며, 어느 하나의 명령어라도 존재하지 않으면 정상으로 판정하지 않고 해당 위치에 필요한 명령어를 삽입하여 자막 헤더 부분을 정정(S209)한다. 예로서 명령어 "<HEAD>"가 존재하지 않으면 명령어 "<Title>"의 앞에 명령어 "<HEAD>"를 삽입하며, 명령어 "</STYLE>"가 존재하지 않으면 명령어 "</HEAD>"의 앞에 명령어 "</STYLE>"를 삽입한다.First, the header inspecting unit 161 inspects the header portion starting with the command "<HEAD>" and ending with the command "</ HEAD>" (S205), and the necessary commands (<HEAD>, <Title>, </ Title). >, <STYLE>, </ STYLE>, </ HEAD>) are all checked first. If all the commands exist, it is determined to be normal (S207). If any one command does not exist, it is not determined to be normal, and a necessary command is inserted at the corresponding position to correct the caption header part (S209). For example, if the command "<HEAD>" does not exist, the command "<HEAD>" is inserted before the command "<Title>". If the command "</ STYLE>" does not exist, it appears before the command "</ HEAD>". Insert the command "</ STYLE>".

다음으로, 싱크 검사부(162)는 본문 부분 중에서 명령어 "<SYNC>"를 추출하여 이에 포함된 싱크 스타트 시간이 순차적으로 배치되어 있는 지를 검사(S211)한다. 위 예시에 의하면 싱크 스타트 시간이 "1167, 5604, 96696, 99563 …"과 같이 순차적으로 배치되어 있으면 정상으로 판정(S213)하나 이 중에서 어느 하나의 값이 순차적 특성을 만족하지 않으면 정상으로 판정하지 않고 바로 이전의 싱크 스타트 시간과 바로 다음의 싱크 스타트 시간의 평균값으로 수정(S215)한다.Next, the sink check unit 162 extracts the command "<SYNC>" from the body portion and checks whether the sink start times included therein are sequentially arranged (S211). According to the above example, if the sync start times are sequentially arranged as "1167, 5604, 96696, 99563 ...", it is determined to be normal (S213). If any one of these values does not satisfy the sequential characteristics, it is not determined to be normal. A correction is made to the average value of the immediately preceding sink start time and the next sink start time (S215).

자막 길이 검사부(163)는 자막 파일의 내용을 분석하여 본문 부분 중에서 자막 길이를 검사(S217)하여 모든 라인이 기 설정된 임계치를 넘지 않도록 조절(S219)한다. 이는 자막이 지나치게 길어서 한 라인으로 표시되지 않는 경우를 방지하기 위한 것이다. 이를 위해 기 설정된 임계치인 설정 바이트를 넘어가면 2분할하여 두 줄로 변경하거나 3분할하여 세 줄로 변경하며, 분할 후에도 설정 바이트를 넘어가면 본문 부분에 새로운 싱크를 추가할 수도 있다. 이때 추가된 싱크 스타트 시간은 바로 이전의 싱크 스타트 시간과 바로 다음의 싱크 스타트 시간의 평균값으로 결정한다.The caption length checker 163 analyzes the contents of the caption file to check the caption length in the body part (S217) and adjusts the caption length such that all lines do not exceed the preset threshold (S219). This is to prevent the case where the subtitle is too long and is not displayed as one line. To this end, if it exceeds the setting byte, which is the preset threshold, it is divided into two lines by dividing it into two lines, or by changing it into three lines by dividing it into three lines. If the setting byte is crossed after the dividing, a new sink may be added to the body part. In this case, the added sink start time is determined as an average value of the immediately preceding sink start time and the next sink start time.

이와 같이 정정된 자막은 정정 자막 저장부(170)에 저장(S221)됨과 아울러 디코더(130)로 전달되며, 이로써 사용자에 의해 선택된 동작 모드에 따라 자막 재생이 이루어지거나 자막 검사가 종료(S223)된다.The corrected subtitles are stored in the corrected subtitle storage unit 170 and transferred to the decoder 130. Thus, the subtitles are reproduced or the subtitle check is terminated according to an operation mode selected by the user (S223). .

자막 재생 과정을 살펴보면, 디코더(130)는 DSP(120)의 디빅스 동영상 파일에서 비디오 데이터를 MPEG4 등의 압축 해제기술로 디코딩하여 원래 비디오 데이터로 복원한 후에 이를 신호 처리부(140)에 전달한다. 그리고 DSP(120)의 디빅스 동 영상 파일에서 오디오 데이터를 MP3 등의 압축 해제 기술로 디코딩하여 원래 오디오 데이터로 복원한 후에 이를 신호 처리부(140)에 전달한다.Referring to the caption reproduction process, the decoder 130 decodes the video data from the DivX video file of the DSP 120 by a decompression technique such as MPEG4, restores the original video data, and then transfers the video data to the signal processor 140. The audio data is decoded by a decompression technique such as MP3 from the DivX video file of the DSP 120 and then restored to the original audio data, and then transmitted to the signal processor 140.

신호 처리부(140)는 디코더(130)에서 디코딩된 비디오 데이터를 신호처리하고, 이 비디오 데이터와 자막 검사부(160)로부터 제공된 자막 파일 데이터를 합성하여 이를 TV 등의 디스플레이 장치로 출력함과 아울러 디코더(130)에서 디코딩된 오디오 데이터를 신호처리하고 이를 스피커 등의 출력 장치로 출력한다.The signal processor 140 processes the video data decoded by the decoder 130, synthesizes the video data and the caption file data provided from the caption checking unit 160, and outputs them to a display device such as a TV. In step 130, the decoded audio data is processed and output to the output device such as a speaker.

지금까지 본 발명의 일 실시 예에 국한하여 설명하였으나 본 발명의 기술이 당업자에 의하여 용이하게 변형 실시될 가능성이 자명하다. 이러한 변형된 실시 예들은 본 발명의 특허청구범위에 기재된 기술사상에 포함된다고 하여야 할 것이다.It has been described so far limited to one embodiment of the present invention, it is obvious that the technology of the present invention can be easily modified by those skilled in the art. Such modified embodiments should be included in the technical spirit described in the claims of the present invention.

전술한 바와 같이 본 발명은 멀티미디어 파일 재생기에 적용되어 자막 파일의 에러를 검사한 후에 자막 파일의 에러 부분을 자동으로 정정함으로써, 자막 파일의 에러에 의해 화면에 자막이 깨져 나오거나 재생 자체가 불가능해지는 것을 방지하는 효과가 있다.As described above, the present invention is applied to a multimedia file player and automatically corrects an error portion of a subtitle file after checking an error of the subtitle file, so that the subtitle is broken on the screen due to an error of the subtitle file or the reproduction itself is impossible. It is effective to prevent that.

Claims (8)

멀티미디어 파일 재생기에 적용되어 자막 파일을 검사 및 정정하는 자막 파일 검사 장치로서,Apparatus for inspecting and correcting subtitle files applied to a multimedia file player, 상기 멀티미디어 파일 재생기로부터 자막 파일을 제공받아 헤더 부분과 본문 부분을 순차적으로 검사하고, 에러가 있는 경우 해당 부분을 정정하는 자막 검사부와,A subtitle checking unit which receives a subtitle file from the multimedia file player and sequentially checks a header part and a body part and corrects the corresponding part in case of an error; 상기 자막 검사부에 의해 정정된 자막 파일을 저장하는 정정 자막 저장부A corrected caption storage unit for storing a caption file corrected by the caption checking unit 를 포함하는 자막 파일 검사 장치.Subtitle file inspection device comprising a. 제 1 항에 있어서, The method of claim 1, 상기 자막 검사부는, 상기 자막 파일의 내용을 분석하여 헤더 부분의 에러 여부를 검사한 후에 에러가 있으면 이를 정정하는 헤더 검사부The caption checker analyzes the contents of the caption file to check whether there is an error in the header portion and then corrects the error if there is an error. 를 포함하는 자막 파일 검사 장치.Subtitle file inspection device comprising a. 제 2 항에 있어서,The method of claim 2, 상기 헤더 검사부는, 상기 헤더 부분에 필요한 명령어들이 모두 존재하는 지를 체크하여 모든 명령어들이 존재하면 정상으로 판정하며, 상기 정상으로 판정되지 않으면 필요한 명령어를 해당 위치에 삽입하는 The header checker checks whether all the necessary commands exist in the header part, and determines that all commands exist if they exist. If not, the header checker inserts the necessary commands into a corresponding position. 자막 파일 검사 장치.Subtitle file inspection device. 제 1 항에 있어서, The method of claim 1, 상기 자막 검사부는, 상기 자막 파일의 내용을 분석하여 본문 부분 중에서 싱크 명령어를 검사하여 에러 여부를 검사한 후에 에러가 있으면 이를 정정하는 싱크 검사부The caption checker analyzes the contents of the caption file to check the sync command in the body part to check whether there is an error, and then corrects the error if there is an error. 를 포함하는 자막 파일 검사 장치.Subtitle file inspection device comprising a. 제 4 항에 있어서, The method of claim 4, wherein 상기 싱크 검사부는, 상기 본문 부분 중에서 상기 싱크 명령어를 추출해서 이에 포함된 싱크 스타트 시간이 순차적으로 배치되어 있는 지를 검사하여 순차적으로 배치되어 있으면 정상으로 판정하며, 상기 정상으로 판정되지 않으면 순차적 특성을 만족하지 않은 싱크 스타트 시간을 바로 이전의 싱크 스타트 시간과 바로 다음의 싱크 스타트 시간의 평균값으로 수정하는The sync checker extracts the sync command from the body part and checks whether sync start times included therein are sequentially arranged, and determines that the sync command is normal if the sync check time is sequentially arranged. Does not adjust the sync start time to 자막 파일 검사 장치.Subtitle file inspection device. 제 1 항에 있어서, The method of claim 1, 상기 자막 검사부는, 상기 자막 파일의 내용을 분석하여 본문 부분 중에서 자막 길이를 검사하여 모든 라인이 기 설정된 임계치를 넘지 않도록 조절하는 자막 길이 검사부The caption inspection unit analyzes the contents of the caption file to check the caption length in the body part and adjusts the caption length so that all lines do not exceed a preset threshold. 를 포함하는 자막 파일 검사 장치.Subtitle file inspection device comprising a. 제 6 항에 있어서, The method of claim 6, 상기 자막 길이 검사부는, 상기 본문 부분 중에서 자막 길이를 검사하여 기 설정된 임계치인 설정 바이트를 넘어가면 2분할하여 두 줄로 변경하거나 3분할하여 세 줄로 변경하는The subtitle length checker may be configured to check the subtitle length in the body part and to divide it into two lines by dividing it into two lines or by dividing it into three lines by dividing the set byte, which is a preset threshold. 자막 파일 검사 장치.Subtitle file inspection device. 제 7 항에 있어서, The method of claim 7, wherein 상기 자막 길이 검사부는, 상기 2분할 또는 3분할 후에 자막 길이가 상기 설정 바이트를 넘어가면 바로 이전의 싱크 스타트 시간과 바로 다음의 싱크 스타트 시간의 평균값을 싱크 스타트 시간으로 결정하여 상기 본문 부분에 새로운 싱크를 추가하는The subtitle length checker may determine the average value of the immediately previous sink start time and the next sink start time as the sync start time when the subtitle length exceeds the set byte after the two or three divisions, and add a new sink to the body part. To add 자막 파일 검사 장치.Subtitle file inspection device.
KR1020060103383A 2006-10-24 2006-10-24 Apparatus for checking caption file KR100859089B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020060103383A KR100859089B1 (en) 2006-10-24 2006-10-24 Apparatus for checking caption file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020060103383A KR100859089B1 (en) 2006-10-24 2006-10-24 Apparatus for checking caption file

Publications (2)

Publication Number Publication Date
KR20080036750A KR20080036750A (en) 2008-04-29
KR100859089B1 true KR100859089B1 (en) 2008-09-17

Family

ID=39575009

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020060103383A KR100859089B1 (en) 2006-10-24 2006-10-24 Apparatus for checking caption file

Country Status (1)

Country Link
KR (1) KR100859089B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101890141B1 (en) * 2017-09-12 2018-08-21 숭실대학교산학협력단 Apparatus and method for verifying the reliability of subtitle, recording medium for performing the method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR19990019214A (en) * 1997-08-29 1999-03-15 전주범 Main screen subtitle display control device on 2-tuner television
KR20060007639A (en) * 2004-07-20 2006-01-26 삼성전자주식회사 Data reproducing device for controlling display state of subtitle and method thereof
JP2006129097A (en) 2004-10-29 2006-05-18 Matsushita Electric Ind Co Ltd Error detection/correction apparatus of teletext data and error detection/correction program of teletext data
KR20060105396A (en) * 2005-03-29 2006-10-11 슈퍼노바 옵토일렉트로닉스 코포레이션 Light-emitting gallium nitride-based iii-v group compound semiconductor device with polarization inverted layer

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR19990019214A (en) * 1997-08-29 1999-03-15 전주범 Main screen subtitle display control device on 2-tuner television
KR20060007639A (en) * 2004-07-20 2006-01-26 삼성전자주식회사 Data reproducing device for controlling display state of subtitle and method thereof
JP2006129097A (en) 2004-10-29 2006-05-18 Matsushita Electric Ind Co Ltd Error detection/correction apparatus of teletext data and error detection/correction program of teletext data
KR20060105396A (en) * 2005-03-29 2006-10-11 슈퍼노바 옵토일렉트로닉스 코포레이션 Light-emitting gallium nitride-based iii-v group compound semiconductor device with polarization inverted layer

Also Published As

Publication number Publication date
KR20080036750A (en) 2008-04-29

Similar Documents

Publication Publication Date Title
US8447171B2 (en) Storage medium for storing text-based subtitle data including style information, and reproducing apparatus and method for reproducing text-based subtitle data including style information
JP4698453B2 (en) Commercial detection device, video playback device
US6470089B2 (en) Data recording/reproducing apparatus, data recording/reproducing method applied to the apparatus, and computer program product used in data processing apparatus
US20040033059A1 (en) Image recording/reproducing apparatus having enhanced ability to recover motion picture data in the event of recording error
KR100859089B1 (en) Apparatus for checking caption file
US20070203842A1 (en) Transmission device
JP2007165981A (en) Information processing apparatus and control program thereof
US20040228621A1 (en) DVD player and optical disk reprodusing apparatus
JP2005072799A (en) Recording apparatus and recording method
KR200315952Y1 (en) Self-manageable subtitle reproducing apparatus
JP4380388B2 (en) Editing method, recording / reproducing apparatus, program, and recording medium
JP2008226365A (en) Sound reproducing device and method
KR100785206B1 (en) Device and method for displaying caption language on the divx playing system
JP2008217946A (en) Reproducing device
JP2000082258A (en) Data reproducing device
KR100693672B1 (en) Method for serving multimedia contents in optical disc player
KR20040079690A (en) Self-manageable subtitle reproducing apparatus, and method therefor
JP2004163672A (en) Audio processing method
JP2007214607A (en) Video acoustic content recording device and recording method
KR20050015182A (en) Apparatus and method for processing information using closed caption data line
JP2005051626A (en) Recorder, recording method, program and recording medium
KR20070110661A (en) Method for playing a subtitles in a divx video player
MXPA06009467A (en) Storage medium for storing text-based subtitle data including style information, and apparatus and method reproducing thereof
JP2007141407A (en) Recording media, and recording and reproducing system using the same
JP2007087471A (en) Recording and reproducing apparatus

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
LAPS Lapse due to unpaid annual fee