JPH10126371A - Device and method for multiplexing - Google Patents

Device and method for multiplexing

Info

Publication number
JPH10126371A
JPH10126371A JP17094197A JP17094197A JPH10126371A JP H10126371 A JPH10126371 A JP H10126371A JP 17094197 A JP17094197 A JP 17094197A JP 17094197 A JP17094197 A JP 17094197A JP H10126371 A JPH10126371 A JP H10126371A
Authority
JP
Japan
Prior art keywords
packet data
data
multiplexing
stored
packet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP17094197A
Other languages
Japanese (ja)
Inventor
Hiroaki Seto
浩昭 瀬戸
Tatsuya Kubota
達也 窪田
Yoichi Matsumura
洋一 松村
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.)
Sony Corp
Original Assignee
Sony Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sony Corp filed Critical Sony Corp
Priority to JP17094197A priority Critical patent/JPH10126371A/en
Publication of JPH10126371A publication Critical patent/JPH10126371A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To prevent a reception-side buffer from overflowing or underflowing by entering a transport stream TS from an encoding device into a memory in its arrival order, and reading it in the storage order and multiplexing it. SOLUTION: Input parts 22A to 22N enter TS packets in pieces D4A to D4N of input information from encoding devices 7A to 7N into 1st memories 23A to 23N in the arrival order. Then data quantity detecting circuits 24A to 24N measure those TS packets and return discrimination signals 13, according to a rear signal S12 of a read circuit 31. A recognizing circuit 32 recognizes the input order of the input parts 22A to 22N and enters respective input part information r signals S15 into a 2nd memory 35, together with specific added write addresses. Then a multiplexer 37 reads the packets of the input part information S15 in the memory 35 out in the writing order and multiplexes them. Consequently, delay times accompanying the multiplexing process are held constant by the packets, and the buffer quantity on the reception side is adjusted.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【目次】以下の順序で本発明を説明する。[Table of Contents] The present invention will be described in the following order.

【0002】発明の属する技術分野 従来の技術(図12) 発明が解決しようとする課題(図13〜図17) 課題を解決するための手段 発明の実施の形態 (1)第1の実施の形態(図1〜図3) (2)第2の実施の形態(図4〜図11) 発明の効果2. Description of the Related Art Prior Art (FIG. 12) Problems to be Solved by the Invention (FIGS. 13 to 17) Means for Solving the Problems Embodiments of the Invention (1) First Embodiment (FIGS. 1 to 3) (2) Second Embodiment (FIGS. 4 to 11) Effects of the Invention

【0003】[0003]

【発明の属する技術分野】本発明は多重化装置及び多重
化方法に関し、例えばデイジタル放送システムに適用し
て好適なものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a multiplexing apparatus and a multiplexing method, and is suitably applied to, for example, a digital broadcasting system.

【0004】[0004]

【従来の技術】近年、映像データ及び音声データの圧縮
符号化方式としてMPEG2(MovingPicture Experts
Group Phase 2)と呼ばれる方式がある。このMPEG
2方式は、ITU−T(International Telecommunicat
ion Union-Telecommunication Standardization Secto
r:国際電気通信連合電気通信標準化部門)等の機関に
よつて標準化(例えば勧告、H.222.0 等)され、映像デ
ータ及び音声データを圧縮符号化し、これを多重化処理
して蓄積及び伝送する目的で規格化されている。
2. Description of the Related Art In recent years, MPEG2 (Moving Picture Experts) has been used as a compression encoding method for video data and audio data.
There is a method called Group Phase 2). This MPEG
The two systems are based on ITU-T (International Telecommunicat
ion Union-Telecommunication Standardization Secto
r: Standardized (for example, recommendation, H.222.0, etc.) by an organization such as the International Telecommunication Union Telecommunications Standardization Sector), compresses and encodes video and audio data, multiplexes them, and stores and transmits them. It is standardized for the purpose.

【0005】実際にこのMPEG2方式では、圧縮符号
化した映像データ及び音声データを多重化処理するデー
タ形式としてプログラムストリーム(PS:Program Strea
m )と呼ばれるデータ形式(以下、これをPSデータ形
式と呼ぶ)と、トランスポートストリーム(TS:Transpo
rt Stream )と呼ばれるデータ形式(以下、これをTS
データ形式と呼ぶ)とが規定されている。因みに、PS
データ形式は、多重化処理された映像データ及び音声デ
ータを所定のデイジタル蓄積媒体に蓄積する場合に適用
され、TSデータ形式は、多重化された映像データ及び
音声データを伝送する場合に適用される。
In the MPEG2 system, a program stream (PS: Program Stream) is actually used as a data format for multiplexing video data and audio data that have been compression-encoded.
m) (hereinafter referred to as PS data format) and a transport stream (TS: Transpo).
rt Stream) (hereinafter referred to as TS
Data format). By the way, PS
The data format is applied when multiplexed video data and audio data are stored in a predetermined digital storage medium, and the TS data format is applied when multiplexed video data and audio data are transmitted. .

【0006】ここで例えばTSデータ形式では、圧縮符
号化された映像データ及び音声データがそれぞれ所定単
位毎(例えば 188バイトのデータ量毎)にパケツト(以
下、これをTS(Transport Stream)パケツトと呼ぶ)
化され、この結果得られる各TSパケツトを時分割多重
することによりTSパケツト列(いわゆるトランスポー
トストリーム)を形成するように規定されている。なお
図12に示すように、TSパケツト1は、ヘツダ部及び
データ部から構成されており、ヘツダ部には同期バイト
やパケツト識別子(以下、これをPID(Packet ident
ification )と呼ぶ)及びその他の各種パケツト制御デ
ータが格納され、データ部には圧縮符号化された映像デ
ータ又は音声データが格納されている。因みに、同期バ
イトはTSパケツト1の開始を示すデータであり、PI
DはTSパケツト1に格納されている情報の内容を示す
データである。
Here, in the TS data format, for example, compression-encoded video data and audio data are packets in predetermined units (for example, 188-byte data amounts), respectively (hereinafter referred to as TS (Transport Stream) packets). )
It is defined that the resulting TS packets are time-division multiplexed to form a TS packet sequence (a so-called transport stream). As shown in FIG. 12, the TS packet 1 is composed of a header part and a data part, and the header part has a synchronization byte and a packet identifier (hereinafter, PID (Packet Identifier).
) and various other packet control data, and the data portion stores compression-encoded video data or audio data. Incidentally, the synchronization byte is data indicating the start of TS packet 1, and
D is data indicating the contents of the information stored in the TS packet 1.

【0007】ところで、近年、上述したようなMPEG
2方式を用いて映像データ及び音声データを圧縮符号化
して多重化処理し、これを地上波、衛星波又はケーブル
等を利用して放送するデイジタル放送システムが考えら
れている。このようなデイジタル放送システムでは、圧
縮符号化した映像データ及び音声データをそれぞれ上述
したようにTSパケツト化して多重化処理することによ
り、1つの回線で複数のテレビジヨン番組を放送し得る
と考えられる。
By the way, in recent years, the above-described MPEG
2. Description of the Related Art A digital broadcasting system has been conceived in which video data and audio data are compression-encoded and multiplexed using two methods, and are broadcast using terrestrial waves, satellite waves, cables, or the like. In such a digital broadcasting system, it is conceivable that a plurality of television programs can be broadcasted on one line by compressing and encoding video data and audio data into TS packets and multiplexing them as described above. .

【0008】すなわちこのデイジタル放送システムを実
際にDVB(Digital Video Broadcasting)等のデイジ
タルテレビジヨン放送に適用し、例えば伝送媒体として
放送衛星を使用すると、通常、放送衛星には約20〜30程
度のトランスポンダが搭載されており、1つのトランス
ポンダ当たり約30数〔Mbps〕程度の帯域を有する。従つ
て1つのトランスポンダが36〔Mbps〕程度の帯域を有す
ると仮定すると共に、1つのチヤンネルのテレビジヨン
番組当たり4〔Mbps〕程度の帯域を使用すると仮定する
と、1つのトランスポンダ当たり次式
That is, this digital broadcasting system is actually applied to digital television broadcasting such as DVB (Digital Video Broadcasting). For example, when a broadcasting satellite is used as a transmission medium, about 20 to 30 transponders are usually provided for the broadcasting satellite. , And each transponder has a bandwidth of about 30 [Mbps]. Therefore, assuming that one transponder has a bandwidth of about 36 [Mbps] and that a bandwidth of about 4 [Mbps] is used for one television program on a channel, the following equation per transponder is used.

【数1】 によつて表すように9つのチヤンネルのテレビジヨン番
組を同時に放送し得ると考えられる。なおこれを多チヤ
ンネル化(又は多重化)と呼ぶ。
(Equation 1) It is believed that nine channel television programs can be broadcast simultaneously, as represented by. This is called multi-channeling (or multiplexing).

【0009】[0009]

【発明が解決しようとする課題】ここで図13は、この
ようなデイジタル放送システムの送信装置5の一構成例
を示すものであり、この送信装置5では、複数のチヤン
ネルに対応する各データ出力部6A〜6Nからそれぞれ
テレビジヨン番組に応じた映像データD1A〜D1N及
び音声データD2A〜D2N並びに番組情報データD3
A〜D3Nを対応する符号化装置7A〜7Nに供給し、
各符号化装置7A〜7Nにおいてそれぞれ対応する映像
データD1A〜D1N及び音声データD2A〜D2N並
びに番組情報データD3A〜D3NをMPEG2方式で
圧縮符号化して多重化処理すると共に、このようにして
得られた多重化処理されたデータを順次所定単位毎にT
Sパケツト化することによりトランスポートストリーム
D4A〜D4Nを形成して多重化装置8に供給するよう
になされている。
FIG. 13 shows an example of the configuration of a transmitter 5 of such a digital broadcasting system. In this transmitter 5, each data output corresponding to a plurality of channels is provided. The video data D1A to D1N, the audio data D2A to D2N, and the program information data D3 corresponding to the television program from the units 6A to 6N, respectively.
A to D3N are supplied to the corresponding encoding devices 7A to 7N,
The corresponding video data D1A to D1N and audio data D2A to D2N and program information data D3A to D3N are compression-encoded and multiplexed by the MPEG2 system in each of the encoding devices 7A to 7N, and obtained in this manner. The multiplexed data is sequentially converted into T
The transport streams D4A to D4N are formed by S-packetization and supplied to the multiplexer 8.

【0010】これに加えてこの送信装置5では、多重化
情報発生装置9において各チヤンネル毎のテレビジヨン
番組の内容(放送中のテレビジヨン番組名や放送予定の
テレビジヨン番組表等)を表すデータをMPEG2方式
で圧縮符号化して多重化処理すると共に、このようにし
て得られた多重化処理されたデータを順次所定単位毎に
TSパケツト化することによりトランスポートストリー
ムD5を形成して多重化装置8に供給する。これにより
送信装置5では、多重化装置8において各トランスポー
トストリームD4A〜D4N及びD5を多重化処理する
ことにより1つのトランスポートストリームD6を形成
して変調器10に供給すると共に、当該変調器10にお
いてトランスポートストリームD6を所定方式で変調
し、このようにして得られた送信信号S1をアンテナ1
1を介して放送衛星(図示せず)に向けて送信する。か
くしてこの送信装置5は、複数(Nチヤンネル分)のテ
レビジヨン番組を放送衛星を介して同時に放送し得るよ
うになされている。
In addition to this, in the transmitting device 5, the multiplexing information generating device 9 uses the data representing the contents of the television program for each channel (the name of the television program being broadcast, the television program table to be broadcast, etc.). Is compression-encoded by the MPEG2 system and multiplexed, and the multiplexed data obtained in this way is sequentially TS-packeted for each predetermined unit to form a transport stream D5 and a multiplexer. 8 Thereby, in the transmitting device 5, the multiplexing device 8 multiplexes the transport streams D4A to D4N and D5 to form one transport stream D6 and supplies the transport stream D6 to the modulator 10, and the modulator 10 Modulates the transport stream D6 by a predetermined method, and transmits the transmission signal S1 thus obtained to the antenna 1
1 to a broadcast satellite (not shown). Thus, the transmitting device 5 can simultaneously broadcast a plurality of television programs (for N channels) via a broadcasting satellite.

【0011】ところで図14に示すように、多重化装置
8は、各符号化装置7A〜7N及び多重化情報発生装置
9から供給されたトランスポートストリームD4A〜D
4N及びD5を多重化処理する場合、当該トランスポー
トストリームD4A〜D4N及びD5に含まれている複
数のTSパケツトTS1〜TS12を順次これらが到着
した順番で読み込むと共にその順番で送出することによ
り多重化処理を実行する。
As shown in FIG. 14, the multiplexing device 8 includes transport streams D4A to D4 supplied from the encoding devices 7A to 7N and the multiplexed information generating device 9.
When multiplexing the 4N and D5, the plurality of TS packets TS1 to TS12 included in the transport streams D4A to D4N and D5 are sequentially read in the order in which they arrived and transmitted in that order. Execute the process.

【0012】すなわち図15に示すように、送信装置5
においては、例えば各符号化装置7A〜7Nによつてそ
れぞれTSパケツトTS1〜TS9を異なるタイミング
で形成するようにしてトランスポートストリームD4A
〜D4Nを形成し(図15(A)、(B)及び
(C))、これを多重化装置8に供給することにより当
該多重化装置8において重複せずに順次到着するTSパ
ケツトを多重化処理する。従つてこの送信装置5では、
多重化装置8にTSパケツトTS1〜TS9が到着した
順番と、当該多重化装置8において多重化処理されて形
成されたトランスポートストリームD6に含まれるTS
パケツトTS1〜TS9の順番とが等しくなる(図15
(D))。
That is, as shown in FIG.
For example, the transport stream D4A is formed such that the TS packets TS1 to TS9 are formed at different timings by the encoding devices 7A to 7N, for example.
.. D4N (FIGS. 15 (A), (B) and (C)) and supplying them to the multiplexing device 8, thereby multiplexing the TS packets arriving sequentially without duplication in the multiplexing device 8. To process. Therefore, in this transmitting device 5,
The order in which the TS packets TS1 to TS9 arrive at the multiplexing device 8, and the TS included in the transport stream D6 formed by the multiplexing process in the multiplexing device 8.
The order of the packets TS1 to TS9 becomes equal (FIG.
(D)).

【0013】このようにしてデイジタル放送システムで
は、受信装置により送信信号S1として受信したトラン
スポートストリームD6に含まれる各TSパケツトTS
1〜TS12から所望のチヤンネルに対応するTSパケ
ツトTS1〜TS3(図15(E))、TSパケツトT
S4〜TS6又はTSパケツトTS7〜TS9を選択
し、当該選択したTSパケツトTS1〜TS3、TSパ
ケツトTS4〜TS6又はTSパケツトTS7〜TS9
を順次これらを受信した順番で復号化処理することによ
り、当該TSパケツトTA1〜TS9に対応する映像デ
ータ及び音声データ並びに番組情報データを正しく再生
し得ると考えられる。因みに多重化装置8において形成
されたトランスポートストリームD6に含まれている各
TSパケツトTS1〜TS9は、それぞれ当該多重化装
置8において多重化処理に要した処理時間Tdだけ遅れ
を生じる(図15(D))。
As described above, in the digital broadcasting system, each TS packet TS included in the transport stream D6 received as the transmission signal S1 by the receiving device.
1 to TS12, TS packets TS1 to TS3 (FIG. 15E) corresponding to a desired channel, and TS packets T
S4 to TS6 or TS packets TS7 to TS9 are selected, and the selected TS packets TS1 to TS3, TS packets TS4 to TS6 or TS packets TS7 to TS9 are selected.
Are sequentially decoded in the order in which they are received, so that the video data, audio data, and program information data corresponding to the TS packets TA1 to TS9 can be correctly reproduced. Incidentally, each of the TS packets TS1 to TS9 included in the transport stream D6 formed in the multiplexing device 8 is delayed by the processing time Td required for the multiplexing process in the multiplexing device 8 (FIG. D)).

【0014】ところが各符号化装置7A〜7Nでは、供
給された映像データ及び音声データ並びに番組情報デー
タのデータ量によつてそれぞれ符号化処理及びパケツト
化に要する処理時間が変化し、多重化装置8において先
に到着したTSパケツトTS1〜TS9を読み込んでい
る途中に他の複数のTSパケツトTS1〜TS9を当該
多重化装置8に供給することが考えられる。
However, in each of the encoding devices 7A to 7N, the processing time required for the encoding process and the packetization varies depending on the amount of supplied video data, audio data, and program information data. It is conceivable that a plurality of other TS packets TS1 to TS9 are supplied to the multiplexer 8 while reading the TS packets TS1 to TS9 which have arrived earlier.

【0015】すなわち図16(A)〜図17(B)に示
すように、通常、多重化装置8は、各符号化装置7A〜
7NからそれぞれトランスポートストリームD4A〜D
4Nが供給される入力部と、当該入力部から各トランス
ポートストリームD4A〜D4Nをこれに含まれている
TSパケツトTS10〜TS14単位で順次読み込むよ
うにして多重化処理する多重化部とから構成されてお
り、例えば第1のチヤンネルCH1のテレビジヨン番組
に対応する第1のTSパケツトTS10がこれが形成さ
れた例えば時刻「n」のタイミングで入力部に到着し、
第5のチヤンネルCH5のテレビジヨン番組に対応する
第2のTSパケツトTS11がこれが形成された例えば
時刻「n+1」のタイミングで入力部に到着するように
供給され、第2のチヤンネルCH2のテレビジヨン番組
に対応する第3のTSパケツトTS12がこれが形成さ
れた例えば時刻「n+2」のタイミングで入力部に到着
するように供給される(図16(A))。
That is, as shown in FIGS. 16 (A) to 17 (B), the multiplexing device 8 usually includes the encoding devices 7A to 7A.
7N to transport streams D4A to D4D, respectively.
4N is supplied from the input unit, and a multiplexing unit that multiplexes the transport streams D4A to D4N from the input unit in such a manner that the transport streams D4A to D4N are sequentially read in units of TS packets TS10 to TS14 included therein. For example, the first TS packet TS10 corresponding to the television program of the first channel CH1 arrives at the input unit at the timing of, for example, time "n" when the first TS packet TS10 is formed.
A second TS packet TS11 corresponding to the television program of the fifth channel CH5 is supplied so as to arrive at the input unit at the timing of, for example, time "n + 1" when the television program of the fifth channel CH5 is formed, and the television program of the second channel CH2 is supplied. Is supplied such that it arrives at the input unit at the timing of, for example, the time "n + 2" at which it was formed (FIG. 16A).

【0016】この場合多重化装置8においては、まず入
力部に先に到着した第1のTSパケツトTS10を多重
化部に読み込み、この間に入力部に到着した第2のTS
パケツトTS11を当該入力部において待機させ、次い
で入力部に到着した第3のTSパケツトTS12も当該
入力部において待機させる。またこの状態において第3
のチヤンネルCH3のテレビジヨン番組に対応する第4
のTSパケツトTS13がこれが形成された例えば時刻
「n+3」のタイミングで入力部に到着するように供給
される(図16(B))。
In this case, the multiplexing device 8 first reads the first TS packet TS 10 arriving first at the input unit into the multiplexing unit, and during this time, reads the second TS packet TS 10 arriving at the input unit.
The packet TS11 is made to wait at the input unit, and then the third TS packet TS12 arriving at the input unit is also made to wait at the input unit. In this state, the third
No. 4 corresponding to the television program of channel CH3
The TS packet TS13 is supplied so that it arrives at the input unit at the timing of, for example, time “n + 3” when it is formed (FIG. 16B).

【0017】この後この多重化装置8においては、多重
化部による第1のTSパケツトTS10の読み込みが終
了すると、次に入力部で待機している第2のTSパケツ
トTS11と、第3のTSパケツトTS12とのうち、
何方か一方を多重化部に読み込むことになる。この場合
多重化部においては、例えばチヤンネル番号の小さい順
から先にこれに対応するTSパケツトを順次読み込むよ
うになされており、従つて第3のTSパケツトTS12
(チヤンネルCH2)を先に読み込み、第2のTSパケ
ツトTS11(チヤンネルCH5)がさらに待機するこ
とになる。またこの状態において第4のTSパケツトT
S13が入力部に到着して待機する。さらに第4のチヤ
ンネルCH4のテレビジヨン番組に対応する第5のTS
パケツトTS14がこれが形成された例えば時刻「n+
4」のタイミングで入力部に到着するように供給される
(図17(A))。
After that, in the multiplexing device 8, when the reading of the first TS packet TS10 by the multiplexing unit is completed, the second TS packet TS11 waiting at the input unit and the third TS packet TS11 next. Of the packet TS12,
One of them is read into the multiplexing unit. In this case, in the multiplexing unit, for example, the TS packets corresponding to the channel numbers are sequentially read in ascending order of the channel numbers, and accordingly, the third TS packet TS12 is read.
(Channel CH2) is read first, and the second TS packet TS11 (channel CH5) waits further. In this state, the fourth TS packet T
S13 arrives at the input unit and waits. Further, a fifth TS corresponding to the television program of the fourth channel CH4
When the packet TS14 is formed, for example, at time "n +
It is supplied so as to arrive at the input unit at the timing of "4" (FIG. 17A).

【0018】このようにしてこの多重化装置8では、多
重化部による第3のTSパケツトTS12の読み込みが
終了すると、待機状態にある第2のTSパケツトTS1
1(チヤンネルCH5)と、第4のSTパケツトTS1
3(チヤンネルCH3)とのうち、第4のTSパケツト
TS13を多重化部によつて読み込むことになり、第2
のTSパケツトTS11が再び待機する。またこの状態
において多重化装置8では、第5のTSパケツトTS1
4が入力部に到着して待機し、かくして多重化部は第4
のTSパケツトTS13の読み込みが終了すると、第2
のTSパケツトTS11(チヤンネルCH5)と、第5
のTSパケツトTS14(チヤンネルCH4)とのう
ち、第5のTSパケツトTS14を先に読み込み、当該
第2のTSパケツトTS11はそのまま待機することに
なる(図17(B))。
In this way, in the multiplexing device 8, when the reading of the third TS packet TS12 by the multiplexing unit is completed, the second TS packet TS1 in the standby state is set.
1 (channel CH5) and the fourth ST packet TS1
3 (channel CH3), the fourth TS packet TS13 is read by the multiplexing unit.
The TS packet TS11 waits again. In this state, the multiplexer 8 in the fifth TS packet TS1
4 arrives at the input unit and waits, so that the multiplexing unit
When the reading of the TS packet TS13 of the
TS packet TS11 (channel CH5) and the fifth
Of the TS packet TS14 (channel CH4), the fifth TS packet TS14 is read first, and the second TS packet TS11 stands by (FIG. 17B).

【0019】従つてこのような場合には、第1〜第5の
TSパケツトTS10〜TS14が多重化装置8に到着
した順番と、当該多重化装置8において多重化処理され
て形成されたトランスポートストリームD6に含まれて
いる第1〜第5のTSパケツトTS10〜TS14の順
番とが異なり、受信装置において第1〜第5のTSパケ
ツトTA10〜TS14のうち、所望の第1〜第5のT
SパケツトTS10〜TS14を復号化処理し再生する
と、上述した図17に示すように多重化装置8の入力部
に待機している第2のTSパケツトTS11が受信装置
によつて受信されておらず、映像データ及び音声データ
並びに番組情報データを正しく再生し難い問題が生じる
と考えられる。
Accordingly, in such a case, the order in which the first to fifth TS packets TS10 to TS14 arrive at the multiplexer 8 and the transport formed by the multiplexer 8 in the multiplexing process. The order of the first to fifth TS packets TS10 to TS14 included in the stream D6 is different, and a desired first to fifth T packet among the first to fifth TS packets TA10 to TS14 in the receiving device is different.
When the S packets TS10 to TS14 are decoded and reproduced, the second TS packet TS11 waiting at the input unit of the multiplexer 8 is not received by the receiving device as shown in FIG. It is considered that a problem arises in that it is difficult to correctly reproduce video data, audio data, and program information data.

【0020】本発明は以上の点を考慮してなされたもの
で、受信装置においてパケツトデータに対応する所定の
データを正しく再生させることができる多重化装置及び
多重化方法を提案しようとするものである。
The present invention has been made in view of the above points, and an object of the present invention is to propose a multiplexing apparatus and a multiplexing method capable of correctly reproducing predetermined data corresponding to packet data in a receiving apparatus. .

【0021】[0021]

【課題を解決するための手段】かかる課題を解決するた
め本発明においては、各チヤンネルにそれぞれ対応させ
て設けられ、それぞれ供給されるパケツトデータを順次
記憶する第1の記憶手段と、各第1の記憶手段にそれぞ
れ対応させて設けられ、それぞれ対応する第1の記憶手
段に1つのパケツトデータが記憶されたことを検出する
検出手段と、各検出手段からそれぞれ得られる検出結果
に基づいて、記憶されたパケツトデータを読み出す第1
の記憶手段の順番を決定する決定手段と、当該決定手段
によつて決定された順番に基づいてパケツトデータを各
第1の記憶手段から順次読み出して多重化処理する多重
化処理手段とを設けるようにする。
According to the present invention, there is provided a first storage means provided in correspondence with each channel to sequentially store packet data to be supplied, and a first storage means for sequentially storing the supplied packet data. Detecting means for detecting that one packet data is stored in the corresponding first storing means; and storing the data based on the detection results obtained from the respective detecting means. First to read packet data
Determining means for determining the order of the storage means, and multiplexing processing means for sequentially reading and multiplexing the packet data from each first storage means based on the order determined by the determining means. I do.

【0022】また本発明においては、各チヤンネル毎に
パケツトデータを順次記憶する第1のステツプと、各チ
ヤンネル毎に1つのパケツトデータが記憶されたことを
検出し、当該検出結果に基づいて、記憶されたパケツト
データを読み出す順番を決定する第2のステツプと、当
該決定された順番に基づいて、記憶されたパケツトデー
タを順次読み出して多重化処理する第3のステツプとを
設けるようにする。
Further, in the present invention, a first step for sequentially storing packet data for each channel, and detecting that one packet data is stored for each channel, and storing the packet data based on the detection result. A second step for determining the order of reading packet data and a third step for sequentially reading and multiplexing the stored packet data based on the determined order are provided.

【0023】従つて本発明では、各チヤンネルにそれぞ
れ対応させて設けられ、それぞれ供給されるパケツトデ
ータを順次記憶する第1の記憶手段と、各第1の記憶手
段にそれぞれ対応させて設けられ、それぞれ対応する第
1の記憶手段に1つのパケツトデータが記憶されたこと
を検出する検出手段と、各検出手段からそれぞれ得られ
る検出結果に基づいて、記憶されたパケツトデータを読
み出す第1の記憶手段の順番を決定する決定手段と、当
該決定手段によつて決定された順番に基づいてパケツト
データを各第1の記憶手段から順次読み出して多重化処
理する多重化処理手段とを設けるようにしたことによ
り、従来の多重化装置のように入力部に到着したパケツ
トデータが読み出されずにそのまま待機状態となること
を防止して当該パケツトデータが書き込まれた第1の記
憶手段の順番通りに当該第1の記憶手段からパケツトデ
ータを確実に読み出すことができ、これにより第1の記
憶手段にパケツトデータが書き込まれた順番と、多重化
処理されて形成されたトランスポートストリームに含ま
れるパケツトデータの順番とを等しくすることができ
る。
Accordingly, in the present invention, a first storage means provided in correspondence with each channel and sequentially storing the supplied packet data, and a first storage means provided in correspondence with each first storage means, respectively, are provided. The order of the detecting means for detecting that one piece of packet data is stored in the corresponding first storing means, and the order of the first storing means for reading out the stored packet data based on the detection results obtained from each of the detecting means are determined. By providing a deciding means for deciding and a multiplexing processing means for sequentially reading and multiplexing the packet data from each of the first storage means based on the order determined by the deciding means, a conventional multiplexing means is provided. By preventing packet data arriving at the input unit from being read out as in a multiplexing device and being kept in a standby state, Packet data can be reliably read from the first storage means in the order in which the packet data was written, whereby the order in which the packet data was written to the first storage means and the multiplexing process were performed. The order of the packet data included in the transport stream formed as described above can be made equal.

【0024】また本発明では、各チヤンネル毎にパケツ
トデータを順次記憶し、次いで各チヤンネル毎に1つの
パケツトデータが記憶されたことを検出し、当該検出結
果に基づいて、記憶されたパケツトデータを読み出す順
番を決定し、続いて当該決定された順番に基づいて、記
憶されたパケツトデータを順次読み出して多重化処理す
るようにしたことにより、従来考えられた多重化装置の
ようにパケツトデータの読出し順番を決定する場合に当
該パケツトデータに付加された到着時間を表す時間情報
を比較判断する等のような煩雑な処理過程を必要とせず
に、パケツトデータを読み出す順番を容易に決定し、記
憶されたパケツトデータをその順番通りに順次読み出し
て容易に多重化処理することができる。
According to the present invention, packet data is sequentially stored for each channel, and then it is detected that one packet data is stored for each channel. Based on the detection result, the order of reading the stored packet data is determined. When the packet data reading order is determined as in a conventional multiplexing device, the stored packet data is sequentially read out and multiplexed based on the determined order. The packet data reading order can be easily determined without the need for complicated processing steps such as comparing and determining the time information indicating the arrival time added to the packet data, and the stored packet data is read in that order. The data can be sequentially read out and easily multiplexed.

【0025】また本発明においては、複数チヤンネルで
供給される複数系統の所定データを所定単位ごとにパケ
ツト化すると共に当該パケツトに基準クロツクデータを
付加し、かくして得られた各パケツトデータを順次多重
化して出力する多重化装置において、各チヤンネルにそ
れぞれ対応して設けられた記憶手段に記憶されるパケツ
トデータに時間情報を付加し、記憶手段に記憶されたパ
ケツトデータの時間情報に基づいて、記憶手段から読み
出すパケツトデータの読出し順を決定し、記憶手段から
読み出され、多重化処理されたパケツトデータの多重化
処理に要した時間を、時間情報に基づいて検出し、検出
手段により検出された処理時間に基づいてパケツトデー
タの基準クロツクデータを修正する。
Further, in the present invention, predetermined data of a plurality of systems supplied by a plurality of channels are packetized for each predetermined unit, and reference clock data is added to the packet, and each packet data thus obtained is sequentially multiplexed. In the multiplexing device for outputting the data, time information is added to the packet data stored in the storage means provided corresponding to each channel, and is read out from the storage means based on the time information of the packet data stored in the storage means. The reading order of the packet data is determined, the time required for multiplexing the packet data read from the storage means and multiplexed is detected based on time information, and based on the processing time detected by the detecting means. Correct the reference clock data of the packet data.

【0026】このように、記憶手段から読み出されるパ
ケツトデータの読出し順を、その書込み順と一致するよ
うにすることにより、記憶手段から読み出された後、多
重化されたパケツトデータの当該多重化に要する遅延時
間を一定に保つことができる。また、パケツトデータに
付加する時間情報を、記憶手段からの読出し用と、多重
化されたパケツトデータの基準クロツクデータの修正用
に共用することにより、多重化装置の構成が簡単にな
る。
As described above, by making the reading order of the packet data read from the storage means coincide with the writing order, it is necessary for the multiplexing of the multiplexed packet data after being read from the storage means. The delay time can be kept constant. Further, by sharing the time information added to the packet data for reading from the storage means and for correcting the reference clock data of the multiplexed packet data, the configuration of the multiplexer can be simplified.

【0027】[0027]

【発明の実施の形態】以下図面について、本発明の一実
施の形態を詳述する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below in detail with reference to the drawings.

【0028】(1)第1の実施の形態 図5の対応部分に同一符号を付して示す図1において、
20は全体としてデイジタル放送システムの送信装置を
示し、多重化装置21の構成を除いて図5に示すデイジ
タル放送システムの送信装置5と同様に構成されてい
る。
(1) First Embodiment In FIG. 1 in which corresponding parts in FIG.
Reference numeral 20 denotes a transmission device of the digital broadcasting system as a whole, which is configured similarly to the transmission device 5 of the digital broadcasting system shown in FIG.

【0029】図2に示すように、多重化装置21は、各
符号化装置7A〜7Nからそれぞれ供給されるトランス
ポートストリームD4A〜D4Nを多重化処理する場
合、各トランスポートストリームD4A〜D4Nがそれ
ぞれ対応する入力部22A〜22Nに供給される。各入
力部22A〜22Nは、それぞれ同様構成でなり、各第
1のメモリ23A〜23Nにそれぞれ対応するトランス
ポートストリームD4A〜D4Nに含まれるTSパケツ
トを順次これが到着した順番で書き込む。
As shown in FIG. 2, when the multiplexing device 21 multiplexes the transport streams D4A to D4N supplied from the encoding devices 7A to 7N, the multiplexing device 21 converts the transport streams D4A to D4N respectively. It is supplied to the corresponding input units 22A to 22N. Each of the input units 22A to 22N has the same configuration, and writes the TS packets included in the transport streams D4A to D4N respectively corresponding to the first memories 23A to 23N in the order in which they arrive.

【0030】また各データ量検出回路24A〜24N
は、それぞれ対応する第1のメモリ23A〜23Nにデ
ータ量測定信号S10を供給し、これにより第1のメモ
リ23A〜23Nに書き込まれたTSパケツトのデータ
量を測定する。ここで各データ量検出回路24A〜24
Nは、論理「L」レベルでなるデータ量検出信号S11
を生成しており、それぞれデータ量測定信号S10によ
るデータ量の測定結果に基づいて対応する第1のメモリ
23A〜23Nに1つのTSパケツト全て( 188バイト
のデータ量)が書き込まれたときには当該データ量検出
信号S11を論理「H」レベルに立ち上げるようになさ
れている。
Each of the data amount detection circuits 24A to 24N
Supplies the data amount measurement signal S10 to the corresponding first memories 23A to 23N, thereby measuring the data amount of the TS packets written in the first memories 23A to 23N. Here, the data amount detection circuits 24A to 24A
N is a data amount detection signal S11 having a logical "L" level.
When all TS packets (data amount of 188 bytes) are written in the corresponding first memories 23A to 23N based on the data amount measurement result by the data amount measurement signal S10, the data is read out. The amount detection signal S11 is raised to a logical "H" level.

【0031】一方、多重化部27の決定回路30におい
て、読出し回路31は、データ量検出回路24Aからデ
ータ量検出回路24Nに所定周期で順次読出し信号S1
2を供給すると共に、当該読出し信号S12をデータ量
検出回路24A〜24Nに供給したときにこのデータ量
検出回路24A〜24Nを識別する識別信号S13を認
識回路32に供給する。
On the other hand, in the decision circuit 30 of the multiplexing unit 27, the readout circuit 31 sends the readout signal S1 from the data amount detection circuit 24A to the data amount detection circuit 24N sequentially at a predetermined cycle.
When the read signal S12 is supplied to the data amount detection circuits 24A to 24N, the identification signal S13 for identifying the data amount detection circuits 24A to 24N is supplied to the recognition circuit 32.

【0032】ここで各データ量検出回路24A〜24N
は、それぞれ読出し信号S12が供給されたとき、デー
タ量検出信号S11を認識回路32に供給する。因みに
各データ量検出回路24A〜24Nは、それぞれデータ
量検出信号S11を論理「H」レベルに立ち上げた状態
でこれを認識回路32に供給した場合には、当該データ
量検出信号S11を出力した後、これを論理「L」レベ
ルに立ち下げ、それぞれ対応する第1のメモリ23A〜
23Nに再び1つのTSパケツト全てが書き込まれたと
きにこのデータ量検出信号S11を論理「H」レベルに
立ち上げるようになされている。これにより各データ量
検出回路24A〜24Nは、それぞれ対応する第1のメ
モリ23A〜23Nに書き込まれたTSパケツトを1つ
づつ検出し得るようになされている。
Here, each data amount detection circuit 24A to 24N
Supplies the data amount detection signal S11 to the recognition circuit 32 when the read signal S12 is supplied. Incidentally, when each of the data amount detection circuits 24A to 24N supplies the data amount detection signal S11 to the recognition circuit 32 in a state where the data amount detection signal S11 has been raised to the logic "H" level, the data amount detection signal S11 is output. Thereafter, this is lowered to the logical "L" level, and the corresponding first memories 23A to 23A to 23L are respectively set.
The data amount detection signal S11 is raised to a logical "H" level when all of one TS packet is written again to 23N. Thus, each of the data amount detection circuits 24A to 24N can detect the TS packets written in the corresponding first memories 23A to 23N one by one.

【0033】認識回路32は、各データ量検出回路24
A〜24Nからデータ量検出信号S11が供給されたと
き、読出し回路31から供給された識別信号S13に基
づいて、当該データ量検出信号S11を出力したデータ
量検出回路24A〜24Nを有する入力部22A〜22
Nを識別する。また認識回路32は、供給されたデータ
量検出信号S11に基づいて、当該データ量検出信号S
11が論理「L」レベルでなるときには、これに対応す
る第1のメモリ23A〜23NにTSパケツトが書き込
まれておらず、当該第1のメモリ23A〜23NがTS
パケツトの読み出し対象外であることを認識し、一方デ
ータ量検出信号S11が論理「H」レベルでなるときに
は、これに対応する第1のメモリ23A〜23Nに1つ
のTSパケツト全てが書き込まれており、当該第1のメ
モリ23A〜23NからTSパケツトを読み出せること
を認識するようになされている。
The recognition circuit 32 includes a data amount detection circuit 24
When the data amount detection signal S11 is supplied from A to 24N, the input unit 22A having the data amount detection circuits 24A to 24N that output the data amount detection signal S11 based on the identification signal S13 supplied from the readout circuit 31. ~ 22
Identify N. The recognition circuit 32 also determines the data amount detection signal S based on the supplied data amount detection signal S11.
11 is at the logic "L" level, no TS packet has been written in the corresponding first memories 23A to 23N, and the first memories 23A to 23N store the TS packets.
When the data amount detection signal S11 is at the logical "H" level, it is recognized that the packet is out of the read target, and all the TS packets are written in the corresponding first memories 23A to 23N. And that the TS packets can be read from the first memories 23A to 23N.

【0034】さらに認識回路32は、供給されたデータ
量検出信号S11が論理「H」レベルでなるときには、
当該データ量検出信号S11を数値化してこれに対応す
る入力部22A〜22Nを表す入力部情報を生成すると
共に、当該入力部情報を入力部情報信号S15として第
2のメモリ35に供給する。これに加えて認識回路32
は、この入力部情報信号S15と共に、所定の書き込み
番地(以下、これをi番地と呼ぶ)を指定する書込み制
御信号S16を第2のメモリ35に供給するようにして
当該第2のメモリ35の書き込みを制御し、このように
して入力部情報を第2のメモリ35のi番地に書き込
む。
Further, when the supplied data amount detection signal S11 is at the logic "H" level, the recognition circuit 32
The data amount detection signal S11 is digitized to generate input unit information representing the corresponding input units 22A to 22N, and the input unit information is supplied to the second memory 35 as the input unit information signal S15. In addition to this, the recognition circuit 32
Supplies a write control signal S16 specifying a predetermined write address (hereinafter referred to as an i address) to the second memory 35 together with the input section information signal S15. The writing is controlled, and the input section information is written to the address i of the second memory 35 in this way.

【0035】なお認識回路32は、第2のメモリ35に
入力部情報を書き込むi番地の初期設定を例えば0番地
とし、当該第2のメモリ35に入力部情報を書き込む毎
にこの0番地でなるi番地を順次1番地づつ増加させる
ようにしたi番地を指定する書込み制御信号S16を第
2のメモリ35に供給し、このようにして当該第2のメ
モリ35に入力部情報を順次書き込むようになされてい
る。
The recognizing circuit 32 sets the initial setting of the address i at which the input section information is written to the second memory 35 to, for example, address 0. Each time the input section information is written to the second memory 35, the address becomes 0. A write control signal S16 for designating the address i, which sequentially increases the address i by one, is supplied to the second memory 35, so that the input section information is sequentially written to the second memory 35. It has been done.

【0036】これにより認識回路32は、入力部22A
〜22Nに供給されたTSパケツトが書き込まれた第1
のメモリ23A〜23Nの順番を認識し、当該認識した
順番に従つてこれを表す入力部情報を第2のメモリ35
に順次書き込むようになされている。かくして決定回路
10は、第2のメモリ35に順次書き込まれた入力部情
報の順番を第1のメモリ23A〜23NからTSパケツ
ト読み出すときの当該第1のメモリ23A〜23Nの順
番と決定し得るようになされている。
As a result, the recognition circuit 32 operates the input section 22A.
1N in which the TS packets supplied to .about.22N are written.
Of the memories 23A to 23N of the second memory 35 in accordance with the recognized order.
Are written sequentially. Thus, the determination circuit 10 can determine the order of the input section information sequentially written in the second memory 35 as the order of the first memories 23A to 23N when reading out the TS packets from the first memories 23A to 23N. Has been made.

【0037】ここでマルチプレクサ37は、第2のメモ
リ35に最初に入力部情報が書き込まれたi番地を読出
し番地(以下、これをj番地と呼ぶ)として指定する読
出し制御信号S20を当該第2のメモリ35に供給する
ことによりその読み出しを制御して、当該読出し制御信
号S20に対応する入力部情報を入力部情報信号S15
として読み出す。このようにしてマルチプレクサ37
は、読み出した入力部情報が表す入力部22A〜22N
を識別し、当該識別した入力部22A〜22Nの第1の
メモリ23A〜23NからTSパケツトをTSパケツト
データD10として読み込む。
Here, the multiplexer 37 outputs the read control signal S20 for designating the address i at which the input section information is first written in the second memory 35 as a read address (hereinafter referred to as an address j). Of the input unit information signal S15 by supplying the input unit information corresponding to the read control signal S20 to the input unit information signal S15.
Read as Thus, the multiplexer 37
Are the input units 22A to 22N represented by the read input unit information.
And reads the TS packet from the first memories 23A to 23N of the identified input units 22A to 22N as TS packet data D10.

【0038】なおマルチプレクサ37は、第2のメモリ
35から入力部情報を読み出すために指定するj番地の
初期設定を例えば0番地とし(上述したi番地と同
様)、当該第2のメモリ35から入力部情報を読み出す
毎にこの0番地でなるj番地を順次1番地づつ増加させ
るようにしたj番地を指定する読出し制御信号S20を
第2のメモリ35に供給し、これにより当該第2のメモ
リ35から入力部情報を順次読み出すようになされてい
る。
Note that the multiplexer 37 sets the initial setting of the address j designated for reading the input section information from the second memory 35 to, for example, address 0 (similar to the above-mentioned address i), and inputs the address from the second memory 35. Each time the set information is read, a read control signal S20 for designating an address j, which sequentially increases the address j consisting of address 0 by one, is supplied to the second memory 35, whereby the second memory 35 , The input section information is sequentially read.

【0039】かくしてマルチプレクサ37は、第2のメ
モリ35から順次読み出した入力部情報に基づいて各第
1のメモリ23A〜23NからTSパケツトをこれが各
第1のメモリ23A〜23Nに書き込まれた順番で順次
読み出すようにして多重化処理し得るようになされてい
る。
Thus, the multiplexer 37 writes the TS packets from the first memories 23A to 23N in the order in which they are written to the first memories 23A to 23N based on the input section information sequentially read from the second memory 35. The multiplexing process can be performed by sequentially reading.

【0040】実際上図3(A)〜(N)に示すように、
この多重化装置21は、トランスポートストリームD4
A〜D4Nの多重化処理を実行する場合、まず初期動作
として第2のメモリ35に書き込まれている入力部情報
を全て削除し、この後多重化処理を実行する。ここでチ
ヤンネルCH1〜CHNに対応する各データ量検出回路
24A〜24Nは、それぞれ対応する第1のメモリ23
A〜23Nに、常時データ量測定信号S10を供給して
各第1のメモリ23A〜23NにTSパケツトが書き込
まれたデータ量を測定する。因みにこのとき各第1のメ
モリ23A〜23Nには、まだTSパケツトが書き込ま
れておらず、従つて各データ量検出回路24A〜24N
はそれぞれ論理「L」レベルでなるデータ量検出信号S
11を生成する(図3(B)、(D)及び(F))。
Actually, as shown in FIGS. 3A to 3N,
The multiplexing device 21 transmits the transport stream D4
When executing the multiplexing process of A to D4N, first, as an initial operation, all the input section information written in the second memory 35 is deleted, and then the multiplexing process is executed. Here, each of the data amount detection circuits 24A to 24N corresponding to the channels CH1 to CHN is connected to the corresponding first memory 23.
A to 23N are supplied with a data amount measurement signal S10 at all times to measure the data amount in which the TS packets are written in the first memories 23A to 23N. Incidentally, at this time, the TS packets have not yet been written in the first memories 23A to 23N, and accordingly, the respective data amount detection circuits 24A to 24N.
Is a data amount detection signal S having a logical "L" level.
11 (FIGS. 3B, 3D, and 3F).

【0041】この後例えば符号化装置7Aから入力部2
2Aの第1のメモリ23Aにトランスポートストリーム
D4Aが供給され、当該第1のメモリ23Aにトランス
ポートストリームD4Aに含まれる1つのTSパケツト
全てが時刻t(a)において書き込まれると(図3
(A))、第1のメモリ23Aに対応するデータ量検出
回路23Aは、論理「L」レベルでなるデータ量検出信
号S11を時刻t(a)において論理「H」レベルに立
ち上げる(図3(B))。
Thereafter, for example, from the encoding device 7A to the input unit 2
When the transport stream D4A is supplied to the first memory 23A of 2A, and all the one TS packet included in the transport stream D4A is written to the first memory 23A at the time t (a) (FIG. 3).
(A)), the data amount detection circuit 23A corresponding to the first memory 23A raises the data amount detection signal S11 having the logic “L” level to the logic “H” level at the time t (a) (FIG. 3). (B)).

【0042】ここで読出し回路31は、マルチプレクサ
37によるTSパケツトデータD10の読み出し時間よ
りも短い所定周期でデータ量検出回路24Aからデータ
量検出回路24Nに順次読出し信号S12を供給する。
この場合まず読出し回路31は、時刻t(b)において
データ量検出回路24Aに読出し信号S12を供給する
と共に(図3(I))、当該読出し信号S12を供給し
たデータ量検出回路24Aを識別する識別信号S13を
認識回路32に供給する。このときデータ量検出回路2
4Aは、供給された読出し信号S12に基づいて論理
「H」レベルでなるデータ量検出信号S11を認識回路
32に供給し(図3(J))、この後当該データ量検出
信号S11を論理「L」レベルに立ち下げる(図3
(B))。
Here, the readout circuit 31 sequentially supplies the readout signal S12 from the data amount detection circuit 24A to the data amount detection circuit 24N at a predetermined cycle shorter than the read time of the TS packet data D10 by the multiplexer 37.
In this case, the readout circuit 31 first supplies the readout signal S12 to the data amount detection circuit 24A at the time t (b) (FIG. 3 (I)), and identifies the data amount detection circuit 24A that supplied the readout signal S12. The identification signal S13 is supplied to the recognition circuit 32. At this time, the data amount detection circuit 2
4A supplies a data amount detection signal S11 having a logic "H" level to the recognition circuit 32 based on the supplied read signal S12 (FIG. 3 (J)). L ”level (Fig. 3
(B)).

【0043】認識回路32は、読出し回路31から供給
された識別信号S13に基づいて、データ量検出信号S
11(論理「H」レベルでなる)を出力したデータ量検
出回路24Aを有する入力部22Aを識別すると共に、
当該データ量検出信号S11に基づいて入力部22Aの
第1のメモリ23Aに1つのTSパケツト全てが書き込
まれており、当該第1のメモリ23AからTSパケツト
を読み出せることを認識し、このデータ量検出信号S1
1を数値化してこれに対応する入力部22Aを表す入力
部情報を生成する。これに加えて認識回路32は、第2
のメモリ35に入力部情報を入力部情報信号S15とし
て供給すると共に、i番地を指定する(図3(L))書
込み制御信号S16を供給し、このi番地に入力部情報
を書き込む(図3(K))。なお認識回路32は、第2
のメモリ35に入力部情報を書き込んだ後、当該入力部
情報を書き込んだi番地を1番地だけ増加させたi番地
を生成して次に入力部情報を書き込むための準備をす
る。
The recognition circuit 32 generates a data amount detection signal S based on the identification signal S13 supplied from the read circuit 31.
11 (consisting of a logic "H" level) and identifying the input unit 22A having the data amount detection circuit 24A,
Based on the data amount detection signal S11, it is recognized that the entire TS packet has been written in the first memory 23A of the input unit 22A, and that the TS packet can be read from the first memory 23A. Detection signal S1
1 is converted into a numerical value to generate input section information representing the input section 22A corresponding thereto. In addition to this, the recognition circuit 32
The input unit information is supplied as an input unit information signal S15 to the memory 35, and a write control signal S16 for designating the address i (FIG. 3 (L)) is supplied, and the input unit information is written to the address i (FIG. 3). (K)). Note that the recognition circuit 32
After the input unit information is written in the memory 35, the address i in which the input unit information is written is increased by one address to generate an i-th address, and preparation is made for writing the input unit information.

【0044】またこのように認識回路32が第2のメモ
リ35に入力部情報を書き込んでいる間に、入力部22
Nの第1のメモリ23Nは、対応する符号化装置7Nか
らトランスポートストリームD4Nが供給され、当該ト
ランスポートストリームD4Nに含まれる1つのTSパ
ケツト全てを時刻t(c)において書き込む(図3
(F))。これにより第1のメモリ23Nに対応するデ
ータ量検出回路23Nは、論理「L」レベルでなるデー
タ量検出信号S11を時刻t(c)において論理「H」
レベルに立ち上げる(図3(G))。
While the recognition circuit 32 is writing the input unit information in the second memory 35, the input unit 22
The N first memory 23N is supplied with the transport stream D4N from the corresponding encoding device 7N, and writes all one TS packet included in the transport stream D4N at time t (c) (FIG. 3).
(F)). As a result, the data amount detection circuit 23N corresponding to the first memory 23N outputs the data amount detection signal S11 at the logic "L" level to the logic "H" at the time t (c).
Start up to the level (Fig. 3 (G)).

【0045】一方読出し回路31は、時刻t(d)にお
いてデータ量検出回路24Bに読出し信号S12を供給
すると共に(図3(I))、当該読出し信号S12を供
給したデータ量検出回路24Bを識別する識別信号S1
3を認識回路32に供給する。このとき第1のメモリ2
3BにはTSパケツトが書き込まれておらず、従つてデ
ータ量検出回路24Bは、供給された読出し信号S12
に基づいて論理「L」レベルでなるデータ量検出信号S
11を認識回路32に供給する(図3(J))。
On the other hand, read circuit 31 supplies read signal S12 to data amount detection circuit 24B at time t (d) (FIG. 3 (I)), and identifies data amount detection circuit 24B that supplied read signal S12. Identification signal S1
3 is supplied to the recognition circuit 32. At this time, the first memory 2
No TS packet is written in 3B, and accordingly, the data amount detection circuit 24B outputs the supplied read signal S12.
Based on the data amount detection signal S at the logical "L" level
11 is supplied to the recognition circuit 32 (FIG. 3 (J)).

【0046】これにより認識回路32は、読出し回路3
1から供給された識別信号S13に基づいて、データ量
検出信号S11(論理「L」レベルでなる)を出力した
データ量検出回路24Bを有する入力部22Bを識別す
ると共に、当該データ量検出信号S11に基づいて入力
部22Bの第1のメモリ23BにはTSパケツトが書き
込まれておらず、当該第1のメモリ23BがTSパケツ
トの読み出しの対象外であることを認識する。ここで入
力部22B及び入力部22N間の入力部(図示せず)
は、第1のメモリにTSパケツトが書き込まれておら
ず、このため認識回路32は、上述した入力部22Bの
場合と同様にこれらをTSパケツトの読み出しの対象外
であることを認識する。
As a result, the recognizing circuit 32 reads the read circuit 3
1, the input unit 22B having the data amount detection circuit 24B that has output the data amount detection signal S11 (having a logical "L" level) is identified, and the data amount detection signal S11 is output. No TS packet is written in the first memory 23B of the input unit 22B based on the above, and it is recognized that the first memory 23B is not a target for reading the TS packet. Here, an input unit (not shown) between the input unit 22B and the input unit 22N.
Does not write the TS packets in the first memory, and therefore, the recognition circuit 32 recognizes that these are not the targets of reading the TS packets as in the case of the input unit 22B described above.

【0047】また読出し回路31は、時刻t(e)にお
いてデータ量検出回路24Nに読出し信号S12を供給
すると共に(図3(I))、当該読出し信号S12を供
給したデータ量検出回路24Nを識別する識別信号S1
3を認識回路32に供給する。このときデータ量検出回
路24Nは、供給された読出し信号S12に基づいて論
理「H」レベルでなるデータ量検出信号S11を認識回
路32に供給すると共に(図3(J))、当該データ量
検出信号S11を論理「L」レベルに立ち下げる(図3
(G))。
Read circuit 31 supplies read signal S12 to data amount detection circuit 24N at time t (e) (FIG. 3 (I)), and identifies data amount detection circuit 24N that supplied the read signal S12. Identification signal S1
3 is supplied to the recognition circuit 32. At this time, the data amount detection circuit 24N supplies a data amount detection signal S11 having a logic “H” level to the recognition circuit 32 based on the supplied read signal S12 (FIG. 3 (J)), and detects the data amount. The signal S11 falls to the logic “L” level (FIG. 3
(G)).

【0048】これにより認識回路32は、読出し回路3
1から供給された識別信号S13に基づいて、データ量
検出信号S11(論理「H」レベルでなる)を出力した
データ量検出回路24Nを有する入力部22Nを識別す
ると共に、当該データ量検出信号S11に基づいて入力
部22Nの第1のメモリ23Nに1つのTSパケツト全
てが書き込まれており、当該第1のメモリ23Nからこ
のTSパケツトを読み出せることを認識し、このデータ
量検出信号S11を数値化してこれに対応する入力部2
2Nを表す入力部情報を生成する。
As a result, the recognition circuit 32 reads the read circuit 3
Based on the identification signal S13 supplied from No. 1, the input unit 22N having the data amount detection circuit 24N that has output the data amount detection signal S11 (having a logical "H" level) is identified, and the data amount detection signal S11 It is recognized that all the one TS packet has been written to the first memory 23N of the input unit 22N based on the data, and that the TS packet can be read from the first memory 23N. Input unit 2 corresponding to this
Input unit information representing 2N is generated.

【0049】これに加えて認識回路32は、第2のメモ
リ35に入力部情報を入力部情報信号S15として供給
すると共に、先に入力部情報を書き込んだ後に生成した
i番地(第2のメモリ35に先に入力部情報を書き込ん
だときのi番地を1番地だけ増加させたi番地)を指定
する(図3(L))書込み制御信号S16を供給し、こ
のi番地に入力部情報を書き込む(図3(K))。なお
認識回路32は、先に入力部情報を書き込んだときと同
様に第2のメモリ35に新たな入力部情報を書き込んだ
後、当該入力部情報を書き込んだi番地を1番地だけ増
加させたi番地を生成して次に入力部情報を書き込むた
めの準備をする。
In addition to this, the recognition circuit 32 supplies the input section information to the second memory 35 as the input section information signal S15, and also generates the address i (the second memory) generated after the input section information is previously written. The write control signal S16 is supplied to the address 35 to specify the address i at which the input unit information was previously written by incrementing the address by 1 (FIG. 3 (L)), and the input unit information is stored in the i address. Write (FIG. 3 (K)). Note that the recognition circuit 32 writes new input section information in the second memory 35 in the same manner as when writing the input section information first, and then increases the address i in which the input section information is written by one address. The address i is generated, and then preparations are made for writing the input section information.

【0050】このようにして読出し回路31は、この後
所定周期で順次繰り返し各データ量検出回路24A〜2
4Nに読出し信号S12を供給し、各第1のメモリ23
A〜23NのTSパケツトの書き込み状況を順次検出す
る。これにより認識回路32は、マルチプレクサ37が
第2のメモリ35に書き込まれている全ての入力部情報
を読み出す前に、新たな入力部情報を順次書き込むこと
ができるようになされている。
In this manner, the readout circuit 31 sequentially repeats the data amount detection circuits 24A to 24A at a predetermined cycle.
4N to the first memory 23.
The writing status of TS packets of A to 23N is sequentially detected. Thus, the recognition circuit 32 can sequentially write new input unit information before the multiplexer 37 reads out all the input unit information written in the second memory 35.

【0051】ここでマルチプレクサ37は、第2のメモ
リ35に入力部22A(最初にTSパケツトが書き込ま
れた第1のメモリ23Aを有する)を表す入力部情報が
書き込まれたj番地を指定する(図3(N))読出し制
御信号S20を供給し、これにより第2のメモリ35の
読み出しを制御して、当該読出し制御信号S20に対応
する入力部情報を入力部情報信号S15として読み出す
(図3(M))。かくしてマルチプレクサ37は、読み
出した入力部情報に基づいてTSパケツトが書き込まれ
ている入力部22Aを識別し、時刻t(f)において当
該入力部22Aの第1のメモリ23AからTSパケツト
の読み出しを開始する(図3(C))。なおマルチプレ
クサ37は、第2のメモリ35から入力部情報を読み出
した後、当該入力部情報を読み出したj番地を1番地だ
け増加させたj番地を生成して次に入力部情報を読み出
すための準備をする。
Here, the multiplexer 37 designates the address j in which the input section information representing the input section 22A (having the first memory 23A in which the TS packet is first written) is written in the second memory 35 (see FIG. 2). FIG. 3 (N) supplies a read control signal S20, thereby controlling the reading of the second memory 35, and reading the input section information corresponding to the read control signal S20 as the input section information signal S15 (FIG. 3). (M)). Thus, the multiplexer 37 identifies the input section 22A in which the TS packet is written based on the read input section information, and starts reading the TS packet from the first memory 23A of the input section 22A at time t (f). (FIG. 3C). Note that the multiplexer 37 reads the input unit information from the second memory 35, generates an address j in which the address j from which the input unit information is read is increased by one, and reads the input unit information. Prepare.

【0052】ここで入力部22Bの第1のメモリ23B
には、マルチプレクサ37が第1のメモリ23AからT
SパケツトをTSパケツトデータD10として読み出し
ている間に符号化装置7Bからトランスポートストリー
ムD4Bが供給され、当該トランスポートストリームD
4Bに含まれる1つのTSパケツト全てが時刻t(g)
において書き込まれる(図3(D))。これにより第1
のメモリ23Bに対応するデータ量検出回路23Bは、
論理「L」レベルでなるデータ量検出信号S11を時刻
t(g)において論理「H」レベルに立ち上げる(図3
(E))。
Here, the first memory 23B of the input section 22B
Multiplexor 37 transmits the first memory 23A to T
While the S packet is being read out as the TS packet data D10, the transport stream D4B is supplied from the encoding device 7B, and the transport stream D4 is supplied.
All of the one TS packet included in 4B is time t (g).
(FIG. 3D). This makes the first
The data amount detection circuit 23B corresponding to the memory 23B of
The data amount detection signal S11 at the logical "L" level is raised to the logical "H" level at time t (g) (FIG. 3).
(E)).

【0053】またマルチプレクサ37は、入力部22A
の第1のメモリ23AからTSパケツトをTSパケツト
データD10として読み出している間に、第2のメモリ
35に先に入力部情報を読み出した後に生成したj番地
(第2のメモリ35から先に入力部情報を読み出したと
きのj番地を1番地だけ増加させたj番地)を指定する
(図3(N))読出し制御信号S20を供給し、これに
よりj番地に書き込まれている入力部情報を入力部情報
信号S15として読み出す。
The multiplexer 37 is connected to the input section 22A.
While reading the TS packet from the first memory 23A as the TS packet data D10, the address j generated after reading the input unit information into the second memory 35 first (the input unit information is input first from the second memory 35). A read control signal S20 is specified (FIG. 3 (N)) to specify the address j which is obtained by increasing the address j by one address when the information is read (FIG. 3 (N)), thereby inputting the input section information written at the address j. It is read out as a unit information signal S15.

【0054】かくしてマルチプレクサ37は、読み出し
た入力部情報に基づいてTSパケツトが書き込まれてい
る入力部22Nを識別し、第1のメモリ23AからTS
パケツトデータD10の読み出しが終了した時刻t
(h)において当該入力部22Nの第1のメモリ23N
からTSパケツトの読み出しを開始する(図3
(H))。なおマルチプレクサ37は、第2のメモリ3
5から先に入力部情報を読み出したときと同様に当該第
2のメモリ35から入力部情報を読み出した後、当該入
力部情報を読み出したj番地を1番地だけ増加させたj
番地を生成して次に入力部情報を読み出すための準備を
する。
Thus, the multiplexer 37 identifies the input section 22N in which the TS packet has been written based on the read input section information, and sends the TS packet from the first memory 23A to the TS section.
Time t at which reading of packet data D10 is completed
In (h), the first memory 23N of the input unit 22N
Starts reading of the TS packet from FIG.
(H)). The multiplexer 37 is connected to the second memory 3
5, after reading the input unit information from the second memory 35 in the same manner as when reading the input unit information first, the address j from which the input unit information is read is increased by one.
The address is generated, and preparations are made for reading out the input section information.

【0055】かくしてこの多重化装置21は、上述した
多重化処理の動作を順次繰り返すことにより、各符号化
装置7A〜7Nから供給されるトランスポートストリー
ムD4A〜D4Nに含まれるTSパケツトをこれが順次
書き込まれた各第1のメモリ23A〜23Nの順番で各
第1のメモリ23A〜23Nから多重化部27のマルチ
プレクサ37に読み込むようにして当該トランスポート
ストリームD4A〜D4Nを多重化処理し得るようにな
されている。
Thus, the multiplexing device 21 sequentially writes the TS packets included in the transport streams D4A to D4N supplied from the encoding devices 7A to 7N by sequentially repeating the above-described multiplexing operation. The transport streams D4A to D4N can be multiplexed by reading from the first memories 23A to 23N to the multiplexer 37 of the multiplexing unit 27 in the order of the first memories 23A to 23N. ing.

【0056】なおこの実施例の場合、多重化装置21で
は、各入力部22A〜22Nのそれぞれ第1のメモリ2
3A〜23Nが例えば少なくとも符号化装置7A〜7N
の数と同数のN個のTSパケツトを書き込めるようなデ
ータ量の書き込み容量を有する。これにより多重化装置
21は、多重化部27のマルチプレクサ37により各第
1のメモリ23A〜23NからTSパケツトをTSパケ
ツトデータD10として順次読み出す場合、少なくとも
1つの第1のメモリ23A〜23Nに連続してTSパケ
ツトが到着し、かつこの第1のメモリ23A〜23Nが
各第1のメモリ23A〜23Nの数と同数のTSパケツ
トが読み出される時間だけ待機状態となつても当該TS
パケツトを確実に書き込むことができるようになされて
いる。
In the case of this embodiment, in the multiplexer 21, the first memory 2 of each of the input sections 22A to 22N is provided.
3A to 23N are, for example, at least the encoding devices 7A to 7N
Has a write capacity of a data amount capable of writing the same number of TS packets as the number of TS packets. Thus, when the multiplexer 37 of the multiplexer 27 sequentially reads out the TS packets from each of the first memories 23A to 23N as the TS packet data D10, the multiplexer 21 continues to the at least one first memory 23A to 23N. Even if a TS packet arrives and the first memories 23A to 23N are in a standby state for a time during which the same number of TS packets as the number of the first memories 23A to 23N are read out, the corresponding TS
Packets can be written reliably.

【0057】以上の構成において、この多重化装置21
においては、各第1のメモリ23A〜23Nに1つのT
Sパケツト全てが書き込まれたことをそれぞれ対応する
データ量検出回路24A〜24Nによつて検出し、読出
し回路31によつて各データ量検出回路24A〜24N
から検出結果を表すデータ量検出信号S11を所定周期
で読み出し、当該読み出したデータ量検出信号S11に
基づいて認識回路32においてTSパケツトが書き込ま
れた第1のメモリ23A〜23Nの順番を認識してこの
順番を入力部情報として順次第2のメモリ35に書き込
む。これによりTSパケツトを読み出す第1のメモリ2
3A〜23Nの順番を決定することができる。またマル
チプレクサ37により第2のメモリ35から入力部情報
をこれが書き込まれた順番で読み出すことにより、当該
読み出した入力部情報に基づいてTSパケツトを第1の
メモリ23A〜23Nに書き込まれた順番で読み出すよ
うにして多重化処理することができる。
In the above configuration, the multiplexing device 21
, One T is stored in each of the first memories 23A to 23N.
The fact that all the S packets have been written is detected by the corresponding data amount detection circuits 24A to 24N, and the readout circuit 31 detects the data amount detection circuits 24A to 24N.
, A data amount detection signal S11 representing a detection result is read out at a predetermined cycle, and based on the read data amount detection signal S11, the recognition circuit 32 recognizes the order of the first memories 23A to 23N in which the TS packets are written. This order is sequentially written into the second memory 35 as input section information. Thereby, the first memory 2 for reading the TS packet is read.
The order of 3A to 23N can be determined. Also, by reading the input unit information from the second memory 35 in the order in which it was written by the multiplexer 37, the TS packets are read out in the order in which they were written to the first memories 23A to 23N based on the read input unit information. The multiplexing process can be performed as described above.

【0058】従つてこの多重化装置21では、TSパケ
ツトが書き込まれた第1のメモリ23A〜23Nの順番
を第2のメモリ35に書き込み、このように書き込んだ
順番に基づいて、マルチプレクサ37により当該第1の
メモリ23A〜23NからTSパケツトを読み出すよう
にしたことにより、従来の多重化装置8のように入力部
に先に到着したTSパケツトが読み出されずにそのまま
待機状態となることを防止して当該TSパケツトが書き
込まれた第1のメモリ23A〜23Nの順番通りに当該
第1のメモリ23A〜23NからTSパケツトを確実に
読み出すことができ、かくして第1のメモリ23A〜2
3NにTSパケツトが書き込まれた順番と、多重化処理
されて形成されたトランスポートストリームD6に含ま
れるTSパケツトの順番とを等しくすることができる。
Therefore, in the multiplexing apparatus 21, the order of the first memories 23A to 23N in which the TS packets have been written is written in the second memory 35. By reading the TS packets from the first memories 23A to 23N, it is possible to prevent the TS packets that have arrived at the input unit earlier from being read out as in the conventional multiplexing device 8 without being read out. The TS packets can be reliably read from the first memories 23A to 23N in the order of the first memories 23A to 23N in which the TS packets have been written, and thus the first memories 23A to 23N can be read.
The order in which the TS packets are written in the 3N can be made equal to the order of the TS packets included in the transport stream D6 formed by multiplexing.

【0059】またこの多重化装置21では、読出し回路
31において、マルチプレクサ37によるTSパケツト
データD10の読み出し時間よりも短い所定周期で順次
繰り返し各データ量検出回路24A〜24Nに読出し信
号S12を供給するようにしたことにより、当該マルチ
プレクサ37が第2のメモリ35から入力部情報を読み
出してこれに基づいて第1のメモリ23A〜23Nから
STパケツトを読み出している間に認識回路32が新た
な入力部情報を第2のメモリ35に順次書き込むことが
でき、かくして多重化処理の途中に第2のメモリ35に
書き込まれている入力部情報が全て読み出され、このた
めマルチプレクサ37による第1のメモリ23A〜23
NからのTSパケツトの読み出しが停止することを防止
してTSパケツトを連続して効率良く読み出すことがで
きる。
In the multiplexing device 21, the readout circuit 31 supplies the readout signal S12 to the data amount detection circuits 24A to 24N sequentially and repeatedly at a predetermined cycle shorter than the readout time of the TS packet data D10 by the multiplexer 37. Thus, while the multiplexer 37 reads the input unit information from the second memory 35 and reads the ST packets from the first memories 23A to 23N based on the input unit information, the recognition circuit 32 outputs the new input unit information. The input information can be sequentially written to the second memory 35, and thus all the input section information written to the second memory 35 is read out during the multiplexing process. Therefore, the first memories 23A to 23A by the multiplexer 37 are read.
It is possible to prevent the reading of the TS packets from N from being stopped, and to continuously and efficiently read the TS packets.

【0060】さらにこの多重化装置21では、データ量
検出回路24A〜24Nにおいて、それぞれ対応する第
1のメモリ23A〜23Nに1つのTSパケツト全てが
書き込まれることにより論理「H」レベルに立ち上げた
データ量検出信号S11を、読出し回路31によつて読
み出される毎に論理「L」レベルに立ち下げるようにし
たことにより、第1のメモリ23A〜23Nに書き込ま
れた1つのTSパケツトがマルチプレクサ37によつて
読み出されるまでの間に読出し回路31からデータ量検
出回路24A〜24Nに複数回読出し信号S12が供給
され、このたびに当該データ量検出回路24A〜24N
が1つのSTパケツトに対して重複して論理「H」レベ
ルでなるデータ量検出信号S11を認識回路32に供給
することを防止することができる。
Further, in the multiplexing device 21, the data amount detection circuits 24A to 24N are set to the logic "H" level by writing all the TS packets to the corresponding first memories 23A to 23N. By causing the data amount detection signal S11 to fall to the logical "L" level every time the data is read out by the readout circuit 31, one TS packet written in the first memories 23A to 23N is sent to the multiplexer 37. The readout signal S12 is supplied from the readout circuit 31 to the data amount detection circuits 24A to 24N a plurality of times before the data is read out, and each time the data amount detection circuits 24A to 24N are read.
Can be prevented from being supplied to the recognition circuit 32 with the data amount detection signal S11 having the logic "H" level redundantly for one ST packet.

【0061】さらにこのような多重化装置21を用いた
多重化方法では、第1のメモリ23A〜23NにTSパ
ケツトが書き込まれたことを検出し、当該検出結果に基
づいてTSパケツトを読み出す第1のメモリ23A〜2
3Nの順番を決定するようにしたことにより、従来考え
られた多重化装置のように到着したTSパケツトにその
到着時間を表す時間情報を付加し、当該TSパケツトの
読出し順番を決定する場合に時間情報を比較判断する等
のような煩雑な処理過程を必要とせずに、TSパケツト
を読み出す番を容易に決定することができ、かくして各
第1のメモリ23A〜23Nから読出し順番にしたがつ
てTSパケツトを順次読み出して容易に多重化処理する
ことができる。
Further, in the multiplexing method using such a multiplexing device 21, it is detected that a TS packet has been written into the first memories 23A to 23N, and the first packet is read out based on the detection result. Memory 23A-2
By determining the order of 3N, time information indicating the arrival time is added to the arriving TS packet as in the multiplexing device considered conventionally, and the time is determined when the reading order of the TS packet is determined. The number of TS packets to be read can be easily determined without requiring complicated processing steps such as comparing and judging information. Thus, the TS packets are read from each of the first memories 23A to 23N in the reading order. Packets can be sequentially read out and easily multiplexed.

【0062】以上の構成によれば、それぞれ対応する符
号化装置7A〜7Nから供給されるトランスポートスト
リームD4A〜D4Nに含まれるTSパケツトを順次書
き込む複数の第1のメモリ23A〜23Nと、それぞれ
対応する第1のメモリ23A〜23NにTSパケツトが
書き込まれたことを検出する複数のデータ量検出回路2
4A〜24Nと、各データ量検出回路24A〜24Nか
ら検出結果を表すデータ量検出信号S11を所定周期で
順次読み出す読出し回路31と、各データ量検出回路2
4A〜24Nから供給されたデータ量検出信号S11に
基づいてTSパケツトが書き込まれた第1のメモリ23
A〜23Nの順番を認識する認識回路32と、当該認識
回路32が認識結果を入力部情報として順次書き込む第
2のメモリ35と、当該第2のメモリ35から順次入力
部情報をこれが書き込まれた順番で読み出して、当該読
み出した入力部情報に応じた第1のメモリ23A〜23
NからTSパケツトを順次読み出すようにして多重化処
理するマルチプレクサ37とを設けるようにしたことに
より、従来の多重化装置のように入力部に到着したTS
パケツトが読み出されずに待機状態となることを防止し
て当該TSパケツトが書き込まれた第1のメモリ23A
〜23Nの順番通りに当該第1のメモリ23A〜23N
からTSパケツトを確実に読み出し、これにより第1の
メモリ23A〜23NにTSパケツトが書き込まれた順
番と、多重化処理されて形成されたトランスポートスト
リームD6に含まれるTSパケツトの順番とを等しくす
ることができ、かくして受信装置においてTSパケツト
に対応する映像データ及び音声データ並びに番組情報デ
ータを正しく再生させることができる多重化装置を実現
することができる。
According to the above configuration, the plurality of first memories 23A to 23N for sequentially writing the TS packets included in the transport streams D4A to D4N supplied from the corresponding encoding devices 7A to 7N, respectively. A plurality of data amount detection circuits 2 for detecting that the TS packets have been written into the first memories 23A to 23N.
4A to 24N, a readout circuit 31 for sequentially reading out a data amount detection signal S11 representing a detection result from each of the data amount detection circuits 24A to 24N at a predetermined cycle, and a data amount detection circuit 2
The first memory 23 in which a TS packet is written based on the data amount detection signal S11 supplied from 4A to 24N.
A recognition circuit 32 for recognizing the order of A to 23N, a second memory 35 in which the recognition circuit 32 sequentially writes recognition results as input unit information, and input unit information sequentially written from the second memory 35 The first memories 23 </ b> A to 23 </ b> A read in order and correspond to the read input unit information.
A multiplexer 37 for performing multiplexing processing by sequentially reading TS packets from N is provided, so that the TS arriving at the input unit as in a conventional multiplexer is provided.
The first memory 23A in which the TS packet is written is prevented by preventing the packet from being read out and entering a standby state.
To the first memories 23A to 23N in the order of
, The order in which the TS packets are written into the first memories 23A to 23N is made equal to the order of the TS packets included in the transport stream D6 formed by the multiplexing process. Thus, it is possible to realize a multiplexing apparatus capable of correctly reproducing video data, audio data, and program information data corresponding to a TS packet in a receiving apparatus.

【0063】またそれぞれ対応する各符号化装置7A〜
7Nから供給されるトランスポートストリームD4A〜
D4Nに含まれるTSパケツトを第1のメモリ23A〜
23Nに順次書き込み、次いでそれぞれ対応する第1の
メモリ23A〜23NにTSパケツトが書き込まれたこ
とを検出し、当該検出結果に基づいてTSパケツトが書
き込まれた第1のメモリ23A〜23Nの順番を認識
し、当該認識結果を入力部情報として順次第2のメモリ
35に書き込み、続いて当該第2のメモリ35から順次
入力部情報をこれが書き込まれた順番で読み出して、当
該読み出した入力部情報に応じた第1のメモリ23A〜
23NからTSパケツトを順次読み出すようにして多重
化処理するようにしたことにより、従来考えられた多重
化装置のようにTSパケツトの読出し順番を決定する場
合に当該TSパケツトに付加された到着時間を表す時間
情報を比較判断する等のような煩雑な処理過程を必要と
せずに、TSパケツトを読み出す順番を容易に決定し、
当該順番通りに第1のメモリ23A〜23NからTSパ
ケツトを順次読み出して容易に多重化処理することがで
き、かくして受信装置においてTSパケツトに対応する
映像データ及び音声データ並びに番組情報データを正し
く再生させることができる多重化方法を実現することが
できる。
Each of the corresponding encoding devices 7A to 7A
7N transport streams D4A-
The TS packets included in D4N are stored in the first memories 23A to 23A.
23N, and then detects that the TS packets have been written in the corresponding first memories 23A to 23N, and determines the order of the first memories 23A to 23N in which the TS packets have been written based on the detection result. Recognition, the recognition result is sequentially written as input unit information in the second memory 35, and subsequently, the input unit information is sequentially read from the second memory 35 in the order in which the input unit information was written, and the read input unit information is stored in the read input unit information. First memory 23A to
The multiplexing process is performed by sequentially reading the TS packets from the 23N, so that the arrival time added to the TS packet is determined when the reading order of the TS packets is determined as in the multiplexing device considered conventionally. The order in which TS packets are read out can be easily determined without the need for complicated processing steps such as comparing and judging time information to be represented.
The TS packets can be sequentially read out from the first memories 23A to 23N in the same order and can be easily multiplexed, so that the receiving apparatus correctly reproduces the video data, audio data and program information data corresponding to the TS packets. Multiplexing method that can be realized.

【0064】なお上述の実施の形態においては、本発明
をデイジタル放送システムの送信装置20に用いられる
多重化装置21に適用するようにした場合について述べ
たが、本発明はこれに限らず、MPEG2方式を適用し
たこの他種々の送信装置及び送受信装置並びに記録装置
及び記録再生装置に用いられる多重化装置に適用するよ
うにしても良い。
In the above embodiment, a case has been described in which the present invention is applied to the multiplexing device 21 used in the transmitting device 20 of the digital broadcasting system. However, the present invention is not limited to this, and the present invention is not limited thereto. The present invention may be applied to various other transmitting apparatuses and transmitting / receiving apparatuses to which the system is applied, and to a multiplexing apparatus used for a recording apparatus and a recording / reproducing apparatus.

【0065】また上述の実施の形態においては、各チヤ
ンネルにそれぞれ対応させて設けられ、それぞれ供給さ
れるパケツトデータを順次記憶する第1の記憶手段とし
て、第1のメモリ23A〜23Nを適用するようにした
場合について述べたが、本発明はこれに限らず、各チヤ
ンネルにそれぞれ対応させて設けられ、それぞれ供給さ
れるパケツトデータを順次記憶することができれば、こ
の他種々の構成でなる第1の記憶手段を適用するように
しても良い。
In the above-described embodiment, the first memories 23A to 23N are provided as the first storage means provided in correspondence with the respective channels and sequentially storing the supplied packet data. However, the present invention is not limited to this. If the packet data provided for each channel can be sequentially stored, the first storage means having various other configurations can be used. May be applied.

【0066】さらに上述の実施の形態においては、各第
1の記憶手段23A〜23Nにそれぞれ対応させて設け
られ、それぞれ対応する第1の記憶手段23A〜23N
に1つのパケツトデータが記憶されたことを検出する検
出手段として、データ量検出回路24A〜24Nを適用
するようにした場合について述べたが、本発明はこれに
限らず、各第1の記憶手段23A〜23Nにそれぞれ対
応させて設けられ、それぞれ対応する第1の記憶手段2
3A〜23Nに1つのパケツトデータが記憶されたこと
を検出することができれば、この他種々の構成でなる検
出手段を適用するようにしても良い。
Further, in the above-described embodiment, the first storage units 23A to 23N are provided corresponding to the first storage units 23A to 23N, respectively.
As described above, the case where the data amount detection circuits 24A to 24N are applied as the detection means for detecting that one packet data is stored in the first storage means 23A is not limited to this. To 23N, and the first storage means 2 respectively corresponding to
As long as it is possible to detect that one packet data is stored in 3A to 23N, detection means having various other configurations may be applied.

【0067】さらに上述の実施の形態においては、各検
出手段24A〜24Nからそれぞれ得られる検出結果に
基づいて、記憶されたパケツトデータを読み出す第1の
記憶手段23A〜23Nの順番を決定する決定手段とし
て、決定回路30を適用するようにした場合について述
べたが、本発明はこれに限らず、各検出手段24A〜2
4Nからそれぞれ得られる検出結果に基づいて、記憶さ
れたパケツトデータを読み出す第1の記憶手段23A〜
23Nの順番を決定することができれば、この他種々の
構成でなる決定手段を適用するようにしても良い。
Further, in the above-described embodiment, the determination means for determining the order of the first storage means 23A to 23N for reading out the stored packet data based on the detection results obtained from the detection means 24A to 24N, respectively. , The decision circuit 30 is applied, but the present invention is not limited to this, and each of the detection means 24A to 24A
4N for reading stored packet data based on the detection results respectively obtained from the 4N.
As long as the order of 23N can be determined, a determining means having various other configurations may be applied.

【0068】さらに上述の実施の形態においては、決定
手段30によつて決定された順番に基づいてパケツトデ
ータを各第1の記憶手段から順次読み出して多重化処理
する多重化処理手段としてマルチプレクサ37を適用す
るようにした場合について述べたが、本発明はこれに限
らず、決定手段30によつて決定された順番に基づいて
パケツトデータを各第1の記憶手段から順次読み出して
多重化処理することができれば、この他種々の構成でな
る多重化処理手段を適用するようにしても良い。
Further, in the above-described embodiment, the multiplexer 37 is applied as multiplexing processing means for sequentially reading out packet data from each first storage means based on the order determined by the determination means 30 and performing multiplexing processing. However, the present invention is not limited to this case, and packet data can be sequentially read from each first storage means and multiplexed based on the order determined by the determination means 30. Alternatively, multiplexing processing means having various other configurations may be applied.

【0069】さらに上述の実施の形態においては、各検
出手段24A〜24N毎の検出結果を所定周期で順次読
み出す読出し手段として、読出し回路31を適用するよ
うにした場合について述べたが、本発明はこれに限ら
ず、各検出手段24A〜24N毎の検出結果を所定周期
で順次読み出すことができれば、この他種々の構成でな
る読出し手段を適用するようにしても良い。
Further, in the above-described embodiment, a case has been described in which the reading circuit 31 is applied as reading means for sequentially reading the detection results of the respective detecting means 24A to 24N at a predetermined cycle. However, the present invention is not limited to this. As long as the detection results of each of the detection units 24A to 24N can be sequentially read at a predetermined cycle, a reading unit having various other configurations may be applied.

【0070】さらに上述の実施の形態においては、読出
し手段31によつて各検出手段24A〜24Nから順次
読み出された検出結果に基づいてパケツトデータが記憶
された第1の記憶手段23A〜23Nの順番を認識する
認識手段として、認識回路32を適用するようにした場
合について述べたが、本発明はこれに限らず、読出し手
段31によつて各検出手段24A〜24Nから順次読み
出された検出結果に基づいてパケツトデータが記憶され
た第1の記憶手段23A〜23Nの順番を認識すること
ができれば、この他種々の構成でなる認識手段を適用す
るようにしても良い。
Further, in the above-described embodiment, the order of the first storage means 23A to 23N in which the packet data is stored based on the detection results sequentially read from the respective detection means 24A to 24N by the read means 31. Although the recognition circuit 32 is applied as the recognition means for recognizing the detection result, the present invention is not limited to this, and the detection result sequentially read from the detection means 24A to 24N by the reading means 31 is described. If it is possible to recognize the order of the first storage means 23A to 23N in which the packet data is stored based on the above, recognition means having various other configurations may be applied.

【0071】さらに上述の実施の形態においては、認識
手段32から得られる認識結果を順次記憶する第2の記
憶手段として、第2のメモリ35を適用するようにした
場合について述べたが、本発明はこれに限らず、認識手
段32から得られる認識結果を順次記憶することができ
れば、この他種々の構成でなる第2の記憶手段を適用す
るようにしても良い。
Further, in the above-described embodiment, the case where the second memory 35 is applied as the second storage means for sequentially storing the recognition results obtained from the recognition means 32 has been described. The present invention is not limited to this, and a second storage unit having various other configurations may be applied as long as the recognition results obtained from the recognition unit 32 can be sequentially stored.

【0072】さらに上述の実施の形態においては、認識
回路32により論理「H」レベルでなるデータ量検出信
号S11を数値化して、当該データ量検出信号S11に
対応する入力部22A〜22Nを表す入力部情報を生成
するようにした場合について述べたが、本発明はこれに
限らず、論理「H」レベルでなるデータ量検出信号S1
1に基づいてTSパケツトを読み出す第1のメモリ23
A〜23Nを表すことができれば、当該論理「H」レベ
ルでなるデータ量検出信号S11に基づいて、対応する
第1のメモリ23A〜23N、チヤンネルCH1〜CH
N等のようにこの他種々の回路を表す情報を生成するよ
うにしても良い。
Further, in the above-described embodiment, the data amount detection signal S11 having the logic "H" level is digitized by the recognition circuit 32, and the input signals representing the input sections 22A to 22N corresponding to the data amount detection signal S11 are input. Although the description has been given of the case where the unit information is generated, the present invention is not limited to this, and the data amount detection signal S1 having a logical “H” level is
A first memory 23 for reading a TS packet based on
If A to 23N can be represented, the corresponding first memories 23A to 23N and channels CH1 to CH are determined based on the data amount detection signal S11 at the logical "H" level.
Information indicating other various circuits such as N may be generated.

【0073】(2)第2の実施の形態 図4はデイジタル放送システム130を示すものであ
り、まず送信装置106では、各データ出力部107A
〜107Nからそれぞれ供給されるテレビジヨン番組に
対応する所定データ(例えば、映像データD1A〜D1
N及び音声データD2A〜D2N並びに番組情報データ
D3A〜D3N)をそれぞれ対応する符号化装置108
A〜108Nにおいて圧縮符号化すると共に、このよう
にして得られた圧縮符号化された映像データ及び音声デ
ータ並びに番組情報データを順次所定ブロツク毎にTS
パケツト化してTSパケツトデータD4A〜D4Nを形
成し、これを順次多重化装置109に供給するようにな
されている。
(2) Second Embodiment FIG. 4 shows a digital broadcasting system 130. First, in the transmitting apparatus 106, each data output unit 107A
To 107N (eg, video data D1A to D1).
N and the audio data D2A to D2N and the program information data D3A to D3N)
A to 108N, the compression-encoded video data, audio data, and program information data obtained in this manner are sequentially transferred to the TS every predetermined block.
The packets are packetized to form TS packet data D4A to D4N, which are sequentially supplied to the multiplexer 109.

【0074】ここで各符号化装置108A〜108N
は、それぞれ対応するクロツク発生回路110A〜11
0Nから動作クロツクCLK1A〜CLK1Nが供給され、
この動作クロツクCLK1A〜CLK1Nのタイミングで圧
縮符号化及びTSパケツト化等の処理を実行する。また
各クロツク発生回路110A〜110Nは、それぞれ対
応するPCR発生回路111A〜111Nにも動作クロ
ツクCLK1A〜CLK1Nを供給しており、各PCR発生
回路111A〜111Nはそれぞれ対応する動作クロツ
クCLK1A〜CLK1Nに同期して順次カウントし、この
カウント値をカウント値データD5A〜D5Nとしてそ
れぞれ対応する符号化装置108A〜108Nに供給す
る。
Here, each of the encoding devices 108A to 108N
Are the corresponding clock generation circuits 110A to 110A, respectively.
0N, the operation clocks CLK 1A to CLK 1N are supplied.
Executes processing such as compression encoding, and TS packets of the timing of the operation clock CLK 1A ~CLK 1N. The respective clock generation circuit 110A~110N each has supplied the corresponding PCR generator also operates clock CLK 1A to CLK 1N to 111a to 111n, each PCR generation circuit 111a to 111n are operating clock CLK 1A corresponding ~ Counting is performed sequentially in synchronization with CLK 1N , and the count value is supplied to the corresponding encoding devices 108A to 108N as count value data D5A to D5N, respectively.

【0075】かくして、各符号化装置108A〜108
Nは、それぞれ複数のTSパケツトデータD4A〜D4
Nを形成する際、PCR格納対象の所定のTSパケツト
データTS1〜TS3にそれぞれこれらを形成したとき
のカウント値をPCRとして格納する。これに加えて各
符号化装置108A〜108Nは、各TSパケツトデー
タTS1〜TS3間(すなわち、TSパケツトデータT
S1とTSパケツトデータTS2との間、又はTSパケ
ツトデータTS2とTSパケツトデータTS3との間)
のPCRが格納される時間間隔(カウント数)をこれら
各TSパケツトデータTS1〜TS3を供給する時間間
隔と一致させるようにして各TSパケツトデータD4A
〜D4Nをそれぞれ多重化装置131に供給する。
Thus, each of the encoding devices 108A-108
N is a plurality of TS packet data D4A to D4, respectively.
When N is formed, the count value when these are formed is stored as PCR in predetermined TS packet data TS1 to TS3 to be stored in the PCR. In addition to this, each of the encoding devices 108A to 108N transmits the data between the TS packet data TS1 to TS3 (that is, the TS packet data T
(Between S1 and TS packet data TS2, or between TS packet data TS2 and TS packet data TS3)
Of the TS packet data D4A so that the time interval (count number) in which the PCR is stored coincides with the time interval at which these TS packet data TS1 to TS3 are supplied.
To D4N are supplied to the multiplexer 131, respectively.

【0076】かくして多重化装置131は、各符号化装
置108A〜108Nからそれぞれ入力された各TSパ
ケツトデータD4A〜D4N(PCRが格納されたTS
パケツトデータを含む)を多重化することによりトラン
スポートストリームD7を形成して送信回路112に供
給する。送信回路112は、トランスポートストリーム
D7を所定フオーマツトの送信信号S1に変換して送信
する。
Thus, the multiplexing apparatus 131 outputs the TS packet data D4A to D4N (the TS in which the PCR is stored) input from the encoding apparatuses 108A to 108N, respectively.
(Including packet data) to form a transport stream D7 and supply it to the transmitting circuit 112. The transmission circuit 112 converts the transport stream D7 into a transmission signal S1 of a predetermined format and transmits the transmission signal S1.

【0077】この場合図5に示すように、多重化装置1
31は、各符号化装置108A〜108Nからそれぞれ
対応する入力部132A〜132NにTSパケツトデー
タD4A〜、又はD4Nが供給される。各入力部132
A〜132Nはそれぞれ同様構成でなり、ここで入力部
132Aは、供給された各TSパケツトデータD4Aが
検出部133のTSパケツト識別回路134に供給され
ると共に、タイムスタンプ付加回路135に供給され
る。
In this case, as shown in FIG.
31 is supplied with TS packet data D4A to D4N from the encoding devices 108A to 108N to the corresponding input units 132A to 132N, respectively. Each input unit 132
A to 132N have the same configuration, and the input unit 132A supplies the supplied TS packet data D4A to the TS packet identification circuit 134 of the detection unit 133 and also supplies the TS packet data D4A to the time stamp addition circuit 135.

【0078】TSパケツト識別回路133は、入力され
た各TSパケツトデータD4Aのそれぞれ最後尾を識別
し、当該最後尾を示す(例えばTSパケツトデータD4
Aの先頭から最後尾までのデータビツト数でなる)タイ
ミング信号S10をタイムスタンプ付加回路135に供
給する。ここで多重化装置131の多重化部140に
は、タイムスタンプ発生回路141が設けられており、
当該タイムスタンプ発生回路141は、クロツク発生回
路110A〜110N(図1)が発生させた動作クロツ
クCLK1A〜CLK1Nに同期した動作クロツクCLKT
が入力され、これに同期してカウントし、かくしてカウ
ント値をカウント値データD30としてタイムスタンプ
付加回路135に供給する。
The TS packet identification circuit 133 identifies the last one of the input TS packet data D4A, and indicates the last one (for example, the TS packet data D4).
A timing signal S10 (consisting of the number of data bits from the beginning to the end of A) is supplied to the time stamp adding circuit 135. Here, the multiplexing unit 140 of the multiplexing device 131 is provided with a time stamp generating circuit 141,
The time stamp generation circuit 141, clock generating circuit 110 a - 110 n (FIG. 1) is synchronized with the operation clock CLK 1A to CLK 1N that caused operating clock CLK T
, And counts in synchronization with this. The count value is supplied to the time stamp adding circuit 135 as count value data D30.

【0079】これによりタイムスタンプ付加回路135
Aは、タイミング信号S10に基づいて、順次到着した
各TSパケツトデータD4Aの最後尾にその到着したと
きのカウント値を第1のタイムスタンプ(多重化処理の
開始時間)として付加する。すなわち図6に示すよう
に、TSパケツトデータD4Aの大きさが次式
As a result, the time stamp adding circuit 135
A adds a count value at the end of each sequentially arrived TS packet data D4A as a first time stamp (start time of the multiplexing process) based on the timing signal S10. That is, as shown in FIG. 6, the size of the TS packet data D4A is

【数2】 で表され、第1のタイムスタンプTM1の大きさが次式(Equation 2) Where the size of the first time stamp TM1 is

【数3】 で表されると仮定して、当該TSパケツトデータD4A
の最後尾に第1のタイムスタンプTM1を付加する。
(Equation 3) Assuming that the TS packet data D4A
Is added to the last time stamp TM1.

【0080】このようにしてタイムスタンプ付加回路1
35は、第1のタイムスタンプを付加した各TSパケツ
トデータD31Aを順次メモリ142Aに供給し、当該
メモリ142は、入力された各TSパケツトデータD3
1Aを順次格納する。
Thus, the time stamp adding circuit 1
35 sequentially supplies the TS packet data D31A to which the first time stamp is added to the memory 142A, and the memory 142 stores the inputted TS packet data D3.
1A are sequentially stored.

【0081】かくして、各入力部132A〜132Nの
各メモリ142A〜142Nにタイムスタンプが付加さ
れたTSパケツトデータが格納されると、読出し回路1
43は各メモリ142A〜142N内に格納された各T
Sパケツトデータのタイムスタンプをタイムスタンプ読
出信号S11によつて読み出し、当該読み出されたタイ
ムスタンプに基づいて、各メモリ142A〜142Nに
格納されたTSパケツトデータの格納順を判別する。
When the time-stamped TS packet data is stored in each of the memories 142A to 142N of each of the input units 132A to 132N, the read circuit 1
43 is each T stored in each of the memories 142A to 142N.
The time stamp of the S packet data is read by the time stamp read signal S11, and the storage order of the TS packet data stored in each of the memories 142A to 142N is determined based on the read time stamp.

【0082】そして読出し回路143は、タイムスタン
プによる判別結果に従つて、メモリ142A〜142N
に格納された順番にTSパケツトデータを読み出し、こ
れをタイムスタンプ識別回路144と、修正部145の
PCR識別回路146と、PCR修正回路147とにそ
れぞれ供給する。
Then, the read circuit 143 determines the memory 142A-142N according to the determination result based on the time stamp.
The TS packet data is read out in the order in which the packet data is stored, and supplied to the time stamp identification circuit 144, the PCR identification circuit 146 of the correction unit 145, and the PCR correction circuit 147, respectively.

【0083】このように、複数のメモリ142A〜14
2Nに対して格納された順番にTSパケツトデータが読
み出されることにより、各メモリ142A〜142Nに
格納してから多重化処理されるまでの各TSパケツトデ
ータの遅延時間Dを一定とすることができる。
As described above, the plurality of memories 142A to 142A
By reading the TS packet data in the order in which it is stored in the 2N, the delay time D of each TS packet data from the time when it is stored in each of the memories 142A to 142N to the time when the multiplexing processing is performed can be made constant.

【0084】すなわち、多重化装置131に入力される
チヤンネル数をnとし、それぞれのチヤンネルをチヤン
ネル1、チヤンネル2、チヤンネル3、……チヤンネル
nとする。チヤンネル1〜チヤンネルnの各入力レート
をそれぞれR1、R2、R3、……Rn[bits/sec]とす
る。チヤンネル1〜チヤンネルnのメモリ(FIFO)
142A〜142Nにバツフアリングされているデータ
容量をそれぞれV1、V2、V3、……Vn[bits]とす
る。また、多重化装置131から各TSパケツトデータ
が多重化されて出力される際の出力レートをR[bits/se
c]とする。
That is, the number of channels input to the multiplexer 131 is n, and the respective channels are channel 1, channel 2, channel 3,... Channel n. The input rates of channels 1 to n are R1, R2, R3,..., Rn [bits / sec]. Memory of channel 1 to channel n (FIFO)
The data capacities buffered to 142A to 142N are V1, V2, V3,..., Vn [bits]. Also, the output rate at which each TS packet data is multiplexed and output from the multiplexing device 131 is R [bits / se
c].

【0085】ここで、各チヤンネル1〜チヤンネルnに
おいてのマルチプレクス(多重化)による遅延時間につ
いて説明する。この多重化装置131に入力される各T
Sパケツトデータは、前段の各符号化装置108A〜1
08Nにおいて、各チヤンネル1〜チヤンネルnの入力
レートの総和(R1+R2+R3+……+Rn[bits/se
c])を出力レートR[bits/sec]と同じとなるような、い
わゆる統計多重化処理を行つている。この統計多重化処
理では、各チヤンネル1〜チヤンネルnの入力レートが
変動する。
Here, the delay time due to multiplexing (multiplexing) in each of the channels 1 to n will be described. Each T input to the multiplexer 131
The S packet data is transmitted to each of the encoding devices 108A to 108A-1 at the preceding stage.
08N, the sum of the input rates of each channel 1 to channel n (R1 + R2 + R3 +... + Rn [bits / se
c]) is subjected to a so-called statistical multiplexing process that is the same as the output rate R [bits / sec]. In this statistical multiplexing process, the input rate of each of the channels 1 to n fluctuates.

【0086】この場合、入力レートの総和(R1+R2
+R3+……+Rn[bits/sec])は出力レートR[bits/
sec]と一致するため、次式
In this case, the sum of the input rates (R1 + R2
+ R3 + ... + Rn [bits / sec]) is the output rate R [bits /
sec]

【数4】 となる。(Equation 4) Becomes

【0087】通常、出力の伝送容量は予め決まつている
ので、出力レートR[bits/sec]は一定であると仮定でき
る。各チヤンネル1〜チヤンネルnのメモリ(FIF
O)142A〜142Nにバツフアリングされているデ
ータ容量の総和をV[bits]とすると、次式
Normally, since the output transmission capacity is predetermined, it can be assumed that the output rate R [bits / sec] is constant. Memory of each channel 1 to channel n (FIF
O) Assuming that the total amount of data buffered in 142A to 142N is V [bits], the following equation is obtained.

【数5】 となる。(Equation 5) Becomes

【0088】この場合、入力レート(R1+R2+R3
+……+Rn[bits/sec])の総和は出力レートR[bits/
sec]であることにより、データ容量の総和V[bits]は常
に一定となる。
In this case, the input rate (R1 + R2 + R3
+... + Rn [bits / sec]) is the output rate R [bits / sec.
sec], the total sum V [bits] of the data capacity is always constant.

【0089】ここで、第1のチヤンネル1についての遅
延時間を計算する。入力レートはR1[bits/sec]、バツ
フアリングされているデータ量はV1[bits]であり、こ
の場合の遅延時間D1は、次式
Here, the delay time for the first channel 1 is calculated. The input rate is R1 [bits / sec], the amount of buffered data is V1 [bits], and the delay time D1 in this case is expressed by the following equation.

【数6】 となる。(Equation 6) Becomes

【0090】また、TSパケツトデータを入力順にメモ
リ142A〜142Nから読み出して多重化すると、各
チヤンネル1〜チヤンネルnにバツフアリングされてい
るデータ容量はレートの比となることから、チヤンネル
1のメモリ142Aにおいてバイフアリングされている
データ量V1[bits]は、次式
When the TS packet data is read out from the memories 142A to 142N in the input order and multiplexed, the data capacity buffered to each of the channels 1 to n becomes the ratio of the rates, so that the bi-ringing is performed in the memory 142A of the channel 1. The data amount V1 [bits] is expressed by the following equation.

【数7】 となる。(Equation 7) Becomes

【0091】従つて、(4)式を(7)式に代入するこ
とにより、次式
Therefore, by substituting equation (4) into equation (7), the following equation is obtained.

【数8】 となる。また、(6)式及び(8)式から、入力順に多
重化したときの遅延時間D1は、V1を消去して、次式
(Equation 8) Becomes Further, from the equations (6) and (8), the delay time D1 when multiplexing is performed in the input order is obtained by deleting V1 and calculating the following equation.

【数9】 となる。(Equation 9) Becomes

【0092】ここで出力レートR[bits/sec]及び各チヤ
ンネル1〜チヤンネルnのメモリ(FIFO)142A
〜142Nにバツフアリングされているデータ容量の総
和V[bits]は上述したようにそれぞれ一定であることに
より、チヤンネル1において遅延時間D1は入力レート
R1の変動に無関係に一定となる。
Here, the output rate R [bits / sec] and the memory (FIFO) 142A of each channel 1 to channel n
Since the sum V [bits] of the data volumes buffered to .about.142N is constant as described above, the delay time D1 in the channel 1 is constant regardless of the fluctuation of the input rate R1.

【0093】因みに、各メモリ142A〜142Nにバ
ツフアリングされているデータ量が多い順に多重化しよ
うとすると、各チヤンネルにバツフアリングされている
データ量はいずれのチヤンネルでも一定となる。従つ
て、バツフアリングされているデータ容量V1[bits]は
n等分されることにより、次式
By the way, if multiplexing is attempted in the order of the amount of data buffered in each of the memories 142A to 142N, the amount of data buffered in each channel is constant in any of the channels. Therefore, the buffered data capacity V1 [bits] is divided into n equal parts, and the following equation is obtained.

【数10】 となる。この場合、上述の(6)式及び(10)式より、
バツフアリングされているデータ量を多い順に多重化し
たときの遅延時間D1はV1[bits]を消去して、次式
(Equation 10) Becomes In this case, from the above equations (6) and (10),
The delay time D1 when multiplexing the buffered data amount in descending order is V1 [bits], and the following equation is used.

【数11】 となる。従つて、(11)式より、バツフアリングされて
いるデータ量の総和V[bits]及びチヤンネル数nは一定
であるが、入力レートR1[bits/sec]が変動すると、こ
れに応じて遅延時間D1も変動することを意味する。従
つて、統計多重化のように入力レートR1が随時変化す
るとこれに応じて当該チヤンネルの遅延時間D1も随時
変化する。
[Equation 11] Becomes Therefore, from equation (11), the sum V [bits] of the buffered data amount and the number n of the channels are constant, but if the input rate R1 [bits / sec] fluctuates, the delay time D1 is correspondingly changed. Also fluctuates. Therefore, when the input rate R1 changes as needed, as in the case of statistical multiplexing, the delay time D1 of the channel also changes accordingly.

【0094】かくして、この実施の形態においては、各
チヤンネルに入力されたTSパケツトデータを、メモリ
142A〜142Nへの書込み順に読み出して多重化す
ることにより、各チヤンネル1〜チヤンネルnにおいて
多重化処理に要する遅延時間を一定にすることができ
る。これにより、後述する復調側においてバツフアメモ
リのオーバーフロー及びアンダーフローを容易に防止し
得る。
Thus, in this embodiment, the TS packet data input to each channel is read out in the order of writing to the memories 142A to 142N and multiplexed, so that multiplexing processing is required in each of the channels 1 to n. The delay time can be made constant. This makes it possible to easily prevent overflow and underflow of the buffer memory on the demodulation side described later.

【0095】また、図5において読出し回路143は、
メモリ142Aから読み出したTSパケツトデータD3
1Aの第1のタイムスタンプの付加位置を示す(TSパ
ケツトデータD31Aの先頭から第1のタイムスタンプ
の先頭までのデータビツト数を示す)タイミング信号S
15をタイムスタンプ識別回路144とタイムスタンプ
除去回路150とに供給すると共に、TSパケツトデー
タD31AにおけるPCRの格納の有無を表すフラグの
格納位置を示す(TSパケツトデータD31Aの先頭か
らフラグの先頭までのデータビツト数を示す)タイミン
グ信号S16をPCR識別回路146に供給し、さらに
TSパケツトデータD31AのPCRの格納位置を示す
(TSパケツトデータD31Aの先頭からPCRの先頭
までのデータビツト数でなる)タイミング信号S17を
PCR修正回路147に供給する。
In FIG. 5, the read circuit 143
TS packet data D3 read from memory 142A
A timing signal S indicating the addition position of the first time stamp of 1A (indicating the number of data bits from the beginning of the TS packet data D31A to the beginning of the first time stamp)
15 is supplied to the time stamp identification circuit 144 and the time stamp removal circuit 150, and indicates the storage position of the flag indicating whether or not the PCR is stored in the TS packet data D31A (data bits from the head of the TS packet data D31A to the head of the flag). The timing signal S16 (which indicates the number of data bits from the beginning of the TS packet data D31A to the beginning of the PCR) indicating the storage location of the PCR of the TS packet data D31A is supplied to the PCR identification circuit 146. It is supplied to the correction circuit 147.

【0096】タイムスタンプ識別回路144は、タイミ
ング信号S15に基づいてTSパケツトデータD31A
の第1のタイムスタンプを識別し、当該第1のタイムス
タンプを抽出してこれを第1のタイムスタンプデータD
35として演算回路151に供給する。
The time stamp identification circuit 144 generates the TS packet data D31A based on the timing signal S15.
, The first time stamp is extracted, and is extracted as the first time stamp data D.
As 35, it is supplied to the arithmetic circuit 151.

【0097】演算回路151は、タイムスタンプ発生回
路141から、常時、動作クロツクCLKT に同期した
カウント値がカウント値データD30として入力されて
おり、第1のタイムスタンプデータD35が到着したと
きのカウント値を第2のタイムスタンプ(TSパケツト
データD31Aに対する多重化処理の終了時間)として
取り込む。このようにして演算回路151は、第1のタ
イムスタンプデータD35が示す第1のタイムスタンプ
(カウント値)と第2のタイムスタンプ(カウント値)
とから当該TSパケツトデータD31Aが多重化処理に
要した処理時間tを次式
[0097] calculation circuit 151, from the time stamp generating circuit 141 always operates clock count value in synchronism with the CLK T are inputted as the count value data D30, the count when a first time stamp data D35 arrives The value is fetched as a second time stamp (end time of the multiplexing process on the TS packet data D31A). In this way, the arithmetic circuit 151 performs the first time stamp (count value) and the second time stamp (count value) indicated by the first time stamp data D35.
From the above, the processing time t required for the TS packet data D31A to perform the multiplexing processing is expressed by the following equation.

【数12】 に基づいて演算し、この演算結果(処理時間t)を処理
時間データD36としてPCR修正回路147に供給す
る。かくして検出部133は、TSパケツトデータD4
Aが入力部132Aのタイムスタンプ付加回路135に
到着してから多重化処理に要した処理時間を検出し得る
ようになされている。
(Equation 12) And supplies the calculation result (processing time t) to the PCR correction circuit 147 as processing time data D36. Thus, the detecting unit 133 outputs the TS packet data D4
The processing time required for the multiplexing processing after A arrives at the time stamp adding circuit 135 of the input unit 132A can be detected.

【0098】PCR識別回路146は、タイミング信号
S16に基づいて、入力されたTSパケツトデータD3
1Aのフラグを識別し、この識別結果に基づいてPCR
の有無を識別する。これによりPCR識別回路146
は、TSパケツトデータD31AにPCRが格納されて
いる場合には、例えば論理「H」レベルに応じた制御信
号S20をPCR修正回路147に供給するようにして
当該PCR修正回路147においてPCRの修正処理動
作を実行させ、当該TSパケツトデータD31AにPC
Rが格納されていない場合には、例えば論理「L」レベ
ルに応じた制御信号S21をPCR修正回路147に供
給するようにして当該PCR修正回路147においてP
CRの修正処理動作を停止させる。
The PCR identification circuit 146 inputs the TS packet data D3 based on the timing signal S16.
1A is identified, and PCR is performed based on the identification result.
Identify the presence or absence of Thereby, the PCR identification circuit 146
When the PCR is stored in the TS packet data D31A, for example, the control signal S20 corresponding to the logic “H” level is supplied to the PCR correction circuit 147 so that the PCR correction circuit 147 performs the PCR correction processing operation. Is executed, and the PC data is stored in the TS packet data D31A.
When R is not stored, for example, the control signal S21 corresponding to the logic “L” level is supplied to the PCR correction circuit 147 so that the P
The CR correction processing operation is stopped.

【0099】これによりPCR修正回路147は、メモ
リ142Aから入力されたTSパケツトデータD31A
にPCRが格納されている場合には、そのPCRの修正
処理動作を実行し、タイミング信号S17に基づいて当
該TSパケツトデータD31AのPCRを抽出して当該
PCR(カウント値)と処理時間データD36が示す処
理時間t(カウント値)とから修正されたPCR(以
下、これを修正PCRと呼ぶ)を次式
As a result, the PCR correction circuit 147 sends the TS packet data D31A input from the memory 142A.
If the PCR is stored in the TS packet data, the correction processing operation of the PCR is executed, the PCR of the TS packet data D31A is extracted based on the timing signal S17, and the PCR (count value) and the processing time data D36 are indicated. A PCR corrected from the processing time t (count value) (hereinafter, referred to as a corrected PCR) is represented by the following equation.

【数13】 によつて求め、当該修正PCRをTSパケツトデータD
31AのPCRが格納されていた所定位置に格納して、
このTSパケツトデータD31Aをタイムスタンプ除去
回路150に供給する。またこのPCR修正回路147
は、メモリ142から入力されたTSパケツトデータD
31AにPCRが格納されていない場合には、そのPC
Rの修正処理動作を停止し、かくして入力されたTSパ
ケツトデータD31Aをそのままタイムスタンプ除去回
路150に供給する。
(Equation 13) The modified PCR is obtained by the TS packet data D
31A is stored at a predetermined position where the PCR was stored,
The TS packet data D31A is supplied to the time stamp removing circuit 150. Also, this PCR correction circuit 147
Is the TS packet data D input from the memory 142.
If the PCR is not stored in 31A, the PC
The R correction processing operation is stopped, and the input TS packet data D31A is supplied to the time stamp removing circuit 150 as it is.

【0100】タイムスタンプ除去回路150は、タイミ
ング信号S15に基づいて、入力されたTSパケツトデ
ータD31Aから第1のタイムスタンプを除去すること
により当該TSパケツトデータD31Aを符号化装置1
08A(図4)におけるTSパケツトデータD4Aと同
様のデータフオーマツトに戻し、これを送信回路112
に供給する。かくして修正部145では、PCRが格納
されたTSパケツトデータD31Aの当該PCRを多重
化処理の処理時間に基づいて修正し、当該修正PCRが
格納された各TSパケツトデータD31Aを供給する時
間間隔を、当該修正PCR間の時間間隔(カウント数)
と一致させるようになされている。
The time stamp removing circuit 150 removes the first time stamp from the input TS packet data D31A based on the timing signal S15, and thereby encodes the TS packet data D31A into the encoding device 1.
08A (FIG. 4) and returns to the same data format as the TS packet data D4A in FIG.
To supply. Thus, the correction unit 145 corrects the PCR of the TS packet data D31A in which the PCR is stored based on the processing time of the multiplexing process, and determines the time interval for supplying each of the TS packet data D31A in which the corrected PCR is stored. Time interval between PCR (count)
Has been made to match.

【0101】因にこの多重化装置131では、各入力部
135A〜135Nのそれぞれ対応するメモリ142か
ら読出し回路143に格納信号S11を供給することに
より読出し回路143が各メモリ142A〜142Nに
おけるそれぞれ各TSパケツトデータD31A〜31N
の格納状況を判別し、各TSパケツトデータD31A〜
D31Nの格納量が所定量に達すると、各メモリ142
の予め設定された読み出しの順番(例えばまず入力部1
32Aのメモリ142A、次いで入力部132Nのメモ
リ142N、続いて入力部132Bのメモリの順)に基
づいて順次各メモリ142A〜142Nに読出し信号S
12を供給する。これにより多重化装置131では、読
出し回路143がTSパケツトデータD31A〜D31
Nを多重化部140に順次1つづつ読み出すことによ
り、各TSパケツトデータD31A〜D31Nを多重化
処理し得るようになされている。
In the multiplexing device 131, the storage signal S11 is supplied from the memory 142 corresponding to each of the input units 135A to 135N to the read circuit 143, so that the read circuit 143 causes each TS in each of the memories 142A to 142N. Packet data D31A to 31N
Of the TS packet data D31A-
When the storage amount of D31N reaches a predetermined amount, each memory 142
(For example, first, the input unit 1
32A, the memory 142N of the input unit 132N, and then the memory of the input unit 132B).
12 is supplied. As a result, in the multiplexing device 131, the read circuit 143 sets the TS packet data D31A to D31.
By reading N one by one into the multiplexing unit 140 one by one, the respective TS packet data D31A to D31N can be multiplexed.

【0102】これに加えてこの多重化装置131では、
PCRが格納された各TSパケツトデータD31A〜D
31Nの当該PCRに対して順次修正処理を実行するよ
うになされている。かくしてこの多重化装置131で
は、順次入力される各TSパケツトデータD4A〜D4
Nを順次多重化処理すると共に、PCRが格納された各
TSパケツトデータD4A〜D4Nの当該PCRを多重
化処理に要した処理時間に基づいて修正し得るようにな
されている。
In addition to this, in the multiplexer 131,
Each TS packet data D31A-D storing PCR
Correction processing is sequentially performed on the 31N PCRs. Thus, in the multiplexing device 131, the TS packet data D4A to D4A which are sequentially input are input.
N is sequentially multiplexed, and the PCR of the TS packet data D4A to D4N in which the PCR is stored can be modified based on the processing time required for the multiplexing process.

【0103】ここで実際上この多重化装置131では、
図7に示すように、まず入力部に各TSパケツトデータ
D60〜D62が順次供給され、タイムスタンプ付加回
路にこれら各TSパケツトデータD60〜D62のそれ
ぞれ対応するPCR55〜57の先頭位置が順次到着し
たときのカウント値をそれぞれ第1のタイムスタンプT
M10〜TM12としてこれらをそれぞれ対応するTS
パケツトデータD60〜D62の最後尾に付加する(図
7(A))。
Here, in practice, in the multiplexer 131,
As shown in FIG. 7, first, the TS packet data D60 to D62 are sequentially supplied to the input unit, and the leading positions of the PCRs 55 to 57 corresponding to the respective TS packet data D60 to D62 sequentially arrive at the time stamp adding circuit. The count values are respectively assigned to the first time stamp T
TS corresponding to these as M10 to TM12
It is added to the end of the packet data D60 to D62 (FIG. 7A).

【0104】一方多重化部140では、入力部のメモリ
から供給される各TSパケツトデータD60〜D62が
それぞれ当該メモリで待機せず(すなわち、待機による
時間の遅れを生じず)に供給された場合でも、当該多重
化部140内において各TSパケツトデータD60〜D
62に対して多重化処理による固定遅延tdが生じる。
従つてこのような場合には、各TSパケツトデータD6
0〜D62にそれぞれ付加されている第1のタイムスタ
ンプTM10〜TM12と、これら各TSパケツトデー
タD60〜D62のそれぞれ多重化処理が終了したとき
のカウント値でなる第2のタイムスタンプTM20〜T
M22とに基づいて固定遅延tdを次式
On the other hand, in the multiplexing section 140, even when each of the TS packet data D60 to D62 supplied from the memory of the input section is supplied without waiting in the corresponding memory (that is, without causing a time delay due to the standby). , The respective TS packet data D60 to D60 in the multiplexing unit 140.
For 62, a fixed delay td due to the multiplexing process occurs.
Therefore, in such a case, each TS packet data D6
0 to D62, and second time stamps TM20 to T2 each of which is a count value when the multiplexing process of each of the TS packet data D60 to D62 is completed.
Based on M22 and the fixed delay td,

【数14】 によつて求め、これによりPCR55〜57をそれぞれ
次式
[Equation 14] The PCRs 55 to 57 are respectively calculated by the following equations.

【数15】 に基づいて固定遅延td分だけ修正する(図7
(B))。
(Equation 15) Is corrected based on the fixed delay td (see FIG. 7).
(B)).

【0105】また多重化部140では、入力部のメモリ
から供給される各TSパケツトデータD60〜D62の
うち、TSパケツトデータD61が当該メモリで待機状
態となり、このTSパケツトデータD61の多重化処理
に所定の処理時間tmdを要するとする。このような場
合には、TSパケツトデータD61に対する所定の処理
時間tmdを当該TSパケツトデータD61に付加され
た第1のタイムスタンプTM11と、このTSパケツト
データD61の多重化処理が終了したときの第2のタイ
ムスタンプTM23とに基づいて次式
In the multiplexing section 140, of the TS packet data D60 to D62 supplied from the memory of the input section, the TS packet data D61 enters a standby state in the memory, and a predetermined process is performed for the multiplexing of the TS packet data D61. Assume that time tmd is required. In such a case, the predetermined processing time tmd for the TS packet data D61 is set to the first time stamp TM11 added to the TS packet data D61 and the second time when the multiplexing process of the TS packet data D61 is completed. Based on the stamp TM23,

【数16】 によつて求め、これによりPCR56を次式(Equation 16) The PCR56 is calculated by the following equation.

【数17】 に基づいて処理時間tmd分だけ修正する。さらにこの
場合各TSパケツトデータD60及びD62において
は、それぞれ固定遅延tdが生じていることにより上述
したようにして(図7(B))PCR55及び57を修
正する(図7(C))。
[Equation 17] Is corrected by the processing time tmd. Further, in this case, in each of the TS packet data D60 and D62, the PCRs 55 and 57 are corrected as described above (FIG. 7B) due to the occurrence of the fixed delay td (FIG. 7C).

【0106】一方、受信装置115では、ANT2を介
して送信信号S1を受信し、これを復調器234におい
て復調することによりトランスポートストリームD21
3を復元する。こうして得られたトランスポートストリ
ームD213は復号装置235に供給され、選択された
所望の番組データのいずれかが復号されて出力される。
On the other hand, receiving apparatus 115 receives transmission signal S 1 via ANT 2, and demodulates it in demodulator 234 to form transport stream D 21.
3 is restored. The transport stream D213 thus obtained is supplied to the decoding device 235, and one of the selected desired program data is decoded and output.

【0107】すなわち、復号装置235は、入力された
トランスポートストリームD213をスイツチ236に
入力する。スイツチ236は入力された各TSパケツト
データのPID値に応じてトランスポートバツフア23
7、238又は239に選択的に接続を切り換えるよう
になされており、トランスポートストリームD213を
画像データ、音声データ又はPSIを記録したTSパケ
ツトデータに分割する。分割された各TSパケツトデー
タは、トランスポートバツフア237、238又は23
9に一時記憶される。
That is, the decoding device 235 inputs the input transport stream D 213 to the switch 236. The switch 236 controls the transport buffer 23 according to the PID value of the input TS packet data.
7, 238 or 239, and divides the transport stream D213 into image data, audio data or TS packet data in which PSI is recorded. Each of the divided TS packet data is stored in the transport buffer 237, 238 or 23.
9 is temporarily stored.

【0108】トランスポートバツフア237は、トラン
スポートストリームD213を分割して得られた画像デ
ータを一時記憶した後、メインバツフア240に送出す
る。またトランスポートバツフア238は、トランスポ
ートストリームD213を分割して得られた音声データ
を一時記憶した後、メインバツフア241に送出する。
さらにトランスポートバツフア239は、トランスポー
トストリームD213を分割して得られたシステムデー
タを一時記憶した後、メインバツフア242に送出す
る。復号装置235はこのようにしてトランスポートバ
ツフア237、238及び239から送出した画像デー
タ、音声データ又はシステムデータを、それぞれメイン
バツフア240、241又は242に一時記憶した後、
これらのデータを読み出して復号処理する。
The transport buffer 237 temporarily stores the image data obtained by dividing the transport stream D 213, and then sends it to the main buffer 240. The transport buffer 238 temporarily stores the audio data obtained by dividing the transport stream D 213, and then sends the data to the main buffer 241.
Further, the transport buffer 239 temporarily stores system data obtained by dividing the transport stream D213, and then sends out the system data to the main buffer 242. The decoding device 235 temporarily stores the image data, audio data, or system data sent from the transport buffers 237, 238, and 239 in the main buffer 240, 241 or 242, respectively.
These data are read and decoded.

【0109】復号処理においては、送信装置106側で
修正された各TSパケツトデータのPCRに基づいてP
LL(Phase Locked Loop) 回路(図示せず)を位相ロツ
クさせ、これにより生成された動作クロツクによつて各
データ(画像データ、音声データ等)の復号化処理を実
行する。従つて、復号装置235においては、送信装置
106(図5)の符号化装置108A〜108Nにおけ
る動作クロツクCLK1A〜CLK1Nと同期した動作クロ
ツクのタイミングで画像データ、音声データを復号化す
ることができる。
In the decoding process, the P is determined based on the PCR of each TS packet data corrected on the transmitting device 106 side.
An LL (Phase Locked Loop) circuit (not shown) is phase-locked, and each data (image data, audio data, etc.) is decoded by the generated operation clock. Accordingly, the decoding device 235 can decode the image data and the audio data at the timing of the operation clocks synchronized with the operation clocks CLK 1A to CLK 1N in the encoding devices 108A to 108N of the transmission device 106 (FIG. 5). it can.

【0110】ここで、図9は復号装置235のメインバ
ツフア240、241又は242に格納されているデー
タ量の変化を表すもので、送信装置106側でTSパケ
ツトデータに付加したDTS(Decoding Time Stamp)
(DTS1、DTS2、DTS3)が表すデコード時間
に応じてメインバツフア240、241又は242から
データを読み出し、これを復号する。
FIG. 9 shows a change in the amount of data stored in the main buffer 240, 241 or 242 of the decoding device 235. The transmitting device 106 adds a DTS (Decoding Time Stamp) added to the TS packet data.
Data is read from the main buffer 240, 241, or 242 according to the decoding time indicated by (DTS1, DTS2, DTS3) and decoded.

【0111】この場合、所定のTSパケツトデータに付
加されているPCRは復号装置235(すなわち各メイ
ンバツフア240、241又は242)にデータが入力
される時間を指定したものであり、このPCRとDTS
の差に変動があると、図9(C)に示すようにメインバ
ツフア240(又は241、242)内の格納データ量
がオーバーフロー又はアンダーフローする。
In this case, the PCR added to the predetermined TS packet data designates the time at which the data is input to the decoding device 235 (that is, each main buffer 240, 241 or 242).
If there is a change in the difference, the amount of data stored in the main buffer 240 (or 241, 242) overflows or underflows as shown in FIG.

【0112】PCR及びDTSの差の変動は、送信装置
106の多重化処理における遅延時間が各チヤンネル内
で変動することが原因となる。従つて、この実施の形態
における多重化装置131では、図5について上述した
ように、各メモリ(FIFO)142A〜142Nに対
してTSパケツトデータが書き込まれた順に、これらの
TSパケツトデータを読み出して多重化処理することに
より、各チヤンネル内での多重化処理に伴う遅延時間が
ほぼ一定に保たれている。
Variation in the difference between PCR and DTS is caused by the fact that the delay time in the multiplexing process of the transmitting device 106 varies in each channel. Therefore, as described above with reference to FIG. 5, the multiplexing device 131 of this embodiment reads out and multiplexes the TS packet data in the order in which the TS packet data has been written to each of the memories (FIFOs) 142A to 142N. By performing the processing, the delay time associated with the multiplexing processing in each channel is kept substantially constant.

【0113】この結果、図9(B)に示すように、メイ
ンバツフア240(又は241、242)に対して一定
の遅延時間に対応したTSパケツトデータの書込み及び
読出しを行うことにより、当該メインバツフア240
(又は241、242)のデータ占有率の変動が格段的
に少なくなり、オーバーフロー又はアンダーフローの発
生を未然に防止し得る。因みに、図9(A)は多重化処
理をしないデータをメインバツフア240に格納した場
合のデータ占有率の変動を示す。
As a result, as shown in FIG. 9 (B), by writing and reading TS packet data corresponding to a fixed delay time with respect to the main buffer 240 (or 241, 242), the main buffer 240 (or 241) is written.
(Or 241 and 242), the fluctuation of the data occupancy is remarkably reduced, and the occurrence of overflow or underflow can be prevented. FIG. 9A shows a change in the data occupancy when data not subjected to multiplexing processing is stored in the main buffer 240.

【0114】以上の構成において、送信装置106の多
重化装置131は、復号化装置108A〜108Nから
出力される各TSパケツトデータD4A〜D4Nに対し
てタイムスタンプを付加した後、これらのTSパケツト
データD4A〜D4Nをメモリ(FIFO)142A〜
142Nに格納する。
In the above configuration, the multiplexing device 131 of the transmitting device 106 adds a time stamp to each of the TS packet data D4A to D4N output from the decoding devices 108A to 108N, and then adds the time stamp to the TS packet data D4A to D4N. D4N is stored in memory (FIFO) 142A-
142N.

【0115】読出し回路143は、各メモリ(FIF
O)142A〜142Nに格納されたTSパケツトデー
タのタイムスタンプからその格納順を判別し、当該判別
結果に基づいて、メモリ(FIFO)142A〜142
Nに格納されているすべてのTSパケツトデータの中か
ら、最も早い時間に格納されたTSパケツトから順に、
これを読み出す。
The read circuit 143 is connected to each memory (FIF
O) The storage order is determined from the time stamps of the TS packet data stored in the 142A to 142N, and the memories (FIFOs) 142A to 142 are determined based on the determination result.
N, out of all the TS packet data stored in N, in order from the TS packet stored at the earliest time.
Read this.

【0116】このようにメモリ(FIFO)142A〜
142Nに対して格納した順に、TSパケツトデータを
読み出すことにより、(4)式〜(9)式について上述
したように、統計多重化処理における遅延時間を、各チ
ヤンネルごとの入力レートの変動に関わりなく一定に保
つことができる。
As described above, the memories (FIFO) 142A-
By reading the TS packet data in the order in which they are stored in the 142N, the delay time in the statistical multiplexing process is changed regardless of the input rate variation for each channel, as described above for the equations (4) to (9). Can be kept constant.

【0117】このようにして多重化されたTSパケツト
データは、メモリ(FIFO)142A〜142Nに書
き込まれる前に付加されたタイムスタンプを用いて、P
CRが修正され、受信装置115側に送信される。
The TS packet data multiplexed in this manner is stored in the memory (FIFO) 142A-142N by using a time stamp added before being written to the memory (FIFO) 142A-142N.
The CR is corrected and transmitted to the receiving device 115 side.

【0118】受信装置115では、受信された復調され
た各TSパケツトデータは、各チヤンネルごとに一定の
遅延時間を以て復号装置235の各メインバツフア(多
重バツフア)240、241及び242に入力される。
In the receiving apparatus 115, the received demodulated TS packet data is input to each main buffer (multiplex buffer) 240, 241 and 242 of the decoding apparatus 235 with a fixed delay time for each channel.

【0119】従つて、各メインバツフア(多重バツフ
ア)240、241及び242では、当該TSパケツト
データを書き込んだ後、各読出し時間(DTSによる)
においてこれらのTSパケツトデータを読み出すことに
より、バツフアの占有率は常に一定の範囲を保つことに
なる。
Accordingly, in each main buffer (multiplex buffer) 240, 241 and 242, after the relevant TS packet data is written, each read time (by DTS) is used.
By reading these TS packet data, the occupancy of the buffer always keeps a certain range.

【0120】かくして以上の構成によれば、送信装置1
06の多重化装置131において、TSパケツトデータ
の各メモリ(FIFO)142A〜142Nへの書込み
順に、これらのTSパケツトデータを読み出すようにし
たことにより、統計多重化処理のように入力されるデー
タレートが随時変化しても、各メモリ(FIFO)14
2A〜142Nから読み出されたTSパケツトデータが
送信される時間間隔を一定に保つことができる。かくし
て、受信装置115側においてメインバツフア240、
241、242のオーバーフロー又はアンダーフローを
未然に防止できる。
Thus, according to the above configuration, the transmitting apparatus 1
In the multiplexing device 131, the TS packet data is read out in the order of writing the TS packet data to each of the memories (FIFOs) 142A to 142N, so that the input data rate can be changed as required in the statistical multiplexing process. Even if it changes, each memory (FIFO) 14
The time interval at which the TS packet data read from 2A to 142N is transmitted can be kept constant. Thus, the main buffer 240,
241 and 242 can be prevented from overflowing or underflowing.

【0121】因みに、各メモリ(FIFO)142A〜
142Nへの書込み順の判別用に各TSパケツトデータ
に付加されるタイムスタンプを、PCR修正用に共用す
るようにしたことにより、多重化装置131の構成が複
雑になることを回避し得る。
Incidentally, each memory (FIFO) 142A-
Since the time stamp added to each TS packet data for determining the order of writing to the 142N is shared for PCR correction, it is possible to prevent the configuration of the multiplexer 131 from becoming complicated.

【0122】なお上述の実施例においては、多重化装置
131において各TSパケツトデータD4A〜D4Nの
最後尾に第1のタイムスタンプTM1を付加する(図
6)ようにした場合について述べたが、本発明はこれに
限らず、例えば図10に示すように、TSパケツトデー
タD4A〜D4Nの先頭に第1のタイムスタンプTM3
0を付加し、又は図11に示すように、TSパケツトデ
ータD4A〜D4Nに並列に第1のタイムスタンプTM
31を付加する等のように、この他種々のフオーマツト
でTSパケツトデータD4A〜D4Nに第1のタイムス
タンプを付加するようにしても良い。
In the above embodiment, the case where the first time stamp TM1 is added to the end of each of the TS packet data D4A to D4N in the multiplexer 131 (FIG. 6) has been described. Is not limited to this. For example, as shown in FIG. 10, a first time stamp TM3 is added to the head of TS packet data D4A to D4N.
0, or as shown in FIG. 11, the first time stamp TM is added in parallel to the TS packet data D4A to D4N.
For example, the first time stamp may be added to the TS packet data D4A to D4N in various other formats, such as by adding 31.

【0123】ここで図10に示すように、TSパケツト
データD4A〜D4Nの先頭に第1のタイムスタンプT
M30を付加するようにした場合には、タイムスタンプ
識別回路144において当該第1のタイムスタンプTM
30を容易に識別することができ、かくしてタイムスタ
ンプ識別回路144の回路構成を簡略化することができ
る。また図11に示すように、TSパケツトデータD4
A〜D4Nに平行に第1のタイムスタンプTM31を付
加するようにした場合には、当該TSパケツトデータD
4A〜D4Nの時間方向の長さを変えずに、第1のタイ
ムスタンプTM31を付加し得ることにより、複数のT
SパケツトデータD4A〜D4Nを連続して多重化処理
する際に、実施例のようにTSパケツトデータD4A〜
D4Nの最後尾に第1のタイムスタンプTM1を付加し
たり、又は上述したようにTSパケツトデータD4A〜
D4Nの先頭に第1のタイムスタンプTM30を付加し
た場合に比較して単位時間当たりに多重化処理し得るT
SパケツトデータD4A〜D4Nの数を増加させること
ができ、かくして多重化処理の効率を向上し得る。
Here, as shown in FIG. 10, a first time stamp T is added to the head of TS packet data D4A to D4N.
When M30 is added, the first time stamp TM
30 can be easily identified, and thus the circuit configuration of the time stamp identification circuit 144 can be simplified. Further, as shown in FIG. 11, the TS packet data D4
When the first time stamp TM31 is added in parallel to A to D4N, the TS packet data D
Since the first time stamp TM31 can be added without changing the length in the time direction of 4A to D4N, a plurality of T
When the S packet data D4A to D4N are successively multiplexed, the TS packet data D4A to D4N
The first time stamp TM1 is added to the end of D4N, or the TS packet data D4A to
T that can perform multiplexing processing per unit time as compared with the case where the first time stamp TM30 is added to the head of D4N
The number of S packet data D4A to D4N can be increased, and the efficiency of the multiplexing process can be improved.

【0124】また上述の実施例においては、多重化装置
131の修正部145において各TSパケツトデータD
31A〜D31Nのうち、PCRが格納されている各T
SパケツトデータD31A〜D31Nの当該PCRを対
応する処理時間に基づいて修正するようにした場合につ
いて述べたが、本発明はこれに限らず、多重化装置13
1に供給される全てのTSパケツトデータD4A〜D4
NにPCRを格納し、このようにして全てのTSパケツ
トデータD4A〜D4Nの当該PCRを対応する処理時
間に基づいて修正するようにしても良く、これにより各
TSパケツトデータD4A〜D4Nをそれぞれ受信装置
115において正確に復号化することができる。
Further, in the above-described embodiment, each TS packet data D
31A to 31N, each T in which a PCR is stored.
Although the case has been described where the PCR of the S packet data D31A to D31N is modified based on the corresponding processing time, the present invention is not limited to this, and the multiplexing device 13
1 is supplied to all TS packet data D4A to D4.
N, the PCR may be stored, and the PCRs of all the TS packet data D4A to D4N may be modified based on the corresponding processing time, whereby each of the TS packet data D4A to D4N is respectively received by the receiving device 115. Can be correctly decoded.

【0125】さらに上述の実施例においては、本発明を
デイジタル放送システム130の多重化装置131に適
用するようにした場合について述べたが、本発明はこれ
に限らず、MPEG2方式を適用したこの他種々の送信
装置及び送受信装置並びに記録装置及び記録再生装置に
用いられる多重化装置に適用するようにしても良い。
Further, in the above-described embodiment, the case where the present invention is applied to the multiplexing device 131 of the digital broadcasting system 130 has been described. However, the present invention is not limited to this, and the present invention is not limited to this. The present invention may be applied to various transmission devices, transmission / reception devices, and multiplexing devices used in recording devices and recording / reproduction devices.

【0126】さらに上述の実施例においては、少なくと
も時間情報が付加されたパケツトデータD4A〜D4N
の多重化処理に要した処理時間を検出する検出手段とし
て、検出部133(図2)を適用するようにした場合に
ついて述べたが、本発明はこれに限らず、複数のパケツ
トデータD4A〜D4Nのうち、少なくとも時間情報が
付加されたパケツトデータD4A〜D4Nの多重化処理
に要した処理時間を検出することができれば、この他種
々の構成でなる検出手段を適用するようにしても良い。
Further, in the above-described embodiment, at least packet data D4A to D4N to which time information has been added.
Although the detection unit 133 (FIG. 2) has been described as a detecting means for detecting the processing time required for the multiplexing processing of the present invention, the present invention is not limited to this, and the present invention is not limited to this. Of these, if it is possible to detect at least the processing time required for the multiplexing of the packet data D4A to D4N to which the time information has been added, detection means having various other configurations may be applied.

【0127】さらに上述の実施例においては、検出手段
133により検出された処理時間に基づいて対応するパ
ケツトデータD4A〜D4Nの時間情報を修正する修正
手段として、修正部145(図2)を適用するようにし
た場合について述べたが、本発明はこれに限らず、検出
手段133により検出された処理時間に基づいて対応す
るパケツトデータD4A〜D4Nの時間情報を修正する
ことができれば、この他種々の構成でなる修正手段を適
用するようにしても良い。
Further, in the above-described embodiment, the correction unit 145 (FIG. 2) is applied as correction means for correcting the time information of the corresponding packet data D4A to D4N based on the processing time detected by the detection means 133. However, the present invention is not limited to this. The present invention is not limited to this, and if the time information of the corresponding packet data D4A to D4N can be corrected based on the processing time detected by the detecting means 133, various other configurations are possible. Some modification means may be applied.

【0128】[0128]

【発明の効果】上述のように本発明によれば、各チヤン
ネルにそれぞれ対応させて設けられ、それぞれ供給され
るパケツトデータを順次記憶する第1の記憶手段と、各
第1の記憶手段にそれぞれ対応させて設けられ、それぞ
れ対応する第1の記憶手段に1つのパケツトデータが記
憶されたことを検出する検出手段と、各検出手段からそ
れぞれ得られる検出結果に基づいて、記憶されたパケツ
トデータを読み出す第1の記憶手段の順番を決定する決
定手段と、当該決定手段によつて決定された読出し順番
に基づいてパケツトデータを各第1の記憶手段から順次
読み出して多重化処理する多重化処理手段とを設けるよ
うにしたことにより、多重化装置の入力部に到着したパ
ケツトデータが読み出されずにそのまま待機状態となる
ことを防止して当該パケツトデータが書き込まれた第1
の記憶手段の順番通りに当該第1の記憶手段からパケツ
トデータを確実に読み出し、これにより第1の記憶手段
にパケツトデータが書き込まれた順番と、多重化処理さ
れて形成されたトランスポートストリームに含まれるパ
ケツトデータの順番とを等しくすることができ、かくし
て受信装置においてパケツトデータに対応する所定のデ
ータを正しく再生させることができる多重化装置を実現
することができる。
As described above, according to the present invention, the first storage means provided in correspondence with each channel and sequentially storing the supplied packet data and the first storage means respectively correspond to the first storage means. Detecting means for detecting that one piece of packet data is stored in the corresponding first storage means; and a first means for reading out the stored packet data based on the detection results obtained from each of the detecting means. Determining means for determining the order of the storage means, and multiplexing means for sequentially reading and multiplexing the packet data from each of the first storage means based on the reading order determined by the determining means. This prevents packet data arriving at the input unit of the multiplexing device from being left in a standby state without being read out. The packet data is written 1
The packet data is reliably read from the first storage means in the order of the storage means, so that the packet data is written in the first storage means and included in the transport stream formed by the multiplexing process. The order of the packet data can be made equal, and thus a multiplexing device can be realized in which the receiving device can correctly reproduce predetermined data corresponding to the packet data.

【0129】また各チヤンネル毎にパケツトデータを順
次記憶し、次いで各チヤンネル毎に1つのパケツトデー
タが記憶されたことを検出し、当該検出結果に基づい
て、記憶されたパケツトデータを読み出す順番を決定
し、続いて決定された読出し順番に基づいて、記憶され
たパケツトデータを順次読み出して多重化処理するよう
にしたことにより、従来考えられた多重化装置のように
パケツトデータの読出し順番を決定する場合に当該パケ
ツトデータに付加された到着時間を表す時間情報を比較
判断する等のような煩雑な処理過程を必要とせずに、パ
ケツトデータを読み出す順番を容易に決定し、記憶され
たパケツトデータをその順番通りに順次読み出して容易
に多重化処理することができ、かくして受信装置におい
てパケツトデータに対応する所定のデータを正しく再生
させることができる多重化方法を実現することができ
る。
Further, packet data is sequentially stored for each channel, and then it is detected that one packet data is stored for each channel. Based on the detection result, the order of reading the stored packet data is determined. Based on the determined reading order, the stored packet data is sequentially read and multiplexed, so that the packet data reading order is determined when the packet data reading order is determined as in a multiplexing device conventionally considered. The packet data reading order can be easily determined without the need for complicated processing steps such as comparing and judging the time information indicating the added arrival time, and the stored packet data can be read out sequentially in that order. Multiplexing processing, so that packet data can be Multiplexing method capable of correctly reproducing the predetermined data can be realized.

【0130】また、各チヤンネルごとの記憶手段に対し
て格納される各パケツトデータを、その格納順に読み出
して多重化することにより、多重化処理に伴う遅延時間
を各パケツトデータごとに一定に保つことができる。従
つて、送信される各チヤンネルごとのパケツトデータの
時間間隔を一定に保つことができ、受信側のバツフアに
おけるオーバーフロー又はアンダーフローを未然に回避
し得る。
Further, by reading out and multiplexing the packet data stored in the storage means for each channel in the order of storage, the delay time associated with the multiplexing process can be kept constant for each packet data. . Therefore, the time interval of the packet data transmitted for each channel can be kept constant, and overflow or underflow in the buffer at the receiving side can be avoided.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明のデイジタル放送システムに用いられる
送信装置の第1の実施の形態を示すブロツク図である。
FIG. 1 is a block diagram showing a first embodiment of a transmission device used in a digital broadcasting system according to the present invention.

【図2】本発明の多重化装置の第1の実施の形態を示す
ブロツク図である。
FIG. 2 is a block diagram showing a first embodiment of the multiplexing device of the present invention.

【図3】第1の実施の形態の多重化処理の説明に供する
タイミングチヤートである。
FIG. 3 is a timing chart for explaining a multiplexing process according to the first embodiment;

【図4】第2の実施の形態による多重化装置を用いたデ
イジタル放送システムを示すブロツク図である。
FIG. 4 is a block diagram showing a digital broadcasting system using a multiplexer according to a second embodiment.

【図5】第2の実施の形態による多重化装置を示すブロ
ツク図である。
FIG. 5 is a block diagram showing a multiplexer according to a second embodiment.

【図6】タイムスタンプが付加されたTSパケツトデー
タを示す略線図である。
FIG. 6 is a schematic diagram showing TS packet data to which a time stamp is added.

【図7】PCRの修正の説明に供するタイミングチヤー
トである。
FIG. 7 is a timing chart for explaining the modification of PCR.

【図8】復号装置の構成を示すブロツク図である。FIG. 8 is a block diagram showing a configuration of a decoding device.

【図9】メインバツフアのデータ量の変化を示す特性曲
線図である。
FIG. 9 is a characteristic curve diagram showing a change in data amount of a main buffer.

【図10】他の実施の形態によるTSパケツトデータを
示す略線図である。
FIG. 10 is a schematic diagram showing TS packet data according to another embodiment.

【図11】他の実施の形態によるTSパケツトデータを
示す略線図である。
FIG. 11 is a schematic diagram showing TS packet data according to another embodiment.

【図12】TSパケツトの構造を示す略線図である。FIG. 12 is a schematic diagram illustrating a structure of a TS packet.

【図13】デイジタル放送システムに用いられる送信装
置の回路構成を示すブロツク図である。
FIG. 13 is a block diagram showing a circuit configuration of a transmission device used in a digital broadcasting system.

【図14】多重化装置における多重化処理の説明に供す
る概略図である。
FIG. 14 is a schematic diagram for explaining a multiplexing process in the multiplexing device.

【図15】多重化装置における多重化処理の説明に供す
るタイミングチヤートである。
FIG. 15 is a timing chart for describing a multiplexing process in the multiplexing device.

【図16】多重化処理におけるTSパケツトの遅れの説
明に供給する概略図である。
FIG. 16 is a schematic diagram supplied to explain a delay of a TS packet in the multiplexing process.

【図17】多重化処理におけるTSパケツトの遅れの説
明に供給する概略図である。
FIG. 17 is a schematic diagram supplied to explain a delay of a TS packet in a multiplexing process.

【符号の説明】[Explanation of symbols]

1……TSパケツト、5、20、106……送信装置、
8、21、131……多重化装置、22A〜22N、1
32A〜132N……入力部、23A〜23N……第1
のメモリ、24A〜24N……データ量検出回路、27
……多重化部、30……決定回路、31……読出し回
路、32……認識回路、35……第2のメモリ、37…
…マルチプレクサ、115……受信装置、135A……
タイムスタンプ付加回路、142A〜142N……メモ
リ、147……PCR修正回路、235……復号装置、
240、241、242……メインバツフア。
1... TS packet, 5, 20, 106...
8, 21, 131 ... Multiplexer, 22A to 22N, 1
32A to 132N ... input unit, 23A to 23N ... first
24A to 24N... Data amount detection circuit, 27
... Multiplexing section, 30... Decision circuit, 31... Readout circuit, 32... Recognition circuit, 35.
... Mux, 115 ... Receiving device, 135A ...
Time stamp adding circuit, 142A to 142N memory, 147 PCR correction circuit, 235 decoding device,
240, 241, 242: Main buffer.

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】複数チヤンネルで供給される複数系統の所
定データを所定単位毎にパケツト化すると共に、かくし
て得られた各パケツトデータを順次多重化して出力する
多重化装置において、 各上記チヤンネルにそれぞれ対応させて設けられ、それ
ぞれ供給される上記パケツトデータを順次記憶する第1
の記憶手段と、 各上記第1の記憶手段にそれぞれ対応させて設けられ、
それぞれ対応する上記第1の記憶手段に1つの上記パケ
ツトデータが記憶されたことを検出する検出手段と、 各上記検出手段からそれぞれ得られる検出結果に基づい
て、記憶された上記パケツトデータを読み出す上記第1
の記憶手段の順番を決定する決定手段と、 上記決定手段によつて決定された上記順番に基づいて上
記パケツトデータを各上記第1の記憶手段から順次読み
出して多重化処理する多重化処理手段とを具えることを
特徴とする多重化装置。
1. A multiplexing apparatus for packetizing predetermined data of a plurality of systems supplied by a plurality of channels for each predetermined unit, and sequentially multiplexing and outputting each packet data thus obtained. And a first memory for sequentially storing the supplied packet data.
Storage means, respectively provided corresponding to each of the first storage means,
Detecting means for detecting that one piece of the packet data is stored in the corresponding first storage means; and reading the stored packet data based on the detection results obtained from the respective detecting means.
Determining means for determining the order of the storage means, and multiplexing processing means for sequentially reading and multiplexing the packet data from each of the first storage means based on the order determined by the determining means. A multiplexing device comprising:
【請求項2】上記決定手段は、 各上記検出手段毎の上記検出結果を所定周期で順次読み
出す読出し手段と、 上記読出し手段によつて各上記検出手段から順次読み出
された上記検出結果に基づいて、上記パケツトデータが
記憶された上記第1の記憶手段の順番を認識する認識手
段と、 上記認識手段から得られる認識結果を順次記憶する第2
の記憶手段とを具え、上記第2の記憶手段に順次記憶し
た上記認識結果の順番を上記パケツトデータを読み出す
上記第1の記憶手段の上記順番とすることを特徴とする
請求項1に記載の多重化装置。
2. The reading means according to claim 1, wherein said determining means sequentially reads said detection results for each of said detecting means at a predetermined period, and said reading means reads out said detecting results from said detecting means sequentially from said detecting means. A recognition means for recognizing an order of the first storage means in which the packet data is stored; and a second means for sequentially storing recognition results obtained from the recognition means.
2. The multiplexing method according to claim 1, wherein the order of said recognition results sequentially stored in said second storage means is the order of said first storage means for reading said packet data. Device.
【請求項3】上記読出し手段は、 各上記検出手段毎の上記検出結果を上記多重化処理手段
が上記第1の記憶手段から1つの上記パケツトデータを
読み出す時間よりも短い所定周期で読み出すことを特徴
とする請求項2に記載の多重化装置。
3. The reading means reads out the detection result of each of the detecting means at a predetermined period shorter than a time when the multiplex processing means reads out one packet data from the first storage means. The multiplexing device according to claim 2, wherein
【請求項4】各上記検出手段は、 それぞれ対応する上記第1の記憶手段に1つの上記パケ
ツトデータが記憶されたことを検出した検出結果を上記
読出し手段によつて読み出される毎に上記第1の記憶手
段に新たな1つの上記パケツトデータが記憶されたこと
を検出することを特徴とする請求項2に記載の多重化装
置。
Each detecting means detects that one packet data is stored in the corresponding first storing means each time the reading means reads out the detection result; 3. The multiplexing apparatus according to claim 2, wherein the storage means detects that one new packet data is stored.
【請求項5】複数チヤンネルで供給される複数系統の所
定データを所定単位毎にパケツト化すると共に、かくし
て得られた各パケツトデータを順次多重化して出力する
多重化方法において、 各上記チヤンネル毎に上記パケツトデータを順次記憶す
る第1のステツプと、 各上記チヤンネル毎に1つの上記パケツトデータが記憶
されたことを検出し、当該検出結果に基づいて、記憶さ
れた上記パケツトデータを読み出す順番を決定する第2
のステツプと、 決定された上記順番に基づいて、記憶された上記パケツ
トデータを順次読み出して多重化処理する第3のステツ
プとを具えることを特徴とする多重化方法。
5. A multiplexing method in which predetermined data of a plurality of systems supplied by a plurality of channels are packetized for each predetermined unit, and each packet data thus obtained is sequentially multiplexed and output. A first step of sequentially storing packet data, and a second step of detecting that one packet data is stored for each of the channels and determining an order of reading the stored packet data based on the detection result.
And a third step of sequentially reading and multiplexing the stored packet data based on the determined order.
【請求項6】上記第2のステツプでは、 各上記チヤンネル毎に1つの上記パケツトデータが記憶
されたことを検出した上記検出結果を所定周期で順次読
み出し、当該読み出した上記検出結果に基づいて、上記
パケツトデータが記憶された順番を認識し、当該認識結
果を順次記憶することにより、順次記憶した上記認識結
果の順番を上記パケツトデータを読み出す上記順番とす
ることを特徴とする請求項5に記載の多重化方法。
6. In the second step, the detection result of detecting that one packet data is stored for each of the channels is sequentially read in a predetermined cycle, and based on the read detection result, 6. The multiplexing method according to claim 5, wherein the order in which the packet data is stored is recognized, and the recognition results are sequentially stored, so that the order of the sequentially stored recognition results is the order in which the packet data is read. Method.
【請求項7】上記第2のステツプでは、 上記検出結果を、記憶された1つの上記パケツトデータ
を読み出す時間よりも短い所定周期で読み出すことを特
徴とする請求項6に記載の多重化方法。
7. The multiplexing method according to claim 6, wherein in the second step, the detection result is read out at a predetermined period shorter than a time for reading out one stored packet data.
【請求項8】上記第2のステツプでは、 1つの上記パケツトデータが記憶されたことを検出した
検出結果を読み出す毎に新たな1つの上記パケツトデー
タが記憶されたことを検出することを特徴とする請求項
6に記載の多重化方法。
8. In the second step, every time a detection result of detecting that one packet data is stored is read, it is detected that one new packet data is stored. Item 7. A multiplexing method according to Item 6.
【請求項9】複数チヤンネルで供給される複数系統の所
定データを所定単位ごとにパケツト化すると共に上記パ
ケツトに基準クロツクデータを付加し、かくして得られ
た各パケツトデータを順次多重化して出力する多重化装
置において、 上記各チヤンネルにそれぞれ対応して設けられ、それぞ
れに供給される上記パケツトデータを記憶する記憶手段
と、 上記記憶手段に記憶される上記パケツトデータに時間情
報を付加する時間情報付加手段と、 上記記憶手段に記憶された上記パケツトデータの上記時
間情報に基づいて、上記記憶手段から読み出す上記パケ
ツトデータの読出し順を決定する読出し手段と、 上記決定された読出し順に上記記憶手段から読み出さ
れ、多重化処理された上記パケツトデータの上記多重化
処理に要した時間を、上記時間情報に基づいて検出する
検出手段と、 上記検出手段により検出された上記処理時間に基づいて
上記パケツトデータの上記基準クロツクデータを修正す
る修正手段とを具えることを特徴とする多重化装置。
9. Multiplexing means for packetizing predetermined data of a plurality of systems supplied by a plurality of channels for each predetermined unit, adding reference clock data to said packets, and sequentially multiplexing and outputting each of the packet data thus obtained. Storage device, provided in correspondence with each of the channels, for storing the packet data supplied thereto, and time information adding means for adding time information to the packet data stored in the storage device. Reading means for determining a reading order of the packet data to be read out from the storage means based on the time information of the packet data stored in the storage means; read out from the storage means in the determined reading order and multiplexing The time required for the multiplexing process of the processed packet data is A multiplexing apparatus comprising: detecting means for detecting based on time information; and correcting means for correcting the reference clock data of the packet data based on the processing time detected by the detecting means.
【請求項10】複数チヤンネルで供給される複数系統の
所定データを所定単位ごとにパケツト化すると共に上記
パケツトに基準クロツクデータを付加し、かくして得ら
れた各パケツトデータを順次多重化して出力する多重化
方法において、 上記各チヤンネルにそれぞれ対応して設けられた記憶手
段に記憶される上記パケツトデータに時間情報を付加
し、 上記記憶手段に記憶された上記パケツトデータの上記時
間情報に基づいて、上記記憶手段から読み出す上記パケ
ツトデータの読出し順を決定し、 上記記憶手段から読み出され、多重化処理された上記パ
ケツトデータの上記多重化処理に要した時間を、上記時
間情報に基づいて検出し、 上記検出手段により検出された上記処理時間に基づいて
上記パケツトデータの上記基準クロツクデータを修正す
ることを特徴とする多重化方法。
10. Multiplexing means for packetizing predetermined data of a plurality of systems supplied by a plurality of channels for each predetermined unit, adding reference clock data to the packet, and sequentially multiplexing and outputting each of the packet data thus obtained. In the conversion method, time information is added to the packet data stored in the storage means provided corresponding to each of the channels, and the storage means is provided based on the time information of the packet data stored in the storage means. Determining the reading order of the packet data read from the storage unit, detecting the time required for the multiplexing process of the packet data read from the storage unit and multiplexed based on the time information, The reference clock data of the packet data is calculated based on the detected processing time. A multiplexing method characterized by correcting.
JP17094197A 1996-08-30 1997-06-11 Device and method for multiplexing Pending JPH10126371A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17094197A JPH10126371A (en) 1996-08-30 1997-06-11 Device and method for multiplexing

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP8-248768 1996-08-30
JP24876896 1996-08-30
JP17094197A JPH10126371A (en) 1996-08-30 1997-06-11 Device and method for multiplexing

Publications (1)

Publication Number Publication Date
JPH10126371A true JPH10126371A (en) 1998-05-15

Family

ID=26493799

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17094197A Pending JPH10126371A (en) 1996-08-30 1997-06-11 Device and method for multiplexing

Country Status (1)

Country Link
JP (1) JPH10126371A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000003541A1 (en) * 1998-07-13 2000-01-20 Sony Corporation Data multiplexer, program distribution system, program transmission system, toll broadcast system, program transmission method, limited receiving system, and data receiver
US6441863B1 (en) 1997-11-26 2002-08-27 Sony Corporation Image processing apparatus, image processing method, and television receiver
US6493832B1 (en) 1999-03-17 2002-12-10 Sony Corporation Communication apparatus which handles a time stamp
KR20030053353A (en) * 2001-12-22 2003-06-28 엘지전자 주식회사 Data handler for virtual concatenation in SDH network
US6970564B1 (en) 1998-07-13 2005-11-29 Sony Corporation Data multiplexing device, program distribution system, program transmission system, pay broadcast system, program transmission method, conditional access system, and data reception device
US7023992B1 (en) 1997-06-11 2006-04-04 Sony Corporation Data multiplexing device, program distribution system, program transmission system, pay broadcast system, program transmission method, conditional access system, and data reception device
US7113523B1 (en) 1997-06-11 2006-09-26 Sony Corporation Data multiplexing device, program distribution system, program transmission system, pay broadcast system, program transmission method, conditional access system, and data reception device

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7023992B1 (en) 1997-06-11 2006-04-04 Sony Corporation Data multiplexing device, program distribution system, program transmission system, pay broadcast system, program transmission method, conditional access system, and data reception device
US7072472B2 (en) 1997-06-11 2006-07-04 Sony Corporation Data multiplexing device, program distribution system, program transmission system, pay broadcast system, program transmission method, conditional access system, and data reception device
US7072471B2 (en) 1997-06-11 2006-07-04 Sony Corporation Data multiplexing device, program distribution system, program transmission system, pay broadcast system, program transmission method, conditional access system, and data reception device
US7082197B2 (en) 1997-06-11 2006-07-25 Sony Corporation Data multiplexing device, program distribution system, program transmission system, pay broadcast system, program transmission method, conditional access system, and data reception device
US7085381B2 (en) 1997-06-11 2006-08-01 Sony Corporation Data multiplexing device, program distribution system, program transmission system, pay broadcast system, program transmission method, conditional access system, and data reception device
US7113523B1 (en) 1997-06-11 2006-09-26 Sony Corporation Data multiplexing device, program distribution system, program transmission system, pay broadcast system, program transmission method, conditional access system, and data reception device
US7769053B2 (en) 1997-06-11 2010-08-03 Sony Corporation Data multiplexing device, program distribution system, program transmission system, pay broadcast system, program transmission method, conditional access system, and data reception device
US6441863B1 (en) 1997-11-26 2002-08-27 Sony Corporation Image processing apparatus, image processing method, and television receiver
WO2000003541A1 (en) * 1998-07-13 2000-01-20 Sony Corporation Data multiplexer, program distribution system, program transmission system, toll broadcast system, program transmission method, limited receiving system, and data receiver
US6970564B1 (en) 1998-07-13 2005-11-29 Sony Corporation Data multiplexing device, program distribution system, program transmission system, pay broadcast system, program transmission method, conditional access system, and data reception device
US6493832B1 (en) 1999-03-17 2002-12-10 Sony Corporation Communication apparatus which handles a time stamp
KR20030053353A (en) * 2001-12-22 2003-06-28 엘지전자 주식회사 Data handler for virtual concatenation in SDH network

Similar Documents

Publication Publication Date Title
US5898695A (en) Decoder for compressed and multiplexed video and audio data
US6069902A (en) Broadcast receiver, transmission control unit and recording/reproducing apparatus
CN102640511B (en) Method and system for playing video information, and video information content
US6456782B1 (en) Data processing device and method for the same
US20050259946A1 (en) Video editing apparatus and video editing method
JPH11340938A (en) Data multiplexer and its method
JP3045715B2 (en) Transmission system, transmitting device, recording / reproducing device, and recording device
US5930451A (en) Audio and video reproduction system comprising audio reproduction time adjusting unit
JP3429652B2 (en) Digital coding and multiplexing equipment
JPH10126371A (en) Device and method for multiplexing
US20020031330A1 (en) Storage and reproduction system, transport stream storage method, and transport stream reproduction method
JPH08275151A (en) Distribution decoder for multiplexed compressed image-audio data
JPH1198099A (en) Method and device for multiplexing data
EP1199890A2 (en) Coded data transfer control method and storage and reproduction system
JP2002369163A (en) Method of controlling multistream output timing and control apparatus therefor
JPH11205789A (en) Transmission rate converter of mpeg2 transport stream
JPH0787124A (en) Data multiplex device and separator
JP2001111610A (en) Receiver for information data transmission system
US7130265B1 (en) Data multiplexing device and data multiplexing method, and data transmitter
JP2000187940A (en) Recording/reproducing device and recorder
JP2001339688A (en) Playback equipment of transport stream
US7050460B1 (en) Method and apparatus for multiplexing data streams using time constraints
JP2002281498A (en) Reception reproducing device
JPH1051496A (en) Device and method for multiplexing
JPH09205625A (en) Synchronization method for video sound multiplexing transmitter