JP2001156760A - Communication system, control method and recording medium - Google Patents

Communication system, control method and recording medium

Info

Publication number
JP2001156760A
JP2001156760A JP33235099A JP33235099A JP2001156760A JP 2001156760 A JP2001156760 A JP 2001156760A JP 33235099 A JP33235099 A JP 33235099A JP 33235099 A JP33235099 A JP 33235099A JP 2001156760 A JP2001156760 A JP 2001156760A
Authority
JP
Japan
Prior art keywords
data
synchronization
packet
stream
unit data
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.)
Granted
Application number
JP33235099A
Other languages
Japanese (ja)
Other versions
JP4224749B2 (en
Inventor
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 JP33235099A priority Critical patent/JP4224749B2/en
Publication of JP2001156760A publication Critical patent/JP2001156760A/en
Application granted granted Critical
Publication of JP4224749B2 publication Critical patent/JP4224749B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To eliminate delay fluctuations caused on a network. SOLUTION: Synchronization information represents a difference (β) between a count N (=3240000) and a PCR value E caused equivalently to a case that a 3rd PCR packet reaches a transmitter 201 at a point of time (time t1) when the count N reaches 3240000 on the basis of a difference (α) between a PCR value E3 and a count N3 caused while clocks by (count value N3-a reference clock value B) are counted.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、通信装置および方
法、並びに記録媒体に関し、特に、ATM通信技術などを
用いてデジタル化されたオーディオデータやビデオデー
タを送受信することができるようにした通信装置および
方法、並びに媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a communication apparatus, a communication method, and a recording medium, and more particularly, to a communication apparatus capable of transmitting and receiving audio data and video data digitized using ATM communication technology. And methods and media.

【0002】[0002]

【従来の技術】図1は、従来のデータ伝送システムの構
成例を表している。なお、エンコード側とデコード側の
それぞれが接続するネットワーク3は、デジタルCS放
送における伝送方法と同様に、衛星が利用されているも
のとする。すなわち、ネットワーク3を介して伝送され
るデータには、一定間隔の遅延が発生するものとする。
2. Description of the Related Art FIG. 1 shows a configuration example of a conventional data transmission system. It is assumed that the network 3 to which each of the encoding side and the decoding side is connected uses a satellite, similarly to the transmission method in digital CS broadcasting. That is, it is assumed that data transmitted via the network 3 has a delay at a constant interval.

【0003】エンコーダ1は、伝送すべきデータとして
の、例えばビデオデータおよびオーディオデータをMPEG
-2方式に従ってエンコードし、システムエンコーダ2に
出力する。システムエンコーダ2は、入力されたビデオ
データおよびオーディオデータをパケット化し、トラン
スポートストリームパケットを生成するとともに、必要
に応じて他のトランスポートストリームと多重化して、
ネットワーク3上に出力する。
An encoder 1 converts video data and audio data as data to be transmitted, for example, into MPEG data.
Encode according to the -2 method and output to the system encoder 2. The system encoder 2 packetizes the input video data and audio data, generates a transport stream packet, and multiplexes it with another transport stream as necessary,
Output on the network 3.

【0004】システムエンコーダ2はまた、生成したト
ランスポートストリームパケットのヘッダに、タイムス
タンプであるPCR(Program Clock Reference)を、図2に
示すように組み込む(以下、PCRがヘッダに組み込まれ
たトランスポートストリームパケットをPCRパケットと
称する)。このPCRは、エンコード側から、トランスポ
ートストリームが出力されるタイミングでカウントされ
た、システムエンコーダ2におけるシステムクロックC
1(MPEG-2方式の場合、周波数が27MHzのクロック)
のカウント値である。なお、PCRは、MPEG-2規格によ
り、0.1秒間に少なくとも1つ、エンコード側から出力
されるように、トランスポートストリームに組み込まれ
ている。
The system encoder 2 also incorporates a PCR (Program Clock Reference), which is a time stamp, into the header of the generated transport stream packet as shown in FIG. A stream packet is called a PCR packet.) This PCR is the system clock C in the system encoder 2 counted at the timing when the transport stream is output from the encoding side.
1 (Clock with a frequency of 27 MHz for MPEG-2 system)
Is the count value. According to the MPEG-2 standard, the PCR is incorporated in the transport stream so that at least one PCR is output from the encoding side every 0.1 second.

【0005】図1に戻り、エンコード側から出力された
トランスポートストリームパケット(PCRパケットを含
む)は、ネットワーク3を介して、デコード側に到着
し、そのシステムデコーダ4に入力される。なお、ネッ
トワーク3を介して伝送されてきたトランスポートスト
リームは、一定間隔の遅延を有しているので、PCR(PCR
パケット)は、エンコード側から送出された間隔と同じ
間隔(その差が、MPEG-2規格の+/-500ns以内)でデコー
ド側に到着する。
Returning to FIG. 1, a transport stream packet (including a PCR packet) output from the encoding side reaches the decoding side via the network 3 and is input to the system decoder 4. Note that the transport stream transmitted via the network 3 has a constant delay, so that the
The packet arrives at the decoding side at the same interval as that transmitted from the encoding side (the difference is within +/- 500 ns of the MPEG-2 standard).

【0006】システムデコーダ4は、入力されたトラン
スポートストリームパケットをデパケット化し、その結
果得られたオーディオストリームまたはビデオストリー
ムを、デコーダ5に出力する。システムデコーダ4はま
た、図2に示すように、PCRパケットからPCRを取り出
し、そのPCRと、PCRを取り出したタイミングでカウント
した、デコード側のシステムクロックC2(27MHzの
クロック)のカウント値と比較し、その比較結果に基づ
いて、システムクロックC2の速度を調整し、デコーダ
5に供給する。
[0006] The system decoder 4 depackets the input transport stream packet and outputs the resulting audio stream or video stream to the decoder 5. As shown in FIG. 2, the system decoder 4 extracts the PCR from the PCR packet, and compares the PCR with the count value of the decoding-side system clock C2 (clock of 27 MHz) counted at the timing when the PCR is extracted. The speed of the system clock C2 is adjusted based on the comparison result and supplied to the decoder 5.

【0007】デコーダ5は、システムデコーダ4から供
給されたオーディオデータまたはビデオデータを、シス
テムデコーダ4から供給されたシステムクロックC2に
同期して、デコード処理をする。
The decoder 5 decodes the audio data or the video data supplied from the system decoder 4 in synchronization with the system clock C2 supplied from the system decoder 4.

【0008】次に、デコード側におけるシステムクロッ
クC2の生成(調整)処理を、図3と図4を参照してさ
らに説明する。システムデコーダ4は、図3に示すよう
に構成されている。システムデコーダ4に供給されたト
ランスポートストリームパケットは、システムデコーダ
4のシステムデコード部11およびタイムスタンプ取出
回路12に供給される。
Next, the generation (adjustment) processing of the system clock C2 on the decoding side will be further described with reference to FIGS. The system decoder 4 is configured as shown in FIG. The transport stream packet supplied to the system decoder 4 is supplied to the system decoder 11 and the time stamp extracting circuit 12 of the system decoder 4.

【0009】タイムスタンプ取出回路12は、図2に示
したように、PCRパケットに組み込まれたPCRを取り出
し、PLL回路13に出力する。PLL回路13は、例えば図
4に示すように構成されており、その減算器21には、
タイムスタンプ取出回路12により取り出されたPCR、
およびそのPCRが入力されたタイミングでカウントされ
たカウンタ24のカウント値(D/Aコンバータ兼VCO23
から出力されるクロックのカウント値)が入力される。
減算器21は、タイムスタンプ取出回路12からのPCR
と、カウンタ24からのカウント値との差を算出し、ロ
ーパスフィルタ(以下、LPFと略称する)22に出力す
る。LPF22は、入力された減算器21からの演算結果
を時間的に平滑し、D/Aコンバータ兼VCO(電圧制御発振
器)23に出力する。D/Aコンバータ兼VCO23は、LPF
22より入力されたデジタル信号をアナログ信号に変換
し、そのアナログ信号を制御電圧として、その制御電圧
に対応する周波数のシステムクロックC2を発生する。
D/Aコンバータ兼VCO23は、発生したシステムクロック
C2をカウンタ24およびデコーダ5に出力する。
[0009] As shown in FIG. 2, the time stamp extracting circuit 12 extracts the PCR incorporated in the PCR packet and outputs the extracted PCR to the PLL circuit 13. The PLL circuit 13 is configured, for example, as shown in FIG.
PCR extracted by the time stamp extraction circuit 12,
And the count value of the counter 24 (the D / A converter / VCO 23
The clock count value output from the) is input.
The subtracter 21 receives the PCR from the time stamp extracting circuit 12.
, And the difference from the count value from the counter 24 is calculated and output to a low-pass filter (hereinafter abbreviated as LPF) 22. The LPF 22 temporally smoothes the input operation result from the subtractor 21 and outputs the result to a D / A converter / VCO (voltage controlled oscillator) 23. D / A converter and VCO23 are LPF
The digital signal input from the converter 22 is converted into an analog signal, and the analog signal is used as a control voltage to generate a system clock C2 having a frequency corresponding to the control voltage.
The D / A converter / VCO 23 outputs the generated system clock C2 to the counter 24 and the decoder 5.

【0010】カウンタ24は、D/Aコンバータ兼VCO23
からのシステムクロックC2をカウントし、そのカウン
ト値を、その時点におけるシステムクロックC2の周波
数と位相を表す信号として、減算器21に供給する。す
なわち、このPLL回路13において、トランスポートス
トリームパケットに組み込まれたPCRと、そのPCRが取り
出されるタイミング(PCRパケットがデコード側に到着
するタイミング)でカウントされたシステムクロックC
2のカウント値の差がなくなるように、システムクロッ
クC2の速度が調整される。その結果、エンコード側の
システムクロックC1と同期する、デコード側のシステ
ムクロックC2が生成される。
The counter 24 is a D / A converter / VCO 23
, And supplies the count value to the subtractor 21 as a signal representing the frequency and phase of the system clock C2 at that time. That is, in the PLL circuit 13, the PCR incorporated in the transport stream packet and the system clock C counted at the timing at which the PCR is taken out (the timing at which the PCR packet arrives at the decoding side).
The speed of the system clock C2 is adjusted so that the difference between the count values of 2 is eliminated. As a result, a system clock C2 on the decoding side that is synchronized with the system clock C1 on the encoding side is generated.

【0011】図3に戻り、システムデコード部11は、
入力されたトランスポートストリームパケットをデパケ
ット化し、その結果得られたオーディオストリームおよ
びビデオストリームを、デコーダ5に出力する。
Returning to FIG. 3, the system decoding unit 11
The input transport stream packet is depacketized, and the resulting audio stream and video stream are output to the decoder 5.

【0012】ところで、ネットワーク3として、衛星放
送における伝送方法と同様に、衛星が利用されている場
合、エンコード側から伝送されたトランスポートストリ
ームパケットには、固定遅延が付加される。つまり、エ
ンコード側から伝送されたトランスポートストリームパ
ケットは、一定時間分だけ遅れて、または速まって、デ
コード側に到着する。この場合、遅れる時間または速ま
る時間は、一定であるので、トランスポートストリーム
パケット(PCRパケットを含む)のデコード側への到着
間隔は、エンコード側からの出力間隔と同じとなる。そ
のため、この場合においては、図3と図4を参照して説
明した方法を利用することで、デコード側のシステムク
ロックC2は、エンコード側のシステムクロックC1と
同期するように生成される。
When a satellite is used as the network 3 in a manner similar to the transmission method in satellite broadcasting, a fixed delay is added to the transport stream packet transmitted from the encoding side. That is, the transport stream packet transmitted from the encoding side arrives at the decoding side with a delay of a predetermined time or hasten. In this case, since the delay time or the speeding time is constant, the arrival interval of the transport stream packet (including the PCR packet) to the decoding side is the same as the output interval from the encoding side. Therefore, in this case, by using the method described with reference to FIGS. 3 and 4, the system clock C2 on the decoding side is generated so as to be synchronized with the system clock C1 on the encoding side.

【0013】[0013]

【発明が解決しようとする課題】しかしながら、ネット
ワーク3として、ATM(Asynchronous Transfer Mode)ネ
ットワークが利用される場合、エンコード側から伝送さ
れるトランスポートストリームパケットには、一定間隔
の遅延ではなく、例えば、1ms乃至2msの範囲でゆれる
遅延(以下、遅延ゆらぎと称する)が付加される。この
場合、上述したデータ伝送システムでは、その遅延ゆら
ぎが吸収されず、結局、遅延の大きさが、MPEG-2規格の
+/-500nsの範囲を大きく超えてしまい、データが適切に
再生されない。
However, when an ATM (Asynchronous Transfer Mode) network is used as the network 3, the transport stream packet transmitted from the encoding side has, for example, A delay fluctuating in the range of 1 ms to 2 ms (hereinafter referred to as delay fluctuation) is added. In this case, in the data transmission system described above, the delay fluctuation is not absorbed, and eventually, the magnitude of the delay is reduced according to the MPEG-2 standard.
The data is not properly reproduced because it greatly exceeds the range of +/- 500ns.

【0014】そこで、デコード側において、遅延ゆらぎ
をある程度低減させた後にシステムクロックを生成する
ようにしたアダプティブクロック法などの同期方法が提
案されている。
Therefore, a synchronization method such as an adaptive clock method has been proposed in which a system clock is generated after the delay fluctuation is reduced to some extent on the decoding side.

【0015】図5は、アダプティブクロック法を適用し
たデコード側の装置のアダプティブクロック部51の構
成例を表している。なお、ネットワーク50を介して伝
送されてくるデータには、遅延ゆらぎが発生しているも
のとする。
FIG. 5 shows an example of the configuration of an adaptive clock section 51 of a decoding device to which the adaptive clock method is applied. It is assumed that data transmitted via the network 50 has a delay fluctuation.

【0016】ネットワーク50を介して伝送されてき
た、遅延ゆらぎを有するデータは、アダプディブクロッ
ク部51のFIFO52に入力される。FIFO52は、入力さ
れたデータを一時保持するとともに、制御部53から供
給される所定の読み出しクロックに対応してデータを出
力する。FIFO52はまた、自分自身のデータ占有率をLP
F54に出力する。LPF54は、FIFO52のデータ占有率
を平滑し、それを制御部53に出力する。
The data having delay fluctuation transmitted through the network 50 is input to the FIFO 52 of the adaptive clock unit 51. The FIFO 52 temporarily stores input data and outputs data in response to a predetermined read clock supplied from the control unit 53. The FIFO 52 also determines its own data occupancy by LP
Output to F54. The LPF 54 smoothes the data occupancy of the FIFO 52 and outputs it to the control unit 53.

【0017】制御部53は、LPF54から供給されるデ
ータ(平滑されたFIFO52のデータ占有率)が、所定の
値になるように、FIFO52に出力する読み出しクロック
の速度を制御する。すなわち、アダプティブクロック法
においては、制御部53により制御されるクロックがデ
コード側のシステムクロックとされる。
The control unit 53 controls the speed of the read clock output to the FIFO 52 so that the data (smoothed data occupancy of the FIFO 52) supplied from the LPF 54 becomes a predetermined value. That is, in the adaptive clock method, the clock controlled by the control unit 53 is the system clock on the decoding side.

【0018】このように、このアダプティブクロック方
式においては、受信されたデータのみに基づいて、デコ
ード側のシステムクロックが生成されるので、装置の構
成を簡単にすることができる。しかしながら、この例で
は、ジッタ成分をアナログ的にシェイビングしているだ
けなので、長い時間でみればジッタ成分は残っており、
遅延ゆらぎは十分に吸収されない課題がある。
As described above, in the adaptive clock system, the system clock on the decoding side is generated based only on the received data, so that the configuration of the apparatus can be simplified. However, in this example, since the jitter component is only shaved in an analog manner, the jitter component remains in a long time,
There is a problem that the delay fluctuation is not sufficiently absorbed.

【0019】また、エンコード側に、図6に示されるよ
うな構成を有する送信装置61、およびデコード側に、
図7に示すような構成を有する受信装置62からなるデ
ータ伝送システムも提案されている。これは、例えば、
各テレビジョン放送局または番組作成会社において、そ
れぞれのクロックに同期した複数のプログラムを伝送す
るためのシステムである。
On the encoding side, a transmitting device 61 having a configuration as shown in FIG. 6 and on the decoding side,
A data transmission system including a receiving device 62 having a configuration as shown in FIG. 7 has also been proposed. This is, for example,
This is a system for transmitting a plurality of programs synchronized with respective clocks in each television broadcasting station or program creation company.

【0020】送信装置61には、図6に示すように、PL
L回路71とN個の同期データ作成部72−1乃至72
−N(以下、ここに区別する必要がない場合、単に、同
期データ作成部72と記述する。他の部分についても同
様である)が設けられている。PLL回路71には、ネッ
トワーク63のネットワーククロックである8KHzのク
ロックが供給される。PLL回路71は、図8に示すよう
に構成されている位相比較器91が設けられている。位
相比較器91のVCO92は、位相比較部94から供給さ
れる信号に基づいて所定の位相の27MHzを発生し、そ
れを分周器93に出力するとともに、同期データ作成部
72−1乃至72−Nのそれぞれにも出力する。
[0020] As shown in FIG.
L circuit 71 and N synchronous data creating units 72-1 to 72
−N (hereinafter, when there is no need to distinguish them here, simply described as a synchronization data creation unit 72. The same applies to other parts). The PLL circuit 71 is supplied with an 8 KHz clock which is a network clock of the network 63. The PLL circuit 71 is provided with a phase comparator 91 configured as shown in FIG. The VCO 92 of the phase comparator 91 generates a predetermined phase of 27 MHz based on the signal supplied from the phase comparator 94, outputs it to the frequency divider 93, and generates the synchronous data generators 72-1 to 72-. Also output to each of N.

【0021】分周器93は、VCO92から入力された2
7MHzのクロックを、1/3375に分周し、8KHzのク
ロックを生成し、それを位相比較部94に出力する。位
相比較部94は、ネットワーク63からの8KHzのクロ
ックと、分周器93からの8KHzのクロックの位相を比
較し、比較結果をVCO92に出力する。
The frequency divider 93 receives the 2 input from the VCO 92.
The 7 MHz clock is divided into 1/3375 to generate an 8 KHz clock, which is output to the phase comparison unit 94. The phase comparison unit 94 compares the phase of the 8 kHz clock from the network 63 with the phase of the 8 kHz clock from the frequency divider 93 and outputs the comparison result to the VCO 92.

【0022】同期データ作成部72−1は、PLL回路8
1、ラッチ回路82、およびクロック83などから構成
されている。同期データ作成部72−1のPLL回路81
には、例えば、所定のクロックに同期して作成されたデ
ータに含まれているタイムスタンプが供給される。PLL
回路81は、基本的に、図4に示したPLL回路13と同
様の構成を有している。すなわち、PLL回路81は、入
力されたタイムスタンプに基づて所定のクロックを発生
し、ラッチ回路82に出力する。
The synchronous data generator 72-1 includes a PLL circuit 8
1, a latch circuit 82, a clock 83, and the like. PLL circuit 81 of synchronous data creation unit 72-1
Is supplied with a time stamp included in data created in synchronization with a predetermined clock. PLL
The circuit 81 has basically the same configuration as the PLL circuit 13 shown in FIG. That is, the PLL circuit 81 generates a predetermined clock based on the input time stamp and outputs the clock to the latch circuit 82.

【0023】ラッチ回路82は、PLL回路81からのク
ロックとクロック83からのクロックに従ってラッチ処
理を実行する。そのラッチ処理の処理結果により再生さ
れたデータが同期データとされ、所定のトランスポート
ストリームパケットに組み込まれる。
The latch circuit 82 performs a latch process in accordance with the clock from the PLL circuit 81 and the clock from the clock 83. Data reproduced according to the processing result of the latch processing is set as synchronous data, and is incorporated into a predetermined transport stream packet.

【0024】同期データ作成部72−2乃至72−N
も、同期データ作成部72−1と同様の構成を有してい
るので、その図示と詳細な説明は省略するが、それぞれ
異なるクロックに同期して作成されたデータに含まれる
タイムスタンプが入力され、そのクロックに対応した同
期データを作成する。
Synchronous data generators 72-2 to 72-N
Has the same configuration as that of the synchronization data creation unit 72-1. Although illustration and detailed description are omitted, a time stamp included in data created in synchronization with different clocks is input. , And creates synchronous data corresponding to the clock.

【0025】受信装置62には、図7に示すように、PL
L回路101とN個のシステムクロック再生部102−
1乃至102−Nが設けられている。PLL回路101に
は、ネットワーク63のネットワーククロックである8
KHzのクロックが供給される。PLL回路101は、送信装
置61のPLL回路71と同様に、入力される8KHzのクロ
ックに対応する27MHzのクロックを発生し、システム
クロック再生部102−1乃至102−Nのそれぞれに
出力する。
[0025] As shown in FIG.
L circuit 101 and N system clock reproducing units 102-
1 to 102-N are provided. The PLL circuit 101 has a network clock 8 of the network 63.
A KHz clock is supplied. The PLL circuit 101, like the PLL circuit 71 of the transmission device 61, generates a 27 MHz clock corresponding to the input 8 KHz clock, and outputs it to each of the system clock reproducing units 102-1 to 102-N.

【0026】システムクロック再生部102−1は、ク
ロック110およびPLL回路111などから構成されて
いる。システムクロック再生部102−1のクロック1
10には、PLL回路101から供給されたクロックが入
力され、クロック110は、それを1/2700000
0に分周し、PLL回路111に出力する。PLL回路111
には、クロック110からのクロックの他、送信装置6
1の同期データ作成部72−1により作成された同期デ
ータが供給される。そこでPLL回路111は、入力され
たクロックおよび同期データに基づいて、システムクロ
ックを再生する。
The system clock reproducing unit 102-1 includes a clock 110, a PLL circuit 111, and the like. Clock 1 of system clock reproducing unit 102-1
10, the clock supplied from the PLL circuit 101 is input, and the clock 110 divides the clock by 1/270000000.
The frequency is divided to 0 and output to the PLL circuit 111. PLL circuit 111
In addition to the clock from the clock 110, the transmitting device 6
The synchronization data created by the first synchronization data creation unit 72-1 is supplied. Therefore, the PLL circuit 111 reproduces the system clock based on the input clock and the synchronization data.

【0027】システムクロック再生部102−2乃至1
02−Nも、システムクロック再生部102−1と同様
の構成を有しているので、その図示は省略するが、それ
らは、それぞれ対応する、送信装置61の同期データ作
成部72から供給される同期データを利用してシステム
クロックを再生する。このように再生されたシステムク
ロックは、それぞれのデータのエンコード時のクロック
に同期しているので、そのクロックに従って、データを
それぞれデコードすることにより、データは適切に再生
される。
System clock reproducing units 102-2 to 102-1
02-N also has a configuration similar to that of the system clock reproduction unit 102-1 and is not shown in the figure, but they are supplied from the corresponding synchronization data generation unit 72 of the transmission device 61. Regenerate system clock using synchronous data. Since the reproduced system clock is synchronized with the clock at the time of encoding the respective data, the data is appropriately reproduced by decoding the data according to the clock.

【0028】しかしながら、上述したデータ伝送システ
ムにおいては、エンコード時のクロック毎に、同期デー
タ作成部72およびシステムクロック再生部102を備
える必要があり、装置の構成が複雑、かつ、大型化して
しまう課題があった。
However, in the above-described data transmission system, it is necessary to provide the synchronous data generating unit 72 and the system clock reproducing unit 102 for each clock at the time of encoding, and the configuration of the device becomes complicated and the size becomes large. was there.

【0029】本発明はこのような問題に盤みてなされた
ものであり、遅延ゆらぎを、容易に、かつ、確実に吸収
し、また装置を複雑、かつ、大型化することなく、複数
のプログラムに対応するデータを送受信することができ
るようにしたものである。
The present invention has been made in view of such a problem, and can easily and surely absorb delay fluctuations, and can implement a plurality of programs without increasing the size and complexity of the apparatus. The corresponding data can be transmitted and received.

【0030】[0030]

【課題を解決するための手段】請求項1に記載の通信装
置は、ストリームを構成するパケットの先頭に組み込ま
れた同期データと同値である、ストリームに配置された
単位データを検出する検出手段と、検出手段により検出
された、同期データと同値である単位データのストリー
ム上の配置位置から、パケットの大きさ毎に、ストリー
ムに配置された単位データを検出し、検出した単位デー
タのうち、連続して検出した、同期データと同値である
単位データの数をカウントする第1のカウント手段と、
第1のカウント手段によりカウントされた、連続して検
出された同期データと同値である単位データの数が、所
定の数となったとき、検出された単位データのうちの1
つの単位データのストリーム上の配置位置を、パケット
の先頭とし、ストリームの同期を確立する同期確立手段
とを備えることを特徴とする。
According to the present invention, there is provided a communication apparatus, comprising: detecting means for detecting unit data arranged in a stream and having the same value as synchronous data incorporated at the head of a packet constituting the stream. Detecting unit data arranged in the stream for each packet size from the arrangement position on the stream of the unit data having the same value as the synchronous data detected by the detecting means, and detecting the continuous data among the detected unit data. First counting means for counting the number of unit data having the same value as the synchronous data detected by
When the number of unit data counted by the first counting means and having the same value as the continuously detected synchronous data reaches a predetermined number, one of the detected unit data is counted.
The apparatus is characterized in that the arrangement position of one unit data on the stream is set as the head of the packet, and a synchronization establishing means for establishing the synchronization of the streams is provided.

【0031】同期確立手段により、パケットの先頭とさ
れた単位データの、同期確立手段により同期が確立され
たストリーム上の配置位置から、パケットの大きさ毎
に、ストリームに配置された単位データを検出し、検出
した単位データのうち、連続して検出した、同期データ
と異なる値である単位データの数をカウントする第2の
カウント手段をさらに設けることができ、検出手段は、
第2のカウント手段によりカウントされた、連続して検
出された同期データと異なる値である単位データの数
が、所定の数となったとき、同期データと同値である、
ストリームに配置された単位データを再び検出すること
ができる。
[0031] The unit data arranged in the stream is detected for each packet size from the arrangement position of the unit data at the head of the packet on the stream to which synchronization has been established by the synchronization establishment unit. Then, a second counting means for counting the number of unit data having a value different from the synchronization data, which is continuously detected, among the detected unit data, may be further provided.
When the number of unit data counted by the second counting means and having a value different from the continuously detected synchronization data has reached a predetermined number, the number is equal to the synchronization data.
The unit data arranged in the stream can be detected again.

【0032】ストリームに所定のタイムスタンプが付加
されている場合、第1のカウント手段は、同期データと
同値、タイムスタンプと同値、および同期データと同値
の単位データが連続して検出されたとき、連続して、同
期データと同値である単位データを検出したとすること
ができる。
In the case where a predetermined time stamp is added to the stream, the first counting means determines that when unit data having the same value as the synchronization data, the same value as the time stamp, and the same value as the synchronization data are successively detected, It can be assumed that the unit data having the same value as the synchronous data is continuously detected.

【0033】請求項4に記載の通信方法は、ストリーム
を構成するパケットの先頭に組み込まれた同期データと
同値である、ストリームに配置された単位データを検出
する検出ステップと、検出ステップの処理で検出され
た、同期データと同値である単位データのストリーム上
の配置位置から、パケットの大きさ毎に、ストリームに
配置された単位データを検出し、検出した単位データの
うち、連続して検出した、同期データと同値である単位
データの数をカウントするカウントステップと、カウン
トステップの処理でカウントされた、連続して検出され
た同期データと同値である単位データの数が、所定の数
となったとき、検出された単位データのうちの1つの単
位データのストリーム上の配置位置を、パケットの先頭
とし、ストリームの同期を確立する同期確立ステップと
を含むことを特徴とする。
According to a fourth aspect of the present invention, there is provided a communication method comprising the steps of: detecting a unit data arranged in a stream, which has the same value as synchronous data incorporated at the head of a packet constituting the stream; From the detected arrangement position of the unit data in the stream having the same value as the synchronization data, the unit data arranged in the stream is detected for each packet size, and the detected unit data is continuously detected. A counting step for counting the number of unit data having the same value as the synchronization data; and the number of unit data having the same value as the synchronization data detected continuously in the counting step is a predetermined number. When the position of one of the detected unit data on the stream is set as the head of the packet, Characterized in that it comprises a synchronization establishment step of establishing the period.

【0034】請求項5に記載の記録媒体は、ストリーム
を構成するパケットの先頭に組み込まれた同期データと
同値である、ストリームに配置された単位データを検出
する検出ステップと、検出ステップの処理で検出され
た、同期データと同値である単位データのストリーム上
の配置位置から、パケットの大きさ毎に、ストリームに
配置された単位データを検出し、検出した単位データの
うち、連続して検出した、同期データと同値である単位
データの数をカウントするカウントステップと、カウン
トステップの処理でカウントされた、連続して検出され
た同期データと同値である単位データの数が、所定の数
となったとき、検出された単位データのうちの1つの単
位データのストリーム上の配置位置を、パケットの先頭
とし、ストリームの同期を確立する同期確立ステップと
を含むことを特徴とする。
According to a fifth aspect of the present invention, the recording medium includes a detecting step of detecting unit data arranged in the stream and having the same value as the synchronization data incorporated at the head of a packet constituting the stream, and a processing of the detecting step. From the detected arrangement position of the unit data in the stream having the same value as the synchronization data, the unit data arranged in the stream is detected for each packet size, and the detected unit data is continuously detected. A counting step for counting the number of unit data having the same value as the synchronization data; and the number of unit data having the same value as the synchronization data detected continuously in the counting step is a predetermined number. When the position of one of the detected unit data on the stream is set as the head of the packet, Characterized in that it comprises a synchronization establishment step of establishing the period.

【0035】請求項1に記載の通信装置、請求項4に記
載の通信方法、および請求項5に記載の記録媒体のプロ
グラムにおいては、ストリームを構成するパケットの先
頭に組み込まれた同期データと同値である、ストリーム
に配置された単位データが検出され、検出された、同期
データと同値である単位データのストリーム上の配置位
置から、パケットの大きさ毎に、ストリームに配置され
た単位データが検出され、検出された単位データのう
ち、連続して検出された、同期データと同値である単位
データの数がカウントされ、カウントされた、連続して
検出された同期データと同値である単位データの数が、
所定の数となったとき、検出された単位データのうちの
1つの単位データのストリーム上の配置位置を、パケッ
トの先頭とし、ストリームの同期が確立される。
In the communication device according to the first aspect, the communication method according to the fourth aspect, and the program of the recording medium according to the fifth aspect, the same value as the synchronization data incorporated at the head of the packet constituting the stream. The unit data arranged in the stream is detected, and the unit data arranged in the stream is detected for each packet size from the detected arrangement position on the stream of the unit data having the same value as the synchronization data. Of the detected unit data, the number of continuously detected unit data having the same value as the synchronization data is counted, and the counted unit data having the same value as the continuously detected synchronization data is counted. Number,
When the predetermined number is reached, the arrangement position of one of the detected unit data on the stream is set as the head of the packet, and the synchronization of the stream is established.

【0036】[0036]

【発明の実施の形態】図9は、本発明を適用したデータ
伝送システムの構成例を表している。このシステムにお
いては、MPEG-2方式に準拠したMPEGトランスポートスト
リームが、ATMネットワークであるネットワーク202
を介して送受信される。すなわち、ネットワーク202
を介して伝送されるデータには、遅延ゆらぎが発生す
る。
FIG. 9 shows a configuration example of a data transmission system to which the present invention is applied. In this system, an MPEG transport stream conforming to the MPEG-2 system is transmitted over a network 202 which is an ATM network.
Sent and received via That is, the network 202
Causes delay fluctuations in data transmitted via the.

【0037】送信装置201には、それぞれにエンコー
ドされた複数のプログラムが多重化されているMPEGトラ
ンスポートストリームパケットが入力される。なお、こ
のMPEGトランスポートストリームパケットには、PCRが
少なくとも0.1秒以内の間隔で受信装置203に到着す
るようにPCRパケットが組み込まれている。
An MPEG transport stream packet in which a plurality of encoded programs are multiplexed is input to the transmission device 201. The MPEG transport stream packet incorporates a PCR packet so that the PCR arrives at the receiving device 203 at least within an interval of 0.1 second.

【0038】MPEGトランスポートストリームパケット
は、図10に示すように、ヘッダ部、アダプテーション
フィールド部、およびペイロード部等からなる、188
バイトの固定パケットである。ヘッダ部には、同期バイ
ト(8ビット)、誤り表示(1ビット)、ユニット開始
表示(1ビット)、トランスポートパケットプライオリ
ティ(1ビット)、PID(Packet Identification)(13
ビット)、スクランブル制御(2ビット)、アダプテー
ションフィール制御(2ビット)、巡回カウンタ(4ビ
ット)が含まれる。なお、同期バイトは、47hとされ
ている。
As shown in FIG. 10, the MPEG transport stream packet includes a header section, an adaptation field section, a payload section, and the like.
It is a fixed packet of bytes. In the header part, synchronization byte (8 bits), error indication (1 bit), unit start indication (1 bit), transport packet priority (1 bit), PID (Packet Identification) (13 bits)
Bits), scramble control (2 bits), adaptation field control (2 bits), and cyclic counter (4 bits). Note that the synchronization byte is 47h.

【0039】アダプテーションフィールド部には、アダ
プテーションフィールド長さ(8ビット)、不連続表示
(1ビット)、ランダムアクセス表示(1ビット)、ス
トリーム優先表示(1ビット)、フラグ(5ビット)、
プログラムクロックリファレンスベース(33ビッ
ト)、リザーブ(6ビット)、およびプログラムクロッ
クリファレンス拡張(9ビット)が含まれる。なお、フ
ラグには、PCRフラグ(1ビット)をはじめ5種類のフ
ラグが存在する。
The adaptation field portion includes an adaptation field length (8 bits), a discontinuity indication (1 bit), a random access indication (1 bit), a stream priority indication (1 bit), a flag (5 bits),
It includes a program clock reference base (33 bits), a reserve (6 bits), and a program clock reference extension (9 bits). Note that there are five types of flags including a PCR flag (1 bit).

【0040】ペイロード部には、データが含まれる。The payload section contains data.

【0041】MPEGトランスポートストリームパケット
は、以上のようなデータ構造を有するが、図10に示す
ように、ヘッダ部のアダプテーションフィールド制御
が”10”または”11”とされ、かつ、アダプテーシ
ョンフィールド部のアダプテーションフィールド長さが
00h以外の値で、さらにPCRフラグに”1”が立って
いる場合(以下、このようなデータ設定をPCRパケット
条件と記述する)、そのMPEGトランスポートストリーム
パケットは、PCRパケットであり、そのアダプテーショ
ンフィールド部のプログラムクロックリファレンスベー
スの値およびプログラムロックリファレンス拡張の値の
組み合わせが、PCR値を表す。
The MPEG transport stream packet has the above data structure. However, as shown in FIG. 10, the adaptation field control of the header is set to "10" or "11", and the adaptation field of the adaptation field is When the adaptation field length is a value other than 00h and the PCR flag is set to “1” (hereinafter, such data setting is referred to as a PCR packet condition), the MPEG transport stream packet is a PCR packet. The combination of the value of the program clock reference base and the value of the program lock reference extension in the adaptation field portion indicates the PCR value.

【0042】プログラムクロックリファレンスベースに
は、0乃至299の値が順に設定され(カウントさ
れ)、プログラムクロックリファレンスベースの値が2
99から0の値に戻る(リセット)されるタイミング
で、プログラムクロックリファレンス拡張の値が1だけ
インクリメントされる。すなわち、プログラムクロック
リファレンスベースおよびプログラムクロックリファレ
ンス拡張の合計42ビットにより、MPEG-2方式における
27MHzのシステムクロックを単位として、24時間分
の時間がカウントされる。
In the program clock reference base, values from 0 to 299 are set (counted) in order, and the value of the program clock reference base is 2
At the timing of returning (resetting) from 99 to 0, the value of the program clock reference extension is incremented by one. That is, a total of 42 bits of the program clock reference base and the program clock reference extension count 24 hours of time in units of a 27 MHz system clock in the MPEG-2 system.

【0043】図9に戻り、送信装置201に入力された
MPEGトランスポートストリームパケット(PCRパケット
を含む)は、そこで、ATMセルに変換され、ネットワー
ク202上に伝送されるが、PCRパケットには、そのPCR
値に基づいて作成された所定の同期情報(後述)が書き
込まれる。
Returning to FIG. 9, the input
The MPEG transport stream packets (including the PCR packets) are then converted into ATM cells and transmitted over the network 202.
Predetermined synchronization information (described later) created based on the value is written.

【0044】ネットワーク202を介して伝送されてき
たATMセルは、受信装置203に到着し、そこで、MPEG
トランスポートストリームに変換されるが、PCRパケッ
トに含まれるPCR値は、PCRパケットに書き込まれた同期
情報に基づいて修正される。PCR値が修正されたPCRパケ
ットを含むMPEGトランスポートストリームパケットは、
図示せぬデコーダに供給され、そこでデコードされる。
The ATM cell transmitted via the network 202 arrives at the receiving device 203, where the ATM cell
Although converted to a transport stream, the PCR value included in the PCR packet is modified based on the synchronization information written in the PCR packet. MPEG transport stream packets containing PCR packets with modified PCR values
The data is supplied to a decoder (not shown) and decoded there.

【0045】図11は、送信装置201の構成例を表し
ている。MPEGトランスポートストリームパケット同期部
(以下、TSパケット同期部と略称する)211には、送
信装置201に供給されたMPEGトランスポートストリー
ムパケットが入力される。TSパケット同期部211は、
入力されたMPEGトランスポートストリームパケットの先
頭を検出し、フレーム同期を確立するとともに、フレー
ム同期を確立した後、MEPGトランスポートストリームパ
ケットを、PCRパケット検出部212に出力する。
FIG. 11 shows a configuration example of the transmitting apparatus 201. An MPEG transport stream packet supplied to the transmitting apparatus 201 is input to an MPEG transport stream packet synchronizer (hereinafter, abbreviated as a TS packet synchronizer) 211. The TS packet synchronization unit 211
The head of the input MPEG transport stream packet is detected, frame synchronization is established, and after the frame synchronization is established, the MEPG transport stream packet is output to the PCR packet detection unit 212.

【0046】PCRパケット検出部212は、TSパケット
同期部211から入力されたMPEGトランスポートストリ
ームパケット(フレーム同期が取られているMPEGトラン
スポートストリームパケット)のヘッダ部およびアダプ
テーションフィールド部を参照して、PCRパケット条件
が設定されているか否かを判定し、PCRパケット条件が
設定されていると判定した場合、すなわち、そのMPEGト
ランスポートストリームパケットがPCRパケットである
場合、そのことを示す信号(以下、PCRパケット検出信
号と称する)を同期情報処理部213に出力する。な
お、PCRパケット検出部212は、入力されたMPEGトラ
ンスポートストリームパケット自身には、何ら処理を施
さずに、同期情報処理部213に出力する。
The PCR packet detecting section 212 refers to the header section and the adaptation field section of the MPEG transport stream packet (the MPEG transport stream packet with frame synchronization) input from the TS packet synchronizing section 211, It is determined whether or not the PCR packet condition is set, and if it is determined that the PCR packet condition is set, that is, if the MPEG transport stream packet is a PCR packet, a signal indicating that (hereinafter, a signal indicating that). A PCR packet detection signal is output to the synchronous information processing unit 213. Note that the PCR packet detection unit 212 outputs the input MPEG transport stream packet to the synchronous information processing unit 213 without performing any processing.

【0047】同期情報処理部213には、PCRパケット
検出部212から、MPEGトランスポートストリームパケ
ットおよびPCRパケット検出信号、並びにカウンタ21
4から、カウント値が、それぞれ入力される。
The synchronous information processing unit 213 receives the MPEG transport stream packet and the PCR packet detection signal from the PCR packet detection unit 212,
From 4, the count value is input.

【0048】同期情報処理部213は、PCRパケット検
出部212からのPCRパケット検出信号により特定され
る、PCRパケット検出部212からのMPEGトランスポー
トストリームパケット(PCRパケット)からPCRを読み出
し、読み出したPCRに基づいて、所定の同期情報(詳細
は後述する)を算出する。同期情報処理部213は、算
出した同期情報をそのPCRパケットに書き込み、MPEG/A
TM変換部216に出力する。
The synchronous information processing section 213 reads the PCR from the MPEG transport stream packet (PCR packet) specified by the PCR packet detection signal from the PCR packet detection section 212 and reads the PCR. , And calculates predetermined synchronization information (details will be described later). The synchronization information processing unit 213 writes the calculated synchronization information into the PCR packet,
Output to TM conversion section 216.

【0049】メモリ215は、同期情報処理部213か
ら供給される、同期情報を算出する上において必要なデ
ータを適宜記憶する。なお、この例の場合、同期情報処
理部213による同期情報算出処理は、プログラム毎
(MEPGトランスポートストリームパケットに設定された
PID毎)に行われるので、メモリ215は、同期情報処
理部213から供給されるデータを各プログラム毎に記
憶する。
The memory 215 stores data necessary for calculating the synchronization information supplied from the synchronization information processing unit 213 as appropriate. In this example, the synchronization information calculation processing by the synchronization information processing unit 213 is performed for each program (set in the MEPG transport stream packet).
(For each PID), so that the memory 215 stores the data supplied from the synchronous information processing unit 213 for each program.

【0050】MPEG/ATM変換部216は、MPEGトランス
ポートストリームパケットをATMセルに変換してネット
ワーク202へ送信する。MPEG/ATM変換部216はま
た、ネットワーク202から順次送信されてくるATMセ
ルを受信し、受信したATMセルに基づいてネットワーク
202のネットワーククロックに同期した8KHzのクロ
ックを生成し、PLL回路217に出力する。
[0050] The MPEG / ATM conversion section 216 converts the MPEG transport stream packet into an ATM cell and transmits the ATM cell to the network 202. The MPEG / ATM conversion unit 216 also receives ATM cells sequentially transmitted from the network 202, generates an 8 KHz clock synchronized with the network clock of the network 202 based on the received ATM cells, and outputs the clock to the PLL circuit 217. I do.

【0051】PLL回路217は、例えば、図6のPLL回路
71と同様に、図12に示すような位相比較器250を
有している。VCO251は、位相比較部252から供給
される信号に基づいて所定の位相の27MHzを発生し、
カウンタ214および分周器253に出力する。分周器
253は、VCO251から入力された27MHzのクロック
を、1/3375に分周し、8KHzのクロックを生成
し、位相比較部252に出力する。位相比較部252
は、MPEG/ATM変換部216からの8KHzのクロックの位
相と、分周器253からの8KHzからのクロックの位相
を比較し、その比較結果をVCO251に出力する。すな
わち、カウンタ214に出力される27MHzのクロック
は、ネットワーク202のネットワーククロックと同期
するように、その位相が調整される。
The PLL circuit 217 has a phase comparator 250 as shown in FIG. 12, for example, like the PLL circuit 71 in FIG. The VCO 251 generates a predetermined phase of 27 MHz based on the signal supplied from the phase comparison unit 252,
Output to the counter 214 and the frequency divider 253. The frequency divider 253 divides the frequency of the 27 MHz clock input from the VCO 251 by 1/3375, generates an 8 KHz clock, and outputs the clock to the phase comparator 252. Phase comparison unit 252
Compares the phase of the 8 KHz clock from the MPEG / ATM conversion unit 216 with the phase of the 8 KHz clock from the frequency divider 253, and outputs the comparison result to the VCO 251. That is, the phase of the 27 MHz clock output to the counter 214 is adjusted so as to synchronize with the network clock of the network 202.

【0052】図11に戻り、カウンタ214は、PLL回
路217からの27MHzのクロックを1/324000
0で分周して、カウントするとともに、そのカウント値
Nを同期情報処理部213に出力する。すなわち、この
カウンタ214は、ネットワーク202のネットワーク
クロックに同期したクロックをカウントする。
Returning to FIG. 11, the counter 214 counts the 27 MHz clock from the PLL circuit 217 to 1/324000.
It divides by 0, counts, and outputs the count value N to the synchronous information processing unit 213. That is, the counter 214 counts a clock synchronized with the network clock of the network 202.

【0053】次に、送信装置201のTSパケット同期部
211の動作を、図13のフローチャートを参照して説
明する。
Next, the operation of TS packet synchronization section 211 of transmitting apparatus 201 will be described with reference to the flowchart of FIG.

【0054】ステップS1において、TSパケット同期部
211は、入力されたMPEGトランスポートストリームパ
ケットのデータを1バイトごと読み取り、読み取った値
が、同期バイトと等しい47h(図10)であると判定
するまで待機する。読み取った1バイトの値が47hで
あると判定したとき、TSパケット同期部211は、ステ
ップS2に進み、47hを読み取った回数をカウントす
るカウンタiの値を1に初期設定する。
In step S1, the TS packet synchronization unit 211 reads the data of the input MPEG transport stream packet byte by byte, and determines that the read value is 47h (FIG. 10) equal to the synchronization byte. stand by. When determining that the value of the read one byte is 47h, the TS packet synchronization unit 211 proceeds to step S2 and initializes the value of a counter i for counting the number of times 47h is read to 1.

【0055】次に、ステップS3において、TSパケット
同期部211は、ステップS1で読み取った47hから
188バイト分離れたデータ(188バイト後のデー
タ)を読み取り、ステップS4において、それが47h
であるか否かを判定する。ステップS4において、ステ
ップS3で読み取ったデータが47hではないと判定し
た場合、TSパケット同期部211は、ステップS1に戻
り、それ以降の処理を実行する。一方、ステップS4に
おいて、読み取ったデータが47hであると判定した場
合、TSパケット同期部211は、ステップS5に進む。
Next, in step S3, the TS packet synchronizer 211 reads data (data after 188 bytes) separated by 188 bytes from 47h read in step S1.
Is determined. If it is determined in step S4 that the data read in step S3 is not 47h, the TS packet synchronization unit 211 returns to step S1 and executes the subsequent processing. On the other hand, if it is determined in step S4 that the read data is 47h, the TS packet synchronization unit 211 proceeds to step S5.

【0056】ステップS5において、TSパケット同期部
211は、カウンタiの値が5であるか否かを判定し、
その値が5ではないと判定した場合、ステップS6に進
み、カウンタiの値を1だけインクリメントし、ステッ
プS3に戻り、それ以降の処理を実行する。ステップS
5で、カウンタiの値が5とであると判定された場合、
すなわち、入力されたMPEGトランスポートストリームパ
ケットのデータから、188バイト毎に、5回連続して
47hが読み取られた場合、ステップS7に進む。
In step S5, the TS packet synchronizer 211 determines whether or not the value of the counter i is 5,
When it is determined that the value is not 5, the process proceeds to step S6, the value of the counter i is incremented by 1, and the process returns to step S3 to execute the subsequent processes. Step S
When it is determined at 5 that the value of the counter i is 5,
That is, when 47h is read five times consecutively every 188 bytes from the data of the input MPEG transport stream packet, the process proceeds to step S7.

【0057】ステップS7において、TSパケット同期部
211は、5回目に検出した47hを同期バイトとし、
すなわち、MPEGトランスポートストリームパケットの先
頭データとし、フレーム同期を確立する。なお、ステッ
プS7で、フレーム同期が確立される前に送信装置20
1に入力されたデータは、PCRパケット検出部212に
は供給されず、捨てられる。
In step S7, the TS packet synchronizer 211 sets 47h detected at the fifth time as a synchronization byte,
That is, frame synchronization is established using the data as the head data of the MPEG transport stream packet. In step S7, before the frame synchronization is established, the transmission device 20
The data input to 1 is not supplied to the PCR packet detection unit 212 and is discarded.

【0058】以上のようにして、フレーム同期が確立さ
れる。
As described above, frame synchronization is established.

【0059】次に、ステップS8において、TSパケット
同期部211は、カウンタiの値を1に初期設定し、ス
テップS9に進み、同期バイトとした47hから188
バイト分離れたデータを読み取り、ステップS10にお
いて、それが47hであるか否かを判定する。
Next, in step S8, the TS packet synchronizer 211 initializes the value of the counter i to 1 and proceeds to step S9, where the synchronization byte is converted from 47h to 188.
The byte-separated data is read, and in step S10, it is determined whether or not it is 47h.

【0060】ステップS10において、ステップS9で
読み取られたデータが47hではないと判定した場合、
TSパケット同期部211は、ステップS11に進み、カ
ウンタiの値が3であるか否かを判定し、その値が3は
ないと判定した場合、ステップS12に進み、カウンタ
iの値を1だけインクリメントし、ステップS9に戻
り、それ以降の処理を実行する。一方、ステップS11
で、カウンタiの値が3であると判定された場合、ステ
ップS1に戻り、それ以降の処理が実行される。すなわ
ち、ステップS9において読み取られたデータが3回連
続して47hではないと判定された場合、MPEGトランス
ポートストリームパケットのフレーム同期が取られてい
ないと判断され、ステップS1に戻り、同期確立のため
の処理が、はじめから行われる。なお、同期を確立する
ための処理がはじめから再度行われる前に入力された、
同期が取られていないと予想される、3×188バイト
分のデータは、PCRパケット検出部212に供給される
ことになる。
If it is determined in step S10 that the data read in step S9 is not 47h,
The TS packet synchronizer 211 proceeds to step S11, determines whether or not the value of the counter i is 3, and if it determines that the value is not 3, proceeds to step S12, and increases the value of the counter i by 1 The value is incremented, the process returns to step S9, and the subsequent processes are executed. On the other hand, step S11
When it is determined that the value of the counter i is 3, the process returns to step S1, and the subsequent processes are executed. That is, if it is determined in step S9 that the data read is not 47h three times in a row, it is determined that frame synchronization of the MPEG transport stream packet is not established, and the process returns to step S1 to establish synchronization. Is performed from the beginning. In addition, before the process for establishing synchronization is performed again from the beginning,
Data of 3 × 188 bytes, which is expected not to be synchronized, is supplied to the PCR packet detection unit 212.

【0061】ステップS10において、TSパケット同期
部211は、ステップS9で読み取ったデータが47h
であると判定した場合、ステップS9に戻り、それ以降
の処理を実行する。
In step S10, the TS packet synchronizer 211 stores the data read in step S9 for 47h.
If it is determined that the above is true, the process returns to step S9, and the subsequent processing is executed.

【0062】図14のフローチャートを参照して、同期
を確立するための他の方法について説明する。なお、こ
の例の場合、TSパケット同期部211は、図15に示す
ように、188個のメモリ領域i(=1,2,・・,1
88)からなる47hカウント部を内蔵しているものと
する。なお、初期状態において、47hカウント部の各
メモリ領域iには、値0が設定されている。
Another method for establishing synchronization will be described with reference to the flowchart in FIG. In this example, the TS packet synchronization unit 211 has 188 memory areas i (= 1, 2,..., 1) as shown in FIG.
88) is built in. In the initial state, a value 0 is set in each memory area i of the 47h counting section.

【0063】ステップS21において、TSパケット同期
部211は、入力されたMPEGトランスポートストリーム
パケットを1バイトごと読み出し、47hを検出するま
で待機し、47hを検出すると、ステップS22に進
み、カウンタiの値を1だけインクリメントし、ステッ
プS23において、カウンタiの値で特定されるメモリ
領域i(=1)の値を、1だけインクリメントする。
In step S21, the TS packet synchronizer 211 reads out the input MPEG transport stream packet byte by byte, waits until 47h is detected, and when 47h is detected, proceeds to step S22, in which the value of the counter i is read. Is incremented by one, and in step S23, the value of the memory area i (= 1) specified by the value of the counter i is incremented by one.

【0064】図16(B)には、ステップS21で47
hが検出された位置から188バイト毎に区分されたデ
ータ1乃至データ5が示され、図16(A)には、各デ
ータを構成するバイトと、それに対応する47hカウン
ト部のメモリ領域iの値が示されている。データ1の先
頭データ(47h)に対応する、メモリ領域1の値は、
1が設定されている。なお、図16中、xxhは、47
h以外のデータを示している。
In FIG. 16B, 47
Data 1 to Data 5 divided every 188 bytes from the position where h is detected are shown. FIG. 16A shows the bytes constituting each data and the corresponding 47h count area memory area i of the count section. Values are shown. The value of the memory area 1 corresponding to the first data (47h) of the data 1 is
1 is set. In FIG. 16, xxh is 47
Data other than h are shown.

【0065】次に、ステップS24において、TSパケッ
ト同期部211は、ステップS21で、検出した47h
の次の1バイト分のデータを読みとり、ステップS25
において、カウンタiの値を1だけインクリメントす
る。
Next, in step S24, the TS packet synchronizer 211 detects the 47h
The next one byte of data is read, and step S25
, The value of the counter i is incremented by one.

【0066】ステップS26において、TSパケット同期
部211は、ステップS24で読み取ったデータが47
hであるか否かを判定し、47hではないと判定した場
合、ステップS27に進む。
In step S 26, the TS packet synchronization unit 211 stores the data read in step S 24
h, and if it is not 47h, the process proceeds to step S27.

【0067】図16のデータ1の場合、47hの次の1
バイトのデータは、47hではないので(図中、”xx
h”で示されているデータであるので)、ステップS2
7に進み、TSパケット同期部211は、メモリ領域2に
0を設定する。
In the case of data 1 in FIG. 16, the next 1 after 47h
Since the byte data is not 47h (“xx
h ”), step S2
Proceeding to 7, the TS packet synchronization unit 211 sets 0 in the memory area 2.

【0068】次に、ステップS28において、TSパケッ
ト同期部211は、カウンタiの値が189であるか否
かを判定し、その値が189ではないと判定した場合、
ステップS24に戻り、それ以降の処理を実行する。
Next, in step S28, the TS packet synchronizer 211 determines whether or not the value of the counter i is 189, and when it is determined that the value is not 189,
Returning to step S24, the subsequent processing is executed.

【0069】ステップS26において、読み取られたデ
ータが47hであると判定された場合、ステップS29
に進み、TSパケット同期部211は、カウンタiの値で
特定されるメモリ領域iの値を1だけインクリメントす
る。データ1の先頭バイトからkバイト離れたデータ
は、47hであるので、メモリ領域kの値は、1だけイ
ンクリメントされる。
If it is determined in step S26 that the read data is 47h, the process proceeds to step S29.
The TS packet synchronization unit 211 increments the value of the memory area i specified by the value of the counter i by one. Since the data that is k bytes away from the first byte of data 1 is 47h, the value of the memory area k is incremented by one.

【0070】次に、ステップS30において、TSパケッ
ト同期部211は、ステップS29で、その値を1だけ
インクリメントしたメモリ領域iの値が5であるか否を
判定し、その値が5ではないと判定した場合、ステップ
S28に戻り、それ以降の処理を実行する。
Next, in step S30, the TS packet synchronizer 211 determines in step S29 whether or not the value of the memory area i whose value is incremented by 1 is 5, and if the value is not 5, If it is determined, the process returns to step S28, and the subsequent processes are executed.

【0071】ステップS28において、カウンタiの値
が189であると判定された場合、ステップS22に戻
り、TSパケット同期部211は、それ以降の処理を実行
するステップS30において、メモリ領域iの値が5で
あると判定された場合、ステップS31に進み、TSパケ
ット同期部211は、カウンタi=5のとき、ステップ
S24で読み取った47hを同期バイトとし、MPEGトラ
ンスポートストリームのフレーム同期を確立する。図1
6の例では、データ5の先頭データからkバイト離れた
47hが読み出されているとき、メモリ領域kの値が5
となるので、そのとき読み出されたデータ5の47hが
同期バイトとされ、フレーム同期が確立される。
If it is determined in step S28 that the value of the counter i is 189, the process returns to step S22, and the TS packet synchronizer 211 determines in step S30 to execute the subsequent processing that the value of the memory area i is If it is determined that the value is 5, the process proceeds to step S31, and when the counter i = 5, the TS packet synchronization unit 211 sets 47h read in step S24 as a synchronization byte and establishes frame synchronization of the MPEG transport stream. FIG.
In the example of No. 6, when 47h, which is k bytes away from the head data of the data 5, is being read, the value of the memory area k is 5
Therefore, 47h of the data 5 read at that time is set as a synchronization byte, and frame synchronization is established.

【0072】ステップS32乃至ステップS36の処理
は、図13のステップS8乃至ステップS12における
場合と同様であるので、その説明は省略する。
The processes in steps S32 to S36 are the same as those in steps S8 to S12 in FIG. 13, and a description thereof will be omitted.

【0073】次に、同期情報を算出する場合の同期情報
処理部213の処理手順を、図17のフローチャートを
参照して説明する。なお、この処理は、MPEGトランスポ
ートストリームに設定されたPID毎(最大8192個のプロ
グラム分のPID毎)に実行されるが、この例の場合、1
つのPIDに対応して実行される同期情報算出処理を例と
して説明する。
Next, the processing procedure of the synchronization information processing unit 213 when calculating the synchronization information will be described with reference to the flowchart of FIG. This processing is executed for each PID set for the MPEG transport stream (for each PID of up to 8192 programs).
The synchronization information calculation process executed corresponding to one PID will be described as an example.

【0074】TSパケット同期部211により、MPEGトラ
ンスポートストリームパケットのフレーム同期が確立さ
れている状態において、ステップS51において、PCR
パケット検出部212が、例えば、図18(A)に示す
ように、時刻P1において、フレーム同期確立後、送信
装置201に入力された最初のPCRパケット(第1番目
のPCRパケット)を検出し、PCRパケット検出信号を同期
情報処理部213に出力する。同期情報処理部213
は、PCRパケットが検出されたことを示すフラグをメモ
リ215に設定する。
In a state where the frame synchronization of the MPEG transport stream packet is established by the TS packet synchronization unit 211, in step S51, the PCR
For example, as shown in FIG. 18A, the packet detection unit 212 detects the first PCR packet (first PCR packet) input to the transmission device 201 after the frame synchronization is established at time P1, A PCR packet detection signal is output to synchronous information processing section 213. Synchronous information processing unit 213
Sets in the memory 215 a flag indicating that a PCR packet has been detected.

【0075】次に、ステップS52において、同期情報
処理部213は、オフセット値Oを算出する。具体的に
は、はじめに、同期情報処理部213は、第1番目のPC
RパケットのPCR値E1(図18(C))を取得し、それ
を基準クロック値B(図18(B))とする。なお、こ
のとき、同期情報処理部213は、カウンタ214に対
して、図18(B)に示すように、カウント値Nが基準
クロック値Bとなるタイミング(時刻t0(図18
(A))でカウント値Nのリセットを指令する。次に、
同期情報処理部213は、ステップS51でPCRパケッ
ト検出信号が入力されたときの、カウンタ214から供
給されたカウント値N1(図18(B))を参照点とし
て保持し、それを基準クロック値Bとともに、下記の式
(1)に代入し、オフセット値Oを算出する。 オフセット値O=PCR値E1(=基準クロック値B)−カウント値N1 ・・(1)
Next, in step S52, the synchronous information processing section 213 calculates an offset value O. Specifically, first, the synchronous information processing unit 213 sends the first PC
The PCR value E1 (FIG. 18 (C)) of the R packet is acquired, and is set as a reference clock value B (FIG. 18 (B)). At this time, the synchronous information processing unit 213 instructs the counter 214 at the timing when the count value N becomes the reference clock value B as shown in FIG.
In (A)), a command to reset the count value N is issued. next,
The synchronization information processing unit 213 holds the count value N1 (FIG. 18B) supplied from the counter 214 when the PCR packet detection signal is input in step S51 as a reference point, and uses it as the reference clock value B At the same time, the offset value O is calculated by substituting into the following equation (1). Offset value O = PCR value E1 (= reference clock value B) -count value N1 (1)

【0076】ステップS53において、同期情報処理部
213は、基準クロック値Bおよびオフセット値Oのそ
れぞれをメモリ215に記憶させる。
In step S53, the synchronization information processing section 213 stores the reference clock value B and the offset value O in the memory 215.

【0077】次に、ステップS54において、同期情報
処理部213は、カウンタ214からのカウント値Nが
3240000を示すまでに、PCRパケット検出信号
が、PCRパケット検出部212から入力されたか否かを
判定し、それまでにPCRパケット検出信号が入力された
と判定した場合、ステップS55に進む。この例の場
合、図18(A),(B)に示すように、ステップS5
2でカウンタ214のカウント値Nがリセットされてか
ら(時刻t0)、3240000クロックのカウントが
完了するとき(時刻t1(図18(A))までに、第2
番目のPCRパケットが検出されるので、ステップS55
に進む。なお、PCRパケットが入力されていないとき、
同期情報処理部213は、PCRパケットが検出されたこ
とを示すフラグを取り消す。
Next, in step S54, the synchronous information processing section 213 determines whether or not the PCR packet detection signal has been input from the PCR packet detection section 212 before the count value N from the counter 214 indicates 3240000. However, if it is determined that a PCR packet detection signal has been input by then, the process proceeds to step S55. In the case of this example, as shown in FIGS.
After the count value N of the counter 214 is reset at 2 (time t0), when the counting of 324,000 clocks is completed (at time t1 (FIG. 18A)), the second
Since the second PCR packet is detected, step S55
Proceed to. When no PCR packet is input,
The synchronous information processing unit 213 cancels the flag indicating that the PCR packet has been detected.

【0078】ステップS55において、同期情報処理部
213は、PCRパケット(この場合、第2番目のPCRパケ
ット)のヘッダ部の同期バイトを47hから−128に
変更する。なお、ここでの処理の意味は、後述する。
In step S55, the synchronization information processing section 213 changes the synchronization byte in the header of the PCR packet (in this case, the second PCR packet) from 47h to -128. The meaning of the processing here will be described later.

【0079】ステップS54において、カウンタ214
のカウント値Nが3240000になるまでの間にPCR
パケットが検出されなかったと判定した場合、同期情報
処理部213は、カウンタ214に対して、カウント値
N=3240000となるタイミングで、カウント値N
のリセットを指令し、その後、ステップS56に進む。
In step S54, the counter 214
PCR until the count value N becomes 3240000
If it is determined that no packet has been detected, the synchronous information processing unit 213 sends the count value N to the counter 214 at the timing when the count value N = 3240000.
, And then the process proceeds to step S56.

【0080】ステップS56において、同期情報処理部
213は、PCRパケットが検出されるまで(PCRパケット
検出信号が入力されるまで)待機する。なお、この例の
場合、カウンタ214においては、1/3240000
に分周された27MHzのクロックがカウントされている
ので、3240000クロック分のカウントが完了する
のに、0.12秒(=3240000/2700000
0)を要する。すなわち、MPEG-2方式によれば、PCRパ
ケットは、少なくとも0.1秒に1つの割合で伝送される
ようになされているので、ステップS54でカウント値
Nの値がリセットされてから(例えば、図18(A)の
時刻t1)、3240000クロックのカウントが完了
する(例えば、図18(A)の時刻t2)までの間に
は、必ず1つのPCRパケット(この例の場合、第3番目
のPCRパケット)が検出される。
In step S56, the synchronous information processing section 213 waits until a PCR packet is detected (until a PCR packet detection signal is input). In the case of this example, the counter 214 has 1/3240000
Since the clock of 27 MHz divided into 2 is counted, it takes 0.12 seconds (= 3240000/27000000) to complete the counting of 324,000 clocks.
0) is required. That is, according to the MPEG-2 system, the PCR packet is transmitted at least at a rate of one every 0.1 seconds. Therefore, after the value of the count value N is reset in step S54 (see, for example, FIG. 18). Until the counting of 324,000 clocks is completed (for example, time t1 in (A)) (for example, time t2 in FIG. 18A), one PCR packet (in this case, the third PCR packet in this example) is always required. ) Is detected.

【0081】ステップS56において、PCRパケット
(この例の場合、第3番目のPCRパケット)が検出され
たとき、同期情報処理部213は、ステップS57に進
み、第3番目のPCRパケットに書き込む同期情報を算出
する。具体的には、同期情報処理部213は、到着した
第3番目のPCRパケットのPCR値E3(図18(C))を
取得する。次に、同期情報処理部213は、第3番目の
PCRパケットが検出されたときのカウンタ値N3(図1
8(B))を保持する。さらに、同期情報処理部213
は、PCR値E1、PCR値E3、カウント値N3、および基
準クロック値Bを、下記の式(2)に代入し、同期情報
を算出する。
In step S56, when a PCR packet (third PCR packet in this example) is detected, the synchronization information processing section 213 proceeds to step S57, where the synchronization information to be written in the third PCR packet is determined. Is calculated. Specifically, the synchronization information processing unit 213 acquires the PCR value E3 (FIG. 18C) of the third PCR packet that has arrived. Next, the synchronization information processing unit 213
When a PCR packet is detected, the counter value N3 (FIG. 1)
8 (B)). Further, the synchronous information processing unit 213
Substitutes the PCR value E1, the PCR value E3, the count value N3, and the reference clock value B into the following equation (2) to calculate synchronization information.

【0082】 同期情報=((PCR値E3−PCR値E1)−(カウント値N3−基準クロック値 B))×3240000÷(カウント値N3−基準クロック値B))・・(2)Synchronization information = ((PCR value E3−PCR value E1) − (count value N3−reference clock value B)) × 3240000 ÷ (count value N3−reference clock value B)) (2)

【0083】すなわち、この同期情報は、(カウント値
N3−基準クロック値B)分のクロックがカウントされ
る間に生じる、PCR値E3(システムエンコーダのシス
テムクロックのカウント値)とカウント値N3(ネット
ワーク202のネットワーククロックと同期するPLL回
路217により発生されたクロックのカウント値)との
差(α)から、第3番目のPCRパケットが、カウント値
Nが3240000となる時点(時刻t1)に送信装置
201に到着されるものとした場合のPCR値Eとカウン
タ値N(=3240000)との差(β)を表すもので
る。
That is, this synchronization information is obtained by counting the PCR value E3 (the count value of the system clock of the system encoder) and the count value N3 (the network value) while the clock of (count value N3-reference clock value B) is counted. From the difference (α) from the count value of the clock generated by the PLL circuit 217 that is synchronized with the network clock of 202, the third PCR packet is transmitted at the time when the count value N becomes 3240000 (time t1). It represents the difference (β) between the PCR value E and the counter value N (= 3240000) when it arrives at 201.

【0084】次に、ステップS58において、同期情報
処理部213は、第3番目のPCRパケットに、ステップ
S57で算出した同期情報を書き込む。具体的には、同
期情報処理部213は、第3番目のPCRパケットのヘッ
ダ部の同期バイト(47h)を、算出した同期情報に変
更する。
Next, in step S58, the synchronization information processing section 213 writes the synchronization information calculated in step S57 into the third PCR packet. Specifically, the synchronization information processing unit 213 changes the synchronization byte (47h) in the header of the third PCR packet to the calculated synchronization information.

【0085】同期情報処理部213は、ステップS55
またはステップS58で同期バイトを変更した後、ステ
ップS59に進み、その値から39hを差し引く。この
ように、39hの値を差し引くことより、例えば、同期
情報が含まれていないPCRパケットの同期バイト(ステ
ップS55で、−128に変更された同期バイト)は、
47hとなる。このことより、受信装置102におい
て、図13または図14のフローチャートで説明した同
期処理により、MPEGトランスポートストリームパケット
の同期が確立されるようになる。
The synchronous information processing section 213 determines in step S55
Alternatively, after changing the synchronization byte in step S58, the process proceeds to step S59, and 39h is subtracted from the value. As described above, by subtracting the value of 39h, for example, the synchronization byte of the PCR packet not including the synchronization information (the synchronization byte changed to -128 in step S55)
47h. Accordingly, in the receiving apparatus 102, the synchronization of the MPEG transport stream packet is established by the synchronization processing described in the flowchart of FIG. 13 or FIG.

【0086】次に、ステップS60において、同期情報
処理部213は、3240000(クロック)に、ステ
ップS57で算出した同期情報を加算して、それを新た
な基準クロック値Bとし、またステップS52で算出し
たオフセット値Oに同期情報を加算して、それを新たな
オフセット値Oして、メモリ215に上書きする。すな
わち、次のPCRパケットが入力されたとき、この変更さ
れた基準クロック値Bおよびオフセット値Oに基づい
て、同期情報が算出される。
Next, in step S60, the synchronization information processing section 213 adds the synchronization information calculated in step S57 to 320000 (clock), sets it as a new reference clock value B, and calculates in step S52. The synchronization information is added to the offset value O that has been set, and the new offset value O is added to the synchronization information. That is, when the next PCR packet is input, the synchronization information is calculated based on the changed reference clock value B and offset value O.

【0087】以上のような処理を同期情報処理部213
が実行することより、メモリ215には、基準クロック
値B(42ビット)、オフセット値O(42ビット)、
およびフラグ(1ビット)が、プログラムのPIDに対応
して記憶される。
The above processing is performed by the synchronous information processing unit 213.
Is executed, the reference clock value B (42 bits), the offset value O (42 bits),
And a flag (1 bit) are stored corresponding to the PID of the program.

【0088】また、以上においては、図18に示したよ
うに、時刻t0と時刻t1(図18(A))との間に、
第2番目のPCRパケットが検出される(送信装置201
に入力される)場合を例として説明したが、例えば、図
19に示すように、その間に、第3番目のPCRパケット
が入力されるような場合であっても同様に処理される。
すなわち、この場合、第2番目のPCRパケットと第3番
目のPCRパケットのヘッダ部の同期バイトの値は47h
(−128から39hが差し引かれた47h)が設定さ
れ、そして第4番目のPCRパケットには、ステップS5
7における処理で算出される同期情報が、その同期バイ
トに書き込まれる。
In the above, as shown in FIG. 18, the time between time t0 and time t1 (FIG. 18A)
The second PCR packet is detected (transmitting device 201
Although the case where the third PCR packet is input during that time as shown in FIG. 19 is similarly processed, for example, as shown in FIG.
That is, in this case, the value of the synchronization byte in the header part of the second PCR packet and the third PCR packet is 47h.
(47h obtained by subtracting 39h from -128) is set, and the fourth PCR packet includes step S5.
The synchronization information calculated in the process in 7 is written to the synchronization byte.

【0089】以上においては、1のPIDに対応して(1
のプログラムに対応して)、同期情報が算出される場合
を例として説明したが、図20に示すように、複数のプ
ログラム(2つのプログラム)に対応する場合も同様
に、上述した方法で、それぞれの同期情報が算出され、
所定のPCRパケットに書き込まれる。
In the above description, (1)
20), the case where the synchronization information is calculated has been described as an example. However, as shown in FIG. 20, in the case where a plurality of programs (two programs) are supported, Each synchronization information is calculated,
Written in a predetermined PCR packet.

【0090】図20(A)は、図18(B)と同じ図で
あり、図20(B)は、他のプログラムに対しての同期
情報作成処理を説明するタイミングチャートである。図
20(B)の場合、カウント値N10からオフセット値O
1だけ離れた地点が基準クロック値Bとされ、上述した
同期情報作成処理が行われる。なお、この場合のオフセ
ット値Oおよび基準クロックBは、メモリ215に、プ
ログラムのPIDに対応して記憶される。
FIG. 20 (A) is the same as FIG. 18 (B), and FIG. 20 (B) is a timing chart for explaining the synchronization information creation processing for another program. In the case of FIG. 20B, the offset value O is calculated from the count value N10.
A point separated by 1 is set as the reference clock value B, and the above-described synchronization information creation processing is performed. In this case, the offset value O and the reference clock B are stored in the memory 215 corresponding to the PID of the program.

【0091】次に、同期情報の情報量について説明す
る。MPEG-2規格によれば、システムクロックとして用い
られる27MHzのクロック(例えば、システムエンコー
ダのシステムクロックや送信装置201のPLL回路21
7により生成されるクロック(以下、クロックSと称す
る))には、それぞれ+/-30ppm(parts per million )
の偏差が許容されている。すなわち、システムエンコー
ダのクロックおよびクロックSの周波数は、(27MHz
−810(=27×106×30×10-6)Hz)乃至
(27MHz+810Hz)の範囲で変動する。
Next, the amount of synchronization information will be described. According to the MPEG-2 standard, a 27 MHz clock used as a system clock (for example, the system clock of a system encoder or the PLL circuit 21 of the transmission device 201)
+/− 30 ppm (parts per million)
Deviation is allowed. That is, the clock of the system encoder and the frequency of the clock S are (27 MHz
It fluctuates in a range from −810 (= 27 × 10 6 × 30 × 10 −6 ) Hz) to (27 MHz + 810 Hz).

【0092】つまり、両者の周波数のずれは、図21に
示すように、システムエンコーダのシステムクロックの
周波数が27MHz+810Hz(図21(A))で、か
つ、クロックSの周波数が27MHz−810Hz(図21
(C))であるとき、また逆に、図22に示すように、
システムエンコーダのシステムクロックの周波数が27
MHz−810Hz(図22(A))で、かつ、クロックS
の周波数が27MHz+810Hzであるとき(図22
(C))に最大となる。
That is, as shown in FIG. 21, the difference between the two frequencies is that the frequency of the system clock of the system encoder is 27 MHz + 810 Hz (FIG. 21A), and the frequency of the clock S is 27 MHz-810 Hz (FIG. 21).
(C)), and conversely, as shown in FIG.
If the system clock frequency of the system encoder is 27
MHz-810 Hz (FIG. 22A) and the clock S
Is 27 MHz + 810 Hz (see FIG. 22).
(C)).

【0093】そこで、図21の場合における各クロック
の1秒間にカウントされるクロック数を求めると、想定
する真の27 MHzの場合、27×106個であるのに対し
て(図21(B))、図21(A)のシステムエンコー
ダの場合は、(27×106+810)個となり、図2
1(C)のクロックSの場合は、(27×106−81
0)個となる。また、同様に図22の場合における各ク
ロックの1秒間にカウントされるクロック数を求める
と、図22(A)のシステムエンコーダのシステムクロ
ック場合、(27×106−810)個となり、図22
(C)のクロックSの場合、(27×106+810)
個となる。すなわち、両者の周波数のずれが最大となる
ときの、1秒間でカウントされるクロック数の差は、1
620個となる。 (27×106+810)−(27×106−810)=
1620
Therefore, when the number of clocks counted in one second of each clock in the case of FIG. 21 is obtained, it is 27 × 10 6 in the case of the assumed true 27 MHz (see FIG. )) And (27 × 10 6 +810) in the case of the system encoder of FIG.
In the case of the clock S of 1 (C), (27 × 10 6 −81
0). Similarly, when the number of clocks counted in one second of each clock in the case of FIG. 22 is obtained, in the case of the system clock of the system encoder of FIG. 22 (A), it becomes (27 × 10 6 -810).
In the case of the clock S of (C), (27 × 10 6 +810)
Individual. That is, when the frequency difference between the two becomes maximum, the difference in the number of clocks counted in one second is 1
620. (27 × 10 6 +810) − (27 × 10 6 −810) =
1620

【0094】ところで、上述した同期情報も、システム
エンコーダのシステムクロックとクロックSのずれ(PC
Rパケットの送信装置201への到着間隔の間でカウン
トされるクロック数の差)を示すものであるが、同期情
報は、クロックSのカウント値NをPCRの時間軸に対応
させることで算出されている。すなわち、同期情報の最
大値も、PCRの時間軸に対応させて求める必要がある。
また、同期情報は、この例の場合、0.12(=324000/27000
000)秒間に、少なくとも1つ以上、MPEGトランスポート
ストリームパケットに組み込まれているので、同期情報
は、最大0.12秒間のずれ(0.12秒間にカウントされるク
ロック数の差)を示すことができる必要がある。つま
り、同期情報は、図21の状態のとき、プラス側で最大
となり、その値は、下記に示すように、195となる。 ((1+30ppm)/(1-30ppm)-1)×27MHz×0.12s=195
By the way, the synchronization information described above is also used for the difference between the system clock of the system encoder and the clock S (PC
(The difference in the number of clocks counted between the arrival intervals of the R packet to the transmitting device 201), and the synchronization information is calculated by associating the count value N of the clock S with the time axis of the PCR. ing. That is, the maximum value of the synchronization information also needs to be obtained in accordance with the time axis of the PCR.
In this case, the synchronization information is 0.12 (= 324000/27000
Since 000) seconds, at least one or more are embedded in the MPEG transport stream packet, the synchronization information needs to be able to indicate a maximum of 0.12 second shift (difference in the number of clocks counted in 0.12 seconds). is there. That is, in the state shown in FIG. 21, the synchronization information has the maximum value on the plus side, and its value is 195 as shown below. ((1 + 30ppm) / (1-30ppm) -1) × 27MHz × 0.12s = 195

【0095】上記式は、図21(C)のクロックSの周
期(1/(27MHz−810Hz))(時間)を、図21
(A)のシステムエンコーダのシステムクロックの周期
(1/(27MHz+810Hz))で正規化し(PCRの時間
軸に対応させ)、正規化されたそのクロックSの時間
(PCRの時間軸に対応するクロックSの時間)と、PCRの
時間(1単位)との差を求め、求めたその差に基づい
て、0.12秒間に発生する両者のクロックのずれをクロッ
ク数で示したものである。
The above equation shows the period (1 / (27 MHz-810 Hz)) (time) of the clock S in FIG.
(A) is normalized (corresponding to the time axis of PCR) by the system clock cycle (1 / (27 MHz + 810 Hz)) of the system encoder, and the time of the normalized clock S (clock S corresponding to the time axis of PCR) And the time of PCR (1 unit) is calculated, and based on the calculated difference, the difference between the clocks generated in 0.12 seconds is indicated by the number of clocks.

【0096】一方、図22の状態のとき、同期情報は、
マイナス側で最大となり、その値は、下記に示すよう
に、-195となる。 ((1-30ppm)/(1+30ppm)-1)×27MHz×0.12s=-195 すなわち、以上のことから、同期情報は、下記に示す範
囲の値を取り得る。 -195<=同期情報=<195
On the other hand, in the state shown in FIG. 22, the synchronization information is
It becomes the maximum on the minus side, and its value is -195, as shown below. ((1-30 ppm) / (1 + 30 ppm) -1) × 27 MHz × 0.12s = −195 That is, from the above, the synchronization information can take a value in the following range. -195 <= synchronization information = <195

【0097】このことより、同期情報を表すには、9ビ
ットが必要となるが(バイト単位で容量を確保するもの
とすると、2バイトが必要となるが)、1ビット分削除
し、8ビットで示しても、+/-1クロック分の誤差が発
生するだけで、MPEG-2方式のジッタの規格を越えない。
MPEG-2方式におけるジッタの規格は、+/-500nsであり、
それをクロック数に変換すると、+/-13.5(=+/-500nsec
×27MHz)クロックである。すなわち、+/-1クロック分
の誤差は、その範囲内であり、結局、同期情報は、8ビ
ット(1バイト(-128乃至128))で示すことができる。
Thus, 9 bits are required to represent the synchronization information (although 2 bytes are required if the capacity is secured in byte units), one bit is deleted and 8 bits are deleted. In this case, only an error of +/- 1 clock is generated and the jitter does not exceed the MPEG-2 standard.
The standard of the jitter in the MPEG-2 system is +/- 500 ns,
Converting it to the number of clocks, +/- 13.5 (= +/- 500nsec
× 27MHz) clock. That is, the error of +/- 1 clock is within the range, and eventually, the synchronization information can be represented by 8 bits (1 byte (-128 to 128)).

【0098】この例の場合、同期情報は、−125乃至
125のうちのいずれかの値とし、その他の値には、図
23に示すような意味付けを行って利用する。例えば、
−128は、同期情報が設定されていないことを意味す
る。すなわち、ステップS52で同期バイトが−128
とされたが、これは、そのTSパケットには、同期情報が
書き込まれないとを示すためである。
In the case of this example, the synchronization information is set to one of values from -125 to 125, and the other values are used after giving meanings as shown in FIG. For example,
-128 means that the synchronization information is not set. That is, in step S52, the synchronization byte is -128.
This is to indicate that no synchronization information is written in the TS packet.

【0099】−127は、例えばPCRパケットに大きな
ジッタが発生し、入力されたPCRパケットの間隔が大き
く、同期情報の値が−125乃至125の範囲外とされ
るような場合などの、送信装置201において何らかの
エラーが発生したことを意味する。−126、126、
および127は、リザーブの値である。
[0099] The transmission device -127 indicates a case where a large jitter occurs in the PCR packet, the interval between the input PCR packets is large, and the value of the synchronization information is out of the range of -125 to 125. At 201, it means that some error has occurred. −126, 126,
And 127 are reserve values.

【0100】図24は、受信装置203の構成例を表し
ている。ATM/MPEG変換部301は、ネットワーク20
2を介して伝送されてきた、送信装置201からのATM
セルをMPEGトランスポートストリームパケットに変換
し、TSパケット同期部304に出力する。ATM/MPEG変
換部301はまた、受信したATMセルに基づいてネット
ワーク202のネットワーククロックに同期した8KHz
のクロックを生成し、PLL回路302に出力する。PLL回
路302は、図11のPLL回路217と同様の構成(位
相比較回路を有している)を有するので、その詳細な説
明は省略するが、ATM/MPEG変換部301から供給され
たクロックと同期した、27MHzのクロックを生成し、
カウンタ303に出力する。
FIG. 24 shows a configuration example of the receiving device 203. The ATM / MPEG converter 301 is connected to the network 20
ATM transmitted from the transmission device 201 transmitted through the
The cell is converted to an MPEG transport stream packet and output to the TS packet synchronization unit 304. The ATM / MPEG conversion unit 301 also controls the 8 KHz synchronized with the network clock of the network 202 based on the received ATM cells.
And outputs it to the PLL circuit 302. Since the PLL circuit 302 has the same configuration (having a phase comparison circuit) as the PLL circuit 217 in FIG. 11, detailed description thereof will be omitted, but the clock supplied from the ATM / MPEG converter 301 is Generate a synchronized 27MHz clock,
Output to the counter 303.

【0101】カウンタ303は、PLL回路302からの
27MHzのクロックを1/3240000で分周し、そ
れをカウントするとともに、そのカウント値MをPCR書
換部306に出力する。
The counter 303 divides the 27 MHz clock from the PLL circuit 302 by 1/3240000, counts it, and outputs the count value M to the PCR rewriting unit 306.

【0102】TSパケット同期部304は、図11のTSパ
ケット同期部211と同様に、図13または図14に示
したフローチャートの処理に従って、ATM/MPEG変換部
301からのMPEGトランスポートストリームパケットの
同期を確立し、PCRパケット検出部305に出力する。
The TS packet synchronizer 304 synchronizes the MPEG transport stream packet from the ATM / MPEG converter 301 in accordance with the processing of the flowchart shown in FIG. 13 or FIG. 14, similarly to the TS packet synchronizer 211 of FIG. Is established and output to the PCR packet detection unit 305.

【0103】なお、図14のフローチャートに示した処
理により、フレーム同期を確立する場合、TSパケット同
期部304は、47hカウント部(図15)を利用する
が、同期情報が書き込まれたPCRパケットが入力された
とき、47hカウント部のメモリ領域iの値をリセット
しないようにすることもできる。図25を参照して、具
体的に説明する。
When frame synchronization is established by the processing shown in the flowchart of FIG. 14, the TS packet synchronizer 304 uses the 47h count unit (FIG. 15). When input, the value of the memory area i of the 47h count unit may not be reset. A specific description is given with reference to FIG.

【0104】データ11およびデータ12のデータに対
応して、メモリ領域kの値が2とされている状態におい
て、データ13の先頭データからkバイト離れた、4A
h乃至44hのいずれかの値が読み取られたとき、メモ
リ領域kの値は0にリセットされない(値2が保持され
る)。これは、4Ah乃至44hのいずれかの値を、同
期情報が含まれるPCRパケットの先頭データであると
し、フレーム同期が取られているとしたためのである。
なお、図25中、xxhは、47h、4Ah乃至44h
以外のデータを示している。
In a state where the value of the memory area k is set to 2 corresponding to the data of the data 11 and the data 12, 4A which is k bytes away from the head data of the data 13
When any of the values h to 44h is read, the value of the memory area k is not reset to 0 (the value 2 is held). This is because any one of the values 4Ah to 44h is the first data of the PCR packet including the synchronization information, and the frame synchronization is established.
In FIG. 25, xxh is 47h, 4Ah to 44h.
Other data are shown.

【0105】PCRパケット検出部305は、入力されたM
PEGトランスポートストリームパケットのヘッダ部およ
びアダプテーションフィールド部を参照し、PCRパケッ
ト条件が設定されているか否かを判定し、PCRパケット
条件が設定されていると判定した場合、PCRパケット検
出信号をPCR書換部306に出力する。
The PCR packet detector 305 determines whether the input M
Referring to the header and adaptation field of the PEG transport stream packet, it is determined whether or not the PCR packet condition is set.If it is determined that the PCR packet condition is set, the PCR packet detection signal is rewritten by the PCR. Output to the unit 306.

【0106】PCR書換部306は、入力されるPCRパケッ
ト(同期情報が書き込まれている)から同期情報を読み
出すなどの処理を行い、新たなPCR値Dを算出し、PCR値
DをPCRパケットに書き込む(書き換える)。なお、PCR
書換部306における処理の詳細は、後述する。メモリ
307は、PCR書換部306が、PCR値Dを算出するのに
必要なデータを記憶している。
The PCR rewriting unit 306 performs processing such as reading synchronization information from the input PCR packet (in which synchronization information is written), calculates a new PCR value D, and converts the PCR value D into a PCR packet. Write (rewrite). In addition, PCR
Details of the processing in the rewriting unit 306 will be described later. The memory 307 stores data necessary for the PCR rewriting unit 306 to calculate the PCR value D.

【0107】次に、PCRパケットのPCR値を書き換える場
合のPCR書換部306の動作を、図26のフローチャー
トを参照して説明する。TSパケット同期部304におい
て、MPEGトランスポートストリームパケットの同期が取
られている状態において、ステップS71において、PC
R書換部306は、オフセット値Dを決定する。この処
理の詳細は、図27のフローチャートに示されている。
すなわち、ステップS81において、PCR書換部306
は、フレーム同期確立後、最初に入力されるPCRパケッ
トのPCR値Eを取得し、それを基準クロック値Bとし、
そのPCRパケットが入力されたときのカウンタ303か
らのカウンタ値Mから、その基準クロック値Bを減算
し、オフセット値Wを算出する。PCR書換部306は、
基準クロック値Bおよびオフセット値Wを、メモリ30
7に記憶させる。
Next, the operation of the PCR rewriting unit 306 when rewriting the PCR value of the PCR packet will be described with reference to the flowchart of FIG. In the state where the MPEG transport stream packets are synchronized in the TS packet synchronization unit 304, in step S71, the PC
The R rewriting unit 306 determines the offset value D. Details of this processing are shown in the flowchart of FIG.
That is, in step S81, the PCR rewriting unit 306
Obtains the PCR value E of the first input PCR packet after the frame synchronization is established, and uses it as the reference clock value B,
An offset value W is calculated by subtracting the reference clock value B from the counter value M from the counter 303 when the PCR packet is input. The PCR rewriting unit 306
The reference clock value B and the offset value W are stored in the memory 30.
7 is stored.

【0108】次に、ステップS82において、PCR書換
部306は、カウンタjの値に1を設定し、ステップS
83において、次に入力されたPCRパケットのPCR値Eを
読み取り、基準クロック値Bとの差ΔEを算出する。次
に、ステップS84において、PCR書換部306は、Δ
Eが所定のリミット値Lより大きいか否かを判定し、大
きくないと判定した場合、ステップS85に進み、それ
をメモリ307に記憶させる。一方、ステップS84に
おいて、ΔEがリミット値Lより大きいと判定された場
合、ステップS83に戻る。
Next, in step S82, the PCR rewriting section 306 sets 1 to the value of the counter j, and sets
At 83, the PCR value E of the next input PCR packet is read, and the difference ΔE from the reference clock value B is calculated. Next, in step S84, the PCR rewriting unit 306
It is determined whether or not E is greater than a predetermined limit value L. If it is not, the process proceeds to step S85, and the value is stored in the memory 307. On the other hand, when it is determined in step S84 that ΔE is larger than the limit value L, the process returns to step S83.

【0109】ステップS86において、PCR書換部30
6は、カウンタjの値が7になったか否かを判定し、そ
の値が7ではないと判定した場合、ステップS87に進
み、カウンタjの値を1だけインクリメントして、ステ
ップS83に戻り、次に入力されてくるPCRパケットに
対して、それ以降の処理を実行する。
At step S86, the PCR rewriting unit 30
6, it is determined whether or not the value of the counter j has become 7, and when it is determined that the value is not 7, the process proceeds to step S87, the value of the counter j is incremented by 1, and the process returns to step S83. The subsequent processing is performed on the next input PCR packet.

【0110】ステップS86において、カウンタjの値
が7であると判定された場合、すなわち、図28に示す
ように、7つのΔE1乃至ΔE7が算出され、それらが
メモリ307に記憶されたとき、ステップS88に進
み、PCR書換部306は、式(3)に示すように、ΔE
の合計値を7で割り、ΔEの平均値を算出し、メモリ3
07に記憶させる。 ΔEの平均値=(ΔE1+ΔE2+ΔE3+ΔE4+ΔE5+ΔE6+ΔE7 )/7 ・・・(3)
In step S86, when it is determined that the value of the counter j is 7, that is, as shown in FIG. 28, when seven ΔE1 to ΔE7 are calculated and stored in the memory 307, Proceeding to S88, the PCR rewriting unit 306 sets ΔE as shown in Expression (3).
Is divided by 7 to calculate the average value of ΔE,
07. Average value of ΔE = (ΔE1 + ΔE2 + ΔE3 + ΔE4 + ΔE5 + ΔE6 + ΔE7) / 7 (3)

【0111】次に、ステップS89において、PCR書換
部306は、式(4)に従い、オフセット値Wに、ΔE
の平均値を加算して、オフセット値Dを算出する(図2
8)。 オフセット値D=オフセット値W+ΔEの平均値 ・・・(4)
Next, in step S89, the PCR rewriting unit 306 adds ΔE to the offset value W according to the equation (4).
The offset value D is calculated by adding the average value of
8). Offset value D = Average value of offset value W + ΔE (4)

【0112】このように、オフセット値Dが算出された
とき、処理は終了され、図26のステップS72に進
む。なお、オフセット値Dが算出されたタイミング(図
29の例では、時刻t10)で、PCR書換部306は、
オフセット値Dが算出されたことを示す所定のフラグ
(1ビット)をメモリ307にセットする。また、PCR
書換部306は、同じタイミングで、カウンタ303に
対して、カウント値Mのリセットを指令する。
As described above, when the offset value D has been calculated, the processing is terminated, and the flow advances to step S72 in FIG. At the timing when the offset value D is calculated (time t10 in the example of FIG. 29), the PCR rewriting unit 306
A predetermined flag (1 bit) indicating that the offset value D has been calculated is set in the memory 307. In addition, PCR
The rewriting unit 306 instructs the counter 303 to reset the count value M at the same timing.

【0113】ステップS72において、PCR書換部30
6は、同期情報が書き込まれたPCRパケットが入力され
るまで待機し、それが入力されたとき、ステップS73
に進み、カウンタ303が、ステップS71でリセット
されてから、3240000クロック分のカウントを完
了したか否かを判定し、そのカウントを完了していない
と判定した場合、ステップS74に進む。ここでの第1
番目のPCRパケットは、送信装置201の説明において
示された第1番目のPCRパケットとは、別のパケットで
ある。
At step S72, the PCR rewriting unit 30
6 waits until a PCR packet in which the synchronization information is written is input, and when it is input, step S73
After the counter 303 is reset in step S71, it is determined whether or not 320000 clocks have been counted. If it is determined that the count has not been completed, the flow proceeds to step S74. The first here
The second PCR packet is different from the first PCR packet shown in the description of the transmitting device 201.

【0114】ステップS74において、PCR書換部30
6は、PCR値Dを算出する。図29を参照して説明する
が、ステップS71でカウント値Mがリセットされてか
ら、340000クロック分のカウントが完了するまで
に、同期情報が書き込まれたPCRパケット(第1番目のP
CRパケット)が入力されたものとする。そこで、PCR書
換部306は、到着した第1番目のPCRパケットの同期
情報を取得する。次に、PCR書換部306は、第1番目
のPCRパケットが入力されたときの、カウンタ303か
らのカウンタ値M1(図29(B))を保持する。そし
て、PCR書換部306は、カウント値M1、オフセット
値D、同期情報、および基準クロック値Bを、式(5)
に代入して、PCR値Dを算出する。 PCR値D=(カウント値N1+オフセット値D+同期情報×(カウント値N1 −基準クロックB)/3240000 ・・・(5)
At step S74, the PCR rewriting unit 30
6 calculates the PCR value D. As will be described with reference to FIG. 29, from the reset of the count value M in step S71 to the completion of the counting for 340000 clocks, the PCR packet in which the synchronization information is written (the first P packet).
CR packet) has been input. Therefore, the PCR rewriting unit 306 acquires the synchronization information of the first arrived PCR packet. Next, the PCR rewriting unit 306 holds the counter value M1 (FIG. 29B) from the counter 303 when the first PCR packet is input. Then, the PCR rewriting unit 306 converts the count value M1, the offset value D, the synchronization information, and the reference clock value B into Expression (5).
To calculate the PCR value D. PCR value D = (count value N1 + offset value D + synchronization information × (count value N1−reference clock B)) / 3240000 (5)

【0115】次に、ステップS75において、PCR書換
部306は、第1番目のPCRパケットのPCR値E1を、算
出したPCR値Dに書き換え、図示せぬデコーダに出力す
る。その後処理は終了する。
Next, in step S75, the PCR rewriting unit 306 rewrites the PCR value E1 of the first PCR packet with the calculated PCR value D, and outputs it to a decoder (not shown). Thereafter, the process ends.

【0116】ステップS73において、3240000
クロック分のカウントが完了していたと判定された場
合、すなわち、図30に示すように、3240000ク
ロック分のカウントが完了してから、第1番目のPCRパ
ケット(同期情報が書き込まれているPCRパケット)が
入力されたとき、ステップS76に進み、基準クロック
値Bが変更される。具体的には、PCR書換部306は、
第1番目のPCRパケットから同期情報を読み出し、それ
に3240000を加算し、その加算結果を新たな基準
クロック値Bとしてメモリ307に上書きする。これに
より、基準クロック値Bが変更される。
In step S73, 320000
When it is determined that the count for the clock has been completed, that is, as shown in FIG. 30, after the count for 320000 clocks has been completed, the first PCR packet (the PCR packet in which the synchronization information is written) ) Is input, the process proceeds to step S76, and the reference clock value B is changed. Specifically, the PCR rewriting unit 306
The synchronization information is read from the first PCR packet, 3240000 is added thereto, and the addition result is overwritten in the memory 307 as a new reference clock value B. Thereby, the reference clock value B is changed.

【0117】次に、ステップS77において、PCR書換
部306は、オフセット値Dを変更する。具体的には、
PCR書換部306は、メモリ307からオフセット値D
を読み出し、それに第1番目のPCRパケットの同期情報
を加算し、その加算結果を、新たなオフセット値Dとし
て、メモリ307に上書きする。これにより、オフセッ
ト値Dが変更される。
Next, in step S77, the PCR rewriting section 306 changes the offset value D. In particular,
The PCR rewriting unit 306 calculates the offset value D from the memory 307.
, And the synchronization information of the first PCR packet is added thereto, and the addition result is overwritten in the memory 307 as a new offset value D. As a result, the offset value D is changed.

【0118】その後、ステップS74に戻り、PCR書換
部306は、変更された基準クロック値Bおよびオフセ
ット値Dに基づいて、PCR値Dを算出する。
Then, returning to step S74, the PCR rewriting section 306 calculates the PCR value D based on the changed reference clock value B and offset value D.

【0119】以上において説明した、受信装置203に
おけるPCR書き換え処理は、プログラムごと(例えば、
チャンネル)に行われる。すなわち、複数のプログラム
に対して同様の処理が行われる。
The PCR rewriting process in the receiving device 203 described above is performed for each program (for example,
Channel). That is, similar processing is performed on a plurality of programs.

【0120】以上のように、送信装置201において同
期情報が書き込まれ、ネットワーク202を介して受信
装置203に伝送された後、受信装置203において、
同期情報に基づいてPCRが書き換えられるようにしたの
で、複数のプログラム(例えば、8192通りのPID)
に対応して、遅延ゆらぎが抑制される。
As described above, after the synchronization information is written in the transmitting device 201 and transmitted to the receiving device 203 via the network 202, the receiving device 203
Since the PCR is rewritten based on the synchronization information, a plurality of programs (for example, 8192 PIDs)
, The delay fluctuation is suppressed.

【0121】次に、受信装置203の他の構成例を、図
31に示す。なお、図中、図24における場合と対応す
る部分については、同一の符号を付してある。すなわ
ち、ATM/MPEG変換部301とTSパケット同期部304
の間に、図5に示したアダプティブクロック部51が設
けられている。これにより、アダプティブクロック部5
1によりある程度ゆらぎが吸収されたMPEGトランスポー
トストリームパケットにより、PCR値Dが算出される。
その結果、受信装置203からMPEGトランスポートスト
リームパケット(PCRパケットを含む)の供給を受け
る、図32に示すようなデコーダ400において、図3
3に示すように、VBVバッファ401の破綻を防止する
ことができる。
Next, another example of the configuration of the receiving apparatus 203 is shown in FIG. Note that, in the figure, the same reference numerals are given to parts corresponding to the case in FIG. That is, the ATM / MPEG converter 301 and the TS packet synchronizer 304
Between them, the adaptive clock unit 51 shown in FIG. 5 is provided. Thereby, the adaptive clock unit 5
The PCR value D is calculated from the MPEG transport stream packet whose fluctuation has been absorbed to some extent by 1.
As a result, in the decoder 400 as shown in FIG. 32, which receives the supply of the MPEG transport stream packets (including the PCR packets) from the receiving device 203, FIG.
As shown in FIG. 3, the breakdown of the VBV buffer 401 can be prevented.

【0122】デコーダ400において、入力されるMPEG
トランスポートストリームパケットに遅延ゆらぎが発生
していない場合は、VBVバッファ401のデータ占有量
の軌跡は、図33中、点線Aで示されるようになり、オ
ーバフロまたはアンダーフロしない。しかしながら、MP
EGトランスポートストリームパケットが遅れて到着する
ような場合、データ占有量の軌跡は、実線Bで示される
ように、アンダーフロになる可能性がある。また、早く
到着するような場合、その軌跡は、実線Cに示されるよ
うに、オーバーフロになる可能性がある。
In the decoder 400, the input MPEG
When no delay fluctuation occurs in the transport stream packet, the trajectory of the data occupancy of the VBV buffer 401 is as shown by a dotted line A in FIG. 33, and does not overflow or underflow. However, MP
When the EG transport stream packet arrives with a delay, the trajectory of the data occupation amount may be underflowed as indicated by the solid line B. When the vehicle arrives early, the trajectory may overflow as shown by a solid line C.

【0123】図34は、上述のような送信装置201ま
たは受信装置203として機能するコンピュータ501
の一実施の形態の構成を示すブロック図である。CPU(C
entral Processing Unit)511にはバス515を介し
て入出力インタフェース516が接続されており、CPU
511は、入出力インタフェース516を介して、ユー
ザから、キーボード、マウスなどよりなる入力部518
から指令が入力されると、例えば、ROM(Read Only Mem
ory)512、ハードディスク514、またはドライブ
520に装着される磁気ディスク531、光ディスク5
32、光磁気ディスク533、若しくは半導体メモリ5
34などの記録媒体に格納されているプログラムを、RA
M(Random Access Memory)513にロードして実行す
る。これにより、上述した各種の処理(例えば、図1
3,図14,図17,図26,図27のフローチャート
により示される処理)が行われる。さらに、CPU511
は、その処理結果を、例えば、入出力インタフェース5
16を介して、LCD(LiquidCrystal Display)などより
なる表示部517に必要に応じて出力する。なお、プロ
グラムは、ハードディスク514やROM512に予め記
憶しておき、コンピュータ501と一体的にユーザに提
供したり、磁気ディスク531、光ディスク532、光
磁気ディスク533,半導体メモリ534等のパッケー
ジメディアとして提供したり、衛星、ネットワーク等か
ら通信部519を介してハードディスク514に提供す
ることができる。
FIG. 34 shows a computer 501 functioning as the transmitting device 201 or the receiving device 203 as described above.
FIG. 2 is a block diagram showing a configuration of one embodiment. CPU (C
The CPU 511 is connected to an input / output interface 516 via a bus 515.
511, an input unit 518 including a keyboard, a mouse, and the like from the user via the input / output interface 516;
When a command is input from the ROM, for example, the ROM (Read Only Mem
ory) 512, the hard disk 514, or the magnetic disk 531 and the optical disk 5 mounted on the drive 520.
32, magneto-optical disk 533, or semiconductor memory 5
The program stored in a recording medium such as
It is loaded into an M (Random Access Memory) 513 and executed. Thereby, the various processes described above (for example, FIG.
3, FIG. 14, FIG. 17, FIG. 26, and FIG. 27). Further, the CPU 511
Indicates the processing result, for example, in the input / output interface 5
The data is output to a display unit 517 such as an LCD (Liquid Crystal Display) via the LCD 16 as necessary. The program is stored in the hard disk 514 or the ROM 512 in advance and provided to the user integrally with the computer 501, or provided as package media such as the magnetic disk 531, the optical disk 532, the magneto-optical disk 533, and the semiconductor memory 534. Or can be provided to the hard disk 514 via a communication unit 519 from a satellite, a network, or the like.

【0124】なお、本明細書において、記録媒体により
提供されるプログラムを記述するステップは、記載され
た順序に沿って時系列的に行われる処理はもちろん、必
ずしも時系列的に処理されなくとも、並列的あるいは個
別に実行される処理をも含むものである。
In the present specification, the step of describing a program provided by a recording medium may be performed not only in chronological order according to the described order but also in chronological order. This also includes processing executed in parallel or individually.

【0125】また、本明細書において、システムとは、
複数の装置により構成される装置全体を表すものであ
る。
In this specification, the system is
It represents the entire device composed of a plurality of devices.

【0126】[0126]

【発明の効果】請求項1に記載の通信装置、請求項4に
記載の通信方法、および請求項5に記載の記録媒体のプ
ログラムによれば、ストリームを構成するパケットの先
頭に組み込まれた同期データと同値である、ストリーム
に配置された単位データを検出し、検出した、同期デー
タと同値である単位データのストリーム上の配置位置か
ら、パケットの大きさ毎に、ストリームに配置された単
位データを検出し、検出した単位データのうち、連続し
て検出した、同期データと同値である単位データの数を
カウントするようにしたので、カウントした、連続して
検出した同期データと同値である単位データの数が、所
定の数となったとき、検出した単位データのうちの1つ
の単位データのストリーム上の配置位置を、パケットの
先頭として、ストリームの同期を確立することができ
る。
According to the communication device of the first aspect, the communication method of the fourth aspect, and the program of the recording medium of the fifth aspect, the synchronization incorporated at the head of the packet constituting the stream. Detects unit data placed in the stream that has the same value as the data, and detects the unit data placed in the stream for each packet size from the placement position of the detected unit data in the stream that has the same value as the synchronization data. Is detected, and among the detected unit data, the number of continuously detected unit data having the same value as the synchronization data is counted. When the number of data reaches a predetermined number, the location of one of the detected unit data on the stream is set as the head of the packet, and It is possible to establish synchronization of over-time.

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

【図1】従来のデータ伝送システムの構成例を示すブロ
ック図である。
FIG. 1 is a block diagram illustrating a configuration example of a conventional data transmission system.

【図2】PCRを説明する図である。FIG. 2 is a diagram illustrating PCR.

【図3】図1のシステムデコーダ4の構成例を示すブロ
ック図である。
FIG. 3 is a block diagram illustrating a configuration example of a system decoder 4 of FIG. 1;

【図4】図3のPLL回路13の構成例を示すブロック図
である。
FIG. 4 is a block diagram illustrating a configuration example of a PLL circuit 13 of FIG. 3;

【図5】アダプティブクロック部の構成例を示すブロッ
ク図である。
FIG. 5 is a block diagram illustrating a configuration example of an adaptive clock unit.

【図6】送信装置61の構成例を示すブロック図であ
る。
FIG. 6 is a block diagram illustrating a configuration example of a transmission device 61.

【図7】受信装置62の構成例を示すブロック図であ
る。
FIG. 7 is a block diagram illustrating a configuration example of a receiving device 62.

【図8】位相比較器91の構成例を示すブロック図であ
る。
FIG. 8 is a block diagram illustrating a configuration example of a phase comparator 91.

【図9】本発明を適用したデータ伝送システムの構成例
を示す図である。
FIG. 9 is a diagram illustrating a configuration example of a data transmission system to which the present invention has been applied.

【図10】MPEGトランスポートストリームパケットのデ
ータ構造を説明する図である。
FIG. 10 is a diagram illustrating a data structure of an MPEG transport stream packet.

【図11】図9の送信装置201の構成例を示す図であ
る。
11 is a diagram illustrating a configuration example of a transmission device 201 in FIG.

【図12】位相比較器250の構成例を示す図である。FIG. 12 is a diagram illustrating a configuration example of a phase comparator 250.

【図13】同期確立処理を説明するフローチャートであ
る。
FIG. 13 is a flowchart illustrating a synchronization establishment process.

【図14】同期確立処理を説明する他のフローチャート
である。
FIG. 14 is another flowchart illustrating a synchronization establishment process.

【図15】47hカウント部を示す図である。FIG. 15 is a diagram showing a 47h counting unit.

【図16】同期確立処理を説明する図である。FIG. 16 is a diagram illustrating a synchronization establishment process.

【図17】同期情報作成処理を説明するフローチャート
である。
FIG. 17 is a flowchart illustrating a synchronization information creation process.

【図18】同期情報作成処理を説明するタイミングチャ
ートである。
FIG. 18 is a timing chart illustrating a synchronization information creation process.

【図19】同期情報作成処理を説明するタイミングチャ
ートである。
FIG. 19 is a timing chart illustrating a synchronization information creation process.

【図20】同期情報作成処理を説明する他のタイミング
チャートである。
FIG. 20 is another timing chart illustrating the synchronization information creation processing.

【図21】同期情報のデータ量を説明する図である。FIG. 21 is a diagram illustrating a data amount of synchronization information.

【図22】同期情報のデータ量を説明する他の図であ
る。
FIG. 22 is another diagram illustrating the data amount of synchronization information.

【図23】同期情報の値の意味を説明する図である。FIG. 23 is a diagram illustrating the meaning of the value of synchronization information.

【図24】受信装置203の構成例を示す図である。24 is a diagram illustrating a configuration example of a receiving device 203. FIG.

【図25】同期確立処理を説明する図である。FIG. 25 is a diagram illustrating a synchronization establishment process.

【図26】PCR書換処理を説明するフローチャートであ
る。
FIG. 26 is a flowchart illustrating a PCR rewriting process.

【図27】オフセット値の算出処理を説明するフローチ
ャートである。
FIG. 27 is a flowchart illustrating a calculation process of an offset value.

【図28】オフセット値の算出処理を説明する図であ
る。
FIG. 28 is a diagram illustrating a calculation process of an offset value.

【図29】PCR書き換え処理を説明するタイミングチャ
ートである。
FIG. 29 is a timing chart illustrating a PCR rewriting process.

【図30】PCR書き換え処理を説明する他のタイミング
チャートである。
FIG. 30 is another timing chart for explaining the PCR rewriting process.

【図31】受信装置203の他の構成例を示すブロック
図である。
FIG. 31 is a block diagram illustrating another configuration example of the receiving apparatus 203.

【図32】デコーダ400の構成例を示すブロック図で
ある。
FIG. 32 is a block diagram illustrating a configuration example of a decoder 400.

【図33】VBVバッファのデータ量の軌跡を示す図であ
る。
FIG. 33 is a diagram illustrating a locus of a data amount of a VBV buffer.

【図34】コンピュータ501の構成例を示すブロック
図である。
FIG. 34 is a block diagram illustrating a configuration example of a computer 501.

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

201 送信装置, 202 ネットワーク, 203
受信装置, 211TSパケット同期部, 212 PCR
パケット検出部, 213 同期情報処理部, 214
カウンタ, 215 メモリ, 216 MPEG/ATM
変換部, 217 PLL回路, 301 ATM/MPEG変換
部, 302 PLL回路, 303カウンタ, 304
TSパケット同期部, 305 PCRパケット検出部,
306 PCR書換部, 307 メモリ
201 transmitting device, 202 network, 203
Receiver, 211TS packet synchronization unit, 212 PCR
Packet detector, 213 synchronous information processor, 214
Counter, 215 memory, 216 MPEG / ATM
Converter, 217 PLL circuit, 301 ATM / MPEG converter, 302 PLL circuit, 303 counter, 304
TS packet synchronization unit, 305 PCR packet detection unit,
306 PCR rewriting unit, 307 memory

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) H04N 7/08 H04N 7/08 Z 7/081 7/13 Z 7/24 Fターム(参考) 5C059 KK34 MA00 RA01 RA04 RB01 RB10 RC02 RC03 RC04 RE01 RE04 SS06 UA05 UA09 UA34 UA38 5C063 AA20 AB03 AB07 AC01 AC05 CA11 5K028 AA01 EE03 KK32 MM16 NN01 5K030 HA08 HB02 HB15 KA21 LA15 5K047 AA02 AA04 BB16 DD02 GG10 GG56 HH12 HH23 HH42 MM55 MM56 MM63 ──────────────────────────────────────────────────続 き Continued on the front page (51) Int.Cl. 7 Identification symbol FI Theme coat ゛ (Reference) H04N 7/08 H04N 7/08 Z 7/081 7/13 Z 7/24 F term (reference) 5C059 KK34 MA00 RA01 RA04 RB01 RB10 RC02 RC03 RC04 RE01 RE04 SS06 UA05 UA09 UA34 UA38 5C063 AA20 AB03 AB07 AC01 AC05 CA11 5K028 AA01 EE03 KK32 MM16 NN01 5K030 HA08 HB02 HB15 KA21 LA15 5K047 AA02 GG56 HB MM BB11

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 ストリームを構成するパケットの先頭に
組み込まれた同期データと同値である、前記ストリーム
に配置された単位データを検出する検出手段と、 前記検出手段により検出された、前記同期データと同値
である前記単位データの前記ストリーム上の配置位置か
ら、前記パケットの大きさ毎に、前記ストリームに配置
された単位データを検出し、検出した前記単位データの
うち、連続して検出した、前記同期データと同値である
前記単位データの数をカウントする第1のカウント手段
と、 前記第1のカウント手段によりカウントされた、連続し
て検出された前記同期データと同値である前記単位デー
タの数が、所定の数となったとき、検出された前記単位
データのうちの1つの前記単位データの前記ストリーム
上の配置位置を、前記パケットの先頭とし、前記ストリ
ームの同期を確立する同期確立手段とを備えることを特
徴とする通信装置。
1. A detecting means for detecting unit data arranged in a stream, which has the same value as synchronous data incorporated at the head of a packet constituting a stream, and the synchronous data detected by the detecting means. From the arrangement position of the unit data having the same value on the stream, for each packet size, the unit data arranged in the stream is detected, and among the detected unit data, the unit data is continuously detected. First counting means for counting the number of the unit data having the same value as the synchronization data; and the number of the unit data having the same value as the continuously detected synchronization data counted by the first counting means. When a predetermined number is reached, the arrangement position of one of the detected unit data on the stream is changed to the previous position. The head of the packet, the communication device characterized by comprising a synchronization establishing means for establishing synchronization of the stream.
【請求項2】 前記同期確立手段により、前記パケット
の先頭とされた前記単位データの、前記同期確立手段に
より同期が確立された前記ストリーム上の配置位置か
ら、前記パケットの大きさ毎に、前記ストリームに配置
された単位データを検出し、検出した前記単位データの
うち、連続して検出した、前記同期データと異なる値で
ある前記単位データの数をカウントする第2のカウント
手段をさらに備え、 前記検出手段は、前記第2のカウント手段によりカウン
トされた、連続して検出された前記同期データと異なる
値である前記単位データの数が、所定の数となったと
き、前記同期データと同値である、前記ストリームに配
置された単位データを再び検出することを特徴とする請
求項1に記載の通信装置。
2. The method according to claim 2, wherein the synchronization establishing means sets the unit data at the head of the packet on the stream at which synchronization is established by the synchronization establishing means, for each packet size. Detecting the unit data arranged in the stream, and among the detected unit data, further comprises a second counting means for counting the number of the unit data that is continuously detected and has a value different from the synchronization data, The detecting means, when the number of the unit data counted by the second counting means and having a value different from the continuously detected synchronous data becomes a predetermined number, becomes equal to the synchronous data. The communication device according to claim 1, wherein the unit data arranged in the stream is detected again.
【請求項3】 前記ストリームに所定のタイムスタンプ
が付加されている場合、前記第1のカウント手段は、前
記同期データと同値、前記タイムスタンプと同値、およ
び前記同期データと同値の単位データが連続して検出さ
れたとき、連続して、前記同期データと同値である前記
単位データを検出したとすることを特徴とする請求項1
に記載の通信装置。
3. When a predetermined time stamp is added to the stream, the first counting means determines that the same value as the synchronization data, the same value as the time stamp, and the unit data having the same value as the synchronization data are successive. And detecting the unit data having the same value as the synchronization data continuously when the detection is detected.
The communication device according to claim 1.
【請求項4】 ストリームを構成するパケットの先頭に
組み込まれた同期データと同値である、前記ストリーム
に配置された単位データを検出する検出ステップと、 前記検出ステップの処理で検出された、前記同期データ
と同値である前記単位データの前記ストリーム上の配置
位置から、前記パケットの大きさ毎に、前記ストリーム
に配置された単位データを検出し、検出した前記単位デ
ータのうち、連続して検出した、前記同期データと同値
である前記単位データの数をカウントするカウントステ
ップと、 前記カウントステップの処理でカウントされた、連続し
て検出された前記同期データと同値である前記単位デー
タの数が、所定の数となったとき、検出された前記単位
データのうちの1つの前記単位データの前記ストリーム
上の配置位置を、前記パケットの先頭とし、前記ストリ
ームの同期を確立する同期確立ステップとを含むことを
特徴とする通信方法。
4. A detecting step of detecting unit data arranged in the stream and having the same value as synchronous data incorporated at the head of a packet constituting the stream, and detecting the synchronization detected in the processing of the detecting step. From the arrangement position on the stream of the unit data having the same value as the data, for each packet size, the unit data arranged in the stream is detected, and among the detected unit data, the unit data is continuously detected. A counting step of counting the number of the unit data having the same value as the synchronization data, and the number of the unit data having the same value as the continuously detected synchronization data counted in the processing of the counting step, When the predetermined number is reached, the arrangement position of one of the detected unit data on the stream is determined. And the head of the packet, the communication method characterized by comprising a synchronization establishing step of establishing synchronization of said stream.
【請求項5】 ストリームを構成するパケットの先頭に
組み込まれた同期データと同値である、前記ストリーム
に配置された単位データを検出する検出ステップと、 前記検出ステップの処理で検出された、前記同期データ
と同値である前記単位データの前記ストリーム上の配置
位置から、前記パケットの大きさ毎に、前記ストリーム
に配置された単位データを検出し、検出した前記単位デ
ータのうち、連続して検出した、前記同期データと同値
である前記単位データの数をカウントするカウントステ
ップと、 前記カウントステップの処理でカウントされた、連続し
て検出された前記同期データと同値である前記単位デー
タの数が、所定の数となったとき、検出された前記単位
データのうちの1つの前記単位データの前記ストリーム
上の配置位置を、前記パケットの先頭とし、前記ストリ
ームの同期を確立する同期確立ステップとを含むことを
特徴とする処理をコンピュータに実行させるプログラム
が記録されている記録媒体。
5. A detecting step of detecting unit data arranged in the stream and having the same value as synchronous data incorporated at the beginning of a packet constituting the stream, and detecting the synchronization detected in the processing of the detecting step. From the arrangement position on the stream of the unit data having the same value as the data, for each packet size, the unit data arranged in the stream is detected, and among the detected unit data, the unit data is continuously detected. A counting step of counting the number of the unit data having the same value as the synchronization data, and the number of the unit data having the same value as the continuously detected synchronization data counted in the processing of the counting step, When the predetermined number is reached, the arrangement position of one of the detected unit data on the stream is determined. And the head of the packet, recording medium on which the program for executing the process which comprises a synchronization establishment step to the computer to establish synchronization of the stream is recorded.
JP33235099A 1999-11-24 1999-11-24 COMMUNICATION DEVICE, COMMUNICATION METHOD, AND RECORDING MEDIUM Expired - Fee Related JP4224749B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP33235099A JP4224749B2 (en) 1999-11-24 1999-11-24 COMMUNICATION DEVICE, COMMUNICATION METHOD, AND RECORDING MEDIUM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33235099A JP4224749B2 (en) 1999-11-24 1999-11-24 COMMUNICATION DEVICE, COMMUNICATION METHOD, AND RECORDING MEDIUM

Publications (2)

Publication Number Publication Date
JP2001156760A true JP2001156760A (en) 2001-06-08
JP4224749B2 JP4224749B2 (en) 2009-02-18

Family

ID=18253989

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33235099A Expired - Fee Related JP4224749B2 (en) 1999-11-24 1999-11-24 COMMUNICATION DEVICE, COMMUNICATION METHOD, AND RECORDING MEDIUM

Country Status (1)

Country Link
JP (1) JP4224749B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003037574A (en) * 2001-07-25 2003-02-07 Nippon Telegr & Teleph Corp <Ntt> Stream transmitter, receiver, and transmission/reception method
JP2006050656A (en) * 2005-09-02 2006-02-16 Nippon Telegr & Teleph Corp <Ntt> Stream transmitting device and receiving device, and transmission/reception method
JP2010062830A (en) * 2008-09-03 2010-03-18 Hitachi Kokusai Electric Inc Signal reproducing apparatus
JP2014147105A (en) * 2008-05-02 2014-08-14 Nortel Networks Ltd Timing system and method for time synchronization through packet network

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003037574A (en) * 2001-07-25 2003-02-07 Nippon Telegr & Teleph Corp <Ntt> Stream transmitter, receiver, and transmission/reception method
JP2006050656A (en) * 2005-09-02 2006-02-16 Nippon Telegr & Teleph Corp <Ntt> Stream transmitting device and receiving device, and transmission/reception method
JP2014147105A (en) * 2008-05-02 2014-08-14 Nortel Networks Ltd Timing system and method for time synchronization through packet network
JP2010062830A (en) * 2008-09-03 2010-03-18 Hitachi Kokusai Electric Inc Signal reproducing apparatus

Also Published As

Publication number Publication date
JP4224749B2 (en) 2009-02-18

Similar Documents

Publication Publication Date Title
US6347119B2 (en) Communication apparatus, communication method and storage medium
US6493832B1 (en) Communication apparatus which handles a time stamp
US7756233B2 (en) Data receiving device and data receiving method
JP3053717B2 (en) Apparatus for recovering timing in receiver
US9066061B2 (en) Video information reproduction method and system, and video information content
JP2001045092A (en) Communication equipment and method, communication system and recording medium
JP3045715B2 (en) Transmission system, transmitting device, recording / reproducing device, and recording device
JP3810918B2 (en) Multimedia data relay apparatus and method
US7379479B2 (en) Communication apparatus, communication method and program
JP4081936B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND RECORDING MEDIUM
JP2008245050A (en) Pcr correction circuit
EP1528724A1 (en) Information processing device and method, recording medium, and program
JP2001156760A (en) Communication system, control method and recording medium
WO2005006688A1 (en) Communication system
US20050135368A1 (en) Stream data receiving apparatus
JP4158075B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND RECORDING MEDIUM
JP2001016267A (en) Communication equipment and method and medium
JPH11298893A (en) Transport stream synchronous circuit
JP2001016210A (en) Communication equipment and method, and medium
JP2001339688A (en) Playback equipment of transport stream
JP2002374220A (en) Stream transmission reception system, and stream transmitter and receiver
JP2002281498A (en) Reception reproducing device
JP2000187940A (en) Recording/reproducing device and recorder
JPH11261573A (en) Multimedia data input/output interface device and fixed rate stream output method applied to the same
JP2001024656A (en) Communication device, and method and medium thereof

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060301

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080327

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080724

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080922

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20081030

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20081112

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

Free format text: PAYMENT UNTIL: 20111205

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20111205

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees