KR0181080B1 - Apparatus coding escr information in mpeg - Google Patents

Apparatus coding escr information in mpeg Download PDF

Info

Publication number
KR0181080B1
KR0181080B1 KR1019960025091A KR19960025091A KR0181080B1 KR 0181080 B1 KR0181080 B1 KR 0181080B1 KR 1019960025091 A KR1019960025091 A KR 1019960025091A KR 19960025091 A KR19960025091 A KR 19960025091A KR 0181080 B1 KR0181080 B1 KR 0181080B1
Authority
KR
South Korea
Prior art keywords
escr
flag
transport
pes
packet
Prior art date
Application number
KR1019960025091A
Other languages
Korean (ko)
Other versions
KR980006942A (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 KR1019960025091A priority Critical patent/KR0181080B1/en
Publication of KR980006942A publication Critical patent/KR980006942A/en
Application granted granted Critical
Publication of KR0181080B1 publication Critical patent/KR0181080B1/en

Links

Classifications

    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/20Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using video object coding

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

본 발명은 시스템 부호화시 ESCR 부호화하기 위한 장치에 관한 것으로, 본 발명은, 엠펙 권고안에 근거하여 오디오/비디오신호를 인코딩하는 엘리멘트리 스트림 인코터와, 상기 인코딩된 출력을 PES 패킷화하는 PES 패킷타이저, 상기 PES 패킷을 전송 패킷화하며, 상기 전송 패킷화된 스트림이 처음 전송버퍼에 기록되는 시점부터 상기 전송버퍼에 처음 수신되는 ESCR이 기록되는 시점까지 누적된 데이량을 전송율로 나누어 초기ESCR를 구하며, 상기 디코딩하는 시간의 기준을 맞추기 위한 ESCR을 상기 전송패킷과 함께 전송채널로 출력하는 장치에 있어서, 상기 엘리멘트리 스트림 인코더(510)의 출력인 엘리멘트리 스트림에서 오디오 및 비디오신호의 시작을 알리는 스타트코드의 검출 결과에 따라서 플래그를 발생하거나 디코딩 시간의 기준을 맞추기 위한 ESCR가 기록되어 전송되는 시점부터 카운트를 행한 카운트 값과 기설정된 기준값간의 비교에 의거하여 플래그를 발생하는 플래그 발생수단(530), 상기PES 패킷타이저(520)의 출력인 PES 패킷을 전송 패킷화하며, 이 전송 패킷화된 상기 전송패킷에 상기 플래그 발생수단(530)로부터의 플래그를 기록하여 출력하는 전송 패킷타이저(540), 상기 초기 ESCR과 시스템 클럭에 기초하여 디코더에서 수신될 PES 패킷 스트림에 대한 ESCR을 발생하는 인코더 클럭 시스템(550), 상기 인코더 클럭 시스템(550)의 출력인 ESCR를 기록하며, 상기 전송 패킷타이저(540)의 출력인 전송패킷에서 플래그의 검출결과에 응답하여 상기 기록된 ESCR을 독출하여 상기 전송버퍼(570)로 출력하는 검출 및 기록수단(560)구비함으로써 ESCR의 최대 전송시간 제한조건을 만족하면서 복호화 시간을 단축할 수 있는 효과가 있다.The present invention relates to an apparatus for ESCR encoding in system encoding. The present invention relates to an elementary stream encoder for encoding an audio / video signal based on MPEG recommendation, and a PES packet tie for PES packetizing the encoded output. The PES packet is transport packetized, and the initial ESCR is divided by the amount of data accumulated by the transmission rate from the time when the transport packetized stream is first recorded in the transport buffer to the time when the first ESCR received in the transport buffer is recorded. In the apparatus for outputting the ESCR for meeting the decoding time criteria with the transport packet to the transport channel, to inform the start of the audio and video signal in the elementary stream, which is the output of the elementary stream encoder 510 ESCR for generating a flag or matching decoding time according to the start code detection result A packet generating means 530 for generating a flag based on a comparison between a count value counted from the time point at which the data is recorded and transmitted and a preset reference value, and packetizing the PES packet output from the PES packetizer 520, A transmission packetizer 540 for recording and outputting a flag from the flag generation means 530 in the transmission packetized transmission packet, and a PES packet stream to be received at a decoder based on the initial ESCR and a system clock. An encoder clock system 550 for generating an ESCR is recorded, and an ESCR that is an output of the encoder clock system 550 is recorded, and the recording is performed in response to a detection result of a flag in a transmission packet that is an output of the transport packetizer 540. The detection and recording means 560 which reads the outputted ESCR and outputs it to the transmission buffer 570 can shorten the decoding time while satisfying the maximum transmission time constraint of the ESCR. It has an effect.

Description

엠펙(MPEG) 시스템의 이에스씨알(ESCR) 부호화장치(APPARATUS CODING ESCR INFORMATION IN MPEG)APPARATUS CODING ESCR INFORMATION IN MPEG

제1도는 MPEG-2(ISO/IEC13818) 시스템에서 전송스트림의 인코더를 개략적으로 도시한 블럭 구성도.1 is a block diagram schematically illustrating an encoder of a transport stream in an MPEG-2 (ISO / IEC13818) system.

제2도는 엘리멘트리 스트림, 패킷타이저 및 PES 패킷의 관계를 설명한 도면2 is a diagram illustrating a relationship between elementary streams, packetizers, and PES packets.

제3도 내지 제5도는 패킷구성 및 전송스트림의 구성을 도시한 도면3 to 5 are diagrams showing a packet configuration and a configuration of a transport stream.

제6도는 오디오/비디오 엘리멘트리 스트림을 구성하는 프로그램을 도시한 도면6 shows a program constituting an audio / video elementary stream.

제7도는 본 발명에 따른 엠펙(MPEG) 시스템의 이에스씨알(ESCR) 부호화장치도.7 is an ESCR encoding apparatus of an MPEG system according to the present invention.

* 도면의 주요부분에 대한 부호의 설명* Explanation of symbols for main parts of the drawings

510 : 엘리멘트리 스트림 인코더 520 : PES 패킷타이저510: elementary stream encoder 520: PES packetizer

530 : 플래그 발생수단 540 : 전송패킷 타이져530: flag generation means 540: transmission packetizer

550 : 인코더클럭 시스템 560 : 검출 및 기록수단550: encoder clock system 560: detection and recording means

570 : 전송버퍼570: transmission buffer

본 발명은 시스템 부호화시(MPEG-2 시스템 인코딩) 복호화기에서 엘리멘트리스트림 클럭기준 Elementary Stream Clock Referdnce : 이하, ESCR) 데이터를 기준으로 빠른 시간내에 패킷화된 엘리멘트리 스트림(Packtized Elementary Stream:이하, PES)을 복호화할 있도록 ESCR의 값을 효과적으로 부호화하는 장치에 관한 것이다.The present invention provides a packetized elementary stream (hereinafter referred to as ESCR) data based on elementary stream clock reference (ESCR) data in a decoder in MPEG-2 system encoding. The present invention relates to an apparatus for efficiently encoding a value of an ESCR so as to decode a PES).

MPEG-2 전송스트림은 MPEG 시스템 스트림의 일종으로서MPEG 시스템에 대한 종개의 기술로는 현재 국제 표준으로 정해진 MPEG-2 IS(Internation Standard)에서 알려진 바와 같이 MPEG-2의 공식명칭은 ITU-T Rec. H.222. 0|ISO/IEC 13818이다.The MPEG-2 transport stream is a type of MPEG system stream. As the final technology for the MPEG system, the official name of MPEG-2 is known as ITU-T Rec. H.222. 0 | ISO / IEC 13818.

MPEG-2 에는 크게 제 1 파트인 시스템과 제 2 파트인 비디오 및 제 3 파트인 오디오로 나누어지며, 상기 제 1 파트는 시스템 레이어 코딩 (System Layer Coding)에 관한 전반적인 분야에 대한 권고안이다.MPEG-2 is largely divided into a first part system, a second part video, and a third part audio. The first part is a recommendation for the overall field of system layer coding.

여기서, 시스템 레이어 코딩(이하, 시스템 코딩)이란 MPEG-1나 MPEG-2의 데이터 압축방법으로 압축된 오디오/비디오 스트림뿐만 아니라 필요에 따라 사용자 데이터(user data)등을 멀티플렉싱하여 전송 또는 직장 저장에 적합하도록 포맷팅하는 기술에 관한 것이다.Here, system layer coding (hereinafter referred to as system coding) means not only an audio / video stream compressed by MPEG-1 or MPEG-2 data compression method, but also multiplexing user data, etc. as necessary to transmit or store work. It relates to a technique for formatting to suit.

이와 같이 여러개의 비트 스트림을 입력받아 일련의 스트림으로 포맷팅하는 과정을 시스템 인코딩(System Encoder)이라 하고, 포맷팅한 것을 원래의 입력된 스트림의 형태로 풀어내는 과정을 시스템 디코팅(system decoder)이라 한다.The process of receiving multiple bit streams and formatting them into a series of streams is called a system encoder, and the process of unpacking the formatted stream into the original input stream is called a system decoder. .

그리고 포맷팅하는 규칙을 신택스(syntax)라하며, 이 신택스를 만드는 과정에서 각 부분의 의미를 규정해 둔 것이 시맨틱스(semantics)라 한다.The formatting rule is called syntax, and the semantics that define the meaning of each part in the process of creating this syntax are called semantics.

MPEG 시스템 IS 에서는포맷팅 규칙인 신택스, 시맨틱스를 규정하고 있으므로, 시스템 인코더에서의 인코딩시, 이와 같은 규칙에 따라 비트 스트림을 만들어야 하며, 시스템 디코더는 이 규칙으로 만들어진 스트림을 디코더할 수 있도록 구성되어야 한다.Since the MPEG system IS prescribes the formatting rules syntax and semantics, when encoding in the system encoder, a bit stream must be created according to such a rule, and the system decoder must be configured to decode a stream produced by this rule. .

상기 시스템 인코딩은 단순히 각각의 오디오/비디오 스트림을 묶어 결합시키는 기능뿐만 아니라 스트림을 디코딩하는 과정에서 시스템 디코더 내부의 버퍼제어 및 각 디코딩된 스트림들의 동기를 맞추어 재생하기 위한 몇가지의 파라메타가 삽입되는 과정을 포함한다.The system encoding not only combines and combines each audio / video stream, but also includes a process of inserting some parameters for reproducing the buffer control and synchronizing each decoded stream in the system decoder in decoding the stream. Include.

시스템 인코딩 방법에 있어서, 전송스트림 인코딩과 프로그램 스트림 인코딩의 두가지 형태가 있는데, 상기 프로그램 스트림은 주로 저장을 위해 사용한다.In the system encoding method, there are two types of transport stream encoding and program stream encoding, and the program stream is mainly used for storage.

제1도는 MPEG-2 시스템에서 전송스트림의 인코더를 개략적으로 도시한 블록구성도로서 오디오/비디오 스트림으로부터 패킷타이저를 거쳐 전송스트림을 만드는 과정을 보여준다.FIG. 1 is a block diagram schematically illustrating an encoder of a transport stream in an MPEG-2 system, and shows a process of creating a transport stream from an audio / video stream through a packetizer.

제1도를 참조하면, 오디오 및 비디오 인코더(11)(12)는 MPEG-1또는 MPEG-2로 가정할 수도 있지만 일반적으로 MPEG-2 시스템 인코딩은 MPEG 계열이 아닌 다른 인코더로 인코딩된 스트림을 배제하지 않으므로 H.261 비디오 인코더나 CCITT G.721 오디오 인코더, 혹은 특정하게 제한된 유저들만을 위해 사용하는 독톡한 오디오/비디오 인코더가 될 수도 있다.Referring to FIG. 1, audio and video encoders 11 and 12 may assume MPEG-1 or MPEG-2, but in general the MPEG-2 system encoding excludes streams encoded with encoders other than the MPEG family. It could be a H.261 video encoder, a CCITT G.721 audio encoder, or a unique audio / video encoder used only for specific limited users.

이들 비디오 및 오디오 인코더(11)(12)에서 인코딩된 데이터를 엘리멘트리 스트림이라 하는데, 이 엘리멘트리 스트림들은 일차적으로 각각의 오디오 및 비디오 패킷타이저(13)(14)를 통하여 패킷타이징된다.The data encoded by these video and audio encoders 11 and 12 are called elementary streams, which are primarily packetized through respective audio and video packetizers 13 and 14.

이 과정을 거친 테이터를 패킷화된 엘리멘트리 스트림(Packetized Elementary Stream:PES)이라 하며, 이 PES 패킷을 만드는 패킷타이저를 PES 패킷타이저라 한다.This processed data is called a packetized elementary stream (PES), and the packetizer for making this PES packet is called a PES packetizer.

즉, 오디오 패킷타이저(13)와 비디오 패킷타이저(14)를 거친 만들어진 각각의 오디오 PES 패킷, 비디오 PES 패킷은 전송스트림(또는 프르그램 스트림)은 멀티플렉서(15)에 입력되고, 이 멀티플렉서(15)는 프로그램 스트림, 전송스트림을 만들어 출력하게 된다.That is, each of the audio PES packets and video PES packets that are made through the audio packetizer 13 and the video packetizer 14, the transport stream (or program stream) is input to the multiplexer 15, and this multiplexer ( 15) creates and outputs a program stream and a transport stream.

시스템 인코딩이란 결국, 엘리멘트리 스트림을 입력받아 PES 패킷타이징, 전송스트림을 만드는 과정에 해당한다. 즉, 크게 나누어 시스템 코딩과정은 두가지의 기능을 수행한다고 볼 수 있는데, PES 패킷과 TS/PS 멀티플렉싱이다.In the end, system encoding corresponds to a process of receiving an elementary stream and generating a PES packetizing and transport stream. In other words, the system coding process can be divided into two functions, namely, PES packet and TS / PS multiplexing.

PES 패킷타이저는 엘리멘트리 스트림들을 PES 패킷으로 만들고, TS/PS 멀티플렉싱은 PES 패킷으로부터 TS/PS 패킷을 만드는 과정에 해당한다.The PES packetizer makes elementary streams into PES packets, and TS / PS multiplexing corresponds to a process of creating TS / PS packets from PES packets.

이와 같이, MPEG-2 시스템 권고안은 디코딩을 위하여 구현되는 스펙(spec)이 따로 규정하지 않고 있으며, 때에 따라 발생할 수 있는 응용시스템에 대한 별도의 규정 또한, 없다.As such, the MPEG-2 System Recommendations do not specify separately the specifications implemented for decoding, and there are no separate provisions for applications that may occur from time to time.

따라서, 인코딩 시스템은 출력되는 스트림이 MPEG-2 스트림 IS에서 규정한 디코더 스펙에 맞는 정확한 스트림을 제공해 주면되는 것인데, 이러한 인코딩 과정에서 인코더를 구성하는 방법과 효율적인 디코더를 만드는 기술등은 표준화되어 있지 않다.Therefore, the encoding system only needs to provide an accurate stream that meets the decoder specification specified by the MPEG-2 stream IS. However, the method of constructing the encoder and the technique of making an efficient decoder are not standardized. .

제2도는 시스템 코딩의 권고안을 참조하여 입력되는 엘리멘트리 스트림이 PES 패킷화되는 과정을 도시한 것으로서, 시스템 인코더에서 부호화된 모든 정보는 패킷단위로 포맷팅된다. 제3도은 PES 패킷의 구성을 도시한 것으로, PES 패킷은 헤더(Header)와 패이로드(Payload)로 이루어진다.2 illustrates a process of PES packetization of an input elementary stream with reference to a system coding recommendation, in which all information encoded in a system encoder is formatted in packet units. 3 shows the configuration of a PES packet, which is composed of a header and a payload.

상기 패이로드(32)는 엘리멘트리 스트림을 일정한 길이로 잘라서 삽입하고, 헤더(31)에는 기타의 유용한 정보(예 : 시간정보, 주소 꼬리표등)가 삽입하게된다. 여기에서, PES 패킷을 만드는 장치를 패킷타이저라하고, 엘리멘트리 스트림을 입력받아 패킷을 만드는 장치를 PES 패킷타이저(제2도의 참조번호 22)라 한다.The payload 32 cuts and inserts the elementary stream into a predetermined length, and other useful information (eg, time information, address tag, etc.) is inserted into the header 31. Here, a device for generating a PES packet is called a packetizer, and a device for receiving an elementary stream to generate a packet is called a PES packetizer (reference numeral 22 in FIG. 2).

본 시스템 인코더에서의 엘리멘트리 스트림이란 패킷타이징(패킷을 만드는 과정)를 수행하기 위한 입력 스트림을 의미하고, 좀더 광범위한 의미로는 어떤 형태로든 부호화된 스트림이 시스템 인코더로 입력되는 경우의 스트림을 의미한다.The elementary stream in the system encoder refers to an input stream for performing packetizing (packet making process), and more broadly, a stream in which an encoded stream in any form is input to the system encoder. do.

시스템 인코딩 과정은 엘리멘트리 스트림을 입력받아 PES 패킷을 만들고, 다시 PES 패킷을 입력받아 전송스트림을 패킷이나 프로그램 스트림 패킷을 만드는 과정으로 이해할 수 있게 된다.In the system encoding process, the elementary stream is input to make a PES packet, and the PES packet is input again to understand the transport stream as a packet or program stream packet.

제4도는 오디오 PES 스트림과 비디오 PES 스트림 및 전송헤더정보에 기초하여 전송 스트림화한 일예를 도시한 것으로, 전송패킷의 길이는 항상 188 바이트로 동일하게 짧기 때문에 멀티플렉싱, 리-멀티플렉싱, 디멀티플렉싱, 수신기 제작등에 있어서 용이하고 셀 로스(cell loss)과 같은 전송오차시의 손실이 적다는 장점을 내포하고 있다.4 shows an example of transport streams based on audio PES streams, video PES streams, and transport header information. Since the length of a transport packet is always equally short as 188 bytes, multiplexing, re-multiplexing, demultiplexing, and receiver are shown. It is easy to manufacture and has the advantage of low loss in transmission error such as cell loss.

종합적으로 볼 때 전송 패킷으로 구성되는 전송스트림은 전송오차가 많은 채널을 이용하여 프로그램을 전송하는 방송용으로 적합하다.Overall, a transport stream composed of transport packets is suitable for broadcasting using a channel having a large transmission error.

이와 같이 전송스트림은 고정된 길이의 짧은 패킷들로 구성되기 때문에 다른 스트림으로의 변환이 용이하고 셀로스와 같은 손실의 영향을 최소화할 수 있다.As such, since the transport stream is composed of short packets of fixed length, it is easy to convert to another stream and minimize the effects of loss such as cellulose.

제5도는 제3도 내지 제4도에서 상술된 전송패킷과, PES 패킷, 압축된 비디오 및 오디오 스트림의 관계를 개략적으로 도시한 것으로, 압축된 비디오 및 오디오 신호에는 스타트코드를 포함하고 있음을 알 수 있다.FIG. 5 schematically shows the relationship between the transport packet described above with reference to FIGS. 3 to 4 and the PES packet, the compressed video and the audio stream, and it is understood that the compressed video and audio signal includes the start code. Can be.

그리고, 제6도는 제1도에 도시된 인코더외에 시간개념을 도시한 것으로서, 오디오/비디오 엘리멘트리 스트림으로 구성되는 프르그램을 나타낸 것이다. 즉 오디오신호 및 비디오신호가 인코더(61)(62)에 의해서 부호화된 각 엘리멘트리 스트림은 PES 패킷 타이저(63)(64)로 입력된다.6 shows a concept of time in addition to the encoder shown in FIG. 1, and shows a program composed of an audio / video elementary stream. That is, each elementary stream in which audio signals and video signals are encoded by the encoders 61 and 62 is input to the PES packetizers 63 and 64.

여기에서 시스템 클럭단(65)은 시간 정보클럭(ESCR/PTS/DTS)를 발생시켜PES 패킷 타이저(63)(64)로 제공하게 되는데, 이때, PES 패킷 타이저(63)(64)는 상기 입력된 시간정보클럭(ESCR/PTS/DTS)를 PES 패킷내의 헤더부분에 삽입함과 아울러 상기 엘리멘트리 스트림을 패킷타이징하여 TS/PS 패킷타이저(또는 멀티플렉서)(66)로 입력한다. 따라서 TS/PS 패킷타이저 (66)는 시스템 클럭단(65)로부터의 다른 시간정보클럭(PCR/SCR)을 전송패킷의 헤더부분에 삽입함과 아울러 상기 PES 패킷을 패킷타이징하여 TS/PS 스트림으로 출력하게 된다.Here, the system clock stage 65 generates a time information clock (ESCR / PTS / DTS) to provide the PES packetizers 63 and 64. In this case, the PES packetizers 63 and 64 The input time information clock (ESCR / PTS / DTS) is inserted into the header portion of the PES packet, and the elementary stream is packetized and input to the TS / PS packetizer (or multiplexer) 66. Therefore, the TS / PS packetizer 66 inserts another time information clock (PCR / SCR) from the system clock stage 65 into the header portion of the transmission packet and packetizes the PES packet to TS / PS. Will output to the stream.

여기에서 시스템 클럭은 시스템 인코더를 구성하는 모든 블록에 제공되는 시스템 클럭(System Clock)에 해당되며, 이 시스템 클럭의 주파수는 다음과 같은 제한 조건을 만족한다.Here, the system clock corresponds to a system clock provided to all blocks constituting the system encoder, and the frequency of the system clock satisfies the following constraints.

27 MHz-810 Hz ≤ 시스템_클럭_주파수≤ 27MHz + 810 Hz 시스템_클럭_주파수의 시간변화율≤75×10-3Hz/sec --(A)27 MHz-810 Hz ≤ system_clock_frequency ≤ 27 MHz + 810 Hz system_clock_frequency time variation rate ≤75 × 10 -3 Hz / sec-(A)

상기 식(A)의 의미로 보면, 시스템 클럭 주파수는 27MHz에서 +, - 810 Hz오차를 허용하는데, 이는 27MHz를 기준으로 -, -0.003%의 범위에 해당한다. 또한, 이 오차의 범위에서 동작을 한다할 지라도 클럭의 변화가 급력하게 생기면 안되는데 이를 다음식에서 규정하고 있다. 즉, 1초에 0.075 Hz의 변화까지를 허용하는 것으로서 1 초에 27 MHz의 클럭 주파수로 동작한다면, 360M 클럭에 한 클럭이 어긋남을 의미한다. 종합적으로 정리하면 식(A)의 규정은 시스템 클럭의 동작 주파수범위와 동작 주파수의 변화율을 규정한 것이다.In the sense of Equation (A), the system clock frequency allows a +, -810 Hz error at 27 MHz, which corresponds to a range of-, -0.003% based on 27 MHz. In addition, even when operating in the range of this error, the clock change should not occur suddenly. In other words, if it operates at a clock frequency of 27 MHz per second, allowing a change of 0.075 Hz per second, it means that one clock shifts from the 360 M clock. In summary, the formula (A) defines the operating frequency range of the system clock and the rate of change of the operating frequency.

다음으로, MPEG 시스템에서 규정하는 ESCR 값은 전송 시트림에서 하나의 엘리멘트리 스트림만으로 구성되는 프로그램에 대한 시간 기준값을 나타내며, 이 기준값은 하나의 (B)식과 같이 계산된다.Next, the ESCR value defined in the MPEG system represents a time reference value for a program consisting of only one elementary stream in the transmission stream, and this reference value is calculated as in Equation (B).

이와 같이 하나의 스트림만으로 구성되는 프로그램은 PES 스트림이라 하고, 이와 같은 PES 스트림을 디코더에서 디코딩하는 과정에서 PES-STD( Packetized Elementary Stream-System Target Decoder)의 약어로서 가상적인 디코더 모델인데 PES 시스템을 대상으로 디코딩하기 위한 모텔)에 입력되는 시간을 나타내 주는 값이 ESCR이다.A program consisting of only one stream is called a PES stream. In the process of decoding such a PES stream in a decoder, a virtual decoder model is an abbreviation of PES-STD (Packetized Elementary Stream-System Target Decoder). The value indicating the time input to the motel for decoding is ESCR.

식(B)에서 i는 i번째 바이트를 의미하고 t(i)는 i번째 바이트가 PES-STD에 입력되는 시간으로서 이 시간값을 식(A)의 제한 조건을 만족하는 시스템_클럭_주파수로 샘블링하여 만든다. 상기 PES-STD는 MPEG 시스템에서 가상적인 디코더 모델을 의미하며, 이는 시스템 규격을 정하는 과정에서 개념적인 모델을 기준으로 기술한 것이다.In Equation (B), i means i th byte and t (i) is the time when i th byte is input to PES-STD. Make it by sampling. The PES-STD means a virtual decoder model in an MPEG system, which is described based on a conceptual model in the process of defining a system standard.

이 과정에서 ESCR은 90 KHz 단위 (시스템_클럭_주파수/300)로 표현되는 33 비트 길이의 ESCR_base와 29 MHz 단위(시스템_클럭_주파수)로 표현되는 9 비트의 ESCR_ext로 구성된다.In this process, the ESCR consists of a 33-bit ESCR_base expressed in 90 KHz units (system clock frequency / 300) and 9-bit ESCR_ext expressed in 29 MHz units (system clock frequency).

상기 ESCR(i)에서의 i는 ESCR-base의 데이터 중 마지막 바이트를 가리킨다. 결국 ESCR(i)는 ESCR-base 데이터의 마지막 바이트가 PES-STD에 입력되는 시간을 시스템-클럭_주파수로 나타낸 것이다.I in the ESCR (i) indicates the last byte of data of the ESCR-base. After all, ESCR (i) represents the time when the last byte of ESCR-base data is input to the PES-STD as a system-clock_frequency.

ESCR-base(i) = ((시스템-클럭_주파수*t(i)) DIV300)% 233 ESCR-base (i) = ((system-clock_frequency * t (i)) DIV300)% 2 33

ESCR-ext(i) = ((시스템_클럭_주파수*t (i)) DIV1)%300ESCR-ext (i) = ((System_Clock_Frequency * t (i)) DIV1)% 300

ESCR(i) = ESCR_baxe(i)*300 + ESCR_ext(i)--- (B)ESCR (i) = ESCR_baxe (i) * 300 + ESCR_ext (i) --- (B)

(DIV는 정수 나누기의 연산으로 나머지를 0으로 만드는 트랭케이션(Truncaion)연산이고, %는 모듈(Modrlo) 연산으로 나머지를 취하는 연산이다.(DIV is a truncation operation that makes the remainder zero by an integer division operation, and% is an operation that takes the remainder by a Modlo operation.

ESCR 데이터 포맷은 다음과 같다. MPEG에서 규정하는 ESCR 테이터 포맷 48 비트는 다음같은 필트로 구성된다.The ESCR data format is as follows. The 48 bits of the ESCR data format specified by MPEG consist of the following filters.

reserved 2 비트reserved 2 bits

ESCR_base[32..30] 3 비트ESCR_base [32..30] 3 bits

marker_비트 1 비트marker_bit 1 bit

ESCR_base[29..15] 15 비트ESCR_base [29..15] 15 bits

marker_비트 1 비트marker_bit 1 bit

ESCR_base[14..0] 15 비트ESCR_base [14..0] 15 bits

marker_비트 1 비트marker_bit 1 bit

ESCR_extension[29..15] 9 비트ESCR_extension [29..15] 9 bits

marker_비트 1 비트marker_bit 1 bit

상기에서와 같이 전체의 ESCR는 6 바이트로 구성되고, 2 비트의 reserved 테이터와 4 개의 marker_비트는 의미없는 값으로 실제의 정보를 갖는 ESCR의 길이는 42 비트이다.As described above, the entire ESCR is composed of 6 bytes, and 2 bits of reserved data and 4 marker_bits are meaningless values, and the length of the ESCR having actual information is 42 bits.

상술된 바를 근거로 인하여 ESCR의 전송시기를 설명한다. MPEG에서 권고한 바에 따르면 종래기술 부분에서 기술한 ESCR 테이터는 0.7초 이내에 재전송해야 한다.On the basis of the above, the transmission timing of the ESCR will be described. As recommended by MPEG, the ESCR data described in the prior art section must be retransmitted within 0.7 seconds.

그러나, 재전송하는 시점은 0.7초이내의 임의의 시점에서 설정하면, 전체적인 스트림의 구성에 있어서, 복호화 시간이 길어지게 된다.However, if the time point for retransmission is set at any time within 0.7 seconds, the decoding time becomes long in the overall stream configuration.

이는 복호화기에서 복호화 동작을 시작하는 과정에 있어서, 디코더 시스템 클럭의 세팅을 수신되는 PCR 값을 이용하여 디코더 시스템의 모든 클럭을 안정화한 후 비로서 PES 스트림을 디코딩하는 것이다.In the process of starting the decoding operation in the decoder, the decoder decodes the PES stream after stabilizing all the clocks of the decoder system using the PCR value received from the setting of the decoder system clock.

그런데, PES 시스템 디코더는 비록 스트림이 버퍼에 있다고 하더라도 ESCR의 값이 수신되지 않으면, PES 스트림을 디코딩될 수 없을 뿐만 아니라, ESCR 보다 엘리멘트리 스트림(오디오/비디오)이 먼저 수신되는 경우에는 복호화시간이 길어지는 문제점이 있었다.However, even if the stream is in the buffer, the PES system decoder cannot decode the PES stream if the ESCR value is not received, and the decoding time is increased when the elementary stream (audio / video) is received before the ESCR. There was a problem getting longer.

따라서, 본 발명의 목적은 시스템 디코더는 ESCR을 기준으로 데이터를 복호화하고 재생하게 되는데, 엠펙에서 규정하는 ESCR를 엘리멘트리 스트림의 시작정보보다 먼저 부호화하여 기록함으로써 수신된 엘리멘트리 스트림의 복호화시간을 단축시킬 수 있는 엠펙(MPEG) 시스템의 ESCR 부호화장치를 제공하는데 있다.Accordingly, an object of the present invention is to decode and play data on the basis of ESCR, and the system decoder shortens the decoding time of the received elementary stream by encoding and recording the ESCR defined by the MPEG before the start information of the elementary stream. An object of the present invention is to provide an ESCR encoding apparatus of an MPEG system.

상기의 목적을 달성하기 위한 본 발명에 따르면, 엠펙 권고안에 근거하여 오디오/비디오신호를 인코딩하는 엘리멘트리 스트림 인코더와, 상기 인코딩된 출력을 PES 패킷화하는 PES 패킷타이저, 상기 PES 패킷을 전송 패킷화하며, 상기 전송패킷화된 스트림이 처음 전송버퍼에 기록되는 시점부터 상기 전송버퍼에 처음 수신되는 ESCR이 기록되는 시점까지 누적된 데이량을 전송율로 나누어 초기 ESCR를 구하며, 상기 디코딩하는 시간의 기준을 맞추기 위한 ESCR을 상기 전송패킷과 함께 전송채널로 출력하는 장치에 있어서, 상기엘리멘트리 시트림 인코더(510)의 출력인 엘리멘트리 스트림에서 오디오 및 비디오신호의 시작을 알리는 스타트코드의 검출 결과에 따라서 플래그를 발생하거나 디코딩 시간의 기준을 맞추기 위한 ESCR가 기록되어 전송되는시점부터 카운트를 행한 카운트 값과 기설정된 기준값간의 비교에 의거하여 플래그를 발생하는 플래그 발생수산(530)과; 상기 PES 패킷타이저(520)의 출력인 PES 패킷을 전송 패킷화하며, 이 전송 패킷화된 상기 전송패킷에 상기 플래그 발생수단(530)로부터의 플래그를 기록하여 출력하는 전송 패킷타이저(540)와;상기 초기 ESCR과 시스템 클럭에 기초하여 디코더에서 수신될 PES 패킷 스트림에 대한 ESCR을 발생하는 인코더 클럭 시스템(550)과; 상기 인코더 클럭 시스템(550)의 출력인 ESCR를 기록하며, 상기 전송 패킷타이저(540)의 출력인 전송패킷에서 플래그의 검출 결과에 응답하여 상기 기록된 ESCR를 독출하여 상기 전송버퍼(570)로 출력하는 검출 및 기록수단(560)을 포함한다.According to the present invention for achieving the above object, an elementary stream encoder for encoding an audio / video signal based on an MPEG recommendation, a PES packetizer for PES packetizing the encoded output, and transmitting the PES packet The initial ESCR is obtained by dividing the amount of data accumulated by the transmission rate from the time when the transport packetized stream is first recorded in the transport buffer to the time when the ESCR first received in the transport buffer is recorded. In the apparatus for outputting the ESCR for matching to the transmission channel together with the transmission packet, according to the detection result of the start code for notifying the start of the audio and video signal in the elementary stream, which is the output of the elementary stream encoder 510 From the time the ESCR is recorded and transmitted to generate the flag or to meet the decoding time criteria A flag generation arithmetic operation 530 for generating a flag based on a comparison between a count value that has been undone and a preset reference value; A transport packetizer 540 which converts a PES packet, which is an output of the PES packetizer 520, into a transport packet, and records and outputs a flag from the flag generating means 530 in the transport packetized transport packet. An encoder clock system 550 for generating an ESCR for a PES packet stream to be received at a decoder based on the initial ESCR and a system clock; Record the ESCR, which is the output of the encoder clock system 550, and read the recorded ESCR in response to the detection result of the flag in the transmission packet, which is the output of the transmission packetizer 540, to the transmission buffer 570. Detecting and recording means 560 for outputting.

이하, 예시된 도면을 참조하여 본 발명을 상세히 설명한다.Hereinafter, the present invention will be described in detail with reference to the illustrated drawings.

제7도는 본 발명에 따른 엠펙(MPEG) 시스템의 ESCR 부호화장치도이다.7 is an ESCR encoding apparatus diagram of an MPEG system according to the present invention.

제7도를 참조하면, 본 발명의 MPEG 시스템의 ESCR 부호화장치는, 엘리멘트리 스트림 인코더 (510)와, PES 패킷타이저(520), 플래그 발생수단(530), 전송패킷 타이저(540), 인코더 클럭 시스템(550), 검출 및 기록수단(560) 및 전송버퍼(570)를 포함한다.Referring to FIG. 7, the ESCR encoding apparatus of the MPEG system of the present invention includes an elementary stream encoder 510, a PES packetizer 520, a flag generating means 530, a transmission packetizer 540, The encoder clock system 550, the detection and recording means 560, and the transmission buffer 570.

엘리멘트리 스트림 인코더(510)는 비디오 및 오디오신호를 인코딩하여 엘리멘트리 스트림으로 후술하는 PES 패킷타이저(520)와 스타트코드 검출부(531)로 제공하도록 구성된다.The elementary stream encoder 510 is configured to encode video and audio signals and provide them to the PES packetizer 520 and the start code detector 531 which will be described later as elementary streams.

PES 패킷타이저(520)는 엘리멘트리 스트림 인코더(510)로부터 제공되는 엘리멘트디 스트림에 가변정보 데이터를 포함시켜 PES 패킷화후 후술하는 전송 패킷타이저(540)로 제공되도록 구성된다.The PES packetizer 520 is configured to include variable information data in the elementary stream provided from the elementary stream encoder 510 to be provided to the transport packetizer 540 described later after PES packetization.

플래그 발생수단(530)은 엘리멘트리 스트림 인코더(510)의 출력인 엘리멘트리 스트림에서 오디오 및 비디오신호의 시작을 알리는 스타트코드의 검출 결과에 따라서 플래그를 발생하거나 디코딩 시간의 기준을 맞추기 위한 ESCR가 기록되어 전송되는 시점부터 카운트를 행한 카운트 값과 기설정된 기준값간의 비교에 의거하여 플래그를 발생하여 후술하는 전송패킷 타이저(540)로 제공되도록 구성된다.The flag generating means 530 is a flag generated by the ESCR for generating a flag or matching the decoding time according to a detection result of a start code indicating the start of an audio and video signal in the elementary stream, which is an output of the elementary stream encoder 510. And a flag is generated based on a comparison between the count value counted from the time point at which it is transmitted and the preset reference value, and is provided to the transmission packetizer 540 described later.

보다 상세하게는, 플래그 발생수단(530)은, 스타트코드 검출부(531)와, 시간경과 조사부(532) 및 플래그 처리부(533)로 구성된다.More specifically, the flag generating means 530 is composed of a start code detector 531, a time-lapse irradiation unit 532, and a flag processing unit 533.

스타트코드 검출부(531)는 엘리멘트리 스트림 인코더(510)로부터 출력되는 엘리멘트리 스트림에서 스타트코드의 검출되면, 이 검출 결과에 따른 플래그 요구신호를 후술하는 플래그 처리부(533)로 제공되도록 구성된다.When the start code is detected in the elementary stream output from the elementary stream encoder 510, the start code detector 531 is configured to be provided to the flag processor 533, which describes a flag request signal according to the detection result.

시간경과 조사부(532)는 후술되는 전송버퍼(570)에 ESCR이 기록되어 전송되는 시점에 초기화되며, 이 초기화된 시점부터 카운트되는 값과 기설정된 기준값(0.7초에 상응되는 카운트값)이 일치되는 시점에 플래그 요구신호를 후술하는 플래그 처리부(533)로 제공되도록 구성된다.The time-lapse irradiation unit 532 is initialized at the time when the ESCR is recorded and transmitted in the transmission buffer 570 to be described later, and the value counted from the initializing time coincides with the preset reference value (count value corresponding to 0.7 second). It is configured to provide a flag request signal 533 to the flag processor 533 to be described later.

플래그 처리부(533)는 스타트코드 검출부(531)의 플래그 요구 신호에 응답하여 플래그를 상기 전송 패킷타이저(540)로 제공하거나, 상기시간경과 조사부(532)로부터의 플래그 요구신호에 응답하여 플래그를 상기 전송 패킷타이저(540)로 제공하도록 구성된다.The flag processor 533 may provide a flag to the transport packetizer 540 in response to a flag request signal of the start code detector 531 or set a flag in response to a flag request signal from the time-lapse irradiation unit 532. Configured to provide to the transport packetizer 540.

전송패킷 타이저(540)는 PES 패킷타이저(520)의 출력인 PES 패킷을 전송 패킷화하며, 이 전송 패킷화된 상기 전송패킷내에 플레그신호를 기록하여 후술하는 검출 및 기록수단(560)과 전송버퍼(570)로 제공하도록 구성된다.The transmission packetizer 540 transfers the PES packet, which is the output of the PES packetizer 520, and writes a flag signal in the transmission packetized transmission packet to detect and record means 560 which will be described later. It is configured to provide to the transmission buffer 570.

인코더 클럭 시스템(550)은 초기 ESCR과 시스템 클럭에 기초하여 디코더에서 수신될 PES 패킷 스트림에 대한 ESCR을 발생하여 후술하는 검출 및 기록수단(560)로 제공되도록 구성되며, 초기 ESCR값에 의해서 시시각각 변동되는 ESCR를 발생시켜 출력하는 기능을 수행한다.The encoder clock system 550 is configured to generate an ESCR for the PES packet stream to be received by the decoder based on the initial ESCR and the system clock, and provide it to the detection and recording means 560 which will be described later. Generates and outputs the ESCR.

보다 상세하게는, 인코더 클럭 시스템(550), 초기 ESCR 검출부(551)와, 시스템 클럭부(552), 제1카운터(553), 비교기(554)와, 제2카운터(555) 및 조합 처리부 (556)로 구성된다.More specifically, the encoder clock system 550, the initial ESCR detector 551, the system clock 552, the first counter 553, the comparator 554, the second counter 555, and the combination processing unit ( 556).

초기ESCR 검출부(551)는 전송버퍼(570)로부터의 초기 ESCR을 검출하며, 이 검출결과로서, 리셋신호 또는 기설정되는 기준값을 후술하는 제1카운터(553)과 제2카운터(555)로 제공되도록 구성되며, 상기 초기 ESCR 검출부(551)는 전송 패킷타이서(540)로부터 출력되는 전송 패킷 스트림이 처음 전송 버퍼(570)에 기록되는 시점부터 상기 전송 버퍼(570)에 처음 수신되는 ESCR이 기록하는 시점까지 상기누적된 데이터량을 전송율로 나누어 얻어지는 초기 ESCR를 검출함을 의미한다.The initial ESCR detection unit 551 detects the initial ESCR from the transmission buffer 570, and provides the reset signal or the preset reference value to the first counter 553 and the second counter 555 as a result of the detection. The initial ESCR detection unit 551 is configured to record the first ESCR received in the transmission buffer 570 from the time when the transport packet stream output from the transport packet TI 540 is first recorded in the transmission buffer 570. It means that the initial ESCR obtained by dividing the accumulated data amount by the transmission rate until the time point.

시스템 클럭부(552)는 시스템 인코더의 온 동작에 따라서 초기화되며, 「27 MHz-810 Hz ≤ 시스템_클럭_주파수≤ 27HNz + 810Hz, 시스템_클럭_주파수의 시간변화율≤75×10-3Hz/sec」조건을 만족하는 시스템 클럭을 발생한다.The system clock unit 552 is initialized in accordance with the ON operation of the system encoder, and "27 MHz-810 Hz ≤ system_clock_frequency ≤ 27HNz + 810Hz, and the time change rate of the system_clock_frequency ≤ 75 x 10 -3 Hz / sec] Generates a system clock that satisfies the condition.

제1카운터(553)는 초기 ESCR 검출부(551)에 의해서 검출되는 초기 ESCR에 기초하여 초기값을 0 으로 리셋시킬 수도 있고 또한, 0 이 아닌 다른 기준치를 제공받을 수도 있도록 구성되며, 상기 제1카운터(553)는 초기 ESCR 검출부(551)의 리셋신호를 또는 기준값에 의거해서 초기화되며, 상기 시스템 클럭부(552)의 한 클럭마다 9 비트 카운터가 1씩 증가되고, 이 값은 매 시스템 클록마다 비교기(554)와 조합처리부 556로 제공되며, 상기 제1카운터(553)는 모듈 300 9비트 카운터로 이루어진다. 여기서, 모듈 300 9 비트 카운터란 0에서 299 값이 되면, 다음 클럭에 다시 0으로 세트하여 주기가 300임을 의미한다.The first counter 553 may be configured to reset the initial value to 0 based on the initial ESCR detected by the initial ESCR detection unit 551 and to receive a reference value other than 0. 553 is initialized based on the reset signal of the initial ESCR detection unit 551 or based on a reference value, and a 9-bit counter is incremented by one for each clock of the system clock unit 552, and this value is a comparator for every system clock. 554 and a combination processor 556, wherein the first counter 553 comprises a module 300 9-bit counter. Herein, when the module 300 9-bit counter reaches a value of 0 to 299, it means that the period is 300 by setting it back to 0 at the next clock.

비교기(554)는 제1카운터(553)에 의해서 카운트된 값과 기설정된 기준값(299의 9비트 2진수값)과의 비교 결과, 일치되는 시점에 캐리를 발생시켜 후술하는 제2카운터(555)로 출력하며, 상기 제1카운터(553)에 의해서 9비트 단위의 ESCR-ext로 표현될 카운트 값은 후술하는 조합처리부(556)로 제공되도록 구성된다. 제 2카운터(555)는 초기 ESCR 검출부(551)의 리셋신호 또는 기준값에 의해서 초기화되며, 상기 비교기(554)의 캐리를 카운트하여, 33 비트단위의 ESCR-base로 표현될 카운트값을 후술하는 조합처리부(556)로 제공되도록 구성되며, 상기 제 2 카운터(555)는 33 비트 카운터로 이루어진다. 여기에서, 33 비트 카운터는 시스템 클럭의 매 300 클럭마다 한 번씩 증가하게 연산하게 된다.The comparator 554 compares the value counted by the first counter 553 with a preset reference value (9-bit binary value of 299). The count value to be expressed as ESCR-ext in a 9-bit unit by the first counter 553 is configured to be provided to the combination processing unit 556 described later. The second counter 555 is initialized by the reset signal or the reference value of the initial ESCR detection unit 551, and counts the carry of the comparator 554, a combination that will be described later to the count value to be expressed in ESCR-base of 33 bits unit It is configured to be provided to the processing unit 556, the second counter 555 is composed of a 33-bit counter. Here, the 33 bit counter is calculated to increment once every 300 clocks of the system clock.

조합 처리부(556)는 6비트단위의 추가비트를 구비하며, 상기 비교기(554)의 카운트 값과 상기 6비트단위의 추가비트 및 상기 제 2 카운터(555)의 카운트 값을 논리 조합하여 48 비트단위의 ESCR을 상기 ESCR 메모리(562)로 제공하도록 구성된다.The combination processing unit 556 includes an additional bit of 6 bit units, and logically combines the count value of the comparator 554 with the additional bit of the 6 bit unit and the count value of the second counter 555 to form a 48 bit unit. Provide an ESCR of the ESCR memory 562.

검출 및 기록수단(560)은 인코더 클럭 시스템(550)의 출력인 ESCR를 기록하며, 상기 전송 패킷타이저(540)의 출력인 전송패킷에서 플래그의 검출 결과에 응답하여 상기 기록된 ESCR을 독출하여 상기 전송버퍼(570)로 출력하도록 구성된다.The detection and recording means 560 records the ESCR which is the output of the encoder clock system 550, and reads the recorded ESCR in response to the detection result of the flag in the transmission packet which is the output of the transmission packetizer 540. It is configured to output to the transmission buffer 570.

보다 상세하게는, 플래그 검출부(561)는 전송 패킷타이저(540)로부터 출력되는PES패킷의 헤더부분에서 플래그의 존재 여부를 검출하고, 이에 따른 독출신호를 후술하는 ESCR 메모리(562)로 제공하도록 구성된다.More specifically, the flag detector 561 detects the presence of a flag in the header portion of the PES packet output from the transport packetizer 540, and provides the read signal to the ESCR memory 562 described later. Is configured to.

ESCR메모리(562)는 인코더 클럭 시스템(550)로부터 제공되는 ESCR를 기록하고 있다가 상기 플래그 검출부(561)에 의해서 플래그신호가 검출되면, 이에 응답하여 상기 기록되어 있던 ESCR를 독출하여 후술하는 전송버퍼(570)에 출력하도록 구성된다.The ESCR memory 562 records the ESCR provided from the encoder clock system 550, and when a flag signal is detected by the flag detector 561, in response thereto, the ESCR memory 562 reads out the recorded ESCR and transfers a buffer to be described later. And output to 570.

전송버퍼(570)는 검출 및 기록수단(560)로부터 독출되는 ESCR를 전송 패킷타이저(540)의 출력인 전송패킷 스트림내에 기록하여 전송채널로 출력하도록 구성된다.The transport buffer 570 is configured to record the ESCR read out from the detection and recording means 560 into a transport packet stream which is the output of the transport packetizer 540 and output the ESCR to the transport channel.

특히, 전송버퍼(570)는 상기 전송 패킷화된 스트림이 처음 전송버퍼에 기록되는 시점부터 상기 전송버퍼에 처음 수신되는 ESCR이 기록되는 시점까지 누적된 데이량을 전송율로 나누어 초기 ESCR을 구하며, 상기 디코딩하는 시간의 기준을 맞추기 위한 ESCR을 상기 전송패킷과 함께 전송채널로 출력하게 된다.In particular, the transport buffer 570 obtains an initial ESCR by dividing the accumulated amount of data by the transmission rate from the time when the transport packetized stream is first recorded in the transport buffer to the time when the first ESCR received in the transport buffer is recorded. An ESCR for meeting the time of decoding is output to the transport channel together with the transport packet.

상기와 같이 구성된 본 발명을 상세히 설명한다.The present invention configured as described above will be described in detail.

우선, 플래그 발생수단(530)은 PES 스트림이 시작부분을 찾는 기능을 수행하며, 검출 및 기록수단(560)는 PES 스트림이 시작 이전에 ESCR를 기록하는 기능을 수행하며, 또한, ESCR의 전송시기가 최대 0.7초가 넘지 않도록하기 위하여 전송된 ESCR의 시점을 기록하고 있다가 시간을 조사하여 PES 스트림이 0.7 초 이내에 다시 시작하지 않으면, PES 스트림의 시작과 관계없이 ESCR를 전송하여 준다.First, the flag generating means 530 performs the function of finding the start of the PES stream, and the detecting and recording means 560 performs the function of recording the ESCR before the start of the PES stream, and also the transmission timing of the ESCR. In order to prevent the maximum of 0.7 seconds from being recorded, the time point of the transmitted ESCR is recorded. If the PES stream does not restart within 0.7 seconds, the ESCR is transmitted regardless of the start of the PES stream.

이후의 동작은 지속적으로 PES 스트림의 시작부분을 조사하고 있다가 상술된 바와 같이 ESCR를 전송패킷에 기록하여 전송하게 된다.Subsequent operations continue to examine the beginning of the PES stream and then record the ESCR in the transport packet and transmit it as described above.

PES 스트림의 시작(스타트) 부분은 PES 스트림이 일반적으로 독립된 엘리멘트리 스트림 단위로 구성된다. 따라서, 이 독립된 엘레멘트리 스트림이 프레임 단위로 포맷팅되어 전송됨으로 이와 같은 프레임 단위의 포맷팅되는 시점을 조사하면, PES 스트림의 시작 부분을 알 수 있다.The start (start) portion of the PES stream is generally composed of independent elementary stream units. Therefore, when the independent elementary stream is formatted and transmitted in units of frames, the beginning of the PES stream can be known by examining the timing of formatting such frames.

상술된 바 있는 ESCR의 구성을 보면, ESCR-base 부분의 33비트와 ESCR-exe의 9 비트로 42 비트의 길이를 갖는다. 그리고 중간부분의 6 비트는 의미없는 보류(reseved) 비트로 추가되어진 48 비트(6바이트)로 이루어진다.Looking at the configuration of the ESCR described above, it has a length of 42 bits, 33 bits of the ESCR-base portion and 9 bits of the ESCR-exe. The six bits in the middle consist of 48 bits (6 bytes) added as meaningless reserved bits.

ESCR를 만드는 과정에서 시간은 시스템_클럭_주파수로 샘플링되므로, 샘플링간의 시간은 샘플링_주파수의 역수에 해당하며, 이 샘플링된 시간은 42 비트로 표현되므로 42 비트로 표현된 한 단위의 정수값을 의미한다.In the process of creating an ESCR, since time is sampled at system_clock_frequency, the time between samplings is the inverse of sampling_frequency. Since the sampled time is expressed in 42 bits, it means an integer value of one unit expressed in 42 bits. .

이는 샘플링 간격에 해당하고, 42 비트는 동작범위를 결정하므로, ESCR로서 표현할 수 있는 시간의 범위는 0 초에서 시간간격 × 최대값(42 비트로 표현된 ESCR 에서 취할 수 있는 최대 정수)이다.This corresponds to the sampling interval, and since 42 bits determine the operating range, the range of time that can be expressed as an ESCR is from 0 seconds to the time interval x maximum value (the maximum integer that can be taken by the ESCR represented by 42 bits).

하지만, ESCR의 값에서 최대값에 도달한 경우, 다시 0 으로 되는 모듈러 연산이 되므로, 이 시간의 최대값은 크게 의식하지 않아도 된다. 즉, ESCR 값은 주파수 × 시간으로 계산되므로 결과의 값은 단위가 없는 상수인데, 주파수는 시스템_ 클럭_주파수이며, 시간은 i 번째 바이트에 해당하는 시간 t(i)를 말한다.However, when the maximum value is reached from the value of the ESCR, a modular operation is made to be zero again, so the maximum value of this time does not need to be greatly conscious. That is, since the ESCR value is calculated as frequency × time, the result value is a constant without unit, frequency is system_clock_frequency, and time is time t (i) corresponding to the i th byte.

식(B)에서 t(i) 즉, i 번째 바이트에 해당하는 시간이란 0 번째 바이트의 시간이 0 일때(즉 t(i) = 0), i 번째 바이트에 해당하는 시간을 나타내는데 전송율(스트림의 전송율)은 바이트/초의 단위로 표현된 값이라면, (i/전송-율)초에 해당한다.In equation (B), t (i), that is, the time corresponding to the i th byte, indicates the time corresponding to the i th byte when the time of the 0 th byte is 0 (that is, t (i) = 0). Transfer rate) corresponds to (i / transmission-rate) seconds if it is a value expressed in units of bytes / second.

식(B)에서 ESCR 값은 ESCR_base와 ESCR-ext로 각각 따로 계산되는데, ESCR-ext는 ESCR_base로 표시하고 남은 시간값을 시스템_클럭_주파수(27 MHz)의 단위로 표현되는 값이다. 따라서, ESCR을 시스템_클럭_주파수의 단위로 계산하면, ESCR_base×300+ESCR_ext이다.In equation (B), the ESCR value is calculated separately by ESCR_base and ESCR-ext, where ESCR-ext is expressed as ESCR_base and the remaining time value is expressed in units of system_clock_frequency (27 MHz). Therefore, when ESCR is calculated in units of system clock frequency, it is ESCR_base × 300 + ESCR_ext.

이와 같이 ESCR을 나누어서 계산하는 것은 MPEG-1(ISO/IEC 11172)시스템에서 MPEG-2의 ESCR와 같은 기능을 하는 SCR(System_Clock_Frequency)이 MPEG-2 시스템_클럭_주파수의 1/300에 행하는 90KHz로 계산되므로, 이 MPEG-1 시스템과의 호환성을 주기 위함이다.In this way, the ESCR is calculated by dividing the SCR (System_Clock_Frequency), which functions as the MPEG-2 ESCR in the MPEG-1 (ISO / IEC 11172) system, at 90 KHz performed at 1/300 of the MPEG-2 system_clock_frequency. It is calculated to provide compatibility with this MPEG-1 system.

즉, MPEG-2의 전송 스트림으로 MPEG-2 비디오 엘리멘트리 스트림과 MPEG-2 오디오 엘리멘트리 스트림을 전송하고 수신기(디스코)에서 MPEG-1 비디오/오디오 디코더를 이용하여 프로그램을 디코딩할 때, MPEG-1 시스템 디코더는 MPEG-2 전송 스트림에서 ESCR 부분의 ESCR_base 부분만을 보고 마치 MPEG-1 의 SCR로 간주하는 것이다.That is, when the MPEG-2 video elementary stream and the MPEG-2 audio elementary stream are transmitted as a transport stream of MPEG-2 and the program is decoded by the MPEG-1 video / audio decoder at the receiver (Disco), the MPEG- 1 The system decoder sees only the ESCR_base portion of the ESCR portion of the MPEG-2 transport stream and regards it as an SCR of MPEG-1.

MPEG-2 비디오/오디오 엘리멘트리 스트림은 각각의 MPEG-1 오디오/비디오 스트림과 호환성이 있으므로 MPEG-2 스트림을 MPEG-1 디코더로 디코딩할 수 있다.The MPEG-2 video / audio elementary streams are compatible with each MPEG-1 audio / video stream so that the MPEG-2 stream can be decoded with an MPEG-1 decoder.

그러나, PES 스트림에 대한 PES-STD에 입력되는 시간을 나타내는 ESCR의 값은 한개의 엘리멘트리 스트림으로만 구성되는 PES 패킷을 대상으로 함으로 PES스트림은 MPEG-1 시스템 시코더로 간단히 디코딩할 수 있다.However, since the ESCR value representing the time input to the PES-STD for the PES stream targets a PES packet consisting of only one elementary stream, the PES stream can be simply decoded by an MPEG-1 system decoder.

식(B)에서 스트림_클럭_주파수 × t(i)를 300 으로 나누어 정수값만을 취한 후(DIV300 연산) 이를 233의 모듈러 연산을 수행하여 이진 33 비트로 표현한 것이 ESCR_base이고, ESCR_ext는 시스템_클럭_주파수 × t(i)의 값을 취한 후(DIV 1 연산) 모듈러 300의 연산을 수행하여 이를 9 비트로 표현한 것이다. 결국 ESCR은 이들을 합한 ESCR_base × 300 + ESCR_ext의 값으로 계산된다.In equation (B), the stream_clock_frequency × t (i) is divided by 300 to take only an integer value (DIV300 operation), and this is expressed as binary 33 bits by performing a modular operation of 2 33. ESCR_ext is a system_clock. After taking the value of frequency × t (i) (DIV 1 operation), the operation of modular 300 is performed and expressed as 9 bits. Eventually, the ESCR is calculated by the sum of these values, ESCR_base × 300 + ESCR_ext.

ESCR 데이터의 기록하는데 있어서 전송 패킷구조는 다음과 같다.The transport packet structure for recording ESCR data is as follows.

전송_패킷(Transpor_Packet){전송패킷 헤더() 전송패킷 패이로드()}Transpor_Packet {Transmit Packet Header () Transmit Packet Payload ()}

상기에서 전송패킷 헤더의 데이터에는 전송패킷 싱크 데이터와 기타의 시스템에서 필요한 정보를 기록한다. 전송패킷 패이로드 부분에는 PES 패킷 데이터가 기록된다. 이와 같이 전송패킷 패이로드의 구성은 아래와 같다.In the data of the transport packet header, transport packet sync data and other information required by the system are recorded. PES packet data is recorded in the transmission packet payload portion. Thus, the configuration of the transmission packet payload is as follows.

전송패킷 패이로드(Transport Packet Payload(){ PES 패킷 헤더 () 패킷 패이로드()}Transport Packet Payload () PES Packet Header () Packet Payload ()}

상기에서 PES 패킷은 PES 패킷 헤더와 PES 패킷 패이로드 부분으로 구성되는데, 이 ESCR 데이터는 PES 패킷 헤더부분에 기록된다. 이 과정은 몇 단계의 과정을 더 거쳐서 기록되는데 이 과정을 기술하면 다음과 같다.The PES packet is composed of a PES packet header and a PES packet payload portion, and the ESCR data is recorded in the PES packet header portion. This process is recorded as going through several more steps.

PES 패킷 헤더(){ ... ESCR_플래그 1 비트PES packet header () {... ESCR_flag 1 bit

... it(ESCR_플래그 = 1) {.. ESCR 테이터 48 비트} }... it (ESCR_flag = 1) {.. ESCR data 48 bits}}

상기에서 PES 패킷 헤더부분에 있는 ESCR_플래그의 값이 1 이면, 현재의 PES 헤더부분에 ESCR 가 있음을 의미하며, ESCR_플래그의 값이 0 이면, 현재의 PES 헤더부분에 ESCR 가 없음을 의미한다.If the value of the ESCR_flag in the PES packet header is 1, it means that there is ESCR in the current PES header. If the value of the ESCR_flag is 0, it means that there is no ESCR in the current PES header. do.

이때의 ESCR 데이터 포맷은 48 비트의 길이로서 상술된 바와 같이 ESCR 데이터가 PES 패킷 헤더에 있는 경우를 가정해 보면, 전송 패킷은 다음과 같다.The ESCR data format at this time is 48 bits in length. As described above, assuming that the ESCR data is in the PES packet header, the transport packet is as follows.

전송_패킷(){전송패킷 헤더Transmit_packet () {transmit packet header

전송 패킷 패이로드(){ ... ESCR_플래그 1비트 ..Transmission packet payload () {... ESCR_ flag 1 bit ..

it(ESCR_플래그 = 1){.. ESCR 데이터 48 비트.. )it (ESCR_flag = 1) {.. ESCR data 48 bits ..)

PES 패킷 패이로드() }}PES Packet Payload ()}}

상술한 바와 같이, PES 패킷 헤더에 있는 ESCR_플래그의 상태에 따라서 현재의 PES 패킷 헤더부분에서 ESCR의 존재 유무를 알려준다. 따라서, 디코더에서 이 플래그만을 이용하여 현재 수신되고 있는 데이터에서 ESCR 데이터가 있는지를 알려주기도 한다.As described above, the presence or absence of ESCR is reported in the current PES packet header according to the state of the ESCR_ flag in the PES packet header. Therefore, the decoder may use only this flag to indicate whether there is ESCR data in the data currently being received.

현재의 PES 패킷 헤더에서 ESCR를 기록하는 경우에는 ESCR_플래그가 1 로 세팅한다. 여기서 데이터를 만든 후 ESCR를 기록하게 되는데, 실제로 이와 같은 데이터는 전송버퍼(570)에서 기록되므로, 이와 같은 상태만을 남겨두고 실제의 데이터는 전송 버퍼(550)에 기록하게 되는 것이다.When the ESCR is recorded in the current PES packet header, the ESCR_ flag is set to '1'. Here, the ESCR is recorded after the data is created. In fact, since such data is recorded in the transmission buffer 570, the actual data is recorded in the transmission buffer 550 except for such a state.

ESCR 발생수단을 부가시켜 본 발명을 설명하면, 우선, 엘리멘트리 스트림 인코더(510)는 비디오 및 오디오신호를 인코딩한 엘리멘트리 스트림을 스타트코드 검출부(531)와 PES 패킷타이저(520)로 제공하면, PES 패킷타이저(520)는 이를 PES 패킷화한 다음에, 그 PES 패킷을 전송 패킷타이저(533)로 출력한다.When the present invention is explained by adding the ESCR generating means, first, the elementary stream encoder 510 provides the elementary stream encoding the video and audio signals to the start code detector 531 and the PES packetizer 520. The PES packetizer 520 converts the packet into a PES packet, and then outputs the PES packet to the transport packetizer 533.

그리고, 스타트코드 검출부(531)는 엘리멘트리 스트림 인코더(510)의 출력인 엘리멘트리 스트림에서 스타트코드가 검출되면, 이에 따른 플래그 요구신호를 플래그 처리부(533)로 제공한다.When the start code is detected in the elementary stream which is the output of the elementary stream encoder 510, the start code detector 531 provides the flag request signal to the flag processor 533.

여기에서 스타트코드가 검출은, 오디오 프레임 스타트코드나 비디오 스타트 코드의 존재 유무로서 판정이 가능하다.Here, the start code detection can be determined by the presence or absence of an audio frame start code or a video start code.

플래그 처리부(533)는 스타트코드 검출부(531)의 플래그 요구 신호에 응답하여 플래그를 상기 전송 패킷타이저(540)로 제공하거나, 상기 시간경과 조사부(532)의 플래그 요구신호에 응답하여 플래그를 상기 전송 패킷타이저(540)로 제공된다.The flag processor 533 may provide a flag to the transport packetizer 540 in response to a flag request signal of the start code detector 531, or provide a flag in response to a flag request signal of the time-lapse irradiation unit 532. A transport packetizer 540 is provided.

전송 패킷타이저(530)는 플래그 처리부(533)로부터의 플래그를 상기 상기 PES 헤더에 기록함과 더불어 상기 PES 패킷을 전송 패킷화하여 플래그 검출부(561)와 전송버퍼(570)로 제공한다. 부가적으로, 프로그램에 관련된 시간정보인 PCR를 전송헤더에 기록한다.The transport packetizer 530 records the flag from the flag processor 533 in the PES header and converts the PES packet into a transport packet and provides the flag to the flag detector 561 and the transport buffer 570. Additionally, PCR, which is time information related to the program, is recorded in the transfer header.

상기 PES 헤더에 플래그를 기록한다는 것은, 실질적으로 42비트 길이를 갖는 ESCR을 기록할 수 있도록 자리를 만들어 주는 것으로서, 실제의 ESCR은 이후의 처리과정에서 기록한다.Writing a flag in the PES header makes room for recording an ESCR having a length of substantially 42 bits, and the actual ESCR is recorded in subsequent processing.

참고적으로, ESCR는 최대 0.7초 이내에 재전송해야 한다. 이는 복호화기에서 복호화 시점을 안정하게 잡기 위한 조건이므로(MPEG권고안), 시간경과 조사부(532)는 바로 이전에 전송된 ESCR가 있으면, 이시점부터 시간을 조사하여 0.7초가 되면, 상기 프래그 처리부(533)로 플래그 요구신호를 인가하게 된다.For reference, the ESCR should retransmit within a maximum of 0.7 seconds. Since this is a condition for the decoder to stably decode the decoding point (MPEG recommendation), the time-lapse irradiation unit 532 checks the time from this point in time if there is an ESCR transmitted immediately before, and when the time is 0.7 seconds, the flag processing unit ( 533), the flag request signal is applied.

즉, 시간경과 조사부(532)는 스타트 코드에 관계없이 동작한다. 따라서, PES 패킷의 스타트 코드가 현재의 ESCR를 기록한 시점으로부터 0.7초 이후에 존재하는 경우에는, 상기 시간경우과 조사부(532)는 동작에 따라 플래그 요구신호를 발생시켜 최소한 0.7초내에 플래그를 기록할 수 있도록 한다.That is, the time-lapse irradiation unit 532 operates regardless of the start code. Therefore, if the start code of the PES packet is present 0.7 seconds after the current ESCR recording time, the time case and the irradiation unit 532 can generate a flag request signal according to the operation and record the flag within at least 0.7 seconds. Make sure

한편, 플래그 검출부(561)는 전송 패킷타이저(540)로부터 출력되는 전송 패킷에서 플래그가 검출되면, 그에 따른 독출신호를 ESCR 메로리(562)로 제공한다. 따라서, ESCR 메모리(562)는 기록되어 있던 ESCR를 독출하여 전송버퍼(570)로 제공하여 기록하게 된다.On the other hand, if a flag is detected in the transport packet output from the transport packetizer 540, the flag detector 561 provides a corresponding read signal to the ESCR memory 562. Therefore, the ESCR memory 562 reads out the recorded ESCR, provides it to the transfer buffer 570, and records the recorded ESCR.

여기에서, 플래그 검출부(561)는 전송패킷의 패이로드에 있는 PES 패킷헤더에서 ESCR_플래그가 1 인 것으로서 검사되면, ESCR 메모리(562)에 기록되어 있던 ESCR 을 독출하고, 그 값을 PES 패킷헤더에 기록한다는 것을 의미이다.When the flag detection unit 561 checks that the ESCR_flag is 1 in the PES packet header in the payload of the transmission packet, the flag detection unit 561 reads the ESCR recorded in the ESCR memory 562 and uses the value as the PES packet header. It means to write on.

즉, 제7도에서와 같이, 플래그 요구신호를 받은 후 ESCR을 직접 그 시점에서 기록하는 것이 아니고, 전송버퍼(570)에 기록되는 시점을 기준으로 ESCR를 발생하여 기록하는 것을 의미한다.That is, as shown in FIG. 7, it means that the ESCR is generated and recorded on the basis of the point in time recorded in the transmission buffer 570 after receiving the flag request signal.

이는 전송버퍼(570)에 기록되는 시점을 기준으로하여 모든 시간들의 기준을 정하면서 다른 시간값들도 이에 준하여 기술되기 때문에 복호기는 이 기준값을 기준으로 다른 시간값을 해석할 수 있다.Since the time is recorded based on the time point recorded in the transmission buffer 570, other time values are described accordingly, and thus the decoder can interpret other time values based on this reference value.

따라서, 전송버퍼(570)는 전송 패킷타이저(540)로부터 출력되는 PES 패킷에 상기 독출된 ESCR를 PES 스트림 스타트 코드보다 빠른 시점에 기록한 후 전송채널로 출력하게 되는데, 이는 PES 스트림 스타트 코드가 수신되기 이전에 ESCR를 먼저 수신하여 복호화하면, 보다 빠른 시점에 디코딩이 가능해지는 것이다.Accordingly, the transmission buffer 570 records the read ESCR in the PES packet output from the transport packetizer 540 at a time earlier than the PES stream start code, and then outputs it to the transport channel, which is received by the PES stream start code. If the ESCR is first received and decoded before it is decoded, decoding can be performed at an earlier time.

이후에는, ESCR 메모리(562)에 저장되어 있던 ESCR 값은 다음과 같이 구해진다.Thereafter, the ESCR value stored in the ESCR memory 562 is obtained as follows.

초기 ESCR 검출부(551)는 전송 패킷타이저(540)로부터 출력되는 전송패킷 스트림이 처음 전송 버퍼(570)에 기록되는 시점부터 전송 버퍼(570)에 처음 수신되는 ESCR 이 기록하는 시점까지 상기 누적된 데이터량을 전송율로 나누어 얻어지는 초기 ESCR을, 제1, 2카운터(533)(555)로 로딩한후 이 값을 시스템 인코더 클럭부(552)의 동작에 따라 카운트 값이 증가된다.The initial ESCR detection unit 551 accumulates from the time when the transport packet stream output from the transport packetizer 540 is first recorded in the transport buffer 570 to the time when the ESCR first received in the transport buffer 570 is recorded. After the initial ESCR obtained by dividing the data amount by the transmission rate is loaded into the first and second counters 533 and 555, the value is increased according to the operation of the system encoder clock unit 552.

시스템 클럭부(552)은 상술된 바 있는 27 MHz-810 Hz ≤ 시스템_클럭_주파수 ≤ 27MHz + 810 Hz , 시스템_클럭_주파수의 시간변화율≤ 75×10-3Hz/sec 조건을 만족하는 클럭을 발생한다.The system clock unit 552 is a clock that satisfies the above-described 27 MHz-810 Hz ≤ system_clock_frequency ≤ 27 MHz + 810 Hz, the time change rate of the system_clock_frequency ≤ 75 × 10 -3 Hz / sec Occurs.

따라서, 제1카운터(553)와 제2카운터(555)는 초기와 동작을 수행하고, 상기 시스템 클럭부(552)는 상술된 바 있는 조건의 범위내에서 안정된 클럭(27MHz)을 발생시켜 제1카운터(553)로 제공한다.Accordingly, the first counter 553 and the second counter 555 perform initial and operation, and the system clock unit 552 generates a stable clock (27 MHz) within the range of the above-described conditions, thereby generating the first counter. It provides a counter 553.

제1카운터(553)는 시스템 클럭부(552)의 한 클럭마다 9 비트 카운터가 1 씩 증가되고, 이 값은 매 시스템 클럭마다 비교기(554)와 조합 처리부(556)로 제공한다.The first counter 553 is incremented by one 9-bit counter for each clock of the system clock unit 552, and this value is provided to the comparator 554 and the combination processor 556 for each system clock.

따라서, 비교기(554)는 제1카운터(553)로부터 제공되는 카운터된 값과 기준값(299)을 비교한 결과, 일치되는 시점에 캐리를 발생시켜 제2카운터(555)제공하며, 상기 제1카운터(553)에 의해서 카운터 되는 값 또한, 조합 처리부(556)로 제공된다.Accordingly, the comparator 554 compares the counter value provided from the first counter 553 with the reference value 299, and generates a carry at the matching time point to provide the second counter 555, and the first counter. The value countered by 553 is also provided to the combination processing unit 556.

또한, 제2카운터(555)는 비교기(554)로부터의 캐리를 카운트하고, 이 카운트된 값을 조합 처리부(556)로 제공하게 된다.In addition, the second counter 555 counts the carry from the comparator 554 and provides the counted value to the combination processing unit 556.

즉, 비교기(554)는 100101011과 (299의 9비트 이진 값) 9 비트 카운터의 출력과 비교하여 같아지는 시점에서 케리를 발생하면서 1 씩 증가되는 것이다. 이와 같이 구성하는 이유는 ESCR의 값이 인코더 시스템과 클럭과 동기를 맞추어 계산하기 위함이다.That is, the comparator 554 is incremented by 1 while generating a carry at the same time as compared with the output of the 100101011 and the 9-bit counter (9-bit binary value of 299). The reason for this configuration is to calculate the ESCR value in synchronization with the encoder system and the clock.

조합 처리부(556)는 6비트단위의 추가비트를 구비하며, 상기비교기(554)의 카운트 값과 상기 6비트단위의 추가비트 및 상기 제2카운터(555)의 카운트 값을 48 비트단위로 논리 조합하고, 그 논리 조합정보인 ESCR을 상기 ESCR 메모리(562)로 제공하게 된다.The combination processing unit 556 includes additional bits in 6-bit units, and logically combines the count value of the comparator 554 with the additional bits in 6-bit units and the count value of the second counter 555 in 48-bit units. Then, the ESCR which is the logical combination information is provided to the ESCR memory 562.

플래그 검출부(561)의 플래그 검출신호에 의해서 상기 ESCR 메모리(562)에 기록되어 있던 ESCR 가 독출되어 전송버퍼(570)로 제공되도록 한다.The ESCR recorded in the ESCR memory 562 is read out and supplied to the transfer buffer 570 by the flag detection signal of the flag detector 561.

결국, 전송버퍼(570)는 전송패킷타이저(540)로부터 출력되는 PES 패킷의 헤더에 상기 ESCR를 기록한 후 전송채널을 출력하게 된다.As a result, the transmission buffer 570 records the ESCR in the header of the PES packet output from the transmission packetizer 540 and then outputs the transmission channel.

따라서, 시스템 디코더는 전송패킷내의 엘리멘트리 스트림(오디오/비디오신호)보다 먼저 입력되는 ESCR 근거로하여 PES 패킷을 복호화할 수 있게 된다.Therefore, the system decoder can decode the PES packet on the basis of the ESCR inputted before the elementary stream (audio / video signal) in the transport packet.

이상에서 설명한 바와 같이 본 발명은 MPEG 시스템에서 규정하는 ESCR 데이터의 최대 전송시간 제한조건을 만족하면서 복호화 시간을 단축할 수 있는 효과가 있다.As described above, the present invention has the effect of reducing the decoding time while satisfying the maximum transmission time restriction condition of the ESCR data defined in the MPEG system.

Claims (5)

엠펙 권고안에 근거하여 오디오/비디오신호를 인코딩하는 엘리멘트리 스트림 인코더와, 상기 인코딩된 출력을 PES 패킷화하는 PES 패킷타이저, 상기 PES 패킷을 전송 패킷화하며, 상기 전송 패킷화된 스트림이 처음 전송버퍼에 기록되는 시점부터 상기 전송버퍼에 처음 수신되는 ESCR이 기록되는 시점까지 누적된 데이량을 전송율로 나누어 초기 ESCR를 구하며, 상기 디코딩하는 시간의 기준을 맞추기 위한 ESCR을 상기 전송패킷과 함께 전송채널로 출력하는 장치에 있어서, 상기 엘리멘트의 스트림 인코더(510)의 출력인 엔리멘트리 스트림에서 오디오 및 비디오신호의 시작을 알리는 스타트코드의 검출 결과에 따라서 플래그를 발생하거나 디코딩 시간의 기준을 맞추기 위한 ESCR 기록되어 전송되는 시점부터 카운트를 행한 카운트 값과 기설정된 기준값간의 비교에 의거하여 플래그를 발생하는 플래그 발생수단(530)과 ; 상기 PES 패킷타이저(520)의 출력인 PES 패킷을 전송 패킷화하며, 이 전송 패킷화된 상기 전송패킷에 상기 플래그 발생수단(530)으로부터의 플래그를 기록하여 출력하는 전송 패킷타이저(540)와;상기 초기 ESCR과 시스템 클럭에 기초하여 디코더에서 수신될 PES 패킷 스트림에 대한 ESCR을 발생하는 인코더 클럭 시스템(550) 상기 인코더 클럭 시스템(550)의 출력인 ESCR를 기록하며, 상기 전송 패킷타이저(540)의 출력인 전송패킷에서 플래그의 검출 결과에 응답하여 상기 기록된 ESCR를 독출하여 상기 전송버퍼(570)로 출력하는 검출 및 기록수단(560)을 포함함을 특징으로 하는 엠펙(MPEG) 시스템의 이에스씨알(ESCR)부호화장치.An elementary stream encoder that encodes an audio / video signal based on an MPEG recommendation, a PES packetizer that PES packetizes the encoded output, transport packetizes the PES packet, and the transport packetized stream first transmits The initial ESCR is obtained by dividing the accumulated amount of data from the time point written in the buffer to the time point in which the first ESCR received in the transmission buffer is recorded by the transmission rate, and the ESCR for meeting the standard of the decoding time together with the transmission packet. In the apparatus for outputting a signal, the ESCR for generating a flag or matching a decoding time standard according to a detection result of a start code indicating an start of an audio and video signal in an elementary stream which is an output of the stream encoder 510 of the element. Between the count value which counted from the time of recording and transmission and the preset reference value Flag generating means 530 for generating a flag based on the comparison; A transport packetizer 540 which converts a PES packet, which is an output of the PES packetizer 520, into a transport packet, and records and outputs a flag from the flag generation means 530 in the transport packetized transport packet. And an encoder clock system 550 for generating an ESCR for a PES packet stream to be received at a decoder based on the initial ESCR and a system clock, recording an ESCR that is an output of the encoder clock system 550, and transmitting the packetizer. MPEG (MPEG) characterized in that it comprises a detection and recording means 560 for reading out the recorded ESCR in response to the detection result of the flag in the transmission packet that is the output of the output to the transmission buffer 570 ESCR encoder of the system. 제1항에 있어서, 상기 플래그 발생수단(530)은, 상기 엘리멘트리 스트림 인코더(510)로부터 출력되는 엘리멘트리 스트림에서 스타트코드의 검출 결과에 응답하여 플래그 요구신호를 제공하는 스타트코드 검출부(531)와 ; 상기 전송버퍼(570)에 ESCR가 기록되어 전송되는 시점에 초기화되며, 이 초기화된 시점부터 카운트되는 값과 기설정된 기준값이 일치되는 시점에 플래그 요구신호를 제공하는 시간경과 조사부(532)와 ; 상기 스타트코드 검출부(531)로부터 제공되는 플래그 요구신호에 응답하여 플래그를 상기 전송 패킷타이저(540)로 제공하거나, 상기 시간경과 조사부(532)로부터의 플래그 요구신호에 응답하여 플래그를 상기 전송 패킷타이저(540)로 제공하는 플래그 처리부(533)를 구비함을 특징으로 하는 엠펙(MPEG) 시스템의 이에스씨알(ESCR) 부호화장치.The start code detection unit (531) of claim 1, wherein the flag generation unit (530) provides a flag request signal in response to a detection result of a start code in the elementary stream output from the elementary stream encoder (510). Wow ; A time-lapse irradiation unit 532 which is initialized at the time when the ESCR is recorded and transmitted in the transmission buffer 570, and provides a flag request signal at a time when the value counted from this initialization time coincides with a preset reference value; A flag is provided to the transport packetizer 540 in response to a flag request signal provided from the start code detector 531, or a flag is sent to the transport packetizer 540 in response to a flag request signal from the time-lapse search unit 532. An ESCR encoding apparatus of an MPEG system, comprising: a flag processing unit 533 provided to the riser 540. 제1항에 있어서, 상기 검출 및 기록수단(560), 상기 전송 패킷타이저(540)로부터 출력되는 전송스트림에서 플래그의 존재 여부를 검출하여 그에 따른 독출신호를 제공하는 플래그 검출부(561)와 ; 상기 인코더 클럭 시스템(550)로부터 제공되는 ESCR를 기록하고 있다가 상기 플래그 검출부(561)의 플래그 검출에 응답하여 상기 기록되어 있던 ESCR를 독출하여 상기 전송버퍼(570)로 출력하는 ESCR 메모리(562)로 구성됨을 특징으로 하는 엠펙(MPEG) 시스템의 이에스씨알(ESCR) 부호화장치.The flag detection unit 561 of claim 1, further comprising: a flag detection unit 561 which detects the presence or absence of a flag in the transport stream output from the detection and recording means 560 and the transport packetizer 540 and provides a read signal accordingly; ; ESCR memory 562 which records the ESCR provided from the encoder clock system 550 and reads out the recorded ESCR in response to the flag detection of the flag detector 561 and outputs the ESCR to the transfer buffer 570. ESCR encoding apparatus of the MPEG system, characterized in that consisting of. 제3항에 있어서, 상기 플래그는 PES 패킷 스트림의 헤더 부분에 기록됨을 특징으로 하는 엠펙(MPEG) 시스템의 이에스씨알(ESCR 부호화장치.4. The ESCR encoding apparatus of claim 3, wherein the flag is recorded in a header portion of a PES packet stream. 제1항내지 제4항중 어느 한 항에 있어서, 상기 인코더 클럭 시스템(550)은, 상기 전송버퍼(570)로부터의 초기 ESCR을 검출하며, 이 검출결과로서, 리셋신호 또는 기설정되는 기준값을 출력하는 초기 ESCR 검출부(551)와 ; 시스템 인코더의 온 동작에 따라서 초기화되며, 「27MHz-810 Hz ≤ 시스템_클럭_주파수≤ 27MHz + 810 Hz, 시스템_클럭_주파수의 시간변화율≤75×10-3Hz/sec 」조건을 만족하는 시스템 클럭을 발생하여 출력하는 시스템 클럭부(552)와 ; 상기 초기 ESCR 검출부(551)의 리셋신호 또는 기준값에 의거해서 초기화되며, 상기 시스템 클럭부(552)의 한 클럭마다 9 비트 카운터가 1 씩 증가되면서 카운트 된 값을 출력하는 제1카운터(553)와 ; 상기 제1카운터(553)에 의해서 카운트된 값과 기설정된 기준값(299의 9비트 2진수값)과의 비교 결과, 일치되는 시점에 캐리를 발생시켜 출력하며, 상기 제1카운터(553)에 의해서 9 비트단위의 ESCR_ext로 표현될 카운트 값을 출력하는 비교기(564)와 ; 상기 초기 ESCR 검출부(551)의 리셋신호 또는 기준값에 의해서 초기화되며, 상기 비교기(554)의 캐리를 카운트하여, 33 비트단위의 ESCR_base로 표현될 카운트값을 출력하는 제2카운터(555)와 ; 상기 6비트단위의 추가비트를 구비하며, 상기 비교기(554)의 카운트 값과 상기 6비트단위의 추가비트 및 상기 제2카운터(555)의 카운트 값을 논리조합하여 48 비트단위의 ESCR을 상기 ESCR 메모리(562)로 제공하는 조합 처리부(556)를 구비함을 특징으로 하는 엠펙(MPEG)시스템의 이에스씨알(ESCR) 부호화장치.The encoder clock system 550 of claim 1, wherein the encoder clock system 550 detects an initial ESCR from the transmission buffer 570, and outputs a reset signal or a predetermined reference value as a result of the detection. An initial ESCR detector 551; The system is initialized according to the ON operation of the system encoder, and satisfies the condition "27 MHz-810 Hz ≤ system_clock_frequency ≤ 27 MHz + 810 Hz, and the time-change rate of system_clock_frequency ≤ 75 x 10 -3 Hz / sec". A system clock unit 552 for generating and outputting a clock; A first counter 553 that is initialized based on a reset signal or a reference value of the initial ESCR detector 551, and outputs a counted value by incrementing the 9-bit counter by 1 for each clock of the system clock unit 552; ; As a result of the comparison between the value counted by the first counter 553 and a preset reference value (9-bit binary value of 299), a carry is generated and output at a matching time point, and is output by the first counter 553. A comparator 564 for outputting a count value to be expressed by ESCR_ext in units of 9 bits; A second counter 555 which is initialized by a reset signal or a reference value of the initial ESCR detector 551, counts a carry of the comparator 554, and outputs a count value to be expressed in ESCR_base of 33 bits; And an additional bit of the six-bit unit, and logically combine the count value of the comparator 554, the additional bit of the six-bit unit, and the count value of the second counter 555 to form an ESCR of 48 bit units. An ESCR encoding apparatus of an MPEG system, comprising: a combination processing unit 556 provided to a memory 562.
KR1019960025091A 1996-06-28 1996-06-28 Apparatus coding escr information in mpeg KR0181080B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019960025091A KR0181080B1 (en) 1996-06-28 1996-06-28 Apparatus coding escr information in mpeg

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019960025091A KR0181080B1 (en) 1996-06-28 1996-06-28 Apparatus coding escr information in mpeg

Publications (2)

Publication Number Publication Date
KR980006942A KR980006942A (en) 1998-03-30
KR0181080B1 true KR0181080B1 (en) 1999-04-01

Family

ID=19464274

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019960025091A KR0181080B1 (en) 1996-06-28 1996-06-28 Apparatus coding escr information in mpeg

Country Status (1)

Country Link
KR (1) KR0181080B1 (en)

Also Published As

Publication number Publication date
KR980006942A (en) 1998-03-30

Similar Documents

Publication Publication Date Title
US6236432B1 (en) MPEG II system with PES decoder
US5982830A (en) Hysteretic synchronization system for MPEG audio frame decoder
RU2273111C2 (en) Method for transformation of packet stream of information signals to stream of information signals with time stamps and vice versa
US5801781A (en) Apparatus for converting moving picture stream of MPEG1 to transport stream of MPEG2
US6940873B2 (en) Data stream control system for associating counter values with stored selected data packets from an incoming data transport stream to preserve interpacket time interval information
CN1976448B (en) Method and system for audio and video transport
JPH08237650A (en) Synchronizing system for data buffer
US5930451A (en) Audio and video reproduction system comprising audio reproduction time adjusting unit
JP4294660B2 (en) REPRODUCTION DEVICE, REPRODUCTION METHOD, AND RECORDING MEDIUM THEREOF
US6731658B1 (en) Data recording method and data recording apparatus
CN100416689C (en) Reproducing apparatus and method, and recording medium
JP3990813B2 (en) Encoding apparatus, encoding method, digital transmission apparatus, and digital transmission system
KR0181082B1 (en) Pts coder of mpeg system
JP2000308023A (en) Method and device for transmitting data
KR0181080B1 (en) Apparatus coding escr information in mpeg
US6556626B1 (en) MPEG decoder, MPEG system decoder and MPEG video decoder
JP2005151463A (en) Device and method for receiving stream data
KR0177314B1 (en) Apparatus for protecting transport packet in mpeg system
KR0181083B1 (en) Pcr coding apparatus of mpeg
JP2008176918A (en) Reproducing apparatus and method, and recording medium
KR0181084B1 (en) Dts coding apparatus of mpeg
KR0181081B1 (en) Escr generator for system decoder
JP2001339688A (en) Playback equipment of transport stream
JP2000307647A (en) Data reception device
KR100202019B1 (en) Pcr signal generator of system coder

Legal Events

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

Payment date: 20121203

Year of fee payment: 15

LAPS Lapse due to unpaid annual fee