KR100863696B1 - Transport stream processing method and apparatus - Google Patents

Transport stream processing method and apparatus Download PDF

Info

Publication number
KR100863696B1
KR100863696B1 KR1020070076922A KR20070076922A KR100863696B1 KR 100863696 B1 KR100863696 B1 KR 100863696B1 KR 1020070076922 A KR1020070076922 A KR 1020070076922A KR 20070076922 A KR20070076922 A KR 20070076922A KR 100863696 B1 KR100863696 B1 KR 100863696B1
Authority
KR
South Korea
Prior art keywords
transport stream
audio
transport
video
packet
Prior art date
Application number
KR1020070076922A
Other languages
Korean (ko)
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 KR1020070076922A priority Critical patent/KR100863696B1/en
Application granted granted Critical
Publication of KR100863696B1 publication Critical patent/KR100863696B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/434Disassembling of a multiplex stream, e.g. demultiplexing audio and video streams, extraction of additional data from a video stream; Remultiplexing of multiplex streams; Extraction or processing of SI; Disassembling of packetised elementary stream
    • H04N21/4341Demultiplexing of audio and video streams
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/434Disassembling of a multiplex stream, e.g. demultiplexing audio and video streams, extraction of additional data from a video stream; Remultiplexing of multiplex streams; Extraction or processing of SI; Disassembling of packetised elementary stream
    • H04N21/4343Extraction or processing of packetized elementary streams [PES]

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

A transport stream processing method and an apparatus having the same are provided to detect format change of the transport stream automatically when reproducing the transport stream which is mixed with transport streams of various formats by re-setting a demuxing type and a decoding type of audio and video decoders, demuxing the packets, and transporting the packets to the video and audio decoders. A transport stream processing apparatus comprises a storage device(106), a transport stream buffer(110), a plurality of audio and video decoders(1161~116M,1181~118M), and a transport stream demuxer(112). The storage device stores a transport stream having a plurality of transport packets in one file. The transport stream buffer buffers the transport stream. The audio and video decoders decode audio and video streams of various formats respectively. The transport stream demuxer receives the packets of the transport stream sequentially and parses header information of the packets. The transport stream demuxer re-sets a demuxing type and a decoding type of the audio and video decoders when the packets are not effective, and demuxes the packets when the packets are effective, and transports the packets to the video and audio decoder.

Description

전송 스트림 처리 방법 및 장치{Transport Stream Processing Method And Apparatus} Transport Stream Processing Method And Apparatus

도 1은 전송 스트림의 구성예를 도시한 도면.1 is a diagram showing an example of the configuration of a transport stream;

도 2는 본 발명의 바람직한 실시예에 따른 전송 스트림 처리 장치의 구성도. 2 is a block diagram of a transport stream processing apparatus according to a preferred embodiment of the present invention.

도 3은 본 발명의 바람직한 실시예에 따른 전송 스트림 처리 방법의 흐름도.3 is a flowchart of a transport stream processing method according to a preferred embodiment of the present invention.

본 발명은 디지털 방송신호 수신기에 관한 것으로, 더욱 상세하게는 다양한 포맷의 전송 스트림이 혼합되어 저장된 전송 스트림의 재생을 위해 디코딩하는 방법 및 장치에 관한 것이다. The present invention relates to a digital broadcast signal receiver, and more particularly, to a method and an apparatus for decoding for reproduction of a transport stream in which transport streams of various formats are mixed.

디지털 방송 기술의 급진적인 발달과 더불어 고품위의 방송 서비스를 제공하는 것은 물론이고 차별화된 사용자 서비스를 제공하기 위한 다양한 노력이 계속되고 있다. With the rapid development of digital broadcasting technology, various efforts are being made not only to provide high quality broadcasting services but also to provide differentiated user services.

최근 상용화된 타임 쉬프트(TIME SHIFT) 기능은 일정 시간 동안에 사용자가 시청한 방송 프로그램을 메모리에 저장하여, 시청 중에도 마음대로 프로그램을 정지하거나 뒤로 되돌릴 수 있게 하는 기능을 말한다. The recently commercially available time shift function refers to a function of storing a broadcast program watched by a user in a memory for a predetermined time so that the program can be freely stopped or reverted while watching.

그런데 디지털 방송신호를 제공하는 송신측은 다양한 품질(1080i, 720p,720i,480i)을 가지거나 다양한 인코딩 방식에 따르는 디지털 방송신호를 송출하므로, 채널 변경시마다 디지털 방송신호의 품질이나 인코딩 방식이 상이해진다. However, since a transmitter providing a digital broadcast signal transmits a digital broadcast signal having various qualities (1080i, 720p, 720i, 480i) or according to various encoding schemes, the quality or encoding scheme of the digital broadcast signal is different every time the channel is changed.

이에 따라 타임 쉬프트 기능에 의해 녹화된 프로그램은 도 1에 도시한 바와 같이 하나의 녹화 프로그램 내에 다양한 품질 및 인코딩 방식의 전송 스트림이 혼합되어 저장된다. Accordingly, the program recorded by the time shift function is stored in a transport stream of various quality and encoding schemes in one recorded program as shown in FIG.

이에 종래에는 타임 쉬프트 저장영역에 저장된 전송 스트림의 재생시에, 전송 스트림의 포맷변경을 자동으로 검출하여 그에 따라 전송 스트림의 디먹서, 비디오 및 오디오 스트림의 디코딩 방식을 변경하여, 상기 다양한 품질 및 인코딩 방식의 전송 스트림이 끊김없이 정상적으로 재생될 수 있게 하는 기술의 개발이 절실히 요망되었다. In the related art, when a transport stream stored in a time shift storage area is played back, a format change of the transport stream is automatically detected and the demux of the transport stream and the decoding method of the video and audio streams are changed accordingly. There is an urgent need for the development of a technology that allows a transport stream to be played normally without interruption.

본 발명은 상기한 종래 기술의 문제를 해소하기 위한 것으로, 다양한 포맷의 전송 스트림이 혼합되어 저장된 전송 스트림의 재생시에 전송 스트림의 포맷 변경을 자동으로 검출하여 그에 따라 전송 스트림의 디먹서, 비디오 및 오디오 스트림의 디코딩 방식을 변경하는 전송 스트림 처리 방법 및 장치를 제공하는 것을 그 목적으로 한다.The present invention is to solve the above-mentioned problems of the prior art, the transport stream of various formats are mixed to automatically detect the format change of the transport stream when playing the stored transport stream and accordingly demux, video and audio of the transport stream It is an object of the present invention to provide a transport stream processing method and apparatus for changing a decoding method of a stream.

상기의 목적을 이루고 종래기술의 문제점을 해결하기 위한 본 발명에 따르는 전송 스트림 처리 방법은, 재생 요청된 전송 스트림의 전송 패킷의 헤더정보를 파 싱하는 단계; 상기 검출된 헤더정보에 따라 상기 전송 패킷이 유효한지를 체크하는 단계; 상기 전송 패킷이 유효하지 않으면 상기 전송 패킷의 타입에 대응되게 전송 스트림 디먹서, 오디오 및 비디오 디코딩 방식을 재설정하는 단계를 포함하는 것을 특징으로 한다. The transport stream processing method according to the present invention for achieving the above object and solve the problems of the prior art, parsing the header information of the transport packet of the transport stream requested to play; Checking whether the transport packet is valid according to the detected header information; And if the transport packet is not valid, resetting a transport stream demux and an audio and video decoding method corresponding to the type of the transport packet.

또한 상기 방법은 상기 전송 스트림이 유효하지 않으면, 상기 전송 스트림의 오디오 및 비디오 스트림의 ID가 변경되었는지를 체크하고, 상기 전송 스트림의 오디오 및 비디오 스트림의 ID가 변경되었으면, 상기 전송 스트림 디먹서, 오디오 및 비디오 디코딩 방식을 재설정하는 단계를 더 구비하는 것을 특징으로 한다. The method also checks if the ID of the audio and video streams of the transport stream has changed if the transport stream is not valid, and decodes the transport stream if the IDs of the audio and video streams of the transport stream have changed. And resetting the video decoding scheme.

또한 상기 방법은, 상기 전송 스트림이 MPEG2-TS 표준에 따르지 않으면, 상기 MPEG2-TS 동기 코드까지의 전송 스트림을 제거하는 단계를 더 포함하는 것을 특징으로 한다. The method may further include removing the transport stream up to the MPEG2-TS sync code if the transport stream does not conform to the MPEG2-TS standard.

일반적으로 디지털 방송 데이터는 비디오 및 오디오 데이터, 시스템 데이터로 구성되며, 상기 시스템 데이터는 상기 비디오 및 오디오 데이터를 하나로 묶기 위한 것이다. 통상 MPEG2 시스템은 크게 MPEG2-PS(Program Stream)과 MPEG2-TS(Transport Stream)의 2가지 방식이 있으며 현재 DTV 방송은 MPEG2-TS 방식을 채용하고 있다. In general, digital broadcast data is composed of video and audio data and system data, and the system data is for grouping the video and audio data into one. In general, the MPEG2 system has two types, MPEG2-PS (Program Stream) and MPEG2-TS (Transport Stream). Currently, the DTV broadcast adopts the MPEG2-TS method.

상기 비디오 및 오디오 데이터는 각각의 인코더에 의해 ES(Elementary Stream)로 변환되고, 상기 ES는 다시 PES(Packetized Elementary Stream)로 변환된다. 상기 PES가 TS(Transport Stream) 먹서를 통해 전송 스트림(Transport Stream)으로 변환된다. The video and audio data is converted into an elementary stream (ES) by each encoder, and the ES is converted into a packetized elementary stream (PES). The PES is converted into a transport stream through a transport stream (TS).

이에 따라 MPEG2-TS 디먹서(Demuxer)는 파싱 과정을 통해 전송 스트림의 헤더 정보를 검출하여, 상기 헤더 정보를 통해 비디오 및 오디오 스트림의 인코딩 방식을 판별하고, 상기 인코딩 방식에 대응되게 비디오 및 오디오 디코더를 설정한다. 상기 비디오 및 오디오 디코더는 상기 비디오 및 오디오 스트림을 디코딩하여 비디오 및 오디오 데이터를 복원한다. Accordingly, the MPEG2-TS Demuxer detects the header information of the transport stream through a parsing process, determines the encoding method of the video and audio streams based on the header information, and the video and audio decoder corresponding to the encoding method. Set. The video and audio decoder decodes the video and audio streams to recover video and audio data.

이를 위해 상기 MPEG2-TS 디먹서는 비디오 및 오디오 데이터의 인코딩 방식이 변경될 때마다 비디오 및 오디오 관련 설정 정보를 변경한다. To this end, the MPEG2-TS demux changes video and audio related setting information whenever the encoding scheme of video and audio data is changed.

이제 본 발명의 바람직한 실시예에 따르는 전송 스트림 처리 장치의 도 2를 참조하여 설명한다. A description will now be made with reference to FIG. 2 of a transport stream processing apparatus according to a preferred embodiment of the present invention.

상기 전송 스트림 처리 장치는 크게 제어부(100), 메모리부(102), 사용자 인터페이스부(104), 저장장치(106), 전송 스트림 처리부(108), 비디오 출력부(120), 오디오 출력부(122)로 구성된다. The transport stream processing apparatus includes a control unit 100, a memory unit 102, a user interface unit 104, a storage unit 106, a transport stream processing unit 108, a video output unit 120, and an audio output unit 122. It is composed of

상기 제어부(100)는 상기 전송 스트림 처리장치를 전반적으로 제어함은 물론이며, 본 발명의 바람직한 실시예에 따라 사용자 인터페이스부(104)를 통한 사용자의 요청에 따라 저장장치(106)에 저장된 전송 스트림을 독출하여 전송 스트림 처리부(108)를 통해 처리하여 비디오 및 오디오 데이터로 복원하고, 상기 비디오 및 오디오 데이터를 비디오 및 오디오 출력부(120,122)를 통해 출력한다.The control unit 100 controls the transport stream processing apparatus as a whole, and the transport stream stored in the storage device 106 in response to a user's request through the user interface unit 104 according to the preferred embodiment of the present invention. The data is read and processed by the transport stream processor 108 to restore video and audio data, and the video and audio data are output through the video and audio output units 120 and 122.

상기 메모리부(102)는 상기 제어부(100)의 처리 프로그램을 포함하는 다양한 정보를 저장한다. 특히 상기 메모리부(102)에는 본 발명의 바람직한 실시예에 따라 전송 스트림 처리를 위한 데이터를 저장한다. 상기 데이터는 현재 사용 중인 시스 템, 오디오/비디오 코덱 관련 정보 및 이전 패킷의 헤더 정보 등이다.The memory unit 102 stores various information including a processing program of the controller 100. In particular, the memory unit 102 stores data for transport stream processing according to a preferred embodiment of the present invention. The data includes information on a system currently being used, audio / video codec related information, and header information of a previous packet.

상기 사용자 인터페이스부(104)는 사용자로부터의 각종 명령을 입력받아 상기 제어부(100)에 제공한다.The user interface 104 receives various commands from a user and provides them to the controller 100.

상기 저장장치(106)는 상기 제어부(100)의 제어에 따라 전송 스트림을 저장하며, 특히 상기 저장장치(106)에는 타임 쉬프트 기능 수행 또는 사용자에 의한 편집에 의해 하나의 파일에 다양한 포맷의 비디오 및 오디오 스트림이 혼합되어 저장될 수 있다.The storage device 106 stores a transport stream under the control of the controller 100. In particular, the storage device 106 includes a video and video of various formats in one file by performing a time shift function or editing by a user. Audio streams can be mixed and stored.

상기 전송 스트림 처리부(108)는 전송 스트림 버퍼(110), 전송 스트림 디먹서(112), 제1 내지 제M비디오 디코더(1161~116M), 제1 내지 제M오디오 디코더(1181~118M)로 구성된다. The transport stream processor 108 includes a transport stream buffer 110, a transport stream demux 112, first to M video decoders 1161 to 116M, and first to Mth audio decoders 1181 to 118M. do.

상기 전송 스트림 버퍼(110)는 상기 저장장치(106)에 저장된 전송 스트림을 버퍼링하여 전송 스트림 디먹서(112)로 제공한다. The transport stream buffer 110 buffers the transport stream stored in the storage device 106 and provides the transport stream to the transport stream demux 112.

상기 전송 스트림 디먹서(112)는 상기 전송 스트림 버퍼(110)로부터 전송 스트림을 로드하여 오디오 스트림, 비디오 스트림, 시스템 스트림으로 디먹스한다. 특히, 상기 전송 스트림 디먹서(112)는 내부의 전송 스트림 파서(114)를 통한 파싱 과정을 통해 상기 전송 스트림의 헤더 정보를 검출하여, 상기 헤더 정보를 통해 비디오 및 오디오 스트림의 인코딩 방식을 판별하고, 상기 제1 내지 제M비디오 디코더(1161~116M), 제1 내지 제M오디오 디코더(1181~118M) 중 상기 인코딩 방식에 대응되는 비디오 및 오디오 디코더를 디먹스된 비디오 및 오디오 스트림을 디코딩할 비디오 및 오디오 디코더로서 설정한다. 또한 상기 전송 스트림 디먹서(112)는 상 기 비디오 및 오디오 데이터의 인코딩 방식에 따라 비디오 및 오디오 관련 설정 정보를 변경한다. The transport stream demux 112 loads the transport stream from the transport stream buffer 110 and demuxes the audio stream, the video stream, and the system stream. In particular, the transport stream demuxer 112 detects header information of the transport stream through a parsing process through an internal transport stream parser 114 to determine an encoding scheme of a video and audio stream based on the header information. The video and audio decoders corresponding to the encoding scheme among the first to Mth video decoders 1161 to 116M and the first to Mth audio decoders 1181 to 118M may decode the demuxed video and audio streams. And as an audio decoder. In addition, the transport stream demux 112 changes video and audio related setting information according to the encoding method of the video and audio data.

상기 제 내지 제M비디오 디코더(1161~116M) 중 어느 하나는 상기 전송 스트림 디먹서(112)의 설정에 따라 비디오 스트림을 디코딩하기 위한 디코더로 설정되어, 상기 전송 스트림 디먹서(114)가 제공하는 비디오 스트림을 비디오 데이터로 디코딩하여 비디오 출력부(120)로 제공한다. 상기 비디오 출력부(120)는 상기 비디오 데이터를 출력포맷으로 처리하여 디스플레이 모듈 등의 출력장치를 통해 출력한다. Any one of the first to Mth video decoders 1161 to 116M is set as a decoder for decoding the video stream according to the setting of the transport stream demux 112, and thus provided by the transport stream demux 114. The video stream is decoded into video data and provided to the video output unit 120. The video output unit 120 processes the video data as an output format and outputs the same through an output device such as a display module.

상기 제1 내지 제M오디오 디코더(1181~118M) 중 어느 하나는 상기 전송 스트림 디먹서(112)의 설정에 따라 오디오 스트림을 디코딩하기 위한 디코더로 설정되어, 상기 전송 스트림 디먹서(114)가 제공하는 오디오 스트림을 오디오 데이터로 디코딩하여 오디오 출력부(122)로 제공한다. 상기 오디오 출력부(122)는 상기 오디오 데이터를 출력포맷으로 처리하여 스피커 등의 출력장치를 통해 출력한다. Any one of the first to Mth audio decoders 1181 to 118M is set as a decoder for decoding an audio stream according to the setting of the transport stream demux 112, and thus provided by the transport stream demux 114. The audio stream is decoded into audio data and provided to the audio output unit 122. The audio output unit 122 processes the audio data as an output format and outputs the audio data through an output device such as a speaker.

상기한 바와 같이 구성되는 본 발명의 바람직한 실시예에 따른 전송 스트림 처리부의 동작을 도 3의 흐름도를 참조하여 설명한다.The operation of the transport stream processing unit according to the preferred embodiment of the present invention configured as described above will be described with reference to the flowchart of FIG.

상기 전송 스트림 처리 장치의 제어부(100)는 재생 요청된 MPEG2-TS 스트림(stream)을 초기화함과 아울러, 상기 전송 스트림을 분석하여 전송 스트림 디먹서(demuxer)(112)를 초기화한다(202단계).The control unit 100 of the transport stream processing apparatus initializes the MPEG2-TS stream, which is requested to be reproduced, and analyzes the transport stream to initialize a transport stream demuxer 112 (step 202). .

상기 전송 스트림 디먹서(112)는 상기 전송 스트림의 MPEG-2 전송 패킷(Transport Packet) 및 MPEG-2 PES 패킷(Packet)을 분석하여 비디오 디코 더(Video Decoder)와 오디오 디코더(Audio Decoder)를 결정하고 초기화한다(204단계).The transport stream demuxer 112 analyzes MPEG-2 transport packets and MPEG-2 PES packets of the transport stream to determine a video decoder and an audio decoder. And initialize (step 204).

이후 전송 스트림 디먹서(112)는 전송 스트림의 끝(eof)를 만날 때까지(206단계), 하기 208~226단계를 반복한다. Thereafter, the transport stream demux 112 repeats steps 208 to 226 until the end of the transport stream (eof) is met (step 206).

상기 전송 스트림 디먹서(112)는 전송 스트림 버퍼(Stream buffer)(110)로부터 전송 스트림을 계속 읽어와(208단계) 전송 스트림 파서(Parser)(114)를 통해 전송 스트림을 분석한다. The transport stream demuxer 112 continuously reads the transport stream from the transport stream buffer 110 (step 208) and analyzes the transport stream through the transport stream parser 114.

상기 전송 스트림이 저장 및 재생 장치의 종류에 따라 MPEG2-TS 표준을 따르지 않는 자체 정의된 형식으로 저장된 경우에는, 일반적인 MPEG2-TS 재생기에서는 정상적인 재생이 불가능하다. If the transport stream is stored in a self-defined format that does not conform to the MPEG2-TS standard according to the type of storage and playback device, normal playback is not possible in a typical MPEG2-TS player.

이러한 경우를 고려하여, 본 발명의 전송 스트림 파서(114)는 MPEG2-TS 표준을 따르지 않는 전송 스트림에 대해서도 영상에 잡음이 없이 정상적으로 재생될 수 있도록 MPEG2-TS Sync code인 0x47을 만날 때까지 불필요한 전송 스트림을 제거한다(210단계).In consideration of such a case, the transport stream parser 114 of the present invention performs unnecessary transmission until the MPEG2-TS Sync code 0x47 is met so that the video stream can be reproduced normally without noise even for a transport stream that does not conform to the MPEG2-TS standard. Remove the stream (step 210).

그리고 전송 스트림 파서(114)는 상기 전송 스트림으로부터 복원된 MPEG-2 전송 패킷과 MPEG-2 PES 패킷을 파싱하여 상기 MPEG-2 전송 패킷과 MPEG-2 PES 패킷이 유효한지를 체크한다(212,214단계). The transport stream parser 114 parses the MPEG-2 transport packet and the MPEG-2 PES packet recovered from the transport stream and checks whether the MPEG-2 transport packet and the MPEG-2 PES packet are valid (steps 212 and 214).

여기서, 유효하지 않은 전송 패킷의 제1판단 기준은 1) 유효하지 않은 패킷인지, 2) 유효하지 않은 패킷 카운트 값이 소정값 이상인지, 3) 유효하지 않은 패킷 값이 증가되는지 여부 등이 된다. Here, the first criterion of the invalid transmission packet is 1) an invalid packet, 2) an invalid packet count value is greater than or equal to a predetermined value, 3) whether an invalid packet value is increased or the like.

그리고 유효하지 않은 전송 패킷의 제2판단 기준은, 1) 스트림 재생을 위해 초기에 디먹서, 비디오 및 오디오 코덱 초기화하는 과정에서 설정된 시스템, 비디오 및 오디오 디코딩 관련 정보에 대응되는지, 2) 이전 헤더 정보에서 순차적으로 증가해야하는 값(ex, MPEG-2 TS 헤더의 연속 카운터 값(continuity counter))이 정상적으로 증가하는지, 3) 파싱된 모든 헤더값이 유효 범위에 속하는지 등이 된다.And the second judging criterion of the invalid transport packet corresponds to 1) the system, video and audio decoding related information set in the process of initializing the demux, video and audio codec initially for stream playback, and 2) previous header information. The value to be sequentially increased in (eg, the continuity counter of the MPEG-2 TS header) increases normally, and 3) whether all parsed header values fall within the valid range.

상기한 제1 및 제2판단 기준에 따라 상기 전송 패킷이 유효한 것으로 판단되면, 기 설정된 비디오 및 오디오 디코더는 녹화 프로그램을 계속 디코딩한다(224,226단계).If it is determined that the transport packet is valid according to the first and second determination criteria, the preset video and audio decoder continues to decode the recorded program (steps 224 and 226).

이와달리 상기 전송 패킷이 유효한 패킷이 아닐 경우, 현재 사용중인 오디오 및 비디오 디코더의 오디오 ID 및 비디오 ID가 전송 패킷 헤더 파싱을 통해 검출된 오디오 ID 및 비디오 ID가 다를 경우에는 현재 사용중이던 전송 스트림 디먹서(112), 비디오 디코더, 오디오 디코더를 모두 언인스톨(uninstall)하고 새로운 전송 스트림 디먹서, 비디오 디코더, 오디오 디코더로 전환한다(216~222단계). 이는 전송 중 발생하는 단순 노이즈일 수도 있기 때문이다.On the other hand, if the transport packet is not a valid packet, the audio ID and video ID of the currently used audio and video decoder differ from the audio ID and video ID detected through transport packet header parsing. In step 112, the video decoder and the audio decoder are all uninstalled and the new transport stream demuxer is switched to the video decoder and the audio decoder (steps 216 to 222). This may be because of simple noise occurring during transmission.

상기한 바와 같이 본 발명은 전송 스트림의 재생시에 전송 스트림의 포맷 변경을 자동으로 검출하여 그에 따라 전송 스트림 디먹서, 비디오 및 오디오 스트림의 디코딩 방식을 변경함으로써, 타임 쉬프트 기능에 따라 다양한 포맷의 전송 스트림이 혼합되어 저장된 경우에도 상기 전송 스트림이 정상적으로 재생될 수 있게 하는 이점이 있다. As described above, the present invention automatically detects a format change of a transport stream upon playback of the transport stream and changes the decoding method of the transport stream and video and audio streams accordingly, thereby changing the transport stream of various formats according to the time shift function. Even if this is mixed and stored, there is an advantage that the transport stream can be reproduced normally.

또한 본 발명은 MPEG2-TS 표준을 따르지 않는 전송 스트림은 삭제하여 영상에 잡음이 없이 정상적으로 재생될 수 있게 한다.In addition, the present invention deletes the transport stream that does not comply with the MPEG2-TS standard, so that the image can be reproduced normally without noise.

이상과 같이 본 발명은 비록 한정된 실시예와 도면에 의해 설명되었으나, 본 발명은 상기의 실시예에 한정되는 것은 아니며, 이는 본 발명이 속하는 분야에서 통상의 지식을 가진 자라면 이러한 기재로부터 다양한 수정 및 변형이 가능하다. As described above, the present invention has been described by way of limited embodiments and drawings, but the present invention is not limited to the above-described embodiments, which can be variously modified and modified by those skilled in the art to which the present invention pertains. Modifications are possible.

따라서, 본 발명 사상은 아래에 기재된 특허청구범위에 의해서만 파악되어야 하고, 이의 균등 또는 등가적 변형 모두는 본 발명 사상의 범주에 속한다고 할 것이다. Accordingly, the spirit of the present invention should be understood only by the claims set forth below, and all equivalent or equivalent modifications thereof will belong to the scope of the present invention.

Claims (8)

전송 스트림 처리 방법에 있어서,In the transport stream processing method, 재생 요청된 전송 스트림의 전송 패킷들을 순차적으로 제공받으면서 상기 전송 패킷의 헤더 정보를 파싱하는 단계;Parsing header information of the transport packet while receiving transport packets of the transport stream requested for reproduction; 상기 파싱된 헤더 정보가,The parsed header information, 전송 스트림 재생을 위한 전송 스트림 디먹서, 비디오 및 오디오 디코더에 대한 설정정보에 대응되는지 여부,Whether to correspond to the setting information for the transport stream demuxer for playing the transport stream, the video and audio decoder, 상기 파싱된 헤더정보에 포함된 연속 카운터 값이, 상기 전송 패킷에 대해 이전에 처리된 전송 패킷의 헤더 정보에 포함된 연속 카운터 값에 대해 정상적으로 증가되었는지 여부,Whether the continuous counter value included in the parsed header information is normally increased with respect to the continuous counter value included in the header information of the transport packet previously processed for the transport packet; 상기 파싱된 헤더정보의 값이 미리 정해둔 유효 범위에 속하는지 여부 중 어느 하나 이상을 전송패킷의 유효판별기준으로 하여 상기 전송 패킷이 유효한지를 체크하는 단계;Checking whether the transport packet is valid based on at least one of whether the value of the parsed header information belongs to a valid range determined in advance; 상기 전송 패킷이 유효하지 않으면, 상기 전송 패킷의 전송 스트림 디먹서, 비디오 및 오디오 디코더에 대한 설정정보에 대응되게 전송 스트림 디먹서, 오디오 및 비디오 디코더의 디코딩 방식을 재설정하는 단계If the transport packet is not valid, resetting the decoding method of the transport stream demuxer, the audio and video decoder corresponding to the transport stream demuxer, the setting information of the video and audio decoder. 를 포함하는 것을 특징으로 하는 전송 스트림 처리 방법. Transport stream processing method comprising a. 제1항에 있어서, The method of claim 1, 상기 전송 스트림 디먹서, 상기 오디오 및 비디오 디코더의 디코딩 방식을 재설정하는 것은, Resetting the transport stream demux, the decoding scheme of the audio and video decoder, 상기 유효하지 않은 전송 패킷을 카운트하고, 그 카운트 값이 미리 정해둔 값 이상일 때에 이행됨을 특징으로 하는 전송 스트림 처리 방법. And when the count value is equal to or greater than a predetermined value, the invalid transport packet is counted. 제1항에 있어서, The method of claim 1, 상기 전송 스트림이 유효하지 않으면, If the transport stream is not valid, 상기 전송 스트림의 오디오 및 비디오 스트림의 ID가 변경되었는지를 체크하고, Check whether the IDs of the audio and video streams of the transport stream have changed; 상기 전송 스트림의 오디오 및 비디오 스트림의 ID가 변경되었으면, 상기 전송 스트림 디먹서, 오디오 및 비디오 디코더의 디코딩 방식을 재설정함을 특징으로 하는 전송 스트림 처리 방법. And if the IDs of the audio and video streams of the transport stream have been changed, reconfiguring the decoding method of the audio and video decoder. 제1항에 있어서, The method of claim 1, 상기 전송 스트림이 MPEG2-TS 표준에 따르지 않으면, MPEG2-TS 동기 코드까지의 전송 스트림을 제거하는 단계를 더 포함하는 것을 특징으로 하는 전송 스트림 처리 방법. If the transport stream does not comply with the MPEG2-TS standard, removing the transport stream up to the MPEG2-TS sync code. 전송 스트림 처리 장치에 있어서, In the transport stream processing apparatus, 다수의 전송패킷으로 구성되는 전송 스트림을 하나의 파일로 저장하는 저장장치;A storage device for storing a transport stream consisting of a plurality of transport packets as a file; 상기 전송 스트림을 버퍼링하는 전송 스트림 버퍼;A transport stream buffer for buffering the transport stream; 다양한 포맷의 오디오 및 비디오 스트림 각각을 디코딩하는 다수의 오디오 및 비디오 디코더;A plurality of audio and video decoders for decoding each of the various formats of audio and video streams; 재생 요청된 전송 스트림의 전송 패킷들을 순차적으로 제공받으면서 상기 전송 패킷의 헤더 정보를 파싱하고, Parsing header information of the transport packet while sequentially receiving transport packets of the transport stream requested for reproduction, 상기 파싱된 헤더 정보가,The parsed header information, 전송 스트림 재생을 위한 전송 스트림 디먹서, 비디오 및 오디오 디코더에 대한 설정정보에 대응되는지 여부,Whether to correspond to the setting information for the transport stream demuxer for playing the transport stream, the video and audio decoder, 상기 파싱된 헤더정보에 포함된 연속 카운터 값이, 상기 전송 패킷에 대해 이전에 처리된 전송 패킷의 헤더 정보에 포함된 연속 카운터 값에 대해 정상적으로 증가되었는지 여부,Whether the continuous counter value included in the parsed header information is normally increased with respect to the continuous counter value included in the header information of the transport packet previously processed for the transport packet; 상기 파싱된 헤더정보의 값이 미리 정해둔 유효 범위에 속하는지 여부 중 어느 하나 이상을 전송패킷의 유효판별기준으로 하여 상기 전송 패킷이 유효한지를 체크하고, It is checked whether the transport packet is valid by using at least one of whether the value of the parsed header information falls within a predetermined valid range, based on the validity discrimination criterion of the transport packet, 상기 전송 패킷이 유효하지 않으면, 상기 전송 패킷의 전송 스트림 디먹서, 비디오 및 오디오 디코더에 대한 설정정보에 대응되게 디먹싱 방식 및 오디오 및 비디오 디코더의 디코딩 방식을 재설정하고, If the transport packet is not valid, the demuxing method and the decoding method of the audio and video decoder are reset to correspond to the transport stream demuxer of the transport packet and the setting information of the video and audio decoder. 상기 전송 패킷이 유효하면 상기 전송 패킷을 디먹싱하여 상기 비디오 및 오디오 디코더로 전송하는 전송 스트림 디먹서;A transport stream demux for demuxing the transport packet and transmitting it to the video and audio decoder if the transport packet is valid; 를 포함하는 것을 특징으로 하는 전송 스트림 처리 장치. Transport stream processing apparatus comprising a. 제5항에 있어서, The method of claim 5, 상기 전송 스트림 디먹서는, The transport stream demuxer, 상기 유효하지 않은 전송 패킷을 카운트하고, Count the invalid transport packet, 상기 카운트 값이 미리 정해둔 값 이상일 때에 상기 디먹싱 방식 및 상기 오디오 및 비디오 디코더의 디코딩 방식을 재설정함을 특징으로 하는 전송 스트림 처리 장치. And resetting the demuxing method and the decoding method of the audio and video decoder when the count value is equal to or greater than a predetermined value. 제5항에 있어서, The method of claim 5, 상기 전송 스트림 디먹서가, The transport stream demuxer, 상기 전송 스트림이 유효하지 않으면, If the transport stream is not valid, 상기 전송 스트림의 오디오 및 비디오 스트림의 ID가 변경되었는지를 체크하고, Check whether the IDs of the audio and video streams of the transport stream have changed; 상기 전송 스트림의 오디오 및 비디오 스트림의 ID가 변경되었으면, 상기 전송 스트림 디먹서, 오디오 및 비디오 디코더의 디코딩 방식을 재설정함을 특징으로 하는 전송 스트림 처리 장치. And if the IDs of the audio and video streams of the transport stream have been changed, reconfigure the decoding method of the audio and video decoder. 제5항에 있어서, The method of claim 5, 상기 전송 스트림 디먹서가,The transport stream demuxer, 상기 전송 스트림이 MPEG2-TS 표준에 따르지 않으면, MPEG2-TS 동기 코드까지의 전송 스트림을 제거함을 특징으로 하는 전송 스트림 처리 장치. And if the transport stream does not conform to the MPEG2-TS standard, remove the transport stream up to the MPEG2-TS sync code.
KR1020070076922A 2007-07-31 2007-07-31 Transport stream processing method and apparatus KR100863696B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020070076922A KR100863696B1 (en) 2007-07-31 2007-07-31 Transport stream processing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020070076922A KR100863696B1 (en) 2007-07-31 2007-07-31 Transport stream processing method and apparatus

Publications (1)

Publication Number Publication Date
KR100863696B1 true KR100863696B1 (en) 2008-10-15

Family

ID=40153428

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020070076922A KR100863696B1 (en) 2007-07-31 2007-07-31 Transport stream processing method and apparatus

Country Status (1)

Country Link
KR (1) KR100863696B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114143585A (en) * 2021-11-02 2022-03-04 深圳Tcl新技术有限公司 Data processing method and device, storage medium and terminal equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08163558A (en) * 1994-12-07 1996-06-21 Graphics Commun Lab:Kk Picture decoder
KR19990039492A (en) * 1997-11-13 1999-06-05 윤종용 Device and method for switching decoding mode of digital audio
KR20050085273A (en) * 2002-12-04 2005-08-29 코닌클리즈케 필립스 일렉트로닉스 엔.브이. Method and apparatus for selecting particular decoder based on bitstream format detection
KR20060013216A (en) * 2004-08-06 2006-02-09 삼성전자주식회사 Method for selecting modulation method of digital broadcast receiver and the receiver thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08163558A (en) * 1994-12-07 1996-06-21 Graphics Commun Lab:Kk Picture decoder
KR19990039492A (en) * 1997-11-13 1999-06-05 윤종용 Device and method for switching decoding mode of digital audio
KR20050085273A (en) * 2002-12-04 2005-08-29 코닌클리즈케 필립스 일렉트로닉스 엔.브이. Method and apparatus for selecting particular decoder based on bitstream format detection
KR20060013216A (en) * 2004-08-06 2006-02-09 삼성전자주식회사 Method for selecting modulation method of digital broadcast receiver and the receiver thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114143585A (en) * 2021-11-02 2022-03-04 深圳Tcl新技术有限公司 Data processing method and device, storage medium and terminal equipment

Similar Documents

Publication Publication Date Title
US7508874B2 (en) Error concealment for MPEG decoding with personal video recording functionality
EP1879191A1 (en) Stream data recording device, stream data recording/reproducing device, stream data reproduction device, stream data editing device, stream recording method, and stream reproducing method
CA2379782C (en) Circuit and method for live switching of digital video programs containing embedded audio data
US20010036269A1 (en) Information transmitting method, information processing method and apparatus, and information recording and reproducing method and apparatus
JP3987541B2 (en) Packet stream receiver
JP4190594B2 (en) Electronic apparatus and signal processing method
US6940901B2 (en) Apparatus and method for information processing
KR100863696B1 (en) Transport stream processing method and apparatus
US8379148B2 (en) Digital broadcasting transmitter, digital broadcasting receiver, and methods thereof
JP4192995B2 (en) How to mute the video signal
JP3995017B2 (en) How to mute the video signal
JP4902258B2 (en) Data receiving apparatus and computer-readable storage medium
JP2001111610A (en) Receiver for information data transmission system
US7735103B2 (en) Method of providing broadcast, method of reproducing the same, terminal for the same, and system thereof
KR101262949B1 (en) Device and method for scanning channel of digital broadcasting receiver
KR20080058991A (en) Method for playing digital multimedia broadcating in portable terminal and apparatus thereof
US20120296459A1 (en) Audio apparatus
KR100871239B1 (en) Method for reproducting image in digital multimedia broadcasting
JP3716835B2 (en) Playback apparatus and playback method
KR100767502B1 (en) Digital Multimedia Broadcasting display system for preventing the video breaking on a weak power
JP3716834B2 (en) Playback apparatus and playback method
JP3716836B2 (en) Electronic apparatus and signal processing method
KR20020022147A (en) A Digital Television for Playing Multimedia Audio and Method for Playing Multimedia Audio using Digital Television
KR101114749B1 (en) Method for processing image data in mpeg-2 ts in order to not occurring blue screen and digital multimedia broadcasting receiver thereof
KR20060084948A (en) Method for saving the start time of playing the multimedia data in digital multimedia broadcasting receiver

Legal Events

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

Payment date: 20120926

Year of fee payment: 5

FPAY Annual fee payment

Payment date: 20130927

Year of fee payment: 6

FPAY Annual fee payment

Payment date: 20140925

Year of fee payment: 7

LAPS Lapse due to unpaid annual fee