JP2003224831A - Multiplexing apparatus and method, recording medium, and program - Google Patents

Multiplexing apparatus and method, recording medium, and program

Info

Publication number
JP2003224831A
JP2003224831A JP2002019032A JP2002019032A JP2003224831A JP 2003224831 A JP2003224831 A JP 2003224831A JP 2002019032 A JP2002019032 A JP 2002019032A JP 2002019032 A JP2002019032 A JP 2002019032A JP 2003224831 A JP2003224831 A JP 2003224831A
Authority
JP
Japan
Prior art keywords
stream
multiplexing
arrival time
video
multiplexed
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
JP2002019032A
Other languages
Japanese (ja)
Other versions
JP4147452B2 (en
Inventor
Koji Obata
功史 小幡
Tomoyuki Sato
智之 佐藤
Motoki Kato
元樹 加藤
Yoshikazu Takashima
芳和 高島
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 JP2002019032A priority Critical patent/JP4147452B2/en
Publication of JP2003224831A publication Critical patent/JP2003224831A/en
Application granted granted Critical
Publication of JP4147452B2 publication Critical patent/JP4147452B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

<P>PROBLEM TO BE SOLVED: To easily revise the contents of a prescribed multiplexed stream. <P>SOLUTION: A scheduler 8 controls multiplexing of a multiplexer 8 according to a multiplexing schedule based on arrival time information attached to packets constituting a stream other than a video stream. A multiplexer 9 properly reads packets constituting a video stream stored in a buffer memory 5 and attaches the arrival time information supplied from the scheduler 8 to the packet. The multiplexer 9 multiplexes the packets of streams other than video streams read from a buffer memory 7 on the packets of the video streams read from the buffer memory 5 and supplies resultant MPEG transport streams to an error correction section 10. <P>COPYRIGHT: (C)2003,JPO

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、多重化装置および
方法、記録媒体、並びにプログラムに関し、特に、多重
化されているストリームの内容を容易に変更することが
できるようにした多重化装置および方法、記録媒体、並
びにプログラムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a multiplexing device and method, a recording medium, and a program, and more particularly, to a multiplexing device and method capable of easily changing the contents of a multiplexed stream. , A recording medium, and a program.

【0002】[0002]

【従来の技術】映像、および音声、並びにこれらに関連
した字幕、静止画などの情報を、1つのストリームに多
重化して記録または伝送するための規格として、MPEG
(MovingPicture Experts Group)システム規格(ISO/I
EC13818-1)が存在する。
2. Description of the Related Art MPEG is used as a standard for multiplexing and recording or transmitting information such as video and audio, and related information such as subtitles and still images.
(MovingPicture Experts Group) System standard (ISO / I
EC13818-1) exists.

【0003】例えば、ヨーロッパ領域で行われているDV
B(Digital Video Broadcasting)、または日本国で行わ
れているBS(Broadcasting Satellite)デジタル放送など
のデジタルテレビジョン放送においては、MPEG2トラン
スポートストリームが用いられ、またDVD-videoフォー
マット、またはDVD-VR(Video Recording)フォーマット
などの記録においては、MPEGプログラムストリームが用
いられている。
[0003] For example, DV performed in Europe
In digital television broadcasting such as B (Digital Video Broadcasting) or BS (Broadcasting Satellite) digital broadcasting performed in Japan, MPEG2 transport stream is used, and DVD-video format or DVD-VR ( An MPEG program stream is used for recording in a video recording format or the like.

【発明が解決しようとする課題】ところで、MPEGトラン
スポートストリームまたはMPEGプログラムストリームに
多重化されている、例えば、ビデオストリームまたはオ
ーディオストリームのビットレートを低くする場合な
ど、特定のストリームの内容を変更した場合、多重化さ
れている全てのストリームを分離し、所定のストリーム
に処理を施し、そしてその後、全てのストリームを再多
重化する必要があった。
By the way, the contents of a specific stream, such as a case where the bit rate of a video stream or an audio stream multiplexed in an MPEG transport stream or an MPEG program stream is lowered, are changed. In this case, it was necessary to separate all multiplexed streams, to process a given stream, and then to remultiplex all streams.

【0004】通常、再多重化を行う場合、多くの演算が
必要になるとともに、分離したストリームを個別に記憶
するためのメモリを用意し、それを管理しなければなら
ないので、結局、特定のストリームの内容を変更する場
合、時間がかかったり、装置の構成が煩雑になる課題が
あった。
Usually, when performing re-multiplexing, many operations are required, and a memory for separately storing separated streams must be prepared and managed, so that a specific stream is eventually obtained. When changing the contents of, there is a problem that it takes time and the configuration of the device becomes complicated.

【0005】本発明はこのような状況に鑑みてなされた
ものであり、多重化されている所定のストリームの内容
を容易に変更することができるようにするものである。
The present invention has been made in view of such a situation, and it is an object of the present invention to easily change the contents of a predetermined stream which is multiplexed.

【0006】[0006]

【課題を解決するための手段】本発明の多重化装置は、
第1の多重化ストリームの到着時刻に基づいて、第1の
多重化ストリームに挿入できるデータ量を算出する算出
手段と、算出手段により算出されたデータ量分のデータ
を、第1の多重化ストリームに挿入して、第2の多重化
ストリームを多重化する多重化手段とを備えることを特
徴とする。
The multiplexer according to the present invention comprises:
A calculation unit that calculates the amount of data that can be inserted into the first multiplexed stream based on the arrival time of the first multiplexed stream, and the data for the amount of data calculated by the calculation unit is used as the first multiplexed stream. And a multiplexing unit for multiplexing the second multiplexed stream.

【0007】本発明の多重化方法は、第1の多重化スト
リームの到着時刻に基づいて、第1の多重化ストリーム
に挿入できるデータ量を算出する算出ステップと、算出
ステップの処理で算出されたデータ量分のデータを、第
1の多重化ストリームに挿入して、第2の多重化ストリ
ームを多重化する多重化ステップとを含むことを特徴と
する。
In the multiplexing method of the present invention, the calculation step of calculating the amount of data that can be inserted into the first multiplexed stream based on the arrival time of the first multiplexed stream and the calculation step are performed. And a multiplexing step of inserting data of the data amount into the first multiplexed stream and multiplexing the second multiplexed stream.

【0008】本発明の記録媒体のプログラムは、第1の
多重化ストリームの到着時刻に基づく、第1の多重化ス
トリームに挿入できるデータ量の算出を制御する算出制
御ステップと、算出制御ステップの処理で算出されたデ
ータ量分のデータを、第1の多重化ストリームに挿入す
ることによる、第2の多重化ストリームの多重化を制御
する多重化制御ステップとを含むことを特徴とする。
The program of the recording medium of the present invention comprises a calculation control step for controlling the calculation of the amount of data that can be inserted into the first multiplexed stream based on the arrival time of the first multiplexed stream, and processing of the calculation control step. And a multiplexing control step of controlling the multiplexing of the second multiplexed stream by inserting the data for the data amount calculated in step 1 into the first multiplexed stream.

【0009】本発明のプログラムは、第1の多重化スト
リームの到着時刻に基づく、第1の多重化ストリームに
挿入できるデータ量の算出を制御する算出制御ステップ
と、算出制御ステップの処理で算出されたデータ量分の
データを、第1の多重化ストリームに挿入することによ
る、第2の多重化ストリームの多重化を制御する多重化
制御ステップとを含む処理をコンピュータに実行させる
ことを特徴とする。
The program of the present invention is calculated by the calculation control step for controlling the calculation of the amount of data that can be inserted into the first multiplexed stream based on the arrival time of the first multiplexed stream, and the calculation control step. And a multiplexing control step of controlling the multiplexing of the second multiplexed stream by inserting the data of the data amount into the first multiplexed stream. .

【0010】本発明の多重化装置および方法、並びにプ
ログラムにおいては、第1の多重化ストリームの到着時
刻に基づいて、第1の多重化ストリームに挿入できるデ
ータ量が算出され、算出されたデータ量分のデータが、
第1の多重化ストリームに挿入されて、第2の多重化ス
トリームが多重化される。
In the multiplexing device and method and the program of the present invention, the amount of data that can be inserted into the first multiplexed stream is calculated based on the arrival time of the first multiplexed stream, and the calculated amount of data is calculated. Minutes of data
The second multiplexed stream is multiplexed by being inserted into the first multiplexed stream.

【0011】[0011]

【発明の実施の形態】図1は、本発明を適用した記録装
置の構成例を示している。
1 shows an example of the configuration of a recording apparatus to which the present invention is applied.

【0012】チューナ1は、受信した電波を復調し、番
組選択情報により選局されたチャンネルの、MPEG(Movi
ng Picture Experts Group)2の規格に準拠して符号化
されたMPEGトランスポートストリームを、デマルチプレ
クサ2に出力する。
The tuner 1 demodulates the received radio wave, and the MPEG (Movi) of the channel selected by the program selection information is demodulated.
ng Picture Experts Group) 2 MPEG transport stream encoded according to the standard is output to the demultiplexer 2.

【0013】デマルチプレクサ2は、チューナ1から供
給されたMPEGトランスポートストリームから、番組選択
情報により選択された番組を構成するストリームを抽出
するとともに、抽出したストリームを、PID(packet I
D)に基づいてビデオストリームと、ビデオストリーム
以外のストリーム(オーディオデータや制御データから
なるストリーム)に分解し、ビデオストリームをビデオ
デコーダ3に供給し、ビデオストリーム以外のストリー
ムを、到着時刻付加部6に供給する。
The demultiplexer 2 extracts a stream forming a program selected by the program selection information from the MPEG transport stream supplied from the tuner 1, and extracts the extracted stream from a PID (packet I
The video stream is decomposed into a video stream and a stream other than the video stream (stream consisting of audio data and control data) based on D), and the video stream is supplied to the video decoder 3. Supply to.

【0014】例えば、図2Aに示すMPEGトランスポート
ストリームがデマルチプレクサ2に入力された場合、例
えば、到着時刻付加部6には、図中、”V”が付されて
いる、ビデオストリームのパケットのみが取り出され
た、図2Bに示すような、オーディオデータのパケット
P0,P1,P3,・・・と、制御データのパケットP2,
・・・からなるストリームが供給される。なお、このス
トリームにおいて、各パケットの位置(パケットの間
隔)は、元のMPEGトランスポートストリームにおける状
態が保持されている。
For example, when the MPEG transport stream shown in FIG. 2A is input to the demultiplexer 2, for example, only the packets of the video stream to which the "V" is attached in the drawing are added to the arrival time adding unit 6. 2B, audio data packets P0, P1, P3, ... And control data packets P2,
Is supplied. In this stream, the position of each packet (packet interval) holds the state in the original MPEG transport stream.

【0015】ビデオデコーダ3は、デマルチプレクサ2
から入力されたビデオストリームを、MPEG2の規格に準
拠してデコードし、その結果得られたビデオ信号をビデ
オエンコーダ4に供給する。ビデオデコーダ3はこのと
き、ビデオストリームに組み込まれている表示時刻情報
を抽出し、スケジューラ8に供給する。
The video decoder 3 includes a demultiplexer 2
The video stream input from is decoded in accordance with the MPEG2 standard, and the resulting video signal is supplied to the video encoder 4. At this time, the video decoder 3 extracts the display time information incorporated in the video stream and supplies it to the scheduler 8.

【0016】ビデオエンコーダ4は、ビデオデコーダ3
からのビデオ信号を、要求されるビットレートで(例え
ば、元のビットレートより低いビットレートで)、MPEG
2の規格に準拠してエンコードし、その結果得られたビ
デオストリームを、バッファメモリ5を介してマルチプ
レクサ9に供給する。ビデオエンコーダ4はこのとき、
例えば、Picture Coding Type、発生ビット量、Top Fie
ld First Flag、Repeat First Field Flag等のアクセス
ユニット情報を、スケジューラ8に供給する。
The video encoder 4 is a video decoder 3
Video signal from MPEG at the required bit rate (eg lower than the original bit rate)
The video stream obtained as a result of encoding in accordance with the standard No. 2 is supplied to the multiplexer 9 via the buffer memory 5. At this time, the video encoder 4
For example, Picture Coding Type, amount of generated bits, Top Fie
The access unit information such as ld First Flag and Repeat First Field Flag is supplied to the scheduler 8.

【0017】到着時刻付加部6は、入力された、ビデオ
ストリーム以外のストリームを構成するパケットに、そ
のパケットが記録装置に到着した時刻を表す到着時刻情
報を付加する。到着時刻情報が付加されたパケットは、
バッファメモリ7に供給されて一時的に記憶される。
The arrival time addition unit 6 adds arrival time information indicating the time when the packet arrives at the recording device, to the input packet that constitutes a stream other than the video stream. Packets with arrival time information added,
It is supplied to the buffer memory 7 and temporarily stored.

【0018】例えば、到着時刻付加部6に、図2Bに示
したストリームが入力される場合、例えば、パケットP
0の到着時刻は、時刻t0であるので、パケットP0に
は、図2Cに示すように、時刻t0を表す到着時刻情報
(図中、ATSと示されている)が付加されてバッファメ
モリ7に記憶される。同様に、パケットP1には、時刻
t1を表す時刻情報が、パケットP2には、時刻t2を表
す時刻情報が、そしてパケットP3には、時刻t3を表す
時刻情報がそれぞれ付加されてバッファメモリ7に記憶
される。
For example, when the stream shown in FIG. 2B is input to the arrival time addition unit 6, for example, the packet P
Since the arrival time of 0 is time t0, as shown in FIG. 2C, arrival time information (indicated as ATS in the figure) representing time t0 is added to the packet P0 and stored in the buffer memory 7. Remembered. Similarly, the packet P1 is added with the time information indicating the time t1, the packet P2 is added with the time information indicating the time t2, and the packet P3 is added with the time information indicating the time t3. Remembered.

【0019】なお、到着時刻情報は、多重化の時間間隔
を復元できるものであればよく、例えば、27MHzのクロ
ックのカウント値などが利用される。また、図2Cの例
では、到着時刻情報がパケットの先頭に付加されている
が、後で取り除くことができれば、他の場所に付加する
こともできる。
The arrival time information may be any information as long as the time interval of multiplexing can be restored, and for example, a count value of a 27 MHz clock is used. In the example of FIG. 2C, the arrival time information is added to the beginning of the packet, but if it can be removed later, it can be added to another place.

【0020】スケジューラ8は、ビデオデコーダ3から
入力される表示時刻情報、ビデオエンコーダ4から入力
されるアクセスユニット情報、およびマルチプレクサ9
から入力される到着時刻情報(ビデオストリーム以外の
ストリームを構成するパケットに付加された到着時刻情
報)に基づく多重化スケジュールに従って、マルチプレ
クサ9の多重化を制御する。なお、多重化を制御する
際、スケジューラ8は、ビデオストリームを構成するパ
ケットに付加される到着時刻情報をマルチプレクサ9に
供給する。
The scheduler 8 has display time information input from the video decoder 3, access unit information input from the video encoder 4, and a multiplexer 9.
The multiplexing of the multiplexer 9 is controlled according to the multiplexing schedule based on the arrival time information (arrival time information added to the packets forming the stream other than the video stream) input from the. When controlling the multiplexing, the scheduler 8 supplies the arrival time information added to the packets forming the video stream to the multiplexer 9.

【0021】マルチプレクサ9は、バッファメモリ7に
記憶されているビデオストリーム以外のストリームを構
成するパケットを適宜読み出し、それに付加された到着
時刻情報を読み取り、スケジューラ8に通知する。
The multiplexer 9 appropriately reads the packets forming the streams other than the video stream stored in the buffer memory 7, reads the arrival time information added thereto, and notifies the scheduler 8 of the arrival time information.

【0022】マルチプレクサ9は、バッファメモリ5に
記憶されているビデオストリームを構成するパケットを
適宜読み出し、それに、スケジューラ8から供給される
到着時刻情報を付加する。
The multiplexer 9 appropriately reads the packets forming the video stream stored in the buffer memory 5, and adds the arrival time information supplied from the scheduler 8 thereto.

【0023】マルチプレクサ9は、スケジューラ8の制
御に従い、バッファメモリ7から読み出したビデオスト
リーム以外のストリームのパケットと、バッファメモリ
5から読み出したビデオストリームのパケットを多重化
し、その結果得られたMPEGトランスポートストリームを
誤り訂正部10に供給する。
Under the control of the scheduler 8, the multiplexer 9 multiplexes the packets of the streams other than the video stream read from the buffer memory 7 and the packets of the video stream read from the buffer memory 5, and the resulting MPEG transport. The stream is supplied to the error correction unit 10.

【0024】例えば、図2Dに示すように多重化された
MPEGトランスポートストリームが、誤り訂正部10に供
給される。
For example, as shown in FIG.
The MPEG transport stream is supplied to the error correction unit 10.

【0025】誤り訂正部10に供給されたMPEGトランス
ポートストリームは、そこで誤り訂正がなされ、そして
変調された後、記録ヘッド12を介して、記録媒体13
に供給されて記録される。
The MPEG transport stream supplied to the error correction unit 10 is subjected to error correction there, and after being modulated, passes through the recording head 12 to a recording medium 13
Will be supplied to and recorded.

【0026】以上のように、ビデオストリームのパケッ
ト、およびビデオストリーム以外のストリームのパケッ
トに、多重化間隔を復元するための到着時刻情報を付加
したので、再多重化されたMPEGトランスポートストリー
ムは、図2Eに示すように、記録時の時間間隔を保持し
た状態で再生される。
As described above, since the arrival time information for restoring the multiplexing interval is added to the packets of the video stream and the packets of the streams other than the video stream, the re-multiplexed MPEG transport stream is As shown in FIG. 2E, reproduction is performed with the time interval during recording maintained.

【0027】次に、MPEGトランスポートストリーム
を記録する場合のスケジューラ8の動作を、図3のフロ
ーチャートを参照して説明する。
Next, the operation of the scheduler 8 when recording an MPEG transport stream will be described with reference to the flowchart of FIG.

【0028】ステップS10において、スケジューラ8
は、1つのパケットを多重化する(挿入する)のに必要
な時間T0を、次式に基づいて算出する。 T0(sec)=パケット長(bit)/Rmux(bps) パケット長は、MPEGトランスポートストリームでは、1
88×8ビットと一定である。Rmuxは、多重化レート
である。
In step S10, the scheduler 8
Calculates the time T0 required to multiplex (insert) one packet based on the following equation. T0 (sec) = packet length (bit) / Rmux (bps) The packet length is 1 in the MPEG transport stream.
It is constant at 88 × 8 bits. Rmux is the multiplexing rate.

【0029】ここで算出された時間T0は、スケジュー
ラ8に内蔵されるメモリに記憶される。
The time T0 calculated here is stored in the memory built in the scheduler 8.

【0030】次に、ステップS11において、スケジュ
ーラ8は、多重化されていないパケットが残っているか
否かを判定し、残っていると判定した場合、すなわち、
ストリームが終了していない場合、ステップS12に進
む。
Next, in step S11, the scheduler 8 determines whether or not there is a packet that has not been multiplexed, and if it is determined that there is a packet, that is,
If the stream has not ended, the process proceeds to step S12.

【0031】ステップS12において、スケジューラ8
は、マルチプレクサ9から入力された到着時刻情報(例
えば、いまマルチプレクサ9によりバッファメモリ7か
ら読み出されたビデオストリーム以外のストリームを構
成するパケットPcurの到着時刻情報)を読み取り、そ
れが表す時刻を時刻tcurとして記憶する。
In step S12, the scheduler 8
Reads the arrival time information input from the multiplexer 9 (for example, the arrival time information of the packet Pcur which constitutes a stream other than the video stream read from the buffer memory 7 by the multiplexer 9 now), and indicates the time represented by the time. Store as tcur.

【0032】例えば図2CのパケットP1がマルチプレ
クサ9に付加された到着時刻情報が読み取られ、それが
表す時刻t1が時刻tcurとして記憶される。
For example, the arrival time information when the packet P1 of FIG. 2C is added to the multiplexer 9 is read, and the time t1 represented by the arrival time information is stored as the time tcur.

【0033】次に、ステップS13において、スケジュ
ーラ8は、時刻tcurと、前回のここでの処理でマルチ
プレクサ9から入力された到着時刻情報(パケットPcu
rより1つ前にマルチプレクサ9によりバッファメモリ
7から読み出されたパケットPprevの到着時刻情報)を
表す時刻tprevを用いて、下記の式に示すように、その
差分Tdiffを算出する。 Tdiff=tprev−tcur
Next, in step S13, the scheduler 8 receives the time tcur and the arrival time information (packet Pcu input from the multiplexer 9 in the previous processing here.
The difference Tdiff is calculated as shown in the following equation using the time tprev that represents the arrival time information of the packet Pprev read from the buffer memory 7 by the multiplexer 9 immediately before r. Tdiff = tprev-tcur

【0034】例えば、図4に示すように、例えば、図2
BにおけるパケットP0(パケットPprev)とパケット
P1(パケットPcur)との間隔が、Tdiffとして算出さ
れる。
For example, as shown in FIG.
The interval between the packet P0 (packet Pprev) and the packet P1 (packet Pcur) in B is calculated as Tdiff.

【0035】スケジューラ8はその後、パケットPcur
の到着時刻情報が表す時刻tcur(パケットP1の到着時
刻情報が表す時刻t1)を、時刻tprevとして記憶す
る。
The scheduler 8 then sends the packet Pcur
The time tcur represented by the arrival time information (time t1 represented by the arrival time information of the packet P1) is stored as the time tprev.

【0036】ステップS14において、スケジューラ8
は、ステップS13で算出したTdiffが値0より大きい
か否かを判定し、大きいと判定した場合、ステップS1
5に進み、下記の式を算出して、Tdiffに(パケットP
prevとパケットPcurの間に)挿入することができるビ
デオストリームのパケット数Nを算出する。
In step S14, the scheduler 8
Determines whether Tdiff calculated in step S13 is greater than the value 0. If it is determined that Tdiff is greater than 0, step S1
Go to step 5 and calculate the following formula to calculate Tdiff (packet P
Calculate the number N of packets of the video stream that can be inserted (between prev and packet Pcur).

【0037】N=(Tdiff/T0)−1N = (Tdiff / T0) -1

【0038】例えば、図4に示すように、パケットP1
とパケットP0が、パケットPprevとパケットPcurであ
る場合のTdiffに挿入することができるビデオストリー
ムのパケット数Nは、3である。
For example, as shown in FIG. 4, packet P1
When the packet P0 is the packet Pprev and the packet Pcur, the number N of packets of the video stream that can be inserted into Tdiff is 3.

【0039】ステップS16において、スケジューラ8
は、ステップS15で算出したパケット数Nが0である
か否かを判定し、0ではないと判定した場合、ステップ
S17に進む。
In step S16, the scheduler 8
Judges whether or not the number of packets N calculated in step S15 is 0, and if it is judged not to be 0, the process proceeds to step S17.

【0040】ステップS17において、スケジューラ8
は、T-STDのバッファに、1つのパケットを蓄えること
ができる分の空きが存在するか否かを確認し、ステップ
S18において、その確認結果に基づいて、ビデオスト
リームのパケットを多重化できるか否かを判定する。な
お、ステップS17の処理の詳細は、後述する。
In step S17, the scheduler 8
Confirms whether or not the T-STD buffer has a free space for storing one packet, and in step S18, based on the confirmation result, can the packet of the video stream be multiplexed? Determine whether or not. The details of the process of step S17 will be described later.

【0041】ステップS18で、多重化できると判定さ
れた場合、ステップS19に進み、スケジューラ8は、
マルチプレクサ9に対して多重化を指示する。
If it is determined in step S18 that multiplexing is possible, the process proceeds to step S19, in which the scheduler 8
Instruct the multiplexer 9 to perform multiplexing.

【0042】次に、ステップS20において、スケジュ
ーラ8は、パケット数Nから値1を減算するとともに、
ステップS21において、現在の時刻に時間T0を加算
して得られた時刻を、ビデオストリームのパケットに付
加される到着時刻情報として、マルチプレクサ9に供給
する。
Next, in step S20, the scheduler 8 subtracts the value 1 from the number N of packets, and
In step S21, the time obtained by adding the time T0 to the current time is supplied to the multiplexer 9 as the arrival time information added to the packet of the video stream.

【0043】なお、現在の時刻および時間T0は、とも
にMPEGトランスポートストリームのPCRに基づくタイム
スケール上の時刻および時間であって、到着時刻付加部
6でビデオストリーム以外のストリームのパケットに付
加された到着時刻は、到着時刻付加部6独自のタイムス
ケール上の時刻であるので、互いのタイムスケールが異
なるので、ビデオストリームと、ビデオストリーム以外
のストリームを多重化する際においては、互いのタイム
スケールを統一する必要がある。
The current time and time T0 are both the time and time on the time scale based on the PCR of the MPEG transport stream, and are added by the arrival time adding unit 6 to the packets of streams other than the video stream. Since the arrival time is a time on the time scale unique to the arrival time adding unit 6, the time scales differ from each other. Therefore, when the video stream and the streams other than the video stream are multiplexed, the time scales of the arrival times are set to each other. Need to be unified.

【0044】タイムスケールの統一は、ビデオストリー
ムのパケットに付加される到着時刻情報を、到着時刻付
加部6のタイムスケールに変更するか、またはビデオス
トリーム以外のストリームのパケットに付加されている
到着時刻情報を、PCRのタイムスケールに変更すること
により可能となるが、いまの場合、ビデオストリームの
パケットに付加される到着時刻情報(現在の時刻に時間
T0を加算して得られた時刻)を、到着時刻付加部6の
タイムスケールに変換するものとする。
To unify the time scale, the arrival time information added to the packets of the video stream is changed to the time scale of the arrival time addition unit 6 or the arrival time added to the packets of the streams other than the video stream. This can be done by changing the information to the PCR time scale, but in this case, the arrival time information (time obtained by adding the time T0 to the current time) added to the packet of the video stream, The time scale of the arrival time addition unit 6 is used for conversion.

【0045】その後、処理は、ステップS16に戻り、
それ以降の処理が行われる。
Thereafter, the process returns to step S16,
Subsequent processing is performed.

【0046】マルチプレクサ9は、スケジューラ8から
多重化の指令を受けると(ステップS19)、バッファ
メモリ5からビデオストリームのパケットを1つ読み出
し、それにスケジューラ8から供給された到着時刻情報
(ステップS21)を付加するとともに、パケットPpr
evから詰めて多重化する(挿入する)。なお、パケット
Pprevは、前回行われた後述するステップS22で多重
化されている。
When the multiplexer 9 receives the multiplexing instruction from the scheduler 8 (step S19), it reads one packet of the video stream from the buffer memory 5, and receives the arrival time information (step S21) supplied from the scheduler 8 therein. Add and packet Ppr
Pack from ev and multiplex (insert). The packet Pprev is multiplexed in step S22, which will be described later and is performed last time.

【0047】ステップS18で、ビデオストリームのパ
ケットを多重化することができないと判定された場合、
ステップS19の処理はスキップされ、ステップS20
に進む。すなわち、この場合、ステップS21で到着時
刻情報がマルチプレクサ9に供給されるが、多重化が指
示されないので(ステップS19)、ビデオストリーム
のパケットの多重化は行われない。
If it is determined in step S18 that the packets of the video stream cannot be multiplexed,
The process of step S19 is skipped and step S20 is performed.
Proceed to. That is, in this case, the arrival time information is supplied to the multiplexer 9 in step S21, but since multiplexing is not instructed (step S19), packet multiplexing of the video stream is not performed.

【0048】ステップS16で、パケット数N=0であ
ると判定された場合、すなわち、Tdiffに挿入すること
ができる数分のパケットがすべて多重化された場合、ス
テップS22に進み、スケジューラ8は、ビデオストリ
ーム以外のストリームのパケットの多重化を指示する。
When it is determined in step S16 that the number of packets N = 0, that is, when all the packets of the number that can be inserted in Tdiff are all multiplexed, the process proceeds to step S22, and the scheduler 8 Instructs multiplexing of packets for streams other than video streams.

【0049】マルチプレクサ9はこのとき、ビデオスト
リーム以外のストリームのパケットPcurを、ステップ
S19の処理における指示で多重化されたビデオストリ
ームのパケットに続けて多重化(挿入)する。これによ
り、例えば、図2Dに示すように、3個のビデオストリ
ームのパケットが、パケットP0とパケットP1の間に挿
入される(多重化される)。
At this time, the multiplexer 9 multiplexes (inserts) the packet Pcur of the stream other than the video stream into the packet of the video stream multiplexed according to the instruction in the process of step S19. As a result, for example, as shown in FIG. 2D, the packets of the three video streams are inserted (multiplexed) between the packets P0 and P1.

【0050】その後、ステップS11に戻り、それ以降
の処理が実行される。
Then, the process returns to step S11, and the subsequent processes are executed.

【0051】ステップS11において、多重化されるパ
ケットが残っていないと判定された場合、スケジューラ
8は、処理を終了させる。
When it is determined in step S11 that there are no packets to be multiplexed, the scheduler 8 ends the process.

【0052】以上のように、本発明では、その内容を変
更する(例えば、ビットレートを変更する)ストリーム
(例えば、ビデオストリーム)とそれ以外のストリーム
に分割されるので、2つのバッファを用意すればよく、
装置の構成を簡単なものにすることができる。また、多
重化に必要な演算は、実質、Tdiffの算出(ステップS
13)およびパケット数Nの算出(ステップS15)だ
けであるので、迅速に、多重化処理を行うことができ
る。
As described above, according to the present invention, since the stream (for example, the video stream) whose contents are changed (for example, the bit rate is changed) and the other stream are divided, two buffers should be prepared. Good luck
The structure of the device can be simplified. Further, the calculation required for multiplexing is substantially the calculation of Tdiff (step S
13) and the calculation of the number N of packets (step S15), the multiplexing process can be performed quickly.

【0053】以上においては、MPEGトランスポートスト
リームを記録する場合を例として説明したが、以下にお
いて、MPEGプログラムストリームを記録する場合につい
て説明する。
In the above, the case of recording the MPEG transport stream has been described as an example, but the case of recording the MPEG program stream will be described below.

【0054】このときデマルチプレクサ2は、チューナ
1から供給されたMPEGプログラムストリームから、番組
選択情報により選択された番組を構成するストリームを
抽出するとともに、抽出したストリームを、ストリーム
IDに基づいてビデオストリームと、ビデオストリーム
以外のストリーム(オーディオデータや制御データから
なるストリーム)に分解し、ビデオストリームをビデオ
デコーダ3に供給し、ビデオストリーム以外のストリー
ムを、到着時刻付加部6に供給する。
At this time, the demultiplexer 2 extracts a stream forming a program selected by the program selection information from the MPEG program stream supplied from the tuner 1, and extracts the extracted stream based on the stream ID. Then, the video stream is decomposed into streams other than the video stream (streams including audio data and control data), the video stream is supplied to the video decoder 3, and the streams other than the video stream are supplied to the arrival time addition unit 6.

【0055】例えば、図5Aに示すMPEGプログラムスト
リームがデマルチプレクサ2に入力された場合、例え
ば、到着時刻付加部6には、図中、”V”が付されてい
る、ビデオストリームのパックのみが取り出された、図
5Bに示すような、オーディオデータのパック(”A”
が付されているパック)と、制御データのパック”D”
が付されているパック)からなるストリームが供給され
る。なお、このストリームにおいて、各パックの位置
(パックの間隔)は、元のMPEGプログラムストリームに
おける状態が保持されている。
For example, when the MPEG program stream shown in FIG. 5A is input to the demultiplexer 2, for example, the arrival time adding unit 6 includes only packs of video streams, which are marked with "V" in the figure. The extracted audio data pack ("A") as shown in FIG. 5B.
Pack with ")" and control data pack "D"
A stream consisting of packs marked with is supplied. In this stream, the position of each pack (interval between packs) holds the state in the original MPEG program stream.

【0056】ビデオデコーダ3は、デマルチプレクサ2
から入力されたビデオストリームを、MPEG2の規格に準
拠してデコードし、その結果得られたビデオ信号をビデ
オエンコーダ4に供給する。ビデオデコーダ3はこのと
き、ビデオストリームに組み込まれている表示時刻情報
を抽出し、スケジューラ8に供給する。
The video decoder 3 includes a demultiplexer 2
The video stream input from is decoded in accordance with the MPEG2 standard, and the resulting video signal is supplied to the video encoder 4. At this time, the video decoder 3 extracts the display time information incorporated in the video stream and supplies it to the scheduler 8.

【0057】ビデオエンコーダ4は、ビデオデコーダ3
からのビデオ信号を、要求されるビットレートで(例え
ば、元のビットレートより低いビットレートで)、MPEG
2の規格に準拠してエンコードし、その結果得られたビ
デオストリームを、バッファメモリ5を介してマルチプ
レクサ9に供給する。ビデオエンコーダ4はこのとき、
アクセスユニット情報をスケジューラ8に供給する。
The video encoder 4 is the video decoder 3
Video signal from MPEG at the required bit rate (eg lower than the original bit rate)
The video stream obtained as a result of encoding in accordance with the standard No. 2 is supplied to the multiplexer 9 via the buffer memory 5. At this time, the video encoder 4
The access unit information is supplied to the scheduler 8.

【0058】例えば、到着時刻付加部6に、図2Bに示
したストリームが入力される場合、図2Cに示すよう
に、ビデオストリーム以外のストリームを構成するパッ
クに、そのパックが記録装置に到着した時刻を表す到着
時刻情報が付加されてバッファメモリ7に記憶される。
For example, when the stream shown in FIG. 2B is input to the arrival time adding unit 6, the pack has arrived at the recording device in a pack that constitutes a stream other than the video stream, as shown in FIG. 2C. Arrival time information indicating the time is added and stored in the buffer memory 7.

【0059】スケジューラ8は、ビデオデコーダ3から
入力された表示時刻情報、ビデオエンコーダ4から入力
されるアクセスユニット情報、およびマルチプレクサ9
から入力される到着時刻情報(ビデオストリーム以外の
ストリームを構成するパックに付加された到着時刻情
報)に基づく多重化スケジュールに従って、マルチプレ
クサ9の多重化を制御する。なお、多重化を制御する
際、スケジューラ8は、ビデオストリームを構成するパ
ックに付加される到着時刻情報をマルチプレクサ9に供
給する。
The scheduler 8 includes display time information input from the video decoder 3, access unit information input from the video encoder 4, and a multiplexer 9.
The multiplexing of the multiplexer 9 is controlled according to the multiplexing schedule based on the arrival time information (arrival time information added to the packs forming the streams other than the video stream) input from the. When controlling the multiplexing, the scheduler 8 supplies the arrival time information added to the packs forming the video stream to the multiplexer 9.

【0060】マルチプレクサ9は、スケジューラ8の制
御に従って多重化を行い、その結果得られた、例えば、
図5Dに示すようなMPEGプログラムストリームを誤り訂
正部10に供給する。
The multiplexer 9 performs multiplexing under the control of the scheduler 8 and, as a result,
The MPEG program stream as shown in FIG. 5D is supplied to the error correction unit 10.

【0061】このようにして記録されたMPEGプログラム
ストリームは、図5Eに示すように記録時の時間間隔が
保持されて再生される。
The MPEG program stream recorded in this way is reproduced with the recording time interval held as shown in FIG. 5E.

【0062】次に、MPEGプログラムストリームを記憶す
る場合のスケジューラ8の動作を、図6のフローチャー
トを参照して説明する。
Next, the operation of the scheduler 8 for storing the MPEG program stream will be described with reference to the flowchart of FIG.

【0063】ステップS30において、スケジューラ8
は、1つのパックを多重化するのに必要な時間T0を、
次式に基づいて算出する。パック長は、任意の長さに設
定することができる。Rmuxは、多重化レートである。 T0(sec)=パック長(bit)/Rmux(bps)
In step S30, the scheduler 8
Is the time T0 required to multiplex one pack,
It is calculated based on the following formula. The pack length can be set to any length. Rmux is the multiplexing rate. T0 (sec) = pack length (bit) / Rmux (bps)

【0064】ここで算出された時間T0は、スケジュー
ラ8に内蔵されるメモリに記憶される。
The time T0 calculated here is stored in the memory built in the scheduler 8.

【0065】次に、ステップS31において、スケジュ
ーラ8は、多重化されていないパックが残っているか否
かを判定し、残っていると判定した場合、すなわち、ス
トリームが終了していない場合、ステップS32に進
む。
Next, in step S31, the scheduler 8 determines whether or not there is a pack that has not been multiplexed, and if it is determined that there is a pack, that is, if the stream has not ended, step S32. Proceed to.

【0066】ステップS32において、スケジューラ8
は、マルチプレクサ9から供給された到着時刻情報(例
えば、いまマルチプレクサ9により読み出されたビデオ
ストリーム以外のストリームを構成するパックPcurの
到着時刻情報)を読み取り、それが表す時刻を時刻tcu
rとして記憶する。
In step S32, the scheduler 8
Reads the arrival time information supplied from the multiplexer 9 (for example, the arrival time information of the pack Pcur that composes a stream other than the video stream read by the multiplexer 9 now), and represents the time represented by the time tcu.
Remember as r.

【0067】次に、ステップS33において、スケジュ
ーラ8は、時刻tcurと、前回のここでの処理でマルチ
プレクサ9より入力された到着時刻情報(パックPcur
より1つ前にバッファメモリ7からマルチプレクサ9に
より読み出されたパックPprevの到着時刻情報)を表す
時刻tprevを用いて、下記の式に示すように、その差分
Tdiffを算出する。 Tdiff=tprev−tcur
Next, in step S33, the scheduler 8 determines the time tcur and the arrival time information (pack Pcur) input from the multiplexer 9 in the previous processing here.
The difference Tdiff is calculated as shown in the following equation, using the time tprev that represents the arrival time information of the pack Pprev read from the buffer memory 7 by the multiplexer 9 immediately before. Tdiff = tprev-tcur

【0068】スケジューラ8はその後、パックPcurの
到着時刻情報が表す時刻tcurを、時刻tprevとして記
憶する。
After that, the scheduler 8 stores the time tcur represented by the arrival time information of the pack Pcur as the time tprev.

【0069】ステップS34において、スケジューラ8
は、ステップS33で算出したTdiffが値0より大きい
か否かを判定し、大きいと判定した場合、ステップS3
5に進み、下記の式を算出して、Tdiffに(パックPpr
evとパックPcurの間に)挿入することができるビデオ
ストリームのパック数Nを算出する。
In step S34, the scheduler 8
Determines whether Tdiff calculated in step S33 is greater than the value 0, and if it is determined to be larger, step S3
Go to step 5 and calculate the following formula to calculate Tdiff (pack Ppr
Compute the number N of packs of video streams that can be inserted (between ev and pack Pcur).

【0070】N=(Tdiff/T0)−1N = (Tdiff / T0) -1

【0071】ステップS36において、スケジューラ8
は、ステップS35で算出したパック数Nが0であるか
否かを判定し、0ではないと判定した場合、ステップS
37に進む。
In step S36, the scheduler 8
Determines whether the number N of packs calculated in step S35 is 0, and if it is determined not to be 0, step S
Proceed to 37.

【0072】ステップS37において、スケジューラ8
は、P-STDのバッファに、1つのパックを蓄えることが
できる分の空きが存在するか否かを確認し、ステップS
38において、その確認結果に基づいて、ビデオストリ
ームのパックを多重化できるか否かを判定する。なお、
ステップS37の処理の詳細は、後述する。
In step S37, the scheduler 8
Confirms whether or not there is a free space in the P-STD buffer that can store one pack.
At 38, it is determined whether the pack of the video stream can be multiplexed based on the confirmation result. In addition,
Details of the process of step S37 will be described later.

【0073】ステップS38で、多重化できると判定さ
れた場合、ステップS39に進み、スケジューラ8は、
マルチプレクサ9に対して多重化を指示する。
If it is determined in step S38 that multiplexing is possible, the process proceeds to step S39, where the scheduler 8
Instruct the multiplexer 9 to perform multiplexing.

【0074】次に、ステップS40において、スケジュ
ーラ8は、パック数Nから値1を減算するとともに、ス
テップS41において、現在の時刻に時間T0を加算し
て得られた時刻を、ビデオストリームのパックに付加さ
れる到着時刻情報として、マルチプレクサ9に供給す
る。
Next, in step S40, the scheduler 8 subtracts the value 1 from the number N of packs, and in step S41, the time obtained by adding the time T0 to the current time is set as the pack of the video stream. The arrival time information to be added is supplied to the multiplexer 9.

【0075】タイムスケールの統一は、ビデオストリー
ムのパックに付加される到着時刻情報(現在の時刻に時
間T0を加算して得られた時刻)を、到着時刻付加部6
のタイムスケールに変換して行われる。
To unify the time scale, the arrival time addition unit 6 uses the arrival time information (time obtained by adding the time T0 to the current time) added to the pack of the video stream.
Converted to the time scale of.

【0076】その後、処理は、ステップS36に戻り、
それ以降の処理が行われる。
Thereafter, the processing returns to step S36,
Subsequent processing is performed.

【0077】マルチプレクサ9は、スケジューラ8から
多重化の指令を受けると(ステップS39)、バッファ
メモリ5からビデオストリームのパックを1つ読み出
し、それにスケジューラ8から供給された到着時刻情報
(ステップS41)を付加するとともに、パックPprev
から詰めて多重化する(挿入する)。
When the multiplexer 9 receives the multiplexing instruction from the scheduler 8 (step S39), it reads one pack of the video stream from the buffer memory 5 and receives the arrival time information (step S41) supplied from the scheduler 8 therein. Along with addition, pack Pprev
It is packed from and multiplexed (inserted).

【0078】ステップS38で、ビデオストリームのパ
ックを多重化することができないと判定された場合、ス
テップS39の処理はスキップされ、ステップS40に
進む。すなわち、この場合、ステップS41で到着時刻
情報がマルチプレクサ9に供給されるが、多重化が指示
されないので(ステップS39)、ビデオストリームの
パックの多重化は行われない。
If it is determined in step S38 that the packs of the video stream cannot be multiplexed, the process of step S39 is skipped and the process proceeds to step S40. That is, in this case, arrival time information is supplied to the multiplexer 9 in step S41, but since multiplexing is not instructed (step S39), multiplexing of packs of video streams is not performed.

【0079】ステップS36で、パック数N=0である
と判定された場合、すなわち、Tdiffに挿入することが
できる数分のパックがすべて挿入(多重化)された場
合、ステップS42に進み、スケジューラ8は、ビデオ
ストリーム以外のストリームのパックの多重化を指示す
る。
If it is determined in step S36 that the number of packs N = 0, that is, if all packs that can be inserted into Tdiff have been inserted (multiplexed), the process proceeds to step S42 and the scheduler is executed. 8 indicates multiplexing of packs of streams other than video streams.

【0080】マルチプレクサ9はこのとき、ビデオスト
リーム以外のストリームのパックPcurを、ステップS
39の処理における指示で多重化されたビデオストリー
ムのパックに続けて多重化(挿入)する。
At this time, the multiplexer 9 sets the pack Pcur of streams other than the video stream in step S
The pack of the multiplexed video stream is multiplexed (inserted) following the instruction in the processing of 39.

【0081】その後、ステップS31に戻り、それ以降
の処理が実行される。
Then, the process returns to step S31, and the subsequent processes are executed.

【0082】ステップS31において、多重化されるパ
ックが残っていないと判定された場合、スケジューラ8
は、処理を終了させる。
If it is determined in step S31 that there are no packs to be multiplexed, the scheduler 8
Terminates the process.

【0083】次に、図3のステップS17または図6の
ステップS37における処理について説明する。なお、
ここでは、図6のステップS37の処理を例として説明
する。
Next, the processing in step S17 of FIG. 3 or step S37 of FIG. 6 will be described. In addition,
Here, the process of step S37 of FIG. 6 will be described as an example.

【0084】図7は、P-STDの構成例を示している。FIG. 7 shows a configuration example of P-STD.

【0085】バッファ21には、ビデオストリームのパ
ックが入力され、一時的に記憶される。バッファ21に
記憶されたビデオストリームのパックは、ビデオデコー
ダ3から供給された表示時刻情報(DTS(Decoding Time S
tamp))が示す時刻になったタイミングで、アクセスユ
ニット(AU)(フレームまたはフィールド)単位で引
き抜かれ、デコーダ22に供給される。
The pack of the video stream is input to the buffer 21 and is temporarily stored. The pack of the video stream stored in the buffer 21 includes the display time information (DTS (Decoding Time S
tamp)), the access unit (AU) (frame or field) is extracted at a timing when the time is reached and supplied to the decoder 22.

【0086】デコーダ22に供給されたアクセスユニッ
トは、そこでデコードされた後、直接またはバッファ2
3で並べ替えられた後出力される。
The access unit supplied to the decoder 22 is decoded there, and then directly or in the buffer 2.
It is output after being sorted by 3.

【0087】バッファ24には、オーディオストリーム
のパックが入力され、一時的に記憶される。バッファ2
4に記憶されたオーディオストリームのパックは、ビデ
オデコーダ3から供給された表示時刻情報が示す時刻に
なったタイミングで、アクセスユニット(フレーム)単
位で引き抜かれ、デコーダ25に供給される。
An audio stream pack is input to the buffer 24 and is temporarily stored therein. Buffer 2
The audio stream pack stored in 4 is extracted in access unit (frame) units at the timing when the display time information supplied from the video decoder 3 reaches the time and supplied to the decoder 25.

【0088】デコーダ25に供給されたアクセスユニッ
トは、そこでデコードされた後、出力される。
The access unit supplied to the decoder 25 is decoded there and then output.

【0089】前述したビデオストリームのみ再エンコー
ドする構成例では、ビデオストリームのバッファのみ考
慮すればよい。
In the above-described configuration example in which only the video stream is re-encoded, only the buffer of the video stream need be considered.

【0090】図8のフローチャートには、ステップS3
7における処理の詳細が示されている。
In the flowchart of FIG. 8, step S3
The details of the process in 7 are shown.

【0091】ステップS50において、バッファ21に
蓄えられている各アクセスユニットの表示時刻情報のう
ち、SCR(図6の現在時刻)以上の値であるものが存在
するか否かが判定され、存在すると判定された場合、ス
テップS51に進み、SCR以上の表示時刻情報に対応す
るアクセスユニット分のデータ量が、バッファ21の占
有量から減算される。
In step S50, it is determined whether or not the display time information of each access unit stored in the buffer 21 has a value of SCR (current time in FIG. 6) or more. If determined, the process proceeds to step S51, and the data amount for the access unit corresponding to the display time information of SCR or more is subtracted from the occupied amount of the buffer 21.

【0092】ステップS50で、SCR以上の表示時刻情
報が存在しないと判定されたとき、またはステップS5
1で、バッファ21の占有量が減算されたとき、ステッ
プS52に進む。
When it is determined in step S50 that the display time information of SCR or more does not exist, or in step S5
When the occupancy of the buffer 21 is subtracted in 1, the process proceeds to step S52.

【0093】ステップS52において、バッファ21に
1パックを蓄えることができる分の空きが存在するか否
かが判定され、空きが存在しないと判定された場合、ス
テップS53に進み、P-STDには、1つのパックを蓄え
ることができる分の空きが存在しない旨が確認される。
In step S52, it is determined whether or not there is a free space for storing one pack in the buffer 21, and if it is determined that there is no free space, the process proceeds to step S53 and P-STD is stored. It is confirmed that there is no free space to store one pack.

【0094】一方、ステップS52で、空きがあると判
定された場合、ステップS54に進み、バッファ21の
占有量に1パック分のデータ量が加算され、その後、ス
テップS55において、P-STDには、1つのパックを蓄
えることができる分の空きが存在する旨が確認される。
On the other hand, if it is determined in step S52 that there is a space, the process proceeds to step S54, where the data amount for one pack is added to the occupied amount of the buffer 21, and then in step S55, the P-STD is added to the P-STD. It is confirmed that there is enough space to store one pack.

【0095】ステップS53またはステップS55で、
バッファ21の空き状態が確認されたとき、処理は終了
し、図6のステップS38に進む。
In step S53 or step S55,
When the empty state of the buffer 21 is confirmed, the process ends, and the process proceeds to step S38 in FIG.

【0096】図9は、本発明を適用した他の記録装置の
構成例が示されている。この記録装置には、図1のビデ
オデコーダ3乃至バッファメモリ5が2組設けられてい
る(ビデオデコーダ3−1乃至バッファメモリ5−1、
およびビデオデコーダ3−2乃至バッファメモリ5−2
が設けられている)。すなわち、この場合、2チャンネ
ル分のMPEGトランスポートストリームまたはMPEGプログ
ラムストリームを、上述したように記録することができ
る。
FIG. 9 shows a structural example of another recording apparatus to which the present invention is applied. This recording apparatus is provided with two sets of the video decoder 3 to the buffer memory 5 of FIG. 1 (the video decoder 3-1 to the buffer memory 5-1.
And video decoder 3-2 to buffer memory 5-2
Is provided). That is, in this case, the MPEG transport stream or the MPEG program stream for two channels can be recorded as described above.

【0097】図10は、上述のような記録再生装置とし
て機能するコンピュータ101の一実施の形態の構成を
示すブロック図である。CPU(Central Processing Uni
t)111にはバス115を介して入出力インタフェー
ス116が接続されており、CPU111は、入出力イン
タフェース116を介して、ユーザから、キーボード、
マウスなどよりなる入力部118から指令が入力される
と、例えば、ROM112、ハードディスク114、また
はドライブ120に装着される磁気ディスク131、光
ディスク132、光磁気ディスク133、若しくは半導
体メモリ134などの記録媒体に格納されているプログ
ラムを、RAM113にロードして実行する。これによ
り、上述した各種の処理が行われる。さらに、CPU11
1は、その処理結果を、例えば、入出力インタフェース
116を介して、LCD(Liquid Crystal Display)など
よりなる出力部117に必要に応じて出力する。なお、
プログラムは、ハードディスク114やROM112に予
め記憶しておき、コンピュータ101と一体的にユーザ
に提供したり、磁気ディスク131、光ディスク13
2、光磁気ディスク133,半導体メモリ134等のパ
ッケージメディアとして提供したり、衛星、ネットワー
ク等から通信部119を介してハードディスク114に
提供することができる。
FIG. 10 is a block diagram showing the configuration of an embodiment of the computer 101 which functions as the recording / reproducing apparatus as described above. CPU (Central Processing Uni
t) 111 is connected to an input / output interface 116 via a bus 115, and the CPU 111 allows the user to input a keyboard,
When a command is input from the input unit 118 including a mouse or the like, for example, the recording medium such as the magnetic disk 131, the optical disk 132, the magneto-optical disk 133, or the semiconductor memory 134 mounted on the ROM 112, the hard disk 114, or the drive 120 is recorded. The stored program is loaded into the RAM 113 and executed. As a result, the various processes described above are performed. Furthermore, CPU11
1 outputs the processing result to the output unit 117 including an LCD (Liquid Crystal Display) or the like as needed, for example, via the input / output interface 116. In addition,
The program is stored in the hard disk 114 or the ROM 112 in advance and provided to the user integrally with the computer 101, or the magnetic disk 131, the optical disk 13 or the like.
2, it can be provided as a package medium such as the magneto-optical disk 133, the semiconductor memory 134, or can be provided to the hard disk 114 from a satellite, a network or the like via the communication unit 119.

【0098】[0098]

【発明の効果】本発明の多重化装置および方法、並びに
プログラムによれば、第1の多重化ストリームの到着時
刻に基づいて、第1の多重化ストリームに挿入できるデ
ータ量を算出し、算出されたデータ量分のデータを、第
1の多重化ストリームに挿入されて、第2の多重化スト
リームを多重化するようにしたので、容易に再多重化す
ることができる。
According to the multiplexing apparatus and method and the program of the present invention, the amount of data that can be inserted into the first multiplexed stream is calculated based on the arrival time of the first multiplexed stream. Since the data of the data amount is inserted into the first multiplexed stream and the second multiplexed stream is multiplexed, the data can be easily re-multiplexed.

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

【図1】本発明を適用した記録装置の構成例を示すブロ
ック図である。
FIG. 1 is a block diagram showing a configuration example of a recording apparatus to which the present invention has been applied.

【図2】図1の記録装置の記録処理を説明する図であ
る。
FIG. 2 is a diagram illustrating a recording process of the recording apparatus in FIG.

【図3】図1のスケジューラの動作を説明するフローチ
ャートである。
FIG. 3 is a flowchart illustrating the operation of the scheduler of FIG.

【図4】図1のスケジューラの動作を説明する図であ
る。
FIG. 4 is a diagram for explaining the operation of the scheduler of FIG.

【図5】図1の記録装置の記録処理を説明する他の図で
ある。
5 is another diagram for explaining the recording process of the recording apparatus in FIG. 1. FIG.

【図6】図1のスケジューラの他の動作を説明するフロ
ーチャートである。
FIG. 6 is a flowchart illustrating another operation of the scheduler of FIG.

【図7】P-STDの構成例を示すブロック図である。FIG. 7 is a block diagram showing a configuration example of P-STD.

【図8】図6のステップS37の処理を説明するフロー
チャートである。
FIG. 8 is a flowchart illustrating the process of step S37 of FIG.

【図9】本発明を適用した記録装置の他の構成例を示す
図である。
FIG. 9 is a diagram showing another configuration example of a recording apparatus to which the present invention has been applied.

【図10】パーソナルコンピュータ101の構成例を示
すブロック図である。
FIG. 10 is a block diagram showing a configuration example of a personal computer 101.

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

1 チューナ, 2 デマルチプレクサ, 3 ビデオ
デコーダ, 4 ビデオエンコーダ, 5 バッファメ
モリ, 6 到着時刻付加部, 7 バッファメモリ,
8 スケジューラ, 9 マルチプレクサ, 10
誤り訂正部,11 変調部, 12 記録ヘッド, 1
3 記録媒体
1 tuner, 2 demultiplexer, 3 video decoder, 4 video encoder, 5 buffer memory, 6 arrival time addition unit, 7 buffer memory,
8 scheduler, 9 multiplexer, 10
Error correction unit, 11 modulation unit, 12 recording head, 1
3 recording media

───────────────────────────────────────────────────── フロントページの続き (72)発明者 加藤 元樹 東京都品川区北品川6丁目7番35号 ソニ ー株式会社内 (72)発明者 高島 芳和 東京都品川区北品川6丁目7番35号 ソニ ー株式会社内 Fターム(参考) 5C063 AB03 AB07 AC01 AC05 AC10 CA11 CA23 5K028 AA11 EE05 KK01 KK12 LL15 MM05 SS05 SS15 SS24    ─────────────────────────────────────────────────── ─── Continued front page    (72) Inventor Motoki Kato             6-735 Kita-Shinagawa, Shinagawa-ku, Tokyo Soni             -Inside the corporation (72) Inventor Yoshikazu Takashima             6-735 Kita-Shinagawa, Shinagawa-ku, Tokyo Soni             -Inside the corporation F term (reference) 5C063 AB03 AB07 AC01 AC05 AC10                       CA11 CA23                 5K028 AA11 EE05 KK01 KK12 LL15                       MM05 SS05 SS15 SS24

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 ビットストリームを再多重化する多重化
装置において、 第1の多重化ストリームの到着時刻に基づいて、前記第
1の多重化ストリームに挿入できるデータ量を算出する
算出手段と、 前記算出手段により算出された前記データ量分のデータ
を、前記第1の多重化ストリームに挿入して、第2の多
重化ストリームを多重化する多重化手段とを備えること
を特徴とする多重化装置。
1. A multiplexing device for re-multiplexing a bitstream, the calculating means for calculating the amount of data that can be inserted into the first multiplexed stream based on the arrival time of the first multiplexed stream, A multiplexing device for inserting the data for the data amount calculated by the calculating device into the first multiplexed stream and multiplexing the second multiplexed stream. .
【請求項2】 ビットストリームを再多重化する多重化
装置の多重化方法において、 第1の多重化ストリームの到着時刻に基づいて、前記第
1の多重化ストリームに挿入できるデータ量を算出する
算出ステップと、 前記算出ステップの処理で算出された前記データ量分の
データを、前記第1の多重化ストリームに挿入して、第
2の多重化ストリームを多重化する多重化ステップとを
含むことを特徴とする多重化方法。
2. A multiplexing method of a multiplexer for re-multiplexing a bitstream, wherein a calculation for calculating the amount of data that can be inserted into the first multiplexed stream is based on the arrival time of the first multiplexed stream. And a multiplexing step of inserting the data for the data amount calculated in the processing of the calculation step into the first multiplexed stream and multiplexing the second multiplexed stream. Characteristic multiplexing method.
【請求項3】 ビットストリームを再多重化する多重化
装置のプログラムであって、 第1の多重化ストリームの到着時刻に基づく、前記第1
の多重化ストリームに挿入できるデータ量の算出を制御
する算出制御ステップと、 前記算出制御ステップの処理で算出された前記データ量
分のデータを、前記第1の多重化ストリームに挿入する
ことによる、第2の多重化ストリームの多重化を制御す
る多重化制御ステップとを含むことを特徴とするコンピ
ュータが読み取り可能なプログラムが記録されている記
録媒体。
3. A program of a multiplexer for re-multiplexing a bitstream, said first first stream being based on the arrival time of the first multiplexed stream.
A calculation control step for controlling the calculation of the amount of data that can be inserted into the multiplexed stream, and by inserting the data for the amount of data calculated in the processing of the calculation control step into the first multiplexed stream, A recording medium having a computer-readable program recorded thereon, the recording medium including a multiplexing control step of controlling multiplexing of a second multiplexed stream.
【請求項4】 ビットストリームを再多重化する多重化
装置のプログラムであって、 第1の多重化ストリームの到着時刻に基づく、前記第1
の多重化ストリームに挿入できるデータ量の算出を制御
する算出制御ステップと、 前記算出制御ステップの処理で算出された前記データ量
分のデータを、前記第1の多重化ストリームに挿入する
ことによる、第2の多重化ストリームの多重化を制御す
る多重化制御ステップとを含む処理をコンピュータに実
行させることを特徴とするプログラム。
4. A program of a multiplexer for re-multiplexing a bitstream, said first first stream being based on the arrival time of the first multiplexed stream.
A calculation control step for controlling the calculation of the amount of data that can be inserted into the multiplexed stream, and by inserting the data for the amount of data calculated in the processing of the calculation control step into the first multiplexed stream, A program for causing a computer to execute a process including a multiplexing control step of controlling multiplexing of a second multiplexed stream.
JP2002019032A 2002-01-28 2002-01-28 Multiplexing device and method, recording medium, and program Expired - Fee Related JP4147452B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002019032A JP4147452B2 (en) 2002-01-28 2002-01-28 Multiplexing device and method, recording medium, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002019032A JP4147452B2 (en) 2002-01-28 2002-01-28 Multiplexing device and method, recording medium, and program

Publications (2)

Publication Number Publication Date
JP2003224831A true JP2003224831A (en) 2003-08-08
JP4147452B2 JP4147452B2 (en) 2008-09-10

Family

ID=27743104

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002019032A Expired - Fee Related JP4147452B2 (en) 2002-01-28 2002-01-28 Multiplexing device and method, recording medium, and program

Country Status (1)

Country Link
JP (1) JP4147452B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011507431A (en) * 2007-12-19 2011-03-03 トムソン ライセンシング Apparatus and method for receiving video data packets

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011507431A (en) * 2007-12-19 2011-03-03 トムソン ライセンシング Apparatus and method for receiving video data packets

Also Published As

Publication number Publication date
JP4147452B2 (en) 2008-09-10

Similar Documents

Publication Publication Date Title
JP4538908B2 (en) Data conversion apparatus and method
JP4828760B2 (en) Data stream conversion method and apparatus
US8233780B2 (en) Reproducing apparatus and method, and recording medium
JP4294660B2 (en) REPRODUCTION DEVICE, REPRODUCTION METHOD, AND RECORDING MEDIUM THEREOF
US7333711B2 (en) Data distribution apparatus and method, and data distribution system
KR100534291B1 (en) Digital broadcasting writing regenerative apparatus
JP2004336488A (en) Apparatus and method for information processing program, and recording medium
JP3918332B2 (en) Multiplexer, multiplexing method, and recording medium
JP2003224831A (en) Multiplexing apparatus and method, recording medium, and program
JP2008176918A (en) Reproducing apparatus and method, and recording medium
JP4470345B2 (en) Data distribution apparatus and method, data distribution system
JP4852384B2 (en) Transport stream correction device
JP4861221B2 (en) RECORDING DEVICE, RECORDING METHOD, VIDEO RECORDING / REPRODUCING DEVICE, AND RECORDING FILE PROCESSING METHOD THEREOF
JPH11187361A (en) Method for multiplexing data and device therefor
JP2001057681A (en) Data broadcast contents preview device and data broadcast contents preview method
WO2004086397A1 (en) Method and apparatus for guaranteeing seamless reproduction of a plurality of data streams

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20041227

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070606

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070806

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080310

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080508

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

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

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

Free format text: PAYMENT UNTIL: 20110704

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20110704

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20110704

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120704

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20120704

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20130704

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees