KR100915798B1 - Method for recording digital broadcasting by enhanced compressing format - Google Patents

Method for recording digital broadcasting by enhanced compressing format Download PDF

Info

Publication number
KR100915798B1
KR100915798B1 KR1020080007713A KR20080007713A KR100915798B1 KR 100915798 B1 KR100915798 B1 KR 100915798B1 KR 1020080007713 A KR1020080007713 A KR 1020080007713A KR 20080007713 A KR20080007713 A KR 20080007713A KR 100915798 B1 KR100915798 B1 KR 100915798B1
Authority
KR
South Korea
Prior art keywords
data
digital broadcast
pts
pts value
value
Prior art date
Application number
KR1020080007713A
Other languages
Korean (ko)
Other versions
KR20090081702A (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 KR1020080007713A priority Critical patent/KR100915798B1/en
Publication of KR20090081702A publication Critical patent/KR20090081702A/en
Application granted granted Critical
Publication of KR100915798B1 publication Critical patent/KR100915798B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/91Television signal processing therefor
    • H04N5/92Transformation of the television signal for recording, e.g. modulation, frequency changing; Inverse transformation for playback
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/188Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a video data packet, e.g. a network abstraction layer [NAL] unit
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/434Disassembling of a multiplex stream, e.g. demultiplexing audio and video streams, extraction of additional data from a video stream; Remultiplexing of multiplex streams; Extraction or processing of SI; Disassembling of packetised elementary stream
    • H04N21/4341Demultiplexing of audio and video streams

Abstract

본 발명은 개선된 압축 포맷에 의한 디지털 방송 녹화 기술에 관한 것으로, 특히 비디오 데이터와 오디오 데이터와 같이 서로 다른 종류의 데이터를 동기화할 수 있도록 디지털 방송 신호에 실려 있는 TS 데이터의 PTS값을 개선하고 새로운 압축 포맷의 디지털 방송 데이터를 저장함으로써 단순 재생 기능 이외에 다양한 기능을 구현할 수 있는 디지털 방송 녹화 기술에 관한 것이다. 본 발명에 따르면 수신된 TS 데이터의 PTS값이 불규칙한 분포를 보이더라도 비디오 데이터와 오디오 데이터를 동기화시킬 수 있으며, 디지털 방송 데이터의 전체 재생 시간을 정확하게 산출할 수 있는 효과가 있다. 또한, TS 데이터만으로는 구현하기 힘든 빨리 감기, 되감기, 배속 재생 등의 기능을 손쉽게 구현할 수 있는 효과가 있다.The present invention relates to a digital broadcast recording technique using an improved compression format. In particular, the present invention improves the PTS value of TS data contained in a digital broadcast signal so that different types of data such as video data and audio data can be synchronized. The present invention relates to a digital broadcast recording technology capable of implementing various functions in addition to a simple playback function by storing digital broadcast data in a compressed format. According to the present invention, even if the PTS value of the received TS data shows an irregular distribution, the video data and the audio data can be synchronized, and the total reproduction time of the digital broadcast data can be accurately calculated. In addition, it is possible to easily implement a function such as fast forward, rewind, and double speed playback, which are difficult to implement with TS data alone.

디지털 방송, DMB, 모바일 방송, PTS, 동기화, 녹화 Digital Broadcasting, DMB, Mobile Broadcasting, PTS, Synchronization, Recording

Description

개선된 압축 포맷에 의한 디지털 방송 녹화 방법{Method for recording digital broadcasting by enhanced compressing format}Method for recording digital broadcasting by enhanced compressing format

본 발명은 개선된 압축 포맷에 의한 디지털 방송 녹화 기술에 관한 것으로, 특히 비디오 데이터와 오디오 데이터와 같이 서로 다른 종류의 데이터를 동기화할 수 있도록 디지털 방송 신호에 실려 있는 TS 데이터의 PTS값을 개선하고 새로운 압축 포맷의 디지털 방송 데이터를 저장함으로써 단순 재생 기능 이외에 다양한 기능을 구현할 수 있는 디지털 방송 녹화 기술에 관한 것이다.The present invention relates to a digital broadcast recording technique using an improved compression format. In particular, the present invention improves the PTS value of TS data contained in a digital broadcast signal so that different types of data such as video data and audio data can be synchronized. The present invention relates to a digital broadcast recording technology capable of implementing various functions in addition to a simple playback function by storing digital broadcast data in a compressed format.

디지털 방송은 여러 채널의 방송 컨텐츠를 모아서 오디오 데이터와 비디오 데이터로 분리하고, 일정한 압축 포맷으로 인코딩한 후에 188바이트 단위로 분리하여 TS 데이터를 생성한다. 그리고, TS 데이터를 디지털 방송 신호에 실어서 지상파, 위성, 케이블 등으로 수신자에게 전송한다.Digital broadcasting collects broadcast contents of several channels, separates them into audio data and video data, encodes them into a predetermined compressed format, and then separates them into units of 188 bytes to generate TS data. The TS data is loaded on a digital broadcast signal and transmitted to the receiver through a terrestrial wave, satellite, or cable.

최근에는 모바일 단말기를 통해서도 디지털 방송을 수신할 수 있는 디지털 전송 기술이 개발되고 있으며, 휴대폰 등과 결합되어 DMB 방송을 수신할 수 있는 휴대용 디지털 방송 단말기가 출시되고 있다.Recently, a digital transmission technology capable of receiving digital broadcasting through a mobile terminal has been developed, and a portable digital broadcasting terminal capable of receiving DMB broadcasting in combination with a mobile phone has been released.

디지털 방송을 처음 수신하면 TS 데이터의 형태로 저장되지만 TS 데이터 그 자체로는 단순 재생 및 멈춤 기능 이외의 기능을 구현하기가 쉽지 않다. 즉, TS 데이터에 포함된 PTS값은 한정된 비트 공간 내에서 증가하는 값이므로 항상 증가하는 값이 아니며 때로는 불규칙하게 증가 혹은 감소할 수 있는 값이기 때문에 PTS값만으로는 디지털 방송 데이터의 재생 시점과 총 재생시간을 정확하게 파악할 수 없는 문제점이 있다.When a digital broadcast is first received, it is stored in the form of TS data, but TS data itself is not easy to implement functions other than the simple play and stop function. That is, since the PTS value included in the TS data is a value that increases in a limited bit space, it is not always an increase value, and may sometimes increase or decrease irregularly. There is a problem that can not accurately grasp.

또한, 위와 같은 이유로 디지털 방송 데이터의 각 프레임의 정확한 재생 시점을 파악할 수 없기 때문에 빨리 감기나 되감기 등의 특별한 재생 기능을 구현하기가 용이하지 않으므로 사용자의 입장에서 디지털 방송을 녹화하고 바로 재생하는데 많은 불편을 초래할 수 있는 문제점이 있다. In addition, since it is not easy to implement a special playback function such as fast forwarding or rewinding because the exact playback time of each frame of digital broadcast data cannot be determined for the above reason, it is inconvenient to record and immediately play a digital broadcast from the user's point of view. There is a problem that may result.

따라서, 디지털 방송 데이터를 영구적으로 보관하기 위해서는 보다 압축된 포맷으로 인코딩한 파일을 생성하여 저장하는 것이 바람직하다. 그러나, 일반적인 압축 포맷으로 디지털 데이터를 인코딩하는데는 다소 시간이 지연될 뿐만 아니라 복잡한 연산 과정을 필요로 하며, 일반 디지털 텔레비전이 아닌 모바일 디지털 방송 단말기를 통해 디지털 방송을 인코딩하는 데에는 많은 하드웨어적인 자원의 한계를 초래할 수 있는 문제점이 있다.Therefore, in order to permanently store digital broadcast data, it is desirable to generate and store a file encoded in a more compressed format. However, encoding digital data in a general compression format is not only time consuming, but also requires complicated computational processes, and is a limitation of many hardware resources in encoding digital broadcasting through a mobile digital broadcasting terminal rather than a general digital television. There is a problem that may result.

본 발명의 목적은 디지털 방송 신호에 포함된 비디오 데이터와 오디오 데이터를 동기화시키며 TS 데이터만으로는 구현하기 힘든 고압축 포맷 일반 동영상의 FF(fast forward) & REW(rewind) 등의 기능을 구현할 수 있는 디지털 방송 녹화 기술을 제공하는 것이다.An object of the present invention is to synchronize the video data and audio data included in the digital broadcast signal, and digital broadcast recording that can implement functions such as FF (fast forward) & REW (rewind) of a high-compression format general video, which is difficult to realize only by TS data. To provide technology.

본 발명에 따른 개선된 압축 포맷에 의한 디저털 방송 녹화 방법은, (a) 복수 종류의 패킷 데이터가 혼합된 디지털 방송 신호를 수신하는 단계; (b) 디지털 방송 신호를 패킷 데이터의 종류별로 분리하고 녹화 제어신호가 발생하면 프레임 순으로 순차적으로 판독하는 단계; (c) 복수 종류의 패킷 데이터에 프레임별 저장된 PTS값을 추출하는 단계; (d) 복수 종류의 패킷 데이터 각각에 있어서, 현재 프레임에 대한 누적 PTS값을 생성하고, 생성된 누적 PTS값을 각 프레임마다 할당하여 미리 설정된 압축포맷에 따른 디지털 방송 데이터를 생성하는 단계; 및 (e) 생성된 디지털 방송 데이터를 저장하는 단계를 포함하여 구성된다.A digital broadcast recording method according to an improved compression format according to the present invention includes the steps of: (a) receiving a digital broadcast signal mixed with a plurality of types of packet data; (b) dividing the digital broadcast signal by the type of packet data and sequentially reading the frames in order of frames when a recording control signal is generated; (c) extracting a PTS value stored for each frame in a plurality of types of packet data; (d) generating a cumulative PTS value for the current frame in each of the plurality of types of packet data, and allocating the generated cumulative PTS value for each frame to generate digital broadcast data according to a preset compression format; And (e) storing the generated digital broadcast data.

본 발명에 따르면 수신된 TS 데이터의 PTS값이 불규칙한 분포를 보이더라도 비디오 데이터와 오디오 데이터를 동기화시킬 수 있으며, 디지털 방송 데이터의 전 체 재생 시간을 정확하게 산출할 수 있는 효과가 있다.According to the present invention, even if the PTS value of the received TS data shows an irregular distribution, the video data and the audio data can be synchronized, and the total reproduction time of the digital broadcast data can be accurately calculated.

또한, TS 데이터만으로는 구현하기 힘든 빨리 감기, 되감기, 배속 재생 등의 기능을 손쉽게 구현할 수 있는 효과가 있다.In addition, it is possible to easily implement a function such as fast forward, rewind, and double speed playback, which are difficult to implement with TS data alone.

이하, 본 발명의 실시예를 첨부된 도면을 참조하여 상세하게 설명한다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings.

도 1은 방송국에서 송출된 디지털 방송 신호를 디지털 방송 단말기를 통해 수신하기 위한 디지털 방송 시스템의 전체 시스템 구성을 나타낸 도면이다.1 is a diagram showing the overall system configuration of a digital broadcasting system for receiving a digital broadcasting signal transmitted from a broadcasting station through a digital broadcasting terminal.

디지털 방송은 ATSC, DVB-T 등으로 대표되는 지상파 텔레비전 방송 외에도 DMB, ISDB-T 등 이동환경에 쓰이도록 개발된 모바일 디지털 멀티미디어 방송 기술을 포함하며, 여기에서는 DMB 서비스를 중심으로 설명하기로 한다.In addition to terrestrial television broadcasts such as ATSC and DVB-T, digital broadcasting includes mobile digital multimedia broadcasting technology developed for mobile environments such as DMB and ISDB-T. Here, the DMB service will be described.

지상파 DMB의 경우, 방송국(10)에서 각 채널별 방송 컨텐츠를 특정 압축포맷으로 인코딩하여 비디오 데이터와 오디오 데이터가 포함된 패킷 데이터를 생성한다.In the case of terrestrial DMB, the broadcast station 10 encodes broadcast content for each channel in a specific compression format to generate packet data including video data and audio data.

그리고, 방송국(10)에서는 방송 네트워크(20)를 통해 방송 컨텐츠가 포함된 패킷 데이터를 디지털 방송 신호에 실어서 각 매체를 통해 송신한다.In addition, the broadcasting station 10 loads packet data including broadcast contents through a broadcast network 20 in a digital broadcast signal and transmits the data through each medium.

예컨대, 중계기(30)를 통해 디지털 방송 신호를 반송 주파수에 실어 송출하면 디지털 방송 단말기(40)에서 디지털 방송 신호를 수신하고, 디지털 방송 신호로부터 패킷 데이터를 추출하여 비디오 데이터와 오디오 데이터를 분리해낸 후 디코딩하여 화면과 스피커로 출력 가능한 신호를 재생해낸다.For example, when the digital broadcast signal is transmitted on the carrier frequency through the repeater 30, the digital broadcast terminal 40 receives the digital broadcast signal, extracts packet data from the digital broadcast signal, and separates the video data and the audio data. Decodes and reproduces the signal that can be output to the screen and speakers.

만약, 위성 DMB의 경우라면 방송국(10)에서 다양한 채널의 각종 컨텐츠를 Ku밴드 주파수를 통해 인공위성(50)으로 쏘아 올리며, 인공위성(50)에서는 DMB용으로 할당된 S밴드 주파수를 통해 지상의 디지털 방송 단말기(40)로 뿌려줌으로써 디지털 방송 전송이 이루어진다.In the case of satellite DMB, the broadcasting station 10 launches various contents of various channels to the satellite 50 through the Ku band frequency, and the satellite 50 broadcasts the terrestrial digital broadcasting through the S-band frequency allocated for the DMB. By spraying to the terminal 40, digital broadcast transmission is performed.

도 2는 본 발명에 따른 개선된 압축 포맷에 의한 디지털 방송 녹화 방법의 전체 동작과정을 나타낸 순서도이다.2 is a flowchart showing the overall operation of the digital broadcast recording method according to the improved compression format according to the present invention.

먼저, 디지털 방송 단말기에서 복수 종류의 패킷 데이터가 혼합된 디지털 방송 신호를 수신하고 디지털 방송 신호를 패킷 데이터의 종류별로 분리한다(ST10). 이때, 복수 종류의 패킷 데이터는 일반적으로 비디오 데이터와 오디오 데이터를 의미하지만, 비디오와 오디오 데이터 이외의 다른 데이터에도 적용될 수 있으므로 서로 다른 'A 데이터'와 'B 데이터'로 지칭할 수도 있다. 또한, 2 종류의 데이터뿐만 아니라 3종류 이상의 다중 패킷 데이터의 경우에도 적용될 수 있다. 도 2, 도3, 도 4의 경우 비디오 데이터와 오디오 데이터의 경우를 예로 들어 설명하기로 한다.First, a digital broadcast terminal receives a digital broadcast signal mixed with a plurality of types of packet data, and separates the digital broadcast signal for each type of packet data (ST10). In this case, the plurality of types of packet data generally mean video data and audio data, but may be referred to as 'A data' and 'B data' because they may be applied to other data other than video and audio data. In addition, the present invention can be applied not only to two kinds of data but also to three or more kinds of multi-packet data. 2, 3 and 4 will be described taking the case of video data and audio data as an example.

디지털 방송 신호를 수신한 후, 디지털 방송 단말기 사용자가 녹화 버튼을 누르는 등의 동작으로 인해 녹화 제어신호가 발생하면(ST20), 패킷 데이터의 종류별로 분리된 비디오 데이터와 오디오 데이터를 프레임 순으로 순차적으로 판독한다(ST30).After receiving the digital broadcast signal, when the recording control signal is generated due to an operation such as pressing a recording button by the user of the digital broadcasting terminal (ST20), the video data and the audio data separated according to the type of packet data are sequentially ordered in the frame order. Read (ST30).

디지털 방송 신호로부터 복원된 비디오 데이터와 오디오 데이터는 프레임 단위로 화면과 오디오 신호를 구성하며, 초당 30 ~ 60개 정도의 프레임을 포함하고 있다. 엠펙 포맷에 의해 구성된 화면은 I, B, P의 3개의 프레임으로 구성되지만, DMB 방송으로 한정할 경우 I, P의 2개 프레임만으로 구성되므로 비디오 데이터 내에 프레임이 순차적으로 배치되어 있다고 볼 수 있다.Video data and audio data reconstructed from a digital broadcast signal constitute a screen and audio signal in units of frames, and contain 30 to 60 frames per second. The screen configured by the MPEG format is composed of three frames of I, B, and P. However, when limited to DMB broadcasting, the screen is composed of only two frames of I, P. Therefore, it can be said that frames are sequentially arranged in video data.

비디오 데이터와 오디오 데이터를 판독한 후에는 각 데이터에 프레임별로 저장된 PTS값을 추출한다(ST40).After reading the video data and the audio data, PTS values stored for each frame are extracted (ST40).

방송국에서 엠펙 포맷으로 생성된 비디오 데이터와 오디오 데이터에는 프레임 단위로 PTS(presentation time stamp)값이 저장되어 있으며, PTS값은 현재 프레임의 재생 시점을 나타내는 값이다. 하지만, PTS값을 나타내는 비트 크기가 한정되어 있으므로 PTS값이 최대값 이상으로 증가하면 한정된 비트로 표현 가능한 수치를 계속 반복하여 증가한다. 따라서, PTS값만으로 절대적인 재생 시점을 파악할 수는 없으며, 다른 데이터를 참조해야 한다. 따라서, 이후 과정에서는 추출된 PTS값을 이용하여 각 프레임의 절대적인 재생 시점을 알 수 있는 정보를 생성한다.In the video data and audio data generated in the MPEG format by the broadcasting station, a presentation time stamp (PTS) value is stored in units of frames, and the PTS value is a value representing a playback time of the current frame. However, since the bit size representing the PTS value is limited, when the PTS value increases above the maximum value, the numerical value that can be represented by the limited bit is repeatedly increased. Therefore, the absolute playback time cannot be determined only by the PTS value, but other data must be referred to. Therefore, in the subsequent process, the information to know the absolute playback time of each frame is generated using the extracted PTS value.

즉, 비디오 데이터와 오디오 데이터 각각에 있어서, 현재 프레임에 대한 누적 PTS값을 생성하고, 생성된 누적 PTS값을 비디오 데이터와 오디오 데이터의 각 프레임마다 할당하여 미리 설정된 압축포맷에 따른 디지털 방송 데이터를 생성한다(ST50). 누적 PTS값은 본래 디지털 데이터의 각 프레임마다 저장된 PTS값이 최대값 이상으로 증가하더라도 계속 증가할 수 있도록 데이터 공간의 크기를 확보한 후 본래 PTS값을 가공한 것으로서, 데이터 표현 가능 최대값을 넘어 반복되는 일이 없도록 데이터 공간의 크기를 설정한다. 누적 PTS값의 보다 구체적인 산출과정에 대해서는 도 3을 통해 보다 상세히 설명하기로 한다.That is, in each of the video data and the audio data, a cumulative PTS value for the current frame is generated, and the generated cumulative PTS value is allocated to each frame of the video data and the audio data to generate digital broadcast data according to a preset compression format. (ST50) The cumulative PTS value is a processing of the original PTS value after securing the size of the data space so that it can continue to increase even if the stored PTS value for each frame of the digital data increases above the maximum value. Set the size of the data space so that it doesn't happen. A more detailed calculation process of the cumulative PTS value will be described in more detail with reference to FIG. 3.

그리고, 디지털 방송 단말기 내에서 생성된 특정 압축 포맷의 디지털 방송 데이터를 저장한다(ST60). 이때, 생성되는 특정 압축 포맷은 디지털 방송 데이터의 각 프레임마다 앞서 생성된 누적 PTS값이 저장되도록 만들어진 압축 포맷으로서 다양한 방식을 제시할 수 있으며, 본 발명에서는 확장자가 AVI로 표시되는 RIFF 포맷을 이용하여 누적 PTS값을 저장할 수 있는 디지털 방송 데이터를 생성하는 방법을 제시하고자 한다.Then, digital broadcast data of a specific compression format generated in the digital broadcast terminal is stored (ST60). In this case, the generated specific compression format is a compression format in which a previously generated cumulative PTS value is stored for each frame of digital broadcast data, and can be presented in various ways. In the present invention, the RIFF format whose extension is represented by AVI The present invention provides a method of generating digital broadcast data capable of storing a cumulative PTS value.

RIFF(resource iinterchange file format) 포맷은 비디오, 오디오 및 이미지의 파일간 변환 및 수정을 위한 포맷으로서, 그 중 AVI(audio/video interlaced file format) 파일 포맷은 1992년에 마이크로소프트사에 의해 처음 소개된 멀티미디어 압축 포맷이다.The resource iinterchange file format (RIFF) format is a format for converting and modifying video, audio, and images between files. The AVI (audio / video interlaced file format) file format was first introduced by Microsoft in 1992. It is a multimedia compression format.

AVI 파일은 기본적으로 청크(chunk) 단위로 구성되며, 모든 AVI 파일은 RIFF 'AVI'라는 부모 청크와 List 'hdrl', List 'movi', index의 3개의 자식 청크로 구성된다. 그리고, 각 자식 청크 내에는 자세한 정보를 가지는 복수 개의 청크가 포함되어 있다.AVI files are basically composed of chunks, and all AVI files consist of a parent chunk named RIFF 'AVI', and three child chunks: List 'hdrl', List 'movi', and index. Each child chunk contains a plurality of chunks having detailed information.

이 중에서 인덱스 청크(index chunk)는 청크 식별자, 플래그(flag), 옵셋(offset), 길이(length)의 4가지 값을 갖는데, 본 발명에서는 인덱스 청크의 플래그 영역을 이용하여 누적 PTS값을 저장한다.Among these, the index chunk has four values of a chunk identifier, a flag, an offset, and a length. In the present invention, the cumulative PTS value is stored using a flag region of the index chunk. .

본래의 RIFF 포맷에서 인덕스 청크의 플래그 영역에는 현재의 프레임이 I-프레임인지를 확인할 수 있는 정보가 저장되어 있다. 여기서, I-프레임은 다른 프레임을 복원하기 위해 가장 먼저 참조되는 프레임을 의미한다.In the original RIFF format, the flag area of the induct chunk stores information for identifying whether the current frame is an I-frame. Here, the I-frame means a frame that is first referenced to recover another frame.

따라서, 인덱스 청크의 플래그 영역에 누적 PTS값을 저장하고 나면, 인덱스 청크의 플래그 영역에 본래 저장되어 있던 I-프레임 여부 확인 정보를 다른 영역에 저장해야 한다. 본 발명에서는 인덱스 청크의 길이(length) 영역 중 일부 비트를 사용하여 현재 프레임의 I 프레임 여부 확인 정보를 저장하도록 한다. 예컨대, 길이 영역의 상위 비트가 1인지 0인지에 따라 I 프레임 여부를 나타내도록 설정하며, 길이 영역에 이미 저장된 데이터가 아무리 큰 값이더라도 해당 비트에 영향을 주지 않고 두 가지 정보를 모두 저장할 수 있다.Therefore, after storing the cumulative PTS value in the flag area of the index chunk, the I-frame presence information originally stored in the flag area of the index chunk must be stored in another area. In the present invention, some bits of the length region of the index chunk are used to store I frame presence information of the current frame. For example, it is set to indicate whether or not an I frame according to whether the upper bit of the length area is 1 or 0. Even if the data already stored in the length area is a large value, both information can be stored without affecting the corresponding bit.

이상의 과정을 통해 녹화 명령 발생 이후에 수신된 디지털 방송 신호로부터 누적 PTS값을 포함하는 특정 압축 포맷의 디지털 방송 데이터를 생성하고 저장하는 과정을 녹화 종료 명령이 발생하기 전까지 계속 반복한다(ST70). 그러나, 녹화 명령이 발생하지 않은 경우라면 디지털 방송 데이터를 생성하여 저장할 필요가 없으므로 수신된 디지털 방송 신호를 실시간으로 디코딩하여 재생하는 동작만을 수행한다(ST80).Through the above process, the process of generating and storing digital broadcast data of a specific compression format including a cumulative PTS value from the digital broadcast signal received after the recording command generation is repeated until the recording end command is generated (ST70). However, if the recording command does not occur, there is no need to generate and store digital broadcast data, so only the operation of decoding and playing the received digital broadcast signal in real time is performed (ST80).

도 3은 도 2에서 누적 PTS값을 포함하는 디지털 방송 데이터를 생성하는 단계(ST50)의 동작과정을 보다 상세히 나타낸 순서도이다.FIG. 3 is a flowchart illustrating an operation process of generating digital broadcast data including a cumulative PTS value in FIG. 2 (ST50) in more detail.

먼저, 비디오 데이터와 오디오 데이터 각각에 있어서, 각 데이터의 현재 프레임의 PTS값과 이전 프레임의 PTS값의 차(이하, 'PTS 간격'이라 함)을 산출하고(ST51), 산출된 현재 프레임의 PTS 간격이 미리 설정된 제 1 기준 범위를 벗어나지 않는 정상적인 수치를 나타내는 동안(ST52) 각 프레임 단위로 PTS 간격을 누적 하여 누적 PTS값을 산출하고 이를 현재 프레임에 저장한다(ST57). 예컨대, PTS 간격이 0에서 5초 사이의 값을 나타내면 PTS값이 정상적인 경우로 판단한다.First, in each of the video data and the audio data, the difference between the PTS value of the current frame of each data and the PTS value of the previous frame (hereinafter referred to as a 'PTS interval') is calculated (ST51), and the PTS of the calculated current frame is calculated. While the interval represents a normal value that does not deviate from the preset first reference range (ST52), the cumulative PTS value is calculated by accumulating the PTS interval in each frame unit and stored in the current frame (ST57). For example, if the PTS interval indicates a value between 0 and 5 seconds, it is determined that the PTS value is normal.

즉, 이전 프레임의 PTS값이 1000이고 현재 프레임의 PTS값이 1030이라면 1030-1000=30이므로 현재 프레임을 기준으로 한 PTS 간격은 30이 된다. PTS값이 0~999까지 표현 가능하다면 930, 960, 990으로 증가하다가 1020으로 증가하지 못하고 20, 50...으로 이어지는 경우가 발생할 수 있지만 PTS 간격은 여전히 30으로 산출 가능하므로 PTS 간격을 누적하여 산출된 누적 PTS값은 계속 증가하는 값을 가지게 된다.That is, if the PTS value of the previous frame is 1000 and the PTS value of the current frame is 1030, since 1030-1000 = 30, the PTS interval based on the current frame is 30. If the PTS value can be expressed from 0 to 999, it may increase to 930, 960, and 990, but not to 1020, but may lead to 20, 50, etc. The calculated cumulative PTS value continues to increase.

이때, 비디오 데이터 또는 오디오 데이터 중 어느 하나의 PTS 간격이 제 1 기준 범위를 벗어나면(ST52), 데이터 전송이 정상적인 경우가 아니라고 판단되므로 PTS 간격을 통해 누적 PTS값을 산출하는 대신 PTS 간격의 평균값을 적용하여 누적 PTS값을 산출한다. 비디오 데이터의 PTS 간격이 5초 이상의 차를 나타내면 비정상적인 상황으로 판단한다.At this time, if the PTS interval of either the video data or the audio data is out of the first reference range (ST52), it is determined that the data transmission is not normal, so instead of calculating the cumulative PTS value through the PTS interval, the average value of the PTS intervals is calculated. Apply to calculate the cumulative PTS value. If the PTS interval of the video data shows a difference of 5 seconds or more, it is determined to be an abnormal situation.

즉, 해당 데이터의 프레임 간의 PTS값의 변화값을 평균적으로 구함으로써 PTS 간격 평균값을 산출하고(ST53), 해당 데이터의 이전 프레임의 누적 PTS값에 해당 데이터의 PTS 간격 평균값을 더하여 누적 PTS값을 산출하여 현재 프레임에 저장한다(ST54).That is, the average value of the PTS intervals is calculated by obtaining the average change value of the PTS values between the frames of the data (ST53), and the cumulative PTS value is calculated by adding the average value of the PTS intervals of the data to the cumulative PTS value of the previous frame of the data. To store in the current frame (ST54).

그러나, 비디오 데이터 또는 오디오 데이터 중 어느 하나의 PTS 간격이 제 1 기준 범위를 벗어나지만 현재 프레임을 기준으로 비디오 데이터의 PTS값과 오디오 데이터의 PTS값의 차가 미리 설정된 제 2 기준 범위를 벗어나지 않으면(ST55), 비 디오 데이터와 오디오 데이터의 PTS값이 허용범위 밖으로 벗어났다가 한쪽의 PTS값이 불규칙하게 변경되면서 다시 두 개의 PTS값이 허용범위 내로 돌아온 것으로 판단한다. 예컨대, 비디오 데이터의 PTS 간격이 5초 이상의 차를 나타내지만 오디오 데이터와의 PTS값의 차이가 3초 미만을 나타내는 경우를 생각할 수 있다.However, if the PTS interval of either the video data or the audio data is out of the first reference range, but the difference between the PTS value of the video data and the PTS value of the audio data based on the current frame does not exceed the preset second reference range (ST55). ), It is determined that the PTS values of the video data and the audio data are outside the allowable range, and then the two PTS values are returned within the allowable range as one PTS value is changed irregularly. For example, the case where the PTS interval of video data shows a difference of 5 seconds or more, but the difference in PTS value with audio data shows less than 3 seconds can be considered.

이 경우에 두 종류의 데이터의 기준값이 달라지는 경우가 발생할 수 있으므로 비디오 데이터와 오디오 데이터를 동기화시킬 필요가 있다. 따라서, 비디오 데이터의 누적 PTS값을 오디오 데이터의 누적 PTS값에 맞추어 보정함으로써 비디오 데이터와 오디오 데이터를 동기화시킨다(ST56).In this case, since the reference values of the two types of data may be different, it is necessary to synchronize the video data and the audio data. Accordingly, the video data and the audio data are synchronized by correcting the cumulative PTS value of the video data according to the cumulative PTS value of the audio data (ST56).

도 4는 도 2의 전체 동작과정에 추가되는 디지털 방송 데이터의 재생 단계 및 FF/REW 등의 트릭 플레이 구현 단계를 추가하여 나타낸 순서도이다.FIG. 4 is a flowchart illustrating an additional step of reproducing digital broadcast data and implementing trick play such as FF / REW in addition to the overall operation of FIG. 2.

본 발명에서 제시하는 압축 포맷에 의해 디지털 방송 데이터를 생성하여 저장할 때, 나중에 디지털 방송 데이터를 재생하기 위해서 필요한 정보를 생성해야 한다.When generating and storing digital broadcast data by the compression format proposed by the present invention, information necessary for reproducing the digital broadcast data must be generated later.

이를 위해, 디지털 방송 신호로부터 SPS(sequence parameter set)와 PPS(picture parameter set)를 추출하여 디지털 방송 데이터의 비디오 영역 앞부분에 추가하고, 디지털 방송 신호로부터 오디오 디코더 스펙 정보를 추출하여 디지털 방송 데이터의 오디오 영역 앞부분에 추가함으로써 디지털 방송 데이터를 생성한다(ST90).To this end, a sequence parameter set (SPS) and a picture parameter set (PPS) are extracted from the digital broadcast signal and added to the front of the video region of the digital broadcast data, and audio decoder specification information is extracted from the digital broadcast signal to extract audio from the digital broadcast data. The digital broadcast data is generated by adding it to the front of the area (ST90).

여기서 SPS와 PPS는 비디오 재생을 위해 비디오 디코더를 초기화하는데 필요 한 정보이며, 오디오 디코더 스펙 정보는 오디오 재생을 위해 오디오 디코더를 초기화하는데 필요한 정보이다. SPS, PPS, 오디오 디코더 스펙 정보를 이용하여 디코딩 정보를 저장하는 방식은 T-DMB의 경우에 적용되며, ISDB-T, DVB-T 등의 디지털 방송의 경우에는 다른 방식을 통해 디코딩에 필요한 부가 정보를 저장하도록 구현할 수도 있다.Here, SPS and PPS are information required to initialize the video decoder for video playback, and audio decoder specification information is information necessary to initialize the audio decoder for audio playback. The method of storing decoding information by using SPS, PPS, and audio decoder specification information is applied to T-DMB, and in case of digital broadcasting such as ISDB-T and DVB-T, additional information necessary for decoding through other methods is used. It can also be implemented to store.

디지털 방송 데이터가 생성 및 저장된 후, 사용자의 재생 버튼 조작 등의 동작으로 재생 명령이 발생하면 앞서 과정들을 거쳐 녹화된 디지털 방송 데이터를 디코딩하여 재생한다(ST100).After the digital broadcast data is generated and stored, if a playback command is generated by an operation such as a user's play button operation, the digital broadcast data recorded through the above process is decoded and reproduced (ST100).

이때, 사용자의 키 조작 등 외부 사용자 제어신호에 따른 FF/REW 제어신호가 발생하면(ST110), 디지털 방송 데이터의 각 프레임마다 저장된 누적 PTS값을 통해 각 프레임의 재생시점을 산출하고 FF/REW 등의 제어신호에 대응하여 디지털 방송 데이터의 재생 위치를 이동시킨다(ST120). 즉, RIFF 포맷의 인덱스 청크의 플래그 영역에 저장해둔 누적 PTS값을 참조하면 디지털 방송 데이터의 절대적인 재생시점을 확인할 수 있으므로, FF나 REW 등의 트릭 플레이 동작을 구현하는 것이 용이해진다.At this time, if an FF / REW control signal is generated according to an external user control signal such as a user's key operation (ST110), the playback time of each frame is calculated using the cumulative PTS value stored for each frame of digital broadcast data, and the FF / REW, etc. The playback position of the digital broadcast data is shifted in correspondence with the control signal of step S120. That is, by referring to the accumulated PTS value stored in the flag chunk area of the index chunk in the RIFF format, it is possible to confirm the absolute reproduction time of the digital broadcast data, thereby facilitating the implementation of trick play operations such as FF and REW.

도 5는 디지털 방송 신호에 실려있는 PTS값이 불규칙하여 변경되는 상황들을 나열한 예시도이다.5 is an exemplary diagram listing situations in which the PTS value included in the digital broadcast signal is changed irregularly.

앞서 도 3에서 비디오 데이터와 오디오 데이터의 PTS값이 허용범위 밖으로 벗어났다가 한쪽의 PTS값이 불규칙하게 변경되면서 다시 두 개의 PTS값이 허용범위 내로 돌아온 경우들을 나타낸 것으로서, 도 5에서는 비디오 데이터와 오디오 데이터 대신 A 데이터와 B 데이터로 표현하였다.3 illustrates a case in which the PTS values of the video data and the audio data are outside the allowable ranges, and then two PTS values are returned within the allowable ranges while one PTS value is irregularly changed. Instead of the data, A data and B data are represented.

아래 설명된 4가지 경우에서 PTS값의 증가대신 감소, 감소대신 증가로 표현을 일괄적으로 바꾼 경우도 모두 해당된다.In the four cases described below, this is also the case when the expression is collectively changed by decreasing instead of increasing or decreasing the PTS value.

■ CASE 1 : A 데이터의 PTS값이 증가하여 B 데이터의 PTS값과 차이가 벌어졌으나, 그 다음에 B 데이터의 PTS값이 증가하여 두 데이터간의 PTS값의 차이가 다시 일정해졌다.■ CASE 1: The PTS value of A data is increased and it is different from the PTS value of B data. Then, the PTS value of B data is increased, and the difference between PTS values between two data becomes constant again.

■ CASE 2 : A 데이터의 PTS값이 증가하고 B 데이터의 PTS값이 감소하여 두 데이터간의 PTS값의 차이가 크게 벌어졌다. 그 다음에 A 데이터의 PTS값이 대폭 감소함으로써 두 데이터의 PTS값의 차이가 다시 일정해졌다.■ CASE 2: The PTS value of A data is increased and the PTS value of B data is decreased, so the difference of PTS value between two data is greatly widened. Then, the PTS value of the A data was greatly reduced, so that the difference between the PTS values of the two data became constant again.

■ CASE 3 : A 데이터의 PTS값이 증가하여 PTS값의 차이가 벌어지고, B 데이터의 PTS값이 감소하여 두 데이터간의 PTS값의 차이가 더욱 벌어졌다. 그 다음에 A 데이터의 PTS값이 감소하고 B 데이터의 PTS값이 증가하여 두 데이터의 PTS값의 차이가 다시 일정해졌다.■ CASE 3: The PTS value of A data increases and the difference of PTS value increases. The PTS value of B data decreases, so the difference of PTS value between two data increases. Then, the PTS value of the A data decreased and the PTS value of the B data increased, so that the difference between the PTS values of the two data became constant again.

■ CASE 4 : A 데이터의 PTS값이 증가하여 두 데이터간의 PTS값의 차이가 벌어졌으나, 그 다음에 A 데이터의 PTS값이 다시 감소하여 두 데이터간의 PTS값의 차이가 다시 일정해졌다.■ CASE 4: The PTS value of A data is increased and the difference of PTS value between two data increases. Then, the PTS value of A data is decreased again, and the difference of PTS value between two data becomes constant again.

도 6은 PTS값을 누적하는 알고리즘의 실제 구현 예를 나타낸 순서도이다.6 is a flowchart illustrating an actual implementation of an algorithm for accumulating PTS values.

녹화가 시작되면, 기준이 되는 데이터(예 : 비디오 데이터)의 현재 PTS 값(CurPTS)을 판독한다.When recording starts, the current PTS value (CurPTS) of the reference data (eg, video data) is read.

누적 PTS값은 TotalPTS = ResyncPTS + (CurPTS - StartPTS)로 정의되며, 녹화 시점에서 ResyncPTS값은 0으로 초기화된다. 그리고, StartPTS는 현재 PTS값으로 설정된다. 예컨대, PTS값이 1030, 1060, 1090... 으로 증가하면 누적 PTS값은 30, 60, 90이 된다.The cumulative PTS value is defined as TotalPTS = ResyncPTS + (CurPTS-StartPTS). At the time of recording, the ResyncPTS value is initialized to zero. StartPTS is set to the current PTS value. For example, if the PTS values increase to 1030, 1060, 1090 ..., the cumulative PTS values become 30, 60, 90.

그 다음으로, 이전 PTS값(PrevPTS)이 현재 PTS값보다 크거나, 현재 PTS값이 이전 PTS값보다 5초 이상 차이를 보이면 PTS값이 비정상적으로 증가한 것으로 판단하여, 현재의 누적 PTS값(CurTotalPTS)에 PTS 간격의 평균값(AvgIncPTS)을 더하여 이전의 누적 PTS값(PrevTotalPTS)을 산출한다. 이를 위해 StartPTS를 현재 프레임의 PTS값으로 재설정해주고, 지금까지의 누적 PTS값을 ResyncPTS에 저장한다. 즉, StartPTS = CurPTS, ResyncPTS = TotalPTS + AvgIncPTS로 설정하여, 정상적인 누적 PTS값이 산출된다.Next, if the previous PTS value (PrevPTS) is greater than the current PTS value or the current PTS value is more than 5 seconds different from the previous PTS value, it is determined that the PTS value is abnormally increased and the current cumulative PTS value (CurTotalPTS) is determined. The cumulative PTS value PrevTotalPTS is calculated by adding the average value AvgIncPTS of the PTS interval to. To do this, reset the StartPTS to the PTS value of the current frame and store the accumulated PTS value in ResyncPTS. That is, by setting StartPTS = CurPTS and ResyncPTS = TotalPTS + AvgIncPTS, a normal cumulative PTS value is calculated.

그러나, PTS값이 정상적인 증가를 보이는 경우에는, 이전의 누적 PTS값(PrevTotlaPTS)에 현재의 PTS값과 이전의 PTS값의 차로 정의되는 PTS 간격(DiffPTS)을 더하여 현재의 누적 PTS값(CurTotalPTS)을 산출한다. 그리고, 다음 단계를 위해 현재의 PTS값을 이전의 PTS값으로 설정한다.However, if the PTS value shows a normal increase, the current cumulative PTS value (CurTotalPTS) is added to the previous cumulative PTS value (PrevTotlaPTS) by adding a PTS interval (DiffPTS) defined as a difference between the current PTS value and the previous PTS value. Calculate. Then, the current PTS value is set to the previous PTS value for the next step.

앞서 PTS값이 비정상적으로 증가한 경우에, 현재 기준이 되는 데이터의 PTS값의 차가 5초 이상 또는 0 이하의 비정상 수치를 보였음에도 불구하고 타 종류 데이터(예 : 오디오 데이터)의 PTS값과의 차가 3초 이내인 경우에는, 두 데이터의 PTS값의 차가 허용범위를 벗어났다가 다시 허용범위 내로 들어온 것으로 판단하여 두 데이터를 동기화시켜줄 필요가 있다. 정상적인 상황에서는 두 데이터의 동기를 맞추기 위해 두 데이터의 PTS값이 허용되는 범위 내에서 증가해야 한다.In the case where the PTS value is abnormally increased, the difference between the PTS value of other types of data (for example, audio data) is 3 even though the difference of the PTS value of the current reference data is more than 5 seconds or less than 0. If it is within the second, it is necessary to synchronize the two data by determining that the difference between the PTS values of the two data is out of the allowable range and then back into the allowable range. Under normal circumstances, in order to synchronize the two data, the PTS value of the two data should be increased within the allowable range.

불규칙하게 PTS값이 변경된 경우, 처음에 설정된 ResyncPTS와 StartPTS가 서로 달라졌기 때문에 현 시점에서 두 데이터의 누적된 PTS값이 서로 동기화되어 있다고 확신할 수 없다.If the PTS value is changed irregularly, since the initially set ResyncPTS and StartPTS are different from each other, it is not possible to be sure that the accumulated PTS values of the two data are synchronized with each other at this time.

예컨대, 비디오 데이터와 오디오 데이터의 경우,For example, in the case of video data and audio data,

VideoResyncPTS = 2000, VideoStartPTS = 10030VideoResyncPTS = 2000, VideoStartPTS = 10030

AudioResyncPTS = 2050, AudioStartPTS = 10060AudioResyncPTS = 2050, AudioStartPTS = 10060

인 경우를 생각해보면 다음과 같다.Consider the case of.

이 경우, 오디오 데이터의 ResynaPTS값이 비디오 데이터의 경우보다 50이 크므로 누적 PTS값도 50만큼 커진다. 그러나, 오디오 데이터의 StartPTS값은 비디오 데이터의 경우보다 30이 크지만 마이너스 되는 값이므로 누적 PTS값은 30만큼 작아진다. 결과적으로 오디오 데이터의 누적 PTS값은 비디오 데이터보다 20만큼 큰 값을 갖는다.In this case, since the ResynaPTS value of the audio data is larger than that of the video data, the cumulative PTS value is also increased by 50. However, since the StartPTS value of the audio data is larger than that of the video data but is negative, the cumulative PTS value is reduced by 30. As a result, the cumulative PTS value of the audio data has a value 20 larger than that of the video data.

따라서, 비디오 데이터의 ResyncPTS에 20을 더하거나 오디오 데이터의 ResyncPTS에서 20을 빼면 두 데이터의 동기화를 달성할 수 있다. 이때, ResyncPTS의 현재값을 감소시킬 경우에 누적 PTS값이 계속 증가할 수 없는 경우가 발생할 수 있으므로, 오디오 데이터의 값을 빼는 대신 비디오 데이터의 ResyncPTS에 20을 더하여 두 데이터를 동기화시키는 방식이 바람직하다.Thus, by adding 20 to ResyncPTS of video data or subtracting 20 from ResyncPTS of audio data, synchronization of the two data can be achieved. In this case, when the current value of ResyncPTS is decreased, the cumulative PTS value may not increase continuously. Therefore, it is preferable to add 20 to ResyncPTS of video data to synchronize the two data instead of subtracting the value of audio data. .

이상에서 실시예를 들어 본 발명을 더욱 상세하게 설명하였으나, 본 발명은 반드시 이러한 실시예로 국한되는 것은 아니고, 본 발명의 기술사상을 벗어나지 않는 범위 내에서 다양하게 변형실시될 수 있다. 따라서, 본 발명에 개시된 실시예들은 본 발명의 기술 사상을 한정하기 위한 것이 아니라 설명하기 위한 것이고, 이러한 실시예에 의하여 본 발명의 기술 사상의 범위가 한정되는 것은 아니다. 본 발명의 보호 범위는 아래의 청구범위에 의하여 해석되어야 하며, 그와 동등한 범위 내에 있는 모든 기술 사상은 본 발명의 권리범위에 포함되는 것으로 해석되어야 할 것이다.Although the present invention has been described in more detail with reference to the examples, the present invention is not necessarily limited to these embodiments, and various modifications can be made without departing from the spirit of the present invention. Therefore, the embodiments disclosed in the present invention are not intended to limit the technical idea of the present invention but to describe the present invention, and the scope of the technical idea of the present invention is not limited by these embodiments. The protection scope of the present invention should be interpreted by the following claims, and all technical ideas within the equivalent scope should be interpreted as being included in the scope of the present invention.

도 1은 방송국에서 송출된 디지털 방송 신호를 디지털 방송 단말기를 통해 수신하기 위한 디지털 방송 시스템의 전체 시스템 구성을 나타낸 도면,1 is a diagram showing the overall system configuration of a digital broadcasting system for receiving a digital broadcasting signal transmitted from a broadcasting station through a digital broadcasting terminal;

도 2는 본 발명에 따른 개선된 압축 포맷에 의한 디지털 방송 녹화 방법의 전체 동작과정을 나타낸 순서도,2 is a flow chart showing the overall operation of the digital broadcast recording method according to the improved compression format according to the present invention;

도 3은 도 2에서 누적 PTS값을 포함하는 디지털 방송 데이터를 생성하는 단계(ST50)의 동작과정을 보다 상세히 나타낸 순서도,FIG. 3 is a flowchart illustrating an operation process of generating digital broadcast data including a cumulative PTS value in FIG. 2 (ST50) in more detail.

도 4는 도 2의 전체 동작과정에 추가되는 디지털 방송 데이터의 재생 단계 및 FF/REW 등의 트릭 플레이 구현 단계를 추가하여 나타낸 순서도,FIG. 4 is a flowchart illustrating a process of adding digital play data reproduction steps and trick play implementation steps such as FF / REW added to the overall operation of FIG.

도 5는 디지털 방송 신호에 실려있는 PTS값이 불규칙하여 변경되는 상황들을 나열한 예시도,5 is an exemplary diagram listing situations in which a PTS value included in a digital broadcast signal is changed irregularly;

도 6은 PTS값을 누적하는 알고리즘의 실제 구현 예를 나타낸 순서도이다.6 is a flowchart illustrating an actual implementation of an algorithm for accumulating PTS values.

Claims (7)

삭제delete (a) 복수 종류의 패킷 데이터가 혼합된 디지털 방송 신호를 수신하는 단계;(a) receiving a digital broadcast signal mixed with a plurality of types of packet data; (b) 상기 디지털 방송 신호를 패킷 데이터의 종류별로 분리하고 녹화 제어신호가 발생하면 프레임 순으로 순차적으로 판독하는 단계;(b) dividing the digital broadcast signal by packet data and sequentially reading the digital broadcast signal in frame order when a recording control signal is generated; (c) 상기 복수 종류의 패킷 데이터에 프레임별 저장된 PTS값을 추출하는 단계;(c) extracting PTS values stored for each frame in the plurality of types of packet data; (d) (d-1) 상기 복수 종류의 패킷 데이터 각각에 있어서, 상기 각 데이터의 현재 프레임의 PTS값과 이전 프레임의 PTS값의 차(이하, 'PTS 간격'이라 함)가 미리 설정된 제 1 기준 범위를 벗어나지 않는 동안 각 프레임 단위로 상기 PTS 간격을 누적하여 산출된 값을 현재 프레임에 대한 누적 PTS값으로서 현재 프레임에 저장하고, (d-2) 상기 (d-1) 단계에서 상기 복수 종류의 패킷 데이터 중 어느 하나의 PTS 간격이 상기 제 1 기준 범위를 벗어나면 해당 데이터의 이전 프레임의 누적 PTS값에 상기 해당 데이터의 PTS 간격 평균값을 더하여 산출된 값을 현재 프레임에 대한 누적 PTS값으로서 현재 프레임에 저장하고, (d-3) 상기 (d-2) 단계에서 복수 종류의 패킷 데이터 중 어느 하나의 PTS 간격이 상기 제 1 기준 범위를 벗어나지만 현재 프레임을 기준으로 상기 복수 종류의 패킷 데이터 간의 PTS값의 차가 미리 설정된 제 2 기준 범위를 벗어나지 않으면 상기 복수 종류의 패킷 데이터 각각의 누적 PTS값을 상기 복수 종류의 패킷 데이터 중 어느 하나의 패킷 데이터의 누적 PTS값에 맞추어 보정함으로써 상기 복수 종류의 패킷 데이터를 동기화하고, (d-4) 상기 패킷 데이터를 미리 설정된 압축포맷에 따른 디지털 방송 데이터로 생성하는 단계; 및(d) (d-1) In each of the plurality of types of packet data, the first difference between the PTS value of the current frame and the PTS value of the previous frame (hereinafter, referred to as a 'PTS interval') of each data is set in advance. The value calculated by accumulating the PTS interval in each frame unit while not departing from the reference range is stored in the current frame as a cumulative PTS value for the current frame, and (d-2) the plurality of types in step (d-1). If the PTS interval of any one of the packet data is out of the first reference range, the PTS interval average value of the corresponding data is added to the cumulative PTS value of the previous frame of the data as the cumulative PTS value for the current frame. (D-3) the PTS interval of any one of the plurality of types of packet data is out of the first reference range in step (d-2), but is based on the current frame. If the difference between the PTS values between the data does not deviate from the preset second reference range, the cumulative PTS value of each of the plurality of types of packet data is corrected according to the cumulative PTS value of any one of the plurality of types of packet data. Synchronizing packet data of (d-4) and generating the packet data into digital broadcast data according to a preset compression format; And (e) 상기 생성된 디지털 방송 데이터를 저장하는 단계;(e) storing the generated digital broadcast data; 를 포함하여 구성되는 디지털 방송 녹화 방법.Digital broadcast recording method comprising a. 청구항 2에 있어서,The method according to claim 2, 상기 (b) 단계는 상기 복수 종류의 패킷 데이터(이하, 'A 데이터'와 'B 데이터'라 함) 중에서 상기 A 데이터로서 비디오 데이터를 분리 추출하고 상기 B 데이터로서 오디오 데이터 신호를 분리 추출함으로써 상기 디지털 방송 신호를 비디오 데이터와 오디오 데이터로 분리하는 단계를 포함하여 구성된 것을 특징으로 하는 디지털 방송 녹화 방법.In the step (b), the video data is separated and extracted as the A data from the plurality of types of packet data (hereinafter referred to as 'A data' and 'B data'), and the audio data signal is separately extracted as the B data. And dividing the digital broadcast signal into video data and audio data. 청구항 3에 있어서,The method according to claim 3, 상기 (d) 단계는 상기 디지털 방송 신호로부터 SPS(sequence parameter set)와 PPS(picture parameter set)를 추출하여 상기 디지털 방송 데이터의 비디오 영역 앞부분에 추가하고, 상기 디지털 방송 신호로부터 오디오 디코더 스펙 정보를 추출하여 상기 디지털 방송 데이터의 오디오 영역 앞부분에 추가함으로써 상기 디지털 방송 데이터를 생성하는 단계를 더 포함하여 구성되는 디지털 방송 녹화 방법.In step (d), a sequence parameter set (SPS) and a picture parameter set (PPS) are extracted from the digital broadcast signal, added to the front of the video region of the digital broadcast data, and audio decoder specification information is extracted from the digital broadcast signal. And generating the digital broadcast data by adding the digital broadcast data to the front of the audio region. 청구항 4에 있어서,The method according to claim 4, 상기 (d) 단계는 상기 디지털 방송 신호를 RIFF 포맷의 디지털 방송 데이터로 압축 생성하고 상기 누적 PTS값을 RIFF 포맷에 따른 인덱스 청크(Index Chunk)의 플래그(Flag) 영역에 저장하는 단계를 포함하여 구성된 것을 특징으로 하는 디지털 방송 녹화 방법.The step (d) includes compressing and generating the digital broadcast signal into digital broadcast data in RIFF format and storing the accumulated PTS value in a flag region of an index chunk according to RIFF format. Digital broadcast recording method characterized in that. 청구항 5에 있어서,The method according to claim 5, 상기 (d) 단계는 상기 RIFF 포맷의 디지털 방송 데이터에 포함된 인덱스 청크(Index Chunk)의 길이(Length) 영역 중 일부 비트를 사용하여 현재 프레임의 I 프레임 여부 확인 정보를 저장하는 단계를 포함하여 구성된 것을 특징으로 하는 디지털 방송 녹화 방법.The step (d) includes storing information indicating whether the current frame is I frame using some bits of a length region of an index chunk included in the digital broadcast data of the RIFF format. Digital broadcast recording method characterized in that. 청구항 2 내지 청구항 6 중 어느 한 항에 있어서,The method according to any one of claims 2 to 6, (f) 상기 디지털 방송 데이터를 디코딩하여 재생하는 단계; 및(f) decoding and playing the digital broadcast data; And (g) 외부 사용자 제어신호에 따른 FF/REW 제어신호가 발생하면 상기 디지털 방송 데이터의 각 프레임마다 저장된 상기 누적 PTS값을 통해 각 프레임의 재생시점을 산출하고 상기 제어신호에 대응하여 상기 디지털 방송 데이터의 재생 위치를 이동시키는 단계;(g) When an FF / REW control signal is generated according to an external user control signal, a reproduction time point of each frame is calculated using the accumulated PTS value stored for each frame of the digital broadcast data, and the digital broadcast data is corresponding to the control signal. Moving the playing position of the; 를 더 포함하여 구성되는 디지털 방송 녹화 방법.The digital broadcast recording method further comprises.
KR1020080007713A 2008-01-24 2008-01-24 Method for recording digital broadcasting by enhanced compressing format KR100915798B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020080007713A KR100915798B1 (en) 2008-01-24 2008-01-24 Method for recording digital broadcasting by enhanced compressing format

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020080007713A KR100915798B1 (en) 2008-01-24 2008-01-24 Method for recording digital broadcasting by enhanced compressing format

Publications (2)

Publication Number Publication Date
KR20090081702A KR20090081702A (en) 2009-07-29
KR100915798B1 true KR100915798B1 (en) 2009-09-07

Family

ID=41292941

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020080007713A KR100915798B1 (en) 2008-01-24 2008-01-24 Method for recording digital broadcasting by enhanced compressing format

Country Status (1)

Country Link
KR (1) KR100915798B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130071873A (en) 2011-12-21 2013-07-01 삼성전자주식회사 Content playing apparatus and control method thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11191286A (en) * 1997-07-28 1999-07-13 Sony Electron Inc Synchronizing method for audio and video signals and digital video processor
JP2002354419A (en) 2001-05-25 2002-12-06 Sony Corp Recording reproducing equipment and method therefor, recording medium and program thereof
JP2003230092A (en) 2002-02-04 2003-08-15 Sony Corp Information processing apparatus and method, program storage medium, and program
KR20070014376A (en) * 2005-07-28 2007-02-01 삼성전자주식회사 Method for generating and reproducing multi channel for transmitting for the multi channel in digital multimedia broadcasting system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11191286A (en) * 1997-07-28 1999-07-13 Sony Electron Inc Synchronizing method for audio and video signals and digital video processor
JP2002354419A (en) 2001-05-25 2002-12-06 Sony Corp Recording reproducing equipment and method therefor, recording medium and program thereof
JP2003230092A (en) 2002-02-04 2003-08-15 Sony Corp Information processing apparatus and method, program storage medium, and program
KR20070014376A (en) * 2005-07-28 2007-02-01 삼성전자주식회사 Method for generating and reproducing multi channel for transmitting for the multi channel in digital multimedia broadcasting system

Also Published As

Publication number Publication date
KR20090081702A (en) 2009-07-29

Similar Documents

Publication Publication Date Title
US7738767B2 (en) Method, apparatus and program for recording and playing back content data, method, apparatus and program for playing back content data, and method, apparatus and program for recording content data
KR101533174B1 (en) Method of processing a sequence of coded video frames
KR100819622B1 (en) Information terminal device and information terminal receiving method, digital broadcast receiving device and method, and output time calculating device and method
JP2008011404A (en) Content processing apparatus and method
TW200830874A (en) Image information transmission system, image information transmitting apparatus, image information receiving apparatus, image information transmission method, image information transmitting method, and image information receiving method
US20050034157A1 (en) Apparatus and method for encoding/decoding broadcast/spare contents
US20130209063A1 (en) Digital receiver and content processing method in digital receiver
KR101181777B1 (en) Broadcasting system and method
EP1206141A2 (en) Digital-broadcast recording/playback apparatus
KR20050052717A (en) System and method for transcording stream data except audio data
US20040233996A1 (en) Reproducing apparatus and method, and recording medium
US8073051B2 (en) Method and related device for converting transport stream into file
KR100915798B1 (en) Method for recording digital broadcasting by enhanced compressing format
US8254764B2 (en) Recording apparatus, image reproducing apparatus, and special reproduction method therefor
US7907220B2 (en) Television broadcasting system
US7269839B2 (en) Data distribution apparatus and method, and data distribution system
MXPA05000116A (en) Reproducing apparatus and method, and recording medium.
JPWO2006075457A1 (en) Recording device
KR101053699B1 (en) Recording device and method of digital broadcasting
JP5191294B2 (en) Information processing apparatus and program
JP3945029B2 (en) Data transmission method and data transmission apparatus
KR100513795B1 (en) Transmitting/receiving apparatus and its method for providing synchronized event service using system time clock in digital data broadcasting system
JP2007214735A (en) Program recording and reproducing apparatus
JP2006211577A (en) Digital broadcast accumulating and reproducing apparatus and method
KR20140118059A (en) Method for reproducing contents

Legal Events

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

Payment date: 20130703

Year of fee payment: 5

FPAY Annual fee payment

Payment date: 20140710

Year of fee payment: 6

FPAY Annual fee payment

Payment date: 20150701

Year of fee payment: 7

FPAY Annual fee payment

Payment date: 20160707

Year of fee payment: 8

FPAY Annual fee payment

Payment date: 20170705

Year of fee payment: 9

FPAY Annual fee payment

Payment date: 20180723

Year of fee payment: 10

FPAY Annual fee payment

Payment date: 20190712

Year of fee payment: 11