JP3277971B2 - Data multiplexing apparatus, data multiplexing method, and data recording medium - Google Patents
Data multiplexing apparatus, data multiplexing method, and data recording mediumInfo
- Publication number
- JP3277971B2 JP3277971B2 JP6230494A JP6230494A JP3277971B2 JP 3277971 B2 JP3277971 B2 JP 3277971B2 JP 6230494 A JP6230494 A JP 6230494A JP 6230494 A JP6230494 A JP 6230494A JP 3277971 B2 JP3277971 B2 JP 3277971B2
- Authority
- JP
- Japan
- Prior art keywords
- encoded
- image signal
- data
- signal
- multiplexing
- 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.)
- Expired - Fee Related
Links
Classifications
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11B—INFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
- G11B20/00—Signal processing not specific to the method of recording or reproducing; Circuits therefor
- G11B20/10—Digital recording or reproducing
- G11B20/10527—Audio or video recording; Data buffering arrangements
- G11B2020/1062—Data buffering arrangements, e.g. recording or playback buffers
- G11B2020/10814—Data buffering arrangements, e.g. recording or playback buffers involving specific measures to prevent a buffer underrun
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
- Signal Processing For Digital Recording And Reproducing (AREA)
- Signal Processing Not Specific To The Method Of Recording And Reproducing (AREA)
- Television Signal Processing For Recording (AREA)
Description
【0001】[0001]
【産業上の利用分野】本発明は、可変レートで符号化さ
れた動画像や音声などの複数のデータを、例えばディス
クなどの単一の記録媒体に記録する場合に用いて好適な
データ符号化装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data encoding method suitable for recording a plurality of data such as moving pictures and sounds encoded at a variable rate on a single recording medium such as a disk. Related to the device.
【0002】[0002]
【従来の技術】例えば、動画像や音声のデータをディジ
タル化し、ディスクなどの記録媒体に記録する場合、そ
のままではデータ量が膨大になるため、データの圧縮符
号化が一般的に行なわれる。2. Description of the Related Art For example, when moving image and audio data is digitized and recorded on a recording medium such as a disk, the data amount is enormous if it is used, so that data compression encoding is generally performed.
【0003】ところで、ディスクに記録されたデータを
復号化装置(デコーダ)において復号化する際、例えば
映画などのアプリケーションの場合には、動画像データ
(映像)と音声データ(例えば台詞)は同期して再生す
る必要がある。そのため、符号化装置(エンコーダ)で
は、データの符号化とともに、符号化されたデータの多
重化処理が行なわれる(但し、データの多重化はデータ
の符号化と同時に行なわれるとは限らない)。When data recorded on a disc is decoded by a decoding device (decoder), for example, in the case of an application such as a movie, moving image data (video) and audio data (eg, speech) are synchronized. Need to play. Therefore, in the encoding device (encoder), the multiplexing process of the encoded data is performed together with the encoding of the data (however, the multiplexing of the data is not always performed simultaneously with the encoding of the data).
【0004】データの多重化の際には、動画像や音声な
どの複数の符号化データを、適当な時間間隔で、かつ適
当な割合(レート)で読み込み、同期再生に必要な時刻
情報(タイムスタンプ)などの情報を付加した後に、単
一のデータ(ビットストリーム)として出力する。[0004] When multiplexing data, a plurality of encoded data such as moving images and sounds are read at appropriate time intervals and at an appropriate rate (rate), and time information (time) required for synchronous reproduction is read. After adding information such as a stamp), the data is output as single data (bit stream).
【0005】一般的にビットストリームは、階層的な構
造を有している。MPEG(ISO 11172)において規定さ
れているビットストリームのデータ構造を図5に示す。
図5からもわかるように、ビットストリームは複数のパ
ック(pack)から構成される。各パックは、複数のパケッ
ト(packet)から構成され、その並びの先頭にパケットス
タートコード、システム全体(エンコーダやデコーダな
ど)の同期とバッファの管理(この点については後述す
る)のために用いられるSCR(System ClockReferenc
e) 、システムヘッダなどが置かれる。[0005] Generally, a bit stream has a hierarchical structure. FIG. 5 shows a data structure of a bit stream defined in MPEG (ISO 11172).
As can be seen from FIG. 5, the bit stream is composed of a plurality of packs. Each pack is composed of a plurality of packets, and a packet start code is placed at the beginning of the pack, and is used for synchronization of the entire system (encoder and decoder, etc.) and management of buffers (this point will be described later). SCR (System ClockReferenc)
e), system header, etc. are placed.
【0006】各パケットの先頭にはストリームの識別番
号(ID)、デコーダにおいて復号化されたデータを再生
する時刻を示すPTS(Presentation Time Stamp) や、
デコーダにおいてデータを復号化する時刻を示し、PT
Sとともに、データの同期再生のために用いられるDT
S(Decoding Time Stamp) などのタイムスタンプ、及び
バッファサイズなどの情報が置かれ、その後ろに、動画
像あるいは音声などの圧縮符号化されたデータが挿入さ
れる。At the beginning of each packet, an identification number (ID) of a stream, a PTS (Presentation Time Stamp) indicating a time at which data decoded by a decoder is reproduced,
Indicates the time at which the decoder decodes the data,
Along with S, DT used for synchronous reproduction of data
A time stamp such as S (Decoding Time Stamp) and information such as a buffer size are placed, followed by compression-encoded data such as a moving image or audio.
【0007】符号化された動画像の符号化データが挿入
されたパケットをビデオパケット(video packet)とい
い、音声の符号化データが挿入されたパケットをオーデ
ィオパケット(audio packet)という。同一のパケット内
に異なる種類のデータ(例えば、動画像と音声の符号化
データ)が混在することはない。A packet in which encoded data of a coded moving image is inserted is called a video packet, and a packet in which audio encoded data is inserted is called an audio packet. Different types of data (for example, coded video and audio data) are not mixed in the same packet.
【0008】MPEGでは、パック及びパケットは可変
長とされている。また、MPEGでは、最大32個(種
類)のオーディオと、最大16個(種類)のビデオデー
タの同時多重化が可能であるように、ビットストリーム
のシンタックスが規定されている。MPEGの多重化処
理の詳細については、92年3月27日に発行されたI
SO 11172 1−AnnexA ”Descri
ption of the System Codin
g Layer”(informative)に述べら
れている。[0008] In MPEG, packs and packets are of variable length. In MPEG, the syntax of a bit stream is specified so that a maximum of 32 (types) of audio and a maximum of 16 (types) of video data can be simultaneously multiplexed. For details of the MPEG multiplexing process, see I.
SO 11172 1-AnnexA "Descri
Ption of the System Codin
g Layer "(informative).
【0009】例えばMPEGでは、パックやパケットの
長さが可変であるなどの自由度が存在することから、デ
ータの多重化の方法として、様々な手法が考えられる。For example, in MPEG, there are degrees of freedom such as the length of a pack or a packet being variable, and therefore various methods of multiplexing data can be considered.
【0010】データの多重化処理における第1の制約
は、デコーダバッファがオーバーフローあるいはアンダ
ーフローしないように、データを多重化しなければなら
ないことである。そのために、エンコーダ側(データ符
号化装置を含む)では、デコーダバッファと同容量のバ
ッファを設けて、このバッファにおいてオーバーフロー
及びアンダーフローが起こらないように管理・制御す
る。[0010] The first limitation in the data multiplexing process is that the data must be multiplexed so that the decoder buffer does not overflow or underflow. For this purpose, on the encoder side (including the data encoding device), a buffer having the same capacity as the decoder buffer is provided, and management and control are performed so that overflow and underflow do not occur in this buffer.
【0011】以下の記述では、特に断わりのない限り、
バッファとはエンコーダ側におけるバッファメモリを示
すものとする。In the following description, unless otherwise specified.
The buffer indicates a buffer memory on the encoder side.
【0012】さらに、データ多重化処理における具体的
な問題としては、バッファの管理の他に、前述したよう
なパック及びパケットの長さ、パックの構成法(1パッ
ク当たりのパケット数など)、異なる種類のデータパケ
ット(例えばビデオパケットとオーディオパケットな
ど)のパックに対する挿入比率、などが挙げられる。Further, as a specific problem in the data multiplexing process, in addition to the buffer management, the lengths of the pack and the packet as described above, the pack configuration method (the number of packets per pack, etc.) are different. An insertion ratio of a type of data packet (for example, a video packet and an audio packet) to a pack is included.
【0013】しかし、動画像や音声などの入力データ
が、各々固定レートで符号化される場合であれば、以上
の問題は比較的容易に解決される。この点について、以
下に例を挙げて説明する。However, if the input data such as the moving image and the sound are encoded at a fixed rate, the above problem can be solved relatively easily. This will be described below with examples.
【0014】例えば、今、単一の動画像データ及び単一
の音声データを独立に固定レート符号化した後、多重化
するものとする。そして、パケットの長さはビデオ、オ
ーディオともに2048バイト(固定)であるとする。
また、ビデオデータは150000バイト/秒で符号化
され、オーディオデータは24000バイト/ 秒で符
号化されるものとする。For example, it is assumed that single moving image data and single audio data are independently coded at a fixed rate and then multiplexed. It is assumed that the packet length is 2048 bytes (fixed) for both video and audio.
It is assumed that video data is encoded at 150,000 bytes / sec, and audio data is encoded at 24000 bytes / sec.
【0015】この場合、動画像の符号化レートは音声の
6.25倍(=150000/24000) であり、パケットの長さは
同一であるから、動画像データと音声データを同期再生
するためには、1パックに対するビデオパケットの挿入
比率を、オーディオパケットの6.25倍にすればよ
く、それゆえ、6個から7個のビデオパケットの間に、
オーディオパケットが1個挿入されればよい。各パック
は3個のパケットから構成されるものとすると、以上の
条件の下で生成されたビットストリームは、図6のよう
な構成になる。In this case, the coding rate of the moving picture is 6.25 times (= 150,000 / 24000) that of the sound, and the packet length is the same, so that the moving picture data and the sound data are reproduced synchronously. Suffices to make the insertion ratio of video packets per pack 6.25 times that of audio packets, so that between 6 and 7 video packets,
What is necessary is just to insert one audio packet. Assuming that each pack is composed of three packets, the bit stream generated under the above conditions has a configuration as shown in FIG.
【0016】この例からわかるように、固定レートで符
号化された複数のデータの多重化処理では、パック及び
パケットの長さや、パックの構成を前もって決定してお
くことにより、パックに対するパケットの挿入比率は予
め計算可能となり、比較的容易に多重化処理が行なわれ
る。As can be seen from this example, in the multiplexing processing of a plurality of data encoded at a fixed rate, the length of the pack and the packet and the configuration of the pack are determined in advance, so that the packet is inserted into the pack. The ratio can be calculated in advance, and multiplexing can be performed relatively easily.
【0017】また、バッファの管理に関しては、バッフ
ァにおけるデータの蓄積量を常時モニタすることによっ
て、その蓄積量を制御することが可能である。Further, regarding the management of the buffer, it is possible to control the accumulation amount by constantly monitoring the accumulation amount of data in the buffer.
【0018】例えば、ビデオコードバッファ(符号化さ
れた動画像データを一時的に記憶する)がオーバーフロ
ーしそうな場合には、後述するように量子化回路におけ
る量子化ステップの値を大きくして、符号化データの発
生量を一時的に少なくすることによりバッファオーバー
フローを抑制する。また、バッファがアンダーフローし
そうな場合には、ビデオあるいはオーディオデータとは
無関係な疑似のデータを挿入し、符号化データの発生情
報量を一時的に多くすることにより、バッファアンダー
フローを抑制する。For example, when the video code buffer (for temporarily storing encoded moving image data) is likely to overflow, the value of the quantization step in the quantization circuit is increased as will be described later to increase the code. Buffer overflow is suppressed by temporarily reducing the amount of generated data. If the buffer is likely to underflow, buffer underflow is suppressed by inserting pseudo data unrelated to video or audio data and temporarily increasing the amount of generated information of encoded data.
【0019】[0019]
【発明が解決しようとする課題】前述したように、動画
像及び音声などのデータが最大符号化レートを固定して
符号化される場合、多重化装置においては予め決められ
た割合で動画像データと音声データを交互にパケット内
に挿入することにより、比較的容易にビットストリーム
を生成可能である。As described above, when data such as a moving image and audio is encoded with a fixed maximum coding rate, the multiplexing apparatus uses the moving image data at a predetermined rate. The bit stream can be generated relatively easily by alternately inserting the and the audio data into the packet.
【0020】しかしながら、動画像及び音声の各データ
が効率良く圧縮符号化され、低レートで符号化された場
合にも、バッファのアンダーフローを抑制し、固定レー
トを保証するためには、多重化処理において、再生に無
関係な疑似データを挿入しなければならない。そのた
め、記録媒体の記録容量を有効に活用しているとはいえ
ない。However, even when the video and audio data are efficiently compression-encoded and encoded at a low rate, multiplexing is required to suppress buffer underflow and guarantee a fixed rate. In processing, pseudo data irrelevant to reproduction must be inserted. Therefore, it cannot be said that the recording capacity of the recording medium is effectively utilized.
【0021】また、例えば動画像の符号化の際には、バ
ッファにおけるオーバーフローを抑制し、固定レートを
保証するために、符号化装置内の量子化回路における量
子化ステップの値を変化させることが行なわれる。つま
り、絵柄が比較的複雑で画像の圧縮が困難である(符号
化効率が悪い)部分に対しては量子化ステップを大きく
し、反対に絵柄が比較的平坦で圧縮が容易である(符号
化効率が良い)部分に対しては量子化ステップを小さく
することが行なわれる。このため、動画像データ全体と
しては均一な画質は保証できなくなる。For example, when encoding a moving image, the value of a quantization step in a quantization circuit in an encoding device may be changed in order to suppress overflow in a buffer and guarantee a fixed rate. Done. That is, the quantization step is increased for a part where the picture is relatively complicated and the image compression is difficult (encoding efficiency is low), and conversely, the picture is relatively flat and the compression is easy (encoding is difficult). The quantization step is reduced for the (highly efficient) part. For this reason, uniform image quality cannot be guaranteed for the entire moving image data.
【0022】そこで、均一な画質を保証するために、可
変レートで動画像を符号化する方法が考えられる。つま
り、符号化効率が悪い部分に対しては、符号化レートを
一時的に大きくして多くの符号化ビットをもって符号化
し、反対に符号化効率の良い部分に対しては、符号化レ
ートを一時的に小さくする。以上のように適応的に符号
化レートを制御することにより、動画像全体を通して均
一な画質を得ることが可能となる。この場合、データの
符号化レートは可変であるので、類似データを挿入する
必要がなく、記録媒体の記録容量の有効活用が可能とな
る。In order to guarantee uniform image quality, a method of encoding a moving image at a variable rate is conceivable. In other words, for portions with low coding efficiency, the coding rate is temporarily increased, and coding is performed with many coded bits. Conversely, for portions with high coding efficiency, the coding rate is temporarily set. Make it smaller. By adaptively controlling the coding rate as described above, it is possible to obtain uniform image quality throughout the entire moving image. In this case, since the data encoding rate is variable, there is no need to insert similar data, and the recording capacity of the recording medium can be effectively used.
【0023】尚、可変レートデータの多重化装置及び分
離装置に関する記載が、英国特許2 259 229A
(Date of A Publication 0
3.03.1993)にあるが、多重化装置側のコード
バッファの制御の詳細については、記載がない。A description relating to a multiplexing device and a demultiplexing device for variable rate data is disclosed in British Patent No. 2259229A.
(Date of A Publication 0
3.0.1993), but there is no description of the details of the control of the code buffer on the multiplexer side.
【0024】ところで、上述のような可変レートの符号
化では、適応的に符号化レートが変化するので、符号化
レートは予測不可能であり、多重化処理における異なる
パケット(例えばビデオパケット及びオーディオパケッ
ト等)のパックに対する挿入比率を予め決定しておくこ
とは不可能であり、多重化処理は固定レートの場合と比
較して困難になる。By the way, in the above-mentioned variable rate coding, the coding rate is adaptively changed, so that the coding rate is unpredictable and different packets (for example, video packets and audio packets) in the multiplexing process are different. ) Cannot be determined in advance, and the multiplexing process becomes more difficult than in the case of a fixed rate.
【0025】本発明は、以上のような状況に鑑みて、可
変レートで符号化された複数のデータ(例えばビデオデ
ータやオーディオデータなど)についての多重化装置、
方法及び記録媒体を提案するものである。In view of the above situation, the present invention provides a multiplexing apparatus for a plurality of data (for example, video data and audio data) encoded at a variable rate.
A method and a recording medium are proposed.
【0026】[0026]
【課題を解決するための手段】本発明のデータ多重化装
置は、少なくとも1つの画像信号を可変レートで符号化
する画像符号化手段と、少なくとも1つの音声信号を符
号化する音声符号化手段と、前記画像符号化手段により
符号化された少なくとも1つの符号化画像信号を一時的
に蓄積する第1の蓄積手段と、前記音声符号化手段によ
り符号化された少なくとも1つの符号化音声信号を一時
的に蓄積する第2の蓄積手段と、前記第1及び第2の蓄
積手段に蓄積された前記符号化画像信号と符号化音声信
号とを多重化する多重化手段と、前記第1の蓄積手段に
蓄積された前記符号化画像信号の蓄積量に基づいて、前
記第1の蓄積手段から前記多重化手段への前記符号化画
像信号の転送を制御する制御手段とを備え、前記制御手
段による前記制御は、前記転送の制限若しくは前記転送
の転送レートを制御することにより行われる、ことを特
徴とする。SUMMARY OF THE INVENTION A data multiplexing apparatus according to the present invention comprises: an image encoding means for encoding at least one image signal at a variable rate; and an audio encoding means for encoding at least one audio signal. First storage means for temporarily storing at least one encoded image signal encoded by the image encoding means, and temporarily storing at least one encoded audio signal encoded by the audio encoding means. Second storage means for temporarily storing the coded image signal and coded audio signal stored in the first and second storage means, and the first storage means based on the accumulated amount of accumulated said encoded image signal to, and control means for controlling the transfer of the coded image signal to the multiplexing means from said first storage means, the control hand
The step-by-step control may include limiting the transfer or transferring
The transfer rate is controlled by controlling the transfer rate .
【0027】また、前記制御手段は、前記第1の蓄積手
段に前記符号化画像信号がない場合、前記多重化手段へ
の前記符号化画像信号の転送を一時停止し、前記第1の
蓄積手段に前記符号化画像信号がある場合、前記多重化
手段への前記符号化画像信号の転送を所定の転送レート
で行う。更に、前記所定の転送レートは、前記画像符号
化手段の最大符号化レートと前記音声符号化手段の最大
符号化レートの総和以上とされる。[0027] When the encoded image signal is not present in the first storage means, the control means suspends the transfer of the encoded image signal to the multiplexing means, and controls the first accumulation means. When there is the encoded image signal, the encoded image signal is transferred to the multiplexing means at a predetermined transfer rate. Furthermore, the predetermined transfer rate is equal to or greater than the sum of the maximum coding rate of maximum coding rate and the speech encoding means of said image encoding means.
【0028】また、前記多重化手段への入力を、前記第
2の蓄積手段における前記符号化音声信号の蓄積量に基
づいて切り替える切り替え手段をさらに備えることがで
きる。 Also, the input to the multiplexing means is
2 based on the storage amount of the encoded audio signal in the storage means.
Switching means for switching based on
I can .
【0029】更に、本発明のデータ多重化装置は、多重
化された符号化画像信号および符号化音声信号を記録媒
体に記録する変調記録回路のような記録手段を有する。Further, the data multiplexing apparatus of the present invention has recording means such as a modulation recording circuit for recording the multiplexed coded image signal and coded audio signal on a recording medium.
【0030】[0030]
【作用】前記のように構成された多重化装置において、
絵柄が平坦で圧縮が容易な画像が連続してビデオエンコ
ーダに入力された場合、発生する符号量が少なくなり、
ビデオコードバッファが、アンダーフローを起こしそう
になるが、この時には、バッファコントローラが、多重
化回路へのデータ転送を制限する。In the multiplexing device configured as described above,
When a picture with a flat design and easy compression is continuously input to the video encoder, the generated code amount is reduced,
The video code buffer is likely to underflow, at which time the buffer controller limits data transfer to the multiplexing circuit.
【0031】また、バッファコントローラは、各コード
バッファの読み出しを、すべてのエンコーダの最大符号
化レートの総和以上の転送レートで、符号化コードが転
送されるように制御する。よって、絵柄が複雑で圧縮が
困難な画像が連続してビデオエンコーダに入力された場
合でも、コードバッファのオーバーフローは抑制され
る。The buffer controller controls the reading of each code buffer so that the coded codes are transferred at a transfer rate equal to or higher than the sum of the maximum coding rates of all the encoders. Therefore, even when an image having a complicated pattern and difficult to compress is continuously input to the video encoder, overflow of the code buffer is suppressed.
【0032】さらに、カウンタは、一定の時間間隔でス
イッチを切り替えるため、多重化回路への入力が、順次
変更され、一定の時間間隔で各コードバッファから出力
された符号化コードが多重化される。Further, since the counter switches at regular time intervals, the inputs to the multiplexing circuit are sequentially changed, and the encoded codes output from each code buffer are multiplexed at regular time intervals. .
【0033】[0033]
【実施例】以下、本発明のデータ符号化装置の実施例を
図面を参照しながら説明する。先ず第1に入力データが
単一の動画像データ(可変レート符号化)及び単一の音
声データ(固定レート符号化)である場合について、実
施例1として図1を用いて説明する。BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing an embodiment of a data encoding apparatus according to the present invention. First, a case where input data is single moving image data (variable rate coding) and single audio data (fixed rate coding) will be described as a first embodiment with reference to FIG.
【0034】図1は、本発明のデータ符号化装置の一実
施例の構成を示すブロック図である。本実施例では、多
重化装置に対する入力データは、単一の動画像データ及
び単一の音声データであるとする。また、動画像データ
は可変レート(最大符号化レートRvmax=10Mb
ps)で、音声データは固定レート(符号化レートRa
=1.5Mbps)で各々圧縮符号化された後に、多重
化処理が施されるものとする。さらに、パック長は固定
(例えば、2048バイト)、パケット長は可変である
ものとする。全体の転送レートは、ヘッダなどの付加情
報(最大発生レートRsmax=4.5Mbps)を加
えても、17Mbps以下になるものとする。FIG. 1 is a block diagram showing the configuration of an embodiment of the data encoding device of the present invention. In the present embodiment, it is assumed that input data to the multiplexing device is single moving image data and single audio data. Also, moving image data has a variable rate (maximum coding rate Rvmax = 10 Mb).
ps), the audio data has a fixed rate (coding rate Ra
= 1.5 Mbps) and then multiplexed. Further, the pack length is fixed (for example, 2048 bytes), and the packet length is variable. The overall transfer rate is assumed to be 17 Mbps or less even when additional information such as a header (maximum generation rate Rsmax = 4.5 Mbps) is added.
【0035】カメラ1から取り込まれた動画像データd
1はビデオエンコーダ3に入力され、圧縮符号化が行な
われる。カメラ1から取り込まれた動画像データd1
を、記憶装置15に一旦記憶した後、ビデオエンコーダ
3に送り出すようにしてもよい。ビデオエンコーダ3で
は、DCT(離散コサイン変換)、量子化、VLC(可
変長符号化)などの処理が可変レートで施される。以上
の過程を経て圧縮符号化された動画像データ(ビデオコ
ードc1)は、ビデオコードバッファ5に入力される。Moving image data d captured from the camera 1
1 is input to the video encoder 3 and compression encoding is performed. Moving image data d1 captured from camera 1
May be temporarily stored in the storage device 15 and then sent to the video encoder 3. In the video encoder 3, processes such as DCT (discrete cosine transform), quantization, and VLC (variable length coding) are performed at a variable rate. The moving image data (video code c1) compressed and encoded through the above process is input to the video code buffer 5.
【0036】ビデオコードバッファ5には、ビデオエン
コーダ3において生成されたビデオコードc1が入力さ
れ、一時的に蓄積される。その際、ビデオエンコーダ3
は可変レートで動画像データの符号化を行なうので、ビ
デオコードバッファ5におけるビデオコードの蓄積量o
1も時間的に可変となる。The video code c1 generated by the video encoder 3 is input to the video code buffer 5, and is temporarily stored. At that time, the video encoder 3
Performs encoding of moving image data at a variable rate, so that the video code buffer 5 stores video code o
1 also becomes temporally variable.
【0037】ビデオコードバッファ5におけるビデオコ
ードc1の蓄積量o1は、ビデオエンコーダ3にフィード
バックされ、次のピクチャーが圧縮符号化される際の符
号量の割り当てに利用される。具体的には、ビデオエン
コーダ3内の量子化器において量子化ステップなどの値
を変化させ、ビデオコードバッファ5がオーバーフロー
しないようにレートコントロールされる。また、ビデオ
コードバッファ5におけるビデオコードd1の蓄積量o1
は、後述するバッファコントローラ14にも供給され
る。The storage amount o1 of the video code c1 in the video code buffer 5 is fed back to the video encoder 3 and used for allocating the code amount when the next picture is compression-coded. Specifically, a value such as a quantization step is changed in a quantizer in the video encoder 3 and rate control is performed so that the video code buffer 5 does not overflow. The storage amount o1 of the video code d1 in the video code buffer 5
Is also supplied to a buffer controller 14 described later.
【0038】一方、マイク2から取り込まれた音声デー
タd2はオーディオエンコーダ4に入力され、固定レー
トで符号化、例えば16ビットで線形量子化(リニアP
CM)される。マイク2から取り込まれた音声データd
2を記憶装置16に一旦記憶し、オーディオエンコーダ
4に出力するようにしてもよい。On the other hand, the audio data d2 captured from the microphone 2 is input to the audio encoder 4 and encoded at a fixed rate, for example, linear quantization (linear P
CM). Audio data d taken from microphone 2
2 may be temporarily stored in the storage device 16 and output to the audio encoder 4.
【0039】オーディオエンコーダ4で生成された音声
データ(オーディオコードc2)はオーディオコードバ
ッファ6に入力される。オーディオコードバッファ6に
は、オーディオエンコーダ4において生成されたオーデ
ィオコードc2が入力され、一時的に蓄積される。The audio data (audio code c2) generated by the audio encoder 4 is input to the audio code buffer 6. The audio code buffer 6 receives the audio code c2 generated by the audio encoder 4 and temporarily stores the audio code c2.
【0040】その際、オーディオエンコーダ4は固定レ
ートで音声データの符号化を行なうので、同一のレート
でオーディオコードc2がデータ多重化回路7に転送さ
れるとすると、オーディオコードバッファ6におけるオ
ーディオコードc2の蓄積量o2は時間的に変動はなく一
定である。ただし、実際には、オーディオコードバッフ
ァ6は、(Rvmax+Ra)以上の転送レートによる
転送状態と、オーディオコードc2を転送しない待機状
態(即ち転送レート0Mbps)とを一定の時間間隔で
繰り返すので、オーディオコードc2の蓄積量o2は、一
定の時間間隔で、同じパターンを繰り返しながら変動す
る。At this time, since the audio encoder 4 encodes the audio data at a fixed rate, if the audio code c2 is transferred to the data multiplexing circuit 7 at the same rate, the audio code c2 in the audio code buffer 6 Is constant without any temporal variation. However, in practice, the audio code buffer 6 repeats a transfer state at a transfer rate of (Rvmax + Ra) or more and a standby state in which the audio code c2 is not transferred (that is, a transfer rate of 0 Mbps) at fixed time intervals. The accumulated amount o2 of c2 fluctuates at regular time intervals while repeating the same pattern.
【0041】データ多重化回路7では、ビデオ及びオー
ディオの各コードを各バッファから交互に入力すること
によりデータの多重化を行なう。データ多重化回路7に
対する入力コードの切り替えはスイッチ8によって実行
されている。カウンタ9は、オーディオコードバッファ
6のデータ蓄積量o2をモニターし、このデータ蓄積量o
2に基づいて、スイッチ8の入力を、オーディオコード
バッファ6側か、ビデオコードバッファ側5かに、一定
の時間間隔で切り替える。The data multiplexing circuit 7 multiplexes data by alternately inputting video and audio codes from respective buffers. Switching of the input code to the data multiplexing circuit 7 is executed by the switch 8. The counter 9 monitors the data storage amount o2 of the audio code buffer 6, and monitors the data storage amount o2.
2, the input of the switch 8 is switched between the audio code buffer 6 side and the video code buffer side 5 at fixed time intervals.
【0042】このように、固定レートの符号化コードを
蓄積するオーディオコードバッファ6のデータ蓄積量に
基づいて、スイッチ8の切り替えを制御することによ
り、固定レートの符号化コードを時間基準にした多重化
が実現できる。As described above, by controlling the switching of the switch 8 based on the amount of data stored in the audio code buffer 6 for storing the fixed-rate encoded code, multiplexing based on the fixed-rate encoded code on a time basis. Can be realized.
【0043】バッファコントーラ13は、スイッチ8の
切り替えに同期して、オーディオコードバッファ6の読
み出しを制御する。オーディオコードバッファ6から
は、スイッチ8が、オーディオコードバッファ6側に接
続されている一定時間の間、一定量のオーディオコード
c2が転送される。The buffer controller 13 controls reading of the audio code buffer 6 in synchronization with the switching of the switch 8. From the audio code buffer 6, the switch 8 outputs a fixed amount of audio code
c2 is transferred.
【0044】オーディオコードc2が転送されない時間
においては、スイッチ8はビデオコードバッファ5側に
切り替えられる。バッファコントーラ14は、スイッチ
8がビデオコードバッファ5側に接続されている一定時
間の間、蓄積されているビデオコードc1が、適当な転
送レート(例えば11.5Mbps)で転送されるよう
に、ビデオコードバッファ5の読み出しを制御する。During the time when the audio code c2 is not transferred, the switch 8 is switched to the video code buffer 5 side. The buffer controller 14 controls the video signal c1 so that the stored video code c1 is transferred at an appropriate transfer rate (for example, 11.5 Mbps) during a certain period during which the switch 8 is connected to the video code buffer 5 side. The reading of the code buffer 5 is controlled.
【0045】バッファコントーラ14は、上述したよう
に、ビデオコードバッファ5にビデオコードc1がない
(記憶されていない)場合には、ビデオコードc1のス
イッチ8への転送を一時停止して、ビデオコードc1が
蓄積されるまで待機することによりビデオコードバッフ
ァ5におけるアンダーフローを抑制する。そして、バッ
ファコントローラ14は、ビデオコードバッファ5にビ
デオコードc1が蓄積されると、ビデオコードバッファ
5の読みだしを再び開始し、スイッチ8へビデオコード
c1を転送する。As described above, when the video code c1 does not exist (is not stored) in the video code buffer 5, the buffer controller 14 suspends the transfer of the video code c1 to the switch 8, and By waiting until c1 is accumulated, underflow in the video code buffer 5 is suppressed. When the video code c1 is accumulated in the video code buffer 5, the buffer controller 14 starts reading the video code buffer 5 again, and sends the video code c to the switch 8.
Transfer c1.
【0046】その後、データ多重化回路7では、付加情
報挿入部10において、スイッチ8により多重化された
ビデオコード及びオーディオコードに対し、カウンタ9
のカウント値等に基づいてタイムコードなどの情報を付
加して、パケットを構成し、ビットストリームbsを構
築する。ビットストリームbsは、変調記録回路11に
転送される。Thereafter, in the data multiplexing circuit 7, the additional information insertion unit 10 adds a counter 9 to the video code and audio code multiplexed by the switch 8.
Based on the count value and the like, information such as a time code is added to form a packet, and a bit stream bs is constructed. The bit stream bs is transferred to the modulation recording circuit 11.
【0047】ビデオコードバッファ5及びオーディオコ
ードバッファ6からデータ符号化装置7への情報転送
は、ビデオコードバッファ5とオーディオコードバッフ
ァ6のオーバーフローを抑制するために、すべての情報
の符号化レートの最大値の総和(Rvmax+Ra)以
上の転送レートで行なうように制御される。また、ビデ
オコードc1の転送量は、作成中のパックの大きさにも
依存する。The information transfer from the video code buffer 5 and the audio code buffer 6 to the data encoding device 7 is performed in order to suppress the overflow of the video code buffer 5 and the audio code buffer 6 so that the encoding rate of all information is maximized. Control is performed so that the transfer rate is equal to or greater than the sum of the values (Rvmax + Ra). The transfer amount of the video code c1 also depends on the size of the pack being created.
【0048】ビデオコードバッファ5の待機/転送の切
り替えは、ビデオコードバッファ5に蓄積されるビデオ
コードc1の蓄積量o1を基にしてバッファコントローラ
14により制御される。The switching between standby and transfer of the video code buffer 5 is controlled by the buffer controller 14 based on the storage amount o1 of the video code c1 stored in the video code buffer 5.
【0049】変調記録回路11に入力されたビットスト
リームbsは、所定の方法で変調された後に、ドライブ
に挿入されているディスク12上に記録される。The bit stream bs input to the modulation recording circuit 11 is recorded on a disk 12 inserted in a drive after being modulated by a predetermined method.
【0050】実施例1におけるビデオ及びオーディオの
各コードバッファ5,6でのデータ蓄積量の結果を図2
に示す。横軸は時間、縦軸はバッファにおける蓄積され
たビット数(累積)を示す。図2のAは、オーディオコ
ードバッファ6からデータ多重化回路7へ出力されるオ
ーディオコード出力量を示す。Bは、オーディオエンコ
ーダ4からオーディオコードバッファ6へ入力されるオ
ーディオコード入力量を示す。AとCとの間隔は、オー
ディオコードバッファ6の容量を示す。AとBとの間隔
は、オーディオコードバッファ6に蓄積されたオーディ
オコードの蓄積量o2を示す。FIG. 2 shows the results of the data storage amounts in the video and audio code buffers 5 and 6 in the first embodiment.
Shown in The horizontal axis indicates time, and the vertical axis indicates the number of bits accumulated (accumulated) in the buffer. FIG. 2A shows the audio code output amount output from the audio code buffer 6 to the data multiplexing circuit 7. B indicates an audio code input amount input from the audio encoder 4 to the audio code buffer 6. The interval between A and C indicates the capacity of the audio code buffer 6. The interval between A and B indicates the storage amount o2 of the audio code stored in the audio code buffer 6.
【0051】Dは、ビデオコードバッファ5からデータ
多重化回路7へ出力されるビデオコード出力量を示す。
Eは、ビデオエンコーダ3から、ビデオコードバッファ
5へ入力されるビデオコード入力量を示す。DとFとの
間隔は、ビデオコードバッファ5の容量を示す。DとE
との間隔は、ビデオコードバッファ5に蓄積されたビデ
オコードの蓄積量o1を示す。D indicates the amount of video code output from the video code buffer 5 to the data multiplexing circuit 7.
E indicates a video code input amount input from the video encoder 3 to the video code buffer 5. The interval between D and F indicates the capacity of the video code buffer 5. D and E
Represents the storage amount o1 of the video code stored in the video code buffer 5.
【0052】ビデオコードバッファ5では、可変レート
で符号化データが入力され、出力はバッファの蓄積量や
作成中のパックの大きさ、あるいはオーディオコードの
転送時間間隔などに依存するため、単位時間当たりのデ
ータの蓄積量はランダムに変動している。In the video code buffer 5, coded data is input at a variable rate, and the output depends on the amount of buffer storage, the size of the pack being created, or the transfer time interval of the audio code. The amount of accumulated data fluctuates randomly.
【0053】一方、オーディオコードバッファ6では、
図3に拡大して示すように、固定レートでオーディオコ
ードが入力され、(Rvmax+Ra)以上の転送レー
ト(11.5Mbps)による転送状態(Aの傾斜部
分)と、オーディオコードc2を転送しない待機状態
(即ち転送レート0Mbps、Aの水平部分)とを、一
定の時間間隔で繰り返すので、オーディオコードc2の
蓄積量o2は、一定の時間間隔で、同じパターンを繰り
返しながら変動する。しかしながら、単位時間当たりの
平均のデータの蓄積量は変動しない。On the other hand, in the audio code buffer 6,
As shown in an enlarged manner in FIG. 3, an audio code is input at a fixed rate, a transfer state (a slope portion of A) at a transfer rate (11.5 Mbps) or higher (Rvmax + Ra) and a standby state where the audio code c2 is not transferred. (That is, the transfer rate of 0 Mbps, the horizontal portion of A) is repeated at fixed time intervals, so that the accumulated amount o2 of the audio code c2 fluctuates while repeating the same pattern at fixed time intervals. However, the average amount of accumulated data per unit time does not change.
【0054】また、各コードバッファではオーバーフロ
ー及びアンダーフローが起こらないようにデータの書き
込みと読み出しがなされていることがわかる。Also, it can be seen that data is written and read in each code buffer so that overflow and underflow do not occur.
【0055】また、ビデオコード出力量Dにおける水平
部分は、前述のバッファコントローラ14が、ビデオコ
ードバッファ5におけるビデオコードc1の蓄積量o1を
モニターし、ビデオコードc1の蓄積がないと判断し、
待機している状態(即ち転送レート0Mbps)を示
し、それ以外の傾斜部分は、(Rvmax+Ra)以上
の転送レート、例えば11.5Mbpsでビデオコード
c1をデータ多重化回路7に送出している様子を示して
いる。In the horizontal portion of the video code output amount D, the buffer controller 14 monitors the storage amount o1 of the video code c1 in the video code buffer 5 and determines that the video code c1 is not stored.
A standby state (that is, a transfer rate of 0 Mbps) is shown, and the other slopes are video codes at a transfer rate of (Rvmax + Ra) or more, for example, 11.5 Mbps.
The figure shows a state in which c1 is sent to the data multiplexing circuit 7.
【0056】但し、ビデオコードバッファ5からデータ
多重化回路7への出力は、オーディオコードバッファ6
からデータ多重化回路7への出力が行われていない期間
(Aの水平部分)において行われる。このため、実際に
は、Dのビデオコードc1が出力されている期間(Dの
傾斜部分)は、Aの傾斜部分に対応した更に細かい水平
部分を有するが、簡単のため、直線で示してある。尚、
同様にFの傾斜部分も実際には、Aの傾斜部分に対応し
た更に細かい水平部分を持つが、簡単のため、直線で示
してある。However, the output from the video code buffer 5 to the data multiplexing circuit 7 is
This is performed during a period (horizontal portion of A) during which data is not output to the data multiplexing circuit 7 from. For this reason, actually, the period during which the D video code c1 is output (the slope portion of D) has a finer horizontal portion corresponding to the slope portion of A, but is shown by a straight line for simplicity. . still,
Similarly, the inclined portion of F actually has a finer horizontal portion corresponding to the inclined portion of A, but is shown by a straight line for simplicity.
【0057】以上の実施例では、可変レートで符号化さ
れるデータを動画像データとしたが、それに限定され
ず、音声データ、字幕データなど、その他のデータにも
適用が可能である。In the above embodiment, the data encoded at the variable rate is the moving image data. However, the present invention is not limited to this. The present invention is also applicable to other data such as audio data and subtitle data.
【0058】また、以上の実施例では、音声データは、
固定レートで符号化されるとしたが、可変レート(最大
のレートはRamax)で符号化してもよい。この場
合、ビデオコードバッファ5及びオーディオコードバッ
ファ6からデータ符号化装置7への情報転送は、すべて
の情報の符号化レートの最大値の総和(Rvmax+R
amax)以上の転送レートで行なうように制御され
る。In the above embodiment, the audio data is
Although the coding is performed at a fixed rate, the coding may be performed at a variable rate (the maximum rate is Ramax). In this case, the information transfer from the video code buffer 5 and the audio code buffer 6 to the data encoding device 7 is performed by summing the maximum value of the encoding rates of all information (Rvmax + R
(amax) or higher.
【0059】また、音声データを可変レートで符号化す
ると、オーディオコードバッファ6のデータ蓄積量は、
ランダムに変動するようになるので、カウンタ9はオー
ディオコード蓄積量o2を時間基準とせず、図示せぬリ
ファレンスクロックをカウントして、一定の時間間隔で
スイッチ8の切り替えを制御する。When audio data is encoded at a variable rate, the data storage amount of the audio code buffer 6 becomes
The counter 9 randomly varies, so that the counter 9 counts a reference clock (not shown) without using the audio code accumulation amount o2 as a time reference, and controls the switching of the switch 8 at fixed time intervals.
【0060】以上の実施例1では、データ符号化装置へ
の入力として、可変レート符号化データ(動画像デー
タ)及び固定レート符号化データ(音声データ)を、各
々1つずつとしたが、各々が複数であっても構わない。
そこで、次に、第2の実施例(実施例2)として、デー
タ符号化装置への入力データを一般化し、複数の可変レ
ート符号化データ及び複数の固定レート符号化データを
処理する場合について、図4を用いて説明する。In the first embodiment, one variable-rate coded data (moving picture data) and one fixed-rate coded data (speech data) are input to the data coding apparatus. May be plural.
Therefore, next, as a second embodiment (embodiment 2), a case where input data to a data encoding device is generalized and a plurality of variable rate encoded data and a plurality of fixed rate encoded data are processed will be described. This will be described with reference to FIG.
【0061】図4は、本発明におけるデータ符号化装置
の実施例2を示したものである。前述の実施例1を一般
化したものであり、装置の基本構成は実施例1の場合と
同様である。FIG. 4 shows a second embodiment of the data encoding apparatus according to the present invention. This is a generalization of the first embodiment, and the basic configuration of the device is the same as that of the first embodiment.
【0062】N個のVBR(VBR: Variable Bit Rate )
ソースデータ21(211乃至21N)は、N個のVBR
エンコーダ22(221乃至22N)に入力され、それぞ
れ可変レートで符号化される。符号化されたN個の可変
レート符号化データ(VBR: Variable Bit Rate stream)
は、それぞれ対応するN個のVBRコードバッファ23
(231乃至23N)に一時蓄積される。N VBRs (VBR: Variable Bit Rate)
The source data 21 (21 1 to 21 N ) includes N VBRs.
Is input to the encoder 22 (22 1 to 22 N), are respectively encoded at a variable rate. Encoded N variable rate encoded data (VBR: Variable Bit Rate stream)
Are N VBR code buffers 23 respectively corresponding to
It is temporarily stored in (23 1 to 23 N).
【0063】また、M個のCBR(CBR: Constant Bit R
ate )ソースデータ29(291乃至29M)は、M個の
CBRエンコーダ30(301乃至30M)に入力され、
それぞれ固定レートで符号化される。符号化されたM個
の固定レート符号化データ(CBR: Constant Bit Rate st
ream) は、それぞれ対応するM個のCBRコードバッフ
ァ31(311乃至31M)に一時蓄積される。データ多
重化回路32に対する入力データは、N個の可変レート
符号化データ及びM個の固定レート符号化データであ
る。Further, M CBRs (CBR: Constant Bit R)
ate) source data 29 (29 1 to 29 M) are inputted to the M CBR encoder 30 (30 1 to 30 M),
Each is encoded at a fixed rate. M fixed-rate encoded data (CBR: Constant Bit Rate st)
ream) are temporarily stored in the corresponding M CBR code buffers 31 (31 1 to 31 M ). The input data to the data multiplexing circuit 32 is N variable rate encoded data and M fixed rate encoded data.
【0064】図4におけるデータ多重化回路32では、
M個のCBRコードバッファ31及びN個のVBRコー
ドバッファ23から、各コードデータを適当な順番で入
力することによりデータの多重化を行なう。データ多重
化回路32に対する入力コードデータの切り替えは、ス
イッチ25によって行なわれる。In the data multiplexing circuit 32 shown in FIG.
Data is multiplexed by inputting respective code data from the M CBR code buffers 31 and the N VBR code buffers 23 in an appropriate order. Switching of input code data to the data multiplexing circuit 32 is performed by the switch 25.
【0065】カウンタ27は、M個のCBRコードバッ
ファ31の内の1つのデータ蓄積量o(m)をモニター
し、このデータ蓄積量o(m)に基づいて、スイッチ25
の入力を各VBRコードバッファ23及び各ビデオコー
ドバッファ31に一定の時間間隔で順次切り替える。バ
ッファコントーラ28は、スイッチ25の切り替えに同
期して、各CBRコードバッファ31の読み出しを制御
する。各々のCBRコードバッファ31からは、スイッ
チ25が接続されている一定の時間の間、一定量のCB
Rコードが順次転送される。この転送レートは、CBR
及びVBRエンコーダ22,30のすべての符号化レー
トの最大値の総和以上の値をとるものとする。The counter 27 monitors the data storage amount o (m) of one of the M CBR code buffers 31, and based on this data storage amount o (m), the switch 25
Is sequentially switched to each VBR code buffer 23 and each video code buffer 31 at a fixed time interval. The buffer controller 28 controls reading of each CBR code buffer 31 in synchronization with the switching of the switch 25. From each of the CBR code buffers 31, a certain amount of CB is output during a certain time during which the switch 25 is connected.
R codes are sequentially transferred. This transfer rate is CBR
And the VBR encoders 22 and 30 take a value equal to or greater than the sum of the maximum values of all the encoding rates.
【0066】CBRコードが1つも転送されない時間に
おいては、スイッチ25は、VBRコードバッファ23
側に切り替えられる。バッファコントローラ24は、ス
イッチ25が、VBRコードバッファ23側に切り替え
られている一定時間の間、各々のVBRコードバッファ
23に蓄積されているVBRコードが適当な転送レート
で転送されるように、各VBRコードバッファ23の読
み出しを制御する。この転送レートは、CBR及びVB
Rエンコーダ22,30のすべての符号化レートの総和
以上の値をとるものとする。At the time when no CBR code is transferred, the switch 25 sets the VBR code buffer 23
Can be switched to the side. The buffer controller 24 controls each of the VBR codes so that the VBR codes stored in the respective VBR code buffers 23 are transferred at an appropriate transfer rate during a certain time during which the switch 25 is switched to the VBR code buffer 23 side. The reading of the VBR code buffer 23 is controlled. This transfer rate is based on CBR and VB
It is assumed that the value is equal to or larger than the sum of all the encoding rates of the R encoders 22 and 30.
【0067】読み込む対象のVBRコードは、予め優先
順位などを決定しておき、スイッチ25がそのスケジュ
ーリングを行なう。しかしながら、読み込む対象となっ
ているVBRコードバッファ23にVBRコードが蓄積
されていない場合には、そのVBRコードの転送は一時
停止して、VBRコードが蓄積されるまで待機する(あ
るいは、他のVBRコードバッファに十分なデータが蓄
積されている場合には、そのコードデータを読み込むも
のとする)。これにより、そのVBRコードバッファに
おけるアンダーフローが抑制される。The priority of the VBR code to be read is determined in advance, and the switch 25 performs the scheduling. However, when the VBR code to be read is not stored in the VBR code buffer 23, the transfer of the VBR code is temporarily stopped, and the process waits until the VBR code is stored (or another VBR code). If sufficient data is stored in the code buffer, the code data is read.) As a result, underflow in the VBR code buffer is suppressed.
【0068】その後、バッファコントローラ24は、そ
のVBRコードバッファにVBRコードが蓄積される
と、VBRコードバッファの読みだしを再び開始し、ス
イッチ25へVBRコードを転送する。Thereafter, when the VBR code is accumulated in the VBR code buffer, the buffer controller 24 starts reading the VBR code buffer again, and transfers the VBR code to the switch 25.
【0069】データ多重化回路32では、付加情報挿入
部26において、カウンタ27のカウント値等に基づい
てタイムコードなどの情報を付加して、パケットを構成
し、ビットストリームを構築する。ビットストリーム
は、図1の場合と同様に、変調記録回路11に転送され
る。変調記録回路11に入力されたビットストリームは
変調された後に、ドライブに挿入されているディスク1
2上に記録される。In the data multiplexing circuit 32, the additional information insertion unit 26 adds information such as a time code based on the count value of the counter 27 and the like, forms a packet, and constructs a bit stream. The bit stream is transferred to the modulation recording circuit 11 as in the case of FIG. After the bit stream input to the modulation recording circuit 11 is modulated, the
2 recorded.
【0070】[0070]
【発明の効果】本発明は、以上説明したように構成され
ているので、以下に記載するような効果を有する。Since the present invention is configured as described above, it has the following effects.
【0071】可変レートの符号化コードが蓄積されるコ
ードバッファの蓄積量に応じて、多重化回路への符号化
コードの転送/待機を制御することにより、可変レート
符号化回路におけるコードデータの発生量が可変であっ
ても、コードバッファにおけるアンダーフローが抑制さ
れる。By controlling the transfer / standby of the coded code to the multiplexing circuit in accordance with the storage amount of the code buffer in which the coded code of the variable rate is stored, the generation of the code data in the variable rate coding circuit is performed. Even if the amount is variable, underflow in the code buffer is suppressed.
【0072】また、コードバッファから多重化回路への
転送レートをすべてのエンコーダの符号化レートの最大
値の総和以上としたことにより、コードバッファにおけ
るオーバーフローが抑制される。Further, by setting the transfer rate from the code buffer to the multiplexing circuit to be equal to or greater than the sum of the maximum values of the encoding rates of all the encoders, overflow in the code buffer is suppressed.
【0073】また、データ多重化回路に入力するデータ
を、一定の時間間隔で切り替えることにより、多重化ビ
ットストリームは、一定時間毎に所定の符号化コードを
含むことになる。このため、デコードする際に遅延時間
が少なく、多重化された各データ間の同期が容易にとれ
る。Further, by switching data input to the data multiplexing circuit at fixed time intervals, the multiplexed bit stream contains a predetermined coded code at fixed time intervals. For this reason, when decoding, the delay time is small, and synchronization between the multiplexed data can be easily achieved.
【0074】更に、固定レートで符号化されたコードを
時間基準としているため簡単な構成で、一定の時間間隔
の多重化が実現できる。Furthermore, since a code encoded at a fixed rate is used as a time reference, multiplexing at a fixed time interval can be realized with a simple configuration.
【0075】また、上述のごとく、疑似データを発生さ
せなくても、コードバッファのアンダーフローが抑制さ
れるため、記録媒体の記憶容量を効率良く使用した、記
録装置が実現できる。また、その記録装置によって、作
成された記録メディアは、疑似データを含まない分だ
け、より長時間のデータを含むことができる。As described above, since the underflow of the code buffer is suppressed without generating the pseudo data, it is possible to realize a recording apparatus using the storage capacity of the recording medium efficiently. In addition, the recording medium created by the recording device can include data for a longer time because the recording medium does not include the pseudo data.
【図1】本発明のデータ多重化装置の一実施例の構成例
を示すブロック図である。FIG. 1 is a block diagram illustrating a configuration example of a data multiplexing device according to an embodiment of the present invention.
【図2】図1の実施例におけるコードバッファの符号化
コード蓄積量を説明するための図である。FIG. 2 is a diagram for explaining an accumulated amount of encoded codes in a code buffer in the embodiment of FIG. 1;
【図3】図2のオーディオコードバッファの符号化コー
ド蓄積量を拡大して示す図である。FIG. 3 is an enlarged view showing an encoded code storage amount of an audio code buffer of FIG. 2;
【図4】本発明のデータ多重化装置の他の実施例の構成
例を示すブロック図である。FIG. 4 is a block diagram showing a configuration example of another embodiment of the data multiplexing device of the present invention.
【図5】MPEG(ISO 11172 1-AnnexA "Description
of the System Coding Layer"(informative)) に示され
たビットストリームのデータ構造を示す図である。Fig. 5 MPEG (ISO 11172 1-AnnexA "Description
FIG. 3 is a diagram illustrating a data structure of a bitstream indicated in “of the System Coding Layer” (informative)).
【図6】固定レート符号化データを入力としたデータ多
重化装置による出力ビットストリームを示す図である。FIG. 6 is a diagram illustrating an output bit stream from a data multiplexing apparatus to which fixed-rate encoded data is input.
1 カメラ 2 マイク 3 ビデオエンコーダ 4 オーディオエンコーダ 5 ビデオコードバッファ 6 オーディオコードバッファ 7 データ多重化回路 8 スイッチ 9 カウンタ 10 付加情報挿入部 11 変調記録回路 12 ディスク 13,14 バッファコントローラ Reference Signs List 1 camera 2 microphone 3 video encoder 4 audio encoder 5 video code buffer 6 audio code buffer 7 data multiplexing circuit 8 switch 9 counter 10 additional information insertion unit 11 modulation recording circuit 12 disk 13, 14 buffer controller
フロントページの続き (56)参考文献 特開 平5−2834(JP,A) 特開 平4−267682(JP,A) 特開 平5−161115(JP,A) 欧州特許出願公開515101(EP,A 2) (58)調査した分野(Int.Cl.7,DB名) H04N 5/91 - 5/956 H04N 7/24 G11B 20/10 Continuation of the front page (56) References JP-A-5-2834 (JP, A) JP-A-4-267682 (JP, A) JP-A-5-161115 (JP, A) European Patent Application Publication 515101 (EP, A2) (58) Field surveyed (Int. Cl. 7 , DB name) H04N 5/91-5/956 H04N 7/24 G11B 20/10
Claims (14)
ーダバッファがオーバーフローまたはアンダーフローを
起こさないように、前記符号化信号の多重化を行うデー
タ多重化装置において、 少なくとも1つの画像信号を可変レートで符号化する画
像符号化手段と、 少なくとも1つの音声信号を符号化する音声符号化手段
と、 前記画像符号化手段により符号化された少なくとも1つ
の符号化画像信号を一時的に蓄積する第1の蓄積手段
と、 前記音声符号化手段により符号化された少なくとも1つ
の符号化音声信号を一時的に蓄積する第2の蓄積手段
と、 前記第1及び第2の蓄積手段に蓄積された前記符号化画
像信号と符号化音声信号とを多重化する多重化手段と、 前記第1の蓄積手段に蓄積された前記符号化画像信号の
蓄積量に基づいて、前記第1の蓄積手段から前記多重化
手段への前記符号化画像信号の転送を制御する制御手段
とを備え、 前記制御手段による前記制御は、前記転送の制限若しく
は前記転送の転送レートを制御することにより行われ
る、 ことを特徴とするデータ多重化装置。1. A decoder for decoding an encoded signal.
Buffer overflow or underflow
A data multiplexing device for multiplexing the coded signal so as not to cause the multiplexed signal; an image coding means for coding at least one image signal at a variable rate; and a voice coding device for coding at least one voice signal. Means, first storage means for temporarily storing at least one encoded image signal encoded by the image encoding means, and at least one encoded audio signal encoded by the audio encoding means A multiplexing unit for multiplexing the coded image signal and the coded audio signal stored in the first and second storage units; and based on the accumulated amount of accumulated said encoded image signal in the storage means, and control means for controlling the transfer of the coded image signal to the multiplexing means from said first storage means, said system The control by means of the transfer restriction youth properly
Is performed by controlling the transfer rate of the transfer.
That, data multiplexing apparatus characterized by.
前記符号化画像信号がない場合、前記多重化手段への前
記符号化画像信号の転送を一時停止し、前記第1の蓄積
手段に前記符号化画像信号がある場合、前記多重化手段
への前記符号化画像信号の転送を所定の転送レートで行
うことを特徴とする請求項1に記載のデータ多重化装
置。2. The method according to claim 1, wherein the control unit suspends the transfer of the coded image signal to the multiplexing unit when the coded image signal does not exist in the first storage unit. 2. The data multiplexing device according to claim 1, wherein when the coded image signal is present, the coded image signal is transferred to the multiplexing unit at a predetermined transfer rate.
化手段の最大符号化レートと前記音声符号化手段の最大
符号化レートの総和以上であることを特徴とする請求項
2に記載のデータ多重化装置。3. The data according to claim 2, wherein the predetermined transfer rate is equal to or greater than a sum of a maximum encoding rate of the image encoding unit and a maximum encoding rate of the audio encoding unit. Multiplexer.
蓄積手段における前記符号化音声信号の蓄積量に基づい
て切り替える切り替え手段を さらに備えることを特徴と
する請求項1、2または3のいずれかに記載のデータ多
重化装置。 The inputs to wherein said multiplexing means, according to claim 1, characterized by further comprising a switching means Ru switched based on the storage amount of the second the encoded audio signal in the storage means or 4. The data multiplexing device according to any one of 3 .
記符号化画像信号および符号化音声信号を記録媒体に記
録する記録手段をさらに備えることを特徴とする請求項
1、2、3または4のいずれかに記載のデータ多重化装
置。5. The recording apparatus according to claim 1, further comprising recording means for recording the coded image signal and the coded audio signal multiplexed by the multiplexing means on a recording medium.
5. The data multiplexing apparatus according to any one of 1, 2, 3, and 4 .
ーダバッファがオーバーフローまたはアンダーフローを
起こさないように、前記符号化信号の多重化を行うデー
タ多重化方法において、 少なくとも1つの画像信号を可変レートで符号化し、 少なくとも1つの音声信号を符号化し、 符号化された少なくとも1つの符号化画像信号を一時的
に第1の蓄積手段に蓄積し、 符号化された少なくとも1つの符号化音声信号を一時的
に第2の蓄積手段に蓄積し、 蓄積された前記符号化画像信号および符号化音声信号を
多重化器で多重化し、前記 第1の蓄積手段に蓄積された前記符号化画像信号の
蓄積量に基づいて、前記第1の蓄積手段から前記多重化
器への前記符号化画像信号の転送を、前記転送の制限若
しくは前記転送の転送レートを制御することにより制御
する各ステップを有することを特徴とするデータ多重化
方法。6. A decoder for decoding an encoded signal.
Buffer overflow or underflow
A data multiplexing method for multiplexing the coded signals , wherein at least one image signal is coded at a variable rate, at least one audio signal is coded, and at least one coded coding is performed. Temporarily storing the image signal in the first storage means, temporarily storing the encoded at least one encoded audio signal in the second storage means, storing the encoded image signal and the encoded the audio signal multiplexed with multiplexer, the first based on the accumulated amount of accumulated said encoded image signal in the storage unit, the coded image signal from the first storage unit to the multiplexer The transfer of the transfer,
Or a step of controlling the transfer rate of the transfer by controlling the transfer rate .
1の蓄積手段に前記符号化画像信号がない場合、前記多
重化器への前記符号化画像信号の転送を一時停止し、前
記第1の蓄積手段に前記符号化画像信号がある場合、前
記多重化器への前記符号化画像信号の転送を所定の転送
レートで行うことを特徴とする請求項6に記載のデータ
多重化方法。7. The step of controlling the transfer includes, if the encoded image signal is not present in the first storage means, temporarily suspending the transfer of the encoded image signal to the multiplexer. 7. The data multiplexing method according to claim 6, wherein when the coded image signal is stored in the storage unit, the coded image signal is transferred to the multiplexer at a predetermined transfer rate.
像信号の最大符号化レートと前記符号化音声信号の最大
符号化レートの総和以上であることを特徴とする請求項
7に記載のデータ多重化方法。8. The data according to claim 7, wherein the predetermined transfer rate is equal to or greater than a sum of a maximum encoding rate of the encoded image signal and a maximum encoding rate of the encoded audio signal. Multiplexing method.
積手段における前記符号化音声信号の蓄積量に基づいて
切り替えることを特徴とする請求項6、7または8のい
ずれかに記載のデータ多重化方法。9. An input to said multiplexer based on an amount of said encoded speech signal stored in said second storage means.
9. Switching according to claim 6, 7 or 8.
The data multiplexing method described in any of the above.
記符号化画像信号および符号化音声信号を記録媒体に記
録するステップをさらに有することを特徴とする請求項
6、7、8または9のいずれかに記載のデータ多重化方
法。10. The apparatus according to claim 6 , further comprising a step of recording the coded image signal and the coded audio signal multiplexed by the multiplexer on a recording medium. data multiplexing method according to any.
コーダバッファがオーバーフローまたはアンダーフロー
を起こさないように多重化された前記符号化信号の記録
されたデータ記録媒体において、 少なくとも1つの画像信号を可変レートで符号化し、 少なくとも1つの音声信号を符号化し、 符号化された少なくとも1つの符号化画像信号を一時的
に第1の蓄積手段に蓄積し、 符号化された少なくとも1つの符号化音声信号を一時的
に第2の蓄積手段に蓄積し、 蓄積された前記符号化画像信号および符号化音声信号を
多重化器で多重化し、 前記第1の蓄積手段に蓄積された前記符号化画像信号の
蓄積量に基づいて、前記第1の蓄積手段から前記多重化
器への前記符号化画像信号の転送を、前記転送の制限若
しくは前記転送の転送レートを制御することにより制御
し、 前記多重化器で多重化された前記符号化画像信号および
符号化音声信号を記録媒体に記録することにより形成さ
れることを特徴とするデータ記録媒体。11. A decoder for decoding an encoded signal.
Coder buffer overflow or underflow
In multiplexed recorded data recording medium of the encoded signal so as not to cause, at least one image signal encoded at a variable rate, encoding at least one audio signal, at least one encoded Temporarily storing an encoded image signal in a first storage means, temporarily storing at least one encoded audio signal in a second storage means, and storing the encoded image signal and A multiplexed audio signal is multiplexed by a multiplexer, and the encoding from the first storage unit to the multiplexer is performed based on the amount of the encoded image signal stored in the first storage unit. Transfer of image signals is restricted by the transfer
Or by controlling a transfer rate of the transfer, and recording the encoded image signal and the encoded audio signal multiplexed by the multiplexer on a recording medium. Data recording medium.
コーダバッファと同容量の蓄積手段を有し、前記符号化A storage unit having the same capacity as the coder buffer;
信号の多重化を行うデータ多重化装置において、In a data multiplexing device for multiplexing signals, 少なくとも1つの画像信号を可変レートで符号化する画An image for encoding at least one image signal at a variable rate
像符号化手段と、Image encoding means; 少なくとも1つの音声信号を符号化する音声符号化手段Audio encoding means for encoding at least one audio signal
と、When, 前記画像符号化手段により符号化された少なくとも1つAt least one encoded by the image encoding means
の符号化画像信号を一Coded image signal 時的に蓄積する第1の蓄積手段First storage means for temporally storing
と、When, 前記音声符号化手段により符号化された少なくとも1つAt least one encoded by the audio encoding means
の符号化音声信号を一時的に蓄積する第2の蓄積手段Storage means for temporarily storing the encoded audio signal of
と、When, 前記第1及び第2の蓄積手段に蓄積された前記符号化画The encoded image stored in the first and second storage means;
像信号と符号化音声信号とを多重化する多重化手段と、Multiplexing means for multiplexing the image signal and the encoded audio signal, 前記第1の蓄積手段に蓄積された前記符号化画像信号のOf the encoded image signal stored in the first storage means.
蓄積量に基づいて、前記第1の蓄積手段から前記多重化Multiplexing from the first storage means based on the storage amount
手段への前記符号化画像信号の転送を制御する制御手段Control means for controlling the transfer of said encoded image signal to the means
とを備え、With 前記制御手段による前記制御は、前記転送の制限若しくThe control by the control means may limit the transfer.
は前記転送の転送レートを制御することにより行われIs performed by controlling the transfer rate of the transfer.
る、, ことを特徴とするデータ多重化装置。A data multiplexing device characterized by the above-mentioned.
コーダバッファと同容量の蓄積手段を有し、前記符号化A storage unit having the same capacity as the coder buffer;
信号の多重化を行うデータ多重化装置のデータ多重化方Data multiplexing method for data multiplexing equipment that multiplexes signals
法において、In the law, 少なくとも1つの画像信号を可変レートで符号化し、Encoding at least one image signal at a variable rate; 少なくとも1つの音声信号を符号化し、Encoding at least one audio signal; 符号化された少なくとも1つの符号化画像信号を一時的Temporarily transforming the encoded at least one encoded image signal
に第1の蓄積手段に蓄積し、At the first storage means, 符号化された少なくとも1つの符号化音声信号を一時的Temporarily transforming the encoded at least one encoded audio signal
に第2の蓄積手段に蓄積し、Is stored in the second storage means, 蓄積された前記符号化画像信号および符号化音声信号をThe stored encoded image signal and encoded audio signal are
多重化器で多重化する多重化し、Multiplexing with multiplexing, 前記第1の蓄積手段に蓄積された前記符号化画像信号のOf the encoded image signal stored in the first storage means.
蓄積量に基づいて、前記第1の蓄積手段から前記多重化Multiplexing from the first storage means based on the storage amount
器への前記符号化画像信号の転送を、前記転送の制限若The transfer of the encoded image signal to the
しくは前記転送の転送レートを制御することにより制御Or by controlling the transfer rate of the transfer
することを特徴とするデータ多重化方法。A data multiplexing method.
コーダバッファと同容量の蓄積手段を有する多重化装置Multiplexer having storage means of the same capacity as the coder buffer
により多重化された符号化信号の記録されたCoded signal multiplexed by データ記録Data recording
媒体において、In the medium, 少なくとも1つの画像信号を可変レートで符号化し、Encoding at least one image signal at a variable rate; 少なくとも1つの音声信号を符号化し、Encoding at least one audio signal; 符号化された少なくとも1つの符号化画像信号を一時的Temporarily transforming the encoded at least one encoded image signal
に第1の蓄積手段に蓄積し、At the first storage means, 符号化された少なくとも1つの符号化音声信号を一時的Temporarily transforming the encoded at least one encoded audio signal
に第2の蓄積手段に蓄積し、Is stored in the second storage means, 蓄積された前記符号化画像信号および符号化音声信号をThe stored encoded image signal and encoded audio signal are
多重化器で多重化し、Multiplex with a multiplexer, 前記第1の蓄積手段に蓄積された前記符号化画像信号のOf the encoded image signal stored in the first storage means.
蓄積量に基づいて、前記第1の蓄積手段から前記多重化Multiplexing from the first storage means based on the storage amount
器への前記符号化画像信号の転送を、前記転送の制限若The transfer of the encoded image signal to the
しくは前記転送の転送レートを制御することにより制御Or by controlling the transfer rate of the transfer
し、And 前記多重化器で多重化された前記符号化画像信号およびThe encoded image signal multiplexed by the multiplexer; and
符号化音声信号を記録媒体に記録することにより形成さFormed by recording the encoded audio signal on a recording medium.
れることを特徴とするデータ記録媒体。A data recording medium characterized by being recorded.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP6230494A JP3277971B2 (en) | 1993-03-31 | 1994-03-31 | Data multiplexing apparatus, data multiplexing method, and data recording medium |
Applications Claiming Priority (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7340093 | 1993-03-31 | ||
| JP5-73400 | 1993-03-31 | ||
| JP6230494A JP3277971B2 (en) | 1993-03-31 | 1994-03-31 | Data multiplexing apparatus, data multiplexing method, and data recording medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH06343158A JPH06343158A (en) | 1994-12-13 |
| JP3277971B2 true JP3277971B2 (en) | 2002-04-22 |
Family
ID=26403376
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP6230494A Expired - Fee Related JP3277971B2 (en) | 1993-03-31 | 1994-03-31 | Data multiplexing apparatus, data multiplexing method, and data recording medium |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3277971B2 (en) |
Families Citing this family (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6009108A (en) * | 1995-08-31 | 1999-12-28 | Victor Company Of Japan, Ltd. | Multiplexer system for converting variable-length burst data streams into averaged-transfer-rate fixed-length packets |
| WO1998043423A1 (en) * | 1997-03-25 | 1998-10-01 | Sony Corporation | Transport stream generating device and method, and program transmission device |
| US6100940A (en) * | 1998-01-21 | 2000-08-08 | Sarnoff Corporation | Apparatus and method for using side information to improve a coding system |
| JP4642734B2 (en) * | 2006-11-07 | 2011-03-02 | ソニー株式会社 | Data recording apparatus and method |
| US8953038B2 (en) | 2009-08-31 | 2015-02-10 | International Business Machines Corporation | Distributed video surveillance storage cost reduction using statistical multiplexing principle |
| JP4983977B2 (en) * | 2010-11-08 | 2012-07-25 | ソニー株式会社 | Data recording apparatus and method, and reproducing apparatus and method |
| JP5241865B2 (en) * | 2011-01-21 | 2013-07-17 | 日立コンシューマエレクトロニクス株式会社 | Video camera |
-
1994
- 1994-03-31 JP JP6230494A patent/JP3277971B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH06343158A (en) | 1994-12-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5511054A (en) | Apparatus and method for multiplexing encoded data signals and recording medium having multiplexed signals recorded thereon | |
| JP3364281B2 (en) | Time-division video and audio signal synchronization | |
| US6327421B1 (en) | Multiple speed fast forward/rewind compressed video delivery system | |
| JP3162110B2 (en) | Audio / video signal transmission method, and encoding device and decoding device used for such method | |
| US5887110A (en) | Video data playback system using effective scheme for producing coded video data for fast playback mode | |
| KR100272817B1 (en) | Image decoing device | |
| EP0634867B1 (en) | Compressed and coded data recording method | |
| JPH09121360A (en) | IMAGE ENCODING DEVICE, IMAGE DECODING DEVICE, IMAGE DECODING METHOD, AND IMAGE RECORDING MEDIUM | |
| KR100772343B1 (en) | Data reproduction transmission apparatus and data reproduction transmission method | |
| JP3277971B2 (en) | Data multiplexing apparatus, data multiplexing method, and data recording medium | |
| EP1119206A1 (en) | MPEG decoding device | |
| JP3651699B2 (en) | Decoding device and encoding / decoding device | |
| JPH1155626A (en) | Television signal encoding device and television signal recording device | |
| JP3839911B2 (en) | Image processing apparatus and image processing method | |
| JP3748234B2 (en) | MPEG data recording method | |
| JP3527515B2 (en) | Digital data transmission apparatus and transmission method thereof | |
| JPH0898160A (en) | Data multiplexing device | |
| JP3469866B2 (en) | Method for changing the bit rate of a data stream of an encoded video picture | |
| WO1998042139A1 (en) | Video decoder with reduced size display buffer | |
| JPWO1998059492A1 (en) | Digital data transmission device and transmission method | |
| JPH09312625A (en) | Data multiplexing apparatus and method | |
| CN101835055A (en) | Device for recording and reproducing digital video signal and method for recording and reproducing the same | |
| JPH10271482A (en) | Synchronous playback control method and system for encoded video | |
| JP4064604B2 (en) | Image processing method and apparatus | |
| JP3719530B2 (en) | Video signal transmission method and video signal transmission apparatus |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20020116 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080215 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090215 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100215 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100215 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110215 Year of fee payment: 9 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120215 Year of fee payment: 10 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130215 Year of fee payment: 11 |
|
| LAPS | Cancellation because of no payment of annual fees |