KR100243416B1 - Method and apparatus for re-multiplexing in mpeg-2 ts - Google Patents

Method and apparatus for re-multiplexing in mpeg-2 ts Download PDF

Info

Publication number
KR100243416B1
KR100243416B1 KR1019970069520A KR19970069520A KR100243416B1 KR 100243416 B1 KR100243416 B1 KR 100243416B1 KR 1019970069520 A KR1019970069520 A KR 1019970069520A KR 19970069520 A KR19970069520 A KR 19970069520A KR 100243416 B1 KR100243416 B1 KR 100243416B1
Authority
KR
South Korea
Prior art keywords
pcr
transport stream
input
mpeg
input handler
Prior art date
Application number
KR1019970069520A
Other languages
Korean (ko)
Other versions
KR19990050401A (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 KR1019970069520A priority Critical patent/KR100243416B1/en
Publication of KR19990050401A publication Critical patent/KR19990050401A/en
Application granted granted Critical
Publication of KR100243416B1 publication Critical patent/KR100243416B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/08Systems for the simultaneous or sequential transmission of more than one television signal, e.g. additional information signals, the signals occupying wholly or partially the same frequency band, e.g. by time division

Landscapes

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

Abstract

본 발명은 엠펙-2(MPEG-2) 전송 스트림(TS:Transport Stream) 재다중화기 및 재다중화 방법에 관한 것으로, TS패킷열 데이터를 입력받아 일시 저장하기 위한 FIFO와, PCR유무를 확인하여 PCR을 포함하고 있는 경우 시간 지연을 계산한 후 PCR을 정정하는 PCR 정정부를 구비하여 복수개로 배열되는 입력 취급기와; 입력 취급기에 클럭을 제공하기 위한 27MHz 오실레이터와; 입력 취급기로부터 FIFO에 저장되어 있는 TS패킷열의 양을 나타내는 상태 정보를 전달받아 스케줄링 알고리즘에 따라 다음에 다중화할 입력 취급기를 결정하고 이를 해당 입력 취급기에게 알려주는 스케쥴러와; 다중화 선택신호를 받은 입력 취급기가 출력 클럭 및 TS 프레임 동기에 맞춰 하나의 TS패킷열을 출력하게 하고, 출력된 TS패킷열에 PCR정보가 포함되어 있는 경우에는 PCR 정정부를 이용하여 원래의 PCR값 위치에 정정된 PCR값으로 대체하여 출력하게 하기 위한 TDM 다중화기로 구성하여 PCR을 정정할 때 모든 입력 전송 스트림패킷열이 동일하게 갖는 최소 지연 시간을 고려하여 PCR값을 정정함으로써 다중화 과정에서 발생하는 램덤한 시간지연에 대해서도 MPEG복호기가 안정적으로 복호과정을 수행할 있게 한다.The present invention relates to an MPEG-2 transport stream (TS) remultiplexer and a remultiplexing method. The present invention relates to a FIFO for receiving and temporarily storing TS packet string data, and confirming PCR for PCR. A plurality of input handlers including a PCR correction unit for correcting the PCR after calculating the time delay, if included; A 27 MHz oscillator for providing a clock to the input handler; A scheduler which receives state information indicating the amount of TS packet sequence stored in the FIFO from an input handler, determines an input handler to be multiplexed next according to a scheduling algorithm, and informs the corresponding input handler of the input handler; When the input handler receiving the multiplexing selection signal outputs one TS packet sequence in accordance with the output clock and TS frame synchronization, and the PCR information is included in the output TS packet sequence, the original PCR value is positioned by using the PCR correction unit. It consists of a TDM multiplexer for output by replacing with the corrected PCR value. Therefore, when the PCR is corrected, the random value generated during the multiplexing process is corrected by considering the minimum delay time of all input stream stream sequences. Even with time delay, the MPEG decoder can perform the decoding process stably.

Description

엠펙-2 전송 스트림 재다중화기 및 재다중화 방법MPEG-2 Transport Stream Remultiplexer and Remultiplexing Method

본 발명은 엠펙-2(MPEG-2) 전송 스트림(TS:Transport Stream) 재다중화기 및 재다중화 방법에 관한 것으로, 상세하게는 다중화 과정에서 발생하는 랜덤한 시간 지연을 보상하기 위해 프로그램 클럭 레퍼런스(PCR:Program Clock Reference)를 정정하는 기능을 갖는 MPEG-2 TS 재다중화기 및 방법에 관한 것이다.The present invention relates to an MPEG-2 transport stream (TS) remultiplexer and a remultiplexing method. Specifically, the present invention relates to a program clock reference (PCR) to compensate for a random time delay occurring during the multiplexing process. The present invention relates to an MPEG-2 TS remultiplexer and a method having a function of correcting a program clock reference.

MPEG-2 시스템 표준은 재다중화기에서 발생하는 랜덤한 시간 지연만큼 PCR값을 정정하도록 규정하고 있다. 따라서 본 발명은 다중화 과정에서 발생하는 시간 지연을 계산하고, 이 값을 이용하여 TS패킷열 내에 있는 PCR값을 정정하여 다수의 엠펙-2 전송 스트림(MPEG-2 TS) 패킷열을 입력받아 하나의 엠펙-2 열로 다중화시키는 엠펙-2 전송 스트림 재다중화기 및 재다중화 방법을 제공하는 것을 그 목적으로 한다.The MPEG-2 system standard requires that PCR values be corrected by a random time delay occurring in the remultiplexer. Therefore, the present invention calculates the time delay that occurs during the multiplexing process, uses the value to correct the PCR value in the TS packet sequence, and receives a plurality of MPEG-2 TS streams. It is an object of the present invention to provide an MPEG-2 transport stream remultiplexer and a method of remultiplexing which are multiplexed with MPEG-2 rows.

도 1은 MPEG-2 전송 스트림 패킷의 구성도.1 is a block diagram of an MPEG-2 transport stream packet.

도 2는 본 발명에 의한 엠펙-2 전송 스트림 재다중화기 PCR 정정 흐름도.Figure 2 is a flow diagram of the MPEG-2 transport stream remultiplexer PCR correction according to the present invention.

도 3은 본 발명에 의한 MPEG-2 TS 재다중화기 구성도.3 is a block diagram of an MPEG-2 TS remultiplexer according to the present invention;

도 4는 입력 TS열이 다중화 되기까지 대기하는 지연 시간도.4 is a delay time waiting for input TS strings to be multiplexed.

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

10 : 입력 취급기 11 : FIFO10: input handler 11: FIFO

12 : PCR 정정부 20 : 오실레이터12: PCR correction unit 20: oscillator

30 : 스케줄러 40 : TDM 다중화기30: scheduler 40: TDM multiplexer

상기 목적을 달성하기 위한 엠펙-2 TS 재다중화기는 TS패킷열 데이터를 입력받아 일시 저장하기 위한 FIFO(First In First Out)와, PCR(Program Clock Reference)유무를 확인하여 PCR을 포함하고 있는 경우 시간 지연을 계산한 후 PCR을 정정하는 PCR 정정부를 구비하여 복수개로 배열되는 입력 취급기와; 상기 복수개로 배열되는 입력 취급기에 클럭을 제공하기 위한 27MHz 오실레이터와; 상기 입력 취급기로부터 상기 FIFO에 저장되어 있는 TS패킷열의 양을 나타내는 상태 정보를 전달받아 스케줄링 알고리즘에 따라 다음에 다중화할 입력 취급기를 결정하고, 이를 해당 입력 취급기에게 알려주는 스케쥴러와; 다중화 선택신호를 받은 입력 취급기가 출력 클럭 및 TS 프레임 동기에 맞춰 하나의 TS패킷열을 출력하게 하고, 출력된 TS패킷열에 PCR정보가 포함되어 있는 경우에는 PCR 변조부를 이용하여 원래의 PCR값 위치에 정정된 PCR값으로 대체하여 출력하게 하기 위한 TDM 멀티플렉서로 구성된 것을 특징으로 한다.The MPEG-2 TS remultiplexer for achieving the above object is the first time in first out (FIFO) for receiving and temporarily storing the TS packet sequence data, and the PCR (Program Clock Reference) to check the presence of the time An input handler arranged in plural with a PCR correction unit for correcting the PCR after calculating the delay; A 27 MHz oscillator for providing a clock to the plurality of input handlers; A scheduler which receives the state information indicating the amount of TS packet sequence stored in the FIFO from the input handler, determines an input handler to be multiplexed next according to a scheduling algorithm, and informs the corresponding input handler of the input handler; The input handler receiving the multiplex selection signal outputs one TS packet sequence in accordance with the output clock and TS frame synchronization. If the output TS packet sequence includes PCR information, the PCR modulator is used to access the original PCR value. Characterized in that it consists of a TDM multiplexer for outputting by replacing the corrected PCR value.

본 발명에 의한 엠펙-2 전송 스트림 재다중화 방법은 입력 전송 스트림(TS) 패킷열을 입력받아 데이터를 일시 저장하고, PCR유무를 확인하여, PCR을 포함하고 있는 경우 시간 지연을 계산한후 PCR을 정정하는 단계와; 상기 FIFO에 저장되어 있는 전송 스트림 패킷열의 양을 나타내는 상태 정보에 의거하여 스케줄링 알고리즘에 따라 다음에 다중화할 입력 취급기를 결정하고 이를 해당 입력 취급기에게 알려주는 단계와; 다중화 선택신호를 받은 입력 취급기가 출력 클럭 및 전송 스트림 프레임 동기에 맞춰 TDM 멀티플렉서를 통해 하나의 전송 스트림 패킷열을 출력하는 단계와; 전송 스트림 패킷열에 PCR정보가 포함되어 있는 경우 PCR 변조부를 이용하여 원래의 PCR값 위치에 정정된 PCR값으로 대체하여 출력하는 단계를 수행하여, 다수의 엠펙-2 전송 스트림(MPEG-2 TS) 패킷열을 입력받아 하나의 엠펙-2 열로 다중화시키는 것을 특징으로 한다.In the MPEG-2 transport stream re-multiplexing method according to the present invention, after receiving an input transport stream (TS) packet sequence, data is temporarily stored, and the presence or absence of PCR is determined. Correcting; Determining an input handler to be multiplexed next according to a scheduling algorithm based on state information indicating the amount of transport stream packet streams stored in the FIFO, and notifying the corresponding input handler; Outputting, by the input handler receiving the multiplexed selection signal, one transport stream packet sequence through the TDM multiplexer in accordance with the output clock and transport stream frame synchronization; When PCR information is included in the transport stream packet sequence, a plurality of MPEG-2 transport stream (MPEG-2 TS) packets are performed by performing a step of replacing the corrected PCR value at the original PCR value position using a PCR modulator. It receives a column and multiplexes it into one MPEG-2 column.

도 1은 MPEG-2 전송 스트림(Transport Stream:TS)패킷을 나타내는 것으로, 도시된 바와 같이 전송 스트림패킷은 188Byte로 구성되며 1Byte의 동기신호를 포함한 4Byte로 구성된 헤더(1)와, 조건부로 나타나는 Adaptation Field(2)와 가변 길이의 Payload(3)로 구성되어 있다.FIG. 1 shows an MPEG-2 Transport Stream (TS) packet. As shown, a transport stream packet is composed of 188 bytes and a header (1) consisting of 4 bytes including a sync signal of 1 byte, and conditionally indicated adaptation. It consists of a field 2 and a payload 3 of variable length.

MPEG-2 시스템 표준에서 PCR은 비디오와 오디오의 복호기를 포함한 MPEG 시스템 복호기에 있어서 시각기준이 되는 STC(System Timing Clock;기준이 되는 동기정보)의 값을 부호기측에서 의도한 값으로 설정하기 위한 정보이다. PCR값은 모든 전송 스트림패킷열에 포함되어 있지않고 10msec이내의 주기로 전송 스트림패킷열에 삽입되기 때문에 단순히 그 값만으로 복호기가 동작하는 것은 불가능하다. 따라서 복호기에서는 불규칙적이고 이산적으로 입력되는 PCR값을 이용하여 부호기에서 사용한 27MHz의 시스템 클럭과 동기가 일치된 클럭을 복원하여 STC 카운터를 동작시키고 이 클럭과 STC 카운터를 참조하여 복호기능을 수행한다.In the MPEG-2 system standard, PCR is information for setting the value of STC (System Timing Clock) as a reference in the MPEG system decoder including video and audio decoders as intended by the encoder. to be. Since the PCR value is not included in all transport stream packet sequences and is inserted into the transport stream packet sequence at intervals of 10 msec or less, it is impossible to operate the decoder simply by using the value. Therefore, the decoder operates the STC counter by restoring a clock synchronized with the 27 MHz system clock used by the encoder using irregular and discretely input PCR values, and performs a decoding function by referring to the clock and the STC counter.

도 2는 전송 스트림열의 다중화 과정에서 PCR 유무에 따른 전송 스트림패킷열의 처리과정을 흐름도로 나타내는 것으로, 도시된 바와 같이 MPEG-2 전송 스트림다중화기에서 PCR정정 과정은 전송 스트림 패킷이 입력되면(110) 패킷의 헤더부분에 포함된 전송 스트림 패킷 동기신호를 이용하여 Adaptation Field Control Flag(120)와 PCR Flag(150)를 찾고, 이 값을 이용하여 이 패킷내에 PCR 포함 유무를 판별한다. 만일 PCR을 포함하고 있지 않으면 일단 다중화 될 때까지 FIFO에 저장한 후(130) 단순히 188Byte 전송 스트림 패킷단위로 시분할 다중화(TDM:Time Division Multiplexing) 과정만을 수행하고(140), PCR을 포함하고 있으면 FIFO에 저장한 후(160) 이 패킷이 입력되는 시점에서 부터 출력될 때 까지의 시간지연을 고려하여(170) 다음 수학식 1에 의거하여 PCR을 정정한 후(180) 새로운 PCR값으로(190) 다중화하여 출력한다(140).2 is a flowchart illustrating a process of processing a transport stream packet sequence according to the presence or absence of PCR in the multiplexing of the transport stream sequence. As shown in FIG. 2, the PCR correction process in the MPEG-2 transport stream multiplexer is performed when a transport stream packet is input (110). The Adaptation Field Control Flag (120) and the PCR Flag (150) are found using the transport stream packet synchronization signal included in the header portion of the packet, and the presence or absence of PCR in the packet is determined using this value. If it does not include PCR, it is stored in the FIFO until it is multiplexed (130), and then only the time division multiplexing (TDM) process is performed in units of 188 byte transport stream packets (140). After storing (160) in consideration of the time delay from when the packet is input to the output (170) by correcting the PCR according to the following equation (1) (180) to the new PCR value (190) Multiplex and output (140).

Figure 1019970069520_B1_M0001
Figure 1019970069520_B1_M0001

도 3은 MPEG-2 전송 스트림 재다중화기를 나타낸 것으로, 도시된 바와 같이 전송(TS) 패킷열 데이터를 입력받아 일시 저장하기 위한 FIFO(11)와, PCR유무를 확인하여 PCR을 포함하고 있는 경우 시간 지연을 계산한 후 PCR을 정정하는 PCR 정정부(12)를 구비하여 복수개로 배열되는 입력 취급기(10)와; 상기 복수개로 배열되는 입력 취급기(10)에 클럭을 제공하기 위한 27MHz 오실레이터(20)와; 상기 입력 취급기(10)로부터 상기 FIFO(11)에 저장되어 있는 전송 스트림 패킷열의 양을 나타내는 상태 정보를 전달받아 스케줄링 알고리즘에 따라 다음에 다중화할 입력 취급기를 결정하고 이를 해당 입력 취급기에게 알려주는 스케쥴러(30)와; 다중화 선택신호를 받은 입력 취급기가 출력 클럭 및 전송 스트림 프레임 동기에 맞춰 하나의 전송 스트림 패킷열을 출력하게 하고, 출력된 전송 스트림 패킷열에 PCR정보가 포함되어 있는 경우에는 PCR 정정부(12)를 이용하여 원래의 PCR값 위치에 정정된 PCR값으로 대체하여 출력하게 하기 위한 TDM 멀티플렉서(40)로 구성된다.FIG. 3 illustrates an MPEG-2 transport stream remultiplexer. As shown in FIG. 3, a FIFO 11 for receiving and temporarily storing transmission (TS) packet string data and a time when a PCR is included by checking the presence or absence of PCR An input handler (10) having a plurality of input correctors (12) arranged to calculate a delay and then correct the PCR; A 27 MHz oscillator (20) for providing a clock to the plurality of input handlers (10); Receives state information indicating the amount of transport stream packet stream stored in the FIFO 11 from the input handler 10 to determine an input handler to be multiplexed next according to a scheduling algorithm, and informs the corresponding input handler. A scheduler 30; The input handler receiving the multiplexed selection signal outputs one transport stream packet sequence in accordance with the output clock and the transport stream frame synchronization. If the outputted transport stream packet sequence includes PCR information, the PCR correction unit 12 is used. And a TDM multiplexer 40 for outputting by replacing the corrected PCR value at the original PCR value position.

입력된 전송(TS) 패킷열 데이터는 상기 FIFO(11)에 일시 저장하고, 상기 PCR 정정부(12)는 PCR유무를 확인하여 PCR을 포함하고 있는 경우 시간 지연을 계산한 후 PCR을 정정한다. 상기 입력 취급기(10)는 복수개로 배열된다. 상기 복수개로 배열되는 입력 취급기(10)에 상기 27MHz 오실레이터(20)는 클럭을 제공하며, 스케줄러(30)는 상기 입력 취급기(10)로부터 상기 FIFO(11)에 저장되어 있는 전송 스트림 패킷열의 양을 나타내는 상태 정보를 전달받아 스케줄링 알고리즘에 따라 다음에 다중화할 입력 취급기를 결정하고 이를 해당 입력 취급기에게 알려준다. 다중화 선택신호를 받은 입력 취급기가 출력 클럭 및 전송 스트림 프레임 동기에 맞춰 하나의 전송 스트림 패킷열을 출력하게 하고, 상기 TDM 멀티플렉서(40)는 출력된 전송 스트림 패킷열에 PCR정보가 포함되어 있는 경우에는 PCR 정정부(12)를 이용하여 원래의 PCR값 위치에 정정된 PCR값으로 대체하여 출력하게 한다.The input transmission (TS) packet string data is temporarily stored in the FIFO 11, and the PCR correction unit 12 checks the presence or absence of PCR, calculates a time delay, and corrects the PCR. The input handler 10 is arranged in plurality. The 27 MHz oscillator 20 provides a clock to the plurality of input handlers 10 arranged therein, and the scheduler 30 is configured to transmit a stream of transport stream packets stored in the FIFO 11 from the input handler 10. Based on the state information indicating the quantity, the scheduling algorithm decides which input handler to multiplex next and informs the input handler. The input handler receiving the multiplexed selection signal outputs one transport stream packet sequence in accordance with the output clock and the transport stream frame synchronization. The TDM multiplexer 40 performs PCR when the output transport stream packet sequence includes PCR information. The correction unit 12 is used to substitute the corrected PCR value at the original PCR value position for output.

상기 입력취급기(10)는, PCR을 정정하기 위한 27MHz의 독립 오실레이터를 구비할 수도 있다.The input handler 10 may include a 27 MHz independent oscillator for correcting PCR.

MPEG-2 전송 스트림 재다중화기는 1차 전송 스트림패킷열로 다중화된 복수의 전송 스트림패킷열을 재다중화하는 기능을 수행하며, 이 과정에서 각각의 전송 스트림패킷열은 재다중화기에서 랜덤한 시간 지연후 재다중화되어 출력된다. MPEG-2 시스템 표준은 모든 전송 스트림열에 대해 일정한 시간 지연은 허용하나, 패킷에 따라 지연시간이 다른 가변 지연은 허용하지 않는다. 이 규정은 앞서 설명했듯이 이산적으로 입력되는 PCR값이 부호기에서 사용한 27MHz 시스템 클럭과 동기가 일치된 클럭을 복원하여 복호기 동작에 기준이 되는 STC 카운터를 동작시키기 때문이다. 따라서 복호기의 안정적인 동작을 위해서 재다중화기는 PCR을 포함하고 있는 전송 스트림패킷을 찾아내고 이 전송 스트림패킷열이 재다중화기에서 갖는 시간 지연을 계산한 후 이 지연시간 만큼 PCR값을 보정해야 한다.The MPEG-2 transport stream remultiplexer performs a function of remultiplexing a plurality of transport stream packet streams multiplexed into a primary transport stream packet stream. In this process, each transport stream packet stream is randomly delayed in the remultiplexer. The output is remultiplexed. The MPEG-2 system standard allows constant time delays for all transport stream sequences, but does not allow variable delays with different delay times for different packets. This is because, as described above, the STC counter, which is the reference for the decoder operation, is restored by restoring a clock whose discrete PCR value is synchronized with the 27 MHz system clock used by the encoder. Therefore, for the stable operation of the decoder, the remultiplexer must find the transport stream packet containing the PCR, calculate the time delay of the transport stream packet sequence in the remultiplexer, and correct the PCR value by this delay time.

도 4는 입력 전송 스트림패킷열이 다중화 되기까지 대기하는 지연 시간을 나타내는 것으로, 도시된 바와 같이 수직축은 다중화되는 전송 스트림패킷열을 나타내고 수평축은 다중화 되기까지 대기하는 지연 시간을 나타낸다. 재다중화기에서 PCR값을 정정하는 본 발명의 알고리즘은 PCR을 가진 전송 스트림열이 입력될때 정밀한 27MHz 클럭을 사용하여 카운터를 동작시키고 그 값에서 모든 입력 전송 스트림패킷열이 갖는 시간 지연을 뺀 값만을 수정한다. MPEG-2 복호기는 수신 PCR을 기준으로 STC를 동작시키고, 이 STC보다 작은 DTS(Decoding Time Stamp), PTS(Presentation Time Stamp)값을 갖는 데이터는 디코딩을 하지 않고 버리며 이와같이 버려지는 데이타가 많은 경우 복호기는 불안정한 동작을 하게된다. 본 알고리즘은 PCR을 정정할 때 모든 입력 전송 스트림패킷열이 동일하게 갖는 최소 지연시간(Minimum Delay Time)을 고려하여 PCR값을 정정함으로써 앞서 설명한 문제를 최소화 할 수 있다. 본 발명의 PCR정정 식은 상기 수학식 1에 나타내었다.4 illustrates a delay time waiting for multiplexing an input transport stream packet sequence. As illustrated, a vertical axis represents a transport stream packet sequence multiplexed and a horizontal axis represents a delay time waiting for multiplexing. The algorithm of the present invention for correcting PCR values in a remultiplexer operates a counter using a precise 27 MHz clock when a transport stream sequence with PCR is input, and corrects only the value obtained by subtracting the time delay of all input transport stream packet sequences. do. The MPEG-2 decoder operates the STC based on the received PCR, and the data having a decoding time stamp (DTS) and presentation time stamp (PTS) smaller than this STC is discarded without decoding. Will cause unstable operation. This algorithm can minimize the above-described problem by correcting the PCR value in consideration of the minimum delay time that all input stream stream sequences have equally. The PCR correction equation of the present invention is shown in Equation 1 above.

상기 도 3에서 입력 전송 스트림패킷열은 입력 데이터를 일시 저장하는 기능을 갖는 FIFO와 PCR유무를 확인하여, PCR을 포함하고 있는 경우 시간 지연을 계산한후 PCR을 정정하는 PCR 정정부로 구성되는 입력 취급기(Input Handler)로 입력된다. 또한 각각의 입력 취급기는 스케쥴러로 FIFO에 저장되어 있는 전송 스트림패킷열의 양을 나타내는 상태 정보를 전달하고, 스케줄러는 이 상태 정보를 이용하여 스케줄링 알고리즘에 따라 다음에 다중화할 입력 취급기를 결정하고 이를 해당 입력 취급기에게 알려준다. 다중화 선택신호를 받은 입력 취급기는 출력 Clock 및 전송 스트림 프레임 동기에 맞춰 TDM 멀티플렉서를 통해 하나의 전송 스트림패킷열을 출력하고 이 전송 스트림패킷열에 PCR정보가 포함되어 있는 경우에는 PCR 정정부를 이용하여 원래의 PCR값 위치에 정정된 PCR값으로 대체하여 출력한다.In FIG. 3, the input transport stream packet sequence includes an input consisting of a PCR correction unit for checking a FIFO having a function of temporarily storing input data and a presence of PCR, and correcting PCR after calculating a time delay when the PCR is included. It is entered into an input handler. Each input handler also passes to the scheduler status information indicating the amount of transport stream packet streams stored in the FIFO, and the scheduler uses this status information to determine which input handler to multiplex next according to a scheduling algorithm. Notify the handler. The input handler receiving the multiplex selection signal outputs one transport stream packet sequence through the TDM multiplexer in accordance with the output clock and transport stream frame synchronization. If the transport stream packet sequence includes PCR information, the input handler uses the PCR correction unit. The PCR value is replaced with the corrected PCR value and output.

본 발명에 의하면, PCR을 가진 전송 스트림열이 입력될때 정밀한 27MHz 클럭을 사용하여 카운터를 동작시키고 그 값에서 모든 입력 전송 스트림패킷열이 갖는 시간 지연을 뺀 값만을 수정하므로써, MPEG-2 복호기는 수신 PCR을 기준으로 STC를 동작시키고, 이 STC보다 작은 DTS(Decoding Time Stamp), PTS(Presentation Time Stamp)값을 갖는 데이터는 디코딩을 하지않고 버리며 이와같이 버려지는 데이타가 많은 경우 복호기는 불안정한 동작을 하게된다. 본 발명에서는 PCR을 정정할 때 모든 입력 전송 스트림패킷열이 동일하게 갖는 최소 지연 시간을 고려하여 PCR값을 정정함으로써, 다중화 과정에서 발생하는 랜덤한 시간지연에 대해서도 복호기가 안정적으로 동작시키는 효과를 제공한다.According to the present invention, when a transport stream sequence with PCR is input, the MPEG-2 decoder receives the signal by operating the counter using a precise 27 MHz clock and correcting only the value obtained by subtracting the time delay of all the input transport stream packet sequences. The STC is operated based on PCR, and data having a Decoding Time Stamp (DTS) and Presentation Time Stamp (PTS) smaller than this STC is discarded without decoding. When there is a lot of discarded data, the decoder becomes unstable. . In the present invention, the PCR value is corrected in consideration of the minimum delay time of all input transport stream packet streams when the PCR is corrected, thereby providing an effect that the decoder operates stably against a random time delay occurring in the multiplexing process. do.

데이터가 많은 경우에도 복호기의 동작의 안정성을 향상시키는 효과를 제공한다.Even when there is a lot of data, it provides an effect of improving the stability of the decoder operation.

Claims (7)

전송(TS) 패킷열 데이터를 입력받아 일시 저장하기 위한 FIFO와, PCR유무를 확인하여 PCR을 포함하고 있는 경우 시간 지연을 계산한 후 PCR을 정정하는 PCR 정정부를 구비하여 복수개로 배열되는 입력 취급기와;A plurality of input handling arrangements are provided with a FIFO for receiving and temporarily transmitting transmission (TS) packet string data and a PCR correction unit for checking the presence of PCR and for calculating PCR after calculating a time delay. tile; 상기 복수개로 배열되는 입력 취급기에 클럭을 제공하기 위한 27MHz 오실레이터와;A 27 MHz oscillator for providing a clock to the plurality of input handlers; 상기 입력 취급기로부터 상기 FIFO에 저장되어 있는 전송 스트림 패킷열의 양을 나타내는 상태 정보를 전달받아 스케줄링 알고리즘에 따라 다음에 다중화할 입력 취급기를 결정하고 이를 해당 입력 취급기에게 알려주는 스케쥴러와;A scheduler that receives state information indicating the amount of transport stream packet streams stored in the FIFO from the input handler, determines an input handler to be multiplexed next according to a scheduling algorithm, and informs the corresponding input handler of the input handler; 다중화 선택신호를 받은 입력 취급기가 출력 클럭 및 전송 스트림 프레임 동기에 맞춰 하나의 전송 스트림 패킷열을 출력하게 하고, 출력된 전송 스트림 패킷열에 PCR정보가 포함되어 있는 경우에는 PCR 변조부를 이용하여 원래의 PCR값 위치에 정정된 PCR값으로 대체하여 출력하게 하기 위한 TDM 멀티플렉서로 구성되어 다수의 엠펙-2 전송 스트림(MPEG-2 TS) 패킷열을 입력받아 하나의 엠펙-2 열로 다중화시키는 것을 특징으로 하는 엠펙-2 전송 스트림 재다중화기.The input handler receiving the multiplex selection signal outputs one transport stream packet sequence in accordance with the output clock and transport stream frame synchronization. If the output transport stream packet sequence includes PCR information, the original PCR is performed using a PCR modulator. Comprised of a TDM multiplexer for outputting by replacing the corrected PCR value in the value position, the MPEG characterized in that the multiplex of MPEG-2 TS (packet stream) (MPEG-2 TS) packet sequence is received and multiplexed into one MPEG-2 column -2 transport stream remultiplexer. 제 1 항에 있어서,The method of claim 1, 상기 입력취급기는,The input handler, PCR을 정정할 때 모든 입력 전송 스트림열이 동일하게 갖는 최소 지연 시간을 고려하여 PCR의 정정값을,When correcting PCR, consider the minimum delay time that all input transport streams have equal,
Figure 1019970069520_B1_M0002
에 의해 산출하는 것을 특징으로 하는 엠펙-2 전송 스트림 재다중화기.
Figure 1019970069520_B1_M0002
Computed by the MPEG-2 transport stream remultiplexer.
제 1 항에 있어서,The method of claim 1, 상기 입력취급기는,The input handler, PCR을 정정하기 위한 27MHz의 독립 오실레이터를 구비하는 것을 특징으로 하는 엠펙-2 전송 스트림 재다중화기.An MPEG-2 transport stream remultiplexer comprising a 27 MHz independent oscillator for correcting PCR. 입력 전송 스트림(TS) 패킷열을 입력받아 데이터를 일시 저장하고, PCR유무를 확인하여, PCR을 포함하고 있는 경우 시간 지연을 계산한후 PCR을 정정하는 단계와;Receiving an input transport stream (TS) packet sequence and temporarily storing data, checking for the presence of a PCR, correcting the PCR after calculating a time delay if the PCR is included; 상기 FIFO에 저장되어 있는 전송 스트림 패킷열의 양을 나타내는 상태 정보에 의거하여 스케줄링 알고리즘에 따라 다음에 다중화할 입력 취급기를 결정하고 이를 해당 입력 취급기에게 알려주는 단계와;Determining an input handler to be multiplexed next according to a scheduling algorithm based on state information indicating the amount of transport stream packet streams stored in the FIFO, and notifying the corresponding input handler; 다중화 선택신호를 받은 입력 취급기가 출력 클럭 및 전송 스트림 프레임 동기에 맞춰 TDM 멀티플렉서를 통해 하나의 전송 스트림 패킷열을 출력하는 단계와;Outputting, by the input handler receiving the multiplexed selection signal, one transport stream packet sequence through the TDM multiplexer in accordance with the output clock and transport stream frame synchronization; 전송 스트림 패킷열에 PCR정보가 포함되어 있는 경우 PCR 변조부를 이용하여 원래의 PCR값 위치에 정정된 PCR값으로 대체하여 출력하는 단계를 수행하여,If PCR information is included in the transport stream packet sequence, performing a step of outputting by replacing the corrected PCR value at the original PCR value position using a PCR modulator. 다수의 엠펙-2 전송 스트림(MPEG-2 TS) 패킷열을 입력받아 하나의 엠펙-2 열로 다중화시키는 것을 특징으로 하는 엠펙-2 전송 스트림 재다중화방법.A MPEG-2 transport stream remultiplexing method comprising receiving multiple MPEG-2 TS streams and multiplexing them into one MPEG-2 stream. 제 4 항에 있어서,The method of claim 4, wherein 상기 PCR 정정단계는,The PCR correction step, PCR을 정정할 때 모든 입력 전송 스트림열이 동일하게 갖는 최소 지연 시간을 고려하여 PCR의 정정값을,When correcting PCR, consider the minimum delay time that all input transport streams have equal,
Figure 1019970069520_B1_M0002
에 의해 산출하는 것을 특징으로 하는 엠펙-2 전송 스트림 재다중화방법.
Figure 1019970069520_B1_M0002
The MPEG-2 transport stream remultiplexing method, characterized by the above-mentioned.
제 4 항에 있어서,The method of claim 4, wherein 상기 PCR정정 단계는,The PCR correction step, 전송 스트림 패킷이 입력되면 패킷의 헤더부분에 포함된 전송 스트림 패킷 동기신호를 이용하여 Adaptation Field Control Flag와 프로그램 클럭 레퍼런스 (PCR)Flag를 찾아 그 값에 의거하여 패킷내에 PCR 포함 유무를 판별하는 단계와;When the transport stream packet is input, using the transport stream packet synchronization signal included in the header part of the packet, finding an adaptation field control flag and a program clock reference (PCR) flag and determining whether PCR is included in the packet based on the value; ; PCR을 포함하고 있지 않는 경우 다중화 될 때까지 FIFO에 저장한 후 단순히 188Byte TS 패킷단위로 시분할 멀티플렉싱하는 단계와;If it does not include PCR, storing in a FIFO until multiplexing, and then simply time-division multiplexing in units of 188Byte TS packets; PCR을 포함하고 있는 경우 패킷이 입력되는 시점에서 부터 출력될 때 까지의 시간지연을 고려하여 PCR을 정정한 후 다중화하여 출력하는 것을 특징으로 하는 엠펙-2 전송 스트림 재다중화 방법.When the PCR is included, the MPEG-2 transport stream re-multiplexing method, characterized in that the PCR is corrected in consideration of the time delay from the time of the packet input to the output and then multiplexed. 제 4 항에 있어서,The method of claim 4, wherein 상기 PCR 정정단계는,The PCR correction step, 시스템 클럭과 동기화 시키기 위한 27MHz의 독립 오실레이터를 구비하여 PCR을 정정하는 것을 특징으로 하는 엠펙-2 전송 스트림 재다중화 방법.27. A method for remultiplexing an MPEG-2 transport stream comprising a 27 MHz independent oscillator for synchronizing with a system clock.
KR1019970069520A 1997-12-17 1997-12-17 Method and apparatus for re-multiplexing in mpeg-2 ts KR100243416B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019970069520A KR100243416B1 (en) 1997-12-17 1997-12-17 Method and apparatus for re-multiplexing in mpeg-2 ts

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019970069520A KR100243416B1 (en) 1997-12-17 1997-12-17 Method and apparatus for re-multiplexing in mpeg-2 ts

Publications (2)

Publication Number Publication Date
KR19990050401A KR19990050401A (en) 1999-07-05
KR100243416B1 true KR100243416B1 (en) 2000-02-01

Family

ID=19527567

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019970069520A KR100243416B1 (en) 1997-12-17 1997-12-17 Method and apparatus for re-multiplexing in mpeg-2 ts

Country Status (1)

Country Link
KR (1) KR100243416B1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100375830B1 (en) * 2001-03-22 2003-03-15 한국전자통신연구원 Apparatus and Method for removing PCR jitter by inserting receiving time stamp
KR20030080350A (en) * 2002-04-08 2003-10-17 주식회사 에어코드 A system for verifying authorial products for data broadcast
KR100587973B1 (en) * 2004-11-19 2006-06-08 한국전자통신연구원 Apparatus and method for transmission of multi applications, and digital data broadcasting system using its
KR100755836B1 (en) * 2005-11-28 2007-09-07 엘지전자 주식회사 An apparatus for buffering transport stream packet in digital broadcasting receiver and a method thereof
JP2007150845A (en) * 2005-11-29 2007-06-14 Samsung Electronics Co Ltd Data reproducing apparatus, data reproducing method, and program thereof

Also Published As

Publication number Publication date
KR19990050401A (en) 1999-07-05

Similar Documents

Publication Publication Date Title
EP0735776B1 (en) Decoder for compressed and multiplexed video and audio data
US5652627A (en) System and method for reducing jitter in a packet-based transmission network
NL1029366C2 (en) Data e.g. audio data, multiplexing method, involves creating transport stream by inserting video transport stream, audio transport stream and null transport stream packets to fit into respective insertion intervals of packets
JP3657200B2 (en) Apparatus and method for generating a compressed video signal
EP1848221B1 (en) Method for reconstructing system time clock (STC) without carrying PCR
US20050259946A1 (en) Video editing apparatus and video editing method
JP2004350310A (en) Video encoder and method for synchronizing timing from encoder to decoder
US20040078828A1 (en) Recovering timing for television services
KR19990068140A (en) Digital signal multiplexing method and apparatus, digital signal transmission method and apparatus, digital signal recording method and apparatus and recording medium
KR19990015710A (en) Picture decoding synchronization circuit and method
JP2012513139A (en) Method for synchronizing transport streams in a multiplexer with an external coprocessor
KR100243416B1 (en) Method and apparatus for re-multiplexing in mpeg-2 ts
EP1758288A1 (en) Transport stream processing device and transport stream processing method
KR100390138B1 (en) A method for transmitting isochronous data, a method and apparatus for restoring isochronous data, a decoder for restoring information data
US20040218633A1 (en) Method for multiplexing, in MPEG stream processor, packets of several input MPEG streams into one output transport stream with simultaneous correction of time stamps
JP4689231B2 (en) Transport stream switching device
KR101011350B1 (en) Method for creating a system clock in a receiver device and corresponding receiver device
US20050041661A1 (en) PCR timing control in variable bit rate (VBR) transport streams
JPH1093841A (en) Video synchronizing signal correction device
KR100211999B1 (en) Pcr corrector of mpeg-2 transport stream remultiplexer
JP2002208904A (en) Digital signal multiplexer
KR100375830B1 (en) Apparatus and Method for removing PCR jitter by inserting receiving time stamp
KR100568068B1 (en) PCR correction apparatus and method in transport stream transmission system
KR100785788B1 (en) Multi Channel MPEG-2 Transport Stream Multiplexing Device and Method thereof
JP2018137654A (en) Communication apparatus, communication program, and communication method

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: 20121106

Year of fee payment: 14

FPAY Annual fee payment

Payment date: 20131105

Year of fee payment: 15

FPAY Annual fee payment

Payment date: 20141105

Year of fee payment: 16

FPAY Annual fee payment

Payment date: 20151105

Year of fee payment: 17

FPAY Annual fee payment

Payment date: 20161104

Year of fee payment: 18

LAPS Lapse due to unpaid annual fee