KR970004793B1 - Demultiplexer logic for use in mpeg2 streams - Google Patents
Demultiplexer logic for use in mpeg2 streams Download PDFInfo
- Publication number
- KR970004793B1 KR970004793B1 KR1019940018631A KR19940018631A KR970004793B1 KR 970004793 B1 KR970004793 B1 KR 970004793B1 KR 1019940018631 A KR1019940018631 A KR 1019940018631A KR 19940018631 A KR19940018631 A KR 19940018631A KR 970004793 B1 KR970004793 B1 KR 970004793B1
- Authority
- KR
- South Korea
- Prior art keywords
- pmt
- pid
- stream
- pat
- depacketizer
- Prior art date
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
Abstract
Description
제1도는 MPEG2 스트림의 구조를 나타낸 개략도.1 is a schematic diagram showing the structure of an MPEG2 stream.
제2도는 본 발명에 따른 MPEG2 스트림을 위한 디멀티플렉서 장치의 블럭도.2 is a block diagram of a demultiplexer apparatus for an MPEG2 stream according to the present invention.
제3도는 제2도에 도시된 A,F,E,K,B신호에 대한 타이밍 다이어그램(TIMING DIAGRAM).3 is a timing diagram for the A, F, E, K, and B signals shown in FIG.
* 도면의 주요부분에 대한 부호의 설명* Explanation of symbols for main parts of the drawings
10 : PAT 디패키타이저 20 : PID 제어기10: PAT Depacketizer 20: PID Controller
30 : PMT 디패키타이저 40 : PID 메모리30: PMT Depacketizer 40: PID Memory
50,70 : 기본스트림디코더 60,80 : 기본스트림버퍼50,70: Basic stream decoder 60,80: Basic stream buffer
100 : 프로그램스트림 200 : PES 스트림100: program stream 200: PES stream
300 : TS 스트림300: TS stream
본 발명은 디멀티플렉서 장치에 관한 것으로, 특히, 멀티플렉싱(MULTIPLEXING)된 MPEG2의 전송스트림(TRANSPORT STREAM : 이하, TS 스트림이라 약칭함)을 디코더로 디멀티플렉싱(DEMUL-TIPLEXING)하여 주는 MPEG2 스트림을 위한 멀티플렉서(DEMULTIPLEXER)장치에 관한 것이다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a demultiplexer device, and more particularly, to a multiplexer for MPEG2 stream which demultiplexes a transport stream of multiplexed (MULTIPLEXING) MPEG2 to a decoder. DEMULTIPLEXER) device.
통상적으로, MPEG2는 데이터의 압축과 그의 전송에 관한 국제규격을 나타낸다.Typically, MPEG2 represents an international standard for the compression of data and its transmission.
제1도는 MPEG2스트림의 구조를 나타낸 개략도이다.1 is a schematic diagram showing the structure of an MPEG2 stream.
제1도는 참조로 하여 MPEG2 스트림에 대하여 살펴보면 다음과 같다.Referring to FIG. 1, an MPEG2 stream will be described with reference to the following.
MPEG2에서 사용하는 전송단위는 188바이트 길이의 TS 스트림으로서, 각각의 TS 스트림은 프로그램 ID(이하, PID라 약칭함)라고 하는 고유의 ID 값을 가지고 있다. 또한, 디멀티플렉싱은 이 PID를 이용하여 발생하게 된다.The transmission unit used in MPEG2 is a TS stream of 188 bytes in length, and each TS stream has a unique ID value called a program ID (hereinafter, abbreviated as PID). Demultiplexing also occurs using this PID.
MPEG2의 가장 상층구조는 프로그램스트림(100 : PROGRAM STREAM)이다. 이 프로그램스트림(100)은 다시 여러개의 PES 스트림(200)으로 나누어진다. 또한, 이 PES 스트림(200)은 또 여러개의 TS 스트림(300)으로 나누어지게 되는데 결국, MPEG2 프로그램스트림(100)은 여러개의 TS 스트림(300)으로 이루어진다.The highest layer structure of MPEG2 is a program stream (100: program stream). This program stream 100 is again divided into several PES streams 200. In addition, the PES stream 200 is further divided into several TS streams 300. As a result, the MPEG2 program stream 100 is composed of several TS streams 300.
PID 값은 PES 스트림(200)을 기준으로 하나의 값이 지정된다. 즉, 다시 말해서 하나의 PES 스트림(200)을 이루는 여러개의 TS 스트림(300)은 서로 같은 PID 값을 갖는다.One PID value is designated based on the PES stream 200. In other words, the TS streams 300 forming one PES stream 200 have the same PID value.
MPEG2에서 디멀티플렉싱을 실행하기 위해서는 PID값 외에 PAT와 PMT라는 두 테이블(도시되지 않음)을 이용한다. 상기 두 테이블의 전송은 일반적인 데이터의 전송과 마찬가지로 TS 스트림(300)에 의해 전송된다. 부연하여 설명하면, 상기 각각의 테이블도 PID값을 가진다. 상기 두 테이블은 기본스트림(ELEMENTARY STREAM)과 이 기본스트림의 PID값을 연결시키는 역할을 한다.In order to perform demultiplexing in MPEG2, two tables (not shown), PAT and PMT, are used in addition to PID values. The transmission of the two tables is transmitted by the TS stream 300 as in the transmission of general data. In detail, each table also has a PID value. The two tables serve to connect the elementary stream with the PID values of the elementary stream.
프로그램스트림(100)은, 사용자가 지정한 프로그램넘버에 의해 선택된다. 또한, PAT 테이블은 여러개의 프로그램스트림(100)에 사용되고 PMT테이블은 각 프로그램스트림(100)에 하나씩 사용된다.The program stream 100 is selected by the program number specified by the user. In addition, the PAT table is used for several program streams 100 and one PMT table is used for each program stream 100.
좀더 상세히 설명하면, PID=0인 PAT 테이블은 프로그램스트림(100)의 프로그램넘버와 PMT 테이블의 PID값을 연결한다. 다시 말해서, 프로그램넘버에 지정된 PMT 테이블의 PID 값을 나타낸다. 그러므로, PMT 테이블은 상기 프로그램넘버를 가진 프로그램스트림(100)이 가지고 있는 기본스트림 각각의 PID값을 가지고 있다.In more detail, the PAT table with PID = 0 connects the program number of the program stream 100 and the PID value of the PMT table. In other words, it represents the PID value of the PMT table specified in the program number. Therefore, the PMT table has a PID value of each elementary stream owned by the program stream 100 having the program number.
따라서, 본 발명의 목적은 상기한 바와 같은 MPEG2 규격에 따른 전송스트림을 디멀티플렉싱 하기 위한 MPEG2 스트림을 위한 디멀티플렉서장치를 제공하는데 있다.Accordingly, an object of the present invention is to provide a demultiplexer apparatus for an MPEG2 stream for demultiplexing a transport stream according to the MPEG2 standard as described above.
상기한 목적을 달성하기 위하여 본 발명은, PID값이 '0'인 TS 패킷(PACKET)스트림들을 입력받아 PAT테이블의 데이터를 PID 메모리로 전송하는 PAT 디패키타이저(DEPACKETIZER)와, PMT 테이블을 나타내는 PID값을 가진 TS 패킷스트림중에서 PMT TS 패킷스트림을 입력받아 PMT 테이블의 데이터를 PID메모리로 전송하는 PMT 디패키타이저와, 상기 PAT 디패키타이저 및 PMT 디패키타이저를 제어하며 기본스트림버퍼로 기록 인에이블(WRITE ENABLE)신호를 전송하는 PID 제어기와, 상기 PAT 디패키타이저 및 PMT 디패키타이저에서 출력하는 상기 PAT 테이블 및 PMT 테이블의 데이터를 저장하며 상기 PAT 테이블데이타를 억세스할때는 사용자에의해 설정된 프로그램넘버를 어드레스로 사용하고 상기 PMT 테이블데이타를 억세스(ACCESS)할때에는 PID값을 어드레스로 사용하는 PID 메모리와, 상기 PID 제어기에서 출력하는 상기 기록 인에이블신호에 따라 상기 데이터를 기록하는 기본스트림버퍼(ELEMEN-TARY STREAM BUFFER)와, 각각의 기본스트림을 디코딩하는 기본스트림디코더(ELEMNTARY STREAM DECODER)를 포함한다.In order to achieve the above object, the present invention provides a PAT depacketizer (DEPACKETIZER) and PMT table for receiving TS packet streams having a PID value of '0' and transmitting data of a PAT table to a PID memory. A PMT depacketizer that receives a PMT TS packet stream from a TS packet stream having a PID value and transmits the data of the PMT table to the PID memory, and controls the PAT depacketizer and the PMT depacketizer, and records and writes to the base stream buffer. PID controller that transmits a WRITE ENABLE signal, and data of the PAT table and PMT table output from the PAT depacketizer and PMT depacketizer, and when accessing the PAT table data, a program number set by a user. Is used as an address and the PID memory uses a PID value as an address when accessing the PMT table data (ACCESS), and the PID. And an elementary stream buffer for recording the data according to the write enable signal output from the controller, and an elementary stream decoder for decoding each elementary stream.
이하, 첨부된 도면을 참조로 하여 본 발명에 대하여 상세히 설명하면 다음과 같다.Hereinafter, the present invention will be described in detail with reference to the accompanying drawings.
제2도는 본 발명에 따른 MPEG2 스트림을 위한 디멀티플렉서 장치의 블럭도이다.2 is a block diagram of a demultiplexer apparatus for an MPEG2 stream according to the present invention.
제2도에 도시된 바와 같이 본 발명은, PID값이 '0'인 TS패킷(PACKET)스트림들을 입력받아 각 TS 패킷스트림의 헤더부분을 소거한 후 PAT 테이블의 데이터에 해당하는 부분을 PID 메모리(40)로 전송하는 PAT 디패키타이저(10)와, PMT 테이블을 나타내는 PID값을 가진 TS 패킷스트림중에서 PMT TS 패킷스트림을 입력받아 헤더부분을 소거하여 PMT 테이블의 데이터 부분을 PID 메모리로 전송하는 PMT 디패키타이저(30)와, PAT 디패키타이저(10) 및 PMT 디패키타이저(30)를 제어하는 PID 제어기(20)와, PAT 디패키타이저(10) 및 PMT 디패키타이저(30)에서 출력하는 PAT 테이블 및 PMT 테이블의 데이터를 저장하는 PID 메모리(40)와, PID 제어기(20)에서 출력하는 기록 인에이블신호에 따라 상기 데이터를 기록하는 기본스트림버퍼(60,80와, 비디오스트림인 경우 비디오코더이고 오디오스트림인 경우 오디오디코더를 의미하는, 각가의 기본스트림을 디코딩하는 기본스트림디코더(50,70)로 구성된다.As shown in FIG. 2, in the present invention, after receiving TS packet streams having a PID value of '0', the header portion of each TS packet stream is erased, and a portion corresponding to the data of the PAT table is stored in the PID memory. A PMT TS packet stream is received from the PAT depacketizer 10 and the TS packet stream having the PID value indicating the PMT table, and the header part is erased to transmit the data portion of the PMT table to the PID memory. In the PID controller 20 for controlling the PMT depacketizer 30, the PAT depacketizer 10, and the PMT depacketizer 30, the PAT depacketizer 10 and the PMT depacketizer 30. PID memory 40 for storing data of the PAT table and PMT table to be output, and basic stream buffers 60 and 80 for recording the data according to the write enable signal output from the PID controller 20. Video encoder and audio stream It consists of elementary stream decoders 50 and 70 for decoding each elementary stream, which means an audio decoder.
제3도는 제2도에 도시된 A,F,E,K,B신호에 대한 타이밍 다이어그램이다.3 is a timing diagram for the A, F, E, K, and B signals shown in FIG.
제2도에 도시된 바와 같이 구성된 본 발명을 제3도의 타이밍 다이어그램과 연관하여 설명하면 다음과 같다.The present invention constructed as shown in FIG. 2 will be described with reference to the timing diagram of FIG.
먼저, PAT 디패키타이저(10)는 PID값이 '0'인 PAT 테이블을 나타내는 스트림을 받아 PAT 테이블의 데이타를 PID 메모리(40)로 전송하고, PID 메모리(40)는 상기 PAT 테이블 데이터를 저장한다. 그리고, PAT 테이블의 데이터 저장이 완료되면 제3도에 도시된 A신호가 '하이'가 된다. 또한, PID 제어기(20)는 사용자에 의해 선택된 프로그램넘버를 이용하여 PID 메모리(40)를 억세스(ACCESS)하고 PMT 테이블의 PID값을 검출하여 PMT 디패키타이저(30)로 전송된다.First, the PAT depacketizer 10 receives a stream indicating a PAT table having a PID value of '0' and transmits data of the PAT table to the PID memory 40, and the PID memory 40 stores the PAT table data. do. When the data storage of the PAT table is completed, the A signal shown in FIG. 3 becomes 'high'. In addition, the PID controller 20 accesses the PID memory 40 using the program number selected by the user, detects the PID value of the PMT table, and transmits the detected PID value to the PMT depacketizer 30.
PMT 디패키타이저(30)는 PMT 테이블의 PID값을 이용하여 입력되는 스트림중에서 PMT 테이블을 검출하여 PID 메모리는 PMT 테이블의 데이터를 저장한다. 이 과정까지는 완료되면 제3도에 도시된 E신호가 '하이'가 된다. A신호 및 E신호가 '하이'가 되면 B신호가 '하이'가 된다. 즉, PID 제어기(20)는 PID 메모리(40)를 제어하여 데이터를 기본스트림버퍼(60,80)로 전송하고, 기본스트림버퍼(60,80)는 C 및 D신호, 즉, 기록 인에이블신호에 의해 상기 데이터를 기록한다.The PMT depacketizer 30 detects the PMT table from the input stream using the PID value of the PMT table, and the PID memory stores the data of the PMT table. When this process is completed, the E signal shown in FIG. 3 becomes 'high'. When signal A and signal E become high, signal B becomes high. That is, the PID controller 20 controls the PID memory 40 to transmit data to the elementary stream buffers 60 and 80, and the elementary stream buffers 60 and 80 transmit the C and D signals, that is, the write enable signal. The data is recorded by.
이와 같이, 상기 PAT 테이블 및 PMT 테이블이 메모리에 저장되면 PID 제어기(20)는 입력되는 PID값을 어드레스로 사용하여 PID 메모리를 억세스하게 되고, 이렇게 하면 입력하는 스트림의 기본스트림의 형태를 알 수 있게 된다.As such, when the PAT table and the PMT table are stored in the memory, the PID controller 20 accesses the PID memory by using the input PID value as an address. In this way, the type of the elementary stream of the input stream can be known. do.
상기에서, 기본스트림의 형태가 밝혀지면 PID 제어기(20)는, 밝혀진 기본스트림을 디코딩하는 경로로 기록 인에이블신호를 전송하고 다른 기본스트림디코더로의 경로는 디스에이블시킨다.In the above, if the shape of the elementary stream is known, the PID controller 20 transmits a write enable signal to the path for decoding the found elementary stream and disables the path to another elementary decoder.
상술한 바와 같이 본 발명은, MPEG2에서, 멀티플렉싱되어 전송되는 여러가지의 기본스트림을 기본스트림디코더를 사용하여 정확하게 디멀티플렉싱 하도록 한 것이다.As described above, in the present invention, various elementary streams multiplexed and transmitted in MPEG2 are accurately demultiplexed using an elementary stream decoder.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019940018631A KR970004793B1 (en) | 1994-07-29 | 1994-07-29 | Demultiplexer logic for use in mpeg2 streams |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019940018631A KR970004793B1 (en) | 1994-07-29 | 1994-07-29 | Demultiplexer logic for use in mpeg2 streams |
Publications (2)
Publication Number | Publication Date |
---|---|
KR960006366A KR960006366A (en) | 1996-02-23 |
KR970004793B1 true KR970004793B1 (en) | 1997-04-03 |
Family
ID=19389295
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1019940018631A KR970004793B1 (en) | 1994-07-29 | 1994-07-29 | Demultiplexer logic for use in mpeg2 streams |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR970004793B1 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100601596B1 (en) * | 1999-01-06 | 2006-07-14 | 삼성전자주식회사 | Apparatus for recording/playing MPEG bit stream and method thereof |
KR100749070B1 (en) * | 2000-07-14 | 2007-08-13 | 삼성전자주식회사 | System for de-multiplexing TS |
KR100382655B1 (en) * | 2001-07-25 | 2003-05-09 | 삼성전자주식회사 | Method for storing a program and apparatus therefor |
-
1994
- 1994-07-29 KR KR1019940018631A patent/KR970004793B1/en not_active IP Right Cessation
Also Published As
Publication number | Publication date |
---|---|
KR960006366A (en) | 1996-02-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7095948B2 (en) | Method of storing digital audio and/or video programs compressed on the basis of groups of pictures (GOPs) on a medium with immediate jumping between groups through co-storage of transport stream packets and pointer information, a method for reading such information, and a device for storing and/or reading such information | |
KR20050118197A (en) | Cpi data for stream buffer channels | |
US7206496B2 (en) | Digital recording/playback apparatus | |
JP4207639B2 (en) | Data multiplexing method, data multiplexing device, transmission device, and reception device | |
KR100300986B1 (en) | Apparatus and method for formatting, writing, and reading data in multi-channel writing | |
KR970004793B1 (en) | Demultiplexer logic for use in mpeg2 streams | |
JP3185863B2 (en) | Data multiplexing method and apparatus | |
EP1161841B1 (en) | Demultiplexing and buffering of bitstreams for a DVD audio decoder | |
US7539395B2 (en) | Audio/video recording apparatus and method of multiplexing audio/video data | |
CA2490879A1 (en) | Reproducing apparatus and method, and recording medium | |
KR960016230A (en) | Demultiplexer for MPEG2 Streams | |
JP4384565B2 (en) | MPEG-TS playback device | |
EP0917143A1 (en) | Method and apparatus for controlling the buffering of a data stream | |
JPH10255398A (en) | Image and voice reproducing device | |
KR980700651A (en) | Multiplex signal decoding | |
KR0176586B1 (en) | External memory control method of cd-rom decorder | |
EP0917144B1 (en) | Method and apparatus for controlling a data buffer | |
KR0153900B1 (en) | Direct control device of inner register in cd-rom decoder | |
JP2000152236A (en) | Moving picture coder, multiplexing method, its system and recording and reproducing device | |
JP2000201181A (en) | Memory data locating method and data multiplexer | |
KR0130482B1 (en) | Apparatus for multiplexing the bit stream of video signals and audio signals | |
KR960038877A (en) | TS decoder | |
KR19980059960A (en) | Digital Broadcast Transport Transport Decoder and Replay Method Using the Same | |
JP2000339860A (en) | Data recording and reproducing device | |
EP0917142A1 (en) | Method and apparatus for controlling the buffering of a data stream |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
G160 | Decision to publish patent application | ||
G160 | Decision to publish patent application | ||
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant | ||
LAPS | Lapse due to unpaid annual fee |