JPH0898160A - Data multiplexing device - Google Patents

Data multiplexing device

Info

Publication number
JPH0898160A
JPH0898160A JP25884694A JP25884694A JPH0898160A JP H0898160 A JPH0898160 A JP H0898160A JP 25884694 A JP25884694 A JP 25884694A JP 25884694 A JP25884694 A JP 25884694A JP H0898160 A JPH0898160 A JP H0898160A
Authority
JP
Japan
Prior art keywords
data
packet
multiplexing
buffer
decoding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP25884694A
Other languages
Japanese (ja)
Inventor
Mitsuaki Fujiwara
光章 藤原
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.)
Victor Company of Japan Ltd
Original Assignee
Victor Company of Japan Ltd
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 Victor Company of Japan Ltd filed Critical Victor Company of Japan Ltd
Priority to JP25884694A priority Critical patent/JPH0898160A/en
Publication of JPH0898160A publication Critical patent/JPH0898160A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE: To provide a multiplexing device which can multiplex data without inserting invalid data for transfer rate adjustment and can effectively use a recording medium without the occurrence of the overflow or underflow of a decoding buffer. CONSTITUTION: When the free storage area of a virtual decoding buffer, which are previously set in ROM 75 for respective encoding streams, become more than the data part of a pack, CPU 74 outputs a packet request signal to a packet generator 76. When the free storage areas exist in the virtual decoding buffer and more than two kinds of encoding streams can be made into packets, it is decided from which encoding stream the packet is made in accordance with previously set priority, and the packet request signal including the decision signal is transmitted to the packet generator 76. The packet generated by the packet generator 76 is transmitted to a pack generator 77, is made into the pack and a multiplex data string is transmitted through an output buffer 79.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、時間的に同期した複数
個のデジタル音声情報のデータと画像情報のデータに各
種情報を付加して一つの時系列的データを形成するデー
タ多重化装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data multiplexer for adding a variety of information to a plurality of time-synchronized digital audio information data and image information data to form one time series data. .

【0002】[0002]

【従来の技術】複数のデジタル音声及び画像データを1
系統で伝送するためには、予め所定のフォーマットに従
いデータを多重化してデータ列を作る必要がある。ま
た、受信側では、そのデータ列を再びそのフォーマット
に従い音声及び画像データに分離する(デマルチプレク
スする)必要がある。この多重化のフォーマット例とし
て、ISO/IEC DIS 11172(MPEG−
1)パート1がある。ここで規定された多重化データ列
ISO11172ストリームは、パックとパケットから
構成されており、パックはパックヘッダと1個以上のパ
ケットから成り、パケットはパケットヘッダと複数のス
トリームから成る。この複数のストリームは音声や画像
の圧縮データまたは文字データであったりする。また、
この多重化データ列ISO11172ストリームを実際
の記録媒体に記録するためには、記録媒体(コンパクト
ディスク、DAT等)に依存したフォーマットが必要と
なり、CD−1、ビデオCD、CD−αとして既に規格
化されている。
2. Description of the Related Art A plurality of digital audio and image data
In order to transmit in a system, it is necessary to previously multiplex data according to a predetermined format to create a data string. Also, the receiving side needs to separate (demultiplex) the data string into audio and image data again according to the format. As an example of the format of this multiplexing, ISO / IEC DIS 11172 (MPEG-
1) There is Part 1. The multiplexed data string ISO11172 stream defined here is composed of a pack and a packet, the pack is composed of a pack header and one or more packets, and the packet is composed of a packet header and a plurality of streams. The plurality of streams may be compressed data of voice or image or character data. Also,
In order to record this multiplexed data string ISO11172 stream on an actual recording medium, a format depending on the recording medium (compact disc, DAT, etc.) is required, and it has already been standardized as CD-1, video CD, CD-α. Has been done.

【0003】図4はこの種の従来例に係る多重化装置を
示す構成図である。この図4に示す多重化装置では、各
符号化ストリームを復号化するとき、転送レートが既知
(固定転送レート)であり、復号化バッファのデータ占
有量の推移が予め計算できるものとして、音声と画像の
パケットの比を定めており、それに従ってデータを多重
化するようになされている。図4に示す多重化装置は、
音声や画像のデータを符号化して符号化ストリームとし
て出力する符号化器11〜13と各符号化ストリーム毎
に対応する入力バッファ21〜23を有しており、入力
バッファ21〜23を介したデータは多重化制御器30
により多重化されて多重化データ列として外部から与え
られる同期信号に基づいて受信側に伝送される。
FIG. 4 is a block diagram showing a multiplexing device according to a conventional example of this type. In the multiplexing apparatus shown in FIG. 4, when decoding each coded stream, the transfer rate is known (fixed transfer rate), and the transition of the data occupancy of the decoding buffer can be calculated in advance as voice. It defines the ratio of image packets and multiplexes the data accordingly. The multiplexing device shown in FIG.
It has encoders 11 to 13 that encode audio and image data and outputs the encoded streams as encoded streams, and input buffers 21 to 23 corresponding to each encoded stream, and data via the input buffers 21 to 23. Is the multiplexing controller 30
Are multiplexed and transmitted as a multiplexed data string to the receiving side based on a synchronization signal given from the outside.

【0004】すなわち、多重化制御器30では、前記入
力バッファ21〜23に所定の大きさの音声や画像デー
タが蓄えられると、パケット生成器31によりパケット
を生成するようになされ、パックを構成する数の画像及
び音声のパケットが生成されたら、パック生成器32に
より、付加データパケット生成器33と無効データパケ
ット生成器34で作られるパケットを結合して多重化デ
ータ列を生成し、該多重化データ列を出力バッファ35
に送り、この出力バッファ35に蓄えられた多重化デー
タ列は同期信号に従い受信側に伝送される。
That is, in the multiplexing controller 30, when the input buffers 21 to 23 store a predetermined amount of voice or image data, the packet generator 31 generates a packet to form a pack. When a number of image and audio packets are generated, the pack generator 32 combines the packets generated by the additional data packet generator 33 and the invalid data packet generator 34 to generate a multiplexed data sequence, and the multiplexed data sequence is generated. Output the data string 35
The multiplexed data string stored in the output buffer 35 is transmitted to the receiving side in accordance with the synchronizing signal.

【0005】図5はこのようにして得られる多重化デー
タ列の一例を模式的に示す図である。すなわち、図5に
示す多重化データ列としては、パックヘッダを先頭と
し、順次、システムヘッダ、付加データパケット、音声
パケット、無効データパケット、音声パケット、無効デ
ータパケット、及び画像パケットから成り、前記画像パ
ケットは、4つのパケットヘッダと画像ストリームから
成っている。
FIG. 5 is a diagram schematically showing an example of the multiplexed data sequence thus obtained. That is, the multiplexed data string shown in FIG. 5 is composed of a system header, an additional data packet, an audio packet, an invalid data packet, an audio packet, an invalid data packet, and an image packet, which are sequentially packed with a pack header at the beginning. A packet consists of four packet headers and an image stream.

【0006】次に、前記多重化装置側から伝送される多
重化データ列を受信するデマルチプレクサの構成を図6
に示す。多重化装置より伝送された多重化データ列は、
デマルチプレクスバッファ41を介してデマルチプレク
ス制御器42に入力され、ここで、各制御データ、付加
データ等を分離した後、各符号化ストリームに戻され、
各復号化バッファ51〜53に送られる。各復号化バッ
ファ51〜53からデータが復号化器61〜63の要求
に応じて送られる。
Next, the configuration of the demultiplexer for receiving the multiplexed data string transmitted from the multiplexer side is shown in FIG.
Shown in. The multiplexed data string transmitted from the multiplexer is
It is input to the demultiplex controller 42 via the demultiplex buffer 41, where each control data, additional data, etc. are separated and then returned to each encoded stream,
It is sent to each of the decoding buffers 51 to 53. Data is sent from each of the decoding buffers 51 to 53 in response to a request from the decoders 61 to 63.

【0007】ところで、上述のように、各符号化ストリ
ームはそれぞれの復号化器61〜63で復号化されて音
声や画像データとして出力されるが、このとき、符号化
データが可変長符号化を行っていれば、復号化バッファ
51〜53から復号化器61〜63に送られるデータ量
は復号化単位毎、例えば画像ならばピクチャー単位毎に
異なる。単位時間毎に一定となるように符号化されてい
れば、各復号化バッファ51〜53の変動はこの時間内
で吸収される。
By the way, as described above, each coded stream is decoded by each of the decoders 61 to 63 and output as voice or image data. At this time, the coded data is variable length coded. If so, the amount of data sent from the decoding buffers 51 to 53 to the decoders 61 to 63 differs for each decoding unit, for example, for each picture in the case of an image. If the encoding is performed so as to be constant for each unit time, the fluctuations of the decoding buffers 51 to 53 are absorbed within this time.

【0008】この復号化バッファ51〜53におけるデ
ータ量の変化の様子を図7に示す。例えば復号化バッフ
ァ51により多重化データ列の音声パケットP1のデー
タを蓄え、復号化バッファ52により音声パケットP2
のデータを蓄え、復号化バッファ53により画像パケッ
トP3のデータを蓄えるとすると、各復号化バッファの
データ量は次のようになる。すなわち、例えば復号化バ
ッファ51に、音声パケットP1の音声符号化ストリー
ムが入力されるとすると、初め復号化バッファ51への
データ入力はなく、データは復号化器61に送られるの
みで、復号化バッファ51のデータ量は時刻t1に至る
まで次第に減っていく。次に、多重化データ列内の音声
パケットP1が入力され、デマルチプレクスされた後、
復号化バッファ51に入力されると、復号化バッファ5
1の入力のデータ量が出力のデータ量を上回るため、次
第に復号化バッファ51内のデータ量は時刻t2に至る
まで増えていく。その後は、音声パケットP1の入力が
なくなり、再び復号化バッファ51のデータ量は減って
いく。この周期がパックの周期となっている。
FIG. 7 shows how the data amount in the decoding buffers 51 to 53 changes. For example, the decoding buffer 51 stores the data of the voice packet P1 of the multiplexed data string, and the decoding buffer 52 stores the voice packet P2.
When the data of the image packet P3 is stored by the decoding buffer 53, the data amount of each decoding buffer is as follows. That is, for example, if the audio coded stream of the audio packet P1 is input to the decoding buffer 51, there is no data input to the decoding buffer 51 at first, and the data is only sent to the decoder 61, and the decoding is performed. The data amount of the buffer 51 gradually decreases until time t1. Next, after the voice packet P1 in the multiplexed data string is input and demultiplexed,
When input to the decoding buffer 51, the decoding buffer 5
Since the input data amount of 1 exceeds the output data amount, the data amount in the decoding buffer 51 gradually increases until time t2. After that, the voice packet P1 is not input and the data amount of the decoding buffer 51 decreases again. This cycle is the pack cycle.

【0009】他の復号化バッファ52と53も同様で、
復号化バッファ52のデータ量は時刻t3に至るまで次
第に減少し、逆に、時刻t3を経て時刻t4に至るまで
は増え、その後、再び減少していく。また、復号化バッ
ファ53のデータ量は時刻t5に至るまで次第に減少
し、逆に時刻t5を経過した後は増え、その後、再び減
少する。ここで、各符号化ストリームが固定転送レート
であれば、復号化バッファに蓄えられるデータ量の推移
が、図7のようにパック毎の繰り返しになり、復号化バ
ッファのオーバーフローまたはアンダーフローは生じな
い。
The same applies to the other decoding buffers 52 and 53.
The data amount of the decoding buffer 52 gradually decreases until time t3, conversely increases until time t4 after time t3, and then decreases again. Further, the data amount of the decoding buffer 53 gradually decreases until time t5, conversely increases after the time t5, and then decreases again. Here, if each coded stream has a fixed transfer rate, the transition of the amount of data stored in the decoding buffer is repeated for each pack as shown in FIG. 7, and overflow or underflow of the decoding buffer does not occur. .

【0010】[0010]

【発明が解決しようとする課題】従来の多重化装置は、
上述したように、符号化ストリームが固定転送レートで
あることを前提としているが、符号化ストリームが可変
転送レートの場合に以下の点が問題となる。ここでは、
音声符号化ストリームが固定レートであり、画像符号化
ストリームが可変転送レートの例で説明する。
The conventional multiplexing device is
As described above, it is premised that the coded stream has a fixed transfer rate, but the following points become a problem when the coded stream has a variable transfer rate. here,
An example will be described in which the audio coded stream has a fixed rate and the image coded stream has a variable transfer rate.

【0011】画像符号化ストリーム(例えば、ISO/
IEC DIS 11172(MPEG−1)パート2
等)は可変長符号化を行っており、復号化単位毎(ピク
チャー単位)のデータ量が大幅に異なる。そのため、復
号化毎にバッファ内のデータ変動量が大きく、画像用復
号化バッファは固定長符号化ストリームと比較して大き
くする必要がある。また、画像符号化ストリームは、音
声符号化ストリームと比較して復号化から再生までの時
間差が大きいことと、音声用の復号化バッファを小さく
する目的のため、復号化を開始する前に画像用復号化バ
ッファに画像符号化ストリームを音声符号化ストリーム
より先に蓄える必要があった。
Image coded stream (eg ISO /
IEC DIS 11172 (MPEG-1) Part 2
Etc. perform variable length coding, and the data amount for each decoding unit (picture unit) is significantly different. Therefore, the amount of data fluctuation in the buffer is large for each decoding, and the image decoding buffer needs to be larger than the fixed length coded stream. In addition, the image coded stream has a large time difference from decoding to playback compared with the audio coded stream, and the purpose is to reduce the decoding buffer for audio. It was necessary to store the image coded stream in the decoding buffer before the audio coded stream.

【0012】その際の音声用復号化バッファ及び画像用
復号化バッファのデータ量と復号化の開始タイミングを
図8に示す。初めに、画像符号ストリームを画像用復号
化バッファに所定の量になるまで蓄え復号化を開始しな
い。そのため、画像用復号化バッファのデータ量は時刻
T1に至るまでは次第に増えていく。音声符号化ストリ
ームは、画像信号が再生されるまで復号化を開始しない
ので、所定の量を音声復号化バッファに蓄えて復号化開
始を待っている。
FIG. 8 shows the amount of data in the audio decoding buffer and the image decoding buffer and the decoding start timing at that time. First, the image code stream is stored in the image decoding buffer until a predetermined amount is reached and the decoding is not started. Therefore, the amount of data in the image decoding buffer gradually increases until time T1. Since the audio coded stream does not start decoding until the image signal is reproduced, a predetermined amount is stored in the audio decoding buffer and waiting for decoding start.

【0013】次に、画像符号化ストリームの復号化が時
刻T1で開始され、再生時刻になる時刻T2に音声符号
化ストリームの復号化を開始し、画像と同期して音声が
再生できるようにする。従って、音声符号化ストリーム
は、図8に示すように、所定の量が音声用復号化バッフ
ァに蓄えられたら多重化を停止し、画像符号化ストリー
ムの再生が開始されるのを待つことになる。そのため、
多重化ストリームが図5に示す単一フォーマットで構成
されている場合には、多重化データ列は、音声用復号化
バッファに所定のデータ量が蓄えられた後、画像符号化
ストリームの再生が開始されるまで音声パケットを無効
データパケットに置き換えなければならなかった。
Next, the decoding of the image coded stream is started at time T1, and the decoding of the audio coded stream is started at time T2, which is the reproduction time, so that the audio can be reproduced in synchronization with the image. . Therefore, as shown in FIG. 8, the audio coded stream stops the multiplexing when a predetermined amount is stored in the audio decoding buffer, and waits for the reproduction of the image coded stream to start. . for that reason,
When the multiplexed stream is configured in the single format shown in FIG. 5, the multiplexed data sequence starts reproduction of the image encoded stream after a predetermined amount of data is stored in the audio decoding buffer. Until I was told, I had to replace voice packets with invalid data packets.

【0014】また、図5に示す従来の多重化データ列の
フォーマットでは、記録媒体が例えばビデオCD等の場
合に、各符号化ストリームをデマルチプレックスしやす
いように記録媒体の管理単位をセクタ単位にしているた
め、音声、画像、その他のデータのパケットの大きさが
決まっているため、符号化レートの関係から転送レート
調整用無効データを挿入する必要があった。最後に、画
像の転送レートが変化する場合、音声データ、画像デー
タのフォーマットを予め固定化することは困難であっ
た。
Further, in the format of the conventional multiplexed data string shown in FIG. 5, when the recording medium is, for example, a video CD, the management unit of the recording medium is a sector unit so that each encoded stream can be easily demultiplexed. Since the size of the packet of voice, image, and other data is determined, it is necessary to insert invalid data for transfer rate adjustment due to the coding rate. Finally, when the image transfer rate changes, it is difficult to fix the audio data and image data formats in advance.

【0015】本発明は上記課題を解決するためになされ
たもので、デジタル化された動画像と音声の信号を同一
記録媒体に同時に記録するために多重化する際、復号化
バッファのオーバーフローまたはアンダーフローを生じ
ることなく、また、転送レート調整用無効データ等を挿
入することなく多重化でき、記録媒体を有効に使用でき
る多重化装置を得ることを目的とする。
The present invention has been made to solve the above problems, and when a digitized moving image and audio signal is multiplexed for simultaneous recording on the same recording medium, the decoding buffer overflows or underscores. It is an object of the present invention to obtain a multiplexing device that can be multiplexed without causing a flow and without inserting invalid data for transfer rate adjustment and the like, and can effectively use a recording medium.

【0016】[0016]

【課題を解決するための手段】前記目的を達成するため
に、本発明に係る多重化装置は、入力されるデジタル音
声や動画像を符号化して符号化ストリームとして出力す
る複数の符号化器を備え、その複数の符号化ストリーム
を同期再生できるように多重化するデータ多重化装置に
おいて、前記各符号化ストリーム毎に仮想復号化バッフ
ァシミュレーションしてそのバッファ内のデータ占有量
に基づいて多重化要求信号を出力する制御手段と、前記
多重化要求信号に基づいて各符号化ストリームを多重化
する多重化手段とを備えたことを特徴とするものであ
る。
In order to achieve the above-mentioned object, a multiplexing device according to the present invention comprises a plurality of encoders for encoding input digital audio or moving images and outputting them as encoded streams. In a data multiplexing device that multiplexes the plurality of coded streams so that they can be reproduced synchronously, a virtual decoding buffer simulation is performed for each of the coded streams, and a multiplexing request is made based on the data occupation amount in the buffer. It is characterized in that it is provided with a control means for outputting a signal and a multiplexing means for multiplexing each coded stream based on the multiplexing request signal.

【0017】また、前記各符号化ストリームに優先度を
設定する手段を設け、前記制御手段は、優先度に従い多
重化すべき多重化要求信号を出力するとともに、前記多
重化手段は、優先度に従って各符号化ストリームを多重
化するよう構成することができる。
Further, means for setting a priority to each of the coded streams is provided, and the control means outputs a multiplexing request signal to be multiplexed according to the priority, and the multiplexing means each according to the priority. It can be configured to multiplex encoded streams.

【0018】[0018]

【作用】本発明においては、仮想復号化バッファの占有
量の大小に基づいて各符号化ストリームを多重化するこ
とで、復号化バッファの変動量が少なくなり、復号化バ
ッファのオーバーフローまたはアンダーフローがなくな
る。また、パックの構成を予め規定していないため、転
送レート調整用無効データ等でパックを生成する必要が
なく、このため、記録媒体のデータ範囲の有効使用が可
能になる。
According to the present invention, each coded stream is multiplexed on the basis of the occupancy of the virtual decoding buffer, so that the variation of the decoding buffer is reduced and the overflow or underflow of the decoding buffer is prevented. Disappear. In addition, since the pack structure is not specified in advance, it is not necessary to generate a pack with transfer rate adjustment invalid data or the like, which enables effective use of the data range of the recording medium.

【0019】また、予め設定した優先度に従い符号化ス
トリームを多重化するため、優先度の設定によってデー
タ列の並べ変えが可能になる。
Further, since the coded streams are multiplexed in accordance with the preset priority, the data string can be rearranged by setting the priority.

【0020】[0020]

【実施例】以下、本発明の実施例では、2つの音声符号
化ストリームと、1つの画像符号化ストリームを多重化
し、デジタルディスク(コンパクトディスクCD、ハー
ドディスクドライブHDD等)に多重化データ列を記録
する場合に、1パックが1パケットで構成されている例
について説明する。また、この実施例で用いるフレーム
とは、画像信号でいう一般的な一枚の画像ではなく、復
号化するデータ単位である。
Embodiments In the embodiments of the present invention, two audio encoded streams and one image encoded stream are multiplexed and a multiplexed data string is recorded on a digital disc (compact disc CD, hard disk drive HDD, etc.). In this case, an example in which one pack is composed of one packet will be described. Further, the frame used in this embodiment is not a general single image referred to as an image signal but a data unit to be decoded.

【0021】図1は本発明の一実施例に係る多重化装置
を示す構成図である。図1において、符号化器11〜1
3で符号化された複数の音声及び画像符号化ストリーム
は初めに各入力バッファ21〜23に読み込まれる。時
刻情報生成器71は入力バッファ21〜23内の各符号
化ストリームのフレームの先頭位置情報に対応する復号
化時刻をフレームタイマ72から読み出し、復号化時
刻、入力バッファ内アドレスを計算して、フレーム番号
毎にフレームポインタレジスタ73に記録する。
FIG. 1 is a block diagram showing a multiplexer according to an embodiment of the present invention. In FIG. 1, encoders 11 to 1
The plurality of audio and image encoded streams encoded in 3 are first read into the input buffers 21 to 23. The time information generator 71 reads the decoding time corresponding to the head position information of the frame of each encoded stream in the input buffers 21 to 23 from the frame timer 72, calculates the decoding time and the address in the input buffer, and The number is recorded in the frame pointer register 73 for each number.

【0022】図2はフレームポインタレジスタ73内に
記録される内容を示す説明図である。フレームタイマ7
2では、各符号化ストリームに応じて、基準クロックに
基づいて時刻情報生成器71にデータを送る。基準クロ
ックが90000Hzならば、1画像フレームのクロッ
クの値は、NTSC信号では、30×1000/100
1秒であるから、 90000/(30×1000/1001)=3003 となり、クロック毎の値を時刻情報生成器71に送るこ
とになる。
FIG. 2 is an explanatory diagram showing the contents recorded in the frame pointer register 73. Frame timer 7
In 2, the data is sent to the time information generator 71 based on the reference clock according to each encoded stream. If the reference clock is 90,000 Hz, the value of the clock of one image frame is 30 × 1000/100 for the NTSC signal.
Since it is 1 second, 90000 / (30 × 1000/1001) = 3003, and the value for each clock is sent to the time information generator 71.

【0023】時刻情報生成器71は入力バッファ21〜
23内の各符号化ストリームのフレームの先頭位置情報
に対応する復号化時刻をフレームタイマ72から読み出
し、復号化時刻と入力バッファ内アドレスを計算して、
フレーム番号毎にフレームポインタレジスタ73に記録
する。このようにして、フレームポインタレジスタ73
には、例えばフレーム番号100の復号化時刻として3
003、入力バッファ内アドレスとして120が格納さ
れる。
The time information generator 71 has input buffers 21 to 21.
The decoding time corresponding to the head position information of the frame of each coded stream in 23 is read from the frame timer 72, the decoding time and the input buffer address are calculated,
Each frame number is recorded in the frame pointer register 73. In this way, the frame pointer register 73
Is, for example, 3 as the decoding time of frame number 100.
003, and 120 is stored as the address in the input buffer.

【0024】また、CPU(中央演算処理装置)74で
は、ROM(リードオンリーメモリ)75内のプログラ
ムに従い、各符号化ストリーム毎に仮想復号化バッファ
をシミュレーションして、そのバッファ内のデータの占
有量に基づいてパケットを生成すべく制御する。すなわ
ち、CPU74では、各符号化ストリーム毎に予めRO
M75に設定された仮想復号化バッファの容量のうち、
空き記憶領域がパックのデータ、つまりパック内でヘッ
ダ情報を除いた部分である符号化ストリームのデータ部
分以上になったとき、パケット生成器76にパケット要
求信号を出力することにより、パケット生成器76によ
ってパケットを生成すべく制御する。このとき、CPU
74は、仮想復号化バッファに空き記憶領域があり、2
種類以上の符号化ストリームをパケット化することが可
能ならば、予め設定されている優先度に従い、どの符号
化ストリームからパケット化するかを決定し、この決定
信号を含むパケット要求信号をパケット生成器76に送
出する。
In the CPU (Central Processing Unit) 74, the virtual decoding buffer is simulated for each encoded stream according to the program in the ROM (Read Only Memory) 75, and the data occupancy in the buffer is simulated. Control to generate a packet based on That is, in the CPU 74, RO is previously set for each encoded stream.
Of the virtual decoding buffer capacity set in M75,
When the free storage area becomes equal to or larger than the data of the pack, that is, the data portion of the encoded stream that is the portion excluding the header information in the pack, a packet request signal is output to the packet generator 76, so that the packet generator 76 Control to generate packets. At this time, the CPU
No. 74 has a free storage area in the virtual decoding buffer, and 2
If it is possible to packetize more than one type of coded stream, it is determined from which coded stream to packetize according to the preset priority, and the packet request signal including this decision signal is sent to the packet generator. Send to 76.

【0025】図3はROM75内のプログラムに従い動
作するCPU74の制御動作の具体的内容を示すフロー
チャートで、予め設定されている優先度に従い各符号化
ストリーム毎にこの手順通りに動作させる。すなわち、
基準クロックから割り込み信号が供給されると、基準ク
ロックから作られる仮想システムクロックとフレームポ
インタレジスタ73内の復号化時刻が同じかどうかを調
べ(ステップS31、S32)、YESならば、仮想復
号化バッファから1フレームデータを取り除く(ステッ
プS33)。
FIG. 3 is a flow chart showing the specific contents of the control operation of the CPU 74 which operates according to the program in the ROM 75. Each coded stream is operated according to this procedure in accordance with a preset priority. That is,
When the interrupt signal is supplied from the reference clock, it is checked whether the virtual system clock generated from the reference clock and the decoding time in the frame pointer register 73 are the same (steps S31 and S32). If YES, the virtual decoding buffer The one frame data is removed from (step S33).

【0026】ステップS32の判断がNOであり、ま
た、ステップS33を経た後は、ステップS34に移行
して仮想復号化バッファの空き記憶領域を算出し、パケ
ットが生成できるかどうかを調べる(ステップS34、
S35)。YESならば、パケット要求信号をパケット
生成器76に出力し(ステップS36)、NOならば、
次の基準クロックを待つ。なお、前述したステップS3
2でフレームポインタレジスタ73内の復号化時刻とク
ロックが一致したならば、次のフレームデータの入力バ
ッファアドレスにポインタを移動する。
If the determination in step S32 is NO, and after step S33, the process shifts to step S34 to calculate the free storage area of the virtual decoding buffer and check whether a packet can be generated (step S34). ,
S35). If YES, the packet request signal is output to the packet generator 76 (step S36), and if NO,
Wait for the next reference clock. Incidentally, the above-mentioned step S3
If the decoding time in the frame pointer register 73 matches the clock in 2, the pointer is moved to the input buffer address of the next frame data.

【0027】パケット生成器76は、前記CPU74か
らのパケット要求信号を受け取ると、パケットを生成
し、生成されたパケットはパック生成器77に送られ、
パック生成器77はパック化して出力バッファ79を介
して多重化データ列を送出する。また、付加データを多
重化する場合は、基準クロックに従い付加データパケッ
ト生成器78からパケットがパック生成器77に送られ
るので、パック生成器77は、付加データをも多重化し
てパック化した多重化データ列を出力バッファ79を介
して送出する。
The packet generator 76 receives the packet request signal from the CPU 74, generates a packet, and the generated packet is sent to the pack generator 77.
The pack generator 77 packs and sends the multiplexed data sequence through the output buffer 79. In addition, when the additional data is multiplexed, the packet is sent from the additional data packet generator 78 to the pack generator 77 according to the reference clock, and therefore the pack generator 77 also multiplexes the additional data and packs the additional data. The data string is transmitted via the output buffer 79.

【0028】従って、この実施例によれば、デジタル化
された動画像及び音声信号を同一記録媒体に多重化して
記録するときに、仮想復号化バッファの状態を常に監視
し符号化ストリームを多重化するため、復号化バッファ
がオーバーフロー又はアンダーフローしない。また、符
号化ストリームの転送レートが不定であって、予め符号
化ストリーム毎にパケット及びパックの大きさを設定で
きなくても、復号化バッファ量に応じて多重化するため
問題は生じない。さらに、符号化ストリームの転送レー
トが一定であっても、予め符号化ストリーム毎にパケッ
ト及びパックの大きさを設定する必要がなく、復号化器
は同じものが使用でき汎用化することができる。
Therefore, according to this embodiment, when the digitized moving image and audio signals are multiplexed and recorded on the same recording medium, the state of the virtual decoding buffer is constantly monitored and the encoded streams are multiplexed. Therefore, the decoding buffer does not overflow or underflow. Even if the transfer rate of the coded stream is indefinite and the size of the packet and the pack cannot be set for each coded stream in advance, there is no problem because the multiplexing is performed according to the decoding buffer amount. Further, even if the transfer rate of the coded stream is constant, it is not necessary to set the size of the packet and the pack for each coded stream in advance, and the same decoder can be used and can be generalized.

【0029】なお、上記実施例において、多重化データ
列の生成は、もちろん符号化ストリームがN(Nは整
数)個でもよいし、パックを形成するパケットがN個で
も可能である。また、ISO/IEC DIS 111
72(MPEG−1)パート1の多重化データ列以外で
も、パケットの構成するヘッダに各情報の種別情報(音
声、画像、文字等)と各情報毎に時刻情報を少なくとも
含んでいれば、この装置により多重化データ列を生成す
ることが可能である。
In the above embodiment, it is of course possible to generate the multiplexed data string with N (N is an integer) coded streams or with N packets forming a pack. In addition, ISO / IEC DIS 111
In addition to the multiplexed data string of 72 (MPEG-1) Part 1, if the header of the packet includes at least type information (voice, image, character, etc.) of each information and time information for each information, It is possible for the device to generate a multiplexed data sequence.

【0030】[0030]

【発明の効果】以上詳述したように、本発明によれば、
仮想復号化バッファの占有量の大小に基づいて各符号化
ストリームを多重化することで、復号化バッファの変動
量が少なくなり、復号化バッファのオーバーフローまた
はアンダーフローがなくなる。また、パックの構成を予
め規定していないため、転送レート調整用無効データ等
でパックを生成する必要がなく、つまり転送レート調整
用無効データ等を多重化時に挿入することが必要なく、
このため、記録媒体のデータ範囲を有効に使用できる。
As described in detail above, according to the present invention,
By multiplexing each coded stream based on the size of the virtual decoding buffer occupancy, the fluctuation amount of the decoding buffer is reduced, and the overflow or underflow of the decoding buffer is eliminated. Also, since the pack structure is not specified in advance, it is not necessary to generate a pack with transfer rate adjustment invalid data or the like, that is, it is not necessary to insert transfer rate adjustment invalid data or the like at the time of multiplexing,
Therefore, the data range of the recording medium can be effectively used.

【0031】また、予め設定した優先度に従い符号化ス
トリームを多重化するため、優先度の設定によって多重
化データ列のデータの並べ変えができる。
Since the coded streams are multiplexed according to the preset priority, the data of the multiplexed data string can be rearranged by setting the priority.

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

【図1】本発明の一実施例に係る多重化装置を示すブロ
ック図である。
FIG. 1 is a block diagram showing a multiplexer according to an embodiment of the present invention.

【図2】図1のフレームポインタレジスタ内に記録され
る内容を示す説明図である。
2 is an explanatory diagram showing contents recorded in a frame pointer register of FIG. 1. FIG.

【図3】図1のCPUの制御動作を示すフローチャート
である。
FIG. 3 is a flowchart showing a control operation of the CPU of FIG.

【図4】従来の多重化装置の一例を示すブロック図であ
る。
FIG. 4 is a block diagram showing an example of a conventional multiplexing device.

【図5】従来の多重化データ列の一例を示すフォーマッ
ト図である。
FIG. 5 is a format diagram showing an example of a conventional multiplexed data sequence.

【図6】従来のデマルチプレクサを示すブロック図であ
る。
FIG. 6 is a block diagram showing a conventional demultiplexer.

【図7】図6の復号化バッファのデータ量の推移を示す
説明図である。
7 is an explanatory diagram showing a transition of the data amount of the decoding buffer of FIG.

【図8】図6における復号化の開始時刻と復号化バッフ
ァのデータ量の関係を示す説明図である。
FIG. 8 is an explanatory diagram showing the relationship between the decoding start time and the data amount in the decoding buffer in FIG.

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

11〜13 符号化器 21〜23 入力バッファ 71 時刻情報生成器 72 フレームタイマ 73 フレームポインタレジスタ 74 CPU(制御手段として動作するとともに、RO
M75と共に優先度を設定する手段を構成する) 75 ROM 76 パケット生成器(パック生成器、付加データパケ
ット生成器と共に多重化手段を構成する) 77 パック生成器 78 付加データパケット生成器 79 出力バッファ
11-13 Encoder 21-23 Input buffer 71 Time information generator 72 Frame timer 73 Frame pointer register 74 CPU (Operating as a control means, RO
M75 constitutes a means for setting a priority) 75 ROM 76 packet generator (comprises a pack generator and a multiplexing means together with an additional data packet generator) 77 pack generator 78 additional data packet generator 79 output buffer

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 入力されるデジタル音声や動画像を符号
化して符号化ストリームとして出力する複数の符号化器
を備え、その複数の符号化ストリームを同期再生できる
ように多重化するデータ多重化装置において、前記各符
号化ストリーム毎に仮想復号化バッファをシミュレーシ
ョンして、そのバッファ内のデータ占有量に基づいて多
重化要求信号を出力する制御手段と、前記多重化要求信
号に基づいて各符号化ストリームを多重化する多重化手
段とを備えたことを特徴とするデータ多重化装置。
1. A data multiplexing apparatus comprising a plurality of encoders for encoding input digital audio or moving images and outputting them as encoded streams, and for multiplexing the plurality of encoded streams so that they can be synchronously reproduced. , A virtual decoding buffer is simulated for each of the coded streams, a control means for outputting a multiplexing request signal based on the amount of data occupied in the buffer, and each coding based on the multiplexing request signal. A data multiplexing apparatus comprising: a multiplexing unit for multiplexing streams.
【請求項2】 前記各符号化ストリームに優先度を設定
する手段を更に設け、前記制御手段は、前記優先度に従
い多重化すべき多重化要求信号を出力するとともに、前
記多重化手段は、前記優先度に従って各符号化ストリー
ムを多重化するよう構成されていることを特徴とする請
求項1記載のデータ多重化装置。
2. A means for setting a priority to each of the coded streams is further provided, the control means outputs a multiplexing request signal to be multiplexed in accordance with the priority, and the multiplexing means has the priority. 2. The data multiplexing device according to claim 1, wherein the data multiplexing device is configured to multiplex each coded stream according to the degree.
JP25884694A 1994-09-28 1994-09-28 Data multiplexing device Pending JPH0898160A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25884694A JPH0898160A (en) 1994-09-28 1994-09-28 Data multiplexing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25884694A JPH0898160A (en) 1994-09-28 1994-09-28 Data multiplexing device

Publications (1)

Publication Number Publication Date
JPH0898160A true JPH0898160A (en) 1996-04-12

Family

ID=17325848

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25884694A Pending JPH0898160A (en) 1994-09-28 1994-09-28 Data multiplexing device

Country Status (1)

Country Link
JP (1) JPH0898160A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998001970A1 (en) * 1996-07-03 1998-01-15 Matsushita Electric Industrial Co., Ltd. Data multiplexing method, data multiplexer using the multiplexing method, multiple data repeater, multiple data decoding method, multiple data decoding device using the decoding method, and recording medium on which the methods are recorded
WO1999012293A1 (en) * 1997-08-28 1999-03-11 Sony Corporation Transmitter for multichannel digital data and transmission method
WO1999034543A1 (en) * 1997-12-31 1999-07-08 Sony Corporation Coded data output device and method
WO2000030278A1 (en) * 1998-11-12 2000-05-25 Sony Corporation Data multiplexing device and data multiplexing method, and data transmitter
US6084636A (en) * 1996-09-27 2000-07-04 Victor Company Of Japan, Ltd. Video signal encoding method and apparatus employing an adaptive quantization technique
JP2006211476A (en) * 2005-01-31 2006-08-10 Nec Electronics Corp Data multiplexing apparatus
US7457525B2 (en) 2003-02-17 2008-11-25 Renesas Technology Corp. System multiplexing apparatus preventing overflow of audio decoder buffer

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998001970A1 (en) * 1996-07-03 1998-01-15 Matsushita Electric Industrial Co., Ltd. Data multiplexing method, data multiplexer using the multiplexing method, multiple data repeater, multiple data decoding method, multiple data decoding device using the decoding method, and recording medium on which the methods are recorded
US6418140B1 (en) 1996-07-03 2002-07-09 Matsushita Electric Industrial Co., Ltd. Data multiplexing method, data multiplexer using the multiplexing method, multiple data repeater, multiple data decoding method, multiple data decoding device using the decoding method, and recording medium on which the methods are recorded
US6084636A (en) * 1996-09-27 2000-07-04 Victor Company Of Japan, Ltd. Video signal encoding method and apparatus employing an adaptive quantization technique
WO1999012293A1 (en) * 1997-08-28 1999-03-11 Sony Corporation Transmitter for multichannel digital data and transmission method
US6747998B1 (en) 1997-08-28 2004-06-08 Sony Corporation Transmitter for multichannel digital data and transmission method
US7342961B2 (en) 1997-12-31 2008-03-11 Sony Corporation Encoded data outputting apparatus and method
WO1999034543A1 (en) * 1997-12-31 1999-07-08 Sony Corporation Coded data output device and method
US6868121B2 (en) 1997-12-31 2005-03-15 Sony Corporation Coded data output device and method
US7379497B2 (en) 1997-12-31 2008-05-27 Sony Corporation Encoded data outputting apparatus and method
WO2000030278A1 (en) * 1998-11-12 2000-05-25 Sony Corporation Data multiplexing device and data multiplexing method, and data transmitter
US7130265B1 (en) * 1998-11-12 2006-10-31 Sony Corporation Data multiplexing device and data multiplexing method, and data transmitter
US7457525B2 (en) 2003-02-17 2008-11-25 Renesas Technology Corp. System multiplexing apparatus preventing overflow of audio decoder buffer
US7873263B2 (en) 2003-02-17 2011-01-18 Renesas Electronics Corporation Multiplexing method preventing overflow of audio decoder buffer
JP2006211476A (en) * 2005-01-31 2006-08-10 Nec Electronics Corp Data multiplexing apparatus

Similar Documents

Publication Publication Date Title
JP3106987B2 (en) Audio / video synchronous playback device
US5572333A (en) Compressed data recording method using integral logical block size and physical block size ratios
US8233780B2 (en) Reproducing apparatus and method, and recording medium
JP2002094930A (en) Recorder, recording method, reproduction device, reproduction method and storage medium
JPH10285548A (en) Encoding device and method, decoding device and method and editing method
KR100629093B1 (en) Decoding apparatus and decoding method
JPH09509036A (en) Encoder system level buffer management
JPH0730886A (en) Method and device for processing picture and audio signal
JP3651699B2 (en) Decoding device and encoding / decoding device
JPH0898160A (en) Data multiplexing device
RU2308098C2 (en) Reproducing device and method, and recording carrier
JP2001043616A (en) Recording method, recording medium and recorder
JP3277971B2 (en) Data multiplexing apparatus, data multiplexing method, and data recording medium
JP3536493B2 (en) Authoring system, encoder and multiplexer used in the system, and method for generating multiple bit streams
JP3403865B2 (en) Stream multiplexing apparatus and stream multiplexing method
JPH10271482A (en) Synchronous reproduction control method and system for coded video
JPH08153368A (en) Transmission method for variable transmission rate signal and reproducing device
JP3134588B2 (en) Synchronous playback method of compressed image data and compressed sound data
JP4038872B2 (en) Video signal encoding system
RU2401465C2 (en) Playback device and method
JP4608831B2 (en) Data multiplexing apparatus and data multiplexing method
JP3951430B2 (en) Video signal encoding system
JPH11127435A (en) Device for decoding compression-encoded video and voice signal
JPH11355719A (en) Recording and reproducing device, recording and reproducing method and served medium
JPH10199140A (en) Code recording device and code multiplexing method

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20010605