[go: up one dir, main page]

JP3885068B2 - Digital data receiving apparatus, digital data receiving method, and computer program - Google Patents

Digital data receiving apparatus, digital data receiving method, and computer program Download PDF

Info

Publication number
JP3885068B2
JP3885068B2 JP2004186667A JP2004186667A JP3885068B2 JP 3885068 B2 JP3885068 B2 JP 3885068B2 JP 2004186667 A JP2004186667 A JP 2004186667A JP 2004186667 A JP2004186667 A JP 2004186667A JP 3885068 B2 JP3885068 B2 JP 3885068B2
Authority
JP
Japan
Prior art keywords
stream
packet
pcr
multiplexed
mpeg2ts
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.)
Expired - Fee Related
Application number
JP2004186667A
Other languages
Japanese (ja)
Other versions
JP2005057733A (en
Inventor
俊 桐原
範之 芦ヶ原
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2004186667A priority Critical patent/JP3885068B2/en
Publication of JP2005057733A publication Critical patent/JP2005057733A/en
Application granted granted Critical
Publication of JP3885068B2 publication Critical patent/JP3885068B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

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/4347Demultiplexing of several 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/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/236Assembling of a multiplex stream, e.g. transport stream, by combining a video stream with other content or additional data, e.g. inserting a URL [Uniform Resource Locator] into a video stream, multiplexing software data into a video stream; Remultiplexing of multiplex streams; Insertion of stuffing bits into the multiplex stream, e.g. to obtain a constant bit-rate; Assembling of a packetised elementary stream
    • H04N21/23614Multiplexing of additional data 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/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/236Assembling of a multiplex stream, e.g. transport stream, by combining a video stream with other content or additional data, e.g. inserting a URL [Uniform Resource Locator] into a video stream, multiplexing software data into a video stream; Remultiplexing of multiplex streams; Insertion of stuffing bits into the multiplex stream, e.g. to obtain a constant bit-rate; Assembling of a packetised elementary stream
    • H04N21/2365Multiplexing of several 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/4344Remultiplexing of multiplex streams, e.g. by modifying time stamps or remapping the packet identifiers
    • 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/4348Demultiplexing of additional data and video streams

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Television Systems (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Time-Division Multiplex Systems (AREA)

Description

本発明は、デジタルデータ受信装置、デジタルデータ受信方法、及びコンピュータプログラムに関し、特に、MPEG2のストリームと、任意のデータとを、時分割多重するために用いて好適なものである。   The present invention relates to a digital data receiving apparatus, a digital data receiving method, and a computer program, and is particularly suitable for use in time division multiplexing of an MPEG2 stream and arbitrary data.

MPEG2のTS(Transport Stream;トランスポートストリーム)には、PCR(Program Clock Reference)と呼ばれる基準クロック情報(MPEG2のPS(Program Stream;プログラムストリーム)ではSCR(System Clock Reference))と、DTS(Decode Time Stamp)・PTS(Presentation Time Stamp)と呼ばれる復号時刻・表示時刻のプログラム同期情報が含まれている。送信側が想定したプログラムの同期を取るために、受信側はシステムのクロックをPCRに基づいて補正する必要がある。   MPEG2 TS (Transport Stream; Transport Stream) includes reference clock information called PCR (Program Clock Reference) (SCR (System Clock Reference) of MPEG2 (System Stream Reference)) and DTS (DecodeTime). Program synchronization information of decoding time and display time called “Stamp) · PTS (Presentation Time Stamp)” is included. In order to synchronize the program assumed by the transmission side, the reception side needs to correct the system clock based on the PCR.

システムクロックの補正には2種類あり、PCRで示される送信側のクロック値を受信側にセットする補正と、送信側が想定したPCR到着時刻と実際のPCR到着時刻との差を、PCR揺らぎとして検出し、システムクロック周波数を所定の範囲内で上下させて行う補正である。本明細書においては、前者の、送信側のクロック値(PCRカウンタ値)を受信側のクロック値にあわせる操作を「PCR基準時刻補正」と記述し、後者のPCRの揺らぎ補正を「PCR揺らぎ補正」と記述することにする。   There are two types of system clock correction, and the difference between the PCR arrival time assumed by the transmission side and the actual PCR arrival time is detected as a PCR fluctuation. The correction is performed by raising and lowering the system clock frequency within a predetermined range. In the present specification, the former operation for adjusting the clock value on the transmitting side (PCR counter value) to the clock value on the receiving side is described as “PCR reference time correction”, and the latter PCR fluctuation correction is referred to as “PCR fluctuation correction”. ".

受信装置がMPEG2のTS(以下、「MPEG2TS」と表す)を受信したあと、外部入力装置から入力されたJPEGやDV(Digital Video)等の他のデータと同時にMPEG2TSを伝送したいという要求は、入力を管理する入力管理部と、データを処理する信号処理部との間に伝送路が介在する場合に考えられる。しかし、上記のようにMPEG2TSは、PCRの到着時刻によってPCR基準時刻補正や、PCR揺らぎ補正を行うため、MPEG2TSと任意のデータを時分割多重することは容易ではない。ここで任意のデータとは、画像データ、音声データ、制御系データ等である。   After the receiving device receives an MPEG2 TS (hereinafter referred to as “MPEG2TS”), a request to transmit MPEG2 TS simultaneously with other data such as JPEG and DV (Digital Video) input from an external input device is input This is conceivable in the case where a transmission path is interposed between the input management unit that manages the data and the signal processing unit that processes the data. However, since MPEG2TS performs PCR reference time correction and PCR fluctuation correction according to the arrival time of PCR as described above, it is not easy to time-division multiplex MPEG2TS and arbitrary data. Here, the arbitrary data is image data, audio data, control system data, and the like.

一般的には、MPEG2TSをある処理部から別の処理部に転送する場合には、伝送路をMPEG2TSで占有して、MPEG2TSと他のデータの並行転送を行わないことにするか、伝送路を他のデータと共有する場合は、PCRを用いたプログラム同期を行わないことにしてプログラム同期情報を破棄する。従来技術でMPEG2TSと並行にJPEGやDVの情報を送りつつ、PCR等の同期情報も反映させる一般的な手法は、MPEG2TSをいったんデマルチプレックスし、JPEGやDVを含めて再度MPEG2TSにマルチプレックスしなおすというもので、処理量・使用メモリともに大きくなるという問題点があった。   In general, when MPEG2TS is transferred from one processing unit to another processing unit, the transmission path is occupied by MPEG2TS, and MPEG2TS and other data are not transferred in parallel. When sharing with other data, the program synchronization information is discarded by not performing the program synchronization using the PCR. A general technique for reflecting the synchronization information such as PCR while sending JPEG and DV information in parallel with MPEG2TS in the prior art is to demultiplex MPEG2TS once and then multiplex it again to MPEG2TS including JPEG and DV. However, there is a problem that both the processing amount and the memory used increase.

特開2000−183841号公報では、デマルチプレックスせずに複数のTSを1本のTSに多重化する手法を与えているが、MPEG2TSと任意のデータの多重化については触れておらず、任意のデータに対して応用することもできない。   Japanese Patent Laid-Open No. 2000-183841 gives a technique for multiplexing a plurality of TSs into one TS without demultiplexing, but does not mention multiplexing of MPEG2 TS and arbitrary data. It cannot be applied to other data.

特開2000−183841号公報JP 2000-183841 A

本発明は、前述の問題点に鑑みてなされたものであり、MPEG2ストリームとその他のデータを、プログラム同期を保ちつつ並行に転送できるようにすることを目的とする。   The present invention has been made in view of the above-described problems, and an object thereof is to enable MPEG2 streams and other data to be transferred in parallel while maintaining program synchronization.

本発明のデジタルデータ受信装置は、複数のMPEG2トランスポートストリームと、複数の任意のデータを、前記MPEG2トランスポートストリームのデータパケットサイズである188Byteに分割するとともに、前記MPEG2トランスポートストリームのSYNCパターンを、多重化するパケットの内容毎に異なるパターンに変更して付加し、多重化ストリームを作成するマルチプレクサと、前記マルチプレクサにより作成された多重化ストリームを分離するデマルチプレクサとを具備し、前記多重化するパケットの内容毎に異なるSYNCパターンは、あらかじめ定められた各ストリームを示すパターンに、前記MPEG2トランスポートストリームの間に挿入された前記任意のデータのパケット数を加えたパターンであることを特徴とする。   The digital data receiving apparatus of the present invention divides a plurality of MPEG2 transport streams and a plurality of arbitrary data into 188 bytes, which is a data packet size of the MPEG2 transport stream, and converts the SYNC pattern of the MPEG2 transport stream. A multiplexer that changes and adds a different pattern for each content of a packet to be multiplexed to create a multiplexed stream, and a demultiplexer that separates the multiplexed stream created by the multiplexer, and performs the multiplexing The SYNC pattern that differs for each packet content is a pattern obtained by adding the number of packets of the arbitrary data inserted between the MPEG2 transport streams to a predetermined pattern indicating each stream. The features.

本発明のデジタルデータ受信方法は、複数のMPEG2トランスポートストリームと、複数の任意のデータを、前記MPEG2トランスポートストリームのデータパケットサイズである188Byteに分割するとともに、前記MPEG2トランスポートストリームのSYNCパターンを、多重化するパケットの内容毎に異なるパターンに変更して付加し、多重化ストリームを作成する多重化ストリーム作成ステップと、前記多重化ストリーム作成ステップにより作成された多重化ストリームを分離する多重化ストリーム分離ステップとを具備し、前記多重化するパケットの内容毎に異なるSYNCパターンは、あらかじめ定められた各ストリームを示すパターンに、前記MPEG2トランスポートストリームの間に挿入された前記任意のデータのパケット数を加えたパターンであることを特徴とする。   The digital data receiving method of the present invention divides a plurality of MPEG2 transport streams and a plurality of arbitrary data into 188 bytes which is a data packet size of the MPEG2 transport stream, and converts the SYNC pattern of the MPEG2 transport stream. A multiplexed stream creating step for creating a multiplexed stream by adding different patterns depending on the contents of packets to be multiplexed, and a multiplexed stream for separating the multiplexed stream created by the multiplexed stream creating step A SYNC pattern that differs depending on the contents of the packet to be multiplexed is a predetermined pattern indicating each stream, and the arbitrary data inserted between the MPEG2 transport streams. Characterized in that it is a pattern obtained by adding the number of packets data.

本発明のコンピュータプログラムは、複数のMPEG2トランスポートストリームと、複数の任意のデータを、前記MPEG2トランスポートストリームのデータパケットサイズである188Byteに分割するとともに、前記MPEG2トランスポートストリームのSYNCパターンを、多重化するパケットの内容毎に異なるパターンに変更して付加し、多重化ストリームを作成する多重化ストリーム作成ステップと、前記多重化ストリーム作成ステップにより作成された多重化ストリームを分離する多重化ストリーム分離ステップとをコンピュータに実行させ、前記多重化するパケットの内容毎に異なるSYNCパターンは、あらかじめ定められた各ストリームを示すパターンに、前記MPEG2トランスポートストリームの間に挿入された前記任意のデータのパケット数を加えたパターンであることを特徴とする。   The computer program of the present invention divides a plurality of MPEG2 transport streams and a plurality of arbitrary data into 188 bytes which are the data packet size of the MPEG2 transport stream, and multiplexes the SYNC pattern of the MPEG2 transport stream. A multiplexed stream creating step for creating a multiplexed stream by adding a different pattern for each packet content to be converted, and a multiplexed stream separating step for separating the multiplexed stream created by the multiplexed stream creating step The SYNC pattern that differs depending on the content of the packet to be multiplexed is inserted between the MPEG2 transport streams into a predetermined pattern indicating each stream. Characterized in that it is a pattern obtained by adding the number of packets of said arbitrary data.

本発明によれば、既存の装置の送信側・受信側にわずかな修正を加えるだけで、プログラム同期を保ちつつMPEG2のストリームとその他のデータとを並行に転送することができるようになる。また、複数のMPEG2のストリームについても並行に転送することができるようになる。   According to the present invention, an MPEG2 stream and other data can be transferred in parallel while maintaining program synchronization, with only a slight modification to the transmission side and reception side of an existing apparatus. Also, a plurality of MPEG2 streams can be transferred in parallel.

(第1の実施の形態)
以下、本発明の第1の実施の形態を、図面を用いて説明する。図1は、本実施の形態に係るデジタル放送受信装置の構成の一例を示すブロック図である。
(First embodiment)
Hereinafter, a first embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing an example of the configuration of a digital broadcast receiving apparatus according to this embodiment.

本実施の形態では、チューナから入力されたMPEG2TSと、デジタルカメラから入力されたJPEGと、DVから入力されたDVストリームとを、信号受信部で受信し、時分割多重して信号処理部へ伝送し、信号処理部でMPEG2TS・JPEG・DVのデコードを行い、出力画像を合成して表示する。   In this embodiment, the MPEG2TS input from the tuner, the JPEG input from the digital camera, and the DV stream input from the DV are received by the signal receiving unit, and are time-division multiplexed and transmitted to the signal processing unit. Then, MPEG2TS / JPEG / DV is decoded by the signal processing unit, and the output image is synthesized and displayed.

図1において、101はデジタル放送波を受信するアンテナ、102は本システムにおける信号受信部(本発明のデジタルデータ送信装置に相当するものでもある)、103はデジタル放送受信チューナ、104はデジタルカメラ等の入出力インタフェースとして配設されるUSBインタフェース、105はDV等の入出力インタフェースとして配設されるIEEE1394インタフェースである。   In FIG. 1, 101 is an antenna for receiving a digital broadcast wave, 102 is a signal receiving unit in this system (also corresponding to the digital data transmitting apparatus of the present invention), 103 is a digital broadcast receiving tuner, 104 is a digital camera, etc. A USB interface 105 is provided as an I / O interface, and an IEEE 1394 interface is provided as an input / output interface such as DV.

106は、デジタル放送受信チューナ103や各種インタフェース104、105から入力された各種データ列を、パケット到着時刻補正情報を付加しながら時分割多重するマルチプレクサである。108は本システムにおける信号処理部(本発明のデジタルデータ受信装置に相当するものでもある)、107は、信号受信部102から信号処理部108へ信号を伝送する伝送路、109は、マルチプレクサ106で多重化した時分割多重データを分解するデマルチプレクサである。110は、マルチプレクサ106で付加したパケット到着時刻補正情報に基づきシステムクロックを補正するPCR補正部、111はMPEG2の復号を行うMPEG2復号部、112はJPEGの復号を行うJPEG復号部、113はDVの復号を行うDV復号部である。114は、MPEG2復号部111、JPEG復号部112、DV復号部113の出力する画像を画面内に合成する合成部、115はディスプレイ等の画像表示装置(出力装置)である。   Reference numeral 106 denotes a multiplexer that time-division multiplexes various data strings input from the digital broadcast receiving tuner 103 and various interfaces 104 and 105 while adding packet arrival time correction information. 108 is a signal processing unit (also corresponding to the digital data receiving apparatus of the present invention) in this system, 107 is a transmission path for transmitting signals from the signal receiving unit 102 to the signal processing unit 108, and 109 is a multiplexer 106. It is a demultiplexer that decomposes multiplexed time-division multiplexed data. 110 is a PCR correction unit that corrects the system clock based on the packet arrival time correction information added by the multiplexer 106, 111 is an MPEG2 decoding unit that performs MPEG2 decoding, 112 is a JPEG decoding unit that performs JPEG decoding, and 113 is a DV. It is a DV decoding part which performs decoding. Reference numeral 114 denotes a synthesizing unit that synthesizes images output from the MPEG2 decoding unit 111, the JPEG decoding unit 112, and the DV decoding unit 113 in the screen, and 115 denotes an image display device (output device) such as a display.

アンテナ101で受信されたデジタル放送信号と、デジタルカメラからの画像信号と、DVC(Digital Video Camera)からのDV信号は、本システムにおける信号受信部102で受信される。信号受信部102は、ユーザの入力・データの入力等に基づく入力信号を処理する処理部である。信号受信部102はデジタル放送受信チューナ103、USBインタフェース104、IEEE1394インタフェース105を持ち、それぞれがデジタル放送のMPEG2、デジタルカメラからのJPEG、DVCからのDVストリームを受信する。受信した信号はマルチプレクサ106に送られ、多重化される。   A digital broadcast signal received by the antenna 101, an image signal from a digital camera, and a DV signal from a digital video camera (DVC) are received by a signal receiving unit 102 in this system. The signal receiving unit 102 is a processing unit that processes an input signal based on a user input, data input, or the like. The signal receiving unit 102 includes a digital broadcast receiving tuner 103, a USB interface 104, and an IEEE 1394 interface 105, and each receives a digital broadcast MPEG2, a JPEG from a digital camera, and a DV stream from a DVC. The received signal is sent to the multiplexer 106 and multiplexed.

多重化パケット形式は、たとえば図2のようなものである。図2において、116はパケットの先頭識別のためのSYNC領域、117はパケットにArrival_Reviseが付加されているかどうかを示すArrival_Revise_Flag領域である。118はこのパケットのPayload領域121に格納されているデータの種類を示すStream_Type領域、119はストリームの番号を示すStream_Id領域、120はPCRの補正情報を示すArrival_Revise領域、121は各データの実態が格納されるPayload領域である。   The multiplexed packet format is, for example, as shown in FIG. In FIG. 2, reference numeral 116 denotes a SYNC area for identifying the beginning of a packet, and 117 denotes an Arrival_Revise_Flag area indicating whether or not an ARIVAL_REVISE is added to the packet. 118 is a Stream_Type area indicating the type of data stored in the Payload area 121 of this packet, 119 is a Stream_Id area indicating the stream number, 120 is an Arrival_Revise area indicating PCR correction information, and 121 is an actual data storage area. Payload area.

デジタル放送受信チューナ103や各種インタフェース104、105から入力されたストリームのデータがPayload領域121に入り、それに各種ヘッダ116〜120が付加される形である。特に、Arrival_Revise領域120における情報は、パケット到着時刻の情報であり、重要である。本実施の形態では、付加される情報は、本来のMPEG2パケットの間に挿入されたJPEGのパケットおよびDVのパケットの数である。   Stream data input from the digital broadcast receiving tuner 103 and various interfaces 104 and 105 enters the payload area 121, and various headers 116 to 120 are added thereto. In particular, the information in the Arrival_Revise area 120 is information on the packet arrival time and is important. In this embodiment, the added information is the number of JPEG packets and DV packets inserted between original MPEG2 packets.

マルチプレクサ106で多重化した信号は、伝送路107を通してシステムの信号処理部108に送られる。伝送路107の帯域は任意である。信号処理部108は、伝送路107から入力された信号群をデコードして出力する処理部である。   The signal multiplexed by the multiplexer 106 is sent to the signal processing unit 108 of the system through the transmission path 107. The bandwidth of the transmission path 107 is arbitrary. The signal processing unit 108 is a processing unit that decodes and outputs a signal group input from the transmission path 107.

デマルチプレクサ109は、マルチプレクサ106によってマルチプレックスされたパケットを受け取り、分解処理を行う。また、デマルチプレクサ109は、本来のTSパケットに付加されているPCR情報と、マルチプレクサ106で付加されたパケット到着時刻補正情報、つまり、間に挿入されたパケット数と、伝送路107のビットレートから、PCRの補正値を計算し、PCR補正部110に送る。   The demultiplexer 109 receives the packet multiplexed by the multiplexer 106 and performs disassembly processing. Further, the demultiplexer 109 calculates the PCR information added to the original TS packet, the packet arrival time correction information added by the multiplexer 106, that is, the number of packets inserted between them and the bit rate of the transmission path 107. The PCR correction value is calculated and sent to the PCR correction unit 110.

PCR補正部110は、その情報からシステムクロックをPCR揺らぎ補正する。PCR基準時刻補正が行われていない状態であれば、システムクロックをPCR基準時刻補正する。MPEG2復号部111は、通常のMPEG2復号を行い、PCR補正部110で補正したシステムクロックに基づき映像および音声を出力する。JPEG復号部112、DV復号部113は一般的なものでよい。出来が上がった画像群は、合成部114で合成され、マルチ画面として画像表示装置(出力装置)115から出力される。   The PCR correction unit 110 corrects the PCR fluctuation of the system clock from the information. If the PCR reference time is not corrected, the system clock is corrected for the PCR reference time. The MPEG2 decoding unit 111 performs normal MPEG2 decoding, and outputs video and audio based on the system clock corrected by the PCR correction unit 110. The JPEG decoding unit 112 and the DV decoding unit 113 may be general ones. The completed image group is combined by the combining unit 114 and output from the image display device (output device) 115 as a multi-screen.

マルチプレクサ106の動作について具体的に述べる。マルチプレクサ106は、デジタル放送受信チューナ103及び入出力インタフェース104、105からの入力を受け取り、それぞれのデータから図2のような固定サイズのパケット形式のデータにする。パケットサイズは任意でよい。各ストリーム本体はPayload領域121に配置される。パケットは適当な順番に並べられ、伝送路107から出力される。パケットの順番は適当でよく、本実施の形態では、デジタル放送受信チューナ103及び入出力インタフェース104、105から入力された順番に配置することとする。多重化の模式図を図3に示す。   The operation of the multiplexer 106 will be specifically described. The multiplexer 106 receives inputs from the digital broadcast receiving tuner 103 and the input / output interfaces 104 and 105 and converts them into data of a fixed size packet format as shown in FIG. The packet size may be arbitrary. Each stream body is arranged in the payload area 121. The packets are arranged in an appropriate order and output from the transmission path 107. The order of the packets may be appropriate. In this embodiment, the packets are arranged in the order input from the digital broadcast receiving tuner 103 and the input / output interfaces 104 and 105. A schematic diagram of multiplexing is shown in FIG.

図3において、122は本来のMPEG2TSストリーム、123は本来のJPEGストリーム、124は本来のDVストリーム、125は本実施の形態により生成される多重化ストリーム、126は第1のMPEG2TSパケット、127は第1のJPEGパケット、128は第1のDVパケット、129は第2のMPEG2TSパケット、130は第3のMPEG2TSパケットである。   In FIG. 3, 122 is the original MPEG2TS stream, 123 is the original JPEG stream, 124 is the original DV stream, 125 is the multiplexed stream generated by this embodiment, 126 is the first MPEG2TS packet, and 127 is the first MPEG2TS packet. 1 is a JPEG packet, 128 is a first DV packet, 129 is a second MPEG2TS packet, and 130 is a third MPEG2TS packet.

マルチプレクサ106の付加する情報と、それに基づくデマルチプレクサ109とPCR補正部110の動作をより具体的に説明する。
マルチプレクサ106で付加する情報は、多重化した情報をデマルチプレクサ109が分解できるように付加する情報と、パケット到着時刻補正情報として付加する情報の2種類である。
Information added by the multiplexer 106 and operations of the demultiplexer 109 and the PCR correction unit 110 based on the information will be described more specifically.
There are two types of information added by the multiplexer 106: information added so that the multiplexed information can be decomposed by the demultiplexer 109, and information added as packet arrival time correction information.

前者としては、パケットの先頭を認識するSYNC情報(SYNC領域116)と、パケットのPayload領域121に入っているストリームの型(MPEG2TS、JPEG、DV等)を示す情報(Stream_Type領域118)と、ストリームの番号(MPEG2TSの3番、JPEGの2番等)を示す情報(Stream_Id領域119)を付加する。前記SYNC情報は、あらかじめ決められた任意の値でよいが、0x47はMPEG2TSの識別子なので避けるべきである。   As the former, SYNC information for recognizing the head of the packet (SYNC area 116), information indicating the type of stream (MPEG2TS, JPEG, DV, etc.) contained in the packet payload area 121 (Stream_Type area 118), stream Information (Stream_Id area 119) is added to the file number (MPEG2TS number 3, JPEG number 2, etc.). The SYNC information may be any predetermined value, but 0x47 should be avoided because it is an MPEG2TS identifier.

後者としては、パケット到着時刻補正情報がパケットに付加されているかどうかを示す情報(Arrival_Revise_Flag領域117)と、パケット到着時刻補正情報本体(Arrival_Revise領域120)がある。   The latter includes information indicating whether or not packet arrival time correction information is added to the packet (Arrival_Revise_Flag area 117) and packet arrival time correction information main body (Arrival_Revise area 120).

パケット到着時刻補正情報が示されているArrival_Revise領域120には、本来のMPEG2TSパケットの間に挿入された任意のパケットの個数がマルチプレクサ106で付加される。たとえば、図3の例であれば、第1のMPEG2TSパケット126と第2のMPEG2TSパケット129は、本来のMPEG2TSストリーム122上では連続したパケットである。しかしながら、マルチプレクサ106により、第1のMPEG2TSパケット126と第2のMPEG2TSパケット129との間に、第1のJPEGパケット127と、第1のDVパケット128が挿入されているため、第2のMPEG2TSパケット129のArrival_Revise領域120に「2」という数値が付加される。   The number of arbitrary packets inserted between the original MPEG2 TS packets is added by the multiplexer 106 to the Arrival_Revise area 120 where the packet arrival time correction information is indicated. For example, in the example of FIG. 3, the first MPEG2 TS packet 126 and the second MPEG2 TS packet 129 are continuous packets on the original MPEG2 TS stream 122. However, since the first JPEG packet 127 and the first DV packet 128 are inserted between the first MPEG2TS packet 126 and the second MPEG2TS packet 129 by the multiplexer 106, the second MPEG2TS packet A numerical value “2” is added to the Arrival_Revision area 120 of 129.

デマルチプレクサ109は、マルチプレクサ105の付加した、多重化分解用情報に基づきデマルチプレックスを行うと共に、パケット到着時刻補正情報に基づいてPCRの示すパケット到着時刻を補正する。具体的には、Arrival_Revise領域120で示された値とパケットサイズ、ビットレートから、PCRの示す本来の到着時刻を遅延させたPCR値に補正する。たとえば、図3の例では、Arrival_Revise領域120で示された値を2packet、パケットサイズを256Byte、ビットレートを30Mbps(=30×1024×1024÷8Byte/sec=3932160Byte/sec)とすると、PCR補正値ΔPCRは、以下の(1式)のようになる。   The demultiplexer 109 performs demultiplexing based on the demultiplexing information added by the multiplexer 105 and corrects the packet arrival time indicated by the PCR based on the packet arrival time correction information. Specifically, the value, packet size, and bit rate indicated in the Arrival_Revision area 120 are corrected to a PCR value obtained by delaying the original arrival time indicated by PCR. For example, in the example of FIG. 3, assuming that the value indicated in the Arrival_Revise area 120 is 2 packets, the packet size is 256 bytes, and the bit rate is 30 Mbps (= 30 × 1024 × 1024 ÷ 8 bytes / sec = 3932160 bytes / sec), the PCR correction value ΔPCR is as shown in the following (formula 1).

ΔPCR[sec]=2[packet]×256[Byte]/3932160[Byte/sec]≒0.0001302[sec]・・・(1式)
PCRのカウンタ値ΔPCR(図3の2packet遅延分)は、27MHz精度なので、実際のPCR値を補正する値は、以下の(2式)のようになる。
ΔPCR[カウンタ値]=0.0001302[sec]×27000000[Hz]≒3515[カウンタ値]・・・(2式)
よって、第2のMPEG2TSパケット129のPCR値は、図3に示すように、本来のPCR(=13000)+2packet遅延分(=3515)で表せるので、13000に3515を加算した16515となる。
ΔPCR [sec] = 2 [packet] × 256 [Byte] / 3932160 [Byte / sec] ≈0.0001302 [sec] (1 formula)
Since the PCR counter value ΔPCR (2 packet delay in FIG. 3) has an accuracy of 27 MHz, the value for correcting the actual PCR value is as shown in (Formula 2) below.
ΔPCR [counter value] = 0.0001302 [sec] × 27000000 [Hz] ≈3515 [counter value] (2 formulas)
Therefore, as shown in FIG. 3, the PCR value of the second MPEG2 TS packet 129 can be expressed by the original PCR (= 13000) +2 packet delay (= 3515), and is 16515 obtained by adding 3515 to 13000.

パケット到着時刻補正情報で補正されたPCR値と、実際の到着時刻とを用いて、PCR揺らぎ量を計算し、PCR補正部110はシステムクロックをPCR揺らぎ補正する。PCR基準時刻補正もここで行う。また、MPEG2復号部111や合成部114は復号・表示のためにPTS・DTSを必要とするが、デマルチプレクサ109はPCRを補正した補正値及びPTS・DTSの値を保持しており、MPEG2復号部111・合成部114からのPTS・DTS問い合わせに対してPCRと同様に補正した値を通知する。図3の例では、第3のMPEG2TSパケット130は、本来14000というPTSを持っているが、PCRが上記計算式に基づいて補正されていることを受けて、同様に補正される。実際のPTS値は、14000に3515を加算した17515となる。   The PCR fluctuation amount is calculated using the PCR value corrected by the packet arrival time correction information and the actual arrival time, and the PCR correction unit 110 corrects the PCR fluctuation of the system clock. PCR reference time correction is also performed here. Further, the MPEG2 decoding unit 111 and the synthesizing unit 114 require PTS / DTS for decoding / display, but the demultiplexer 109 holds the correction value obtained by correcting PCR and the value of PTS / DTS. In response to the PTS / DTS inquiry from the unit 111 / combination unit 114, a value corrected in the same manner as PCR is notified. In the example of FIG. 3, the third MPEG2 TS packet 130 originally has a PTS of 14000, but is similarly corrected in response to the fact that the PCR is corrected based on the above calculation formula. The actual PTS value is 17515 obtained by adding 3515 to 14000.

以上のように構成して処理することで、プログラム同期情報を保ちつつ、MPEG2TSと任意のデータを多重することが可能となる。また、複数のMPEGTSについても、プログラム同期情報を保ちつつ多重することが可能となる。   By configuring and processing as described above, MPEG2TS and arbitrary data can be multiplexed while maintaining program synchronization information. Also, a plurality of MPEGTS can be multiplexed while maintaining the program synchronization information.

なお、本実施の形態では、簡単のため伝送路107のビットレートと各入力ストリームの想定するビットレートとを同一としたが、実際はこのようにならない場合もある。その場合は、まず伝送路107のビットレートとストリームの想定するビットレートの違いから到着時刻の補正を行う必要があるが、本実施の形態で説明した手法で補正が可能である。   In the present embodiment, for simplicity, the bit rate of the transmission path 107 is assumed to be the same as the bit rate assumed for each input stream. However, this may not be the case. In that case, it is necessary to first correct the arrival time based on the difference between the bit rate of the transmission path 107 and the bit rate assumed by the stream, but it can be corrected by the method described in this embodiment.

また、本実施の形態では、マルチプレクサ106で挿入した新規パケットの数をそのまま用いてパケット到着時刻の補正を行うようにしたが、パケット到着時刻の補正の手段はこれに限らない。例えば、前述したデマルチプレクサ109側で行っている計算結果をマルチプレクサ106側で行い、パケット上に記述してもよい。
この場合、パケット到着時刻補正情報は、例えば、第2のMPEG2TSパケット129に付加されているPCRを、第1のMPEG2TSパケット126と第2のMPEG2TSパケット129の間に挿入されたパケットの数に基づく情報に基づいて補正した情報になる。
In this embodiment, the number of new packets inserted by the multiplexer 106 is used as it is to correct the packet arrival time. However, the means for correcting the packet arrival time is not limited to this. For example, the calculation result performed on the demultiplexer 109 side described above may be performed on the multiplexer 106 side and described on the packet.
In this case, the packet arrival time correction information is based on, for example, the number of packets inserted between the first MPEG2TS packet 126 and the second MPEG2TS packet 129 with the PCR added to the second MPEG2TS packet 129. The information is corrected based on the information.

さらに、本実施の形態が示すものは本発明の一つの例であり、本発明を限定するものではない。システム構成、多重パケットの構成は本発明の趣旨に基づくものであれば変更可能である。
また、本実施の形態では、MPEG2TSを例に挙げて説明したが、MPEG2PSを用いても前述したのと同様にして処理することができる。
Furthermore, what this embodiment shows is an example of the present invention, and does not limit the present invention. The system configuration and the multiplex packet configuration can be changed as long as they are based on the spirit of the present invention.
In the present embodiment, MPEG2TS has been described as an example. However, even if MPEG2PS is used, processing can be performed in the same manner as described above.

(第2の実施の形態)
以下、本発明の第2の実施の形態を、図面を用いて説明する。図4は、本実施の形態に係るデジタル放送受信装置の構成の一例を示すブロック図である。
(Second Embodiment)
Hereinafter, a second embodiment of the present invention will be described with reference to the drawings. FIG. 4 is a block diagram showing an example of the configuration of the digital broadcast receiving apparatus according to this embodiment.

本実施の形態では、録画番組が記憶されているハードディスクから入力された3つのMPEG2TSを信号受信部で受信し、時分割多重して信号処理部へ伝送し、信号処理部で3つのMPEG2TSのデコードを行い、出力画像を合成して表示する。   In the present embodiment, three MPEG2TSs input from a hard disk in which a recorded program is stored are received by the signal receiving unit, time-division multiplexed, transmitted to the signal processing unit, and the MPEG2TS decoded by the signal processing unit. The output image is synthesized and displayed.

図4において、201はデジタル放送を記憶しておくハードディスク(HDD)、202はハードディスクコントローラ(HDDコントローラ)、203は本システムにおける信号受信部、204はハードディスクから読み出したTSを保持するTS保持メモリである。205は、TS保持メモリ204から読み出す複数のTSを、パケット到着時刻補正情報及びストリーム間PCR差分情報を付加しながら時分割多重するマルチプレクサである。207は本システムにおける信号処理部、206は信号受信部203から信号処理部207へ信号を伝送する伝送路、208はマルチプレクサ205の多重した時分割多重データを分解するデマルチプレクサである。209は、マルチプレクサ205で付加したパケット到着時刻補正情報及びストリーム間PCR差分情報に基づきシステムクロックを補正するPCR補正部、210はMPEG2の各種ESを復号するMPEG2復号部である。211は、MPEG2復号部210の出力する画像を画面内に合成する合成部、212はディスプレイ等の画像表示装置(出力装置)である。   In FIG. 4, 201 is a hard disk (HDD) for storing digital broadcasts, 202 is a hard disk controller (HDD controller), 203 is a signal receiving unit in this system, and 204 is a TS holding memory for holding TS read from the hard disk. is there. Reference numeral 205 denotes a multiplexer that time-division-multiplexes a plurality of TSs read from the TS holding memory 204 while adding packet arrival time correction information and inter-stream PCR difference information. Reference numeral 207 denotes a signal processing unit in this system, 206 denotes a transmission path for transmitting a signal from the signal receiving unit 203 to the signal processing unit 207, and 208 denotes a demultiplexer that decomposes the time-division multiplexed data multiplexed by the multiplexer 205. A PCR correction unit 209 corrects the system clock based on the packet arrival time correction information and the inter-stream PCR difference information added by the multiplexer 205, and 210 is an MPEG2 decoding unit that decodes various MPEG2 ESs. Reference numeral 211 denotes a synthesizing unit that synthesizes an image output from the MPEG2 decoding unit 210 in the screen, and 212 denotes an image display device (output device) such as a display.

ユーザが、ハードディスク201に記憶された複数のMPEG2TS番組を選択すると、HDDコントローラ202を介して本システムにおける信号受信部203に複数のTSが入力される。信号受信部203は、TS保持メモリ204とマルチプレクサ205を有して構成される。TS保持メモリ204には、ハードディスクコントローラ202から入力された各MPEG2TSストリームを蓄積する。本実施の形態では、3つのTSを入力した状態を想定してTS保持メモリ204を3つ示してあるが、模式的な図でありTS保持メモリは論理的に3つの領域があればよい。   When the user selects a plurality of MPEG2 TS programs stored in the hard disk 201, a plurality of TSs are input to the signal receiving unit 203 in this system via the HDD controller 202. The signal receiving unit 203 includes a TS holding memory 204 and a multiplexer 205. In the TS holding memory 204, each MPEG2 TS stream input from the hard disk controller 202 is stored. In the present embodiment, three TS holding memories 204 are shown on the assumption that three TSs are input, but this is a schematic diagram and the TS holding memory only needs to have three logical areas.

ここで、マルチプレクサ205の作成するパケットの例を図5に示す。
図5において、第1の実施の形態と同一の意味を持つ領域には、図2に付した符号と同一の符号を付して、詳細な説明を省略する。213はストリーム間PCR差分情報として付加されるテーブルのサイズを示すPcr_Offset_Table_Size領域、214はストリーム間PCR差分情報を示すPcr_Offset_Table領域である。
An example of a packet created by the multiplexer 205 is shown in FIG.
In FIG. 5, regions having the same meaning as in the first embodiment are denoted by the same reference numerals as those in FIG. 2, and detailed description thereof is omitted. Reference numeral 213 denotes a Pcr_Offset_Table_Size area indicating the size of a table added as inter-stream PCR difference information, and reference numeral 214 denotes a Pcr_Offset_Table area indicating inter-stream PCR difference information.

各MPEG2TSの実態はPayload領域121に入り、それに各種ヘッダ116〜120と、Pcr_Offset_Table_Size領域213と、Pcr_Offset_Table領域214とが付加されているような形である。ヘッダ情報には、パケット到着時刻補正情報として、Arrival_Revise領域120が付加される。本実施の形態では、付加される情報は、本来のMPEG2TSパケットの間に挿入された別のMPEG2TSパケットの数である。   The actual state of each MPEG2TS is in a payload area 121 to which various headers 116 to 120, a Pcr_Offset_Table_Size area 213, and a Pcr_Offset_Table area 214 are added. In the header information, an Arrival_Revise area 120 is added as packet arrival time correction information. In the present embodiment, the added information is the number of other MPEG2 TS packets inserted between the original MPEG2 TS packets.

また、Pcr_Offset_Table領域214には、ストリーム間PCR差分情報として、それぞれのMPEG2TSがもつPCR間の差分値をテーブルとして付加する。Pcr_Offset_Table領域214のパケット中のサイズを確定するために、Pcr_Offset_Table_Size領域213に、テーブルのサイズを付加する。   In addition, in the Pcr_Offset_Table area 214, a difference value between PCRs of each MPEG2 TS is added as a table as PCR difference information between streams. In order to determine the size in the packet of the Pcr_Offset_Table area 214, the size of the table is added to the Pcr_Offset_Table_Size area 213.

マルチプレクサ205で多重化した信号は、伝送路206を通してシステムの信号処理部207に送られる。伝送路206の帯域は任意である。信号処理部207は、伝送路206から入力された信号群をデコードして出力する処理部である。   The signal multiplexed by the multiplexer 205 is sent to the signal processing unit 207 of the system through the transmission path 206. The bandwidth of the transmission path 206 is arbitrary. The signal processing unit 207 is a processing unit that decodes and outputs a signal group input from the transmission path 206.

デマルチプレクサ208は、マルチプレクサ205で多重化したパケットを分解するとともに、パケット到着時刻補正情報(Arrival_Revise領域120)に基づき、パケット到着時刻を示すPCR値を補正する。   The demultiplexer 208 decomposes the packet multiplexed by the multiplexer 205 and corrects the PCR value indicating the packet arrival time based on the packet arrival time correction information (Arrival_Revision area 120).

また、デマルチプレクサ208は、ユーザもしくはシステムにより選択された、システムクロックを補正するための基準となるMPEG2TSの、パケット到着時刻補正情報により補正されたPCR値をPCR補正部209に送る。システムクロックは単一であり、PCR揺らぎ補正の基準とするストリームは、たとえ複数のMPEG2TSがあっても1つのみである。   In addition, the demultiplexer 208 sends the PCR value corrected by the packet arrival time correction information of the MPEG2TS, which is a reference for correcting the system clock, selected by the user or the system, to the PCR correction unit 209. The system clock is single, and there is only one stream as a reference for correcting the PCR fluctuation even if there are a plurality of MPEG2TSs.

PCR補正部209は、基準として選択されたTSの、パケット到着時刻補正情報で補正されたPCR値に基づきシステムクロックをPCR揺らぎ補正する。PCR基準時刻補正もここで行う。PCR基準ストリームとして選択されなかったストリームについては、ストリーム間PCR差分情報(Pcr_Offset_Table領域214)に基づき、さらにPCR値を補正する。   The PCR correction unit 209 corrects the PCR fluctuation of the system clock based on the PCR value corrected with the packet arrival time correction information of the TS selected as the reference. PCR reference time correction is also performed here. For a stream not selected as the PCR reference stream, the PCR value is further corrected based on the inter-stream PCR difference information (Pcr_Offset_Table area 214).

MPEG2復号部210は、それぞれのMPEG2TSをデコードし、PCR補正部209の補正したシステムクロックに従い、ストリームを出力する。出来上がったストリームは合成部211で合成され、マルチ画面として画像表示装置(出力装置)212から出力される。   The MPEG2 decoding unit 210 decodes each MPEG2TS and outputs a stream according to the system clock corrected by the PCR correction unit 209. The completed stream is combined by the combining unit 211 and output from the image display device (output device) 212 as a multi-screen.

マルチプレクサ205の動作と、ストリーム間PCR差分情報について具体的に述べる。
マルチプレクサ205のパケット多重動作は、第1の実施の形態と同様である。また、デマルチプレクサ208のパケット分解のために付加する情報も、第1の実施の形態と同様である。
The operation of the multiplexer 205 and the inter-stream PCR difference information will be specifically described.
The packet multiplexing operation of the multiplexer 205 is the same as that in the first embodiment. Also, the information added for packet decomposition of the demultiplexer 208 is the same as in the first embodiment.

本実施の形態が第1の実施の形態と異なるのは、MPEG2TS、つまりプログラム同期情報をもつストリームが複数ある点である。プログラム同期情報をもつストリームが複数あっても、システムクロックにPCR基準時刻補正及びPCR揺らぎ補正を反映させることができるストリームは、システムクロックが単一である以上、1つであることは明らかで、選択されたストリームについてPCR基準時刻補正及びPCR揺らぎ補正を行うためこの点については第1の実施の形態と変わらない。   This embodiment is different from the first embodiment in that there are a plurality of MPEG2TS, that is, a plurality of streams having program synchronization information. Even if there are a plurality of streams having program synchronization information, it is clear that there is only one stream that can reflect the PCR reference time correction and the PCR fluctuation correction in the system clock as long as there is a single system clock. Since the PCR reference time correction and the PCR fluctuation correction are performed on the selected stream, this point is the same as in the first embodiment.

しかし、各ストリームが異なる時刻に作成されたPCRを持っているため、同一の時刻に補正する必要がある。同一の時間に補正するための基準となるストリーム、これはPCR揺らぎ補正を反映させるストリームと同一になるが、この選択はユーザもしくはシステムが行う。選択の手法は規定しない。たとえば、現在表示されている画面上で、最も広い面積を占めているストリームを基準とするといった方法が考えられる。   However, since each stream has a PCR created at a different time, it is necessary to correct it at the same time. The reference stream for correcting at the same time, which is the same as the stream reflecting the PCR fluctuation correction, is selected by the user or the system. The method of selection is not specified. For example, a method may be considered in which a stream occupying the widest area on the currently displayed screen is used as a reference.

これを実現するために、マルチプレクサ205は、第1の実施の形態で用いたパケット到着時刻補正情報、つまり本来のMPEG2TSの間に挿入されたパケットの数をArrival_Revise領域120に付加すると共に、ある時刻における各ストリームのPCR値の相対関係をプログラム間PCR差分情報領域としてPcr_Offset_Table領域214に付加する。マルチプレクサ205の作成する多重化ストリームと、プログラム間PCR差分情報の例は、図6のようになる。   In order to realize this, the multiplexer 205 adds the packet arrival time correction information used in the first embodiment, that is, the number of packets inserted between the original MPEG2TSs to the Arriv_Revision area 120, and at a certain time. Is added to the Pcr_Offset_Table area 214 as an inter-program PCR difference information area. An example of the multiplexed stream created by the multiplexer 205 and the inter-program PCR difference information is as shown in FIG.

図6において、215は本来のMPEG2TSストリーム−1、216は本来のMPEG2TSストリーム−2、217は本来のMPEG2TSストリーム−3、218は本実施の形態による多重化ストリーム、219は第1のMPEG2TS−1パケット、220は第1のMPEG2TS−2パケット、221は第1のMPEG2TS−3パケット、222は第2のMPEG2TS−1パケット、223は第2のMPEG2TS−2パケット、224は第2のMPEG2TS−3パケット、225は第1のMPEG2TS−1パケット219に付加されるPcr_Offset_Table、226は第1のMPEG2TS−2パケット220に付加されるPcr_Offset_Table、227は第一のMPEG2TS−3パケット221に付加されるPcr_Offset_Tableである。   In FIG. 6, 215 is an original MPEG2TS stream-1, 216 is an original MPEG2TS stream-2, 217 is an original MPEG2TS stream-3, 218 is a multiplexed stream according to the present embodiment, and 219 is a first MPEG2TS-1. Packet, 220 is a first MPEG2 TS-2 packet, 221 is a first MPEG2TS-3 packet, 222 is a second MPEG2TS-1 packet, 223 is a second MPEG2TS-2 packet, and 224 is a second MPEG2TS-3 packet Packet 225 is added to the first MPEG2TS-1 packet 219 Pcr_Offset_Table 226 is added to the first MPEG2TS-2 packet 220 Pcr_Offset_Table 227 is the first MPEG2TS-3 packet A Pcr_Offset_Table added to 21.

各プログラム間PCR差分情報は、すべてのストリーム間のPCR差分情報を持っている。これは、ユーザもしくはシステムがどのストリームをクロック基準としてもプログラム同期情報が破綻しないようにするためのものである。   Each program PCR difference information has PCR difference information between all streams. This is to prevent the program synchronization information from failing whatever stream the user or system uses as a clock reference.

デマルチプレクサ208では、PCRを含むパケットを受け取ると、そのパケットを含むストリームがクロック基準として選択されているかどうかをチェックする。クロック基準として選択されているストリーム(クロック基準ストリーム)であれば、ストリーム間PCR差分情報は使用しない。この場合は、第1の実施の形態と同様に、パケット到着時刻補正情報によりPCR値を補正し、PCR補正部209にPCR補正値を通知する。
一方、クロック基準ストリームでない場合は、まずパケット到着時刻補正情報でPCR値を補正したあと、さらにストリーム間PCR差分情報に基づき、クロック基準ストリームと、自身のPCRとの差分値を取得し、さらにPCR値を補正する。
When the demultiplexer 208 receives a packet including the PCR, the demultiplexer 208 checks whether a stream including the packet is selected as a clock reference. If the stream is selected as a clock reference (clock reference stream), the inter-stream PCR difference information is not used. In this case, as in the first embodiment, the PCR value is corrected by the packet arrival time correction information, and the PCR correction value is notified to the PCR correction unit 209.
On the other hand, if it is not the clock reference stream, first the PCR value is corrected with the packet arrival time correction information, and further, the difference value between the clock reference stream and its own PCR is obtained based on the inter-stream PCR difference information. Correct the value.

図6の例で、具体的なPCR値の補正を説明する。ストリーム基準をMPEG2TS−1に指定した場合、MPEG2TS−1に関しては第1の実施の形態と同様に動作する。つまり、第1の実施の形態と同様に間に2つのパケットがあることがパケット到着時刻補正情報であるArrival_Revise領域120に示されている。第1のMPEG2TS−1パケット219のPCRが10000で、第2のMPEG2TSのPCRが13000、パケットサイズ256Byte・ビットレート30Mbpsを仮定すると、パケット到着時刻補正情報によるPCR値は第1の実施の形態で計算したとおり、13515(10000+3515=13515)となる。   A specific PCR value correction will be described with reference to the example of FIG. When the stream standard is designated as MPEG2TS-1, the MPEG2TS-1 operates in the same manner as in the first embodiment. That is, the arrival_revise area 120 which is packet arrival time correction information indicates that there are two packets in the same way as in the first embodiment. Assuming that the PCR of the first MPEG2TS-1 packet 219 is 10,000, the PCR of the second MPEG2TS is 13000, the packet size is 256 bytes, and the bit rate is 30 Mbps, the PCR value based on the packet arrival time correction information is the same as in the first embodiment. As calculated, it is 13515 (10000 + 3515 = 13515).

MPEG2TS−1がPCRの基準として選択されている際のMPEG2TS−2及びMPEG2TS−3の時間補正は、以下のようになる。まず、パケット到着時刻補正情報であるArrival_Revise領域には、第1のMPEG2TS−2パケット220及び第1のMPEG2TS−3パケット221の双方とも「2」が示されており、第1の実施の形態で計算したとおり、それぞれのPCRに3515を加えたものが第1のPCR値となる。さらに、MPEG2TS−2については、第1のMPEG2TS220に付加されているPcr_Offset_Table226より、MPEG2TS−1とのPCRオフセットが+7700とわかるので、加算が行われ、プログラム間PCR差分情報適用後のPCR値は、2300と3515と7700とを加算して(2300+3515+7700)、13515となる。MPEG2TS−3についても同様の計算が行われ、PCR値は13515となる。この例では、間に挿入されるパケットの数が同一で、同じタイミングでPCRが取得されているので、補正後のPCRはすべて同じ値になり、プログラム同期を取ることができる。   The time correction of MPEG2TS-2 and MPEG2TS-3 when MPEG2TS-1 is selected as the PCR standard is as follows. First, in the Arrival_Revise area which is packet arrival time correction information, both “1” are shown for both the first MPEG2 TS-2 packet 220 and the first MPEG2 TS-3 packet 221, and in the first embodiment, As calculated, the first PCR value is obtained by adding 3515 to each PCR. Furthermore, for MPEG2TS-2, the PCR offset from MPEG2TS-1 is found to be +7700 from Pcr_Offset_Table 226 added to the first MPEG2TS 220, so that addition is performed, and the PCR value after applying the inter-program PCR difference information is 2300, 3515, and 7700 are added (2300 + 3515 + 7700) to obtain 13515. The same calculation is performed for MPEG2TS-3, and the PCR value is 13515. In this example, since the same number of packets are inserted and the PCRs are acquired at the same timing, the corrected PCRs all have the same value, and program synchronization can be achieved.

プログラム間PCR差分情報であるPcr_Offset_Tableの作成手法について図7を用いて具体的に説明する。
図7において、228はシステムクロック値を示す直線、229は第1のMPEG2TS−1パケット219のPCR値、230は第2のMPEG2TS−1パケット222のPCR値、231は第1のMPEG2TS−2パケット220のPCR値、232は第2のMPEG2TS−2パケット223のPCR値、233は第1のMPEG2TS−3パケット221のPCR値、234は第2のMPEG2TS−3パケット224のPCR値である。
A method for creating Pcr_Offset_Table, which is PCR difference information between programs, will be described in detail with reference to FIG.
In FIG. 7, 228 is a straight line indicating a system clock value, 229 is a PCR value of the first MPEG2TS-1 packet 219, 230 is a PCR value of the second MPEG2TS-1 packet 222, and 231 is a first MPEG2TS-2 packet. The PCR value of 220, 232 is the PCR value of the second MPEG2 TS-2 packet 223, 233 is the PCR value of the first MPEG2 TS-3 packet 221, and 234 is the PCR value of the second MPEG2 TS-3 packet 224.

Pcr_Offset_Tableは、各ストリームのローカル時間の差分を示すものである。よって、例えば、第2のMPEG2TS−1パケット222のPCR値230を受信した際のPcr_Offset_Tableを作成する場合、当然MPEG2TS−1との差分は0である。MPEG2TS−2との差分は、第1のMPEG2TS−2パケット220のPCR値231で計算されているシステムクロックとの差分値と、第2のMPEG2TS−1パケット222のPCR値230で計算されているシステムクロックとの差分値を加算すればよい。MPEG2TS−3のPCR値との差分値も同様にして求めることができる。マルチプレクサ205は、各ストリームのPCR値を受信するたびに、上記処理を行うことで、Pcr_Offset_Tableを作成する。   Pcr_Offset_Table indicates the difference in local time of each stream. Therefore, for example, when creating the Pcr_Offset_Table when the PCR value 230 of the second MPEG2TS-1 packet 222 is received, the difference from the MPEG2TS-1 is naturally zero. The difference from MPEG2TS-2 is calculated from the difference between the system clock calculated by the PCR value 231 of the first MPEG2TS-2 packet 220 and the PCR value 230 of the second MPEG2TS-1 packet 222. What is necessary is just to add the difference value with a system clock. A difference value from the MPEG2TS-3 PCR value can be obtained in the same manner. Each time the multiplexer 205 receives the PCR value of each stream, the multiplexer 205 creates Pcr_Offset_Table by performing the above processing.

上記のように構成することで、複数のプログラム同期情報をもつストリームを多重する場合でも、簡易な変更で、大きなプログラム同期の破綻を招くことなくストリーム多重を行うことができる。   With the configuration described above, even when a stream having a plurality of program synchronization information is multiplexed, stream multiplexing can be performed with a simple change without causing a large program synchronization failure.

なお、本実施の形態では、簡単のため伝送路206のビットレートと各入力ストリームの想定するビットレートとを同一としたが、実際はこのようにならない場合もある。その場合は、まず伝送路206のビットレートとストリームの想定するビットレートとの違いから到着時刻の補正を行う必要があるが、本実施の形態で説明した手法で補正が可能である。   In this embodiment, for simplicity, the bit rate of the transmission path 206 is assumed to be the same as the bit rate assumed for each input stream. However, this may not be the case. In that case, it is necessary to first correct the arrival time based on the difference between the bit rate of the transmission path 206 and the bit rate assumed for the stream, but it can be corrected by the method described in this embodiment.

また、本実施の形態では、マルチプレクサ205で挿入した新規パケットの数をそのまま用いてパケット到着時刻の補正を行うようにしたが、パケット到着時刻の補正の手段はこれに限らない。例えば、前述したデマルチプレクサ208側で行っている計算結果をマルチプレクサ205側で行い、パケット上に記述してもよい。   In this embodiment, the number of new packets inserted by the multiplexer 205 is used as it is to correct the packet arrival time. However, the means for correcting the packet arrival time is not limited to this. For example, the calculation result performed on the demultiplexer 208 side described above may be performed on the multiplexer 205 side and described on the packet.

さらに、本実施の形態が示すものは本発明の一つの例であり、本発明を限定するものではない。システム構成、多重パケットの構成は本発明の趣旨に基づくものであれば変更可能である。
また、本実施の形態では、MPEG2TSを例に挙げて説明したが、MPEG2TSの代わりにMPEG2PSを用いても前述したのと同様にして処理することができる。
Furthermore, what this embodiment shows is an example of the present invention, and does not limit the present invention. The system configuration and the multiplex packet configuration can be changed as long as they are based on the spirit of the present invention.
In the present embodiment, MPEG2TS has been described as an example. However, even if MPEG2PS is used instead of MPEG2TS, processing can be performed in the same manner as described above.

(第3の実施の形態)
以下、本発明の第3の実施の形態を、図面を用いて説明する。図8は、本実施の形態に係るデジタル放送受信装置の構成の一例を示すブロック図である。
(Third embodiment)
The third embodiment of the present invention will be described below with reference to the drawings. FIG. 8 is a block diagram showing an example of the configuration of the digital broadcast receiving apparatus according to the present embodiment.

本実施の形態では、チューナから入力されたMPEG2TSと、デジタルカメラから入力されたJPEG、DVから入力されたDVストリームを、信号受信部で受信し、時分割多重して信号処理部へ伝送し、信号処理部でMPEG2TS・JPEG・DVのデコードを行い、出力画像を合成して表示する。   In this embodiment, the MPEG2TS input from the tuner, the JPEG input from the digital camera, and the DV stream input from the DV are received by the signal receiving unit, time-division multiplexed and transmitted to the signal processing unit, The signal processing unit decodes MPEG2TS / JPEG / DV and synthesizes and displays the output image.

図8において、第1の実施の形態と同一の動作をするものについては、図1に付した符号と同一の符号を付して、詳細な説明を省略する。301は本システムにおける信号受信部、302は、デジタル放送受信チューナ103や各種インタフェース104、105から入力された各種データ列を、多重化するストリームの種類によって異なるSYNCパターンを付加して時分割多重するマルチプレクサである。303は本システムにおける信号処理部、304はマルチプレクサ302で多重化された時分割多重データを分解すると共に、本来の単一ストリームの間に挿入されたパケットの数をカウントするデマルチプレクサである。   In FIG. 8, the same reference numerals as those in FIG. 1 are assigned to the same operations as those in the first embodiment, and the detailed description thereof is omitted. Reference numeral 301 denotes a signal receiving unit in this system, and 302 denotes time-division multiplexing of various data strings input from the digital broadcast receiving tuner 103 and various interfaces 104 and 105, with different SYNC patterns added depending on the type of stream to be multiplexed. It is a multiplexer. Reference numeral 303 denotes a signal processing unit in the present system, and 304 denotes a demultiplexer that decomposes the time-division multiplexed data multiplexed by the multiplexer 302 and counts the number of packets inserted between the original single streams.

アンテナ101から受信されたデジタル放送信号と、デジタルカメラからの画像信号と、DVCからのDV信号は、本システムにおける信号受信部102で受信される。信号受信部301は、ユーザの入力・データの入力等に基づく入力信号を処理する処理部である。信号受信部102はデジタル放送受信チューナ103、USBインタフェース104、IEEE1394インタフェース105を持ち、それぞれがデジタル放送のMPEG2、デジタルカメラからのJPEG、DVCからのDVストリームを受信する。受信した信号はマルチプレクサ302に送られ、多重化される。   The digital broadcast signal received from the antenna 101, the image signal from the digital camera, and the DV signal from the DVC are received by the signal receiving unit 102 in this system. The signal receiving unit 301 is a processing unit that processes an input signal based on user input, data input, or the like. The signal receiving unit 102 includes a digital broadcast receiving tuner 103, a USB interface 104, and an IEEE 1394 interface 105, and each receives a digital broadcast MPEG2, a JPEG from a digital camera, and a DV stream from a DVC. The received signal is sent to the multiplexer 302 and multiplexed.

SYNCパターンは、MPEG2TSであれば0x47であり、それ以外の任意のパケットについてはあらかじめ値を決めておく。たとえば図9のようなものである。MPEG2TSパケットについては何も変わらない。JPEGを多重化する場合、図10(a)のように、JPEGを示すSYNCパターン0x50の後ろに、JPEGデータがそのまま挿入される。DVについても同様であり、図10(b)のように、DVを示すSYNCパターン0x30のうしろに、そのままDVデータが挿入される。   The SYNC pattern is 0x47 in the case of MPEG2TS, and values are determined in advance for any other packets. For example, as shown in FIG. Nothing changes for MPEG2TS packets. When JPEG is multiplexed, as shown in FIG. 10A, the JPEG data is inserted as it is after the SYNC pattern 0x50 indicating JPEG. The same applies to DV. As shown in FIG. 10B, DV data is inserted as it is after the SYNC pattern 0x30 indicating DV.

マルチプレクサ302で多重化した信号は、伝送路107を通してシステムの信号処理部303に送られる。伝送路107の帯域は任意である。信号処理部303は、伝送路107から入力された信号群をデコードして出力する処理部である。   The signal multiplexed by the multiplexer 302 is sent to the signal processing unit 303 of the system through the transmission path 107. The bandwidth of the transmission path 107 is arbitrary. The signal processing unit 303 is a processing unit that decodes and outputs a signal group input from the transmission path 107.

デマルチプレクサ304は、マルチプレクサ302によってマルチプレックスされたパケットを受け取り、分解処理を行う。また、デマルチプレクサ304は、本来のTSパケットに付加されているPCR情報と、本来のTSパケットの間に挿入されたパケット数と、伝送路107のビットレートから、PCRの補正値を計算し、PCR補正部110に送る。本来のTSパケットの間に挿入されたパケットの数は、デマルチプレクサ304がカウントする。   The demultiplexer 304 receives the packet multiplexed by the multiplexer 302 and performs a decomposition process. Further, the demultiplexer 304 calculates a PCR correction value from the PCR information added to the original TS packet, the number of packets inserted between the original TS packets, and the bit rate of the transmission path 107, The data is sent to the PCR correction unit 110. The demultiplexer 304 counts the number of packets inserted between the original TS packets.

PCR補正部110は、その情報からシステムクロックをPCR揺らぎ補正する。PCR基準時刻補正もここで行う。MPEG2復号部111は、通常のMPEG2復号を行い、PCR補正部110で補正したシステムクロックに基づき映像および音声を出力する。JPEG復号部112、DV復号部113は一般的なものでよい。出来が上がった画像群は、合成部114で合成され、マルチ画面として画像表示装置(出力装置)115から出力される。   The PCR correction unit 110 corrects the PCR fluctuation of the system clock from the information. PCR reference time correction is also performed here. The MPEG2 decoding unit 111 performs normal MPEG2 decoding, and outputs video and audio based on the system clock corrected by the PCR correction unit 110. The JPEG decoding unit 112 and the DV decoding unit 113 may be general ones. The completed image group is combined by the combining unit 114 and output from the image display device (output device) 115 as a multi-screen.

マルチプレクサ302の動作について具体的に述べる。マルチプレクサ302は、デジタル放送受信チューナ103や入出力インタフェース104、105からの入力を受け取り、MPEG2TSについてはそのまま、JPEG/DVについては図3のような固定サイズのパケット形式にする。パケットサイズはMPEG2TSと同じサイズでなければならず、188Byteである。各ストリーム本体はPayload領域305に配置される。パケットは適当な順番に並べられ、伝送路107から出力される。パケットの順番は適当でよく、本実施の形態では、デジタル放送受信チューナ103や入出力インタフェース104、105から入力された順番に配置することとする。多重化の模式図を図11に示す。   The operation of the multiplexer 302 will be specifically described. The multiplexer 302 receives the input from the digital broadcast receiving tuner 103 and the input / output interfaces 104 and 105, and converts the MPEG2TS into the fixed size packet format as shown in FIG. 3 as it is for the JPEG / DV. The packet size must be the same size as MPEG2TS, and is 188 bytes. Each stream body is arranged in the Payload area 305. The packets are arranged in an appropriate order and output from the transmission path 107. The order of the packets may be appropriate. In this embodiment, the packets are arranged in the order input from the digital broadcast receiving tuner 103 and the input / output interfaces 104 and 105. A schematic diagram of multiplexing is shown in FIG.

図11において、306は本来のMPEG2TSストリーム、307は本来のJPEGストリーム、308は本来のDVストリーム、309は本実施の形態により生成される多重化ストリーム、310は第1のMPEG2TSパケット、311は第1のJPEGパケット、312は第1のDVパケット、313は第2のMPEG2TSパケット、314は第3のMPEG2TSパケットである。   In FIG. 11, 306 is an original MPEG2TS stream, 307 is an original JPEG stream, 308 is an original DV stream, 309 is a multiplexed stream generated according to this embodiment, 310 is a first MPEG2TS packet, and 311 is a first MPEG2TS packet. 1 JPEG packet, 312 is a first DV packet, 313 is a second MPEG2TS packet, and 314 is a third MPEG2TS packet.

デマルチプレクサ304は、マルチプレクサ302の付加したSYNCパターンに基づき時分割多重の分解を行うと共に、本来のMPEG2TSパケットの間に多重された新規パケットの数をカウントし、それに基づいてPCRの示すパケット到着時刻を補正する。具体的には、カウントされたパケット数とパケットサイズ、ビットレートから、PCRの示す本来の到着時刻を遅延させたPCR値に補正する。カウントされたパケット数からPCR値を補正する手法は、第1の実施の形態で説明したものと同一である。   The demultiplexer 304 performs time division multiplexing decomposition based on the SYNC pattern added by the multiplexer 302 and counts the number of new packets multiplexed between the original MPEG2TS packets, and based on this, the packet arrival time indicated by the PCR Correct. Specifically, the PCR is corrected from the counted number of packets, packet size, and bit rate to a PCR value obtained by delaying the original arrival time indicated by PCR. The method for correcting the PCR value from the counted number of packets is the same as that described in the first embodiment.

上記計算で補正されたPCR値と、実際の到着時刻とを用いて、PCR揺らぎ量を計算し、PCR補正部110はシステムクロックをPCR揺らぎ補正する。補正についても第1の実施の形態と同一である。   The PCR fluctuation amount is calculated using the PCR value corrected in the above calculation and the actual arrival time, and the PCR correction unit 110 corrects the PCR fluctuation of the system clock. The correction is also the same as in the first embodiment.

このように構成・処理することで、同期情報を保ちつつ、MPEG2TSと任意のデータを多重することが可能となる。ただし、本実施の形態では新たに挿入されたパケットの数をデマルチプレクサ304でカウントするので、複数の、同一SYNCパターンを持つストリームをマルチプレックスすることはできない。しかし、MPEG2TSについてはパケットに何ら操作を加えていないため、デマルチプレクサ304側が本実施の形態による時分割多重に対応していない場合は、0x47でないSYNCパターンを持つパケットを破棄するようにするだけで、本来のMPEG2TSを受信してデコードすることが可能となるメリットがある。   By configuring and processing in this way, it is possible to multiplex MPEG2TS and arbitrary data while maintaining synchronization information. However, in this embodiment, since the number of newly inserted packets is counted by the demultiplexer 304, a plurality of streams having the same SYNC pattern cannot be multiplexed. However, since MPEG2TS does not perform any operation on the packet, if the demultiplexer 304 does not support time division multiplexing according to this embodiment, it is only necessary to discard a packet having a SYNC pattern other than 0x47. There is an advantage that the original MPEG2TS can be received and decoded.

なお、本実施の形態が示すものは本発明の一つの例であり、本発明を限定するものではない。システム構成、多重パケットの構成は本発明の趣旨に基づくものであれば変更可能である。   In addition, what this Embodiment shows is an example of this invention, and does not limit this invention. The system configuration and the multiplex packet configuration can be changed as long as they are based on the gist of the present invention.

(第4の実施の形態)
以下、本発明の第4の実施の形態を、図面を用いて説明する。図12は、本実施の形態に係るデジタル放送受信装置の構成の一例を示すブロック図である。
(Fourth embodiment)
The fourth embodiment of the present invention will be described below with reference to the drawings. FIG. 12 is a block diagram showing an example of the configuration of the digital broadcast receiving apparatus according to this embodiment.

図12において、第1の実施の形態と同一の動作を行うものについては、図1に付した符号と同一の符号を付して、詳細な説明を省略する。401は本システムにおける信号受信部、402は、デジタル放送受信チューナ103や各種インタフェース104、105から入力された各種データ列を、多重化するストリームの種類及び本来のストリームの間に挿入されたパケットの数によって異なるSYNCパターンを付加して時分割多重するマルチプレクサである。403は本システムにおける信号処理部、404はマルチプレクサ402の多重した時分割多重データを分解するデマルチプレクサである。   12, components that perform the same operations as those in the first embodiment are denoted by the same reference numerals as those in FIG. 1, and detailed description thereof is omitted. 401 is a signal receiving unit in the present system, 402 is a type of stream to be multiplexed and various packets inserted from the digital broadcast receiving tuner 103 and various interfaces 104 and 105 and a packet inserted between the original streams. It is a multiplexer that adds time-division multiplexing by adding different SYNC patterns depending on the number. Reference numeral 403 denotes a signal processing unit in this system, and reference numeral 404 denotes a demultiplexer that decomposes the time-division multiplexed data multiplexed by the multiplexer 402.

本実施の形態が第3の実施の形態と異なるのは、SYNCパターンがあらかじめ規定されておらず、SYNCパターンの対応表をマルチプレクサ201が作成してストリームに多重することと、マルチプレクサ412が新たに多重したパケットの数の情報をSYNCパターンに持たせる点である。その他の形態は第3の実施の形態と変わらない。   This embodiment differs from the third embodiment in that the SYNC pattern is not defined in advance, the multiplexer 201 creates a correspondence table of the SYNC pattern and multiplexes it into the stream, and the multiplexer 412 newly The point is that the SYNC pattern has information on the number of multiplexed packets. Other forms are the same as in the third embodiment.

マルチプレクサ402で付加するSYNCパターンと、それに基づくデマルチプレクサ404とPCR補正部110の動作をより具体的に説明する。
マルチプレクサ402で付加するSYNCパターンには、デマルチプレクサ404で多重化した情報を分解できるように付加する情報と、パケット到着時刻補正情報として付加する情報を持たせる。図13にSYNCパターンを示す。多重化した情報を分解できるように付加する情報は、SYNCパターンの上位4Bitに付加し、パケットの到着時刻の補正をするための情報として、新規挿入パケットの数をSYNCパターンの下位4Bitに付加する。
The SYNC pattern added by the multiplexer 402 and operations of the demultiplexer 404 and the PCR correction unit 110 based on the SYNC pattern will be described more specifically.
The SYNC pattern added by the multiplexer 402 has information added so that the information multiplexed by the demultiplexer 404 can be decomposed and information added as packet arrival time correction information. FIG. 13 shows a SYNC pattern. Information to be added so that the multiplexed information can be decomposed is added to the upper 4 bits of the SYNC pattern, and the number of newly inserted packets is added to the lower 4 bits of the SYNC pattern as information for correcting the arrival time of the packet. .

SYNCパターンの上位4Bitに付加される情報はストリームの種類を示す情報である。本実施の形態では、多様なストリームを4Bitで表現するために、SYNCパターン0x11のパケットにSYNCパターンの対応表を多重する。本実施の形態ではSYNCパターンの対応表を多重するSYNCパターンのパケットを0x11としたが、マルチプレクサ402とでマルチプレクサ404が共通で認識できるパターンであれば多重するパターンはこれに限定されず、任意でよい。   Information added to the upper 4 bits of the SYNC pattern is information indicating the type of stream. In this embodiment, in order to express various streams in 4 bits, a SYNC pattern correspondence table is multiplexed on a packet of the SYNC pattern 0x11. In this embodiment, the SYNC pattern packet that multiplexes the SYNC pattern correspondence table is set to 0x11. However, the multiplexed pattern is not limited to this as long as the multiplexer 404 and the multiplexer 404 can recognize in common. Good.

SYNCパターンの対応表は、一定時間の間隔で多重される。SYNCパターンの対応表の例を図14に示す。SYNCパターンの下位4Bitに付加される情報は、本来のMPEG2TSパケットの間に挿入された新規多重パケットの数である。図11の例であれば、第1のMPEG2TSパケット310と第2のMPEG2TSパケット313は、本来のMPEG2TSストリーム306上では連続したパケットだが、マルチプレクサ402において、間に第1のJPEGパケット311と、第1のDVパケット312が挿入されているため、第2のMPEG2TSパケット313におけるSYNCパターンの下位4Bitには「2」という数値が付加される。   The SYNC pattern correspondence table is multiplexed at regular time intervals. An example of the correspondence table of SYNC patterns is shown in FIG. The information added to the lower 4 bits of the SYNC pattern is the number of newly multiplexed packets inserted between the original MPEG2 TS packets. In the example of FIG. 11, the first MPEG2 TS packet 310 and the second MPEG2 TS packet 313 are continuous packets on the original MPEG2 TS stream 306, but in the multiplexer 402, the first JPEG packet 311, Since one DV packet 312 is inserted, a numerical value “2” is added to the lower 4 bits of the SYNC pattern in the second MPEG2TS packet 313.

デマルチプレクサ404は、まず、マルチプレクサ402の付加した、多重化分解用情報に基づきデマルチプレックスを行う。デマルチプレクサは、まず0x11のパケットが受信されるまで待ち、SYNCパターンの対応表を取得する。SYNCパターンの対応表を取得したあとは、対応表に指定された情報を元に多重ストリームのデマルチプレックスを行う。   First, the demultiplexer 404 performs demultiplexing based on the demultiplexing information added by the multiplexer 402. The demultiplexer first waits until a 0x11 packet is received, and obtains a SYNC pattern correspondence table. After acquiring the SYNC pattern correspondence table, demultiplexing of multiple streams is performed based on the information specified in the correspondence table.

次に、デマルチプレクサ404は、パケット到着時刻補正情報に基づいて、PCRの示すパケット到着時刻を補正する。具体的には、PCRの値に、SYNCパケットの下位4Bitで示された値とパケットサイズ、ビットレートから、PCRの示す本来の到着時刻を遅延させたPCR値に補正する。補正の計算式は第1の実施の形態と同一である。   Next, the demultiplexer 404 corrects the packet arrival time indicated by the PCR based on the packet arrival time correction information. Specifically, the PCR value is corrected to the PCR value obtained by delaying the original arrival time indicated by the PCR from the value, packet size, and bit rate indicated by the lower 4 bits of the SYNC packet. The calculation formula for correction is the same as that in the first embodiment.

パケット到着時刻補正情報で補正されたPCR値と、実際の到着時刻を用いて、PCR揺らぎ量を計算し、PCR補正部110はシステムクロックをPCR揺らぎ補正する。PCR基準時刻補正もここで行う。補正の手法は第1の実施の形態と同一である。   The PCR fluctuation amount is calculated using the PCR value corrected by the packet arrival time correction information and the actual arrival time, and the PCR correction unit 110 corrects the PCR fluctuation of the system clock. PCR reference time correction is also performed here. The correction method is the same as that in the first embodiment.

このように構成・処理することで、同期情報を保ちつつ、MPEG2TSと任意のデータを多重することが可能となる。   By configuring and processing in this way, it is possible to multiplex MPEG2TS and arbitrary data while maintaining synchronization information.

なお、本実施の形態が示すものは本発明の一つの例であり、本発明を限定するものではない。システム構成、多重パケットの構成は本発明の趣旨に基づくものであれば変更可能である。   In addition, what this Embodiment shows is an example of this invention, and does not limit this invention. The system configuration and the multiplex packet configuration can be changed as long as they are based on the gist of the present invention.

(第5の実施の形態)
以下、本発明の第5の実施の形態を、図面を用いて説明する。図15は、本実施の形態に係るデジタル放送受信装置の構成の一例を示すブロック図である。
(Fifth embodiment)
Hereinafter, a fifth embodiment of the present invention will be described with reference to the drawings. FIG. 15 is a block diagram showing an example of the configuration of the digital broadcast receiving apparatus according to the present embodiment.

本実施の形態では、チューナから入力されたMPEG2TSと、録画番組が記憶されているハードディスクから入力されたMPEG2TSと、DVから入力されたDVストリームとを、信号受信部で受信し、時分割多重して信号処理部へ伝送し、信号処理部で2つのMPEG2TS・DVのデコードを行い、出力画像を合成して表示する。   In this embodiment, the MPEG2TS input from the tuner, the MPEG2TS input from the hard disk in which the recorded program is stored, and the DV stream input from the DV are received by the signal receiving unit and time-division multiplexed. Are transmitted to the signal processing unit, the MPEG2TS • DV is decoded by the signal processing unit, and the output image is synthesized and displayed.

図15において、第1の実施の形態と同一の意味を持つ領域には、図2に付した符号と同一の符号を付して、詳細な説明を省略する。また、第2の実施の形態と同一の意味を持つ領域には、図4に付した符号と同一の符号を付して、詳細な説明を省略する。
図15において、501は本システムにおける信号受信部、502はアンテナ101から入力される放送波MPEG2TSと、TS保持メモリ204から読み出す蓄積MPEG2TSと、IEEE1394から入力されるDVストリームを、パケット到着時刻補正情報及びストリーム間PCR差分情報を付加しながら時分割多重するマルチプレクサである。503は本システムにおける信号処理部、504はマルチプレクサ502の多重した時分割多重データを分解するデマルチプレクサである。
15, regions having the same meaning as in the first embodiment are denoted by the same reference numerals as those in FIG. 2, and detailed description thereof is omitted. In addition, the same reference numerals as those in FIG. 4 are given to regions having the same meaning as in the second embodiment, and detailed description thereof is omitted.
In FIG. 15, 501 is a signal receiving unit in this system, 502 is a broadcast wave MPEG2TS inputted from the antenna 101, an accumulated MPEG2TS read from the TS holding memory 204, and a DV stream inputted from IEEE1394, and packet arrival time correction information And a multiplexer that performs time-division multiplexing while adding inter-stream PCR difference information. Reference numeral 503 denotes a signal processing unit in this system, and reference numeral 504 denotes a demultiplexer that decomposes the time-division multiplexed data multiplexed by the multiplexer 502.

アンテナ101で受信されたデジタル放送信号と、ハードディスク201からHDDコントローラ202を介して入力される蓄積放送信号と、DVC(Digital Video Camera)からのDV信号は、本システムにおける信号受信部501に入力される。信号受信部501はデジタル放送受信チューナ103、IEEE1394インタフェース105、TS保持メモリ204を持ち、それぞれがデジタル放送のMPEG2、DVCからのDVストリーム、ハードディスクからの蓄積MPEG2を受信する。本実施の形態では、アンテナから入力される放送波のTSと、蓄積媒体から入力される蓄積TSの2つのTS入力と、DVCからの1つのDVストリームが同時に入力された状態を想定している。受信した信号はマルチプレクサ502に送られ、多重化される。   A digital broadcast signal received by the antenna 101, a stored broadcast signal input from the hard disk 201 via the HDD controller 202, and a DV signal from a DVC (Digital Video Camera) are input to the signal receiving unit 501 in this system. The The signal receiving unit 501 includes a digital broadcast receiving tuner 103, an IEEE 1394 interface 105, and a TS holding memory 204, which respectively receive digital broadcast MPEG2, DV stream from DVC, and stored MPEG2 from the hard disk. In the present embodiment, it is assumed that two TS inputs of a broadcast wave TS input from an antenna, a storage TS input from a storage medium, and one DV stream from a DVC are input simultaneously. . The received signal is sent to the multiplexer 502 and multiplexed.

マルチプレクサ502の作成するパケットは、第2の実施の形態と同一のパケットであり、図5で示されるものである。
つまり、本実施の形態においても2つのMPEG2TSの実態およびDVストリームの実態はPayload領域121に入り、それに各種ヘッダ116〜120と、Pcr_Offset_Table_Size領域213と、Pcr_Offset_Table領域214とが付加されているような形となる。ヘッダ情報には、パケット到着時刻補正情報として、Arrival_Revise領域120が付加される。本実施の形態では、付加される情報は、本来のMPEG2TSパケットの間に挿入されたもう一方のMPEG2TSパケットの数およびDVパケットの数である。
The packet created by the multiplexer 502 is the same packet as in the second embodiment and is shown in FIG.
That is, also in the present embodiment, the actual state of the two MPEG2TSs and the actual state of the DV stream enter the payload area 121, and various headers 116 to 120, a Pcr_Offset_Table_Size area 213, and a Pcr_Offset_Table area 214 are added thereto. It becomes. In the header information, an Arrival_Revise area 120 is added as packet arrival time correction information. In the present embodiment, the information to be added is the number of the other MPEG2TS packets and the number of DV packets inserted between the original MPEG2TS packets.

また、第2の実施の形態と同様にPcr_Offset_Table領域214には、ストリーム間PCR差分情報として、2つのMPEG2TSがもつPCR間の差分値をテーブルとして付加する。Pcr_Offset_Table領域214のパケット中のサイズを確定するために、Pcr_Offset_Table_Size領域213に、テーブルのサイズを付加する。   Similarly to the second embodiment, the Pcr_Offset_Table area 214 adds, as a table, a difference value between PCRs of two MPEG2 TSs as PCR difference information between streams. In order to determine the size in the packet of the Pcr_Offset_Table area 214, the size of the table is added to the Pcr_Offset_Table_Size area 213.

マルチプレクサ502で多重化した信号は、伝送路107を通してシステムの信号処理部503に送られる。伝送路107の帯域は任意である。信号処理部503は、伝送路107から入力された信号群をデコードして出力する処理部である。   The signal multiplexed by the multiplexer 502 is sent to the signal processing unit 503 of the system through the transmission path 107. The bandwidth of the transmission path 107 is arbitrary. The signal processing unit 503 is a processing unit that decodes and outputs a signal group input from the transmission path 107.

デマルチプレクサ504は、マルチプレクサ502で多重化したパケットを分解するとともに、パケット到着時刻補正情報(Arrival_Revise領域120)に基づき、パケット到着時刻を示すPCR値を補正する。   The demultiplexer 504 decomposes the packet multiplexed by the multiplexer 502 and corrects the PCR value indicating the packet arrival time based on the packet arrival time correction information (Arrival_Revision area 120).

また、デマルチプレクサ504は、ユーザもしくはシステムにより選択された、システムクロックを補正するための基準となるMPEG2TSの、パケット到着時刻補正情報により補正されたPCR値をPCR補正部209に送る。システムクロックは単一であり、PCR揺らぎ補正の基準とするストリームは、たとえ複数のMPEG2TSがあっても1つのみであることは第2の実施の形態と変わらない。   Further, the demultiplexer 504 sends the PCR value corrected by the packet arrival time correction information of the MPEG2 TS, which is selected by the user or the system and serves as a reference for correcting the system clock, to the PCR correction unit 209. The system clock is single, and even if there are a plurality of MPEG2TSs, there is only one stream as a reference for PCR fluctuation correction, which is the same as in the second embodiment.

DV復号部113の動作は第1の実施の形態と同様であり、PCR補正部209およびMPEG2復号部210は、第2の実施の形態と同様である。復号処理の結果出来上がったストリームは合成部114で合成され、マルチ画面として画像表示装置(出力装置)115から出力される。   The operation of the DV decoding unit 113 is the same as that of the first embodiment, and the PCR correction unit 209 and the MPEG2 decoding unit 210 are the same as those of the second embodiment. The stream obtained as a result of the decoding process is combined by the combining unit 114 and output from the image display device (output device) 115 as a multi-screen.

マルチプレクサ502の動作と、ストリーム間PCR差分情報について具体的に述べる。
マルチプレクサ502のパケット多重動作は、第1および第2の実施の形態と同様である。また、デマルチプレクサ504のパケット分解のために付加する情報も、第1および第2の実施の形態と同様である。
The operation of the multiplexer 502 and the inter-stream PCR difference information will be specifically described.
The packet multiplexing operation of the multiplexer 502 is the same as in the first and second embodiments. Also, the information added for the packet decomposition of the demultiplexer 504 is the same as in the first and second embodiments.

本実施の形態が第1、第2の実施の形態と異なるのは、MPEG2TS、つまりプログラム同期情報をもつストリームが複数あり、かつ同期情報をもたないDVストリームが同時に多重される点である。   This embodiment is different from the first and second embodiments in that there are a plurality of MPEG2TS, that is, a plurality of streams having program synchronization information, and DV streams having no synchronization information are simultaneously multiplexed.

第2の実施の形態ですでに説明したとおり、2つのMPEG2TSストリームが異なる時刻に作成されたPCRを持っているため、補正の基準となるストリームを選択し、ストリーム時間を合わせる処理を行う。   As already described in the second embodiment, since two MPEG2 TS streams have PCRs created at different times, a stream serving as a reference for correction is selected and processing for adjusting the stream time is performed.

実際のマルチプレクサ502の動作は、第1の実施の形態と第2の実施の形態で行った処理をあわせたものとなる。パケット到着時刻補正情報として、もう一方のMPEG2TSおよびDVのパケット数を用いる。マルチプレクサ502の作成する多重化ストリームと、プログラム間PCR差分情報の例は、図16のようになる。   The actual operation of the multiplexer 502 is a combination of the processing performed in the first embodiment and the second embodiment. The other MPEG2 TS and DV packet numbers are used as packet arrival time correction information. An example of the multiplexed stream created by the multiplexer 502 and the inter-program PCR difference information is as shown in FIG.

図16において、505は本来の放送波のMPEG2TS−1ストリーム、506は本来の蓄積MPEG2TS−2ストリーム、507は本来のDVストリーム、508は本実施の形態による多重化ストリーム、509は第1の放送波MPEG2TS−1パケット、510は第1の蓄積MPEG2TSパケット−2、511は第1のDVパケット、512は第2の放送波MPEG2TS−1パケット、513は第2の蓄積MPEG2TS−2パケット、514は第2のDVパケット、515は第1の放送波MPEG2TS−1パケット509に付加されるPcr_Offset_Table、516は第1の蓄積MPEG2TS−2パケット510に付加されるPcr_Offset_Tableである。   In FIG. 16, 505 is the original broadcast MPEG2 TS-1 stream, 506 is the original stored MPEG2 TS-2 stream, 507 is the original DV stream, 508 is the multiplexed stream according to the present embodiment, and 509 is the first broadcast. Wave MPEG2TS-1 packet, 510 is the first accumulated MPEG2TS packet-2, 511 is the first DV packet, 512 is the second broadcast wave MPEG2TS-1 packet, 513 is the second accumulated MPEG2TS-2 packet, 514 The second DV packet 515 is a Pcr_Offset_Table added to the first broadcast wave MPEG2 TS-1 packet 509, and 516 is a Pcr_Offset_Table added to the first stored MPEG2 TS-2 packet 510.

各プログラム間PCR差分情報は、2つのMPEG2TSストリーム間のPCR差分情報を持っている。これは、ユーザもしくはシステムがどちらのストリームをクロック基準としてもプログラム同期情報が破綻しないようにするためのものである。   Each program PCR difference information has PCR difference information between two MPEG2 TS streams. This is to prevent the program synchronization information from failing regardless of which stream the user or system uses as the clock reference.

デマルチプレクサ504は、STREAM_TYPE領域118の情報からパケットがプログラム同期情報を含むパケットか否かを判断する。プログラム同期情報を含むパケットの場合、つぎにそのパケットを含むストリームがクロック基準として選択されているかどうかをチェックする。クロック基準として選択されているストリーム(クロック基準ストリーム)であれば、ストリーム間PCR差分情報は使用しない。この場合は、第1、第2の実施の形態と同様に、パケット到着時刻補正情報によりPCR値を補正し、PCR補正部209にPCR補正値を通知する。   The demultiplexer 504 determines from the information in the STREAM_TYPE area 118 whether the packet includes program synchronization information. In the case of a packet containing program synchronization information, it is next checked whether the stream containing the packet is selected as the clock reference. If the stream is selected as a clock reference (clock reference stream), the inter-stream PCR difference information is not used. In this case, as in the first and second embodiments, the PCR value is corrected based on the packet arrival time correction information, and the PCR correction value is notified to the PCR correction unit 209.

STREAM_TYPE領域118で指示されるストリームタイプがプログラム同期情報を含むストリームであり、かつクロック基準ストリームでない場合の動作は、第2の実施の形態に記載済みである。つまり、まずパケット到着時刻補正情報でPCR値を補正したあと、さらにストリーム間PCR差分情報に基づき、クロック基準ストリームと、自身のPCRとの差分値を取得し、さらにPCR値を補正するというものである。   The operation when the stream type indicated in the STREAM_TYPE area 118 is a stream including program synchronization information and is not a clock reference stream has been described in the second embodiment. In other words, first the PCR value is corrected with the packet arrival time correction information, and then, based on the inter-stream PCR difference information, the difference value between the clock reference stream and its own PCR is acquired, and the PCR value is further corrected. is there.

STREAM_TYPE領域118で指示されるストリームタイプがプログラム同期情報を含まないストリーム、本実施の形態ではDVストリームである場合は、Payload121をDV復号部113に出力するのみである。   When the stream type indicated in the STREAM_TYPE area 118 is a stream that does not include program synchronization information, which is a DV stream in this embodiment, only the payload 121 is output to the DV decoding unit 113.

図16の例で、具体的なPCR値の補正を説明する。ストリーム基準を放送波MPEG2TS−1に指定した場合、放送波MPEG2TS−1に関しては第1の実施の形態と同様に動作する。つまり、第1の実施の形態と同様に間に2つのパケットがあることがパケット到着時刻補正情報であるArrival_Revise領域120に示されている。第1のMPEG2TS−1パケット219のPCRが10000で、第2のMPEG2TSのPCRが13000、パケットサイズが256Byte、ビットレートが30Mbpsであると仮定すると、パケット到着時刻補正情報によるPCR値は第1の実施の形態で計算したとおり、13515(10000+3515=13515)となる。   With reference to the example of FIG. 16, a specific PCR value correction will be described. When the stream standard is designated as the broadcast wave MPEG2TS-1, the broadcast wave MPEG2TS-1 operates in the same manner as in the first embodiment. That is, the arrival_revise area 120 which is packet arrival time correction information indicates that there are two packets in the same way as in the first embodiment. Assuming that the PCR of the first MPEG2TS-1 packet 219 is 10,000, the PCR of the second MPEG2TS is 13000, the packet size is 256 bytes, and the bit rate is 30 Mbps, the PCR value according to the packet arrival time correction information is the first PCR value. As calculated in the embodiment, 13515 (10000 + 3515 = 13515) is obtained.

放送波MPEG2TS−1がPCRの基準として選択されている際の蓄積MPEG2TS−2の時間補正は、第2の実施の形態と同様である。つまり、まず、パケット到着時刻補正情報であるArrival_Revise領域120には、第1の蓄積MPEG2TS−2パケット510には第1の放送波MPEG2TSパケット509と第1のDVストリームパケット511が挿入されたことを示す「2」が示されており、第1の実施の形態で計算したとおり、PCRに3515を加えたものが第1のPCR値となる。さらに、第1の蓄積MPEG2TS−2パケット510に付加されているPcr_Offset_Table515より、放送波MPEG2TS−1とのPCRオフセットが+7700とわかるので、加算が行われ、プログラム間PCR差分情報適用後のPCR値は、2300と3515と7700とを加算して(2300+3515+7700)、13515となる。   The time correction of the stored MPEG2TS-2 when the broadcast wave MPEG2TS-1 is selected as the PCR standard is the same as in the second embodiment. That is, first, in the Arrival_Revise area 120 that is the packet arrival time correction information, the first broadcast wave MPEG2 TS packet 509 and the first DV stream packet 511 are inserted into the first stored MPEG2 TS-2 packet 510. “2” is shown, and as calculated in the first embodiment, a value obtained by adding 3515 to the PCR is the first PCR value. Further, the Pcr_Offset_Table 515 added to the first stored MPEG2TS-2 packet 510 indicates that the PCR offset from the broadcast wave MPEG2TS-1 is +7700. Therefore, the addition is performed and the PCR value after applying the inter-program PCR difference information is 2300, 3515, and 7700 are added (2300 + 3515 + 7700) to obtain 13515.

プログラム間PCR差分情報であるPcr_Offset_Tableの作成手法も第2の実施の形態と同一であるので説明は省略する。
なお、本実施の形態が示すものは本発明の一つの例であり、本発明を限定するものではない。システム構成、多重パケットの構成は本発明の趣旨に基づくものであれば変更可能である。
また、本実施の形態では、MPEG2TSを例に挙げて説明したが、MPEG2TSの代わりにMPEG2PSを用いても前述したのと同様にして処理することができる。
Since the method for creating Pcr_Offset_Table, which is the inter-program PCR difference information, is also the same as in the second embodiment, the description thereof is omitted.
In addition, what this Embodiment shows is an example of this invention, and does not limit this invention. The system configuration and the multiplex packet configuration can be changed as long as they are based on the gist of the present invention.
In the present embodiment, MPEG2TS has been described as an example. However, even if MPEG2PS is used instead of MPEG2TS, processing can be performed in the same manner as described above.

(本発明の他の実施形態)
上述した実施形態の機能を実現するべく各種のデバイスを動作させるように、該各種デバイスと接続された装置あるいはシステム内のコンピュータに対し、前記実施形態の機能を実現するためのソフトウェアのプログラムコードを供給し、そのシステムあるいは装置のコンピュータ(CPUあるいはMPU)に格納されたプログラムに従って前記各種デバイスを動作させることによって実施したものも、本発明の範疇に含まれる。
(Other embodiments of the present invention)
In order to operate various devices to realize the functions of the above-described embodiments, program codes of software for realizing the functions of the above-described embodiments are provided to an apparatus or a computer in the system connected to the various devices. What is implemented by operating the various devices according to a program supplied and stored in a computer (CPU or MPU) of the system or apparatus is also included in the scope of the present invention.

また、この場合、前記ソフトウェアのプログラムコード自体が上述した実施形態の機能を実現することになり、そのプログラムコード自体、およびそのプログラムコードをコンピュータに供給するための手段、例えば、かかるプログラムコードを格納した記録媒体は本発明を構成する。かかるプログラムコードを記憶する記録媒体としては、例えばフレキシブルディスク、ハードディスク、光ディスク、光磁気ディスク、CD−ROM、磁気テープ、不揮発性のメモリカード、ROM等を用いることができる。   Further, in this case, the program code of the software itself realizes the functions of the above-described embodiments, and the program code itself and means for supplying the program code to the computer, for example, the program code is stored. The recorded medium constitutes the present invention. As a recording medium for storing the program code, for example, a flexible disk, a hard disk, an optical disk, a magneto-optical disk, a CD-ROM, a magnetic tape, a nonvolatile memory card, a ROM, or the like can be used.

また、コンピュータが供給されたプログラムコードを実行することにより、上述の実施形態の機能が実現されるだけでなく、そのプログラムコードがコンピュータにおいて稼働しているOS(オペレーティングシステム)あるいは他のアプリケーションソフト等と共同して上述の実施形態の機能が実現される場合にもかかるプログラムコードは本発明の実施形態に含まれることは言うまでもない。   Further, by executing the program code supplied by the computer, not only the functions of the above-described embodiments are realized, but also the OS (operating system) or other application software in which the program code is running on the computer, etc. It goes without saying that the program code is also included in the embodiment of the present invention even when the functions of the above-described embodiment are realized in cooperation with the embodiment.

さらに、供給されたプログラムコードがコンピュータの機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに格納された後、そのプログラムコードの指示に基づいてその機能拡張ボードや機能拡張ユニットに備わるCPU等が実際の処理の一部または全部を行い、その処理によって上述した実施形態の機能が実現される場合にも本発明に含まれることは言うまでもない。   Further, after the supplied program code is stored in the memory provided in the function expansion board of the computer or the function expansion unit connected to the computer, the CPU provided in the function expansion board or function expansion unit based on the instruction of the program code Needless to say, the present invention includes a case where the functions of the above-described embodiment are realized by performing part or all of the actual processing.

本発明の第1の実施の形態を示し、デジタル放送受信装置の構成の一例を示すブロック図である。1 is a block diagram illustrating an example of a configuration of a digital broadcast receiving device according to a first embodiment of this invention. FIG. 本発明の第1の実施の形態を示し、マルチプレクサの作成する多重化パケットの形態例を示す模式図である。FIG. 5 is a schematic diagram illustrating an example of a multiplexed packet created by a multiplexer according to the first embodiment of this invention. 本発明の第1の実施の形態を示し、マルチプレクサの作成する多重化パケット列の形態例を示す模式図である。FIG. 3 is a schematic diagram illustrating an example of a multiplexed packet sequence created by a multiplexer according to the first embodiment of this invention. 本発明の第2の実施の形態を示し、デジタル放送受信装置の構成の一例を示すブロック図である。It is a block diagram which shows the 2nd Embodiment of this invention and shows an example of a structure of a digital broadcast receiver. 本発明の第2の実施の形態を示し、マルチプレクサの作成する多重化パケットの形態例を示す模式図である。It is a schematic diagram which shows the 2nd Embodiment of this invention and shows the example of the form of the multiplexed packet which a multiplexer produces. 本発明の第2の実施の形態を示し、マルチプレクサの作成する多重化パケット列の形態及び第2のPCR補正情報の付加例を示す模式図である。It is a schematic diagram which shows the 2nd Embodiment of this invention and shows the addition form of the form of the multiplexed packet sequence which a multiplexer produces, and 2nd PCR correction information. 本発明の第2の実施の形態を示し、Pcr_Offset_Tableの作成手法の一例を示す模式図である。It is a schematic diagram which shows the 2nd Embodiment of this invention and shows an example of the production method of Pcr_Offset_Table. 本発明の第3の実施の形態を示し、デジタル放送受信装置の構成の一例を示すブロック図である。It is a block diagram which shows the 3rd Embodiment of this invention and shows an example of a structure of a digital broadcast receiver. 本発明の第3の実施の形態を示し、マルチプレクサで付加するSYNCパターンの一例を示す図である。It is a figure which shows the 3rd Embodiment of this invention and shows an example of the SYNC pattern added with a multiplexer. 本発明の第3の実施の形態を示し、マルチプレクサが作成するパケットの形態の一例を示す図である。It is a figure which shows the 3rd Embodiment of this invention and shows an example of the form of the packet which a multiplexer produces. 本発明の第3の実施の形態を示し、マルチプレクサの作成する多重化パケット列の形態例を示す模式図である。It is a schematic diagram which shows the 3rd Embodiment of this invention and shows the example of the form of the multiplexed packet sequence which a multiplexer produces. 本発明の第4の実施の形態を示し、デジタル放送受信装置の構成の一例を示すブロック図である。It is a block diagram which shows the 4th Embodiment of this invention and shows an example of a structure of a digital broadcast receiver. 本発明の第4の実施の形態を示し、マルチプレクサが付加するSYNCパターンの一例を示す図である。It is a figure which shows the 4th Embodiment of this invention and shows an example of the SYNC pattern which a multiplexer adds. 本発明の第4の実施の形態を示し、マルチプレクサが作成するSYNCパターンの対応表の一例を示す図である。It is a figure which shows the 4th Embodiment of this invention and shows an example of the correspondence table of the SYNC pattern which a multiplexer produces. 本発明の第5の実施の形態を示し、デジタル放送受信装置の構成の一例を示すブロック図である。It is a block diagram which shows the 5th Embodiment of this invention and shows an example of a structure of a digital broadcast receiver. 本発明の第5の実施の形態を示し、マルチプレクサの作成する多重化パケットの形態例を示す模式図である。It is a schematic diagram which shows the 5th Embodiment of this invention and shows the example of the multiplexed packet which a multiplexer produces.

符号の説明Explanation of symbols

101 アンテナ
102 信号受信部
103 デジタル放送受信チューナ
104 USBインタフェース
105 IEEE1394インタフェース
106 マルチプレクサ
107 伝送路
108 信号処理部
109 デマルチプレクサ
110 PCR補正部
111 MPEG2復号部
112 JPEG復号部
113 DV復号部
114 合成部
115 画像表示装置
116 SYNC領域
117 Arrival_Revise_Flag領域
118 Stream_Type領域
119 Stream_Id領域
120 Arrival_Revise領域
121 Payload領域
122 本来のMPEG2TSストリーム
123 本来のJPEGストリーム
124 本来のDVストリーム
125 多重化ストリーム
126 第1のMPEG2TSパケット
127 第1のJPEGパケット
128 第1のDVパケット
129 第2のMPEG2TSパケット
130 第3のMPEG2TSパケット
201 ハードディスク
202 ハードディスクコントローラ
203 信号入力部
204 TS保持メモリ
205 マルチプレクサ
206 伝送路
207 信号処理部
208 デマルチプレクサ
209 PCR補正部
210 MPEG2復号部
211 合成部
212 画像表示装置
213 Pcr_Offset_Table_Size領域
214 Pcr_Offset_Table領域
215 本来のMPEG2TS−1ストリーム
216 本来のMPEG2TS−2ストリーム
217 本来のMPEG2TS−3ストリーム
218 多重化ストリーム
219 第1のMPEG2TS−1パケット
220 第1のMPEG2TS−2パケット
221 第1のMPEG2TS−3パケット
222 第2のMPEG2TS−1パケット
223 第2のMPEG2TS−2パケット
224 第2のMPEG2TS−3パケット
225〜227 Pcr_Offset_Table
228 システムクロック
229 第1のMPEG2TS−1パケットのPCR値
230 第2のMPEG2TS−1パケットのPCR値
231 第1のMPEG2TS−2パケットのPCR値
232 第2のMPEG2TS−2パケットのPCR値
233 第1のMPEG2TS−3パケットのPCR値
234 第2のMPEG2TS−3パケットのPCR値
301 信号受信部
302 マルチプレクサ
303 信号処理部
304 デマルチプレクサ
305 マルチプレクサの作成するパケットのペイロード
306 本来のMPEG2TSストリーム
307 本来のJPEGストリーム
308 本来のDVストリーム
309 多重化ストリーム
310 第1のMPEG2TSパケット
311 第1のJPEGパケット
312 第1のDVパケット
313 第2のMPEG2TSパケット
314 第3のMPEG2TSパケット
401 信号受信部
402 マルチプレクサ
403 信号処理部
404 デマルチプレクサ
501 信号受信部
502 マルチプレクサ
503 信号処理部
504 デマルチプレクサ
505 本来の放送波のMPEG2TS−1ストリーム
506 本来の蓄積MPEG2TS−2ストリーム
507 本来のDVストリーム
508 多重化ストリーム
509 第1の放送波MPEG2TS−1パケット
510 第1の蓄積MPEG2TSパケット−2
511 第1のDVパケット
512 第2の放送波MPEG2TS−1パケット
513 第2の蓄積MPEG2TS−2パケット
514 第2のDVパケット
515、516 Pcr_Offset_Table
DESCRIPTION OF SYMBOLS 101 Antenna 102 Signal receiving part 103 Digital broadcast receiving tuner 104 USB interface 105 IEEE1394 interface 106 Multiplexer 107 Transmission path 108 Signal processing part 109 Demultiplexer 110 PCR correction part 111 MPEG2 decoding part 112 JPEG decoding part 113 DV decoding part 114 Composition part 115 Image Display device 116 SYNC area 117 Arrival_Revise_Flag area 118 Stream_Type area 119 Stream_Id area 120 Arrival_Revise area 121 Payload area 122 Original MPEG2 TS stream 123 Original JPEG stream 124 Original DV stream 125 Original DV stream 125 EG packet 128 First DV packet 129 Second MPEG2 TS packet 130 Third MPEG2 TS packet 201 Hard disk 202 Hard disk controller 203 Signal input unit 204 TS holding memory 205 Multiplexer 206 Transmission path 207 Signal processing unit 208 Demultiplexer 209 PCR correction unit 210 MPEG2 decoding unit 211 Compositing unit 212 Image display device 213 Pcr_Offset_Table_Size area 214 Pcr_Offset_Table area 215 Original MPEG2TS-1 stream 216 Original MPEG2TS-2 stream 217 Original MPEG2TS-3 stream 218 Multiplexed stream 219 First MPEG2TS-1 packet 220 First MPEG2 TS-2 packet 221 1st MPEG2TS-3 packet 222 2nd MPEG2TS-1 packet 223 2nd MPEG2TS-2 packet 224 2nd MPEG2TS-3 packet 225-227 Pcr_Offset_Table
228 System clock 229 PCR value 230 of the first MPEG2 TS-1 packet PCR value 231 of the second MPEG2 TS-1 packet PCR value 232 of the first MPEG2 TS-2 packet PCR value 233 of the second MPEG2 TS-2 packet MPEG2 TS-3 packet PCR value 234 Second MPEG2 TS-3 packet PCR value 301 Signal receiving unit 302 Multiplexer 303 Signal processing unit 304 Demultiplexer 305 Packet payload 306 created by the multiplexer Original MPEG2 TS stream 307 Original JPEG stream 308 Original DV stream 309 Multiplexed stream 310 First MPEG2 TS packet 311 First JPEG packet 312 First DV packet 313 Second MPE 2TS packet 314 Third MPEG2TS packet 401 Signal receiving unit 402 Multiplexer 403 Signal processing unit 404 Demultiplexer 501 Signal receiving unit 502 Multiplexer 503 Signal processing unit 504 Demultiplexer 505 Original broadcast wave MPEG2 TS-1 stream 506 Original accumulation MPEG2TS- 2 stream 507 Original DV stream 508 Multiplexed stream 509 First broadcast wave MPEG2 TS-1 packet 510 First accumulated MPEG2 TS packet-2
511 First DV packet 512 Second broadcast wave MPEG2 TS-1 packet 513 Second stored MPEG2 TS-2 packet 514 Second DV packet 515, 516 Pcr_Offset_Table

Claims (5)

複数のMPEG2トランスポートストリームと、複数の任意のデータを、前記MPEG2トランスポートストリームのデータパケットサイズである188Byteに分割するとともに、前記MPEG2トランスポートストリームのSYNCパターンを、多重化するパケットの内容毎に異なるパターンに変更して付加し、多重化ストリームを作成するマルチプレクサと、
前記マルチプレクサにより作成された多重化ストリームを分離するデマルチプレクサとを具備し、
前記多重化するパケットの内容毎に異なるSYNCパターンは、あらかじめ定められた各ストリームを示すパターンに、前記MPEG2トランスポートストリームの間に挿入された前記任意のデータのパケット数を加えたパターンであることを特徴とするデジタルデータ受信装置。
A plurality of MPEG2 transport streams and a plurality of arbitrary data are divided into 188 bytes which are the data packet size of the MPEG2 transport stream, and the SYNC pattern of the MPEG2 transport stream is divided for each content of the packet to be multiplexed. A multiplexer that changes and adds different patterns to create a multiplexed stream;
A demultiplexer for separating the multiplexed stream created by the multiplexer,
The SYNC pattern that differs depending on the content of the packet to be multiplexed is a pattern obtained by adding the number of packets of the arbitrary data inserted between the MPEG2 transport streams to a predetermined pattern indicating each stream. A digital data receiving device.
前記複数のMPEG2トランスポートストリームを入力するデジタル放送受信チューナと、
前記複数の任意のデータを入力する入出力インタフェースとを具備し、
前記マルチプレクサは、前記複数のMPEG2トランスポートストリームを、前記デジタル放送受信チューナから受け取り、前記複数の任意のデータを前記入出力インタフェースから受け取ることを特徴とする請求項1に記載のデジタルデータ受信装置。
A digital broadcast receiving tuner for inputting the plurality of MPEG2 transport streams;
An input / output interface for inputting the plurality of arbitrary data,
2. The digital data receiving apparatus according to claim 1, wherein the multiplexer receives the plurality of MPEG2 transport streams from the digital broadcast receiving tuner and receives the plurality of arbitrary data from the input / output interface.
前記デマルチプレクサは、前記MPEG2トランスポートストリームのパケットの間に新たに挿入された前記任意のデータのパケット数をカウントし、カウントしたパケット数に基づいて、前記MPEG2トランスポートストリームに付加されているPCRを補正することを特徴とする請求項1又は2に記載のデジタルデータ受信装置。   The demultiplexer counts the number of packets of the arbitrary data newly inserted between packets of the MPEG2 transport stream, and the PCR added to the MPEG2 transport stream based on the counted number of packets The digital data receiver according to claim 1, wherein the digital data receiver is corrected. 複数のMPEG2トランスポートストリームと、複数の任意のデータを、前記MPEG2トランスポートストリームのデータパケットサイズである188Byteに分割するとともに、前記MPEG2トランスポートストリームのSYNCパターンを、多重化するパケットの内容毎に異なるパターンに変更して付加し、多重化ストリームを作成する多重化ストリーム作成ステップと、
前記多重化ストリーム作成ステップにより作成された多重化ストリームを分離する多重化ストリーム分離ステップとを具備し、
前記多重化するパケットの内容毎に異なるSYNCパターンは、あらかじめ定められた各ストリームを示すパターンに、前記MPEG2トランスポートストリームの間に挿入された前記任意のデータのパケット数を加えたパターンであることを特徴とするデジタルデータ受信方法。
A plurality of MPEG2 transport streams and a plurality of arbitrary data are divided into 188 bytes which are the data packet size of the MPEG2 transport stream, and the SYNC pattern of the MPEG2 transport stream is divided for each content of the packet to be multiplexed. A multiplexed stream creation step for creating a multiplexed stream by changing and adding different patterns,
A multiplexed stream separating step for separating the multiplexed stream created by the multiplexed stream creating step;
The SYNC pattern that differs depending on the content of the packet to be multiplexed is a pattern obtained by adding the number of packets of the arbitrary data inserted between the MPEG2 transport streams to a predetermined pattern indicating each stream. A method of receiving digital data.
複数のMPEG2トランスポートストリームと、複数の任意のデータを、前記MPEG2トランスポートストリームのデータパケットサイズである188Byteに分割するとともに、前記MPEG2トランスポートストリームのSYNCパターンを、多重化するパケットの内容毎に異なるパターンに変更して付加し、多重化ストリームを作成する多重化ストリーム作成ステップと、
前記多重化ストリーム作成ステップにより作成された多重化ストリームを分離する多重化ストリーム分離ステップとをコンピュータに実行させ、
前記多重化するパケットの内容毎に異なるSYNCパターンは、あらかじめ定められた各ストリームを示すパターンに、前記MPEG2トランスポートストリームの間に挿入された前記任意のデータのパケット数を加えたパターンであることを特徴とするコンピュータプログラム。
A plurality of MPEG2 transport streams and a plurality of arbitrary data are divided into 188 bytes which are the data packet size of the MPEG2 transport stream, and the SYNC pattern of the MPEG2 transport stream is divided for each content of the packet to be multiplexed. A multiplexed stream creation step for creating a multiplexed stream by changing and adding different patterns,
Causing the computer to execute a multiplexed stream separation step of separating the multiplexed stream created by the multiplexed stream creation step;
The SYNC pattern that differs depending on the content of the packet to be multiplexed is a pattern obtained by adding the number of packets of the arbitrary data inserted between the MPEG2 transport streams to a predetermined pattern indicating each stream. A computer program characterized by the above.
JP2004186667A 2003-07-18 2004-06-24 Digital data receiving apparatus, digital data receiving method, and computer program Expired - Fee Related JP3885068B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004186667A JP3885068B2 (en) 2003-07-18 2004-06-24 Digital data receiving apparatus, digital data receiving method, and computer program

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2003277077 2003-07-18
JP2004186667A JP3885068B2 (en) 2003-07-18 2004-06-24 Digital data receiving apparatus, digital data receiving method, and computer program

Publications (2)

Publication Number Publication Date
JP2005057733A JP2005057733A (en) 2005-03-03
JP3885068B2 true JP3885068B2 (en) 2007-02-21

Family

ID=34379987

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004186667A Expired - Fee Related JP3885068B2 (en) 2003-07-18 2004-06-24 Digital data receiving apparatus, digital data receiving method, and computer program

Country Status (1)

Country Link
JP (1) JP3885068B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008092391A (en) * 2006-10-04 2008-04-17 Hitachi Ltd Recording stream generating method and reproducing method thereof, recording device, and reproducing device
CN114928421B (en) * 2022-04-26 2024-05-24 青岛广电海创文化科技有限公司 CDR low-rate data transmission system and transmission method

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09321727A (en) * 1996-05-24 1997-12-12 Matsushita Electric Ind Co Ltd Multiplexer
JP4081936B2 (en) * 1999-03-17 2008-04-30 ソニー株式会社 COMMUNICATION DEVICE, COMMUNICATION METHOD, AND RECORDING MEDIUM
JP2001251266A (en) * 2000-03-07 2001-09-14 Sony Corp Data transmitter, transport stream generator and data stream generation method
JP2002101063A (en) * 2000-09-25 2002-04-05 Matsushita Electric Ind Co Ltd Transport stream mixing device
JP2002374220A (en) * 2001-06-14 2002-12-26 Nippon Telegr & Teleph Corp <Ntt> Stream transmission reception system, and stream transmitter and receiver
JP2002374472A (en) * 2001-06-14 2002-12-26 Matsushita Electric Ind Co Ltd Digital broadcast receiver
JP3736396B2 (en) * 2001-07-25 2006-01-18 日本電信電話株式会社 Stream transmitting apparatus and receiving apparatus
JP2003101976A (en) * 2001-09-26 2003-04-04 Toshiba Corp Stream generator
JP2003101974A (en) * 2001-09-26 2003-04-04 Nec Corp Pcr correcting device and pcr value correcting method used for the same

Also Published As

Publication number Publication date
JP2005057733A (en) 2005-03-03

Similar Documents

Publication Publication Date Title
US5898695A (en) Decoder for compressed and multiplexed video and audio data
JP3309069B2 (en) Device for receiving multi-coded video and audio data
US6269107B1 (en) Device and method for demultiplexing transport stream
KR100631463B1 (en) Digital data transmission apparatus, digital data reception apparatus, digital broadcast reception apparatus, digital data transmission method, digital data reception method, digital broadcast reception method, and computer readable recording medium
JP2004297577A (en) Image reproducing device
KR100555658B1 (en) Stream decode device
EP1269743A2 (en) Demultiplexing devices and process for at least two transport streams and a corresponding digital stream
CN100401784C (en) Data synchronization method and apparatus for digital multimedia data receiver
US20120237027A1 (en) Multiple stream decrypting and decoding systems and related methods thereof
US9100379B2 (en) Transmitting apparatus, transmitting method, receiving apparatus, receiving method, program, and electronic apparatus
KR20040004167A (en) Broadcasting receiving and reproducing system and broadcasting receiving apparatus
JP3885068B2 (en) Digital data receiving apparatus, digital data receiving method, and computer program
KR20060113523A (en) Data processing device and method of digital broadcast receiver
JP2002300128A (en) Transport stream decoder and digital broadcast receiver using the same
JPH08275151A (en) Distribution decoder for multiplexed compressed image-audio data
US6665001B1 (en) Multiplex and demultiplex controlling apparatus, multiplex and demultiplex controlling system, and method thereof
JP4475273B2 (en) Information processing apparatus and method
JP4028641B2 (en) Digital communication system and method
JPH11340936A (en) Method and device for multiplexing data
JP2001136456A (en) Digital broadcast receiver
JP4435061B2 (en) Digital broadcast signal transmission device
US10178040B2 (en) Data processing device, receiving device, data processing method, and program
JPH1051496A (en) Device and method for multiplexing
JP4187767B2 (en) Digital communication system and method
JP2002353920A (en) Data processor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050209

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060811

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060822

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20061003

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20061107

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20061120

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101124

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101124

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111124

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121124

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131124

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees