JP2011223427A - Digital broadcasting receiver - Google Patents

Digital broadcasting receiver Download PDF

Info

Publication number
JP2011223427A
JP2011223427A JP2010091886A JP2010091886A JP2011223427A JP 2011223427 A JP2011223427 A JP 2011223427A JP 2010091886 A JP2010091886 A JP 2010091886A JP 2010091886 A JP2010091886 A JP 2010091886A JP 2011223427 A JP2011223427 A JP 2011223427A
Authority
JP
Japan
Prior art keywords
pes
data
header
packet
audio
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
JP2010091886A
Other languages
Japanese (ja)
Inventor
Hiroshi Yumoto
洋志 湯本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Corp
Original Assignee
Panasonic Corp
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 Panasonic Corp filed Critical Panasonic Corp
Priority to JP2010091886A priority Critical patent/JP2011223427A/en
Publication of JP2011223427A publication Critical patent/JP2011223427A/en
Pending legal-status Critical Current

Links

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a transport decoder that avoids a mismatch between PES size information added to a PES header and a PES data size transferred to a decoder which is caused by data transformation in a PES header, without degradation in quality resulting from image and audio noises at the time of data decoding which can be caused when transformation or lack of TS packet data frequently occurs in a conventional system using an transmission channel on which transmission errors are likely to occur, such as a radio link.SOLUTION: When a mismatch between Length information in a PES header and a data size actually transferred to a decode part is detected by an analysis of a TS header and the PES header, a transport decode part rewrites the size information added to the PES header to eliminate the mismatch. When the mismatch continues to occur a certain number of times, for example, in case of MPEG2-AAC, audio information in an ADTS header added to the PES header is rewritten in PES packet units and audio volume is decreased in packet units.

Description

本発明は、ビデオやオーディオ等の多重化された圧縮信号を処理するデジタル放送受信装置に関し、特にトランスポートストリームを処理する手段に関する。   The present invention relates to a digital broadcast receiving apparatus that processes multiplexed compressed signals such as video and audio, and more particularly to means for processing a transport stream.

近年、テレビのデジタル放送において、ビデオ信号およびオーディオ信号を高能率圧縮符号化する方式としてISO/IEC13818−1で規定されるMPEG2(Moving Picture Experts Group)規格等に準拠する符号化方式が採用されている。MPEG2システムでは、送信側においてビデオ/オーディオ等の素材を符号化し、この符号化されたデータをPES(Packetized Elementary Stream)と呼ばれるパケットに変換する。PESは、PESヘッダとPESペイロードから構成される可変長のパケットであり、PESヘッダにはパケット長やヘッダ長を示す情報やコンディショナル・コーディング情報等が含まれる。デジタル放送規格ではPESを多重化して伝送する形式についてTS(Transport Stream)と呼ばれる188バイトの固定長のパケットへ分割されて送信される形式が定義されている。これらTSパケットには4バイトのヘッダ情報が付加され、パケット中の誤り情報、PESの先頭を示すフラグ、パケット識別情報(PID:Packet Identification)やアダプテーションフィールド/ペイロードの有無を示す情報が付加される。
受信側では、送信側から伝送されたトランスポートストリームのヘッダ情報を解析し、伝送路におけるデータ化けによるエラーパケットに対して破棄等の処理を行う。その後、ユーザが視聴を希望したプログラムをPIDにより識別し、ビデオPES、およびオーディオPESが挿入されたTSパケットの分離を行い、ビデオ、およびオーディオのPESパケットは、デコーダ部によって復号される(例えば、特許文献1)。
2. Description of the Related Art In recent years, in television digital broadcasting, an encoding method compliant with the MPEG2 (Moving Picture Experts Group) standard defined by ISO / IEC13818-1 has been adopted as a method for highly efficient compression encoding of video signals and audio signals. Yes. In the MPEG2 system, on the transmission side, a material such as video / audio is encoded, and the encoded data is converted into a packet called PES (Packetized Elementary Stream). The PES is a variable-length packet composed of a PES header and a PES payload, and the PES header includes information indicating the packet length and the header length, conditional coding information, and the like. In the digital broadcasting standard, a format in which a PES is multiplexed and transmitted is divided into 188-byte fixed-length packets called TS (Transport Stream) and transmitted. 4-byte header information is added to these TS packets, and error information in the packet, a flag indicating the head of the PES, packet identification information (PID: Packet Identification) and information indicating the presence / absence of an adaptation field / payload are added. .
On the receiving side, the header information of the transport stream transmitted from the transmitting side is analyzed, and processing such as discarding is performed on error packets due to data corruption in the transmission path. Thereafter, a program that the user desires to view is identified by PID, and TS packets into which video PES and audio PES are inserted are separated, and video and audio PES packets are decoded by a decoder unit (for example, Patent Document 1).

特開2001−111610号公報JP 2001-111610 A

これら一連の処理において、特に無線回線のような伝送誤りが発生しやすい伝送路を使用したシステムにおいては、TSパケットのデータ化けや欠落などが頻発するとデータ復号時に映像音声ノイズとなって品質低下を生じ、特にオーディオに関して異音、特に金属音が発生すると著しい不快感を与える。
より、具体的には、伝送路の途中で発生したPESヘッダのデータ化けによってPESヘッダのLength情報と実際にデコーダへ転送するサイズ情報との間に不整合が発生すると、オーディオのデコード処理時に品位が低下する。例えばPES Lengthの値が化けて大きな値に変化した場合に、オーディオ以外のデータのデコード処理を行う事が考えられる。
またオーディオのデコード部がPESヘッダのサーチを行った際に、PES Lengthとデータサイズの整合が取れないために、PESヘッダサーチを繰り返し継続する事などが考えられる。
そこで、本発明においては、従来の課題を解決するために、PESヘッダのデータ化けによってPESヘッダに付加されるPESのサイズ情報と、デコーダへ転送するPESのデータサイズとの不整合を防ぐトランスポートデコーダを提供する。
In these series of processes, especially in systems that use transmission lines that are prone to transmission errors, such as wireless lines, TS packet data corruption and omissions occur frequently, resulting in video and audio noise during data decoding that degrades quality. If there is an abnormal sound, particularly a metallic sound, particularly with respect to audio, it causes a significant discomfort.
More specifically, if a mismatch occurs between the Length information in the PES header and the size information that is actually transferred to the decoder due to garbled data in the PES header that occurs in the middle of the transmission path, the quality is reduced during the audio decoding process. Decreases. For example, it may be possible to decode data other than audio when the value of PES Length has changed to a large value.
In addition, when the audio decoding unit searches for the PES header, it may be possible to continue the PES header search repeatedly because the data size cannot be matched with the PES Length.
Therefore, in the present invention, in order to solve the conventional problem, a transport that prevents inconsistency between the size information of the PES added to the PES header due to garbled data of the PES header and the data size of the PES transferred to the decoder A decoder is provided.

トランスポートストリームを解析するデータ処理装置において、トランスポートストリームのヘッダ情報からビデオまたはオーディオのペイロードのサイズを計算する手段と、
PESパケットを解析する解析手段においてPESのヘッダ情報に付加されるPESデータのサイズを計算する手段を備え、ペイロードサイズと前記PESのデータサイズを比較しPESパケットのヘッダ情報を書き替える手段を備える事を特徴とするデジタル放送受信装置である。
また、ペイロードサイズと前記PESのデータサイズを比較してPESパケットのヘッダ情報を書き替える手段において、比較結果が不一致の場合に、その不一致の回数が一定の閾値を超えた場合に、オーディオのPESパケットのヘッダ情報に付加される音量情報を書き替える事を特徴とするデジタル放送受信装置である。
また、トランスポートストリームを処理する手段と、前記トランスポートストリームの出力データをデコードするデータ復号手段を備えたデジタル放送受信装置であって、
前記トランスポートストリームに含まれるPESパケットを解析する解析手段と、解析手段の解析結果に応じてPESパケットのデータを破棄する手段を備える事を特徴とするデジタル放送受信装置である。
In a data processing apparatus for analyzing a transport stream, means for calculating the size of a video or audio payload from the header information of the transport stream;
The analysis means for analyzing the PES packet has means for calculating the size of the PES data added to the header information of the PES, and has means for rewriting the header information of the PES packet by comparing the payload size with the data size of the PES. Is a digital broadcast receiving device.
Further, in the means for rewriting the header information of the PES packet by comparing the payload size and the data size of the PES, if the comparison result does not match and the number of mismatches exceeds a certain threshold, the audio PES The digital broadcast receiving apparatus is characterized in that volume information added to packet header information is rewritten.
Further, a digital broadcast receiving apparatus comprising means for processing a transport stream and data decoding means for decoding output data of the transport stream,
An apparatus for analyzing a PES packet included in the transport stream, and a means for discarding data of the PES packet according to the analysis result of the analyzing means.

本発明によれば、伝送路の途中で発生したPESヘッダのデータ化けに対して、PESヘッダのLength情報と、実際にデコーダへ転送するデータサイズの間に不整合が発生しないため、オーディオの品位の低下を軽減することが出来る。 According to the present invention, there is no inconsistency between Length information of the PES header and the data size actually transferred to the decoder for the garbled data of the PES header generated in the middle of the transmission path. Can be reduced.

またTSヘッダ、およびPESヘッダを解析して、PESパケット単位でヘッダ情報の書き替えを行うため、伝送経路でのデータ化け、データ欠損に応じて、PESパケット単位で音声レベル等を調整する事が可能になる。   Also, since the TS header and PES header are analyzed and the header information is rewritten in units of PES packets, it is possible to adjust the audio level etc. in units of PES packets according to garbled data in the transmission path or data loss. It becomes possible.

本発明の一実施の形態に関わるデジタル放送受信装置の構成を示すブロック図The block diagram which shows the structure of the digital broadcast receiver concerning one embodiment of this invention 図1のTS処理部を示すブロック図Block diagram showing the TS processing unit of FIG. 図2のTS解析部の動作を説明するための図The figure for demonstrating operation | movement of the TS analysis part of FIG. 図2のTS解析部の動作を説明するためのフローチャートFlowchart for explaining the operation of the TS analysis unit in FIG. 図2のTS解析部の動作を説明するためのフローチャートFlowchart for explaining the operation of the TS analysis unit in FIG. 図2のTS解析部の動作を説明するためのフローチャートFlowchart for explaining the operation of the TS analysis unit in FIG. 本発明の一実施の形態2に関わるデジタル放送受信装置の構成を示すブロック図The block diagram which shows the structure of the digital broadcast receiver concerning Embodiment 2 of this invention. 図7のTS処理部を示すブロック図Block diagram showing the TS processing section of FIG. 図7のTS解析部の動作を説明するためのフローチャートFlowchart for explaining the operation of the TS analysis unit in FIG. 図7のTS解析部の動作を説明するためのフローチャートFlowchart for explaining the operation of the TS analysis unit in FIG.

(実施の形態1)
以下、本発明に係わる実施例について図面を参照して説明する。図1は、本発明を適用したデジタル放送受信装置の実施の形態1を示している。本実施例におけるデジタル放送受信装置は、チューナ/復調部101と、TSヘッダ解析部102と、PIDフィルタ部103と、TS処理部104と、APESバッファ105と、VPESバッファ106と、AUDIOデコード部107とVIDEOデコード部108と、PESバッファ制御部109で構成される。
(Embodiment 1)
Embodiments according to the present invention will be described below with reference to the drawings. FIG. 1 shows Embodiment 1 of a digital broadcast receiving apparatus to which the present invention is applied. The digital broadcast receiving apparatus according to this embodiment includes a tuner / demodulator 101, a TS header analyzer 102, a PID filter 103, a TS processor 104, an APES buffer 105, a VPES buffer 106, and an AUDIO decoder 107. And a video decoding unit 108 and a PES buffer control unit 109.

以下、デジタル信号の流れに沿って本実施例の説明を行う。チューナ復調部101は、アンテナで受信された電波から特定の搬送波IFを選局し、復調等の処理を行いトランスポートストリームTS1を出力する。   Hereinafter, this embodiment will be described along the flow of digital signals. The tuner demodulation unit 101 selects a specific carrier IF from the radio wave received by the antenna, performs a process such as demodulation, and outputs a transport stream TS1.

TSヘッダ解析部102は、TSヘッダの同期バイトの検出を行い、188バイト単位でデータの入力を行う。また、TSヘッダ解析部102は、TSヘッダ情報の解析を行って、Transport Error Indicatorを識別してエラーパケットの破棄を行い、TS2を出力する。
PIDフィルタ部103は、指定したオーディオ、ビデオのPIDの値でフィルタリングを行い、オーディオのトランスポートストリームと、ビデオのトランスポートストリーム、等のフィルタリングを行い、トランスポートストリームTS3を出力する。
TS処理部104は、TS3を入力し、TSのヘッダ情報に含まれるPayload_unit_start_indicatorの情報からPESパケットの先頭バイトの識別を行い、Adaptation_field_controlの情報からアダプテーションフィールド/ペイロードのサイズの解析を行って、TSからPESを抽出しオーディオのPES信号APESと、ビデオのPES信号VPESを出力する。
The TS header analysis unit 102 detects a synchronization byte of the TS header and inputs data in units of 188 bytes. In addition, the TS header analysis unit 102 analyzes TS header information, identifies a Transport Error Indicator, discards an error packet, and outputs TS2.
The PID filter unit 103 performs filtering based on the designated audio and video PID values, performs filtering of an audio transport stream, a video transport stream, and the like, and outputs a transport stream TS3.
TS processing section 104 receives TS3, identifies the first byte of the PES packet from the Payload_unit_start_indicator information included in the header information of TS, analyzes the size of the adaptation field / payload from the information of Adaptation_field_control, and from TS Extract PES and output audio PES signal APES and video PES signal VPES.

APESバッファ105、およびVPESバッファ106は、オーディオ、ビデオのPES信号APES、VPESを入力し、一定量バッファリングする事が可能なメモリバッファである。これらのバッファは、PESパケットの規格上のサイズが最大64Kバイトのため、64Kバイト以上のサイズ確保が望ましい。   The APES buffer 105 and the VPES buffer 106 are memory buffers that can receive audio and video PES signals APES and VPES and can buffer a certain amount. Since these buffers have a maximum size of 64 Kbytes according to the standard of PES packets, it is desirable to secure a size of 64 Kbytes or more.

AUDIOデコード部107、およびVIDEOデコード部108は、オーディオのPES信号、およびビデオのPES信号を入力して、ESの抽出処理を行い、オーディオ、ビデオのデコード処理を行う。
PESバッファ制御部109は、TS処理部104とAUDIOデコード部107、およびVIDEOデコード部108と通信を行い、APESバッファ105、VPESバッファ106のデータ書き込みアドレス(ライトポインタ)と、データ読み出しアドレス(リードポインタ)を制御する。
The AUDIO decoding unit 107 and the VIDEO decoding unit 108 input an audio PES signal and a video PES signal, perform ES extraction processing, and perform audio and video decoding processing.
The PES buffer control unit 109 communicates with the TS processing unit 104, the AUDIO decoding unit 107, and the VIDEO decoding unit 108, and writes data write addresses (write pointers) and data read addresses (read pointers) of the APES buffer 105 and the VPES buffer 106. ) To control.

続いてTS処理部104からAUDIOデコード部107までの信号処理をより詳細に説明する。本実施の形態は、オーディオの処理例を説明しているが、ビデオの処理であっても構わない。
図2は、図1のTS処理部104、APESバッファ部105、AUDIOデコード部107とPESバッファ制御部109とを詳細に書いた構成図である。
Next, signal processing from the TS processing unit 104 to the AUDIO decoding unit 107 will be described in more detail. Although the present embodiment describes an example of audio processing, it may be video processing.
FIG. 2 is a block diagram illustrating in detail the TS processing unit 104, APES buffer unit 105, AUDIO decoding unit 107, and PES buffer control unit 109 of FIG.

TS処理部104は、TSバッファ301と、TS解析部302で構成される。TSバッファ301は、TS解析部302がTSヘッダ、およびPESヘッダの解析を行い、トランスポートストリームからオーディオのペイロードを抽出するまでの期間、データバッファリングするためのメモリである。   The TS processing unit 104 includes a TS buffer 301 and a TS analysis unit 302. The TS buffer 301 is a memory for data buffering until the TS analysis unit 302 analyzes the TS header and the PES header and extracts the audio payload from the transport stream.

TS解析部302は、TSから抽出したペイロードのデータサイズからAPESバッファのライトポインタWPの計算を行い、PESバッファ制御部109へWPを送信する。   The TS analysis unit 302 calculates the APES buffer write pointer WP from the payload data size extracted from the TS, and transmits the WP to the PES buffer control unit 109.

PESバッファ制御部109は、TS解析部302から受けたAPESバッファのライトポインタWPをAUDIOデコード部107へと送信する。
AUDIOデコード部107は、APESバッファのライトポインタを受け取ると、APESバッファのリードポインタRPを更新して、オーディオのデータを取り込むと同時に、PESバッファ制御部109へリードポインタRPを送信する。
The PES buffer control unit 109 transmits the APES buffer write pointer WP received from the TS analysis unit 302 to the AUDIO decoding unit 107.
Upon receiving the APES buffer write pointer, the AUDIO decoding unit 107 updates the APES buffer read pointer RP, captures audio data, and simultaneously transmits the read pointer RP to the PES buffer control unit 109.

PESバッファ制御部109は、ライトポインタWPとリードポインタRPの差分から、APESバッファ105の空き残量のチェック等を行い、ライトポインタWPの制御を行う。例えば、APESバッファ105をリングバッファとして使用する場合、PESバッファ制御部109は、ライトポインタWPとリードポインタRPからAPESバッファ105の空き残量=RP−WPの計算を行い、空き残量が一定の閾値以下となった場合にAPESバッファ105のオーバーフローと判断してライトポインタWPの更新を停止する。   The PES buffer control unit 109 checks the remaining free space of the APES buffer 105 based on the difference between the write pointer WP and the read pointer RP, and controls the write pointer WP. For example, when the APES buffer 105 is used as a ring buffer, the PES buffer control unit 109 calculates the remaining free space of the APES buffer 105 = RP-WP from the write pointer WP and the read pointer RP, and the free remaining amount is constant. When the value is equal to or less than the threshold, it is determined that the APES buffer 105 has overflowed, and updating of the write pointer WP is stopped.

図3に、TSバッファ301に入力されるTSパケットと、APESバッファ105のライトポインタWPとの関係を示す。図3は、2つのTSパケットが入力された場合を示した図であるが、1つ目のパケットにPESヘッダが含まれているため、Payload_unit_start_indicator(PUSI)が1を示しており、2つ目のパケットはPESの続きであるため、PUSIは0となっている。
図3の例では、PESヘッダに示されるPES Lengthは300バイトであり、1つ目のTSパケットは184バイトのペイロードを含み、2つ目のパケットは116バイトのペイロードを含む。これら2パケットのペイロードの合計サイズは300バイトとなり、図3の例では2つのTSパケットで1つのPESパケットを構成している。
FIG. 3 shows the relationship between the TS packet input to the TS buffer 301 and the write pointer WP of the APES buffer 105. FIG. 3 is a diagram showing a case where two TS packets are input. Since the PES header is included in the first packet, Payload_unit_start_indicator (PUSI) indicates 1, and the second Since this packet is a continuation of PES, PUSI is 0.
In the example of FIG. 3, the PES Length shown in the PES header is 300 bytes, the first TS packet includes a 184-byte payload, and the second packet includes a 116-byte payload. The total size of the payloads of these two packets is 300 bytes. In the example of FIG. 3, one PES packet is composed of two TS packets.

本実施例では、図3に示す2パケットを入力した場合、TS解析部302は、1つ目のTSパケットを入力するとAPESバッファのライトポインタWPを184更新し、2つ目のパケットを入力するとライトポインタを116更新する。   In this embodiment, when two packets shown in FIG. 3 are input, the TS analyzer 302 updates the write pointer WP of the APES buffer by 184 when the first TS packet is input, and inputs the second packet. The write pointer is updated 116.

続いて本発明に関わるTS解析部302のデータ処理の内容について説明する。図4は、入力されたオーディオのトランスポートストリームのPESパケット先頭を検出する処理例を示したフローチャートである。
図5は、TS解析部302がTSを解析してAPESバッファへ転送したPESの転送サイズ(=WPライトポインタ)と、PESヘッダに付加されているPES のサイズ情報との間に不整合が生じた場合の処理例を示したフローチャートである。
まず、図4のステップ1では、TSヘッダ情報を解析しTSにPESパケットの先頭が含まれているかをチェックする。MPEG2の規格ではPayload_unit_start_indicator(以下PUSI)のフラグが1の場合にPESパケットの先頭を示すことが決められている。TS解析部302は、TSパケットのヘッダ情報のPUSI=1を検出すると、該当TSにPESパケットの先頭が含まれていると判断しステップ2へ進む。
Next, contents of data processing of the TS analysis unit 302 according to the present invention will be described. FIG. 4 is a flowchart showing an example of processing for detecting the head of a PES packet in an input audio transport stream.
FIG. 5 shows that there is a mismatch between the PES transfer size (= WP write pointer) that the TS analysis unit 302 analyzed the TS and transferred to the APES buffer, and the PES size information added to the PES header. It is the flowchart which showed the processing example in the case of a case.
First, in step 1 of FIG. 4, TS header information is analyzed to check whether the head of the PES packet is included in TS. In the MPEG2 standard, when the Payload_unit_start_indicator (hereinafter PUSI) flag is 1, it is determined to indicate the head of the PES packet. When the TS analysis unit 302 detects PUSI = 1 in the header information of the TS packet, the TS analysis unit 302 determines that the head of the PES packet is included in the corresponding TS, and proceeds to step 2.

ステップ2では、PESヘッダがオーディオのPESパケットの先頭であるかを判断する。MPEG2の規格ではpacket_start_code_prefix == 0x000001、かつstream_id==0xC*の場合にオーディオのPESパケットを含む事が定められており、これらの条件を共に満たした場合にオーディオのPESパケットの先頭位置と判断し、ステップ3へ進む。
ステップ3では、PESヘッダのPES_packet_length情報からPESのサイズ情報を抽出して保持する。PESパケットのデータサイズは可変であり、PESヘッダに2バイトのサイズ情報を付加する事が定められており、PESパケットのサイズは最大64Kバイトである。
上記、ステップ1〜ステップ3の条件を全て満たした場合に、TS解析部302は、APESバッファ105へ出力したオーディオPESデータのトータルサイズのカウントアップを開始する。
In step 2, it is determined whether the PES header is the head of an audio PES packet. The MPEG2 standard stipulates that an audio PES packet should be included when packet_start_code_prefix == 0x000001 and stream_id == 0xC *. If both of these conditions are met, the audio PES packet is determined to be the start position. Go to step 3.
In step 3, the PES size information is extracted from the PES_packet_length information of the PES header and held. The data size of the PES packet is variable, and it is determined that 2-byte size information is added to the PES header. The maximum size of the PES packet is 64 Kbytes.
When all the above conditions of Step 1 to Step 3 are satisfied, the TS analysis unit 302 starts counting up the total size of the audio PES data output to the APES buffer 105.

TS解析部302は、入力される全てのTSパケットに対してステップ1〜ステップ3の処理手順に従って、PESパケットの先頭が含まれているかのチェックを行い、次のPESパケットの先頭が含まれていると判断した場合は、APESバッファ105へ出力したPESデータの転送サイズのカウントアップを停止する。
図5、図6は、上記PESの転送サイズと、PES Length情報との間に不整合が生じた場合の処理の例を示したフローチャートである。
前記ステップ3で保持したPESのパケットサイズと、APESバッファ105へ出力したPESのトータルサイズが不一致の場合、TS解析部302は、APESバッファ105上で、PESヘッダ情報PES_packet_lengthをAPESバッファに実際に出力したペイロードの転送サイズに書き替える(図5)。
The TS analysis unit 302 checks whether or not the head of the next PES packet is included by checking whether or not the head of the PES packet is included according to the processing procedure of Step 1 to Step 3 for all the TS packets that are input. If it is determined that the transfer size of the PES data output to the APES buffer 105 is counted, the transfer size count of the PES data is stopped.
FIG. 5 and FIG. 6 are flowcharts showing an example of processing when a mismatch occurs between the PES transfer size and the PES Length information.
If the PES packet size held in step 3 and the total size of the PES output to the APES buffer 105 do not match, the TS analysis unit 302 actually outputs the PES header information PES_packet_length to the APES buffer on the APES buffer 105. The transfer size of the payload is rewritten (FIG. 5).

さらに、上記のAPESバッファへの転送サイズとPESヘッダのPES Length情報の不整合がN回以上続いた場合には、伝送路におけるデータ化けが頻発しておりAUDIOデコード処理を行うと異音が発生すると判断して、PESヘッダに含まれるAUDIOの音量情報を書換えて音声をミュートする。例えば、MPEG2−AACの場合、ADTSヘッダに付加されるAUDIOのゲイン情報を書き替えて音量をゼロにする等の処理が考えられる(図6)。
以上のような構成により、本発明のデジタル放送受信装置においては、伝送路の途中で発生したPESヘッダのデータ化けに対して、PESヘッダのLength情報と、実際にデコーダへ転送するデータサイズの間に不整合が発生しないため、オーディオの品位の低下を軽減することが出来る。
Furthermore, if the transfer size to the APES buffer and PES Length information in the PES header continue to be mismatched N times or more, data corruption occurs frequently in the transmission path, and abnormal noise occurs when AUDIO decoding is performed. Then, the audio volume information included in the PES header is rewritten and the audio is muted. For example, in the case of MPEG2-AAC, processing such as rewriting the gain information of AUDIO added to the ADTS header to make the volume zero (FIG. 6) can be considered.
With the configuration as described above, in the digital broadcast receiving apparatus of the present invention, between the PES header data garble that occurred in the middle of the transmission path, the length information of the PES header and the data size actually transferred to the decoder Inconsistency does not occur in the audio signal, so that the deterioration of the audio quality can be reduced.

またTSヘッダ、およびPESヘッダを解析して、PESパケット単位でヘッダ情報の書き替えを行うため、伝送経路でのデータ化け、データ欠損に応じて、PESパケット単位で音声レベル等を調整する事が可能になる。   Also, since the TS header and PES header are analyzed and the header information is rewritten in units of PES packets, it is possible to adjust the audio level etc. in units of PES packets according to garbled data in the transmission path or data loss. It becomes possible.

(実施の形態2)
次に、本発明を適用したデジタル放送受信装置の実施の形態2について、図7に示す。
図7は、構成例1における図2の部分に対して、実施の形態2の場合を示したものであり、TS解析部402と、PESバッファ制御部409を除く全ての構成は実施の形態1と同じため省略する。またPESのヘッダを検出し、APESへ出力するPESデータのカウント方法も実施の形態1と同じである。
以下に、実施の形態2における処理を説明する。TS解析部402は、APESバッファのライトポインタWP、およびAPESバッファのバウンダリポインタBPをPESバッファ制御部409へ出力する。
この時、TS解析部402は、PESパケットの転送サイズがPES Lengthに到達した場合には、バウンダリポインタBPにライトポインタWPを入力し、転送サイズがPES Lengthに到達しない場合、バウンダリポインタBPにライトポインタWPを入力しない。
PESバッファ制御部409は、TS解析部402から受けバウンダリポインタBPをAUDIOデコード部107へと送信する。AUDIOデコード部107はAPESバッファのバウンダリポインタを受け取ると、APESバッファのデコード処理を行ってリードポインタRPを更新し、PESバッファ制御部へ通知する。
PESバッファ制御部409は、ライトリポインタWPとリードポインタRPの差分から、APESバッファ105の空き残量のチェック等を行い、バウンダリポインタBPの更新等の制御を行う。
(Embodiment 2)
Next, Embodiment 2 of the digital broadcast receiving apparatus to which the present invention is applied is shown in FIG.
FIG. 7 shows the case of the second embodiment with respect to the part of FIG. 2 in the configuration example 1, and all the configurations except the TS analysis unit 402 and the PES buffer control unit 409 are the same as those of the first embodiment. Since it is the same as that, it is omitted. The PES data count method for detecting the PES header and outputting it to APES is the same as in the first embodiment.
Hereinafter, the processing in the second embodiment will be described. The TS analysis unit 402 outputs the APES buffer write pointer WP and the APES buffer boundary pointer BP to the PES buffer control unit 409.
At this time, the TS analysis unit 402 inputs the write pointer WP to the boundary pointer BP when the transfer size of the PES packet reaches the PES Length, and writes the write to the boundary pointer BP when the transfer size does not reach the PES Length. Do not input the pointer WP.
The PES buffer control unit 409 transmits the reception boundary pointer BP from the TS analysis unit 402 to the AUDIO decoding unit 107. Upon receiving the APES buffer boundary pointer, the AUDIO decoding unit 107 performs APES buffer decoding processing, updates the read pointer RP, and notifies the PES buffer control unit.
The PES buffer control unit 409 checks the remaining free space of the APES buffer 105 based on the difference between the write re-pointer WP and the read pointer RP, and controls the update of the boundary pointer BP.

すなわち、バウンダリポインタは、PES Lengthに達しないPESパケットを破棄するために使われるポインタであり、実施の形態2では、PESのLengthに到達せずに次のPESの先頭を含むTSパケットが入力された場合には、処理中のPESパケットはAPESバッファへ出力されるが、バウンダリポインタが更新されないため次のPESパケットに上書きされて破棄される。
図8に、TSバッファ301に入力されるTSパケットと、TS解析部104が出力するライトポインタWPと、TS解析部104へ入力されるバウンダリポインタBPの関係を示す。図8は、図3と同様に2つのTSパケットが入力された場合の図であり、PESヘッダに付加されるPES Lengthは300バイトであり、1つ目のTSパケットは184バイトのペイロードを含み、2つ目のパケットは116バイトのペイロードを含む。
That is, the boundary pointer is a pointer used to discard a PES packet that does not reach the PES Length. In the second embodiment, a TS packet including the head of the next PES is input without reaching the PES Length. In this case, the PES packet being processed is output to the APES buffer. However, since the boundary pointer is not updated, the next PES packet is overwritten and discarded.
FIG. 8 shows the relationship between the TS packet input to the TS buffer 301, the write pointer WP output from the TS analysis unit 104, and the boundary pointer BP input to the TS analysis unit 104. FIG. 8 is a diagram in the case where two TS packets are input as in FIG. 3, the PES Length added to the PES header is 300 bytes, and the first TS packet includes a payload of 184 bytes. The second packet contains a 116-byte payload.

本実施例では、図8に示す2パケットを入力した場合、TS解析部402は、1つ目のTSパケットを入力するとAPESバッファのライトポインタWPを184更新し、バウンダリポインタは0のままである。2つ目のパケットを入力するとライトポインタを116更新し、ペイロードのサイズがPES Lengthの300バイトに達したため、バウンダリポインタにライトポインタの値300(=184+116)を入力する。   In this embodiment, when two packets shown in FIG. 8 are input, the TS analysis unit 402 updates the write pointer WP of the APES buffer 184 when the first TS packet is input, and the boundary pointer remains 0. . When the second packet is input, the write pointer is updated by 116, and since the payload size reaches 300 bytes of the PES Length, the write pointer value 300 (= 184 + 116) is input to the boundary pointer.

続いてPESのLengthとペイロードの転送サイズが一致しない2つのケースについて図9、図10に示す。 図9はAPESバッファへ転送されるPESのデータが、PESのLengthよりも大きい場合で、図10は、APESバッファへ転送されるPESのデータがPESのLengthよりも少ない場合である。   Next, FIG. 9 and FIG. 10 show two cases where the PES Length and the payload transfer size do not match. FIG. 9 shows a case where the PES data transferred to the APES buffer is larger than the PES Length, and FIG. 10 shows a case where the PES data transferred to the APES buffer is smaller than the PES Length.

本実施例では、図9に示す2パケットを入力した場合、TS解析部402は、1つ目のTSパケットを入力するとAPESバッファのライトポインタWPを184更新し、バウンダリポインタは0のままである。2つ目のパケットを入力するとライトポインタを116更新し、ペイロードのサイズがPES Lengthの300バイトに達したため、バウンダリポインタにライトポインタの値300(=184+116)を入力する。したがってPESのデータ4バイトは転送しない。   In this embodiment, when the two packets shown in FIG. 9 are input, the TS analysis unit 402 updates the write pointer WP of the APES buffer by 184 when the first TS packet is input, and the boundary pointer remains 0. . When the second packet is input, the write pointer is updated by 116, and since the payload size reaches 300 bytes of the PES Length, the write pointer value 300 (= 184 + 116) is input to the boundary pointer. Therefore, 4 bytes of PES data are not transferred.

図10に示す2パケットを入力した場合、TS解析部302は、1つ目のTSパケットを入力するとAPESバッファのライトポインタWPを100更新し、バウンダリポインタは0のままである。2つ目のパケットを入力するとPUSI=1でありPESパケットの先頭と判断してライトポインタの100を0にリセットする。従って、PES Lengthに達しないPESパケットは破棄される。   When the two packets shown in FIG. 10 are input, when the first TS packet is input, the TS analysis unit 302 updates the write pointer WP of the APES buffer by 100 and the boundary pointer remains 0. When the second packet is input, PUSI = 1 and it is determined that the PES packet starts, and the write pointer 100 is reset to zero. Therefore, PES packets that do not reach the PES Length are discarded.

以上のような構成により、本発明のデジタル放送受信装置においては、PESのLengthに到達せずに次のPESの先頭を含むTSパケットが入力された場合には、処理中のPESパケットはAPESバッファへ出力されるが、バウンダリポインタが更新されないため次のPESパケットに上書きされて破棄されるため、伝送路の途中で発生したPESヘッダのデータ化けに対して、PESヘッダのLength情報と、実際にデコーダへ転送するデータサイズの間に不整合が発生しないため、オーディオの品位の低下を軽減することが出来る。   With the configuration as described above, in the digital broadcast receiving apparatus of the present invention, when a TS packet including the head of the next PES is input without reaching the length of the PES, the PES packet being processed is displayed as an APES buffer. However, because the boundary pointer is not updated, the next PES packet is overwritten and discarded. Since no mismatch occurs between the data sizes transferred to the decoder, it is possible to reduce the deterioration of the audio quality.

本発明に係わるトランスポートストリーム処理装置は、トランスポートストリームを受信するデジタル放送受信装置、およびトランスポートストリームを記録/再生するハードディスク処理装置や、ネットワーク処理装置等に利用する事ができる。   The transport stream processing apparatus according to the present invention can be used in a digital broadcast receiving apparatus that receives a transport stream, a hard disk processing apparatus that records / reproduces a transport stream, a network processing apparatus, and the like.

101 チューナ/復調部
102 TSヘッダ解析部
103 PIDフィルタ部
104 TS処理部
105 APESバッファ
106 VPESバッファ
107 AUDIOデコード部
108 VIDEOデコード部
109 PESバッファ制御部
301 TSバッファ
302 TS解析部
101 tuner / demodulation unit 102 TS header analysis unit 103 PID filter unit 104 TS processing unit 105 APES buffer 106 VPES buffer 107 AUDIO decode unit 108 VIDEO decode unit 109 PES buffer control unit 301 TS buffer 302 TS analysis unit

Claims (4)

トランスポートストリームを解析し処理するデータ処理装置と、前記データ処理装置の出力データをデコードするデータ復号手段を備えたデジタル放送受信装置であって、
前記トランスポートストリームに含まれるPESパケットを解析する解析手段と、
前記解析手段の解析結果に応じてPESパケットのデータを書き替える手段
を備える事を特徴とするデジタル放送受信装置。
A digital broadcast receiving device comprising a data processing device for analyzing and processing a transport stream, and a data decoding means for decoding output data of the data processing device,
Analyzing means for analyzing the PES packet included in the transport stream;
A digital broadcast receiving apparatus comprising means for rewriting data of a PES packet in accordance with an analysis result of the analysis means.
前記トランスポートストリームを解析するデータ処理装置において、
トランスポートストリームのヘッダ情報からビデオまたはオーディオのペイロードのサイズを計算する手段と、
前記PESパケットを解析する解析手段においてPESのヘッダ情報に付加されるPESデータのサイズを抽出する手段を備え、
前記ペイロードサイズと前記PESのデータサイズを比較しPESパケットのヘッダ情報を書き替える手段を備える事を特徴とする請求項1に記載のデジタル放送受信装置。
In the data processing device for analyzing the transport stream,
Means for calculating the size of the video or audio payload from the header information of the transport stream;
In the analysis means for analyzing the PES packet, comprising means for extracting the size of the PES data added to the header information of the PES,
2. The digital broadcast receiving apparatus according to claim 1, further comprising means for rewriting header information of a PES packet by comparing the payload size with the data size of the PES.
前記ペイロードサイズと前記PESのデータサイズを比較してPESパケットのヘッダ情報を書き替える手段において、比較結果が不一致の場合に、その不一致の回数が一定の閾値を超えた場合にオーディオのPESパケットのヘッダ情報に付加される音量情報を書き替える事を特徴とする請求項2に記載のデジタル放送受信装置。 In the means for rewriting the header information of the PES packet by comparing the payload size with the data size of the PES, if the comparison result does not match, and the number of mismatches exceeds a certain threshold, the audio PES packet The digital broadcast receiving apparatus according to claim 2, wherein the volume information added to the header information is rewritten. トランスポートストリームを処理する手段と、前記トランスポートストリームの出力データをデコードするデータ復号手段を備えたデジタル放送受信装置であって、
前記トランスポートストリームに含まれるPESパケットを解析する解析手段と、
前記解析手段の解析結果に応じてPESパケットのデータを破棄する手段を備える事を特徴とするデジタル放送受信装置。
A digital broadcast receiving apparatus comprising means for processing a transport stream and data decoding means for decoding output data of the transport stream,
Analyzing means for analyzing the PES packet included in the transport stream;
A digital broadcast receiving apparatus comprising means for discarding data of a PES packet according to an analysis result of the analysis means.
JP2010091886A 2010-04-13 2010-04-13 Digital broadcasting receiver Pending JP2011223427A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010091886A JP2011223427A (en) 2010-04-13 2010-04-13 Digital broadcasting receiver

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010091886A JP2011223427A (en) 2010-04-13 2010-04-13 Digital broadcasting receiver

Publications (1)

Publication Number Publication Date
JP2011223427A true JP2011223427A (en) 2011-11-04

Family

ID=45039775

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010091886A Pending JP2011223427A (en) 2010-04-13 2010-04-13 Digital broadcasting receiver

Country Status (1)

Country Link
JP (1) JP2011223427A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018078555A (en) * 2016-10-31 2018-05-17 日本放送協会 Re-multiplexer, transmitter, receiver, chip, and program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018078555A (en) * 2016-10-31 2018-05-17 日本放送協会 Re-multiplexer, transmitter, receiver, chip, and program
JP7089857B2 (en) 2016-10-31 2022-06-23 日本放送協会 Remultiplexing equipment, transmitters, receivers, chips, and programs

Similar Documents

Publication Publication Date Title
US9930570B2 (en) Method and apparatus for packet header compression
JP3897822B2 (en) Apparatus and method for transmitting IP data through a satellite network
EP2086238B1 (en) Method of transmission of digital images and reception of transport packets
US20080259962A1 (en) Contents reproducing apparatus
EP2329654B1 (en) Devices of digital video reception and output having error detection and concealment circuitry and techniques
US20190200055A1 (en) Packet converter
KR20070075549A (en) Digital broadcasting system and processing method
US10491944B2 (en) Decoding device, reception device, transmission device, transmission/reception system, decoding method, and storage medium having decoding program stored therein
JP2008283472A (en) Stream reproducing device
EP2486683B1 (en) A digital receiver and corresponding digital transmission system server
JP4875451B2 (en) Digital data receiver
US8599933B2 (en) Robust PID filtering for DVB-H
EP1662484B1 (en) Method and apparatus for processing asynchronous audio stream
JP2011223427A (en) Digital broadcasting receiver
EP2667600A1 (en) Digital receiving device
JP2023028142A (en) Transmitting apparatus, receiving apparatus, and program
JP5566277B2 (en) Multiple broadcast receiver
US8085663B2 (en) Data processing apparatus and data processing method
KR101703512B1 (en) Method and Apparatus for Transmitting Additional Information Using Null Packet in Video Coding System
JP2013207722A (en) Stream repairing device and stream repairing method
JP2009284353A (en) Receiver and receiving method
EP2490356A1 (en) Multiplex broadcasting receiver
JP2004254084A (en) Digital broadcast receiver and receiving method as well as reproducer and reproducing method
KR20100007468A (en) Method and apparatus for handling an error on data during channel decoding