KR100759777B1 - Playback device and playback method - Google Patents
Playback device and playback method Download PDFInfo
- Publication number
- KR100759777B1 KR100759777B1 KR20050115955A KR20050115955A KR100759777B1 KR 100759777 B1 KR100759777 B1 KR 100759777B1 KR 20050115955 A KR20050115955 A KR 20050115955A KR 20050115955 A KR20050115955 A KR 20050115955A KR 100759777 B1 KR100759777 B1 KR 100759777B1
- Authority
- KR
- South Korea
- Prior art keywords
- pts
- ptss
- difference
- time information
- storage unit
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 23
- 230000002159 abnormal effect Effects 0.000 claims description 34
- 230000002093 peripheral effect Effects 0.000 claims description 2
- 238000001094 photothermal spectroscopy Methods 0.000 abstract 2
- 239000000872 buffer Substances 0.000 description 25
- 238000010586 diagram Methods 0.000 description 11
- 230000005856 abnormality Effects 0.000 description 7
- 230000006978 adaptation Effects 0.000 description 7
- 239000012536 storage buffer Substances 0.000 description 5
- 230000003044 adaptive effect Effects 0.000 description 4
- 238000001514 detection method Methods 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 238000003752 polymerase chain reaction Methods 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
- H04N21/4334—Recording operations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/4302—Content synchronisation processes, e.g. decoder synchronisation
- H04N21/4305—Synchronising client clock from received content stream, e.g. locking decoder clock with encoder clock, extraction of the PCR packets
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/44—Receiver circuitry for the reception of television signals according to analogue transmission standards
- H04N5/455—Demodulation-circuits
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Time-Division Multiplex Systems (AREA)
Abstract
방송 신호를 수신하고 복조하여 MPEG2-TS(Transport Stream)를 출력하는 튜너부(71)와, MPEG2-TS(11)에 포함되는 PES(Packetized Elementary Stream)에 포함되는 PTS(Presentation Time Stamp)를 복수 연속하여 저장하는 기억부(72)와, PES에 포함되는 식별 플래그(pts_dts_플래그)가 PTS의 존재를 나타낼 때, PTS가 나타내는 시간 정보에 따라 MPEG2-TS를 재생하는 재생부(76)와, 기억부에 저장된 복수의 PTS를 서로 비교하여 인접한 복수의 PTS가 나타내는 시간 정보의 차분이 소정값을 초과할 때, 차분을 포함하는 PTS의 식별 플래그를 PTS 부재로 재기록하도록 제어하는 재기록부(51)를 갖는 재생 장치가 제공된다.A tuner unit 71 for receiving and demodulating a broadcast signal and outputting a MPEG2-TS (Transport Stream) and a PTS (Presentation Time Stamp) included in a packetized elementary stream (PES) included in the MPEG2-TS 11 are provided. A reproducing unit 76 which reproduces MPEG2-TS according to the time information indicated by the PTS when the storage unit 72 and the identification flag (pts_dts_flag) included in the PES indicate the presence of the PTS; A rewrite unit 51 which controls to rewrite the identification flag of the PTS including the difference to the PTS member when a difference of time information indicated by a plurality of adjacent PTSs exceeds a predetermined value by comparing a plurality of PTSs stored in the storage unit with each other; A reproducing apparatus having a is provided.
재생 장치, 재생 방법, MPEG, MPEG2-TS Playback device, playback method, MPEG, MPEG2-TS
Description
도 1은 본 발명의 일 실시예에 관한 재생 장치가 취급하는 MPEG2-TS의 데이터 구조의 일례를 도시하는 설명도.1 is an explanatory diagram showing an example of a data structure of MPEG2-TS handled by a playback apparatus according to an embodiment of the present invention.
도 2는 본 발명의 일 실시예에 관한 재생 장치가 취급하는 MPEG2-TS의 TS 헤더의 데이터 구조의 일례를 도시하는 설명도.2 is an explanatory diagram showing an example of a data structure of a TS header of MPEG2-TS handled by a playback apparatus according to an embodiment of the present invention.
도 3은 본 발명의 일 실시예에 관한 재생 장치가 취급하는 MPEG2-TS의 PES(Packetized Elementary Stream)의 데이터 구조의 일례를 도시하는 설명도.3 is an explanatory diagram showing an example of a data structure of a packetized elementary stream (PES) of MPEG2-TS handled by a playback apparatus according to an embodiment of the present invention;
도 4는 본 발명의 일 실시예에 관한 재생 장치의 구성의 일례를 도시하는 블록도.4 is a block diagram showing an example of the configuration of a playback apparatus according to an embodiment of the present invention.
도 5는 본 발명의 일 실시예에 관한 재생 장치의 이상 PTS의 검출을 위한 PTS 버퍼의 저장 상태의 일례를 도시하는 설명도.FIG. 5 is an explanatory diagram showing an example of a storage state of a PTS buffer for detecting an abnormal PTS of a playback apparatus according to an embodiment of the present invention; FIG.
도 6은 본 발명의 일 실시예에 관한 이상 PTS의 검출을 위한 PTS와 PCR의 버퍼의 저장 상태의 일례를 도시하는 설명도.Fig. 6 is an explanatory diagram showing an example of a storage state of a PTS and a PCR buffer for detecting an abnormal PTS according to an embodiment of the present invention.
도 7은 본 발명의 일 실시예에 관한 재생 장치의 이상 PTS시의 플래그 재기록 처리의 일례를 도시하는 흐름도.Fig. 7 is a flowchart showing an example of flag rewriting processing during abnormal PTS of the playback apparatus according to the embodiment of the present invention.
도 8은 본 발명의 일 실시예에 관한 재생 장치의 이상 PTS시의 플래그 재기록 처리의 다른 일례를 도시하는 흐름도.8 is a flowchart showing another example of a flag rewrite process during abnormal PTS of the playback apparatus according to the embodiment of the present invention.
도 9는 본 발명의 일 실시예에 관한 재생 장치의 이상 PTS시 플래그 재기록 처리의 다른 일례를 도시하는 흐름도.Fig. 9 is a flowchart showing another example of flag rewriting process during abnormal PTS of the playback apparatus according to the embodiment of the present invention.
<도면의 주요 부분에 대한 부호의 설명><Explanation of symbols for main parts of the drawings>
71: 튜너 71: tuner
72: MPEG2-TS 저장용 버퍼 72: buffer for storing MPEG2-TS
73: 영상 PES 버퍼73: video PES buffer
74: 음성 PES 버퍼 74: voice PES buffer
75: 기록용 버퍼75: recording buffer
76: 영상 디코더 76: video decoder
77: 음성 디코더 77: voice decoder
78: 기록 장치 78: recording device
79: 디스플레이 79: display
80: 스피커 80: speaker
81: 제어부(헤더 재기록부).81: Control part (header rewriting part).
이 발명은, MPEG 스트림을 재생하는 재생 장치에 관한 것이며, 특히 MPEG2-TS의 PTS(Presentation Time Stamp)가 파괴되어 있는 경우, PTS 처리를 일시 중단하는 재생 장치 및 재생 방법에 관한 것이다.The present invention relates to a reproducing apparatus for reproducing an MPEG stream, and more particularly, to a reproducing apparatus and a reproducing method for suspending a PTS process when a PTS (Presentation Time Stamp) of MPEG2-TS is destroyed.
최근, MPEG 스트림의 기록 및 재생이 매우 일반화되어 있고, 많은 장치에서 동영상 컨텐츠나 음악 정보의 기록이나 재생에 이용되고 있다. 이 부호화된 스트림에서는, 스트림 내에 멀티플렉싱된 PTS(출력 지정 시각)가 이용되고 있고, 이 시각에 기초하는 스트림이 재생 처리를 행하는 것이다. 그러나, 이 PTS가 송신 중에 파괴되는 경우가 있어 이것을 보정하는 기술이 알려져 있다.Background Art In recent years, recording and reproducing MPEG streams have become very common, and many devices have been used for recording and reproducing moving picture contents and music information. In this encoded stream, the multiplexed PTS (output designation time) is used, and the stream based on this time performs a reproduction process. However, this PTS may be destroyed during transmission, and a technique for correcting this is known.
즉, 일본 특허 공개 2003-284066호에는, 부호화된-스트림 내에 멀티플렉싱되어 있는 PTS(출력 지정 시각)가 올바르지 않은 경우에, 올바른 PTS로 재기록하는 방법에 관해서 기재되어 있고, 이에 따라 PTS 정보가 다소 불안정해도, 본래의 재생을 가능하게 하는 것이다.That is, Japanese Patent Laid-Open No. 2003-284066 describes a method for rewriting to the correct PTS when the PTS (output designation time) multiplexed in the encoded-stream is not correct, whereby the PTS information is somewhat unstable. Even if it is, original reproduction is possible.
그러나, 특히 휴대 TV 수신 단말 등에서는 수신 상황이 좋지 않은 경우가 매우 많고, 수신 상황이 악화되어 PTS가 파괴되는 경우가 있다. 이러한 경우에, 상기 2003-284066호에 나타낸 기술에 따르면, PTS를 보정하려해도 PTS가 보정될 수 없는 경우에는, 디코더의 처리 이상이 발생하여, 그 결과 복구가 어려워지고, 그 후 전파 상황이 개선되어도 재생 처리가 장시간 불가능하게 된다고 하는 문제가 있다.However, especially in the case of a portable TV receiving terminal, the reception situation is often very poor, and the reception situation deteriorates and the PTS may be destroyed. In such a case, according to the technique shown in 2003-284066, when the PTS cannot be corrected even when the PTS is attempted to be corrected, an abnormality in the processing of the decoder occurs, and as a result, recovery becomes difficult, and then the propagation situation is improved. Even if it does, there is a problem that the reproduction processing becomes impossible for a long time.
본 발명의 목적은, 동작 모드 및 송신기의 현재 위치 정보와 같은 동적 정보를, 송신 시점에서 목적 수신기에 보고하여, 호(call)가 누구로부터 수신되는지에 대한 정보 뿐만 아니라, 전송기가 놓인 상태에 대한 정보도 역시 보고할 수 있는, 휴대 전화 통신 장치 및 통신 방법을 제공하는 것이다.It is an object of the present invention to report dynamic information, such as the operating mode and the current position information of the transmitter, to the destination receiver at the time of transmission, as well as information on who the call is received from, as well as the state in which the transmitter is placed. It is to provide a mobile phone communication device and a communication method that can also report information.
본 발명의 일 실시예는, 방송 신호를 수신하고 복조하여 MPEG2-TS(Transport Stream)를 출력하는 튜너와; 상기 MPEG2-TS에 포함되는 PES(Packetized Elementary Stream)에 포함되는 PTS(Presentation Time Stamp)를 복수 연속하여 저장하는 기억부와; 상기 PES에 포함되는 식별 플래그(pts_dts flags)가 상기 PTS가 존재한다고 나타낼 때, 상기 PTS가 나타내는 시간 정보에 따라 상기 MPEG2-TS를 재생하는 재생부와; 상기 기억부에 저장된 복수의 PTS를 서로 비교하여 상기 인접한 복수의 PTS가 나타내는 시간 정보의 차분이 소정값을 초과할 때, 상기 차분을 포함하고 있는 PTS의 상기 식별 플래그가 상기 PTS가 존재하지 않는 것을 나타내도록 재기록하기 위해 제어하는 재기록부를 구비하는 것을 특징으로 하는 재생 장치이다.An embodiment of the present invention includes a tuner for receiving and demodulating a broadcast signal and outputting a MPEG2-TS (Transport Stream); A storage unit for successively storing a plurality of PTSs (Presentation Time Stamps) included in a packetized elementary stream (PES) included in the MPEG2-TS; A playback unit for reproducing the MPEG2-TS according to time information indicated by the PTS when an identification flag (pts_dts flags) included in the PES indicates that the PTS exists; Comparing the plurality of PTSs stored in the storage unit with each other, and when the difference of time information indicated by the plurality of adjacent PTSs exceeds a predetermined value, the identification flag of the PTS including the difference does not exist. And a rerecording portion for controlling to rewrite so as to appear.
(실시예)(Example)
이하, 이 발명의 실시예에 관해서 도면을 참조하여 상세하게 설명한다.EMBODIMENT OF THE INVENTION Hereinafter, embodiment of this invention is described in detail with reference to drawings.
본 발명은 예컨대, 휴대형 TV 수신 단말로서 실시하는 것이 가능하고, 이하에서 그 실시예의 일례를 도면을 이용하여 설명한다. 도 1은 본 발명의 일 실시예에 관한 재생 장치가 취급하는 MPEG2-TS의 데이터 구조의 일례를 도시하는 설명도, 도 2는 재생 장치가 취급하는 MPEG2-TS의 TS 헤더의 데이터 구조의 일례를 도시하는 설명도, 도 3은 재생 장치가 취급하는 MPEG2-TS의 PES(Packetized Elementary stream)의 데이터 구조의 일례를 도시하는 설명도, 도 4는 재생 장치의 구성의 일례를 도시하는 블록도, 도 5는 재생 장치의 이상 PTS의 검출을 위한 PTS의 버퍼의 저장 상태의 일례를 도시하는 설명도, 도 6은 이상 PTS의 검출을 위한 PTS와 PCR의 버퍼의 저장 상태의 일례를 도시하는 설명도, 도 7은 재생 장치의 이상 PTS시의 플래그 재기록 처리의 일례를 도시하는 흐름도, 도 8은 동일하게 재생 장치의 이상 PTS시의 플래그 재기록 처리의 다른 일례를 도시하는 흐름도, 도 9는 재생 장치의 이상 PTS시 플래그 재기록 처리의 다른 일례를 나타내는 흐름도이다.The present invention can be implemented, for example, as a portable TV receiving terminal, and an example of the embodiment will be described below with reference to the drawings. 1 is an explanatory diagram showing an example of a data structure of MPEG2-TS handled by a playback apparatus according to an embodiment of the present invention, and FIG. 2 is an example of a data structure of a TS header of MPEG2-TS handled by a playback apparatus. FIG. 3 is an explanatory diagram showing an example of a data structure of a packetized elementary stream (PES) of MPEG2-TS handled by a playback apparatus, and FIG. 4 is a block diagram showing an example of a configuration of a playback apparatus. 5 is an explanatory diagram showing an example of the storage state of the PTS buffer for detecting the abnormal PTS of the playback apparatus, FIG. 6 is an explanatory diagram showing an example of the storage state of the PTS and PCR buffer for the detection of the abnormal PTS; 7 is a flowchart showing an example of a flag rewrite process at the time of an abnormal PTS of the playback apparatus, FIG. 8 is a flowchart showing another example of the flag rewrite process at the time of an abnormal PTS of the playback apparatus, and FIG. 9 is an abnormality of the playback apparatus. PTS City Flag It is a flow chart showing another example of the recording process.
<본 발명의 일 실시예에 따른 재생 장치><Playing apparatus according to an embodiment of the present invention>
본 발명의 일 실시예에 따른 TV 수신 단말인 재생 장치는, 부호화된-스트림 수신기이다. 재생 장치(A), 즉, TV 수신 단말은, 도 4에서 헤더 재기록 기능을 갖고 전체 동작을 제어하는 제어부(81)와, 제어부(81)에 각각 접속되는 구성으로서 안테나에 접속되는 튜너(71)와, 튜너(71)로부터 MPEG2-TS(Transport Stream) 스트림이 공급되는 MPEG2-TS 저장용 버퍼(72)와, 이에 접속되어 MPEG2-TS로부터 영상 PES를 분리한 데이터가 저장되는 영상 PES 버퍼(73)와, 영상을 디코드하는 영상 디코더(76)와, 음성 PES를 저장하는 음성 PES 버퍼(74)와, 음성 PES를 디코드하는 음성 디코더(77)와, 수신 데이터를 기록하는 기록용 버퍼(75)와, 기록 처리를 실시하는 기록 장치(78)와, 영상 디코더에 접속되는 디스플레이(79)와, 음성을 출력하는 스피커(80)를 가지고 있다.A playback apparatus which is a TV receiving terminal according to an embodiment of the present invention is an encoded-stream receiver. The reproducing apparatus A, that is, the TV receiving terminal, has a header rewriting function in FIG. 4, and a
재생 장치는 이러한 구성에서, 안테나로부터 입력된 전파는 튜너(71)에서 MPEG2-TS(Transport Stream) 스트림으로 복조되고, MPEG2-TS 저장용 버퍼(72)에 저장된다. MPEG2-TS로부터 분리된 영상 PES 데이터는 영상 PES 버퍼(73)에 저장되고, 영상 디코더(76)에서 디코드된다. 또한 MPEG2-TS로부터 분리된 음성 PES 데이터는 음성 PES 버퍼(74)에 저장되고, 음성 디코더(77)에서 디코드된다. 수신한 데 이터를 기록하는 경우는 기록용 버퍼(75)에 데이터가 저장되며, 기록 장치(78)에 기록된다. 영상 디코더(76)에서 디코드된 화상은 영상 PES에 기재된 PTS(presentation time stamp)라고 불리는 표시 출력 시각이 되면 출력된다. 마찬가지로 음성 디코더(77)에서 디코드된 음성은 음성 PES에 기재된 PTS가 나타내는 표시 출력 시각이 되면 출력된다. 이 PTS가 이상치(abnormal value)가 되면, 영상 및 음성 디코더가 정상적으로 동작하지 않게 될 가능성이 발생한다. 또한 PTS가 이상치인 상태에서 기록된 데이터는 재생할 때에 올바르게 재생할 수 없을 가능성이 있다. 이하에 PTS 이상에 대한 본 발명의 일 실시예인 헤더 처리에 관해서, 상세하게 기술하지만, 우선 스트림의 데이터 구성이 설명될 것이다.In this configuration, the reproduction apparatus demodulates the radio waves input from the antenna into the MPEG2-TS (Transport Stream) stream in the
(MPEG2-TS의 구성 등)(Configuration of MPEG2-TS, etc.)
도 1에 MPEG2-TS와 영상 PES 및 음성 PES의 관계를 도시한다. MPEG2-TS11은 1 패킷 188 byte의 패킷열로 구성되고, 패킷은 헤더 부분(12)과 페이로드(payload) 부분으로 이루어진다. 페이로드 부분에는 영상 PES(13) 및 음성 PES(31)가 분할되어 저장된다. 여기서, 영상 PES(13)는 PES 헤더(21), 영상 페이로드(22, 23), 또한 음성 PES(31)는 PES 헤더(31), 음성 페이로드(33)를 가지고 있다. 또한, 도 3의 영상 PES 버퍼(73) 및 음성 PES 버퍼(74)는 MPEG2-TS 패킷열로부터 영상 PES 및 음성 PES를 추출 분리한 것이 저장된다.1 shows the relationship between MPEG2-TS, video PES, and audio PES. MPEG2-TS11 consists of a packet sequence of 1
마찬가지로, 도 2에 TS 헤더의 구성을 도시한다. TS 헤더(12)는 sync 바이트(41)와, PID(42)와, 적응 필드 제어(43)와, 적응 필드 제어(44)를 가지고 있다. 또한, 이 적응 필드 제어(44)는 적응 필드 길이(51)와 PCR_플래그(53)와 PCR(Program Clock Reference)(54)를 더 가지고 있다.Similarly, the configuration of the TS header is shown in FIG. The
도 3에는 PES(Packetized Elementary Stream)의 구조가 도시되어 있다. 영상 PES 및 음성 PES 모두 PES의 구조는 동일하다. 음성 PES(14)는 PES 헤더(32)로 불리는 헤더 부분과 PES 패킷 데이터 바이트로 불리는 기본 스트림(Elementary stream, 33) 본체로 이루어진다. 기본 스트림이란 영상 또는 음성을 압축 부호화한 데이터 그 자체이다. PES 헤더(32)에는 PES 패킷 데이터 바이트에 있는 기본 스트림을 디코드 표시하는 시간을 나타내는 PTS(presentation time stamp)(65) 또는 디코드를 시작하는 시간을 나타내는 DTS(decoding time stamp)(65)가 부여된다. 영상 디코더 또는 음성 디코더는, 이 PTS/DTS(65)에 따라 디코드 시작과 디코드한 화상의 표시 또는 음성의 출력을 행한다.3 illustrates a structure of a packetized elementary stream (PES). The structure of PES is the same for both video PES and audio PES. The
이 PTS(65)가 정상적이지 않은 경우에는, 디코더의 동작이 이상해질 가능성이 있다. 도 3의 안테나로 수신한 전파 강도가 약한 경우에, 튜너(71)에서 복호되는 MPEG2-TS가 올바르게 복호되지 않는 경우가 있다. 이 경우, MPEG2-TS 스트림 중의 PTS(65)도 이상치가 되고, 그 결과, 영상 디코더나 음성 디코더가 정상적으로 작동하지 않는다고 하는 문제가 발생한다. 그 대책으로서, 이상 PTS를 디코더에 보내기 전에 검지하고 보정하는 처리를 행한다. 도 3의 MPEG2-TS 저장용 버퍼(72)는 이 PTS 보정을 행하기 위해 수신기 내에 마련되어 있는 것이다.If this
<본 발명의 일 실시예에 따른 헤더 처리><Header processing according to an embodiment of the present invention>
본 발명에 따른 재생 장치의 일 실시예인 PTS 이상에 대한 헤더 처리를 상세하게 설명한다. 본 발명에 따른 재생 장치의 이상 PTS 처리를 도 7의 흐름도를 이 용하여 상세하게 설명한다.The header processing for the PTS abnormality which is one embodiment of the playback apparatus according to the present invention will be described in detail. The abnormal PTS process of the playback apparatus according to the present invention will be described in detail with reference to the flowchart of FIG.
처음에, MPEG2-TS 저장용 버퍼(72)가 가득 찰 때까지 튜너로부터의 MPEG2-TS 데이터를 채워 가득 차게 되면(S11), 버퍼의 처음부터 끝까지의 PCR과 PTS를 모두 검출하여 기억한다(S12, S13). 그리고, 버퍼 내의 PCR과 PTS를 모두 취득하면 PTS가 정상적인지의 여부의 판단을 모두 행한다(S14). 그리고, 여기서 과거 및 미래의 PTS와 PCR의 값에 기초하여, PTS가 이상인지의 여부를 판단하는 것이다(S15).First, when the MPEG2-
PTS가 이상으로 판단되면(S16), PES 헤더의 pts_dts_플래그를 예컨대 "0"으로 재기록한다(S17). 모든 PTS의 판단을 끝내면(S18), 버퍼 내의 데이터를 영상 PES 버퍼(73), 음성 PES 버퍼(74), 또는 기록용 버퍼(75)에 보내고, 재생 처리로 이행하는 것이다(S19).If it is determined that the PTS is abnormal (S16), the pts_dts_flag of the PES header is rewritten to, for example, "0" (S17). When the determination of all PTSs is finished (S18), the data in the buffer is sent to the
(PTS 이상 검출 방법)(PTS error detection method)
여기서, PTS 이상 검출의 여러 가지 방법에 관해서, 도 8 및 도 9의 흐름도를 이용하여 상세하게 기술한다. 즉, 도 5의 버퍼 내의 PTS를 참조하여 이상 PTS를 검지하는 경우, 우선 처음에 MPEG2-TS 저장용 버퍼(72) 내에 포함되는 모든 PTS를 추출한다. PTS는 PES 헤더에 부여할 수 있기 때문에, PES 헤더의 선두의 패킷 코드 프레픽스(packet code prefix)를 찾는다. PES 헤더에는 PTS가 존재하는 것을 나타내는 2 비트 플래그(pts_dts_플래그)가 있고, 이 값이 "10" 또는 "11"인 경우는 PTS가 존재한다. PES 헤더가 발견되면 pts_dts_플래그의 값을 조사하여 PTS가 존재하는 경우는 그 값을 취득한다. 도 5에서는 버퍼 내에 5개의 PTS(PTS 1, PTS 2, PTS 3, PTS 4, PTS 5)가 존재하고 있다. 다음에 연속하는 PTS의 차분을 계산한다. MPEG2-TS의 규격에서는 PTS의 차분치는 700 ms 이하로 되어 있다. 따라서 PTS의 차분이 700 ms를 초과할 경우나, 앞의 PTS치보다 PTS치가 작아지고 있는 경우는, PTS를 이상으로 판단할 수 있다(도 8의 S31). 예컨대 PTS 1 내지 PTS 5가 각각 100ms, 500ms, 1500ms, 1200ms, 1700 ms였을 경우는 Here, various methods of PTS abnormality detection will be described in detail using the flowcharts of FIGS. 8 and 9. That is, when an abnormal PTS is detected with reference to the PTS in the buffer of FIG. 5, first, all PTSs included in the MPEG2-
PTS3 - PTS2 = 1000ms > 700msPTS3-PTS2 = 1000ms> 700ms
PTS 4 < PTS 3
이기 때문에 PTS 3(1500 ms)을 이상치로 판단할 수 있다.Because of this, PTS 3 (1500 ms) can be determined as an outlier.
또한, 여기서 1 개의 프레임을 1개의 PES로 이용하는 경우에 있어서는, 15 프레임/sec로 실시하는 규격이 적합하다. 이 규격에서의 처리를 상정하면, "1/15 sec=66 msec"라고 하는 값을 상정할 수 있기 때문에, PTS의 하한을 66 msec로 상정하는 것도 가능하다. 따라서, 일례로서 PTS는 66 msec 내지 700 msec의 범위를 초과하면 PTS 이상으로 간주한다고 하는 판단이 가능하다.In addition, when using one frame for one PES here, the specification implemented at 15 frames / sec is suitable. Assuming that the processing in this standard can assume a value of "1/15 sec = 66 msec", it is also possible to assume the lower limit of the PTS to 66 msec. Therefore, as an example, it can be determined that the PTS is regarded as more than the PTS if it exceeds the range of 66 msec to 700 msec.
그러나, 이러한 값을 나타내었다고 하여도, 실제로 전파가 약한 경우는 PTS가 빠지는 경우도 생각할 수 있어, 이 경우는 인접하는 2 개의 PTS의 차분치가 700 ms를 초과한다고 단순히 이상으로 판단할 수 없는 경우도 있다. 이러한 경우는 인접하는 PTS뿐만 아니라, 그 주변의 PTS치도 맞추어 판단하는 것이 적합하다. 즉, 기억부에 저장된 복수의 PTS를 서로 비교하여 인접한 복수의 PTS가 나타내는 시간 정보의 차분이 소정값을 초과할 때, 상기 차분을 포함하고 있는 PTS뿐만 아니라 그 PTS의 주변 PTS도 시간 정보의 차분이 소정값을 초과했는지의 여부를 판단한다. 그리고, 소정값을 초과하여 이상으로 판단된 경우는, 해당하는 PES 헤더의 pts_dts_ 플래그를 "00"으로 재기록한다.However, even if these values are shown, the case where the radio wave is actually weak may be considered to be the case where the PTS falls out, and in this case, even if the difference between two adjacent PTSs exceeds 700 ms, it may not be judged as abnormal. have. In such a case, it is appropriate to judge not only the adjacent PTS but also the PTS values in the vicinity thereof. That is, when the difference of time information indicated by a plurality of adjacent PTSs exceeds a predetermined value by comparing a plurality of PTSs stored in the storage unit, not only the PTS including the difference but also the peripheral PTSs of the PTSs differ in time information. It is determined whether or not this predetermined value is exceeded. If it is determined that the error exceeds the predetermined value, the pts_dts_ flag of the corresponding PES header is rewritten to "00".
이에 따라, 디코더는 PTS가 없는 것으로 판단한다. PTS가 이상인 경우는 기본 스트림도 망가져 있는 경우가 많기 때문에, 디코더로 디코드되지 않지만, PTS 플래그인 pts_dts_플래그를 "00"으로 재기록함으로써, 디코더는 PTS 처리를 일시 행하지 않기 때문에, 디코더의 PTS 제어에 기인하는 이상 동작을 방지할 수 있다. 이에 따라, 전파 상황에 의해 PTS가 파괴되어도 디코더의 이상 동작을 일으키지 않고, 전파 상황이 개선된 후의 원활한 재생 처리의 재개를 가능하게 하는 것이다.Accordingly, the decoder determines that there is no PTS. If the PTS is abnormal, the elementary stream is also broken in many cases. However, the decoder does not decode the decoder. However, by rewriting the pts_dts_ flag, which is a PTS flag, with "00", the decoder does not temporarily perform the PTS process. Abnormal operation resulting from it can be prevented. As a result, even if the PTS is destroyed due to the radio wave condition, the decoder does not cause abnormal operation, and it is possible to resume smooth playback processing after the radio wave condition is improved.
(PCR의 참조)(Reference of PCR)
도 6에서는 PCR을 참조하여 이상 PTS를 검지하는 방법을 설명한다. PCR(program clock reference)는 수신기의 기준 시간을 방송국측의 기준 시간으로 교정하기 위해 MPEG2-TS에 부여되는 것이다. PCR은 도 2에 도시한 바와 같이 TS 헤더의 적응 필드에 부여되는 것이다. TS 헤더에는 적응 필드로 불리는 영역이 있고, PID에 계속되는 플래그 영역에 적응 필드가 존재하는지의 여부를 나타내는 2 비트의 플래그(적응 필드 제어; adaptation field control)가 있다. 적응 필드 제어가 "10"이거나 "11"인 경우는 적응 필드 영역이 존재한다. 적응 필드에는 PCR이 존재하는 것을 나타내는 1 비트의 플래그(PCR_flag)가 있고, PCR_flag가 "1"인 경우에 PCR이 존재한다.In FIG. 6, a method of detecting an abnormal PTS will be described with reference to PCR. Program clock reference (PCR) is given to MPEG2-TS to correct the reference time of the receiver to the reference time of the broadcasting station. PCR is given to the adaptation field of the TS header as shown in FIG. There is an area called an adaptation field in the TS header, and there is a 2-bit flag (adaptation field control) indicating whether an adaptation field exists in the flag area following the PID. If the adaptation field control is "10" or "11", there is an adaptation field region. In the adaptation field, there is a 1-bit flag (PCR_flag) indicating that the PCR exists, and PCR exists when the PCR_flag is "1".
도 6에서는 PCR 1, PCR 2, PCR 3, PCR 4, PCR 5의 5 개의 PCR이 포함되어 있다. PCR이 이상인 경우도 생각할 수 있지만, 간단하게 하기 위해 PCR은 올바른 것으로 한다. PCR은 MPEG2-TS의 규격에 의해 100 ms 이하의 간격으로 부여되어 있기 때문에 PTS와 직전의 PCR의 차분은 그만큼 크게 변하지 않을 것이다. 따라서, PTS와 PCR의 차분이 예컨대 100 ms를 초과하여 크게 변화하는 경우는 PTS를 이상으로 판단할 수 있다[도 9의 단계(S33)]. 예컨대 PCR 1 내지 PCR 5가 각각 200 ms, 250 ms, 300 ms, 350 ms, 400 ms이고, PTS 1 내지 PTS 5가 각각 400 ms, 460 ms, 520 ms, 2000 ms, 600 ms인 경우는 In FIG. 6, five PCRs of
PTS 1 - PCR 1 = 200 msPTS 1-
PTS 2 - PCR 2 = 210 msPTS 2-
PTS 3 - PCR 3 = 220 msPTS 3-
PTS 4 - PCR 4 = 1650 msPTS 4-
PTS 5 - PCR 5 = 200 msPTS 5-
가 되고, 이에 따라 PTS 4가 이상이다라고 하는 판단이 된다. PTS가 이상으로 판단된 경우는 PES 헤더의 pts_dts_플래그를 "00"으로 재기록함으로써 디코더의 PTS 제어에 기인하는 이상 동작을 방지할 수 있다.This results in the determination that
즉, PTS가 비정상인 경우에 실시간으로 PTS를 정상적인 값으로 보정하는 방법으로는, 수신기가 어느 정도 안정되어 전파를 수신할 수 있다고 하는 전제가 있는 경우에 유효하다. 그러나, 특히 모바일 방송 수신기, 지상 1 세그먼트 방송 수신기라고 하는 휴대 이동 단말에서는 전파 강도가 항상 안정되어 있다고는 할 수 없다. 전파 강도가 약한 경우는 MPEG2-TS가 올바르게 복호되지 않고, PTS가 이상이 되는 것은 항상 일어날 수 있다. 이러한 경우는 실시간으로 PTS를 올바른 값으로 보정하려고 하여도 근접한 PTS가 망가져 있는 경우가 많기 때문에 보정이 어렵다. 또한 PTS를 올바른 값으로 보정하였다고 하여도 기본 스트림(ES) 자체가 망가져 있을 가능성이 높기 때문에 디코드할 수 없는 결과가 되어 별로 의미는 없다.That is, a method of correcting the PTS to a normal value in real time when the PTS is abnormal is effective when there is a premise that the receiver is somewhat stable and can receive radio waves. In particular, however, radio wave strength is not always stable in a mobile mobile terminal called a mobile broadcast receiver or a terrestrial one-segment broadcast receiver. When the radio wave strength is weak, it can always happen that MPEG2-TS is not decoded correctly and PTS is abnormal. In such a case, correction is difficult because the adjacent PTS is often broken even when the PTS is corrected in real time. In addition, even if the PTS is corrected to a correct value, the elementary stream (ES) itself is likely to be broken, and thus the result cannot be decoded.
본 발명의 일 실시예에서는 일시적으로 버퍼 상에 MPEG2-TS를 저장함으로써, 과거 및 미래의 PTS 또는 PCR로부터 PTS의 이상을 검출하고, PTS 이상의 판단의 신뢰도를 올릴 수 있으며, 또한 이상으로 검지된 PTS를 보정하는 것이 아닌, PTS가 존재하지 않는 스트림으로 하기 위해 식별 플래그를 재기록함으로써, 디코더의 PTS 제어에 기인하는 이상 동작을 방지할 수 있다. 따라서, 이 실시예의 PTS 이상에서의 처리에 의해, 전파 강도가 안정되지 않은 휴대 이동 단말의 수신에서, 전파 상황의 개선과 함께 빠른 재생 화상 표시를 가능하게 하는 것이다.In one embodiment of the present invention, by temporarily storing the MPEG2-TS in the buffer, an abnormality of the PTS can be detected from the PTS or the PCR of the past and the future, and the reliability of the determination of the PTS abnormality can be increased. By rewriting the identification flag to make the stream in which the PTS does not exist, rather than correcting the error, abnormal operation due to PTS control of the decoder can be prevented. Therefore, by the processing above the PTS of this embodiment, the reception of the portable mobile terminal whose radio wave intensity is not stabilized enables the rapid reproduction image display with the improvement of the radio wave situation.
(그 외의 실시예)(Other Examples)
이상 기재한 실시예에서는 튜너부를 마련하고, 또한 스트림을 MPEG2-TS를 예를 들어 설명하였다. 그러나, 본 발명의 본질은 일례로서 음성 화상 정보에 포함되는 정보 단위의 시간 정보(Presentation Time Stamp)를 복수 연속하여 저장하는 기억 영역과, 이 시간 정보가 존재하는지의 여부를 나타내는 식별 정보(pts_dts_플래그)가 음성 화상 정보의 정보 단위가 존재하고 있다고 나타낼 때, 시간 정보에 따라 음성 화상 정보를 재생하는 재생부와, 기억부에 저장된 복수의 시간 정보를 비교하여 인접한 복수의 시간 정보의 차분이 소정값을 초과할 때, 식별 정보를 시간 정보가 존재하지 않는 것으로 재기록함으로써, 재생부가 식별 정보의 재기록된 범위에서 음성 화상 정보의 정보 단위의 PTS 처리를 일시 중단하기 위해 제어하는 재생 장치에 있다. 따라서, 그 본질은 적어도 튜너부나 MPEG2-TS에 한정하는 것이 아 니고, MPEG2-PS이어도, 다른 스트림이어도 동등하게 대상으로 하는 것이 가능하여 동등한 작용 효과를 발휘할 수 있는 것이다.In the embodiment described above, the tuner section is provided and the stream has been described using MPEG2-TS as an example. However, the essence of the present invention is, as an example, a storage area for storing a plurality of consecutive time information (Presentation Time Stamps) of information units included in audio image information, and identification information (pts_dts_) indicating whether or not this time information exists. Flag) indicates that an information unit of audio image information exists, a difference between a reproduction unit for reproducing audio image information according to the time information and a plurality of adjacent time information is compared by comparing a plurality of time information stored in the storage unit. When the value is exceeded, the reproducing apparatus controls to suspend PTS processing of the information unit of the audio image information in the rewritten range of the identification information by rewriting the identification information as the time information does not exist. Therefore, the essence is not limited to at least the tuner section and MPEG2-TS, and even an MPEG2-PS or another stream can be equally targeted and can exhibit the same effect.
전술한 재생 장치에서는, 휴대형 또는 이동형 수신기로 방송 신호로부터 TS 스트림을 수신하는 경우에, 전파가 약한 경우는 PTS뿐만이 아니라 ES(Elementary Stream) 자체도 망가지기 때문에, 올바르지 않은 PTS를 보정하여도 디코더로 재생할 수 없을 가능성이 높다. 이 경우, PTS를 무리하게 보정하는 것이 아니라, PTS가 없는 것으로 한 식별 플래그 등에 재기록함으로써, 장치에 처리적인 부담을 주지않고 PTS 이상에 대응하는 것이 가능해진다. 이에 따라, 전파 상황에 의해 PTS가 파괴되어도 디코더의 이상 동작을 일으키는 경우가 없어지고, 전파 상황이 개선된 후의 원활한 재생 처리의 재개를 가능하게 하는 것이다.In the above-described playback apparatus, when receiving a TS stream from a broadcast signal by a portable or mobile receiver, when the radio wave is weak, not only the PTS but also the ES (Elementary Stream) itself are broken, so that even if the PTS is corrected, the playback can be performed by the decoder. Most likely not. In this case, instead of forcibly correcting the PTS, it is possible to cope with an abnormality of the PTS without putting a processing burden on the apparatus by rewriting the identification flag or the like which does not have a PTS. As a result, even if the PTS is destroyed due to the radio wave situation, the abnormal operation of the decoder is not caused, and smooth playback processing can be resumed after the radio wave condition is improved.
이상 기재한 여러 가지 실시예에 의해, 당업자는 본 발명을 실현할 수 있지만, 이러한 실시예의 여러가지 변형예를 생각해 내는 것이 당업자에 의해 더 용이하고, 발명적인 능력을 가지고 있지 않은 것도 여러 가지 실시예로 적용하는 것이 가능하다. 따라서, 본 발명은 개시된 원리와 신규 특징에 모순되지 않는 광범위한 범위에 영향을 미치는 것으로, 전술한 실시예로 한정되는 것은 아니다.Although the skilled person can realize this invention by the various Example described above, it is easier for a person skilled in the art to come up with the various modified example of this Example, and it does not have invention ability, and it applies to various example It is possible to do Accordingly, the present invention affects a wide range that does not contradict the disclosed principles and novel features and is not limited to the above-described embodiments.
Claims (13)
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004347746A JP2006157729A (en) | 2004-11-30 | 2004-11-30 | Reproduction apparatus and reproduction method |
JPJP-P-2004-00347746 | 2004-11-30 |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20060061254A KR20060061254A (en) | 2006-06-07 |
KR100759777B1 true KR100759777B1 (en) | 2007-09-20 |
Family
ID=36635429
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR20050115955A KR100759777B1 (en) | 2004-11-30 | 2005-11-30 | Playback device and playback method |
Country Status (2)
Country | Link |
---|---|
JP (1) | JP2006157729A (en) |
KR (1) | KR100759777B1 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4682159B2 (en) * | 2007-01-26 | 2011-05-11 | 富士通東芝モバイルコミュニケーションズ株式会社 | Stream playback device |
KR101143907B1 (en) * | 2007-02-15 | 2012-05-10 | 삼성전자주식회사 | Method and Apparatus of playing Digital Broadcasting |
JP2010081333A (en) | 2008-09-26 | 2010-04-08 | Sony Corp | Data processing apparatus, and data processing method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002281498A (en) | 2001-03-19 | 2002-09-27 | Sanyo Electric Co Ltd | Reception reproducing device |
JP2004015553A (en) | 2002-06-07 | 2004-01-15 | Sanyo Electric Co Ltd | Synchronization control method and apparatus thereof, synchronization reproduction apparatus and tv receiving apparatus using the control method and apparatus |
JP2005347919A (en) | 2004-06-01 | 2005-12-15 | Sanyo Electric Co Ltd | Decoder device |
KR20060099680A (en) * | 2005-03-14 | 2006-09-20 | 엘지전자 주식회사 | Digital multimedia broadcasting receiver's controlling method of ripsync |
-
2004
- 2004-11-30 JP JP2004347746A patent/JP2006157729A/en not_active Withdrawn
-
2005
- 2005-11-30 KR KR20050115955A patent/KR100759777B1/en not_active IP Right Cessation
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002281498A (en) | 2001-03-19 | 2002-09-27 | Sanyo Electric Co Ltd | Reception reproducing device |
JP2004015553A (en) | 2002-06-07 | 2004-01-15 | Sanyo Electric Co Ltd | Synchronization control method and apparatus thereof, synchronization reproduction apparatus and tv receiving apparatus using the control method and apparatus |
JP2005347919A (en) | 2004-06-01 | 2005-12-15 | Sanyo Electric Co Ltd | Decoder device |
KR20060099680A (en) * | 2005-03-14 | 2006-09-20 | 엘지전자 주식회사 | Digital multimedia broadcasting receiver's controlling method of ripsync |
Also Published As
Publication number | Publication date |
---|---|
KR20060061254A (en) | 2006-06-07 |
JP2006157729A (en) | 2006-06-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5648960A (en) | Recording/reproducing apparatus for data packet stream | |
JP4612171B2 (en) | Video decoding / playback module, playback time management program, and multimedia information receiving apparatus | |
US20080101478A1 (en) | Decoding device and decoding method | |
JP2008011404A (en) | Content processing apparatus and method | |
US20080279272A1 (en) | Contents reproducing apparatus | |
JP2006295568A (en) | Moving picture decoder and picture border judgement method | |
KR100759777B1 (en) | Playback device and playback method | |
US7688726B2 (en) | Broadcast reception apparatus, TS packet reproduction apparatus, broadcast reception method and program | |
JPH09186968A (en) | Digital signal recording and reproducing device and digital signal reproducing method | |
US8131127B2 (en) | Broadcast receiving apparatus and broadcast receiving method | |
JP5032179B2 (en) | Stream reproducing apparatus and media data decoding method | |
US8254764B2 (en) | Recording apparatus, image reproducing apparatus, and special reproduction method therefor | |
JP2006238003A (en) | Demultiplexing device | |
JP4327561B2 (en) | Digital broadcast receiving apparatus and control method thereof | |
JP4589355B2 (en) | Stream playback device | |
JP4902258B2 (en) | Data receiving apparatus and computer-readable storage medium | |
JP5244764B2 (en) | Digital broadcast receiving apparatus and program | |
JP2001111610A (en) | Receiver for information data transmission system | |
WO2007105697A1 (en) | Digital image data processing device and processing method | |
EP2169682B1 (en) | Data processing apparatus and data processing method | |
US8571392B2 (en) | Apparatus for video recording and reproducing, and method for trick play of video | |
JP5571220B2 (en) | DIGITAL BROADCAST RECEIVING DEVICE, OUTPUT METHOD AND PROGRAM IN DIGITAL BROADCAST RECEIVING DEVICE | |
JP3716834B2 (en) | Playback apparatus and playback method | |
KR20020022147A (en) | A Digital Television for Playing Multimedia Audio and Method for Playing Multimedia Audio using Digital Television | |
JP3716836B2 (en) | Electronic apparatus and signal processing method |
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 | ||
LAPS | Lapse due to unpaid annual fee |