KR20000046816A - Device and method for storing transport stream - Google Patents

Device and method for storing transport stream Download PDF

Info

Publication number
KR20000046816A
KR20000046816A KR1019980063543A KR19980063543A KR20000046816A KR 20000046816 A KR20000046816 A KR 20000046816A KR 1019980063543 A KR1019980063543 A KR 1019980063543A KR 19980063543 A KR19980063543 A KR 19980063543A KR 20000046816 A KR20000046816 A KR 20000046816A
Authority
KR
South Korea
Prior art keywords
header
information
stream
program
transport stream
Prior art date
Application number
KR1019980063543A
Other languages
Korean (ko)
Other versions
KR100539731B1 (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 KR1019980063543A priority Critical patent/KR100539731B1/en
Publication of KR20000046816A publication Critical patent/KR20000046816A/en
Application granted granted Critical
Publication of KR100539731B1 publication Critical patent/KR100539731B1/en

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/12Formatting, e.g. arrangement of data block or words on the record carriers
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/00007Time or data compression or expansion
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/14Digital recording or reproducing using self-clocking codes
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/00007Time or data compression or expansion
    • G11B2020/00014Time or data compression or expansion the compressed signal being an audio signal
    • G11B2020/00057MPEG-1 or MPEG-2 audio layer III [MP3]

Landscapes

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

Abstract

PURPOSE: A device and a method for storing a transport stream are provided to repeatedly play back by storing the transport stream of MPEG standard with converting to a program stream. CONSTITUTION: A PCR(program clock reference) information is detected by detecting a TC header from a transport stream of MPEG standard. An SCR(system clock reference) information is generated by counting the detected PCR information. One packet is generated by connecting a certain number of PESs(packet elementary stream) except the TS header. A header of generated packet is converted to a program stream by adding the SCR information. The converted program stream is recorded in a recording medium.

Description

전송 스트림 저장 장치 및 방법Transport stream storage device and method

본 발명은 비디오 녹화에 관한 것으로 특히, 디지털 방송에 있어서 전송 스트림을 반복 재생하기 위한 전송 스트림 저장 장치 및 방법에 관한 것이다.TECHNICAL FIELD The present invention relates to video recording, and more particularly, to a transport stream storage device and method for reproducing a transport stream in digital broadcasting.

현재 디지털 티브이 방송으로는 위성을 통한 디지털 위성 방송 및 지상파를 이용한 지상파 디지털 방송이 있으며, 케이블 디지털 방송도 곧 시행될 예정이다.Currently, digital TV broadcasting includes digital satellite broadcasting through satellites and terrestrial digital broadcasting using terrestrial waves, and cable digital broadcasting will be implemented soon.

이러한 3가지 방송 방식에서 전송 매체(위성, 지상파, 케이블)는 확연하게 다르지만 영상/음성 압축과 패킷 구성등은 거의 같다.Although the transmission media (satellite, terrestrial, cable) are distinctly different in these three broadcasting methods, video / audio compression and packet composition are almost the same.

따라서, 이들 방송 신호의 전송 포맷도 거의 유사하다.Therefore, the transmission formats of these broadcast signals are almost similar.

현재 디지털 방송에서는 국제 규격으로 정해진 MPEG2 TS(Transport Stream)을 기본 전송 포맷을 사용하며, 이는 ISO/IEC 13818-1 규격에 정의되어 있다.Currently, digital broadcasting uses MPEG2 Transport Stream (TS), which is an international standard, as a basic transport format, which is defined in the ISO / IEC 13818-1 standard.

'TS'는 비디오 패킷(video PES ; Packetized Elenentary Stream), 오디오 패킷(audio PES), 프로그램 안내 등의 다양한 부가 정보 패킷(PSI ; Program Specific Information)이 다중화되어 구성되며, 각 패킷들은 헤더와 ES(Elementary Stream)으로 각기 구성된다.'TS' is configured by multiplexing various Program Specific Information (PSI) such as video packet (Video PES; Packetized Elenentary Stream), audio packet (Audio PES), and program guide. Elementary Streams).

이때, 비디오 ES는 보통 비디오 픽쳐층(Picture Layer)의 데이터로 구성되며 그 비디오 픽쳐층 데이터는 픽쳐 헤더와 그 나머지 부분(비디오 데이터)으로 구성된다.In this case, the video ES is usually composed of data of a video picture layer, and the video picture layer data is composed of a picture header and the rest of the video data.

따라서, 비디오 ES내의 픽쳐층 데이터를 적절히 모으면 하나의 픽쳐를 구성할 수 있으며 보통 하나의 픽쳐는 하나의 영상 프레임과 동일하다.Therefore, by properly collecting the picture layer data in the video ES, one picture can be constructed, and usually one picture is the same as one picture frame.

그러므로, 디지털 방송 송신기가 비디오, 오디오, 부가 정보를 가진 패킷의 각각을 서로 다중화한 형태의 방송 신호를 전송하면 디지탈 방송 수신기는 방송 신호를 수신하여 원하는 채널을 선국하여 원래의 영상/음성 신호를 복원함으로써 시청자는 화면에 표시되는 영상을 보면서 스피커로 출력되는 영상에 대응하는 음성을 청취하게 된다.Therefore, when a digital broadcast transmitter transmits a broadcast signal in which multiplexed packets of video, audio, and additional information are multiplexed with each other, the digital broadcast receiver receives the broadcast signal and tunes a desired channel to restore the original video / audio signal. As a result, the viewer listens to the audio corresponding to the image output to the speaker while watching the image displayed on the screen.

종래의 전송 스트림(Transport Stream) 디코딩 회로는 도1 의 블럭도에 도시된 바와 같이 구성하며, 이의 동작은 다음과 같다.A conventional transport stream decoding circuit is constructed as shown in the block diagram of FIG. 1, and the operation thereof is as follows.

먼저, FEC 디코더(101)로부터 도2 와 같은 포맷의 전송 스트림(TS)이 FEC 인터페이스부(102)를 통해 버퍼(103)에 저장되고 이 버퍼(103)에 저장된 상기 전송 스트림(TS)는 메모리 콘트롤러(104)의 제어에 의해 버퍼(105)를 통해 출력됨에 의해 TS 헤더 디코더(106)에서 TS 헤더를 검출하게 된다.First, the transport stream TS having the format as shown in FIG. 2 from the FEC decoder 101 is stored in the buffer 103 through the FEC interface unit 102, and the transport stream TS stored in the buffer 103 is stored in memory. The TS header decoder 106 detects the TS header by being output through the buffer 105 under the control of the controller 104.

이때, 필드 디코더(107)가 TS 헤더로부터 'Adaptation Field'를 검출하여 복원을 위한 여러 정보를 디코딩하게 된다.At this time, the field decoder 107 detects an 'Adaptation Field' from the TS header and decodes various information for restoration.

이 후, PES 디코더(108)가 TS 헤더를 기준으로 PES(Packet Elementary Stream)를 추출하여 그 추출된 PES를 비디오, 오디오 패킷등으로 분리하고 그 분리된 비디오, 오디오 패킷을 외부 인터페이스부(109)를 통해 비디오 디코더(110), 오디오 디코더(111) 및 기타 디코더(112)로 출력하게 된다.Thereafter, the PES decoder 108 extracts a packet elementary stream (PES) based on the TS header, and separates the extracted PES into video and audio packets, and separates the separated video and audio packets into an external interface unit 109. Through the video decoder 110, the audio decoder 111 and the other decoder 112 is output through.

따라서, 디코더(110∼(112)를 통해 원래의 영상/음성 신호를 복원함으로써 시청자는 화면에 표시되는 영상을 보면서 스피커로 출력되는 영상에 대응하는 음성을 청취하게 된다.Accordingly, by restoring the original video / audio signal through the decoders 110 to 112, the viewer listens to the audio corresponding to the video output through the speaker while watching the video displayed on the screen.

상기에서의 동작 타이밍은 클럭 제어부(113)에 의해 발생하는 전압 제어 발진기(114)의 클럭에 의해 제어된다.The operation timing in the above is controlled by the clock of the voltage controlled oscillator 114 generated by the clock controller 113.

또한, 종래의 프로그램 스트림(Program Stream) 디코딩 회로는 도3 의 블럭도에 도시된 바와 같이 구성되며, 도1 의 회로에서 FEC 인터페이스부(102), TS 헤더 디코더(106), 필드 디코더(107)부분이 DVD 인터페이스부(302), 패킷 헤더 디코더(307), 시스템 헤더 디코더(308)로 각기 대치된 것만이 다르다.In addition, the conventional program stream decoding circuit is configured as shown in the block diagram of FIG. 3, and the FEC interface unit 102, the TS header decoder 106, and the field decoder 107 in the circuit of FIG. Only the parts are replaced by the DVD interface unit 302, the packet header decoder 307, and the system header decoder 308, respectively.

따라서, 도3 의 디코더는 메모리 콘트롤러(304)의 제어에 의해 버퍼(305)를 통해 도4 와 같은 포맷의 프로그램 스트림(PS)가 출력되면 패킷 헤더 디코더(306)가 패킷 헤더를 검출하고 시스템 헤더 제어부(307)가 상기에서 검출된 패킷 헤더에서 시스템 헤더를 검출하게 된다.Therefore, when the decoder of FIG. 3 outputs the program stream PS having the same format as that of FIG. 4 through the buffer 305 under the control of the memory controller 304, the packet header decoder 306 detects the packet header and the system header. The controller 307 detects the system header from the packet header detected above.

이때, PES 디코더(308)가 패킷 헤더를 기준으로 PES를 추출하여 비디오, 오디오 패킷등으로 분리하고 그 분리된 비디오, 오디오 패킷을 외부 인터페이스부(309)를 통해 비디오 디코더(310), 오디오 디코더(311) 및 기타 디코더(312)로 출력하게 된다.At this time, the PES decoder 308 extracts the PES based on the packet header and separates the PES into video and audio packets, and separates the separated video and audio packets through the external interface unit 309 through the video decoder 310 and the audio decoder ( 311) and other decoders 312.

따라서, 디코더(310∼(312)를 통해 원래의 영상/음성 신호를 복원함으로써 시청자는 화면에 표시되는 영상을 보면서 스피커로 출력되는 영상에 대응하는 음성을 청취하게 된다.Accordingly, by restoring the original video / audio signal through the decoders 310 to 312, the viewer listens to the audio corresponding to the video output through the speaker while watching the video displayed on the screen.

즉, 채널 인터페이스(예로, VSB 인터페이스)에서 나온 전송 스트림 또는 프로그램 스트림을 각기 입력으로 하는 도1 또는 도3 의 디코딩 회로는 각각의 헤더들을 해석하여 시스템의 타이밍에 대한 정보를 추출하고 그 각각의 헤더를 제거하여 PES를 추출한다.That is, the decoding circuit of Fig. 1 or Fig. 3, each of which has a transport stream or a program stream from a channel interface (e.g., a VSB interface) as an input, interprets the respective headers to extract information about the timing of the system and the respective headers. Remove PES by removing it.

이 후, PES의 헤더를 해석하여 'Presentation'의 타이밍에 대한 정보를 추출하고 그 헤더를 제거하여 비디오, 오디오 그리고, 부가 정보의 ES(Elementary Stream)을 추출한다.Thereafter, the header of the PES is analyzed to extract information on the timing of the 'Presentation', and the header is removed to extract an ES (elementary stream) of video, audio, and additional information.

이에 따라, 시스템의 타이밍에 대한 정보(PCR ; Program Clock Reference 또는 SCR ; System Clock Reference로 갱신한 STC ; System Time Clock)과 'Presentation'의 타이밍 정보(PTS ; Presentation Time Stamp, DTS ; Decoding Time Stamp)를 각각의 ES와 함께 각각의 디코더로 전송하여 디코딩하고 그 디코딩에 의해 복원된 영상 신호 및 음성 신호를 재생하게 된다.Accordingly, the timing information of the system (PCR; Program Clock Reference or SCR; System Time Clock updated with the System Clock Reference) and the timing information of the 'Presentation' (PTS; Presentation Time Stamp, DTS; Decoding Time Stamp) Is transmitted together with each ES to each decoder to decode and reproduce the video and audio signals reconstructed by the decoding.

그러나, 종래에는 프로그램 스트림(program stream)은 반복 재생이 가능하지만, 전송 스트림(transport stream)의 경우 각각의 비디오, 오디오 등의 패킷을 디코딩하여 실시간으로 재생만을 수행할 수 있다.However, in the related art, a program stream can be repeatedly played back, but in the case of a transport stream, only video and audio packets can be decoded and played back in real time.

즉, 종래에는 전송 스트림을 디코딩하는 경우 녹화가 불가능하므로 반복 재생할 수 없는 단점이 있다.That is, conventionally, when decoding a transport stream, since recording is impossible, repeated playback cannot be performed.

따라서, 본 발명은 종래의 문제점을 개선하기 위하여 MPEG 규격의 전송 스트림(transport stream)을 프로그램 스트림(program stream)으로 변환하여 저장함으로써 반복 재생이 가능하도록 창안한 전송 스트림 저장 장치 및 방법을 제공함에 목적이 있다.Accordingly, an object of the present invention is to provide a transport stream storage device and method invented to repeat playback by converting and storing an MPEG standard transport stream into a program stream to improve the conventional problem. There is this.

도 1은 종래의 전송 스트림 디코딩 회로의 블럭도.1 is a block diagram of a conventional transport stream decoding circuit.

도 2는 전송 스트림(transport stream)의 포맷을 보인 예시도.2 shows an example of a format of a transport stream.

도 3은 종래의 프로그램 디코딩 회로의 블럭도.3 is a block diagram of a conventional program decoding circuit.

도 4는 프로그램 스트림(program stream)의 포맷을 보인 예시도.4 is an exemplary view showing a format of a program stream.

도 5는 본 발명의 실시를 위한 장치의 블럭도.5 is a block diagram of an apparatus for practicing the present invention.

도 6은 본 발명의 실시를 위한 동작 순서도.6 is an operational flow diagram for practicing the present invention.

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

507 : TS 헤더 디코더 508 : 필드 디코더507: TS header decoder 508: field decoder

516 : PCR/SCR 변환부 517 : 프로그램 스트림 인코더516 PCR / SCR converter 517 program stream encoder

518 : 비디오 기록/재생부518: video recording / playback unit

본 발명은 상기의 목적을 달성하기 위하여 MPEG 규격의 전송 스트림 및 프로그램 스트림을 원래의 영상/음성 신호로 복원하는 장치에 있어서, MPEG 규격의 전송 스트림(transport stream)으로부터 TS 헤더를 검출하는 TS 헤더 디코더와, 상기에서 검출된 TS헤더로부터 'Adaptation' 필드를 검출하여 PCR(Program Clock Reference) 정보를 검출하는 필드 디코더와, 상기에서 검출한 PCR 정보를 카운트하여 SCR(System Clock Reference) 정보을 생성하는 PCR/SCR 변환부와, 상기 TS 헤더를 기준으로 추출한 PES를 소정개씩 연결하여 하나의 패킷을 생성하고 그 생성된 패킷의 헤더로 상기에서 SCR 정보를 부가하여 프로그램 스트림을 생성하는 프로그램 스트림 인코더와, 이 인코더에서의 프로그램 스트림을 저장 매체에 기록하는 기록/재생부로 구성함을 특징으로 한다.The present invention provides a TS header decoder for detecting a TS header from an MPEG standard transport stream in an apparatus for reconstructing an MPEG standard transport stream and a program stream to an original video / audio signal in order to achieve the above object. And a field decoder for detecting PCR (Program Clock Reference) information by detecting the 'Adaptation' field from the TS header detected above, and PCR / for generating SCR (System Clock Reference) information by counting the detected PCR information. A program stream encoder for generating a packet by connecting an SCR converter and a predetermined PES extracted based on the TS header, and generating the program stream by adding the SCR information to the header of the generated packet; And a recording / reproducing section for recording the program stream in the storage medium.

또한, 본 발명은 상기의 목적을 달성하기 위하여 MPEG 규격의 전송 스트림(transport stream)으로부터 TS 헤더를 검출하여 PCR(Program Clock Reference) 정보를 검출하는 단계와, 상기에서 검출한 PCR 정보를 카운트하여 SCR(System Clock Reference) 정보을 생성하는 단계와, 상기에서 TS 헤더를 기준으로 추출한 PES를 소정개씩 연결하여 하나의 스트림으로 생성하는 단계와, 상기에서 생성된 스트림의 헤더에 SCR 정보를 부가하여 프로그램 스트림으로 변환하는 단계와, 상기에서 변환된 프로그램 스트림을 저장 매체에 기록하는 단계를 수행함을 특징으로 한다.In order to achieve the above object, the present invention also provides a method of detecting a TS header from a transport stream of MPEG standard to detect PCR (Program Clock Reference) information, and counting the detected PCR information to SCR. Generating system clock reference information, connecting the PESs extracted based on the TS headers to a single stream, and adding SCR information to the headers of the generated streams as program streams. And converting the converted program stream to a storage medium.

이하, 본 발명을 도면에 의거 상세히 설명하면 다음과 같다.Hereinafter, the present invention will be described in detail with reference to the drawings.

도5 는 본 발명의 실시예를 위한 회로의 블록도로서 이에 도시한 바와 같이, FEC 디코더(501)로부터의 전송 스트림(TS)을 입력시켜 버퍼(503)에 저장하는 FEC 인터페이스부(502)와, 상기 버퍼(503)에 저장된 상기 전송 스트림(TS)을 디램(505)에 저장하고 출력시키는 메모리 콘트롤러(504)와, 이 메모리 콘트롤러(504)의 제어에 의해 출력되는 전송 스트림(TS)로부터 동기 신호(Sync)를 검출하는 동기 검출부(506)와, 이 동기 검출부(506)에서 검출되는 동기 신호(Sync)를 기준으로 TS 헤더를 검출하는 TS 헤더 디코더(507)와, 상기에서 검출된 TS 헤더로부터 'Adaptation Field'를 검출하여 PCR(Program Clock Reference) 정보를 검출하는 필드 디코더(508)와, DVD 인터페이스부(521)를 통해 입력되는 DVD 재생기(520)으로부터의 프로그램 스트림을 저장하여 메모리 콘트롤러(504)로 출력하는 버퍼(522)와, 패킷 시작 코드 검출부(523)가 상기 메모리 콘트롤러(504)의 제어에 의해 출력되는 프로그램 스트림(PS)으로부터 검출하는 패킷 시작 코드를 기준으로 패킷 헤더를 검출하는 패킷 헤더 디코더(524)와, 상기 패킷 헤더로부터 시스템 헤더를 검출하는 시스템 헤더 제어부(307)와, 상기 TS 헤더 또는 패킷 헤더를 기준으로 PES(Packet Elementary Stream)를 추출하여 비디오, 오디오 등으로 분리하고 그 분리된 비디오, 오디오 패킷을 외부 인터페이스부(510)를 통해 외부의 비디오 디코더, 오디오 디코더등으로 출력하는 PES 디코더(509)와, 클럭 제어부(113)에 의해 시스템의 동작을 위한 타이밍 클럭을 발생하는 전압 제어 발진기(513)와, 전체 동작을 제어하는 마이크로 콘트롤러(MCU)(515)와 인터페이스하기 위한 호스트 인터페이스부(514)와, MPEG 규격의 전송 스트림(transport stream)으로부터 동기 검출부(506)가 동기 신호(Sync)를 검출함에 의해 TS 헤더를 검출하여 PES 패킷을 추출하는 TS 헤더 디코더(507)와, 상기에서 검출된 TS헤더로부터 'Adaptation' 필드를 검출하여 PCR(Program Clock Reference) 정보를 검출하는 필드 디코더(508)와, 상기 필드 디코더(508)에서 검출한 PCR 정보를 카운트하여 SCR(System Clock Reference) 정보을 생성하는 PCR/SCR 변환부(516)와, 상기에서의 PES를 소정개씩 연결하여 하나의 패킷을 생성하고 그 생성된 패킷의 헤더로 상기에서 SCR 정보를 부가하여 프로그램 스트림을 생성하는 프로그램 스트림 인코더(517)와, 이 인코더(517)에서의 프로그램 스트림을 저장 매체에 기록하는 비디오 기록/재생부(518)로 구성한다.FIG. 5 is a block diagram of a circuit for an embodiment of the present invention, as shown therein, with an FEC interface unit 502 which receives a transport stream TS from an FEC decoder 501 and stores it in a buffer 503; And a memory controller 504 for storing and outputting the transport stream TS stored in the buffer 503 to the DRAM 505 and synchronizing with the transport stream TS output by the control of the memory controller 504. A synchronization detector 506 for detecting a signal Sync, a TS header decoder 507 for detecting a TS header based on the synchronization signal Sync detected by the synchronization detector 506, and a TS header detected above. Field decoder 508 that detects PCR (Program Clock Reference) information by detecting the 'Adaptation Field' from the program controller, and stores a program stream from the DVD player 520 that is input through the DVD interface unit 521 to store a program controller. A buffer 522 output to 504, A packet header decoder 524 for detecting a packet header based on a packet start code detected by a packet start code detector 523 from a program stream PS output by the control of the memory controller 504, and the packet header A system header control unit 307 which detects a system header from the system, and extracts a packet elementary stream (PES) based on the TS header or packet header and separates the video header into video and audio, and separates the separated video and audio packet into an external interface PES decoder 509 for outputting to an external video decoder, audio decoder, etc. via 510, voltage controlled oscillator 513 for generating timing clock for operation of the system by clock controller 113, and overall operation A host interface unit 514 for interfacing with a microcontroller (MCU) 515 that controls the control unit, and a transport stream of an MPEG standard. The TS header decoder 507 detects the TS header and extracts the PES packet by detecting the synchronization signal Sync from the TS header decoder 506, and detects the 'Adaptation' field from the TS header detected above by PCR ( A field decoder 508 for detecting Program Clock Reference) information, a PCR / SCR converter 516 for generating System Clock Reference (SCR) information by counting PCR information detected by the field decoder 508, and A program stream encoder 517 for generating a packet by connecting predetermined PESs to each other, and adding the SCR information to the header of the generated packet to generate a program stream. The video recording / reproducing section 518 records the recording medium.

이와같이 구성한 본 발명의 실시예에 대한 동작 및 작용 효과를 설명하면 다음과 같다.Referring to the operation and effect of the embodiment of the present invention configured as described above are as follows.

본 발명은 전송 스트림(transport stream)과 프로그램 스트림(program stream)을 입력으로 타이밍 정보와 각각의 ES를 추출하여 디코더로 입력시키는 시스템에 있어서, 한 물리 채널로 입력되는 여러 프로그램의 전송 스트림중 원하는 프로그램의 전송 스트림을 분리하여 PES(Packetized Elementary Stream)으로 만들고 상기 PES를 인코더(517)에서 프로그램 스트림으로 다시 인코딩하여 디지털 VCR같은 비디오 기록/재생부(518)에서 테이프에 녹화하도록 함에 의해 반복 재생이 가능하게 하는 것이다.The present invention is a system for extracting timing information and respective ESs by inputting a transport stream and a program stream and inputting them to a decoder, wherein a desired program is selected from among transport streams of several programs input through one physical channel. It is possible to repeat playback by separating the transport stream of PES into a packetized elementary stream (PES) and encoding the PES back into a program stream in the encoder 517 and recording it on a tape in a video recording / playback unit 518 such as a digital VCR. It is to make it.

이를 위해 PCR/SCR 변환부(516)가 전송 스트림에서 검출된 PCR 정보를 카운트하여 SCR 정보를 생성하고 프로그램 스트림 인코더(518)가 PES를 MPEG 프로그램 스트림의 프로토콜에 맞게 프로그램 스트림으로 변환한 후 상기 SCR 정보를 상기에서 변환된 프로그램 스트림의 패킷 헤더에 부가하여 이 프로그램 스트림의 재생시 타이밍을 맞추게 된다.To this end, the PCR / SCR converter 516 counts PCR information detected in the transport stream to generate SCR information, and the program stream encoder 518 converts the PES into a program stream according to the protocol of the MPEG program stream, and then the SCR. The information is added to the packet header of the converted program stream to adjust the timing of reproduction of this program stream.

즉, 본 발명은 전송 스트림을 실시간으로 화면에 표시하는 데이터 경로와는 별도의 데이터 경로를 이용하여 저장함에 있어서, 화면에 표시하기 위한 데이터 생성시 발생되는 PES를 프로그램 스트림 인코더(517)에서 프로그램 스트림 형태로 변환하여 디지털 VCR과 같은 비디오 기록/재생부(518)에서 저장 매체에 저장하게 된다.That is, in the present invention, when the transport stream is stored using a data path separate from the data path for displaying on the screen in real time, the program stream encoder 517 generates a PES generated when data for display on the screen is generated. The video recording / reproducing unit 518 such as a digital VCR converts the data into a storage medium.

이 후, 재생시 비디오 기록/재생부(518)에서 재생된 프로그램 스트림은 DVD 인터페이스부(504)를 통해 본 발명의 장치에 입력됨으로써 반복 재생이 가능하게 된다.Thereafter, during playback, the program stream reproduced by the video recording / reproducing section 518 is inputted to the apparatus of the present invention through the DVD interface section 504, thereby enabling repeat playback.

한편, 상기와 같은 본 발명의 동작을 상세히 설명하면 다음과 같다.On the other hand, the operation of the present invention as described above in detail as follows.

먼저, FEC 디코더(501)로부터 도2 와 같은 포맷의 전송 스트림(TS)이 FEC 인터페이스부(502)를 통해 버퍼(503)에 저장되고 이 버퍼(503)에 저장된 상기 전송 스트림(TS)은 메모리 콘트롤러(504)의 제어에 의해 디램(DRAM)(305)에 저장된 후 출력되어진다.First, the transport stream TS having the format as shown in FIG. 2 from the FEC decoder 501 is stored in the buffer 503 through the FEC interface unit 502, and the transport stream TS stored in the buffer 503 is stored in memory. It is stored in the DRAM 305 under the control of the controller 504 and then output.

이때, 동기 검출부(506)가 전송 스트림(TS)로부터 동기 신호(Sync)를 검출하면 TS 헤더 디코더(507)가 상기 동기 신호(Sync)를 기준으로 TS 헤더를 검출하게 되고 필드 디코더(508)가 상기 TS 헤더로부터 'Adaptation Field'를 검출하여 PCR 정보 등을 포함한 여러 정보를 디코딩하게 된다.At this time, when the synchronization detector 506 detects the synchronization signal Sync from the transport stream TS, the TS header decoder 507 detects the TS header based on the synchronization signal Sync, and the field decoder 508 'Adaptation Field' is detected from the TS header to decode various information including PCR information.

따라서, 방송 모드가 설정된 경우라면 PES 디코더(509)가 TS 헤더를 기준으로 PES(Packet Elementary Stream)를 추출하여 그 추출된 PES를 비디오, 오디오 패킷등으로 분리하고 그 분리된 비디오, 오디오 패킷을 외부 인터페이스부(510)를 통해 비디오 디코더, 오디오 디코더로 출력하게 된다.Therefore, if the broadcast mode is set, the PES decoder 509 extracts a packet elementary stream (PES) based on the TS header, separates the extracted PES into video, audio packets, and the like, and separates the separated video and audio packets from the outside. The video is output to the video decoder and the audio decoder through the interface unit 510.

이에 따라, 원래의 영상/음성 신호를 복원함으로써 시청자는 화면에 표시되는 영상을 보면서 스피커로 출력되는 영상에 대응하는 음성을 청취하게 된다.Accordingly, by restoring the original video / audio signal, the viewer listens to the audio corresponding to the video output through the speaker while watching the video displayed on the screen.

만일, 방송 청취중에 기록 모드가 설정되면 PCR/SCR 변환부(516)는 필드 디코더(508)에서 검출된 PCR 정보를 카운트하여 SCR 정보를 생성하고 그 생성된 SCR 정보를 프로그램 스트림 인코더(517)에 출력하게 된다.If the recording mode is set while listening to the broadcast, the PCR / SCR converter 516 counts PCR information detected by the field decoder 508 to generate SCR information, and sends the generated SCR information to the program stream encoder 517. Will print.

이때, 프로그램 스트림 인코더(517)는 TS 헤더 디코더(507)에서 TS 헤더가 추출되고 남은 PES를 소정개씩 연결하여 하나의 패킷을 생성하고 그 생성된 패킷에 SCR 정보를 헤더로 부가하게 된다.In this case, the program stream encoder 517 connects the remaining PESs by the TS header decoder 507 to predetermined PESs to generate one packet, and adds SCR information as a header to the generated packets.

이에 따라, 비디오 기록/재생부(518)가 프로그램 스트림 인코더(517)에서의 프로그램 스트림을 비디오 카세트에 기록하게 된다.Accordingly, the video recording / reproducing section 518 records the program stream in the program stream encoder 517 in the video cassette.

즉, PES를 추출한 후 도6 의 동작 순서도와 같은 과정에 의해 방송 청취 또는 기록 동작을 수행하게 된다.That is, after the PES is extracted, the broadcast listening or recording operation is performed by the same process as the operation flowchart of FIG. 6.

이 후, 비디오 기록/재생부(518)를 재생 모드로 설정하면 비디오 카세트에 기록된 프로그램 스트림을 검출하여 DVD 인터페이스부(521)을 통해 버퍼(523)에 저장하게 된다.Thereafter, when the video recording / reproducing section 518 is set to the playback mode, the program stream recorded in the video cassette is detected and stored in the buffer 523 through the DVD interface section 521.

이때, 버퍼(523)에 저장된 프로그램 스트림이 메모리 콘트롤러(504)에 의해 디램(505)에 저장된 후 출력되면 패킷 시작 코드 검출부(523)가 상기 메모리 콘트롤러(504)의 제어에 의해 출력되는 프로그램 스트림(PS)으로부터 패킷 시작 코드를 검출하게 된다.At this time, if the program stream stored in the buffer 523 is stored in the DRAM 505 by the memory controller 504 and then output, the packet start code detector 523 is output by the control of the memory controller 504 ( PS) to detect the packet start code.

이에 따라, 패킷 헤더 디코더(524)가 패킷 시작 코드를 기준으로 패킷 헤더를 검출하면 시스템 헤더 제어부(307)가 상기 패킷 헤더로부터 시스템 헤더를 검출하게 된다.Accordingly, when the packet header decoder 524 detects the packet header based on the packet start code, the system header controller 307 detects the system header from the packet header.

이때, PES 디코더(509)는 패킷 헤더를 기준으로 PES(Packet Elementary Stream)를 추출하여 비디오, 오디오 등으로 분리하고 그 분리된 비디오, 오디오 패킷을 외부 인터페이스부(510)를 통해 외부의 비디오 디코더, 오디오 디코더등으로 출력하게 된다.At this time, the PES decoder 509 extracts a packet elementary stream (PES) based on a packet header and separates the packet elementary stream into video, audio, and the like, and separates the separated video and audio packets through an external interface unit 510; Output to an audio decoder, etc.

따라서, 원래의 영상/음성 신호를 복원함으로써 시청자는 화면에 표시되는 영상을 보면서 스피커로 출력되는 영상에 대응하는 음성을 청취하게 된다.Therefore, by restoring the original video / audio signal, the viewer listens to the audio corresponding to the video output to the speaker while watching the video displayed on the screen.

즉, 본 발명은 전송 스트림을 프로그램 스트림으로 변환하여 기록한 후 반복 재생하게 된다.That is, according to the present invention, the transport stream is converted into a program stream, recorded, and repeatedly played.

한편, 상기에서 전송 스트림을 프로그램 스트림으로 변환하여 저장 매체에 기록하는 방법을 설명하였지만, 이와는 별도로 여러 프로그램의 전송 스트림을 파싱하여 PES를 생성하고 이를 저장 매체에 기록할 수도 있다.Meanwhile, although the above-described method of converting a transport stream into a program stream and recording the same in a storage medium has been described, separately, a transport stream of several programs can be parsed to generate a PES and recorded in the storage medium.

상기에서 상세히 설명한 바와 같이 본 발명은 MPEG 스트림의 수신단에서 입력되는 전송 스트림을 다시 프로그램 스트림으로 변환하여 저장 매체에 기록함으로써 반복 재생을 할 수 있는 효과가 있다.As described in detail above, the present invention has the effect of repeating playback by converting the transport stream inputted from the receiving end of the MPEG stream back into a program stream and recording it on a storage medium.

Claims (3)

MPEG 규격의 전송 스트림 및 프로그램 스트림을 원래의 영상/음성 신호로 복원하는 장치에 있어서, MPEG 규격의 전송 스트림(transport stream)으로부터 TS 헤더를 검출하는 TS 헤더 디코더와, 상기 TS헤더로부터 'Adaptation' 필드를 검출하여 PCR(Program Clock Reference) 정보를 검출하는 필드 디코더와, 상기에서의 PCR 정보를 카운트하여 SCR(System Clock Reference) 정보을 생성하는 PCR/SCR 변환부와, 상기 TS 헤더를 기준으로 추출한 PES를 소정개씩 연결하여 하나의 패킷을 생성하고 그 생성된 패킷의 헤더로 상기에서 SCR 정보를 부가하여 프로그램 스트림을 생성하는 프로그램 스트림 인코더와, 이 인코더에서의 프로그램 스트림을 저장 매체에 기록하는 기록/재생부로 구성함을 특징으로 하는 전송 스트림 저장 장치.An apparatus for restoring an MPEG standard transport stream and a program stream to an original video / audio signal, comprising: a TS header decoder for detecting a TS header from an MPEG standard transport stream, and an 'Adaptation' field from the TS header Field decoder for detecting PCR (Program Clock Reference) information, a PCR / SCR converter for counting PCR information to generate SCR (System Clock Reference) information, and a PES extracted based on the TS header. A program stream encoder for generating a single packet by connecting a predetermined number and adding the SCR information to the header of the generated packet, and a recording / reproducing unit for recording the program stream in the encoder onto a storage medium. Transport stream storage device characterized in that the configuration. MPEG 규격의 전송 스트림 및 프로그램 스트림을 원래의 영상/음성 신호로 복원하는 방법에 있어서, MPEG 규격의 전송 스트림(transport stream)으로부터 TS 헤더를 검출하여 PCR(Program Clock Reference) 정보를 검출하는 제1 단계와, 상기에서 검출한 PCR 정보를 카운트하여 SCR(System Clock Reference) 정보을 생성하는 제2 단계와, 상기에서 TS 헤더를 제외한 PES를 소정개씩 연결하여 하나의 패킷으로 생성하는 제3 단계와, 상기에서 생성된 패킷의 헤더로 SCR 정보를 부가하여 프로그램 스트림으로 변환하는 제4 단계와, 상기에서 변환된 프로그램 스트림을 저장 매체에 기록하는 제5 단계를 수행함을 특징으로 하는 전송 스트림 저장 방법.A method for restoring an MPEG standard transport stream and a program stream to an original video / audio signal, the first step of detecting a program header reference (PCR) information by detecting a TS header from an MPEG standard transport stream And a second step of generating the system clock reference (SCR) information by counting the detected PCR information, and generating a single packet by connecting predetermined PES except for the TS header to each other. And a fourth step of converting the SCR information into a program stream by adding the SCR information to the header of the generated packet, and a fifth step of recording the converted program stream in a storage medium. 제2항에 있어서, 저장 매체의 기록 신호를 재생하는 단계를 더 포함하는 것을 특징으로 하는 전송 스트림 저장 방법.The method of claim 2, further comprising the step of reproducing the recording signal of the storage medium.
KR1019980063543A 1998-12-31 1998-12-31 Transport stream storage device and method KR100539731B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019980063543A KR100539731B1 (en) 1998-12-31 1998-12-31 Transport stream storage device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019980063543A KR100539731B1 (en) 1998-12-31 1998-12-31 Transport stream storage device and method

Publications (2)

Publication Number Publication Date
KR20000046816A true KR20000046816A (en) 2000-07-25
KR100539731B1 KR100539731B1 (en) 2006-06-07

Family

ID=19570113

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019980063543A KR100539731B1 (en) 1998-12-31 1998-12-31 Transport stream storage device and method

Country Status (1)

Country Link
KR (1) KR100539731B1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100507881B1 (en) * 2000-12-22 2005-08-18 매그나칩 반도체 유한회사 A bit stream decoder in digital broadcasting receiver system
KR100584179B1 (en) * 1999-01-18 2006-05-26 엘지전자 주식회사 Method and apparatus for transmitting digital data stream through the interface protocol

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09124419A (en) * 1995-08-31 1997-05-13 E I Du Pont De Nemours & Co Herbicide composition for controlling weeds in rice crop
JPH09167441A (en) * 1995-12-15 1997-06-24 Sony Corp Disk recording and reproducing device
KR100541605B1 (en) * 2003-11-10 2006-01-10 전자부품연구원 Method for storing audio and multimedia data including additional information in digital audio broadcasting receiver system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100584179B1 (en) * 1999-01-18 2006-05-26 엘지전자 주식회사 Method and apparatus for transmitting digital data stream through the interface protocol
KR100507881B1 (en) * 2000-12-22 2005-08-18 매그나칩 반도체 유한회사 A bit stream decoder in digital broadcasting receiver system

Also Published As

Publication number Publication date
KR100539731B1 (en) 2006-06-07

Similar Documents

Publication Publication Date Title
JP4468001B2 (en) Video data and auxiliary data readout synchronization device, processing and related products
JPH08340541A (en) Transmission method, transmitter, recording method, recorder, reproduction method, reproduction device, recording reproduction method and recording/ reproduction device for digital data
AU2006201090A1 (en) Digital broadcasting recording/reproducing apparatus and method for the same
JP2006345223A (en) Device and method for recording and output
KR100405975B1 (en) Method for stream jump
KR20070084713A (en) Apparatus and method for synchronism play time of time shift contents and real time contents
KR101143907B1 (en) Method and Apparatus of playing Digital Broadcasting
US20040233996A1 (en) Reproducing apparatus and method, and recording medium
KR20050052717A (en) System and method for transcording stream data except audio data
US20050147175A1 (en) Stream data communication system
KR100468163B1 (en) Digital video receiver and the stream making method thereof
JPH08340514A (en) Recording method for digital data, recording device and reproduction system
KR100539731B1 (en) Transport stream storage device and method
WO2004086396A1 (en) Reproducing apparatus and method, and recording medium
US7653289B1 (en) Stream converting method and apparatus thereof, and stream recording method and apparatus thereof
JP2002033712A (en) Packet processor and packet output method therefor
JP2004088366A (en) Digital broadcast receiver and digital broadcast system
JP3436505B2 (en) Digital information signal recording method, digital information signal recording device, and digital information signal recording medium
KR101053699B1 (en) Recording device and method of digital broadcasting
JP5016335B2 (en) Playback apparatus and playback method
EP1148723B1 (en) Special reproduction data generating device, medium, and information aggregate
JP2008153955A (en) Video recording and reproducing device, and its method for special reproduction
US7206502B2 (en) Apparatus and method for recording and reproducing digital data
JP4287992B2 (en) Digital data recording / reproducing apparatus and method
JPH0877708A (en) Recording device and reproducing device

Legal Events

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