JP2000307542A - Data multiplexing device and data multiplexing method - Google Patents

Data multiplexing device and data multiplexing method

Info

Publication number
JP2000307542A
JP2000307542A JP11112488A JP11248899A JP2000307542A JP 2000307542 A JP2000307542 A JP 2000307542A JP 11112488 A JP11112488 A JP 11112488A JP 11248899 A JP11248899 A JP 11248899A JP 2000307542 A JP2000307542 A JP 2000307542A
Authority
JP
Japan
Prior art keywords
reference time
input
stream
output
discontinuous
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
JP11112488A
Other languages
Japanese (ja)
Other versions
JP4168527B2 (en
Inventor
Tetsuo Sumida
哲夫 隅田
Shoji Shiomoto
祥司 塩本
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 JP11248899A priority Critical patent/JP4168527B2/en
Publication of JP2000307542A publication Critical patent/JP2000307542A/en
Application granted granted Critical
Publication of JP4168527B2 publication Critical patent/JP4168527B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Television Systems (AREA)
  • Time-Division Multiplex Systems (AREA)

Abstract

PROBLEM TO BE SOLVED: To inform a receiver side about a discontinuous reference time recovered by reference time information of a stream. SOLUTION: This multiplexing device 20 is provided with a reference time discontinuous point detection sections 291,... that detect a discontinuous reference time recovered by an elementary stream clock reference ESCR of a received packetized elementary stream PES. The reference time discontinuous point detection sections 291,... give a discontinuous indicator flag to input control sections 2711,... in response to the result as to whether or not the reference time recovered by the ESCR of the received PES is discontinuous respectively. An output control section 26 reads the discontinuous indicator flag from the input control sections 2711,... in the case of multiplexing the PES onto one TS and providing an output and gives this discontinuous indicator flag to a TP header.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、複数プログラムの
符号化された画像音声データや各種データを単一のビッ
トストリームの形式に多重化するものであって、単一の
ストリームデータを反復して連結した形式の符号化ビッ
トストリーム又は複数のストリームデータを切り替えて
連結した形式の符号化ビットストリームを多重化して出
力するデータ多重化装置及びデータ多重化方法に関し、
特に、ディジタル放送システム等に適用して好適なデー
タ多重化装置及びデータ多重化方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for multiplexing a plurality of coded video and audio data and various data into a single bit stream format. The present invention relates to a data multiplexing apparatus and a data multiplexing method for multiplexing and outputting a coded bit stream of a concatenated format or a coded bit stream of a concatenated format by switching a plurality of stream data.
In particular, the present invention relates to a data multiplexing device and a data multiplexing method suitable for being applied to a digital broadcasting system or the like.

【0002】[0002]

【従来の技術】近年、画像音声データやその他の各種デ
ータ等を送信する送信装置において例えばMPEG2
(Moving Picture Experts Group phase 2)による情報
圧縮技術及び多重化技術を用いて画像音声信号に対して
符号化及び多重化を行い、限られた伝送帯域の下で複数
プログラムの高品位の画像音声データやその他の各種デ
ータを1本のビットストリームにし、このビットストリ
ームを通信衛星等を介して伝送するとともに、受信装置
においてこのビットストリームを受信し、分離、復号す
るディジタル衛星放送システム等の画像音声信号伝送シ
ステムが普及しつつある。
2. Description of the Related Art In recent years, in a transmitting apparatus for transmitting image / audio data and other various data, for example, MPEG2
(Moving Picture Experts Group phase 2) Encodes and multiplexes video and audio signals using information compression technology and multiplexing technology, and provides high-quality video and audio data of multiple programs in a limited transmission band. And various other data into a single bit stream, transmit this bit stream via a communication satellite or the like, and receive, separate, and decode the bit stream in a receiving device, such as an image / audio signal for a digital satellite broadcast system or the like. Transmission systems are becoming widespread.

【0003】このような画像音声信号伝送システムにお
ける送信装置は、MPEG2等の符号化技術により画像
音声データや各種データを符号化するとともに、同じく
多重化技術によりこれらのディジタル符号化データを多
重化してビットストリームを形成する。その後、送信装
置は、このビットストリームに誤り訂正処理や変調処理
を施し、このビットストリームを送信アンテナにより通
信衛星に向かって伝送する。
A transmitter in such a video / audio signal transmission system encodes video / audio data and various kinds of data using an encoding technique such as MPEG2 and multiplexes these digitally encoded data using a multiplexing technique. Form a bitstream. Thereafter, the transmitting apparatus performs error correction processing and modulation processing on the bit stream, and transmits the bit stream toward a communication satellite by a transmission antenna.

【0004】ここで、このような送信装置を構成する多
重化装置について概要を説明する。
Here, an outline of a multiplexing device constituting such a transmitting device will be described.

【0005】図17に示す多重化装置200は、複数プ
ログラムを構成する画像音声データやその他の各種デー
タをMPEG2システムに準拠するように符号化して得
られた複数のパケッタイズドエレメンタリストリーム
(Packetized Elementary Stream;以下、PESと略記
する。)を入力し、これらのPESをMPEG2システ
ムにて規定されているトランスポートストリーム(Tran
sport Stream;以下、TSと略記する。)に多重化する
ものである。一般に、1つのプログラムは、例えば映像
データと音声データとがそれぞれ1チャンネルずつ割り
当てられたPESとして構成される場合がある。そのた
め、多重化装置200は、1プログラムを構成する複数
のPESを複数チャンネルから入力する入力チャンネル
群を、複数プログラム分備え、複数プログラムを構成す
るPESを多重化する。
[0005] A multiplexing apparatus 200 shown in FIG. 17 includes a plurality of packetized elementary streams (Packetized elementary streams) obtained by encoding video and audio data and other various data constituting a plurality of programs so as to conform to the MPEG2 system. Elementary Stream; hereinafter abbreviated as PES), and these PES are transported by a transport stream (Tran) defined by the MPEG2 system.
sport Stream; hereinafter abbreviated as TS. ). In general, one program may be configured as a PES in which, for example, video data and audio data are each assigned to one channel. Therefore, the multiplexing apparatus 200 includes an input channel group for inputting a plurality of PESs constituting one program from a plurality of channels for a plurality of programs, and multiplexes the PESs constituting the plurality of programs.

【0006】多重化装置200は、同図に示すように、
複数プログラム分のPESを入力する入力処理部201
1,2012,・・・,201nと、プログラムに関する
情報等を生成する制御データ生成部202と、いわゆる
ヌルパケットを生成するヌルパケット生成部203と、
後述する多重化制御部205の制御により動作する多重
スイッチ204と、この多重スイッチ204を動作させ
て多重チャンネルを制御する多重化制御部205と、所
定の伝送レートでTSを出力する出力制御部206とを
備える。
[0006] As shown in FIG.
Input processing unit 201 for inputting PES for a plurality of programs
1, 201 2, ..., and 201 n, the control data generating unit 202 for generating information about the program or the like, the null packet generator 203 to generate a so-called null packet,
A multiplexing switch 204 that operates under the control of a multiplexing control unit 205 described later, a multiplexing control unit 205 that operates the multiplexing switch 204 to control a multiplex channel, and an output control unit 206 that outputs a TS at a predetermined transmission rate. And

【0007】入力処理部2011は、入力端子21
11,21012,・・・から1プログラムを構成する複
数のPESを入力し、各種処理を施して得られた多重化
する対象となる出力を被選択端子21111,21112
・・・,2121から出力する。入力処理部2012,・
・・,201nも入力処理部2011と同様に、それぞ
れ、1プログラムを構成する複数のPESを、入力端子
21021,21022,・・・,210n1,210n2,・
・・から入力し、各種処理を施して得られた多重化する
対象となる出力を被選択端子21121,21122,・・
・,2122,・・・,211n1,211n2,・・・,
212nから出力する。なお、ここでは、入力処理部2
011,2012,・・・,201nがそれぞれ同様の構
成からなることから、入力処理部2012,・・・,2
01nの説明及び図示を省略し、入力処理部2011につ
いて代表して説明する。
[0007] The input processing unit 201 1 includes an input terminal 21
A plurality of PESs constituting one program are input from 0 11 , 210 12 ,..., And outputs to be multiplexed obtained by performing various processes are output to selected terminals 211 11 , 211 12 ,.
.., 212 1 are output. The input processing unit 2012 2 ,
..., similarly to the input processing unit 201 1 201 n, respectively, a plurality of PES constituting one program, an input terminal 210 21, 210 22, ···, 210 n1, 210 n2, ·
.. and outputs to be multiplexed obtained by performing various processes are output to the selected terminals 211 21 , 211 22 ,.
.. , 212 2 ,..., 211 n1 , 211 n2,.
Output from 212 n . Here, the input processing unit 2
01 1, 201 2, ..., since the 201 n are the same configuration, respectively, the input processing unit 201 2, ..., 2
01 n not described and illustrated, it will be representatively described input processing unit 201 1.

【0008】入力処理部2011は、1本のPESを入
力する入力制御部20711,2071 2,・・・と、これ
らの入力制御部20711,20712,・・・からのPE
Sをそれぞれ入力して一時記憶するバッファ20811
20812,・・・と、プログラム毎の基準時刻を示すプ
ログラムクロックリファレンス(Program Clock Refere
nce;以下、PCRと略記する。)を含むPCRパケッ
トを生成するPCRパケット生成部2091とを備え
る。
[0008] The input processing unit 201 1 includes an input control unit 207 11 to enter a single PES, 207 1 2, ... and, these input control unit 207 11, 207 12, PE from ...
Buffer 208 11 for inputting S and temporarily storing them,
208 12, the program shows the ..., the reference time of each program clock reference (Program Clock Refere
nce; hereinafter abbreviated as PCR. ) And a PCR packet generating unit 2091 to generate a PCR packet including.

【0009】入力制御部20711,20712,・・・
は、それぞれ、1プログラムを構成する映像データや音
声データに例えばMPEG2ビデオにて規定されている
ような高能率圧縮符号化を施して生成したエレメンタリ
ストリーム(Elementary Stream;ES)に、PESヘ
ッダ(PES Header)を付加してあるコード長の固まり毎
にパケット化して生成したPESパケットを、入力端子
21011,21012,・・・から1バイトずつ入力す
る。そして、入力制御部20711,20712,・・・
は、それぞれ、入力したPESパケットを後段のバッフ
ァ20811,20812,・・・に供給する。また、入力
制御部20711,20712,・・・は、それぞれ、図示
しないメモリを有しており、表示の最小単位であるPU
(PresentationUnit)や符号化の最小単位であるAU
(Access Unit)の制御開始後における入力順を示すイ
ンデックス番号と、各インデックス番号に対応するヘッ
ダ情報とをメモリに保持し、多重化制御部205に供給
する。さらに、入力制御部20711は、PESヘッダ内
に重畳されている基準時刻情報であるエレメンタリスト
リームクロックリファレンス(Elementary Stream Cloc
k Reference;以下、ESCRと略記する。)を取得
し、このESCRを取得したタイミングを示すラッチ信
号とESCRのデコード値とを、後段のPCRパケット
生成部2091に出力する。
The input control units 207 11 , 207 12 ,...
Respectively, a PES header (Elementary Stream; ES) generated by performing high-efficiency compression encoding as specified in, for example, MPEG2 video on video data and audio data constituting one program, and A PES packet generated by packetizing each code length block to which a PES Header is added is input from the input terminals 210 11 , 210 12 ,. Then, the input control units 207 11 , 207 12 ,.
Supplies the input PES packet to the subsequent buffers 208 11 , 208 12 ,. Each of the input control units 207 11 , 207 12 ,... Has a memory (not shown),
(PresentationUnit) and AU which is the minimum unit of encoding
An index number indicating the input order after the start of (Access Unit) control and header information corresponding to each index number are stored in a memory and supplied to the multiplexing control unit 205. Further, the input control unit 207 11 outputs an elementary stream clock reference (Elementary Stream Cloc) which is reference time information superimposed in the PES header.
k Reference; hereinafter abbreviated as ESCR. ) Acquires, a decode value of the latch signal and ESCR indicating the timing acquired the ESCR, and outputs the PCR packet generating portion 209 1 of the subsequent stage.

【0010】バッファ20811,20812,・・・は、
それぞれ、入力制御部20711,20712,・・・から
供給されたPESパケットを一時記憶するものであり、
書き込まれた順番でPESパケットを読み出すFIFO
(First-In First-Out)形式のものである。バッファ2
0811,20812,・・・は、それぞれ、多重化制御部
205の制御により動作する多重スイッチ204が被選
択端子21111,21112,・・・のいずれかを選択す
ることでPESが多重化されるタイミングまで、入力し
たPESパケットを一時記憶する。そして、バッファ2
0811,20812,・・・は、それぞれ、記憶・保持し
ているPESパケットを被選択端子21111,21
12,・・・へと供給する。被選択端子21111,21
12,・・・に供給されたPESパケットは、それぞ
れ、多重スイッチ204の選択によりトランスポートス
トリームパケット(Transport Stream Packet;以下、
TPと略記する。)長単位で読み出され多重化される。
The buffers 208 11 , 208 12 ,...
.. Temporarily store the PES packets supplied from the input control units 207 11 , 207 12 ,.
FIFO for reading PES packets in the order written
(First-In First-Out) format. Buffer 2
08 11, 208 12, ..., respectively, multiplex switch 204 is fixed terminal 211 11 which operates under the control of the multiplexing control unit 205, 211 12, PES is multiplexed by selecting one of the ... The input PES packet is temporarily stored until the time when the PES packet is converted. And buffer 2
08 11, 208 12, ... are, respectively, the PES packet stored and held fixed terminal 211 11, 21
1 12 ,. Selected terminals 211 11 , 21
The PES packets supplied to 1 12 ,... Are respectively transport stream packets (Transport Stream Packets;
Abbreviated as TP. 3.) Read and multiplex in units of length.

【0011】PCRパケット生成部2091は、入力制
御部20711で取得したESCRのデコード値に基づい
て基準時刻を再生し、この基準時刻を上述したPCRと
してエンコードしてペイロードデータを有さないPCR
パケットを生成する。このPCRパケット生成部209
1は、生成したPCRパケットを多重化するタイミング
に至ると、多重化制御部205に対して多重要求を送信
して、多重化するPCRパケットを被選択端子2121
に供給する。被選択端子2121に供給されたPCRパ
ケットは、多重スイッチ204の選択により読み出され
多重化される。なお、このPCRパケット生成部209
1は、1プログラムにつき1つ備えられるものであっ
て、入力制御部20711で取得したESCRのデコード
値ではなく、例えば入力制御部20712で取得したES
CRのデコード値に基づいて基準時刻を再生してもよ
い。
[0011] PCR packet generating unit 2091 reproduces the reference time based on the decoded values of ESCR acquired by the input control unit 207 11, no payload data encoded as PCR described above the reference time PCR
Generate a packet. This PCR packet generator 209
1 transmits a multiplexing request to the multiplexing control unit 205 at the timing of multiplexing the generated PCR packets, and sets the PCR packets to be multiplexed to the selected terminal 212 1.
To supply. The PCR packet supplied to the selected terminal 212 1 is read and multiplexed by selecting the multiplex switch 204. The PCR packet generation unit 209
1, 1 be one which provided per program, rather than decode values of ESCR acquired by the input control unit 207 11, acquired for example by the input control unit 207 12 ES
The reference time may be reproduced based on the CR decoded value.

【0012】多重化装置200は、このような入力処理
部2011と同様の構成である入力処理部2012,・・
・,201nを備え、複数プログラム分のPESを入力
して処理する。
[0012] Multiplexer 200, such an input processing unit 201 1 and the same configuration input processing unit 201 2, ...
, 201 n , and inputs and processes PES for a plurality of programs.

【0013】制御データ生成部202は、受信側にてプ
ログラムを再生する際に必要となるいわゆるPAT、P
MT、CAT等の制御データを作成してTPを生成す
る。この制御データ生成部202は、制御データを作成
するためのパラメータを入力端子213を介して外部か
ら入力する。また、制御データ生成部202は、任意の
制御データを多重化すべきタイミングに至ったときに、
この制御データを被選択端子214に供給する。被選択
端子214に供給された制御データは、多重スイッチ2
04の選択により読み出され多重化される。
[0013] The control data generation unit 202 is provided with a so-called PAT, P
It creates control data such as MT and CAT to generate TP. The control data generation unit 202 inputs parameters for generating control data from the outside via the input terminal 213. In addition, the control data generation unit 202, when it is time to multiplex any control data,
This control data is supplied to the selected terminal 214. The control data supplied to the selected terminal 214
Read and multiplexed by selecting 04.

【0014】ヌルパケット生成部203は、MPEG2
で規定されているヌルパケットを生成する。ヌルパケッ
ト生成部203は、PESパケット、制御データパケッ
ト、PCRパケットのいずれも多重化する必要のないタ
イミング、或いはこれらのパケットのいずれも多重化す
ることが禁止されたタイミングにおいて多重化するため
のペイロードデータを有さないヌルパケットを生成し、
被選択端子215へと供給する。被選択端子215に供
給されたヌルパケットは、多重スイッチ204の選択に
より読み出され多重化される。
The null packet generation unit 203 is an MPEG2
Generates a null packet specified in. The null packet generation unit 203 provides a payload for multiplexing at a timing when it is not necessary to multiplex any of the PES packet, the control data packet, and the PCR packet, or at a timing when multiplexing of any of these packets is prohibited. Generate a null packet with no data,
It is supplied to the selected terminal 215. The null packet supplied to the selected terminal 215 is read and multiplexed by selecting the multiplex switch 204.

【0015】多重化制御部205は、PESパケット、
制御データパケット、PCRパケット、ヌルパケットの
うち、いずれのパケットを選択するかを決定する。多重
化制御部205は、多重スイッチ204に対して選択信
号を送信して多重スイッチ204を動作させ、選択した
パケットを出力する被選択端子と多重スイッチ204と
を接続させることにより、多重チャンネルを制御する。
多重化制御部205は、多重化するパケットを選択する
ために、入力制御部20711,20712,・・・からP
ESやAUのストリーム情報を読み出すとともに、バッ
ファ20811,20812,・・・から占有量情報を読み
出す。また、多重化制御部205は、制御データ生成部
202で生成された制御データパケットを選択する際に
は、所定の最大出力間隔を満たすことができるように、
出力時刻を内部で管理する。さらに、多重化制御部20
5は、PESパケット、制御データパケット、PCRパ
ケットのいずれも多重化する必要のないタイミング、或
いはこれらのパケットのいずれも多重化することが禁止
されたタイミングであると判断した場合には、ヌルパケ
ット生成部203からのヌルパケットを多重化するよう
に多重化スイッチ204を制御する。
The multiplexing control unit 205 includes a PES packet,
It determines which of the control data packet, the PCR packet and the null packet is to be selected. The multiplexing control unit 205 controls the multiplexing channel by transmitting a selection signal to the multiplexing switch 204 to operate the multiplexing switch 204 and connecting the selected terminal that outputs the selected packet to the multiplexing switch 204. I do.
The multiplexing control unit 205 sends P to the input control units 207 11 , 207 12 ,... To select a packet to be multiplexed.
In addition to reading the stream information of the ES and the AU, the occupancy information is read from the buffers 208 11 , 208 12 ,. When selecting the control data packet generated by the control data generation unit 202, the multiplexing control unit 205 may select a control data packet to satisfy a predetermined maximum output interval.
Output time is managed internally. Further, the multiplexing control unit 20
5 indicates a timing at which it is not necessary to multiplex any of the PES packet, the control data packet, and the PCR packet, or a null packet when it is determined that multiplexing of any of these packets is prohibited. The multiplexing switch 204 is controlled so as to multiplex null packets from the generating unit 203.

【0016】出力制御部206は、多重化制御部205
の制御のもとに選択されたパケットを入力し、出力端子
216を介して所定の出力ビットレートで複数のTPか
ら構成されるTSを図示しない伝送路へ出力する。出力
制御部206は、多重化制御部205から多重化するデ
ータの種別を読み出すとともに、そのデータを入力した
入力制御部からデータの属性を読み出し、TPヘッダを
付加してTPを生成する。
The output control unit 206 includes a multiplex control unit 205
, And outputs a TS composed of a plurality of TPs via an output terminal 216 to a transmission path (not shown) at a predetermined output bit rate. The output control unit 206 reads out the type of data to be multiplexed from the multiplexing control unit 205, reads out the attribute of the data from the input control unit that has input the data, and adds a TP header to generate a TP.

【0017】このような多重化装置200は、多重化制
御部205の制御にしたがって、多重スイッチ204を
動作させ、多重化するPESや制御データを選択し、こ
の選択したPESや制御データをTP単位で多重化す
る。また、多重化装置200は、多重化制御部205に
よって、有効データを多重化するタイミングではないと
判別された際には、ヌルパケットを多重化する。多重化
装置200は、このようにして生成した1本のTSを出
力端子200aを介して出力する。
The multiplexing apparatus 200 operates the multiplexing switch 204 according to the control of the multiplexing control unit 205 to select the PES or control data to be multiplexed, and converts the selected PES or control data into TP units. To multiplex. The multiplexing device 200 multiplexes null packets when the multiplexing control unit 205 determines that it is not time to multiplex valid data. The multiplexer 200 outputs one TS generated in this way via the output terminal 200a.

【0018】[0018]

【発明が解決しようとする課題】ところで、上述した従
来の多重化装置は、例えば、任意の有限長のストリーム
を繰り返し再生する装置からのストリームを入力して多
重化する場合には、当該多重化装置内で再生するストリ
ームの基準時間が不連続になることがあった。
The above-mentioned conventional multiplexing apparatus, when inputting and multiplexing a stream from an apparatus for repeatedly reproducing an arbitrary finite-length stream, for example, requires the multiplexing apparatus. In some cases, the reference time of a stream reproduced in the device was discontinuous.

【0019】この具体例としては、例えば、ハードディ
スクドライブ上にファイル化されているストリームを、
単純に繰り返し出力する装置からのストリームを入力し
て多重化する場合がある。この場合、従来の多重化装置
が取得するストリームの基準時刻情報は、当該ストリー
ムの開始から終了までの間では連続的に推移するもの
の、繰り返し毎に再び開始時の時刻に戻ってしまう。し
たがって、このストリームを入力する従来の多重化装置
において、入力したストリームの基準時刻情報により再
生した基準時間は、2回目以降の繰り返し出力時に不連
続が生じるものとなっていた。
As a specific example, for example, a stream filed on a hard disk drive is
There is a case where a stream from a device that simply outputs repeatedly is input and multiplexed. In this case, the reference time information of the stream obtained by the conventional multiplexing device changes continuously from the start to the end of the stream, but returns to the time at the start again for each repetition. Therefore, in a conventional multiplexing apparatus that inputs this stream, the reference time reproduced based on the reference time information of the input stream has a discontinuity at the time of the second and subsequent repeated output.

【0020】また、同様の問題が生じる場合として、例
えば、個々のストリームは連続的であるが、互いに不連
続である複数のストリームを入力して多重化する場合が
挙げられる。
As a case where the same problem occurs, for example, there is a case where a plurality of streams which are continuous but are discontinuous with each other are input and multiplexed.

【0021】この具体例としては、例えば、メインスト
リームとサブストリームとがあり、各ストリームの基準
時刻情報については特に変更を施さず、両ストリームを
交互に切り替えて出力する装置からの出力を入力して多
重化する場合がある。この場合、従来の多重化装置が取
得するストリームの基準時刻情報は、両ストリームが交
互に切り替わる毎に不連続的に変化する。したがって、
このようなストリーム群を入力する従来の多重化装置に
おいて、入力したストリームの基準時刻情報により再生
した基準時間は、ストリームが切り替わる毎に不連続が
生じるものとなっていた。
As a specific example, there are, for example, a main stream and a sub-stream. The reference time information of each stream is not changed, and an output from a device that alternately outputs both streams is input. May be multiplexed. In this case, the reference time information of the stream obtained by the conventional multiplexer changes discontinuously each time both streams are alternately switched. Therefore,
In a conventional multiplexing apparatus for inputting such a stream group, the reference time reproduced based on the reference time information of the input stream has a discontinuity every time the stream is switched.

【0022】このように基準時間が不連続であるストリ
ームを多重化する従来の多重化装置からのビットストリ
ームを受信してデコードする受信側は、基準時間につい
て予期せぬ不連続が生じてしまい、画像音声の正常な連
続再生ができなくなるといった問題があった。
As described above, the receiving side that receives and decodes a bit stream from a conventional multiplexer that multiplexes a stream whose reference time is discontinuous generates unexpected discontinuity in the reference time, There has been a problem that normal continuous reproduction of video and audio cannot be performed.

【0023】本発明は、このような実情に鑑みてなされ
たものであり、上述した従来の多重化装置の問題点を解
決し、入力するストリーム毎に基準時刻情報が付加され
た形式のストリームを入力して多重化する際に、基準時
間に不連続が生じる場合に、その情報を受信側に通知す
るデータ多重化装置及びデータ多重化方法を提供するこ
とを目的とするものである。
The present invention has been made in view of such circumstances, and solves the above-mentioned problems of the conventional multiplexing apparatus. A stream having a format to which reference time information is added for each input stream is provided. It is an object of the present invention to provide a data multiplexing apparatus and a data multiplexing method for notifying a receiving side of information when discontinuity occurs in a reference time when inputting and multiplexing.

【0024】[0024]

【課題を解決するための手段】上述した目的を達成する
本発明にかかるデータ多重化装置は、単一の時間軸を再
生するための入力基準時刻情報がヘッダ領域に付加され
た少なくとも1つ以上の符号化入力ストリームを入力し
て読み込むとともに、入力基準時刻情報により再生した
基準時間が不連続であるか否かが検出された結果を識別
する識別子を保持する入力制御手段と、符号化入力スト
リームを単一の符号化出力ストリームに多重化して出力
するとともに、符号化出力ストリームを出力する際に、
入力制御手段から識別子を読み出し、符号化出力ストリ
ームのヘッダ領域に識別子を付加する出力制御手段とを
備えることを特徴としている。
According to the present invention, there is provided a data multiplexing apparatus for achieving at least one or more input reference time information added to a header area for reproducing a single time axis. Input control means for inputting and reading the coded input stream, and holding an identifier for identifying a result of detecting whether or not the reference time reproduced by the input reference time information is discontinuous; and Is multiplexed into a single encoded output stream and output, and when the encoded output stream is output,
Output control means for reading the identifier from the input control means and adding the identifier to the header area of the encoded output stream.

【0025】このように構成された本発明にかかるデー
タ多重化装置は、符号化入力ストリームにおける入力基
準時刻情報により再生した基準時間が不連続であるか否
かを検出して得られた結果を識別する識別子がヘッダ領
域に付加された単一の符号化出力ストリームを出力す
る。
The data multiplexing apparatus according to the present invention having the above-described configuration detects whether or not the reference time reproduced by the input reference time information in the encoded input stream is discontinuous. It outputs a single encoded output stream with an identifier for identification added to the header area.

【0026】また、上述した目的を達成する本発明にか
かるデータ多重化方法は、単一の時間軸を再生するため
の入力基準時刻情報がヘッダ領域に付加された少なくと
も1つ以上の符号化入力ストリームを入力して読み込む
とともに、入力基準時刻情報により再生した基準時間が
不連続であるか否かが検出された結果を識別する識別子
を保持し、符号化入力ストリームを単一の符号化出力ス
トリームに多重化して出力する際に、識別子を読み出
し、符号化出力ストリームのヘッダ領域に識別子を付加
して符号化出力ストリームを出力することを特徴として
いる。
Further, in the data multiplexing method according to the present invention, which achieves the above-mentioned object, at least one or more encoded input signals in which input reference time information for reproducing a single time axis is added to a header area. A stream is input and read, and an identifier for identifying a result of detection of whether or not the reference time reproduced by the input reference time information is discontinuous is held, and the encoded input stream is converted into a single encoded output stream. When outputting an encoded output stream, the identifier is read out, the identifier is added to the header area of the encoded output stream, and the encoded output stream is output.

【0027】このような本発明にかかるデータ多重化方
法は、符号化入力ストリームを単一の符号化出力ストリ
ームに多重化して出力する際に、符号化入力ストリーム
における入力基準時刻情報により再生した基準時間が不
連続であるか否かを検出して得られた結果を識別する識
別子を、符号化出力ストリームのヘッダ領域に付加す
る。
In the data multiplexing method according to the present invention, when the coded input stream is multiplexed into a single coded output stream and output, the reference multiplexed data is reproduced based on the input reference time information in the coded input stream. An identifier for identifying a result obtained by detecting whether or not the time is discontinuous is added to a header area of the encoded output stream.

【0028】[0028]

【発明の実施の形態】以下、本発明を適用した具体的な
実施の形態について図面を参照しながら詳細に説明す
る。
Embodiments of the present invention will be described below in detail with reference to the drawings.

【0029】本発明を適用した実施の形態として図1に
示す多重化装置20は、複数プログラムを構成する画像
音声データやその他の各種データをMPEG2(Moving
Picture Experts Group phase 2)システムに準拠する
ように符号化して得られた符号化入力ストリームである
複数のパケッタイズドエレメンタリストリーム(Packet
ized Elementary Stream;以下、PESと略記する。)
を入力し、これらのPESをMPEG2システムにて規
定されている符号化出力ストリームであるトランスポー
トストリーム(Transport Stream;以下、TSと略記す
る。)に多重化するものである。多重化装置20は、1
プログラムを構成する複数のPESを複数チャンネルか
ら入力する入力チャンネル群を、複数プログラム分備
え、複数プログラムを構成するPESを多重化すること
ができる。
As an embodiment to which the present invention is applied, the multiplexing apparatus 20 shown in FIG. 1 converts video and audio data constituting a plurality of programs and other various data into MPEG2 (Moving).
Picture Experts Group phase 2) A plurality of packetized elementary streams (Packet), which are encoded input streams obtained by encoding according to the system.
hereinafter, abbreviated as PES. )
, And multiplexes these PESs into a transport stream (Transport Stream; hereinafter abbreviated as TS), which is an encoded output stream defined in the MPEG2 system. The multiplexing device 20
An input channel group for inputting a plurality of PESs constituting a program from a plurality of channels is provided for a plurality of programs, and PESs constituting a plurality of programs can be multiplexed.

【0030】ここでまず、上述したPES及びTSの構
成について、図2及び図3を用いて説明する。
First, the configuration of the above-described PES and TS will be described with reference to FIGS.

【0031】PESは、図2に示すように、例えばプロ
グラム構成する映像データや音声データにMPEG2ビ
デオにて規定されているような高能率圧縮符号化を施し
て生成したエレメンタリストリーム(Elementary Strea
m;以下、ESと略記する。)をペイロードデータ(PES
Payload data)1とし、このESにPESヘッダ(PES
Header)2を付加してあるコード長の固まり毎にパケ
ット化して生成したPESパケットから構成される。P
ESヘッダ2には、図示しない受信装置が、受信したP
ESからその基準クロックを再生し、このPESを同期
再生可能なストリームとして扱うことができるように、
PESの基準時刻を示す基準時刻情報であるエレメンタ
リストリームクロックリファレンス(Elementary Strea
m ClockReference;以下、ESCRと略記する。)がE
SCRフィールド3に重畳されている場合がある。特
に、最初にデコードすべきPESには、このESCRが
重畳される必要がある。また、PESヘッダ2には、受
信側(受信装置)における表示時刻やデコード時刻を指
定するための同期再生情報として、再生出力の時刻管理
情報であるプレゼンテーションタイムスタンプ(Presen
tation Time Stamp;以下、PTSと略記する。)や復
号の時刻管理情報であるデコードタイムスタンプ(Deco
de Time Stamp;以下、DTSと略記する。)がそれぞ
れPTSフィールド4及びDTSフィールド5に符号化
データとして重畳されている場合がある。これらのPT
SやDTSは、ESCRと同様に、最初にデコードすべ
きPESには必ず重畳される。
As shown in FIG. 2, the PES is, for example, an elementary stream (Elementary Stream) generated by performing high-efficiency compression encoding as specified in MPEG2 video on video data and audio data constituting a program.
m; hereinafter abbreviated as ES. ) Payload data (PES)
Payload data) 1 and a PES header (PES
Header) 2 is composed of PES packets generated by packetization for each chunk of code length to which a code length is added. P
The receiving device (not shown) stores the received P
To reproduce the reference clock from the ES and treat this PES as a stream that can be synchronously reproduced,
An elementary stream clock reference (Elementary Strea) which is reference time information indicating a reference time of the PES.
m ClockReference; hereinafter abbreviated as ESCR. ) Is E
It may be superimposed on SCR field 3. In particular, the ESCR needs to be superimposed on the PES to be decoded first. The PES header 2 includes a presentation time stamp (Presensen), which is time management information of reproduction output, as synchronous reproduction information for designating a display time and a decode time on the reception side (reception device).
tation Time Stamp; hereinafter abbreviated as PTS. ) And decode time stamp (Deco
de Time Stamp; hereinafter abbreviated as DTS. ) May be superimposed as encoded data on the PTS field 4 and the DTS field 5, respectively. These PTs
S and DTS are always superimposed on the PES to be decoded first, like the ESCR.

【0032】一方、TSは、図3に示すようなトランス
ポートストリームパケット(Transport Stream Packe
t;以下、TPと略記する。)から構成される。TP
は、上述したPESを分割してペイロードデータ(TP P
ayload data)6とし、このPESにTPヘッダ(TP He
ader)7を付加して188バイト固定長としたものであ
る。TPヘッダ7には、ユニット開始インディケータ
(Payload unit start indicator)フィールド8が設け
られ、このユニット開始インディケータフィールド8に
は、PESパケットの先頭を含むパケットを多重化した
場合に“1”がセットされる。また、TPヘッダ7に
は、PID(Packet IDentification)フィールド9が
設けられ、このPIDフィールド9には、多重化したパ
ケットに対応する個別ストリームの属性であるパケット
IDが書き込まれる。さらに、TPヘッダ7には、後述
する不連続インディケータフラグを書き込むための不連
続インディケータ(Discontinuity indicator)フィー
ルド10や、プログラム毎の基準時刻を示す基準時刻情
報であるプログラムクロックリファレンス(Program Cl
ock Reference;以下、PCRと略記する。)を書き込
むPCRフィールド11等が設けられる。
On the other hand, TS is a transport stream packet (Transport Stream Packe) as shown in FIG.
t; hereinafter abbreviated as TP. ). TP
Divides the above-mentioned PES into payload data (TP P
ayload data) 6, and a TP header (TP He
ader) 7 is added to make it a fixed length of 188 bytes. In the TP header 7, a unit start indicator (Payload unit start indicator) field 8 is provided, and "1" is set in the unit start indicator field 8 when a packet including the head of the PES packet is multiplexed. . In the TP header 7, a PID (Packet IDentification) field 9 is provided. In the PID field 9, a packet ID which is an attribute of an individual stream corresponding to the multiplexed packet is written. Further, in the TP header 7, a discontinuity indicator (Discontinuity indicator) field 10 for writing a discontinuity indicator flag to be described later, and a program clock reference (Program Cl) which is reference time information indicating a reference time for each program.
ock Reference; hereinafter abbreviated as PCR. ) For writing a PCR field 11 or the like.

【0033】さて図1に示す多重化装置20は、複数プ
ログラム分のPESを入力する入力処理部211,2
2,・・・,21nと、受信側にてプログラムを選択し
たりデコードするために必要となるプログラムに関する
制御データを生成する制御データ生成部22と、いわゆ
るヌルパケットを生成するヌルパケット生成部23と、
後述する多重化制御部25の制御により動作する多重ス
イッチ24と、この多重スイッチ24を動作させて多重
チャンネルを制御する多重化制御部25と、所定の伝送
レートでTSを出力する出力制御部26とを備える。ま
た、多重化装置20は、PESを入力する入力端子31
11,3112,・・・,3121,3122,・・・,3
n1,31n2,・・・と、制御データを作成するための
パラメータを入力する入力端子32と、被選択端子33
11,3312,・・・,3321,3322,・・・,3
n1,33n2・・・,341,・・・,342,・・・,
34n,・・・,35,36と、出力制御部26からT
Sを出力する出力端子37とを備える。
The multiplexing device 20 shown in FIG. 1 has input processing units 21 1 , 2 for inputting PES for a plurality of programs.
1 2, ..., and 21 n, the control data generating unit 22 for generating control data and a program needed to decode or select the program at the receiving side, the null packet generator for generating a so-called null packets Part 23,
A multiplexing switch 24 that operates under the control of a multiplexing control unit 25 described later, a multiplexing control unit 25 that operates the multiplexing switch 24 to control multiplex channels, and an output control unit 26 that outputs a TS at a predetermined transmission rate. And Further, the multiplexer 20 has an input terminal 31 for inputting the PES.
11 , 31 12 ,..., 31 21 , 31 22 ,.
1 n1 , 31 n2 ,..., An input terminal 32 for inputting parameters for creating control data, and a selected terminal 33
11 , 33 12 ,..., 33 21 , 33 22 ,.
3 n1 , 33 n2 ..., 34 1 , ..., 34 2 , ...,
34 n ,..., 35, 36, and T
And an output terminal 37 for outputting S.

【0034】入力処理部211は、入力端子3111,3
12,・・・から1プログラムを構成する複数のPES
を入力し、後述する各種処理を施して得られた多重化す
る対象となる出力を被選択端子3311,3312,・・
・,341から出力する。入力処理部212,・・・,2
nも入力処理部211と同様に、それぞれ、1プログラ
ムを構成する複数のPESを、入力端子3121,3
22,・・・,31n1,31n2,・・・から入力し、各
種処理を施して得られた多重化する対象となる出力を被
選択端子3321,3322,・・・,342,・・・,3
n1,33n2,・・・,34nから出力する。
The input processing unit 21 1 includes an input terminal 31 11, 3
Multiple PESs that constitute one program from 1 12 ,.
, And outputs to be multiplexed obtained by performing various processes described later are output to the selected terminals 33 11 , 33 12 ,.
・, 34 Output from 1 Input processing unit 21 2, ..., 2
1 n also like the input processing unit 21 1, respectively, a plurality of PES constituting one program, an input terminal 31 21, 3
1 22, ..., 31 n1, 31 n2, input from ..., fixed terminal 33 21 of interest output multiplex obtained by performing various kinds of processing, 33 22, ..., 34 2 ,…, 3
Output from 3 n1 , 33 n2 ,..., 34 n .

【0035】なお、ここでは、入力処理部211,2
2,・・・,21nがそれぞれ同様の構成からなり且つ
同様の動作を行うことから、入力処理部212,・・
・,21nの説明及び図示を省略し、入力処理部211
ついて代表して説明する。
Here, the input processing units 21 1 , 2
1 2, ..., since performing and similar operations will 21 n from the same configuration, the input processing unit 21 2, ...
-, not described and illustrated in the 21 n, it will be representatively described the input processing unit 21 1.

【0036】入力処理部211は、それぞれ1本のPE
Sを入力する入力制御部2711,2712,・・・と、こ
れらの入力制御部2711,2712,・・・からのPES
をそれぞれ入力して一時記憶するバッファ2811,28
12,・・・と、入力制御部2711に付随する基準時間不
連続点検出部291と、上述したPCRを含むPCRパ
ケットを生成するPCRパケット生成部301とを備え
る。
The input processing unit 21 1 has one PE
Input control unit 27 11, 27 12 for inputting S, and..., These input control unit 27 11, 27 12, PES from ...
28 11 , 28 for inputting and temporarily storing
Comprising 12, a., The reference time discontinuous point detecting unit 29 1 associated with the input control unit 27 11, and a PCR packet generating portion 30 1 that generates a PCR packet containing the PCR as described above.

【0037】入力制御部2711,2712,・・・は、そ
れぞれ、PESパケットを入力端子3111,3112,・
・・から1バイトずつ入力する。そして、入力制御部2
11,2712,・・・は、それぞれ、入力したPESパ
ケットを後段のバッファ2811,2812,・・・に供給
する。また、入力制御部2711,2712,・・・は、そ
れぞれ、図示しないメモリを有しており、表示の最小単
位であるPU(Presentation Unit)や符号化の最小単
位であるAU(Access Unit)の制御開始後における入
力順を示すインデックス番号と、各インデックス番号に
対応するヘッダ情報とをメモリに保持し、多重化制御部
25に供給する。さらに、入力制御部2711は、PES
ヘッダ内に重畳されている上述したESCRを取得し、
このESCRを取得したタイミングを示すラッチ信号と
ESCRのデコード値とを、後段の基準時間不連続点検
出部291及びPCRパケット生成部301に出力する。
The input control units 27 11 , 27 12 ,... Respectively output the PES packets to the input terminals 31 11 , 31 12 ,.
・ Enter one byte at a time. And the input control unit 2
7 11, 27 12, ..., respectively, the subsequent buffer 28 11 PES packets input, 28 12, and supplies the .... Each of the input control units 27 11 , 27 12 ,... Has a memory (not shown), and a PU (Presentation Unit) as a minimum unit for display and an AU (Access Unit) as a minimum unit for encoding. The index numbers indicating the input order after the start of the control in (1) and the header information corresponding to each index number are stored in the memory and supplied to the multiplexing control unit 25. Further, the input control unit 27 11
Obtain the above ESCR superimposed in the header,
A decode value of the latch signal and ESCR indicating the timing acquired the ESCR, and outputs to the subsequent reference time discontinuous point detecting unit 29 1 and the PCR packet generating portion 30 1.

【0038】バッファ2811,2812,・・・は、それ
ぞれ、データが書き込まれた順番でデータを読み出すF
IFO(First-In First-Out)形式のものであり、入力
制御部2711,2712,・・・から供給されたPESパ
ケットを一時記憶する。バッファ2811,2812,・・
・は、それぞれ、多重化制御部25の制御により動作す
る多重スイッチ24が被選択端子3311,3312,・・
・のいずれかを選択することでPESが多重化されるタ
イミングまで、入力したPESパケットを一時記憶す
る。そして、バッファ2811,2812,・・・は、それ
ぞれ、記憶・保持しているPESパケットを被選択端子
3311,3312,・・・へと供給する。被選択端子33
11,3312,・・・に供給されたPESパケットは、そ
れぞれ、多重スイッチ24の選択によりTP長単位で読
み出され多重化される。
The buffers 28 11 , 28 12 ,... Read out data in the order in which the data was written.
It is of an IFO (First-In First-Out) format, and temporarily stores the PES packets supplied from the input control units 27 11 , 27 12 ,. Buffers 28 11 , 28 12 , ...
Indicates that the multiplex switch 24 operated under the control of the multiplexing control unit 25 has the selected terminals 33 11 , 33 12 ,.
-The input PES packet is temporarily stored until the timing at which the PES is multiplexed by selecting one of the above. The buffers 28 11 , 28 12 ,... Supply the stored and held PES packets to the selected terminals 33 11 , 33 12 ,. Selected terminal 33
The PES packets supplied to 11 , 33 12 ,... Are read and multiplexed in units of TP length by the selection of the multiplex switch 24.

【0039】基準時間不連続点検出部291は、入力制
御部2711で取得されたPESのESCRデコード値
と、このESCRが取得されたタイミングを示すラッチ
信号とを入力し、後述するように、ESCRにより再生
した基準時間が不連続となる点を検出する。なお、この
基準時間不連続点検出部291は、1プログラムにつき
1つ備えられるものであって、入力制御部2711で取得
したESCRデコード値とそのラッチ信号とではなく、
例えば入力制御部2712で取得したESCRデコード値
とそのラッチ信号を入力するようにしてもよい。
The reference time discontinuous point detecting section 29 1 receives the ESR decoded value of the PES acquired by the input control section 27 11 and a latch signal indicating the timing at which the ESCR was acquired. , The point at which the reference time reproduced by the ESCR becomes discontinuous is detected. The reference time discontinuous point detecting unit 29 1 is intended to be provided one per program, rather than the ESCR decode value obtained by the input control unit 27 11 and the latched signal,
For example ESCR decode value obtained by the input control unit 27 12 and may be input to the latch signal.

【0040】PCRパケット生成部301は、入力制御
部2711で取得したESCRデコード値に基づいて基準
時刻を再生し、この基準時刻を上述したPCRとしてエ
ンコードしてペイロードデータを有さないPCRパケッ
トを生成するとともに、所定の伝送仕様により定められ
ている多重間隔についての制約を守るように、生成した
PCRを多重化するタイミングを管理する。このPCR
パケット生成部301は、図4に示すような各部を備え
る。
The PCR packet generator 30 1 reproduces the reference time based on the ESCR decode value obtained by the input control unit 27 11, no payload data encoded as PCR described above the reference time PCR packet Is generated, and the timing for multiplexing the generated PCRs is managed so as to observe the restriction on the multiplexing interval defined by a predetermined transmission specification. This PCR
Packet generating unit 30 1 is provided with each unit as shown in FIG.

【0041】すなわち、PCRパケット生成部30
1は、図4に示すように、ESCRを取得したタイミン
グを示すラッチ信号とESCRデコード値とを入力し後
述するローカルタイムクロック(Local Time Clock;以
下、LTCと略記する。)を再生するLTC再生部38
と、このLTC再生部38により得られた出力をPCR
データとしてエンコードするPCRエンコーダ39と、
得られたPCRデータをパケット化して保持するPCR
パケットレジスタ40とを備える。
That is, the PCR packet generator 30
As shown in FIG. 4, an LTC reproduction for inputting a latch signal indicating a timing at which an ESCR is acquired and an ESCR decode value and reproducing a Local Time Clock (hereinafter abbreviated as LTC) described later is shown in FIG. Part 38
And the output obtained by the LTC reproducing unit 38
A PCR encoder 39 for encoding as data,
PCR that packetizes the obtained PCR data and holds it
A packet register 40.

【0042】LTC再生部38は、例えば図5に示すよ
うなディジタルPLL(Phase Locked Loop)回路で構
成され、任意のタイミングにおける基準時刻を出力す
る。LTC再生部38は、上述した入力制御部2711
取得したESCRデコード値と、ESCRラッチ信号に
より指定された時刻における後述するLTCカウンタ4
6からのLTCカウンタ値との差分値をとる減算器41
と、この減算器41からの出力をフィルタリングするデ
ィジタルフィルタ42と、ディジタル−アナログコンバ
ータ(Digital-Analog Converter;以下、DACと略記
する。)43と、このDAC43からの出力の直流成分
を取り出すためのローパスフィルタ(LowPass Filter;
以下、LPFと略記する。)44と、27MHzのクロ
ックを発振させるボルテージコントロールドオシレータ
(Voltage Controlled Oscillator;以下、VCOと略
記する。)45と、このVCO45により得られた27
MHzのLTCをカウントするLTCカウンタ46とを
備える。
The LTC reproducing section 38 is constituted by, for example, a digital PLL (Phase Locked Loop) circuit as shown in FIG. 5, and outputs a reference time at an arbitrary timing. LTC playback unit 38, and ESCR decode value obtained by the input control unit 27 11 described above, LTC counter 4 to be described later at the time designated by the ESCR latch signal
Subtractor 41 which takes the difference value from the LTC counter value from
, A digital filter 42 for filtering the output from the subtracter 41, a digital-analog converter (hereinafter abbreviated as DAC) 43, and a DC component for extracting the DC component of the output from the DAC 43. Low Pass Filter (LowPass Filter;
Hereinafter, it is abbreviated as LPF. ) 44, a Voltage Controlled Oscillator (hereinafter abbreviated as VCO) 45 for oscillating a 27 MHz clock, and 27 obtained by the VCO 45.
And an LTC counter 46 for counting the LTC of MHz.

【0043】このようなLTC再生部38は、同図中破
線矢印に示すように、入力制御部2711から入力したE
SCRデコード値を、制御開始時のみLTCカウンタ4
6にロードし、減算器41からの出力初期値として
“0”を得る。それ以後、LTC再生部38は、入力制
御部2711がESCRを捕捉する度に、ESCRデコー
ド値を減算器41に入力し、この減算器41によって、
ESCRデコード値と、LTCカウンタ46の出力との
差分値をとり、その差分値に対してディジタルフィルタ
42を通過させる。そして、LTC再生部38は、ディ
ジタルフィルタ42を通過させて得られた出力を、DA
C43によりアナログ信号に変換し、このアナログ信号
の直流成分を取り出すためにLPF44を通過させる。
さらに、LTC再生部38は、LPF44を通過させて
得られた信号の電圧を制御電圧として、27MHzのク
ロックを発振させるVCO45へと入力して、27MH
zのLTCを生成する。そして、LTC再生部38は、
得られたLTCをLTCカウンタ46へと入力し、この
LTCカウンタ46の出力であるLTCカウンタ値を、
図4に示したPCRエンコーダ39及び減算器41に供
給する。
[0043] Such LTC reproducing unit 38, as shown in broken line arrows in the figure, E input from the input control unit 27 11
The SCR decode value is set to the LTC counter 4 only at the start of control.
6 to obtain “0” as an output initial value from the subtractor 41. Since then, the LTC reproduction unit 38, every time the input control unit 27 11 captures the ESCR, enter the ESCR decode value to the subtractor 41, by the subtractor 41,
The difference value between the ESCR decoded value and the output of the LTC counter 46 is obtained, and the difference value is passed through the digital filter 42. Then, the LTC reproducing unit 38 outputs the output obtained by passing through the digital filter 42 to the DA
The signal is converted into an analog signal by C43, and is passed through an LPF 44 to extract a DC component of the analog signal.
Further, the LTC reproducing unit 38 inputs the voltage of the signal obtained through the LPF 44 as a control voltage to the VCO 45 that oscillates a 27 MHz clock, and
Generate LTC of z. Then, the LTC playback unit 38
The obtained LTC is input to the LTC counter 46, and the LTC counter value output from the LTC counter 46 is
It is supplied to the PCR encoder 39 and the subtractor 41 shown in FIG.

【0044】このようなLTC再生部38は、以後同様
の処理を繰り返すことによって、LPF44によるVC
O45への制御電圧の調整によりフィードバック制御が
作用し、安定したLTCを得る。その結果、LTC再生
部38は、VCO45からのLTCをLTCカウンタ4
6でカウントすることで、ESCRから再生された基準
時刻値を得る。
The LTC reproducing section 38 repeats the same processing thereafter to thereby obtain the VC by the LPF 44.
Feedback control operates by adjusting the control voltage to O45, and a stable LTC is obtained. As a result, the LTC reproducing unit 38 outputs the LTC from the VCO 45 to the LTC counter 4.
By counting at 6, the reference time value reproduced from the ESCR is obtained.

【0045】PCRエンコーダ39は、LTC再生部3
8により得られた任意のタイミングにおける出力をPC
Rデータとしてエンコードする。
The PCR encoder 39 is provided in the LTC playback unit 3
8 at an arbitrary timing obtained by PC
Encode as R data.

【0046】PCRパケットレジスタ40は、PCRエ
ンコーダ39により得られたPCRデータをパケット化
し、保持する。
The PCR packet register 40 packetizes and holds the PCR data obtained by the PCR encoder 39.

【0047】このような各部を備えるPCRパケット生
成部301は、生成したPCRパケットを多重化するタ
イミングに至ると、多重化制御部25に対して多重要求
を送信して、多重化するPCRパケットを被選択端子3
1に供給する。被選択端子341に供給されたPCRパ
ケットは、多重スイッチ24の選択により読み出され多
重化される。なお、このPCRパケット生成部30
1は、1プログラムにつき1つ備えられるものであっ
て、入力制御部2711で取得したESCRデコード値で
はなく、例えば入力制御部2712で取得したESCRデ
コード値に基づいて基準時刻を再生してもよい。
The PCR packet PCR packet generating portion 30 1 having such respective units and reaches the generated PCR packet to the timing of multiplexing, which transmits the multiplexed request to the multiplexing control section 25 multiplexes Is the selected terminal 3
4 Supply to 1 . PCR packet supplied to the fixed terminal 34 1 is multiplexed is read by the selection of the multiplex switch 24. The PCR packet generator 30
1 is intended to be provided one per program, rather than the ESCR decode value obtained by the input control unit 27 11, for example by reproducing the reference time based on the ESCR decode value obtained by the input control unit 27 12 Is also good.

【0048】多重化装置20は、このような入力処理部
211と同様の構成である入力処理部212,・・・,2
nを備え、複数プログラム分のPESを入力して処理
する。
The multiplexer 20, such an input processing unit 21 1 and the same configuration input processing unit 21 2, ..., 2
1 n , and inputs and processes PES for a plurality of programs.

【0049】なお、以下の説明では、例えば、入力処理
部211,212,・・・,21nを入力処理部21と総
称するように、各部を示す符号に付した添え字を省略す
る。
[0049] In the following explanation will be omitted, for example, input processing unit 21 1, 21 2, ..., as collectively referred to as the input processing section 21 to 21 n, the subscript subjected to code indicating each section .

【0050】図1に示した制御データ生成部22は、受
信側にてプログラムを再生する際に必要となるいわゆる
PAT、PMT、CAT等の制御データを作成してTP
を生成する。この制御データ生成部22は、制御データ
を作成するためのパラメータを入力端子32を介して外
部から入力する。また、制御データ生成部22は、任意
の制御データを多重化すべきタイミングに至ったとき
に、この制御データを被選択端子35に供給する。被選
択端子35に供給された制御データは、多重スイッチ2
4の選択により読み出され多重化される。
The control data generator 22 shown in FIG. 1 creates control data such as PAT, PMT, and CAT necessary for reproducing a program on the receiving side,
Generate The control data generation unit 22 inputs parameters for generating control data from the outside via the input terminal 32. Further, the control data generator 22 supplies the control data to the selected terminal 35 when it is time to multiplex any control data. The control data supplied to the selected terminal 35 is
4 is read and multiplexed.

【0051】ヌルパケット生成部23は、MPEG2で
規定されているヌルパケットを生成する。ヌルパケット
生成部23は、PESパケット、制御データパケット、
PCRパケットのいずれも多重化する必要のないタイミ
ング、或いはこれらのパケットのいずれも多重化するこ
とが禁止されたタイミングにおいて多重化するためのペ
イロードデータを有さないヌルパケットを生成し、被選
択端子36へと供給する。被選択端子36に供給された
ヌルパケットは、多重スイッチ24の選択により読み出
され多重化される。ヌルパケットは、その内容が無意味
であり、受信側にてデコードされるものではない。
The null packet generator 23 generates a null packet defined by MPEG2. The null packet generator 23 includes a PES packet, a control data packet,
A null packet having no payload data for multiplexing at a timing at which none of the PCR packets need to be multiplexed or at a timing at which any of these packets is prohibited from being multiplexed, and a selected terminal To 36. The null packet supplied to the selected terminal 36 is read and multiplexed by selecting the multiplex switch 24. The contents of the null packet are meaningless and are not decoded on the receiving side.

【0052】多重化制御部25は、PESパケット、制
御データパケット、PCRパケット、ヌルパケットのう
ち、いずれのパケットを選択するかを決定する。多重化
制御部25は、多重スイッチ24に対して選択信号を送
信して多重スイッチ24を動作させ、選択したパケット
を出力する被選択端子と多重スイッチ24とを接続させ
ることにより、多重チャンネルを制御する。多重化制御
部25は、多重化するパケットを選択するために、入力
制御部27からPESやAUのストリーム情報を読み出
すとともに、バッファ28から保持しているデータに関
する占有量情報を読み出す。また、多重化制御部25
は、制御データ生成部22で生成された制御データパケ
ットを選択する際には、所定の最大出力間隔を満たすこ
とができるように、出力時刻を内部で管理する。さら
に、多重化制御部25は、PESパケット、制御データ
パケット、PCRパケットのいずれも多重化する必要の
ないタイミング、或いはこれらのパケットのいずれも多
重化することが禁止されたタイミングであると判断した
場合には、ヌルパケット生成部23からのヌルパケット
を多重化するように多重化スイッチ24を制御する。
The multiplexing control unit 25 determines which of the PES packet, the control data packet, the PCR packet and the null packet is to be selected. The multiplexing control unit 25 controls the multiplexing channel by transmitting a selection signal to the multiplexing switch 24 to operate the multiplexing switch 24 and connecting the selected terminal for outputting the selected packet to the multiplexing switch 24. I do. The multiplexing control unit 25 reads the PES or AU stream information from the input control unit 27 and reads the occupation amount information on the stored data from the buffer 28 in order to select a packet to be multiplexed. The multiplexing control unit 25
When selecting the control data packet generated by the control data generator 22, the output time is internally managed so that a predetermined maximum output interval can be satisfied. Further, the multiplexing control unit 25 has determined that it is a timing at which it is not necessary to multiplex any of the PES packet, the control data packet, and the PCR packet, or a timing at which multiplexing of any of these packets is prohibited. In this case, the multiplexing switch 24 is controlled so as to multiplex null packets from the null packet generator 23.

【0053】出力制御部26は、多重化制御部25の制
御のもとに選択されたパケットを入力し、出力端子37
を介して所定の出力ビットレートで複数のTPから構成
されるTSを図示しない伝送路へ出力する。出力制御部
26は、多重化制御部25から多重化するデータの種別
を読み出すとともに、そのデータを入力した入力制御部
からデータの属性を読み出し、これらに基づいたTPヘ
ッダを付加してTPを生成して出力する。
The output control unit 26 inputs the selected packet under the control of the multiplex control unit 25 and outputs the selected packet.
And outputs a TS composed of a plurality of TPs at a predetermined output bit rate to a transmission path (not shown). The output control unit 26 reads out the type of the data to be multiplexed from the multiplexing control unit 25, reads out the attribute of the data from the input control unit that has input the data, and adds a TP header based on these to generate a TP. And output.

【0054】このような多重化装置20は、多重化制御
部25の制御にしたがって、多重スイッチ24を動作さ
せ、多重化するPESや制御データを選択し、この選択
したPESや制御データをTP単位で多重化して1本の
TSを生成し、出力端子37を介して出力する。その
際、多重化装置20は、図6に示すような一連の処理を
基準時間不連続点検出部29により行うことによって、
入力したPESのESCRにより再生した基準時間が不
連続であるかを否かを検出する。
The multiplexing device 20 operates the multiplexing switch 24 according to the control of the multiplexing control unit 25 to select the PES or control data to be multiplexed, and converts the selected PES or control data into TP units. To generate one TS and output it via the output terminal 37. At that time, the multiplexing device 20 performs a series of processes as shown in FIG.
It is detected whether or not the reference time reproduced by the ESCR of the input PES is discontinuous.

【0055】すなわち、多重化装置20は、同図に示す
ように、ステップS1において、基準時間不連続点検出
部29によって、入力したPESにおけるESCRのラ
ッチ信号に応じて、入力制御部27からのESCRデコ
ード値とこのESCRより再生した基準時間であるLT
Cとを取得する。
That is, as shown in the figure, in the multiplexing device 20, in step S1, the reference time discontinuous point detecting unit 29 outputs the signal from the input control unit 27 in accordance with the ESCR latch signal in the input PES. ESCR decode value and LT which is reference time reproduced from this ESCR
And C.

【0056】続いて、多重化装置20は、ステップS2
において、基準時間不連続点検出部29によって、次式
(1)及び次式(2)にそれぞれ示すように、取得した
LTC及びESCRデコード値のそれぞれの初期値から
の増分を算出する。
Subsequently, the multiplexing device 20 determines in step S2
, The reference time discontinuous point detector 29 calculates the increment of the acquired LTC and ESCR decode values from the respective initial values as shown in the following equations (1) and (2).

【0057】 ΔLTC=LTC−LTC0 ・・・(1) ΔESCR=ESCR−ESCR0 ・・・(2) 上式(1)及び上式(2)において、LTC及びESC
Rは、それぞれ、取得したLTC及びESCRデコード
値を示し、LTC0及びESCR0は、それぞれ、LT
C及びESCRデコード値の初期値を示し、ΔLTC及
びΔESCRは、それぞれ、LTC及びESCRデコー
ド値の増分を示している。
ΔLTC = LTC−LTC0 (1) ΔESCR = ESCR−ESCR0 (2) In the above equations (1) and (2), LTC and ESC
R indicates the obtained LTC and ESCR decode values, respectively, and LTC0 and ESCR0 indicate LT and ESCR, respectively.
C and the initial values of the ESCR decode values are shown, and ΔLTC and ΔESCR indicate the increments of the LTC and ESCR decode values, respectively.

【0058】そして、多重化装置20は、ステップS3
において、基準時間不連続点検出部29によって、次式
(3)に示すように、LTC及びESCRデコード値の
増分間の距離が、予め設定された閾値TH以下であるか
を判別する。
Then, the multiplexing device 20 determines in step S3
In the above, the reference time discontinuous point detection unit 29 determines whether or not the distance between the LTC and ESCR decode value increments is equal to or less than a preset threshold TH as shown in the following equation (3).

【0059】 |ΔESCR−ΔLTC|≦TH ・・・(3)| ΔESCR−ΔLTC | ≦ TH (3)

【0060】ここで、上式(3)を満たさない場合、す
なわち、LTC及びESCRデコード値の増分間の距離
が閾値THよりも大きいと判別した場合には、多重化装
置20は、ステップS4へと処理を移行する。多重化装
置20は、ステップS4において、基準時間不連続点検
出部29によって、取得したLTC及びESCRデコー
ド値をそれぞれ、以後入力するPESに対するLTC及
びESCRデコード値の初期値に設定するとともに、図
3に示したTPヘッダ7中の不連続インディケータフィ
ールド10に、ESCRにより再生した基準時間が不連
続であることを識別する識別子である不連続インディケ
ータフラグ“1”を付与するため、入力制御部27が有
して管理する図示しないメモリに、不連続インディケー
タフィールド10に付与する不連続インディケータフラ
グ“1”を、入力したPESのエントリとして書き込
む。多重化装置20において基準時間不連続点検出部2
9は、このようにして一連の処理を終了し、次に入力す
るPESに関する検査を行うまで待機する。
If the above equation (3) is not satisfied, that is, if it is determined that the distance between the increment of the LTC and ESCR decode values is larger than the threshold value TH, the multiplexing device 20 proceeds to step S4. And transfer processing. In step S4, the multiplexing device 20 sets the LTC and ESCR decoded values acquired by the reference time discontinuous point detection unit 29 to the initial values of the LTC and ESCR decoded values for the PES to be subsequently input, respectively. In order to add a discontinuous indicator flag “1”, which is an identifier for identifying that the reference time reproduced by the ESCR is discontinuous, to the discontinuous indicator field 10 in the TP header 7 shown in FIG. The discontinuous indicator flag “1” to be added to the discontinuous indicator field 10 is written as an entry of the input PES into a memory (not shown) managed and provided. Reference time discontinuity detecting unit 2 in multiplexer 20
9 completes a series of processes in this way, and waits until an inspection for the next input PES is performed.

【0061】一方、上式(3)を満たす場合には、多重
化装置20において基準時間不連続点検出部29は、入
力したPESに関する一連の処理を終了し、次に入力す
るPESに関する検査を行うまで待機する。この場合、
不連続インディケータフィールド10には、“0”が付
与されることになる。
On the other hand, if the above equation (3) is satisfied, the reference time discontinuity point detecting section 29 in the multiplexer 20 ends a series of processings for the input PES, and checks the next input PES. Wait until done. in this case,
“0” is added to the discontinuous indicator field 10.

【0062】多重化装置20は、入力したPESに関す
る上述した処理を繰り返し、検査を完了する度に入力制
御部27が管理するメモリに、不連続インディケータフ
ィールド10に付与する不連続インディケータフラグを
PES毎のエントリとして書き込む。
The multiplexing device 20 repeats the above-described processing for the input PES, and stores a discontinuity indicator flag to be added to the discontinuity indicator field 10 in the memory managed by the input control unit 27 every time the inspection is completed. Write as an entry.

【0063】そして、多重化装置20は、出力制御部2
6が入力制御部27から不連続インディケータフィール
ド10に付与すべき不連続インディケータフラグを読み
出し、不連続点を検出したPESを多重化して出力する
直前に、このPESが属するプログラムのPCRパケッ
トの不連続インディケータフィールド10に不連続イン
ディケータフラグ“1”を付与し、多重化してTSとし
て出力する。
Then, the multiplexing device 20 controls the output control unit 2
6 reads the discontinuity indicator flag to be added to the discontinuity indicator field 10 from the input control unit 27, and immediately multiplexes and outputs the PES for which the discontinuous point is detected, immediately before the PES to which the PES belongs belongs. A discontinuous indicator flag "1" is added to the indicator field 10, multiplexed and output as a TS.

【0064】このようにして、多重化装置20は、入力
したPESのESCRにより再生した基準時間が不連続
となる点を検出することができ、基準時間に不連続点が
発生することを受信側に通知することができる。したが
って、このようなTSを受信する受信側は、基準時間が
不連続となっているTSを受信した場合にも、破綻する
ことなく、再生することができる。
In this way, the multiplexer 20 can detect the point where the reference time reproduced by the ESCR of the input PES becomes discontinuous, and recognizes that the discontinuity occurs in the reference time. Can be notified. Therefore, the receiving side that receives such a TS can reproduce without fail even when receiving a TS whose reference time is discontinuous.

【0065】つぎに、上述した多重化装置20の他の構
成について図7を参照して説明する。図7に示す多重化
装置50は、基本構成を図1に示した多重化装置20と
同様とし、外部から入力した基準時間不連続インディケ
ータ信号に基づいて、受信側に不連続点を通知すること
に特徴を有している。したがって、先に図1に示した多
重化装置20と同様の構成については同一符号を付して
詳細な説明を省略する。なお、ここでも、例えば、入力
処理部211,212,・・・,21nを入力処理部21
と総称するように、各部を示す符号に付した添え字を省
略して説明する。
Next, another configuration of the multiplexing device 20 will be described with reference to FIG. The multiplexing device 50 shown in FIG. 7 has a basic configuration similar to that of the multiplexing device 20 shown in FIG. 1, and notifies the receiving side of a discontinuity point based on a reference time discontinuity indicator signal input from the outside. It has features. Therefore, the same components as those of the multiplexer 20 shown in FIG. 1 are denoted by the same reference numerals, and detailed description thereof will be omitted. Note that again, for example, input processing unit 21 1, 21 2,..., Enter 21 n processing unit 21
The description will be made by omitting the suffixes attached to the reference numerals indicating the respective parts.

【0066】多重化装置50は、外部から複数プログラ
ム分のPESを入力し、これらのPESを1本のTSに
多重化するものである。
The multiplexing device 50 inputs PESs for a plurality of programs from the outside and multiplexes these PESs into one TS.

【0067】多重化装置50は、PESを入力する経路
とは異なる経路から、PESに対応する基準時間不連続
インディケータ信号を入力制御部27に入力する。この
基準時間不連続インディケータ信号は、例えば、多重化
装置50に入力するPESのESCRにより再生される
基準時間が不連続であることを検出する多重化装置50
とは異なる図示しない基準時間不連続点検出部から、入
力するPESと同期して送られてくるものである。多重
化装置50は、入力制御部27にPESとともに基準時
間不連続インディケータ信号が入力されたことを判別す
ると、図3に示したTPヘッダ7中の不連続インディケ
ータフィールド10に不連続インディケータフラグ
“1”を付与するため、入力制御部27が有して管理す
る図示しないメモリに、不連続インディケータフィール
ド10に付与する情報としての不連続インディケータフ
ラグ“1”を、入力したPESのエントリとして書き込
む。
The multiplexer 50 inputs the reference time discontinuity indicator signal corresponding to the PES to the input control unit 27 from a path different from the path for inputting the PES. The reference time discontinuity indicator signal is, for example, a multiplexer 50 that detects that the reference time reproduced by the ESCR of the PES input to the multiplexer 50 is discontinuous.
This is transmitted in synchronization with the input PES from a reference time discontinuity point detection unit (not shown) different from the above. When the multiplexer 50 determines that the reference time discontinuous indicator signal has been input together with the PES to the input control unit 27, the multiplexer 50 stores the discontinuous indicator flag “1” in the discontinuous indicator field 10 of the TP header 7 shown in FIG. In this case, a discontinuous indicator flag “1” as information to be added to the discontinuous indicator field 10 is written as an entry of the input PES into a memory (not shown) which the input control unit 27 has and manages.

【0068】そして、多重化装置50は、出力制御部2
6が入力制御部27から不連続インディケータフィール
ド10に付与すべき不連続インディケータフラグを読み
出し、不連続点を検出したPESを多重化して出力する
直前に、このPESが属するプログラムのPCRパケッ
トの不連続インディケータフィールド10に不連続イン
ディケータフラグ“1”を付与し、多重化してTSとし
て出力する。
Then, the multiplexing device 50 controls the output control unit 2
6 reads the discontinuity indicator flag to be added to the discontinuity indicator field 10 from the input control unit 27, and immediately multiplexes and outputs the PES for which the discontinuous point is detected, immediately before the PES to which the PES belongs belongs. A discontinuous indicator flag "1" is added to the indicator field 10, multiplexed and output as a TS.

【0069】このようにすることによって、多重化装置
50は、入力したPESのESCRにより再生した基準
時間が不連続であることを認識し、この情報をTSに重
畳して出力することによって、基準時間に不連続点が発
生することを受信側に通知することができる。したがっ
て、このようなTSを受信する受信側は、基準時間が不
連続となっているTSを受信した場合にも、破綻をきた
すことなく、再生することができる。
In this manner, the multiplexer 50 recognizes that the reference time reproduced by the ESCR of the input PES is discontinuous, and superimposes this information on the TS to output the information. The receiving side can be notified that a discontinuity occurs in time. Accordingly, the receiving side that receives such a TS can reproduce the TS without a failure even when receiving a TS whose reference time is discontinuous.

【0070】以上のように、本発明を適用した実施の形
態として示す多重化装置20,50は、検出された基準
時間の不連続情報を受信側に通知することができ、受信
側における再生時の破綻を防止することができる。
As described above, the multiplexing devices 20 and 50 shown as the embodiments to which the present invention is applied can notify the receiving side of the discontinuity information of the detected reference time, and can perform the reproduction at the receiving side. Can be prevented.

【0071】なお、以下に説明するように、多重化装置
において検出した基準時間の不連続を積極的に解消した
TSを受信側に送信するように構成することもできる。
As described below, it is also possible to transmit to the receiving side a TS in which the discontinuity of the reference time detected by the multiplexing device has been positively eliminated.

【0072】この場合、多重化装置は、例えば図8に示
すような構成からなる。なお、多重化装置60は、基本
構成を図1に示した多重化装置20と同様とするため、
多重化装置20と同様の構成については同一符号を付し
て詳細な説明を省略する。また、ここでも、例えば、入
力処理部211,212,・・・,21nを入力処理部2
1と総称するように、各部を示す符号に付した添え字を
省略して説明する。
In this case, the multiplexing apparatus has a configuration as shown in FIG. 8, for example. The multiplexing device 60 has the same basic configuration as the multiplexing device 20 shown in FIG.
The same components as those of the multiplexer 20 are denoted by the same reference numerals, and detailed description thereof will be omitted. Also, again, for example, input processing unit 21 1, 21 2,..., Enter 21 n processing unit 2
The description will be made by omitting the suffixes attached to the reference numerals indicating the respective parts so as to be generically referred to as 1.

【0073】多重化装置60は、外部から複数プログラ
ム分のPESを入力し、これらのPESを1本のTSに
多重化する。多重化装置60は、入力制御部27に対応
して付随する基準時間不連続点検出部29を備え、この
基準時間不連続点検出部29とPCRパケット生成部3
0との間でのデータの送受信を可能とするように構成さ
れる。
The multiplexing device 60 receives PESs for a plurality of programs from the outside and multiplexes these PESs into one TS. The multiplexing device 60 includes a reference time discontinuity point detection unit 29 associated with the input control unit 27, and the reference time discontinuity point detection unit 29 and the PCR packet generation unit 3
It is configured to be able to transmit and receive data to and from 0.

【0074】入力制御部27は、入力したPESに重畳
されているESCRを取得し、このESCRデコード値
を後段の基準時間不連続点検出部29に出力するととも
に、ESCRを取得したタイミングを示すラッチ信号を
後段のPCRパケット生成部30に出力する。
The input control unit 27 obtains the ESCR superimposed on the input PES, outputs this ESCR decoded value to the reference time discontinuous point detection unit 29 at the subsequent stage, and latches the timing at which the ESCR was obtained. The signal is output to the PCR packet generator 30 at the subsequent stage.

【0075】そして、ESCRラッチ信号が供給された
PCRパケット生成部30は、そのタイミングにおける
LTCカウンタ値を取得し、このLTCカウンタ値を基
準時間不連続点検出部29に出力する。
Then, the PCR packet generator 30 to which the ESCR latch signal has been supplied acquires the LTC counter value at that timing, and outputs this LTC counter value to the reference time discontinuity point detector 29.

【0076】基準時間不連続点検出部29は、後述する
ように、ESCRにより再生した基準時間が不連続とな
る点を検出するとともに、再生する基準時間が連続とな
るように、不連続であるESCRデコード値を変換し、
この変換した値ESCR’をPCRパケット生成部30
に出力する。
As will be described later, the reference time discontinuity point detector 29 detects a point at which the reference time reproduced by the ESCR is discontinuous, and is discontinuous so that the reproduction reference time is continuous. Convert the ESCR decode value,
The converted value ESCR 'is used as the
Output to

【0077】このような多重化装置60は、図9に示す
ような一連の処理を行うことによって、入力したPES
のESCRにより再生した基準時間の不連続点を検出
し、出力基準時刻情報であるPCRが連続となるよう
に、ESCRデコード値を変換してESCR’を求める
とともに、上述したPTSやDTSの付け替えを行うた
めに、これらのPTS及びDTSのシフト量ΔTSを決
定する。
The multiplexing device 60 performs a series of processes as shown in FIG.
The discontinuous point of the reference time reproduced by the ESCR is detected, the ESCR decode value is converted to obtain the ESCR ′ so that the PCR which is the output reference time information is continuous, and the PTS or DTS replacement is performed. In order to perform this, the shift amount ΔTS of these PTS and DTS is determined.

【0078】すなわち、多重化装置60は、同図に示す
ように、ステップS11において、基準時間不連続点検
出部29によって、入力したPESにおけるESCRの
ラッチ信号に応じて、入力制御部27からのESCRデ
コード値と、このESCRより再生した基準時間である
PCRパケット生成部30からのLTCとを取得する。
That is, in step S11, the multiplexing device 60 receives the ESCR latch signal of the PES from the input control unit 27 by the reference time discontinuity detecting unit 29 in step S11. An ESCR decode value and an LTC from the PCR packet generating unit 30, which is a reference time reproduced from the ESCR, are obtained.

【0079】続いて、多重化装置60は、ステップS1
2において、基準時間不連続点検出部29によって、上
式(1)及び上式(2)に示したように、取得したLT
C及びESCRデコード値のそれぞれの初期値からの増
分を算出する。
Subsequently, the multiplexing device 60 executes step S1.
2, the LT acquired by the reference time discontinuous point detection unit 29 as shown in the above equations (1) and (2).
The increment from the initial value of each of the C and ESCR decode values is calculated.

【0080】そして、多重化装置60は、ステップS1
3において、基準時間不連続点検出部29によって、上
式(3)に示したように、LTC及びESCRデコード
値の増分間の距離が、予め設定された閾値TH以下であ
るかを判別する。
Then, the multiplexing device 60 executes step S1.
In 3, the reference time discontinuous point detector 29 determines whether or not the distance between the LTC and ESCR decode value increments is equal to or less than a predetermined threshold TH as shown in the above equation (3).

【0081】ここで、上式(3)を満たす場合、すなわ
ち、LTC及びESCRデコード値の増分間の距離が閾
値TH以下であると判別した場合には、多重化装置60
は、ステップS14へと処理を移行する。多重化装置6
0は、ステップS14において、基準時間不連続点検出
部29によって、次式(4)に示すようにLTCの初期
値LTC0とESCRデコード値の初期値からの増分Δ
ESCRとに基づいて、ESCRデコード値を変換して
ESCR’を求める。
Here, when the above equation (3) is satisfied, that is, when it is determined that the distance between the increment of the LTC and ESCR decode values is equal to or less than the threshold value TH, the multiplexing device 60
Shifts the processing to step S14. Multiplexer 6
In step S14, the reference time discontinuous point detector 29 calculates the increment Δ from the LTC initial value LTC0 and the ESCR decode value from the initial value as shown in the following equation (4).
Based on the ESCR, the ESCR decode value is converted to obtain ESCR '.

【0082】 ESCR’=LTC0+ΔESCR ・・・(4)ESCR ′ = LTC0 + ΔESCR (4)

【0083】多重化装置60において基準時間不連続点
検出部29は、求めたESCR’をPCRパケット生成
部30に出力して一連の処理を終了し、次に入力するP
ESに関する処理を行うまで待機する。
In the multiplexer 60, the reference time discontinuity point detector 29 outputs the obtained ESCR 'to the PCR packet generator 30, ends a series of processing, and then inputs the next input P
It waits until processing related to ES is performed.

【0084】一方、上式(3)を満たさない場合、すな
わち、LTC及びESCRデコード値の増分間の距離が
閾値THよりも大きいと判別した場合には、多重化装置
60は、ステップS15へと処理を移行する。多重化装
置60は、ステップS15において、基準時間不連続点
検出部29によって、取得したLTCをESCR’とす
るとともに、取得したLTC及びESCRデコード値を
それぞれ、以後入力するPESに対するLTC及びES
CRデコード値の初期値に設定し、さらにPTSやDT
Sを変換するためのシフト量ΔTSを次式(5)により
算出する。
On the other hand, if the above equation (3) is not satisfied, that is, if it is determined that the distance between the increment of the LTC and ESCR decode values is larger than the threshold value TH, the multiplexer 60 proceeds to step S15. Transfer processing. In step S15, the multiplexing device 60 sets the LTC acquired by the reference time discontinuous point detection unit 29 to ESCR ′, and converts the acquired LTC and ESCR decoded values into LTC and ES for the PES to be input thereafter.
Set to the initial value of the CR decode value, and furthermore, PTS and DT
The shift amount ΔTS for converting S is calculated by the following equation (5).

【0085】 ΔTS=LTC0−ESCR0 ・・・(5)ΔTS = LTC0−ESCR0 (5)

【0086】多重化装置60において基準時間不連続点
検出部29は、求めたESCR’をPCRパケット生成
部30に出力するとともに、求めたΔTSを入力制御部
27が有して管理する図示しないメモリに、PESの属
性データとして追加エントリし、出力制御部26がこの
ΔTSを読み出せる状態にして一連の処理を終了し、次
に入力するPESに関する処理を行うまで待機する。
In the multiplexer 60, the reference time discontinuity point detector 29 outputs the obtained ESCR 'to the PCR packet generator 30 and a memory (not shown) for the input controller 27 to manage the obtained ΔTS. Then, an additional entry is made as PES attribute data, the output control unit 26 sets this ΔTS to be readable, and a series of processing is completed.

【0087】多重化装置60は、PCRパケット生成部
30が有する上述したLTC再生部38によって、入力
されたESCR’を用いて基準時間を再生する。この基
準時間は、連続的に推移する。したがって、PCRパケ
ット生成部30で生成されて多重化されたPCRパケッ
トを受信する受信側における基準時間は、連続的に推移
するものとなる。
The multiplexing device 60 reproduces the reference time using the input ESCR ′ by the above-mentioned LTC reproducing unit 38 included in the PCR packet generating unit 30. This reference time changes continuously. Therefore, the reference time on the receiving side that receives the multiplexed PCR packets generated by the PCR packet generation unit 30 changes continuously.

【0088】また、多重化装置60は、PTSやDTS
を含むPESパケットを多重化して出力する際には、出
力制御部26が入力制御部27からこれらのPTS及び
/又はDTSに対応するΔTSを読み込み、PTS及び
/又はDTSのデコード値にΔTSを加算してエンコー
ドしたものを、適正なPTS及び/又はDTSとして、
上述したPESヘッダ2中のPTSフィールド4及び/
又はDTSフィールド5の値を付け替え、多重化してT
Sとして出力する。
The multiplexing device 60 is provided with a PTS or DTS
When multiplexing and outputting a PES packet including PTS, the output control unit 26 reads ΔTS corresponding to these PTS and / or DTS from the input control unit 27 and adds ΔTS to the decoded value of PTS and / or DTS. Is encoded as appropriate PTS and / or DTS,
The PTS field 4 in the PES header 2 and / or
Alternatively, the value of the DTS field 5 is replaced, multiplexed, and T
Output as S.

【0089】このようにして、多重化装置60は、入力
したPESのESCRにより再生した基準時間が不連続
となる点を検出するとともに、基準時間や同期再生情報
の不連続を解消したTSを出力することができる。
As described above, the multiplexing device 60 detects the point at which the reference time reproduced by the ESCR of the input PES becomes discontinuous, and outputs the TS in which the discontinuity of the reference time and the synchronous reproduction information has been eliminated. can do.

【0090】なお、多重化装置60は、上述したTPヘ
ッダ7中の不連続インディケータフィールド10に不連
続インディケータフラグをたて、基準時間に不連続点が
発生することを受信側に通知するようにしてもよい。こ
のようにすることによって、TSを受信する受信側は、
多重化装置60で検出できなかった隠れたシーンチェン
ジ等にも対応することが可能となる。
The multiplexing device 60 sets a discontinuous indicator flag in the discontinuous indicator field 10 in the TP header 7 to notify the receiving side that a discontinuous point occurs at the reference time. You may. By doing so, the receiving side receiving the TS can
It is possible to cope with a hidden scene change or the like that could not be detected by the multiplexer 60.

【0091】また、多重化装置60の他の構成として、
図10に示す多重化装置70が考えられる。なお、多重
化装置70は、基本構成を図8に示した多重化装置60
と同様とし、各プログラムに共通のPCRを生成するこ
とに特徴を有している。したがって、先に図8に示した
多重化装置60と同様の構成については同一符号を付し
て詳細な説明を省略する。また、ここでも、例えば、入
力処理部211,212,・・・,21nを入力処理部2
1と総称するように、各部を示す符号に付した添え字を
省略して説明する。
As another configuration of the multiplexing device 60,
A multiplexing device 70 shown in FIG. 10 is conceivable. The multiplexing device 70 has a basic configuration shown in FIG.
This is characterized in that a common PCR is generated for each program. Therefore, the same components as those of the multiplexer 60 shown in FIG. 8 are denoted by the same reference numerals, and detailed description thereof will be omitted. Also, again, for example, input processing unit 21 1, 21 2,..., Enter 21 n processing unit 2
The description will be made by omitting the suffixes attached to the reference numerals indicating the respective parts so as to be generically referred to as 1.

【0092】多重化装置70は、外部から複数プログラ
ム分のPESを入力し、これらのPESを1本のTSに
多重化する。多重化装置70は、各プログラム毎に付随
するのではなく、各プログラムに共通のPCRを生成す
るPCRパケット生成部71を備え、PCRパケット生
成部71は、入力制御部27に付随する基準時間不連続
点検出部29と接続している。
The multiplexing device 70 receives PESs for a plurality of programs from the outside and multiplexes these PESs into one TS. The multiplexing device 70 includes a PCR packet generation unit 71 that generates a PCR common to each program, instead of being attached to each program. It is connected to the continuous point detector 29.

【0093】PCRパケット生成部71は、例えば図1
1に示すように、多重化装置70が自発的にLTCを生
成するLTC生成部73と、このLTC生成部73によ
り得られた出力をPCRデータとしてエンコードするP
CRエンコーダ74と、得られたPCRデータをパケッ
ト化して保持するPCRパケットレジスタ75とを備え
る。
The PCR packet generation unit 71 is provided, for example, in FIG.
As shown in FIG. 1, a multiplexing device 70 spontaneously generates an LTC, an LTC generation unit 73, and a P which encodes an output obtained by the LTC generation unit 73 as PCR data.
It comprises a CR encoder 74 and a PCR packet register 75 for packetizing and holding the obtained PCR data.

【0094】LTC生成部73は、図12に示すよう
に、27MHzのクロックを発振させる27MHzクロ
ック発振器76と、この27MHzクロック発振器76
により得られた27MHzのクロックをLTCとしてカ
ウントするLTCカウンタ77とを備える。LTC生成
部73は、27MHzクロック発振器76により27M
Hzの基準クロックであるLTCを発振し、このLTC
をLTCカウンタ77によりカウントして得られるLT
Cカウンタ値を後段のPCRエンコーダ74に供給す
る。
As shown in FIG. 12, the LTC generating unit 73 includes a 27 MHz clock oscillator 76 for oscillating a 27 MHz clock, and a 27 MHz clock oscillator 76.
And an LTC counter 77 that counts the 27 MHz clock obtained as described above as LTC. The LTC generation unit 73 uses a 27 MHz clock oscillator 76
Oscillates LTC which is a reference clock of Hz.
Is obtained by counting by the LTC counter 77
The C counter value is supplied to the subsequent stage PCR encoder 74.

【0095】PCRエンコーダ74は、LTC生成部7
3により得られた任意のタイミングにおける出力をPC
Rデータとしてエンコードする。
[0095] The PCR encoder 74
Output at arbitrary timing obtained by PC
Encode as R data.

【0096】PCRパケットレジスタ75は、PCRエ
ンコーダ74により得られたPCRデータをパケット化
し、保持する。
The PCR packet register 75 packetizes and holds the PCR data obtained by the PCR encoder 74.

【0097】このような各部を備えるPCRパケット生
成部71は、生成したPCRパケットを多重化するタイ
ミングに至ると、多重化制御部25に対して多重要求を
送信して、多重化するPCRパケットを被選択端子72
に供給する。被選択端子72に供給されたPCRパケッ
トは、多重スイッチ24の選択により読み出され多重化
される。
When the PCR packet generating section 71 having the above-described sections reaches the timing for multiplexing the generated PCR packets, the PCR packet generating section 71 transmits a multiplexing request to the multiplexing control section 25 and transmits the multiplexed PCR packets. Selected terminal 72
To supply. The PCR packet supplied to the selected terminal 72 is read and multiplexed by selecting the multiplex switch 24.

【0098】このような多重化装置70は、基準時間の
不連続点を検出すると、PESに重畳されている上述し
たPTSやDTSの付け替えを行う。多重化装置70
は、図13に示すような一連の処理を行うことによっ
て、入力したPESのESCRにより再生した基準時間
の不連続点を検出し、PTSやDTSの付け替えを行う
ために、これらのPTS及びDTSのシフト量ΔTSを
決定する。
When the multiplexing device 70 detects a discontinuous point of the reference time, the multiplexing device 70 replaces the above-described PTS or DTS superimposed on the PES. Multiplexer 70
Performs a series of processes as shown in FIG. 13 to detect a discontinuous point of the reference time reproduced by the ESCR of the input PES, and to replace the PTS and the DTS in order to replace the PTS and the DTS. The shift amount ΔTS is determined.

【0099】すなわち、多重化装置70は、同図に示す
ように、ステップS21において、入力制御部27が検
出したESCRデコード値を、基準時間不連続点検出部
29が取得する。また、多重化装置70は、入力制御部
27がESCRを検出すると同時にPCRパケット生成
部71に供給したESCRラッチ信号のタイミングにお
けるLTCを、基準時間不連続点検出部29が取得す
る。
That is, in the multiplexing device 70, the reference time discontinuity point detecting unit 29 acquires the ESCR decoded value detected by the input control unit 27 in step S21, as shown in FIG. In the multiplexing device 70, the reference time discontinuity point detection unit 29 acquires the LTC at the timing of the ESCR latch signal supplied to the PCR packet generation unit 71 at the same time that the input control unit 27 detects the ESCR.

【0100】続いて、多重化装置70は、ステップS2
2において、基準時間不連続点検出部29によって、上
式(1)及び上式(2)に示したように、取得したLT
C及びESCRデコード値のそれぞれの初期値からの増
分を算出する。
Subsequently, the multiplexing device 70 executes step S2
2, the LT acquired by the reference time discontinuous point detection unit 29 as shown in the above equations (1) and (2).
The increment from the initial value of each of the C and ESCR decode values is calculated.

【0101】そして、多重化装置70は、ステップS2
3において、基準時間不連続点検出部29によって、上
式(3)に示したように、LTC及びESCRデコード
値の増分間の距離が、予め設定された閾値TH以下であ
るかを判別する。
Then, the multiplexing device 70 determines in step S2
In 3, the reference time discontinuous point detector 29 determines whether or not the distance between the LTC and ESCR decode value increments is equal to or less than a predetermined threshold TH as shown in the above equation (3).

【0102】ここで、上式(3)を満たさない場合、す
なわち、LTC及びESCRデコード値の増分間の距離
が閾値THよりも大きいと判別した場合には、多重化装
置70は、ステップS24へと処理を移行する。多重化
装置70は、ステップS24において、基準時間不連続
点検出部29によって、取得したLTC及びESCRデ
コード値をそれぞれ、以後入力するPESに対するLT
C及びESCRデコード値の初期値に設定するととも
に、PTSやDTSを変換するためのシフト量ΔTSを
上式(5)により算出する。
If the above equation (3) is not satisfied, that is, if it is determined that the distance between the increment of the LTC and ESCR decode values is larger than the threshold value TH, the multiplexer 70 proceeds to step S24. And transfer processing. In step S24, the multiplexing device 70 converts the acquired LTC and ESCR decoded values by the reference time discontinuity point detection unit 29 into LT
The initial value of the C and ESCR decode values is set, and the shift amount ΔTS for converting the PTS or DTS is calculated by the above equation (5).

【0103】多重化装置60において基準時間不連続点
検出部29は、求めたΔTSを入力制御部27が有して
管理する図示しないメモリに、PESの属性データとし
て追加エントリし、出力制御部26がこのΔTSを読み
出せる状態にして一連の処理を終了し、次に入力するP
ESに関する処理を行うまで待機する。
In the multiplexing apparatus 60, the reference time discontinuity point detecting section 29 additionally adds the obtained ΔTS to a memory (not shown) managed by the input control section 27 as PES attribute data, and the output control section 26 Puts this ΔTS in a state where it can be read out, and ends a series of processing.
It waits until processing related to ES is performed.

【0104】一方、上式(3)を満たす場合には、多重
化装置70において基準時間不連続点検出部29は、入
力したPESに関する一連の処理を終了し、次に入力す
るPESに関する処理を行うまで待機する。
On the other hand, when the above equation (3) is satisfied, the reference time discontinuity point detecting section 29 in the multiplexing device 70 ends a series of processing for the inputted PES, and performs the processing for the next inputted PES. Wait until done.

【0105】多重化装置70は、PTSやDTSを含む
PESパケットを多重化して出力する際には、出力制御
部26が入力制御部27からこれらのPTS及び/又は
DTSに対応するΔTSを読み込み、PTS及び/又は
DTSのデコード値にΔTSを加算してエンコードした
ものを、適正なPTS及び/又はDTSとして、上述し
たPESヘッダ2中のPTSフィールド4及び/又はD
TSフィールド5の値を付け替え、多重化してTSとし
て出力する。
When the multiplexing device 70 multiplexes and outputs PES packets including PTS and DTS, the output control unit 26 reads ΔTS corresponding to these PTS and / or DTS from the input control unit 27, The encoded value obtained by adding ΔTS to the decoded value of the PTS and / or DTS is regarded as an appropriate PTS and / or DTS, and the PTS field 4 and / or D
The value of the TS field 5 is changed, multiplexed, and output as TS.

【0106】このようにして、多重化装置70は、入力
したPESのESCRにより再生した基準時間が不連続
となる点を検出するとともに、基準時間や同期再生情報
の不連続を解消したTSを出力することができる。
In this way, the multiplexer 70 detects the point at which the reference time reproduced by the ESCR of the input PES becomes discontinuous, and outputs the TS in which the discontinuity of the reference time and the synchronous reproduction information has been eliminated. can do.

【0107】なお、多重化装置70は、PCRパケット
生成部71が有するLTC生成部73が発振する基準ク
ロックとして、多重化装置70が自発的に発振する27
MHzクロック発振器76からのクロックを用いたが、
これに限定されることはなく、例えば、先に図4に示し
たように、LTC再生部を設け、任意のPESを入力す
るチャンネルのESCRにより再生したLTCを用いる
ようにしてもよい。また、多重化装置70は、LTC生
成部73やLTC再生部を備えず、例えば、PESを発
生して当該多重化装置70に入力する装置が有する27
MHzのクロックといったように、外部から供給される
クロックを基準クロックとして用いるようにしてもよ
い。
The multiplexing device 70 oscillates spontaneously as the reference clock oscillated by the LTC generating portion 73 of the PCR packet generating portion 71.
Although the clock from the MHz clock oscillator 76 was used,
However, the present invention is not limited to this. For example, as shown in FIG. 4, an LTC reproducing unit may be provided, and the LTC reproduced by the ESCR of a channel to which an arbitrary PES is input may be used. The multiplexing device 70 does not include the LTC generating unit 73 and the LTC reproducing unit, and includes, for example, a device that generates a PES and inputs the PES to the multiplexing device 70.
An externally supplied clock such as a MHz clock may be used as the reference clock.

【0108】また、多重化装置70は、上述したTPヘ
ッダ7中の不連続インディケータフィールド10に不連
続インディケータフラグをたて、基準時間に不連続点が
発生することを受信側に通知するようにしてもよい。こ
のようにすることによって、TSを受信する受信側は、
多重化装置70で検出できなかった隠れたシーンチェン
ジ等にも対応することが可能となる。
Further, the multiplexing device 70 sets a discontinuous indicator flag in the discontinuous indicator field 10 in the TP header 7 so as to notify the receiving side that a discontinuous point occurs at the reference time. You may. By doing so, the receiving side receiving the TS can
It is possible to cope with a hidden scene change or the like that cannot be detected by the multiplexer 70.

【0109】つぎに、上述した多重化装置20の他の構
成について図14乃至図16を参照して説明する。
Next, another configuration of the multiplexing device 20 will be described with reference to FIGS.

【0110】図14に示す再多重化装置80は、基本構
成を図1に示した多重化装置20と同様とし、複数のT
Sを入力して1本のTSに再び多重化して出力すること
に特徴を有している。したがって、先に図1に示した多
重化装置20と同様の構成については同一符号を付して
詳細な説明を省略する。
The remultiplexing device 80 shown in FIG. 14 has the same basic configuration as the multiplexing device 20 shown in FIG.
It is characterized in that S is input, multiplexed again into one TS, and output. Therefore, the same components as those of the multiplexer 20 shown in FIG. 1 are denoted by the same reference numerals, and detailed description thereof will be omitted.

【0111】再多重化装置80は、図14に示すよう
に、符号化入力ストリームとして複数のTSを入力し、
これらのTSを符号化出力ストリームである1本のTS
に再び多重化するものである。
As shown in FIG. 14, the remultiplexing device 80 inputs a plurality of TSs as an encoded input stream,
These TSs are converted into one TS which is an encoded output stream.
Are multiplexed again.

【0112】再多重化装置80は、上述した制御データ
生成部22と、ヌルパケット生成部23と、多重スイッ
チ24と、多重化制御部25との他に、複数のTSを入
力する入力制御部811,812,・・・と、これらの入
力制御部811,812,・・・からのTSをそれぞれ入
力して一時記憶するバッファ821,822,・・・と、
入力制御部811,812,・・・にそれぞれ付随する基
準時間不連続点検出部831,832,・・・と、LTC
を生成するLTC生成部84と、所定の伝送レートでT
Sを出力する出力制御部85とを備える。また、再多重
化装置80は、上述した入力端子32と、被選択端子3
5,36との他に、TSを入力する入力端子861,8
2,・・・と、バッファ821,822,・・・からの
各出力を出力する被選択端子871,872,・・・と、
LTC生成部84からの出力を出力する被選択端子88
と、制御データを作成するためのパラメータを出力制御
部85に入力する入力端子89と、出力制御部85から
TSを出力する出力端子90とを備える。
The remultiplexing device 80 includes, in addition to the control data generator 22, the null packet generator 23, the multiplex switch 24, and the multiplex controller 25, an input controller for inputting a plurality of TSs. 81 1, 81 2, ... and, these input control unit 81 1, 81 2, a buffer 82 1, 82 2 for storing temporarily enter each TS from ... and ...,
Input control unit 81 1, 81 2, the reference time discontinuous point detecting unit 83 1 associated respectively ..., 83 2, and ..., LTC
And an LTC generation unit 84 for generating T at a predetermined transmission rate.
An output control unit 85 for outputting S. Further, the remultiplexing device 80 includes the input terminal 32 described above and the selected terminal 3
In addition to the terminals 5 and 36, input terminals 86 1 and 8 for inputting TS.
6 2, ... and, buffer 82 1, 82 2, the selected outputs each output from ... terminal 87 1, 87 2, and ...,
A selected terminal 88 that outputs an output from the LTC generation unit 84
And an input terminal 89 for inputting parameters for creating control data to the output control unit 85, and an output terminal 90 for outputting TS from the output control unit 85.

【0113】入力制御部811,812,・・・は、それ
ぞれ、入力端子861,862,・・・からTSを1バイ
トずつ入力し、入力したTSを後段のバッファ821
822,・・・に供給する。また、入力制御部811,8
2,・・・は、それぞれ、図示しないメモリを有して
おり、PCRを含むTPを取得し、このPCRの制御開
始後における入力順を示すインデックス番号と、入力基
準時刻情報であるPCRデコード値と、先に図3に示し
たTPヘッダ7中の不連続インディケータフィールド1
0に付与された値とをメモリに保持する。さらに、入力
制御部811,812,・・・は、それぞれ、PCRを取
得すると、このPCRを取得したタイミングを示すラッ
チ信号と、PCRデコード値とを後段の基準時間不連続
点検出部831,832,・・・に出力する。さらにま
た、入力制御部811,812,・・・は、それぞれ、T
SやAUのスタートコードを検出してメモリに保持す
る。また、入力制御部811,812,・・・は、それぞ
れ、制御開始後に入力したTPの入力順を示すインデッ
クス番号と、各インデックス番号に対応するヘッダ情報
とをメモリに保持し、多重化制御部25に供給する。
[0113] The input control unit 81 1, 81 2, ... are, respectively, the input terminals 86 1, 86 2, inputted from ... The TS byte by byte, the entered TS the following buffer 82 1,
82 2 ,. Also, the input control units 81 1 , 8
1 2, ... are, respectively, has a memory (not shown), obtains the TP including PCR, and the index number indicating an input sequence after the control start of the PCR, PCR decoding an input reference time information The value and the discontinuous indicator field 1 in the TP header 7 previously shown in FIG.
The value assigned to 0 is stored in the memory. When the input control units 81 1 , 81 2 ,... Respectively acquire the PCR, the input control units 81 1 , 81 2 ,. 1, 83 2, and outputs it to the .... Furthermore, the input control units 81 1 , 81 2 ,.
The start code of S or AU is detected and stored in the memory. Each of the input control units 81 1 , 81 2 ,... Holds an index number indicating the input order of the TP input after the start of the control and header information corresponding to each index number in a memory, and performs multiplexing. It is supplied to the control unit 25.

【0114】バッファ821,822,・・・は、それぞ
れ、データが書き込まれた順番でデータを読み出すFI
FO形式のものであり、入力制御部811,812,・・
・から供給されたTPを一時記憶する。バッファ8
1,822,・・・は、それぞれ、多重化制御部25の
制御により動作する多重スイッチ24が被選択端子87
1,872,・・・のいずれかを選択することでTPが多
重化されるタイミングまで、入力したTPを一時記憶す
る。そして、バッファ821,822,・・・は、それぞ
れ、記憶・保持しているTPを被選択端子871,8
2,・・・へと供給する。被選択端子871,872
・・・に供給されたTPは、それぞれ、多重スイッチ2
4の選択により読み出され多重化される。
The buffers 82 1 , 82 2 ,... Read the data in the order in which the data was written.
FO format, and the input control units 81 1 , 81 2 ,.
-Temporarily store the TP supplied from. Buffer 8
2 1, 82 2, ..., respectively, multiplexing switch 24 is fixed terminal 87 which operates under the control of the multiplexing control section 25
The input TP is temporarily stored until the TP is multiplexed by selecting any one of 1 , 87 2 ,. The buffers 82 1 , 82 2 ,... Respectively store and hold the TPs on the selected terminals 87 1 , 8.
7 2 ,. The selected terminals 87 1 , 87 2 ,
Are supplied to the multiplex switch 2 respectively.
4 is read and multiplexed.

【0115】基準時間不連続点検出部831,832,・
・・は、それぞれ、入力制御部811,812,・・・で
取得されたPCRデコード値と、このPCRが取得され
たタイミングを示すラッチ信号とを入力し、後述するよ
うに、PCRにより再生した基準時間が不連続となる点
を検出する。
Reference time discontinuity point detectors 83 1 , 83 2 ,.
Input a PCR decoded value obtained by the input control units 81 1 , 81 2 ,..., And a latch signal indicating the timing at which the PCR was obtained. The point at which the reproduced reference time is discontinuous is detected.

【0116】LTC生成部84は、先に図12に示した
ような構成からなり、27MHzのクロックを発振さ
せ、このクロックをカウントして得られたLTCカウン
タ値を被選択端子88及び基準時間不連続点検出部83
1,832,・・・に出力する。
The LTC generating section 84 has a configuration as shown in FIG. 12, oscillates a 27 MHz clock, and counts the LTC counter value obtained by counting this clock to the selected terminal 88 and the reference time. Continuous point detection unit 83
1, 83 2, and outputs it to the ....

【0117】出力制御部85は、多重化制御部25の制
御のもとに選択されたパケットを入力してTPデータの
確定を行い、出力端子90を介して所定の出力ビットレ
ートで複数のTPから構成されるTSを図示しない伝送
路へ出力する。出力制御部85は、例えば、TPヘッダ
7中のPIDフィールド9の確定を行う際には、入力し
たTS間での重複を避けるために、外部から指定された
制御データパラメータを入力端子89を介して入力し、
この制御データパラメータに基づいて、PIDの付け替
えを行う。また、PIDの付け替え等にともない、制御
データパケット内のデータの一部を変更する必要性が生
じる場合には、出力制御部85は、必要に応じて制御デ
ータパケット内のデータの付け替えを行う。さらに、出
力制御部85は、必要に応じて、TPヘッダ7中のPC
Rフィールド11におけるPCRや、PTS、DTS等
の付け替えも行う。出力制御部85は、このようにして
確定したTPをバイト単位で所定の出力ビットレートに
したがって出力する。
The output control unit 85 inputs the selected packet under the control of the multiplex control unit 25, determines the TP data, and outputs a plurality of TP data via the output terminal 90 at a predetermined output bit rate. Is output to a transmission path (not shown). For example, when the PID field 9 in the TP header 7 is determined, the output control unit 85 transmits the control data parameter specified from the outside via the input terminal 89 in order to avoid duplication between input TSs. And enter
PID replacement is performed based on this control data parameter. Further, when it is necessary to change a part of the data in the control data packet due to the replacement of the PID or the like, the output control unit 85 performs the replacement of the data in the control data packet as necessary. Further, the output control unit 85, if necessary,
The replacement of PCR, PTS, DTS, and the like in the R field 11 is also performed. The output control unit 85 outputs the determined TP in byte units according to a predetermined output bit rate.

【0118】このような再多重化装置80は、多重化制
御部25の制御にしたがって、多重スイッチ24を動作
させ、多重化するTPや制御データを選択し、この選択
したTPや制御データを多重化して1本のTSを生成
し、出力端子90を介して出力する。なお、以下の説明
では、例えば、入力制御部811,812,・・・を入力
制御部81と総称するように、各部を示す符号に付した
添え字を省略するものとする。
The remultiplexing device 80 operates the multiplexing switch 24 under the control of the multiplexing control unit 25 to select TPs and control data to be multiplexed, and multiplexes the selected TPs and control data. Then, one TS is generated and output via the output terminal 90. In the following description, for example, the input control units 81 1 , 81 2 ,.

【0119】再多重化装置80は、図15に示すような
一連の処理を基準時間不連続点検出部83により行うこ
とによって、入力したTSのPCRにより再生した基準
時間が不連続であるかを否かを検出する。
The remultiplexing device 80 performs a series of processing as shown in FIG. 15 by the reference time discontinuity point detecting section 83 to determine whether the reference time reproduced by the PCR of the input TS is discontinuous. Detect whether or not.

【0120】すなわち、再多重化装置80は、同図に示
すように、ステップS31において、入力制御部81が
検出したPCRデコード値を、基準時間不連続点検出部
83が取得する。また、再多重化装置80は、入力制御
部81がPCRを検出すると同時にLTC生成部84に
供給したPCRラッチ信号のタイミングにおけるLTC
を、基準時間不連続点検出部83が取得する。
That is, in the remultiplexing apparatus 80, the reference time discontinuous point detecting section 83 acquires the PCR decoded value detected by the input control section 81 in step S31, as shown in FIG. Further, the remultiplexing device 80 detects the LTC at the timing of the PCR latch signal supplied to the LTC generation unit 84 at the same time that the input control unit 81 detects the PCR.
Is acquired by the reference time discontinuous point detection unit 83.

【0121】続いて、再多重化装置80は、ステップS
32において、基準時間不連続点検出部83によって、
上式(1)及び次式(6)にそれぞれ示すように、取得
したLTC及びPCRデコード値のそれぞれの初期値か
らの増分を算出する。
Subsequently, the re-multiplexing device 80 executes step S
At 32, the reference time discontinuity point detection unit 83
As shown in the above equation (1) and the following equation (6), increments of the obtained LTC and PCR decode values from the respective initial values are calculated.

【0122】 ΔPCR=PCR−PCR0 ・・・(6) 上式(6)において、PCRは、取得したPCRデコー
ド値を示し、PCR0は、PCRデコード値の初期値を
示し、ΔPCRは、PCRデコード値の増分を示してい
る。
ΔPCR = PCR−PCR0 (6) In the above equation (6), PCR indicates the acquired PCR decode value, PCR0 indicates the initial value of the PCR decode value, and ΔPCR indicates the PCR decode value. Shows the increment of.

【0123】そして、再多重化装置80は、ステップS
33において、基準時間不連続点検出部83によって、
次式(7)に示すように、LTC及びPCRデコード値
の増分間の距離が、予め設定された閾値TH以下である
かを判別する。
Then, the re-multiplexing device 80 executes step S
At 33, the reference time discontinuity point detection unit 83
As shown in the following equation (7), it is determined whether or not the distance between the increment of the LTC and the PCR decode value is equal to or less than a preset threshold value TH.

【0124】 |ΔPCR−ΔLTC|≦TH ・・・(7)| ΔPCR−ΔLTC | ≦ TH (7)

【0125】ここで、上式(7)を満たさない場合、す
なわち、LTC及びPCRデコード値の増分間の距離が
閾値THよりも大きいと判別した場合には、再多重化装
置80は、ステップS34へと処理を移行する。再多重
化装置80は、ステップS34において、基準時間不連
続点検出部83によって、取得したLTC及びPCRデ
コード値をそれぞれ、以後入力するTSに対するLTC
及びPCRデコード値の初期値に設定するとともに、図
3に示したTPヘッダ7中の不連続インディケータフィ
ールド10に不連続インディケータフラグ“1”を付与
するため、入力制御部81が有して管理する図示しない
メモリに、不連続インディケータフィールド10に付与
する情報としての不連続インディケータフラグ“1”
を、入力したTSのエントリとして書き込む。再多重化
装置80において基準時間不連続点検出部83は、この
ようにして一連の処理を終了し、次に入力するTSに関
する処理を行うまで待機する。
Here, if the above equation (7) is not satisfied, that is, if it is determined that the distance between the increment of the LTC and the PCR decode value is larger than the threshold value TH, the remultiplexing device 80 proceeds to step S34. Transfer processing to. In step S34, the remultiplexing device 80 outputs the LTC and the PCR decode value obtained by the reference time
In addition to setting the initial value of the PCR decode value and the discontinuous indicator flag “1” to the discontinuous indicator field 10 in the TP header 7 shown in FIG. A discontinuous indicator flag “1” as information to be added to the discontinuous indicator field 10 in a memory (not shown)
Is written as the entry of the input TS. In the remultiplexing device 80, the reference time discontinuous point detection unit 83 ends the series of processing in this way, and waits until processing relating to the next input TS is performed.

【0126】一方、上式(7)を満たす場合には、再多
重化装置80において基準時間不連続点検出部83は、
入力したTSに関する一連の処理を終了し、次に入力す
るTSに関する処理を行うまで待機する。この場合、不
連続インディケータフィールド10には、“0”が付与
されることになる。
On the other hand, when the above equation (7) is satisfied, the reference time discontinuous point detection unit 83 in the remultiplexing device 80
A series of processes regarding the input TS is completed, and the process waits until the process regarding the next input TS is performed. In this case, “0” is assigned to the discontinuous indicator field 10.

【0127】再多重化装置80は、入力したTSに関す
る上述した処理を繰り返し、検査を完了する度に入力制
御部81が管理するメモリに、不連続インディケータフ
ィールド10に付与する不連続インディケータフラグを
TS毎のエントリとして書き込む。
The remultiplexing device 80 repeats the above-described processing for the input TS, and stores a discontinuity indicator flag to be added to the discontinuity indicator field 10 in the memory managed by the input control unit 81 every time the inspection is completed. Write as each entry.

【0128】そして、再多重化装置80は、出力制御部
85が入力制御部81から不連続インディケータフィー
ルド10に付与すべき不連続インディケータフラグを読
み出し、不連続点を検出したTSを多重化して出力する
直前に、PCRを含むTPの不連続インディケータフィ
ールド10に不連続インディケータフラグ“1”を付与
し、多重化してTSとして出力する。
Then, the remultiplexing device 80 reads the discontinuity indicator flag to be added to the discontinuity indicator field 10 from the input control unit 81 by the output control unit 85, multiplexes the TS for which the discontinuity point is detected, and outputs the multiplexed TS. Immediately before, a discontinuous indicator flag “1” is added to the discontinuous indicator field 10 of the TP including the PCR, multiplexed, and output as a TS.

【0129】このようにして、再多重化装置80は、入
力したTSのPCRにより再生した基準時間が不連続と
なる点を検出することができ、基準時間に不連続点が発
生することを受信側に通知することができる。したがっ
て、このようなTSを受信する受信側は、基準時間が不
連続となっているTSを受信した場合にも、破綻するこ
となく、再生することができる。
In this way, the remultiplexing device 80 can detect the point where the reference time reproduced by the PCR of the input TS becomes discontinuous, and receives the information that the discontinuity occurs in the reference time. Side can be notified. Therefore, the receiving side that receives such a TS can reproduce without fail even when receiving a TS whose reference time is discontinuous.

【0130】なお、再多重化装置80は、図16に示す
ような一連の処理を行うことによって、先に図8に示し
た多重化装置60及び図10に示した多重化装置70と
同様に、検出した基準時間の不連続を積極的に解消した
TSを受信側に送信することもできる。
The re-multiplexing device 80 performs a series of processes as shown in FIG. 16 to perform the same processing as the multiplexing device 60 shown in FIG. 8 and the multiplexing device 70 shown in FIG. Alternatively, a TS in which the discontinuity of the detected reference time is positively eliminated can be transmitted to the receiving side.

【0131】すなわち、再多重化装置80は、図16に
示すように、ステップS41において、入力制御部81
が検出したPCRデコード値を、基準時間不連続点検出
部83が取得する。また、再多重化装置80は、入力制
御部81がPCRを検出すると同時にLTC生成部84
に供給したPCRラッチ信号のタイミングにおけるLT
Cを、基準時間不連続点検出部83が取得する。
That is, as shown in FIG. 16, the remultiplexing apparatus 80 sets the input control section 81 in step S41.
Are detected by the reference time discontinuity point detection unit 83. In addition, the remultiplexing device 80 sets the LTC generation unit 84
At the timing of the PCR latch signal supplied to
The reference time discontinuous point detection unit 83 acquires C.

【0132】続いて、再多重化装置80は、ステップS
42において、基準時間不連続点検出部83によって、
上式(1)及び上式(6)にそれぞれ示すように、取得
したLTC及びPCRデコード値のそれぞれの初期値か
らの増分を算出する。
Subsequently, the remultiplexing device 80 executes the step S
At 42, the reference time discontinuous point detection unit 83
As shown in the above equations (1) and (6), the increments of the acquired LTC and PCR decode values from the respective initial values are calculated.

【0133】そして、再多重化装置80は、ステップS
43において、基準時間不連続点検出部83によって、
上式(7)に示したように、LTC及びPCRデコード
値の増分間の距離が、予め設定された閾値TH以下であ
るかを判別する。
Then, the re-multiplexing device 80 executes step S
At 43, the reference time discontinuity point detection unit 83
As shown in the above equation (7), it is determined whether or not the distance between the increment of the LTC and the PCR decode value is equal to or smaller than a preset threshold value TH.

【0134】ここで、上式(7)を満たす場合、すなわ
ち、LTC及びPCRデコード値の増分間の距離が閾値
TH以下であると判別した場合には、再多重化装置80
は、ステップS44へと処理を移行する。再多重化装置
80は、ステップS44において、基準時間不連続点検
出部83によって、出力基準時刻情報であるPCRが連
続となるように、次式(8)に示すようにLTCの初期
値LTC0とPCRデコード値の初期値からの増分ΔP
CRとに基づいて、PCRデコード値を変換してPC
R’を求めて一連の処理を終了し、次に入力するTSに
関する処理を行うまで待機する。
Here, when the above equation (7) is satisfied, that is, when it is determined that the distance between the increment of the LTC and the PCR decode value is equal to or less than the threshold value TH, the remultiplexing device 80
Shifts the processing to step S44. In step S44, the remultiplexing device 80 sets the LTC initial value LTC0 and the LTC initial value LTC0 as shown in the following equation (8) by the reference time discontinuity point detection unit 83 so that the PCR that is the output reference time information is continuous. Increase ΔP from initial value of PCR decode value
Converts the PCR decode value based on the CR and
A series of processing is completed to obtain R ′, and the processing waits until processing relating to the next input TS is performed.

【0135】 PCR’=LTC0+ΔPCR ・・・(8)PCR ′ = LTC0 + ΔPCR (8)

【0136】一方、上式(7)を満たさない場合、すな
わち、LTC及びPCRデコード値の増分間の距離が閾
値THよりも大きいと判別した場合には、再多重化装置
80は、ステップS45へと処理を移行する。再多重化
装置80は、ステップS45において、基準時間不連続
点検出部83によって、取得したLTCをPCR’とす
るとともに、取得したLTC及びPCRデコード値をそ
れぞれ、以後入力するTSに対するLTC及びPCRデ
コード値の初期値に設定し、さらにPTSやDTSを変
換するためのシフト量ΔTSを次式(9)により算出す
る。
On the other hand, if the above equation (7) is not satisfied, that is, if it is determined that the distance between the increment of the LTC and the PCR decode value is larger than the threshold value TH, the remultiplexing device 80 proceeds to step S45. And transfer processing. In step S45, the remultiplexing device 80 sets the acquired LTC to PCR ′ by the reference time discontinuity point detection unit 83, and converts the acquired LTC and PCR decode values into LTC and PCR decode values for the TS to be input thereafter. The value is set to the initial value, and the shift amount ΔTS for converting the PTS or DTS is calculated by the following equation (9).

【0137】 ΔTS=LTC0−PCR0 ・・・(9)ΔTS = LTC0−PCR0 (9)

【0138】再多重化装置80において基準時間不連続
点検出部83は、先にステップS42にて求めたΔPC
RとステップS45にて求めたΔTSとを入力制御部8
1が有して管理する図示しないメモリに書き込み、出力
制御部85がこれらのΔPCR及びΔTSを読み出せる
状態にして一連の処理を終了し、次に入力するTSに関
する処理を行うまで待機する。
In the remultiplexing apparatus 80, the reference time discontinuity point detecting section 83 uses the ΔPC
R and ΔTS obtained in step S45 are input control unit 8
1 and writes them into a memory (not shown) that is managed by the output controller 1. The output controller 85 puts these .DELTA.PCR and .DELTA.TS in a readable state to end a series of processing, and waits until processing relating to the next input TS is performed.

【0139】再多重化装置80は、PCRを含むTPを
多重化して出力する際には、出力制御部85が入力制御
部81からΔPCRを読み込み、PCRデコード値にΔ
PCRを加算してエンコードしたものを、適正なPCR
として上述したTPヘッダ7中のPCRフィールド11
の値を付け替え、多重化してTSとして出力する。ま
た、再多重化装置80は、PTSやDTSを含むTPを
多重化して出力する際には、出力制御部85が入力制御
部81からこれらのPTS及び/又はDTSに対応する
ΔTSを読み込み、PTS及び/又はDTSのデコード
値にΔTSを加算してエンコードしたものを、適正なP
TS及び/又はDTSとして付け替え、多重化してTS
として出力する。
When multiplexing and outputting a TP including a PCR, the remultiplexing device 80 causes the output control unit 85 to read ΔPCR from the input control unit 81 and to add ΔPCR to the PCR decode value.
After adding the PCR and encoding,
PCR field 11 in the TP header 7 described above
Are multiplexed and multiplexed and output as TS. When multiplexing and outputting a TP including a PTS and a DTS, the remultiplexing apparatus 80 reads the ΔTS corresponding to the PTS and / or the DTS from the input control unit 81 and outputs the PTS. And / or the encoded value obtained by adding ΔTS to the decoded value of DTS
Replaced as TS and / or DTS and multiplexed to TS
Output as

【0140】このようにして、再多重化装置80は、入
力したTSのPCRにより再生した基準時間が不連続と
なる点を検出するとともに、基準時間や同期再生情報の
不連続を解消したTSを出力することができる。
As described above, the remultiplexing device 80 detects the point at which the reference time reproduced by the PCR of the input TS becomes discontinuous, and detects the TS at which the discontinuity of the reference time and the synchronous reproduction information has been eliminated. Can be output.

【0141】なお、再多重化装置80は、上述したTP
ヘッダ7中の不連続インディケータフィールド10に不
連続インディケータフラグをたて、基準時間に不連続点
が発生することを受信側に通知するようにしてもよい。
このようにすることによって、TSを受信する受信側
は、再多重化装置80で検出できなかった隠れたシーン
チェンジ等にも対応することが可能となる。
Note that the remultiplexing device 80 uses the TP
A discontinuous indicator flag may be set in the discontinuous indicator field 10 in the header 7 to notify the receiving side that a discontinuous point occurs at the reference time.
By doing so, the receiving side receiving the TS can cope with a hidden scene change or the like that could not be detected by the remultiplexing device 80.

【0142】以上説明したように、本発明を適用した実
施の形態として示す多重化装置及び再多重化装置は、ビ
ットストリームの基準時刻情報が付加された複数のスト
リームを入力し、その基準時間が不連続であることを検
出することができ、受信側に不連続情報を通知すること
ができる。したがって、ストリームを受信する受信側
は、不連続が解消された連続的な基準時間に変更して再
生出力することが可能となり、基準時間が不連続となっ
ているストリームを受信した場合にも、破綻することな
く、正常な再生を行うことが可能となる。
As described above, the multiplexing device and the remultiplexing device shown as the embodiments to which the present invention is applied receive a plurality of streams to which the reference time information of the bit stream is added, and Discontinuity can be detected, and discontinuity information can be notified to the receiving side. Therefore, the receiving side that receives the stream can change and reproduce and output the continuous reference time in which the discontinuity has been eliminated, and even when receiving a stream in which the reference time is discontinuous, Normal reproduction can be performed without failure.

【0143】なお、上述した多重化装置及び再多重化装
置における基準時間不連続点検出部は、いずれも、上述
した処理をソフトウェアで行うように構成してもよく、
上述した処理が可能である手段をハードウェアで構成し
てもよい。
The reference time discontinuity point detection unit in the multiplexing device and the remultiplexing device may be configured to perform the above-described processing by software.
The means capable of performing the above-described processing may be configured by hardware.

【0144】その他、本発明は、上述した実施の形態に
限定されるものではなく、その趣旨を逸脱しない範囲で
種々の変更が可能であることはいうまでもない。
In addition, the present invention is not limited to the above-described embodiment, and it goes without saying that various modifications can be made without departing from the spirit of the present invention.

【0145】[0145]

【発明の効果】以上詳細に説明したように、本発明にか
かるデータ多重化装置は、符号化入力ストリームにおけ
る入力基準時刻情報により再生した基準時間が不連続で
あるか否かを検出して得られた結果を識別する識別子が
ヘッダ領域に付加された単一の符号化出力ストリームを
出力することができる。したがって、本発明にかかるデ
ータ多重化装置は、符号化出力ストリームを受信する受
信側に、符号化入力ストリームにおける入力基準時刻情
報により再生した基準時間が不連続であることを通知す
ることができ、受信側が、符号化入力ストリームにおけ
る入力基準時刻情報により再生した基準時間が不連続で
ある符号化出力ストリームを受信した場合にも、正常な
再生出力を行わせることができる。
As described above in detail, the data multiplexing apparatus according to the present invention detects whether or not the reference time reproduced by the input reference time information in the coded input stream is discontinuous. It is possible to output a single encoded output stream in which an identifier for identifying the obtained result is added to the header area. Therefore, the data multiplexing apparatus according to the present invention can notify the receiving side that receives the encoded output stream that the reference time reproduced by the input reference time information in the encoded input stream is discontinuous, Even when the receiving side receives an encoded output stream in which the reference time reproduced according to the input reference time information in the encoded input stream is discontinuous, normal reproduction output can be performed.

【0146】また、本発明にかかるデータ多重化方法
は、符号化入力ストリームを単一の符号化出力ストリー
ムに多重化して出力する際に、符号化入力ストリームに
おける入力基準時刻情報により再生した基準時間が不連
続であるか否かを識別する識別子を、符号化出力ストリ
ームのヘッダ領域に付加することができる。したがっ
て、本発明にかかるデータ多重化方法は、符号化出力ス
トリームを受信する受信側に、符号化入力ストリームに
おける入力基準時刻情報により再生した基準時間が不連
続であることを通知することを可能とし、受信側が、符
号化入力ストリームにおける入力基準時刻情報により再
生した基準時間が不連続である符号化出力ストリームを
受信した場合にも、正常な再生出力を行わせることが可
能となる。
The data multiplexing method according to the present invention is characterized in that, when an encoded input stream is multiplexed into a single encoded output stream and output, the reference time reproduced based on the input reference time information in the encoded input stream. Can be added to the header area of the encoded output stream. Therefore, the data multiplexing method according to the present invention makes it possible to notify the receiving side that receives the encoded output stream that the reference time reproduced by the input reference time information in the encoded input stream is discontinuous. In addition, even when the receiving side receives an encoded output stream whose reference time reproduced by the input reference time information in the encoded input stream is discontinuous, normal reproduction output can be performed.

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

【図1】本発明の実施の形態として示す多重化装置の構
成を説明するブロック図である。
FIG. 1 is a block diagram illustrating a configuration of a multiplexing device shown as an embodiment of the present invention.

【図2】PESパケットの構成を説明する図であって、
特にPESヘッダの構成を説明する図である。
FIG. 2 is a diagram illustrating a configuration of a PES packet,
FIG. 3 is a diagram particularly explaining the configuration of a PES header.

【図3】TPの構成を説明する図であって、特にTPヘ
ッダの構成を説明する図である。
FIG. 3 is a diagram for explaining a configuration of a TP, particularly, a diagram for explaining a configuration of a TP header.

【図4】図1に示す多重化装置が備えるPCRパケット
生成部の内部構成を説明するブロック図である。
FIG. 4 is a block diagram illustrating an internal configuration of a PCR packet generator included in the multiplexing device shown in FIG.

【図5】図4に示すPCRパケット生成部が備えるLT
C再生部の内部構成を説明するブロック図である。
FIG. 5 shows an LT included in the PCR packet generator shown in FIG. 4;
It is a block diagram explaining the internal structure of C reproduction | regeneration part.

【図6】図1に示す多重化装置において、再生した基準
時間が不連続であるかを検出する際の基準時間不連続点
検出部における一連の工程を説明するフローチャートで
ある。
6 is a flowchart illustrating a series of steps in a reference time discontinuity point detection unit when detecting whether the reproduced reference time is discontinuous in the multiplexer shown in FIG.

【図7】図1に示す多重化装置の他の構成を説明するブ
ロック図である。
FIG. 7 is a block diagram illustrating another configuration of the multiplexer shown in FIG.

【図8】図1に示す多重化装置のさらに他の構成を説明
するブロック図である。
FIG. 8 is a block diagram illustrating still another configuration of the multiplexer shown in FIG.

【図9】図8に示す多重化装置において、再生した基準
時間の不連続点を検出し、同期再生情報のシフト量を決
定する際の基準時間不連続点検出部における一連の工程
を説明するフローチャートである。
FIG. 9 describes a series of steps in a reference time discontinuity point detection unit when detecting a discontinuity point of a reproduced reference time and determining a shift amount of synchronous reproduction information in the multiplexer shown in FIG. It is a flowchart.

【図10】図8に示す多重化装置の他の構成を説明する
ブロック図である。
FIG. 10 is a block diagram illustrating another configuration of the multiplexer shown in FIG.

【図11】図10に示す多重化装置が備えるPCRパケ
ット生成部の内部構成を説明するブロック図である。
11 is a block diagram illustrating an internal configuration of a PCR packet generation unit included in the multiplexing device shown in FIG.

【図12】図11に示すPCRパケット生成部が備える
LTC生成部の内部構成を説明するブロック図である。
FIG. 12 is a block diagram illustrating an internal configuration of an LTC generation unit included in the PCR packet generation unit illustrated in FIG.

【図13】図10に示す多重化装置において、再生した
基準時間の不連続点を検出し、同期再生情報のシフト量
を決定する際の基準時間不連続点検出部における一連の
工程を説明するフローチャートである。
FIG. 13 describes a series of steps in a reference time discontinuity point detecting unit when detecting a discontinuity point of a reproduced reference time and determining a shift amount of synchronous reproduction information in the multiplexer shown in FIG. It is a flowchart.

【図14】図1に示す多重化装置のさらに他の構成であ
る再多重化装置の構成を説明するブロック図である。
FIG. 14 is a block diagram illustrating a configuration of a remultiplexing apparatus which is still another configuration of the multiplexing apparatus shown in FIG.

【図15】図14に示す再多重化装置において、再生し
た基準時間が不連続であるかを検出する際の基準時間不
連続点検出部における一連の工程を説明するフローチャ
ートである。
15 is a flowchart illustrating a series of steps in a reference time discontinuity point detection unit when detecting whether the reproduced reference time is discontinuous in the remultiplexing device illustrated in FIG.

【図16】図14に示す再多重化装置において、再生し
た基準時間の不連続点を検出し、同期再生情報のシフト
量を決定する際の基準時間不連続点検出部における一連
の工程を説明するフローチャートである。
FIG. 16 describes a series of steps in a reference time discontinuity point detection unit when detecting a discontinuity point of a reproduced reference time and determining a shift amount of synchronous reproduction information in the remultiplexing apparatus shown in FIG. FIG.

【図17】従来の多重化装置の他の構成を説明するブロ
ック図である。
FIG. 17 is a block diagram illustrating another configuration of a conventional multiplexer.

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

2 PESヘッダ、 3 ESCRフィールド、 4
PTSフィールド、5 DTSフィールド、 7 TP
ヘッダ、 10 不連続インディケータフィールド、
11 PCRフィールド、 20,50,60,70
多重化装置、21 入力処理部、 22 制御データ生
成部、 23 ヌルパケット生成部、 24 多重スイ
ッチ、 25 多重化制御部、 26,85 出力制御
部、27,81 入力制御部、 28,82 バッフ
ァ、 29,83 基準時間不連続点検出部、 30,
71 PCRパケット生成部、 38 LTC再生部、
39,74 PCRエンコーダ、 40,75 PC
Rパケットレジスタ、41 減算器、 42 ディジタ
ルフィルタ、 43 DAC、 44 LPF、 45
VCO、 46,77 LTCカウンタ、 73,8
4 LTC生成部、 76 27MHzクロック発振
器、 80 再多重化装置
2 PES header, 3 ESCR field, 4
PTS field, 5 DTS field, 7 TP
Header, 10 discontinuous indicator fields,
11 PCR field, 20, 50, 60, 70
Multiplexer, 21 input processor, 22 control data generator, 23 null packet generator, 24 multiplex switch, 25 multiplex controller, 26, 85 output controller, 27, 81 input controller, 28, 82 buffer, 29,83 Reference time discontinuity point detector, 30,
71 PCR packet generator, 38 LTC playback unit,
39,74 PCR encoder, 40,75 PC
R packet register, 41 subtractor, 42 digital filter, 43 DAC, 44 LPF, 45
VCO, 46,77 LTC counter, 73,8
4 LTC generator, 76 27 MHz clock oscillator, 80 remultiplexer

Claims (11)

【特許請求の範囲】[Claims] 【請求項1】 単一の時間軸を再生するための入力基準
時刻情報がヘッダ領域に付加された少なくとも1つ以上
の符号化入力ストリームを入力して読み込むとともに、
上記入力基準時刻情報により再生した基準時間が不連続
であるか否かが検出された結果を識別する識別子を保持
する入力制御手段と、 上記符号化入力ストリームを単一の符号化出力ストリー
ムに多重化して出力するとともに、上記符号化出力スト
リームを出力する際に、上記入力制御手段から上記識別
子を読み出し、上記符号化出力ストリームのヘッダ領域
に上記識別子を付加する出力制御手段とを備えることを
特徴とするデータ多重化装置。
An input reference time information for reproducing a single time axis is input and read at least one or more encoded input streams added to a header area,
Input control means for holding an identifier for identifying a result of detection as to whether or not the reference time reproduced by the input reference time information is discontinuous; and multiplexing the coded input stream into a single coded output stream And output control means for reading the identifier from the input control means and adding the identifier to a header area of the encoded output stream when outputting the encoded output stream. Data multiplexing device.
【請求項2】 上記入力制御手段に付随し、上記基準時
間が不連続であることを検出する基準時間不連続点検出
手段を備え、 上記基準時間不連続点検出手段は、上記基準時間が不連
続であるか否かを検出した結果に応じて、上記入力制御
手段に上記識別子を供給することを特徴とする請求項1
記載のデータ多重化装置。
2. The system according to claim 1, further comprising: a reference time discontinuity point detecting means attached to the input control means for detecting that the reference time is discontinuous. 2. The input control means according to claim 1, wherein said identifier is supplied to said input control means in accordance with a result of detecting whether or not it is continuous.
A data multiplexing device according to claim 1.
【請求項3】 上記基準時間不連続点検出手段は、上記
入力基準時刻情報における初期値からの増分と、上記基
準時間における初期値からの増分との差分が、所定の範
囲内であるかを判別することを特徴とする請求項2記載
のデータ多重化装置。
3. The reference time discontinuity point detecting means determines whether a difference between an increment from the initial value in the input reference time information and an increment from the initial value in the reference time is within a predetermined range. 3. The data multiplexing device according to claim 2, wherein the determination is performed.
【請求項4】 上記入力制御手段は、上記基準時間が不
連続であることを示し且つ上記符号化入力ストリームと
同期して外部から送られてくる信号を入力し、この信号
に基づいた上記識別子を保持することを特徴とする請求
項1記載のデータ多重化装置。
4. The input control means inputs a signal indicating that the reference time is discontinuous, and a signal sent from outside in synchronization with the encoded input stream, and the identifier based on the signal. 2. The data multiplexing apparatus according to claim 1, wherein
【請求項5】 上記符号化入力ストリームを構成するプ
ログラム毎に独立であり、上記符号化出力ストリームの
ヘッダ領域に重畳する出力基準時刻情報を生成する出力
基準時刻情報生成手段を備え、 上記基準時間不連続点検出手段は、上記出力基準時刻情
報が連続となるように、上記入力基準時刻情報における
初期値と、上記入力基準時刻情報における初期値からの
増分とに基づいて、上記入力基準時刻情報を変換して上
記出力基準時刻情報生成手段に供給するとともに、上記
基準時間の初期値と、上記入力基準時刻情報における初
期値とに基づいて、上記符号化出力ストリームのヘッダ
領域に重畳する再生出力時刻及び/又は復号時刻を指定
するための同期再生情報に対する偏位量を求めて上記入
力制御手段に供給し、 上記出力制御手段は、上記符号化出力ストリームを出力
する際に、上記入力制御手段から上記偏位量を読み出
し、上記偏位量を上記同期再生情報に加算して上記符号
化出力ストリームのヘッダ領域に重畳することを特徴と
する請求項2記載のデータ多重化装置。
5. An output reference time information generating means which is independent for each program constituting the encoded input stream and generates output reference time information to be superimposed on a header area of the encoded output stream, wherein the reference time The discontinuous point detecting means, based on an initial value in the input reference time information and an increment from the initial value in the input reference time information, so that the output reference time information is continuous, And supplies it to the output reference time information generating means, and reproduces the reproduced output superimposed on the header area of the encoded output stream based on the initial value of the reference time and the initial value in the input reference time information. A deviation amount for synchronous reproduction information for designating a time and / or a decoding time is obtained and supplied to the input control means; When outputting the encoded output stream, the deviation amount is read from the input control means, and the deviation amount is added to the synchronous reproduction information and is superimposed on a header area of the encoded output stream. 3. The data multiplexing device according to claim 2, wherein
【請求項6】 上記符号化入力ストリームを構成するプ
ログラム間で共通であり、上記符号化出力ストリームの
ヘッダ領域に重畳する出力基準時刻情報を生成する出力
基準時刻情報生成手段を備え、 上記基準時間不連続点検出手段は、上記基準時間の初期
値と、上記入力基準時刻情報における初期値とに基づい
て、上記符号化出力ストリームのヘッダ領域に重畳する
再生出力時刻及び/又は復号時刻を指定するための同期
再生情報に対する偏位量を求めて上記入力制御手段に供
給し、 上記出力制御手段は、上記符号化出力ストリームを出力
する際に、上記入力制御手段から上記偏位量を読み出
し、上記偏位量を上記同期再生情報に加算して上記符号
化出力ストリームのヘッダ領域に重畳することを特徴と
する請求項2記載のデータ多重化装置。
6. An output reference time information generating means for generating output reference time information which is common to the programs constituting the encoded input stream and which is superimposed on a header area of the encoded output stream, wherein the reference time The discontinuous point detecting means specifies a reproduction output time and / or a decoding time to be superimposed on a header area of the encoded output stream based on the initial value of the reference time and the initial value in the input reference time information. The output control means reads out the deviation amount from the input control means when outputting the encoded output stream, and obtains the deviation amount with respect to the synchronous reproduction information. 3. The data multiplexing apparatus according to claim 2, wherein a deviation amount is added to said synchronous reproduction information and superimposed on a header area of said encoded output stream.
【請求項7】 単一の時間軸を再生するための入力基準
時刻情報がヘッダ領域に付加された少なくとも1つ以上
の符号化入力ストリームを入力して読み込むとともに、
上記入力基準時刻情報により再生した基準時間が不連続
であるか否かが検出された結果を識別する識別子を保持
し、 上記符号化入力ストリームを単一の符号化出力ストリー
ムに多重化して出力する際に、上記識別子を読み出し、
上記符号化出力ストリームのヘッダ領域に上記識別子を
付加して上記符号化出力ストリームを出力することを特
徴とするデータ多重化方法。
7. Input and read at least one or more encoded input streams in which input reference time information for reproducing a single time axis is added to a header area,
Holds an identifier for identifying a result of detecting whether or not the reference time reproduced based on the input reference time information is discontinuous, and multiplexes the coded input stream into a single coded output stream and outputs the multiplexed output stream When reading the above identifier,
A data multiplexing method, characterized by adding the identifier to a header area of the encoded output stream and outputting the encoded output stream.
【請求項8】 上記入力基準時刻情報における初期値か
らの増分と、上記基準時間における初期値からの増分と
の差分が、所定の範囲内であるかを判別し、上記基準時
間が不連続であるか否かを検出することを特徴とする請
求項7記載のデータ多重化方法。
8. It is determined whether a difference between an increment from the initial value in the input reference time information and an increment from the initial value in the reference time is within a predetermined range. 8. The data multiplexing method according to claim 7, wherein whether or not there is a data is detected.
【請求項9】 上記基準時間が不連続であることを示し
且つ上記符号化入力ストリームと同期して外部から送ら
れてくる信号を入力し、この信号に基づいた上記識別子
を保持することを特徴とする請求項7記載のデータ多重
化方法。
9. A signal indicating that the reference time is discontinuous, inputting an externally transmitted signal in synchronization with the encoded input stream, and retaining the identifier based on the signal. The data multiplexing method according to claim 7, wherein
【請求項10】 上記基準時間の初期値と、上記入力基
準時刻情報における初期値とに基づいて、上記符号化出
力ストリームのヘッダ領域に重畳する再生出力時刻及び
/又は復号時刻を指定するための同期再生情報に対する
偏位量を求め、 上記符号化出力ストリームを出力する際に、上記偏位量
を読み出し、上記偏位量を上記同期再生情報に加算して
上記符号化出力ストリームのヘッダ領域に重畳すること
を特徴とする請求項8記載のデータ多重化方法。
10. A reproduction output time and / or a decoding time to be superimposed on a header area of the encoded output stream based on an initial value of the reference time and an initial value in the input reference time information. Finding the amount of deviation for synchronous reproduction information, when outputting the encoded output stream, read the amount of deviation, add the amount of deviation to the synchronous reproduction information, and add the deviation to the header area of the encoded output stream. 9. The data multiplexing method according to claim 8, wherein the data multiplexing is performed.
【請求項11】 上記符号化入力ストリームを構成する
プログラム毎に独立であり、上記符号化出力ストリーム
のヘッダ領域に重畳する出力基準時刻情報が連続となる
ように、上記入力基準時刻情報における初期値と、上記
入力基準時刻情報における初期値からの増分とに基づい
て、上記入力基準時刻情報を変換することを特徴とする
請求項10記載のデータ多重化方法。
11. An initial value in said input reference time information which is independent for each program constituting said encoded input stream and is superimposed on output reference time information superimposed on a header area of said encoded output stream. 11. The data multiplexing method according to claim 10, wherein the input reference time information is converted based on the input reference time information and an increment from an initial value in the input reference time information.
JP11248899A 1999-04-20 1999-04-20 Data multiplexing apparatus and data multiplexing method Expired - Fee Related JP4168527B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11248899A JP4168527B2 (en) 1999-04-20 1999-04-20 Data multiplexing apparatus and data multiplexing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11248899A JP4168527B2 (en) 1999-04-20 1999-04-20 Data multiplexing apparatus and data multiplexing method

Publications (2)

Publication Number Publication Date
JP2000307542A true JP2000307542A (en) 2000-11-02
JP4168527B2 JP4168527B2 (en) 2008-10-22

Family

ID=14587907

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11248899A Expired - Fee Related JP4168527B2 (en) 1999-04-20 1999-04-20 Data multiplexing apparatus and data multiplexing method

Country Status (1)

Country Link
JP (1) JP4168527B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005032131A1 (en) * 2003-09-29 2005-04-07 Victor Company Of Japan, Limited Encoding apparatus and method, recording apparatus and method, and decoding apparatus and method
JP2006128823A (en) * 2004-10-26 2006-05-18 Oki Electric Ind Co Ltd Coder, decoder, and video transmission system

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4810846B2 (en) 2005-03-15 2011-11-09 富士ゼロックス株式会社 Programs that prevent unauthorized use of program data

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005032131A1 (en) * 2003-09-29 2005-04-07 Victor Company Of Japan, Limited Encoding apparatus and method, recording apparatus and method, and decoding apparatus and method
GB2425671A (en) * 2003-09-29 2006-11-01 Victor Company Of Japan Encoding apparatus and method,recording apparatus and method, and decoding apparatus and method
GB2425671B (en) * 2003-09-29 2007-12-27 Victor Company Of Japan Encoding apparatus and method, recording apparatus and method, and decoding apparatus and method
JP2006128823A (en) * 2004-10-26 2006-05-18 Oki Electric Ind Co Ltd Coder, decoder, and video transmission system

Also Published As

Publication number Publication date
JP4168527B2 (en) 2008-10-22

Similar Documents

Publication Publication Date Title
KR100298958B1 (en) Synchronization arrangement for a compressed video signal
US6292621B1 (en) Recording apparatus for newly recording a second encoded data train on a recording medium on which an encoded data train is recorded
US6359910B1 (en) Clock conversion apparatus and method
EP0712256B1 (en) Recording/reproducing apparatus
JPH11205696A (en) Video transmitting device and video transmitting method
EP0944086A2 (en) Data recording method and data recording system
JP3045715B2 (en) Transmission system, transmitting device, recording / reproducing device, and recording device
US6731658B1 (en) Data recording method and data recording apparatus
JP2006345223A (en) Device and method for recording and output
US7415014B2 (en) Method and system for co-relating transport packets on different channels using a packet prioritization scheme
JP4092705B2 (en) Stream transmitting apparatus, receiving apparatus, and transmission / reception method
JP3893643B2 (en) Signal multiplexing method and transmission signal generating apparatus using the same
JP6813933B2 (en) Video / audio transmission system, transmission method, transmitter and receiver
JP2003259365A (en) Data stream processing apparatus
JP3400681B2 (en) Data packet remultiplexing method and remultiplexing apparatus
JP2000307542A (en) Data multiplexing device and data multiplexing method
JPH11205789A (en) Transmission rate converter of mpeg2 transport stream
JP2000101560A (en) Clock synchronization circuit and transmitter
JP3736396B2 (en) Stream transmitting apparatus and receiving apparatus
JP2000244437A (en) Data multiplexer and data multiplexing method
JP2002374220A (en) Stream transmission reception system, and stream transmitter and receiver
JP2000244433A (en) Data multiplexer and data multiplexing method
JPH09261237A (en) Encoder device, decoder device and signal transmission method
JPH11112452A (en) Information processor, method therefor and transmission medium
JP2000187940A (en) Recording/reproducing device and recorder

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060126

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: 20080715

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: 20080728

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

Free format text: PAYMENT UNTIL: 20110815

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20110815

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees