JP2003052018A - Mpeg data recorder - Google Patents

Mpeg data recorder

Info

Publication number
JP2003052018A
JP2003052018A JP2002189975A JP2002189975A JP2003052018A JP 2003052018 A JP2003052018 A JP 2003052018A JP 2002189975 A JP2002189975 A JP 2002189975A JP 2002189975 A JP2002189975 A JP 2002189975A JP 2003052018 A JP2003052018 A JP 2003052018A
Authority
JP
Japan
Prior art keywords
mpeg
image data
data
information
section
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2002189975A
Other languages
Japanese (ja)
Other versions
JP3748244B2 (en
Inventor
Takayuki Sugawara
隆幸 菅原
Toshio Kuroiwa
俊夫 黒岩
Wataru Iba
渉 猪羽
Kenjiro Ueda
健二朗 上田
Seiji Higure
誠司 日暮
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 JP2002189975A priority Critical patent/JP3748244B2/en
Publication of JP2003052018A publication Critical patent/JP2003052018A/en
Application granted granted Critical
Publication of JP3748244B2 publication Critical patent/JP3748244B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a recorder capable of realizing the seamless and high fidelity reproduction of first MPEG picture data and second MPEG picture data without generating inconsistency in overflow or underflow at the time of connecting a VBV buffer. SOLUTION: The data of a linking section A of first MPEG picture data are decoded and re-encoded. The re-encoding of the data is executed so that the transition of a VBV buffer occupancy value can start from a VBV buffer occupancy value at the position of (a), and end at a VBV buffer occupancy value at the position of (d). Then, the first MPEG picture data are reproduced until the position of (a) of the first MPEG picture data, and then the re-encoded MPEG picture data of the linking section A are reproduced, and connected to the position of (d) of the second MPEG picture data. The second MPEG picture data following the position of (d) are reproduced.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、MPEG符号化方式で
符号化された画像データである第1及び第2の2つのMP
EG画像データを、それぞれのMPEG画像データにおける指
定された繋ぎ指定位置で、前記第1のMPEG画像データか
ら前記第2のMPEG画像データへ繋げて再生させる際に、
シームレスな再生を実現させるためのMPEGデータ記録装
置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a first MP and a second MP which are image data encoded by the MPEG encoding system.
When the EG image data is reproduced by connecting it from the first MPEG image data to the second MPEG image data at a specified connection specified position in each MPEG image data,
The present invention relates to an MPEG data recording device for realizing seamless reproduction.

【0002】[0002]

【従来の技術】本特許において使用する従来技術である
MPEGについて簡単に説明する。
2. Description of the Related Art The prior art used in this patent.
The MPEG will be briefly described.

【0003】MPEGについてはISO-IEC11172-2、ITU-T H.
262 / ISO-IEC13818-2に詳細な説明がなされているの
で、ここでは概略のみ説明する。MPEGは1988年、ISO/IE
C JTC1/SC2(国際標準化機構/国際電気標準化会合同技
術委員会1/専門部会2、現在のSC29)に設立された動画
像符号化標準を検討する組織の名称(Moving Pictures
Expert Group)の略称である。MPEG1(MPEGフェーズ1)
は1.5Mbps程度の蓄積メディアを対象とした標準で、静
止画符号化を目的としたJPEGと、ISDNのテレビ会議やテ
レビ電話の低転送レート用の動画像圧縮を目的としたH.
261(CCITT SGXV、現在のITU-T SG15で標準化)の基本
的な技術を受け継ぎ、蓄積メディア用に新しい技術を導
入したものである。これらは1993年8月、ISO/IEC 11172
として成立している。
Regarding MPEG, ISO-IEC11172-2, ITU-T H.
Since detailed explanation is given in 262 / ISO-IEC13818-2, only an outline is explained here. MPEG was 1988, ISO / IE
C JTC1 / SC2 (International Standards Organization / International Electrotechnical Standards Meeting Technical Committee 1 / Special Subcommittee 2, current SC29) The name of the organization that examines video coding standards (Moving Pictures)
Expert Group) is an abbreviation. MPEG1 (MPEG Phase 1)
Is a standard for storage media of about 1.5 Mbps, and JPEG for still image coding and H. for moving image compression for low transfer rates of ISDN video conferences and video phones.
It inherits the basic technology of 261 (CCITT SGXV, standardized by the current ITU-T SG15) and introduced a new technology for storage media. These are ISO / IEC 11172, August 1993.
Has been established as.

【0004】MPEG1は幾つかの技術を組み合わせて作成
されている。図5にMPEG符号化方式による符号化を行う
従来のMPEG符号化器を示し、以下に簡単に説明する。入
力画像は動き補償予測器1で復号化した画像と、入力画
像の差分とを差分器2で取ることで時間冗長部分を削減
する。
MPEG1 is created by combining several technologies. FIG. 5 shows a conventional MPEG encoder that performs encoding according to the MPEG encoding method, which will be briefly described below. The input image is decoded by the motion compensation predictor 1 and the difference between the input images is obtained by the difference unit 2 to reduce the time redundant part.

【0005】予測の方向は、過去、未来、両方からの3
モード存在する。またこれらは16画素×16画素のMB(Mac
roblock)ごとに切り替えて使用できる。予測方向は入力
画像に与えられたPicture Typeによって決定される。過
去からの予測により符号化するモードと、予測をしない
でそのMBを独立で符号化するモードとの2モード存在す
るのが片方向画像間予測符号化画像(P-picture)であ
る。また未来からの予測により符号化するモード、過去
からの予測により符号化するモード、両方からの予測に
より符号化するモード、独立で符号化するモードの4モ
ード存在するのが双方向画像間予測符号化画像(B-pict
ure)である。そして全てのMBが独立で符号化するのが
画像内独立符号化画像(I-picture)である。
The direction of prediction is 3 from both past and future.
Mode exists. These are 16 pixel x 16 pixel MB (Mac
It can be switched for each roblock). The prediction direction is determined by the Picture Type given to the input image. A unidirectional inter-picture predictive coded image (P-picture) has two modes: a mode of coding by prediction from the past and a mode of independently coding the MB without prediction. In addition, bi-directional inter-picture prediction code is present in four modes: a mode for coding by prediction from the future, a mode for coding by prediction from the past, a mode for coding by prediction from both, and a mode for independent coding. Image (B-pict
ure). It is an intra-picture independent coded image (I-picture) that all MBs are coded independently.

【0006】動き補償は、動き領域をMBごとにパターン
マッチングを行ってハーフペル精度で動きベクトルを検
出し、動き分だけシフトしてから予測する。動きベクト
ルは水平方向と垂直方向が存在し、何処からの予測かを
示すMC(Motion Compensation)モードとともにMBの付加
情報として伝送される。
In motion compensation, pattern matching is performed for each MB in a motion area to detect a motion vector with half-pel accuracy, and the motion vector is shifted by the motion amount before prediction. The motion vector has a horizontal direction and a vertical direction, and is transmitted as additional information of the MB together with the MC (Motion Compensation) mode indicating where the prediction is from.

【0007】一般的には、Iピクチャから次のIピクチャ
の前のピクチャまでをGOP(Group OfPicture)といい、蓄
積メディアなどで使用される場合には、一般に約15ピ
クチャ程度が一つのGOP区間として使用される。(但
し、1GOP区間内に2つ以上のIピクチャを含んでもよ
い。要するに1GOP区間内に1つ以上のIピクチャを含
めばよい。)差分画像はDCT器3において直交変換が行
われる。DCT(Discrete Cosine Transform)とは、余弦
関数を積分核とした積分変換を有限空間への離散変換す
る直交変換である。MPEGではMBを4分割し8×8のDCTブ
ロックに対して、2次元DCTを行う。一般にビデオ信号
は低域成分が多く高域成分が少ないため、DCTを行うと
係数が低域に集中する。
Generally, a picture from an I picture to a picture before the next I picture is called a GOP (Group Of Picture). When used in a storage medium, generally about 15 pictures are included in one GOP section. Used as. (However, two or more I pictures may be included in one GOP section. In short, one or more I pictures may be included in one GOP section.) The DCT unit 3 orthogonally transforms the difference image. DCT (Discrete Cosine Transform) is an orthogonal transformation that performs discrete transformation of integral transformation with a cosine function as an integral kernel into a finite space. In MPEG, MB is divided into four and two-dimensional DCT is performed on an 8 × 8 DCT block. In general, a video signal has many low-frequency components and few high-frequency components, so when DCT is performed, the coefficients are concentrated in the low frequency range.

【0008】DCTされた画像データ(DCT係数)は量子化
器4で量子化が行われる。量子化は量子化マトリックス
という8×8の2次元周波数を視覚特性で重み付けした値
と、その全体をスカラー倍する量子化スケールという値
で乗算した値を量子化値として、DCT係数をその量子化
値で叙算する。MPEG復号化器(デコーダー)で逆量子化
するときは量子化値で乗算することにより、元のDCT係
数に近似している値を得ることになる。
The DCT image data (DCT coefficient) is quantized by the quantizer 4. Quantization is a quantization matrix, which is a value obtained by weighting 8 × 8 two-dimensional frequencies with visual characteristics and a value obtained by multiplying by a value called a quantization scale that multiplies the whole by a scalar, and the DCT coefficient is quantized. Calculate by value. When inversely quantized by the MPEG decoder (decoder), a value that approximates the original DCT coefficient will be obtained by multiplying by the quantized value.

【0009】量子化されたデータはVLC器5で可変長符
号化される。量子化された値のうち直流(DC)成分は
予測符号化のひとつであるDPCM(differential pul
se code modulation )を使用する。また交流(AC)成
分は 低域から高域にzigzagscanを行い、ゼロのラン長
および有効係数値を1つの事象とし、出現確率の高いも
のから符号長の短い符号を割り当てていくハフマン符号
化が行われる。
The quantized data is variable length coded by the VLC unit 5. The direct current (DC) component of the quantized value is one of the predictive coding DPCM (differential pulse).
se code modulation). In addition, Huffman encoding is performed by performing zigzag scan from low frequency to high frequency for the alternating current (AC) component, setting zero run length and effective coefficient value as one event, and allocating codes with shorter code length from those with high appearance probability. Done.

【0010】可変長符号化されたデータは一時バッファ
6に蓄えられ、所定の転送レートで符号化データとして
出力される。また、その出力されるデータのマクロブロ
ック毎の発生符号量は、符号量制御器21に送信され、
目標符号量に対する発生符号量との誤差符号量を量子化
器4にフィードバックして量子化スケールを調整するこ
とで符号量制御される。
The variable-length coded data is stored in the temporary buffer 6 and output as coded data at a predetermined transfer rate. Further, the generated code amount of each macro block of the output data is transmitted to the code amount controller 21,
The code amount is controlled by feeding back the error code amount between the target code amount and the generated code amount to the quantizer 4 and adjusting the quantization scale.

【0011】量子化された画像データは逆量子化器7に
て逆量子化、逆DCT器8にて逆DCTされ、加算器9を介し
て一時、画像メモリー10に蓄えられたのち、動き補償
予測器1において、差分画像を計算するためのリファレ
ンスの復号化画像として使用される。
The quantized image data is inversely quantized by the inverse quantizer 7, inverse DCT is performed by the inverse DCT device 8, temporarily stored in the image memory 10 via the adder 9, and then motion compensated. In the predictor 1, it is used as a reference decoded image for calculating a difference image.

【0012】このようにしてMPEG符号化された符号化デ
ータを復号化するMPEG復号化器(デコーダー)を図6に
示す。
FIG. 6 shows an MPEG decoder (decoder) that decodes the encoded data that has been MPEG encoded in this way.

【0013】入来する符号化データ(ストリーム)はバ
ッファ11でバッファリングされ、バッファ11からの
データはVLD器12に入力される。VLD器12では可変長
復号化を行い、直流(DC)成分および交流(AC)成
分を得る。交流(AC)成分データは低域から高域にzi
gzag scanの順で8x8のマトリックスに配置される。
このデータは逆量子化器13に入力され、量子化マトリ
ックスにて逆量子化される。逆量子化されたデータは逆
DCT器14に入力されて逆DCTされ、画像データ(復号化
データ)として出力される。また、復号化データは一
時、画像メモリー16に蓄えられたのち、動き補償予測
器17において、差分画像を計算するためのリファレン
スの復号化画像として使用される。
The incoming coded data (stream) is buffered in the buffer 11, and the data from the buffer 11 is input to the VLD unit 12. The VLD unit 12 performs variable length decoding to obtain a direct current (DC) component and an alternating current (AC) component. The alternating current (AC) component data is zi from low to high
It is arranged in an 8x8 matrix in the order of gzag scan.
This data is input to the dequantizer 13 and dequantized by the quantization matrix. Inverse quantized data is inverse
It is input to the DCT unit 14, inverse DCT is performed, and output as image data (decoded data). The decoded data is temporarily stored in the image memory 16 and then used in the motion compensation predictor 17 as a reference decoded image for calculating a difference image.

【0014】また、符号化ビットストリームはビデオの
場合1ピクチャーごとに可変長の符号量をもっている。
これはMPEGがDCT、量子化、ハフマン符号化という情報
変換を用いている理由と同時に、画質向上のためにピク
チャーごとに配分する符号量は適応的に変更する必要性
があり、動き補償予測を行っているので、あるときは入
力画像そのままを符号化し、あるときは予測画像の差分
である差分画像を符号化するなど符号化画像自体のエン
トロピーも大きく変化するためである。
In the case of video, the coded bit stream has a variable length code amount for each picture.
This is because MPEG uses information conversion such as DCT, quantization, and Huffman coding, and at the same time, it is necessary to adaptively change the code amount allocated for each picture in order to improve image quality. This is because the input image is coded as it is, and the difference image that is the difference between the predicted images is coded at some time, and the entropy of the coded image itself changes greatly.

【0015】この場合、多くはその画像のエントロピー
比率に配分しつつ、バッファの制限を守りながら符号量
制御される。バッファ管理器は発生した符号量と符号化
レートの関係を監視し、所定のバッファ内に収まるよう
に目標符号量を設定する。この値は可変長符号化器にフ
ィードバックされ、符号量制御器に入り、そこで量子化
器にセットする量子化値を大きくして発生符号量を抑え
たり、量子化値を小さくして発生符号量を小さくしたり
する。
In this case, most of the code amount control is performed while allocating to the entropy ratio of the image and keeping the buffer limit. The buffer manager monitors the relationship between the generated code amount and the coding rate and sets the target code amount so that the target code amount can be accommodated in a predetermined buffer. This value is fed back to the variable length encoder and enters the code amount controller, where the quantization value set in the quantizer is increased to suppress the generated code amount, or the quantization value is decreased to generate the generated code amount. Or make it smaller.

【0016】このような可変長データを固定の転送レー
ト(符号化レート)で符号化する場合、復号器の最大バ
ッファ量を上限値とすると、一定速度でデータが入力さ
れて、所定の値だけ溜まったとことから、所定の時刻
(NTSCのビデオ信号なら1/29.97 sec単位)で復号化を
一瞬で行うモデルを使用し、そのバッファがオーバーフ
ローもアンダーフローも発生しないように符号化するこ
とがMPEGで規定されている。この規定(VBVバッファ
規定)を守っていればVBVバッファ内でのレートは局部
的に変化しているものの、観測時間を長く取れば固定の
転送レートとなり、MPEGではこのことを固定レートであ
ると定義している。
When such variable length data is encoded at a fixed transfer rate (encoding rate), assuming that the maximum buffer amount of the decoder is the upper limit value, the data is input at a constant speed and only a predetermined value is input. Since it has accumulated, it is possible to use a model that performs decoding at a predetermined time (1 / 29.97 sec unit for NTSC video signal) in an instant, and to encode so that the buffer does not overflow or underflow. Stipulated in. If this regulation (VBV buffer regulation) is observed, the rate in the VBV buffer will change locally, but if the observation time is long, it will be a fixed transfer rate, and in MPEG this is a fixed rate. It is defined.

【0017】固定転送レートの場合、発生符号量の少な
い場合にはバッファ占有量は、上限値に張り付いた状態
になる。この場合、無効ビットを追加してオーバーフロ
ーしないように符号量を増やさなければならない。
In the case of a fixed transfer rate, when the generated code amount is small, the buffer occupancy amount is stuck to the upper limit value. In this case, it is necessary to increase the code amount by adding invalid bits to prevent overflow.

【0018】可変転送レートの場合にはこの固定転送レ
ートの定義を拡張して、バッファー占有率が上限値にな
った場合、復号器の読み出しを中止することにより、原
理的にオーバーフローが起きないように定義されてい
る。こうしたバッファ推移を図7に示す。仮に非常に発
生符号量が少なくても、復号器の読み出しが中止される
ので、固定転送レートの時のように無効ビットをいれる
必要はない。従って、アンダーフローだけが発生しない
ように符号化する。
In the case of a variable transfer rate, the definition of this fixed transfer rate is expanded, and when the buffer occupancy rate reaches the upper limit value, the reading of the decoder is stopped so that overflow does not occur in principle. Is defined in. Such a buffer transition is shown in FIG. Even if the generated code amount is very small, the reading of the decoder is stopped, so that it is not necessary to insert an invalid bit as in the case of the fixed transfer rate. Therefore, encoding is performed so that only underflow does not occur.

【0019】MPEGシステムはMPEGビデオ及びオーディオ
などで符号化されビットストリームを、1個のビットス
トリームに多重化し、同期を確保しながら再生する方式
を規定したものである。システムで規定されている内容
は大きく分けて次の5点である。 1)複数の符号化されたビットストリームの同期再生 2)複数の符号化されたビットストリームの単一ビット
ストリームへの多重化 3)再生開始時のバッファの初期化 4)連続的なバッファの管理 5)復号や再生などの時刻の確定 MPEGシステムで多重化を行うには情報をパケット化する
必要がある。パケットによる多重化とは、例えばビデ
オ、オーディオを多重化する場合、各々をパケットと呼
ばれる適当な長さのストリームに分割し、ヘッダなどの
付加情報を付けて、適宜、ビデオ、オーディオのパケッ
トを切り替えて時分割伝送する方式である。ヘッダには
ビデオ、オーディオなどを識別する情報や、同期の為の
時間情報が存在する。パケット長は伝送媒体やアプリケ
ーションに依存し、ATMのように53バイトから、光デ
ィスクのように4Kバイトと長いものまで存在してい
る。MPEGでは、パケット長は可変で任意に指定できるよ
うになっている。
The MPEG system defines a method of multiplexing a bit stream encoded by MPEG video and audio into one bit stream and reproducing the same while ensuring synchronization. The contents specified by the system are roughly divided into the following 5 points. 1) Synchronized reproduction of a plurality of encoded bitstreams 2) Multiplexing of a plurality of encoded bitstreams into a single bitstream 3) Initialization of a buffer at the start of reproduction 4) Continuous buffer management 5) Determining the time of decoding and reproduction It is necessary to packetize information in order to perform multiplexing in the MPEG system. Packet multiplexing refers to, for example, when video and audio are multiplexed, each is divided into streams of appropriate length called packets, and additional information such as headers is added to switch the video and audio packets as appropriate. This is a method of time division transmission. The header has information for identifying video, audio, etc., and time information for synchronization. The packet length depends on the transmission medium and application, and it ranges from 53 bytes like ATM to 4 Kbytes like optical disc. In MPEG, the packet length is variable and can be arbitrarily specified.

【0020】データはパック、パケット化され、1パッ
クは数パケットで構成されている。各Pパックの先頭部
分にはpack start codeやSCR(System Clock Referance)
、パケットの先頭部分にはstream idやタイムスタンプ
が記述されている。タイムスタンプにはオーディオ、ビ
デオなどの同期をとる時間情報が記述されており、DTS
(Decoding Time Stamp)、PTS(Presentation Time Stam
p) の2種類が存在する。PCR(Program Clock Referenc
e)は27MHzの時間精度で記述されており、decoderの
基準時計をロックする情報である。DTSはそのパケット
データ内の最初のアクセスユニット(ビデオなら1ピク
チャ、オーディオなら例えば1152サンプル)のデコ
ード開始時刻を、PTSは表示(再生)開始時刻を示して
いる。図11に示すように、オーディオ、ビデオ、その
他のデコーダーは、PCRでロックした共通の基準時計を
常に監視し、DTSやPTSの時間と一致したときに、デコー
ドや表示を行うしくみになっている。多重化されたデー
タが各デコーダでバッファリングされ、同期した表示を
行うための仮想的なデコーダをSTD(System Target Deco
der)とよび、このSTDがオーバーフローやアンダーフロ
ーを起こさないようにな多重化されていなければならな
い。
Data is packed and packetized, and one pack is composed of several packets. The pack start code and SCR (System Clock Referance) are added at the beginning of each P pack.
, The stream id and time stamp are described at the beginning of the packet. The time stamp describes time information for synchronizing audio, video, etc.
(Decoding Time Stamp), PTS (Presentation Time Stam
There are two types of p). PCR (Program Clock Referenc
e) is described with a time accuracy of 27 MHz and is information for locking the reference clock of the decoder. DTS indicates the decoding start time of the first access unit (1 picture for video, 1152 samples for audio, for example) in the packet data, and PTS indicates the display (playback) start time. As shown in FIG. 11, audio, video, and other decoders constantly monitor a common reference clock locked by PCR, and when they match the time of DTS or PTS, they are decoded and displayed. . The multiplexed data is buffered by each decoder, and a virtual decoder for performing synchronized display is used as the STD (System Target Deco
der), and this STD must be multiplexed so as not to cause overflow or underflow.

【0021】また、MPEGシステムには、大きく分けてTS
( Transport Stream)とPS ( Program Stream )が存在
する。これらはPES(Packetized Elementary Stream)、
およびその他の必要な情報を含むパケットから構成され
ている。PESは両ストリーム間の変換を可能とするため
の中間ストリームとして規定されていて、MPEGで符号化
されたビデオ、オーディオデータの他、プライベートス
トリームなどをパケット化したものである。
The MPEG system is roughly divided into TS.
(Transport Stream) and PS (Program Stream) exist. These are PES (Packetized Elementary Stream),
And other necessary information. PES is defined as an intermediate stream for enabling conversion between both streams, and is a packetized video stream, audio data encoded by MPEG, and a private stream.

【0022】PSは共通の基準時間を有するプログラムの
ビデオ、オーディオの多重化をすることが可能である。
パケットレイヤはPESとよばれ、この構造は図12に示
すように、後述するTSと共用して用いられ、これらの相
互互換性を可能とする。PSのSTDモデルでは、ストリー
ムはPES パケット内の stream id によってスイッチさ
れる。
The PS can multiplex video and audio of programs having a common reference time.
The packet layer is called PES, and this structure is used in common with TS described later, as shown in FIG. 12, to enable mutual compatibility between them. In the PS STD model, streams are switched by the stream id in PES packets.

【0023】TSもPSと同じように共通の基準時間を有す
るプログラムのビデオ、オーディオの多重化をすること
が可能であるが、TSはさらに異なる基準時間を有する通
信や放送などのマルチプログラムの多重化を可能として
いる。 TSはATMセル長や誤り訂正符号化する場合を考慮
し、188バイトの固定長パケットで構成されており、
エラーが存在する系でも使用できるように考慮されてい
る。TS パケット自体の構造はそれほど複雑ではないが
マルチプログラムのストリームであるため、その運用は
複雑である。PSと比べて特徴的なのはTS パケットが上
位構造であるにも関わらず、PES パケット より(通常
は)短く、PES パケット を分割してTSパケット に乗せ
て伝送する点である。TSのSTDモデルでは、ストリーム
はTS パケット内のPID(パケット ID)によってスイッ
チされる。
Like the PS, the TS can also multiplex the video and audio of a program having a common reference time, but the TS has a multiple reference of multiple programs such as communication and broadcasting having different reference times. Is possible. The TS is composed of fixed length packets of 188 bytes in consideration of ATM cell length and error correction coding.
It is considered so that it can be used even in a system where an error exists. The structure of the TS packet itself is not so complicated, but its operation is complicated because it is a multi-program stream. What is characteristic compared to PS is that TS packets are (usually) shorter than PES packets even though they have a higher-level structure, and PES packets are divided and placed on TS packets for transmission. In the TS STD model, streams are switched by the PID (packet ID) in the TS packet.

【0024】MPEGシステムのTSにはその多重化されてい
る番組の情報に関するパケットがどのPIDであるのかを
指示する仕組みがある。それを図13で説明する。まず
TSパケット群の中からPID=0のものを探す。それはPAT
(Program Association Table)と呼ばれる情報パケッ
トで、そのパケットの中にはPROGRAMナンバーPRに対応
する情報PIDがリンクされた形で記述されている。次に
目的のPRに対応するPIDのパケットを読みに行くとPMT
(Program Map Table)と呼ばれる情報パケットがあ
り、そのパケットの中にはそのPRに対応する番組のビデ
オパケットのPIDと、オーディオパケットのPIDの情報が
記述されている。
The TS of the MPEG system has a mechanism for instructing which PID the packet relating to the information of the multiplexed program is. This will be described with reference to FIG. First
Search the TS packet group for PID = 0. It's PAT
An information packet called a (Program Association Table), in which information PID corresponding to the PROGRAM number PR is described in a linked form. Next, when I go to read the packet of PID corresponding to the target PR, PMT
There is an information packet called (Program Map Table), and the PID of the video packet of the program corresponding to the PR and the PID of the audio packet are described in the packet.

【0025】PATとPMTのことをPSI(Program Specific
Information)と呼び、目的の番組のチャンネルにア
クセス(エントリー)することが可能な情報体系になっ
ている。
PAT and PMT are referred to as PSI (Program Specific
Information), and has an information system that allows access (entry) to the channel of the desired program.

【0026】また、従来、特開平11−74799の発
明によれば、記録媒体に記録されたMPEGデータなどの圧
縮データを編集する場合、MPEGデータの連続性を保つた
め、その編集点ではVBVバッファをつねに固定になるよ
う発生符号量を制御したり、GOPをクローズドGOPとして
符号化するなど、連続性を考慮した符号化をおこなう方
法が記載されている。
Further, according to the invention of Japanese Patent Laid-Open No. 11-74799, when editing compressed data such as MPEG data recorded on a recording medium, the VBV buffer is used at the editing point in order to maintain continuity of the MPEG data. There is described a method of performing coding in consideration of continuity, such as controlling the amount of generated code so that is always fixed, or coding a GOP as a closed GOP.

【0027】また、特開平11−187354の発明の
よれば、符号化データにはなんの制約も施さずに、その
データの部分区間のうち、編集素材として抜粋されたデ
ータを指示する情報とその再生順番に関する情報を記述
し、記録されたデータは変更せずに、単一記録媒体に映
像編集を実現できる方法が記載されている。
Further, according to the invention of Japanese Patent Laid-Open No. 11-187354, the information indicating the data extracted as the editing material in the partial section of the coded data and the information thereof are placed without any restriction on the coded data. A method is described in which information about a reproduction order is described and video editing can be realized on a single recording medium without changing recorded data.

【0028】[0028]

【発明が解決しようとする課題】しかしながら上記の従
来の方式では、MPEG画像データは単純につなぐとVBVバ
ッファの接続に矛盾が生じ、オーバーフローやアンダー
フローがおきてしまった。
However, in the above-mentioned conventional method, if MPEG image data is simply connected, the connection of the VBV buffer becomes inconsistent, resulting in overflow or underflow.

【0029】特開平11−74799の発明において
は、どこで編集されても良いように、各GOPに対してVBV
バッファが常に固定になるよう発生符号量を制御した
り、GOPをクローズドGOPとして符号化するなど、連続性
を考慮した符号化制約を施すことになり、符号化効率の
面では不利な要因になっていた。
In the invention of Japanese Patent Laid-Open No. 11-74799, VBV is set for each GOP so that it can be edited anywhere.
Coding constraints that consider continuity, such as controlling the amount of generated code so that the buffer is always fixed, or encoding GOPs as closed GOPs, are disadvantageous factors in terms of encoding efficiency. Was there.

【0030】また、特開平11−187354の発明に
おいては、あたかも編集したように再生表示はされる
が、その編集点での連続性は不完全で、MPEGデータのデ
コーダーバッファの初期化などの一時的な静止現象がお
こる可能性があった。
Further, in the invention of Japanese Patent Laid-Open No. 11-187354, the reproduction and display are performed as if they were edited, but the continuity at the editing points is incomplete, and temporary decoding such as initialization of the decoder buffer of MPEG data is performed. There was a possibility that a static phenomenon would occur.

【0031】本発明は、第1及び第2の2つのMPEG画像
データを(または、第1のMPEG画像データを要素符号化
データとして含むパケット多重化された第1のMPEG多重
化データと、第2のMPEG画像データを要素符号化データ
として含むパケット多重化された第2のMPEG多重化デー
タとを)、それぞれの指定された繋ぎ指定位置で、前記
第1のMPEG画像データから前記第2のMPEG画像データへ
繋げて再生させる際に(前記第1のMPEG多重化データか
ら前記第2のMPEG多重化データへ繋げて再生させる際
に)、VBVバッファの接続にオーバーフローやアンダー
フローの矛盾が生じることなく、シームレスで高品位な
再生を実現させることができるMPEGデータ記録装置を提
供することを目的としている。
According to the present invention, packet-multiplexed first MPEG multiplexed data including the first and second two MPEG image data (or the first MPEG image data as element encoded data), Packet-multiplexed second MPEG multiplexed data including two MPEG image data as element encoded data), at each designated connection designation position, from the first MPEG image data to the second MPEG image data. When playing back by connecting to MPEG image data (when playing back by connecting from the first MPEG multiplexed data to the second MPEG multiplexed data), an inconsistency of overflow or underflow occurs in the VBV buffer connection. It is an object of the present invention to provide an MPEG data recording device that can realize seamless and high-quality reproduction without the need.

【0032】[0032]

【課題を解決するための手段】そこで、上記課題を解決
するために本発明は、以下の記録装置を提供するもので
ある。 (1) MPEG符号化方式で符号化された画像データであ
る第1及び第2の2つのMPEG画像データを、それぞれの
MPEG画像データにおける指定された繋ぎ指定位置で、前
記第1のMPEG画像データから前記第2のMPEG画像データ
へ繋げて再生させるためのデータとして、前記MPEG符号
化方式で符号化された第2の繋ぎ区間再符号化データを
生成して記録させる記録手段を設けたMPEGデータ記録装
置であって、前記記録手段は、前記第2のMPEG画像デー
タにおける前記繋ぎ指定位置を開始位置とし、前記第2
のMPEG画像データにおける前記繋ぎ指定位置から第2の
所定時間分後の位置を終了位置とする区間を第2の繋ぎ
区間として、前記第2の繋ぎ区間の前記第2のMPEG画像
データを復号して得た画像データである第2の繋ぎ区間
復号画像データを、前記MPEG符号化方式で再符号化して
前記第2の繋ぎ区間再符号化データを生成する再符号化
手段を備え、前記第2の繋ぎ区間再符号化データを記録
媒体に記録させるものであり、前記再符号化手段は、前
記再符号化時において、VBVバッファ占有値に関する情
報値の推移が、前記第1のMPEG画像データでの前記繋ぎ
指定位置に対応する位置における前記第1のMPEG画像デ
ータの符号化時のVBVバッファ占有値に関する情報値か
ら開始されて、前記第2の繋ぎ区間の終了位置に対応す
る位置における前記第2のMPEG画像データの符号化時の
VBVバッファ占有値に関する情報値までで終了するよう
に符号量制御を行い再符号化を行うものである、ことを
特徴とするMPEGデータ記録装置。 (2) 上記(1)に記載のMPEGデータ記録装置におい
て、前記記録手段は、前記第2の繋ぎ区間再符号化デー
タを要素符号化データとして含んで、MPEG方式によりパ
ケット多重化して生成した第2の繋ぎ区間MPEG多重化デ
ータを記録媒体に記録させるものであることを特徴とす
るMPEGデータ記録装置。
In order to solve the above problems, the present invention provides the following recording device. (1) The first and second MPEG image data, which are image data encoded by the MPEG encoding method, are
The second MPEG-encoded second data encoded as the data for connecting and reproducing the first MPEG image data to the second MPEG image data at the specified connection designated position in the MPEG image data. An MPEG data recording apparatus comprising recording means for generating and recording connection section re-encoded data, wherein the recording means sets the connection specified position in the second MPEG image data as a start position and the second
The second MPEG image data of the second connection section is decoded with the section having a position after the second predetermined time from the specified connection position of the MPEG image data as the end position as the second connection section. The second connection section decoded image data, which is the image data obtained by the above, is re-encoded by the MPEG encoding method to generate the second connection section re-encoded data, and the second re-encoding means is provided. The re-encoding means records the transition section re-encoded data in the recording medium, wherein the transition of the information value regarding the VBV buffer occupancy value is the first MPEG image data when the re-encoding is performed. Starting from an information value relating to the VBV buffer occupancy value at the time of encoding the first MPEG image data at a position corresponding to the specified connection position of the first MPEG image data, the first position at the position corresponding to the end position of the second connection section. 2 MPEG At the time of encoding of image data
An MPEG data recording device characterized by performing re-encoding by controlling a code amount so as to end up to an information value regarding a VBV buffer occupation value. (2) In the MPEG data recording device described in (1) above, the recording means includes the second connection section re-encoded data as element encoded data, and performs packet multiplexing according to the MPEG method to generate the packet. An MPEG data recording device, characterized in that MPEG multiplexed data of two connecting sections is recorded on a recording medium.

【0033】[0033]

【発明の実施の形態】まず、本発明で実現可能とする繋
ぎ再生の概念を説明する。図8のように第MPEG符号化方
式で符号化された画像データである1のMPEG画像デ
ータと同じく第2のMPEG画像データが存在する場合
の、第1のMPEG画像データの途中(指定された繋ぎ
指定位置)から第2のMPEG画像データを繋げて再生
することを考える。接続点(第1のMPEG画像データにお
ける繋ぎ指定位置)がbの位置と仮定すると、第1のM
PEG画像データのbの位置まで再生を行い、そのあと
第2のMPEG画像データへ接続してデータを再生する
ことになるが、MPEG画像データは単純につなぐとVBVバ
ッファの接続に矛盾が生じ、オーバーフローやアンダー
フローがおきてしまうという問題が生じる。
BEST MODE FOR CARRYING OUT THE INVENTION First, the concept of connection reproduction that can be realized by the present invention will be described. As shown in FIG. 8, when the first MPEG image data, which is the image data encoded by the MPEG encoding method, and the second MPEG image data are the same, the middle of the first MPEG image data (specified Consider that the second MPEG image data is connected and reproduced from the specified connection position). Assuming that the connection point (the connection designated position in the first MPEG image data) is the position b, the first M
The PEG image data is reproduced up to the position b, and then the second MPEG image data is connected to reproduce the data. However, if the MPEG image data is simply connected, the connection of the VBV buffer becomes inconsistent, There is a problem that overflow or underflow will occur.

【0034】そこで、まず、第1のMPEG画像データ
と第2のMPEG画像データとのMPEG符号化方式での符
号化時における、VBVバッファの情報を所定区間単位
(第1のMPEG画像データでは第1の所定区間単位、第2
のMPEG画像データでは第2の所定区間単位)でサイド情
報として生成して記録媒体に記述しておくようにする。
Therefore, first, when the first MPEG image data and the second MPEG image data are encoded by the MPEG encoding method, the information of the VBV buffer is given in a predetermined section unit (in the first MPEG image data, 1 predetermined section unit, 2nd
In the case of the MPEG image data, the second predetermined section unit) is generated as side information and described in the recording medium.

【0035】なお、このサイド情報にVBVバッファの
情報を記述しないで繋ぎ再生を実現することも可能であ
る。この場合には2つの方法が考えられるが、それにつ
いては後述する。
It is also possible to realize connection reproduction without describing the information of the VBV buffer in the side information. In this case, two methods are possible, which will be described later.

【0036】第1のMPEG画像データに関するVBVバッ
ファの情報は、第1のMPEG画像データの第1の所定区間
毎における、その区間の最後のピクチャーのMPEG符号化
開始時点または終了時点でのVBVバッファ占有値に関す
る情報値を示す第1のVBVバッファ占有値関連情報と、V
BVバッファ占有値に関する情報値が第1のMPEG画像デー
タのどの位置におけるVBVバッファ占有値に関する情報
値であるかを示す第1のアドレス情報とである。
The information of the VBV buffer regarding the first MPEG image data is the VBV buffer at the beginning or end of the MPEG encoding of the last picture of the first MPEG image data in each of the first predetermined intervals. The first VBV buffer occupation value related information indicating the information value regarding the occupation value, and V
The first address information indicates at which position in the first MPEG image data the information value regarding the BV buffer occupation value is the information value regarding the VBV buffer occupation value.

【0037】第2のMPEG画像データに関するVBVバッ
ファの情報は、第2のMPEG画像データの第2の所定区間
毎における、その区間の最後のピクチャーのMPEG符号化
開始時点または終了時点でのVBVバッファ占有値に関す
る情報値を示す第2のVBVバッファ占有値関連情報と、V
BVバッファ占有値に関する情報値が前記第2のMPEG画像
データのどの位置におけるVBVバッファ占有値に関する
情報値であるかを示す第2のアドレス情報とである。
The information of the VBV buffer regarding the second MPEG image data is the VBV buffer information at the start point or the end point of the MPEG encoding of the last picture of the second MPEG image data in each second predetermined section. Second VBV buffer occupation value related information indicating the information value regarding the occupation value, and V
And second address information indicating at which position in the second MPEG image data the information value regarding the BV buffer occupation value is the information value regarding the VBV buffer occupation value.

【0038】VBVバッファ占有値に関する情報値とは、
例えばMPEGで規定されているVBVバッファ占有値またはV
BV delay値である。
The information value regarding the VBV buffer occupation value is
For example, the VBV buffer occupancy value or V specified in MPEG
BV delay value.

【0039】前記第1及び第2の所定区間の1単位は後
述するように例えば3フレーム程度のものでも、1GO
P程度でもよい。仮にその所定区間単位を、第1のMPEG
画像データにおいては図8のa-b間、第2のMPEG画像デ
ータにおいては図8のc-d間とする。
Although one unit of the first and second predetermined sections is, for example, about 3 frames as will be described later, 1 GO
It may be about P. If the predetermined section unit is the first MPEG
In the image data, it is set between ab in FIG. 8 and in the second MPEG image data, it is set between cd in FIG.

【0040】前記VBVバッファの情報リストには、a
の位置(前記第1のMPEG画像データにおける前記繋ぎ指
定位置から第1の所定時間分前の前記第1の所定区間の
境界:即ち後述する区間Aの開始位置)でのVBVバッ
ファの情報と、bの位置(第1のMPEG画像データにおけ
る前記繋ぎ指定位置:即ち後述する区間Aの終了位置)
でのVBVバッファの情報が記述されている。また、第
2のMPEG画像データのcの位置(第2のMPEG画像デ
ータにおける前記繋ぎ指定位置から第2の所定時間分前
の前記第2の所定区間の境界位置)でのVBVバッファ
の情報と、接続点dの位置(第2のMPEG画像データにお
ける前記繋ぎ指定位置:この例の場合は第2の所定区間
の境界位置)でのVBVバッファの情報も存在する。
In the information list of the VBV buffer, a
Information of the VBV buffer at the position (the boundary of the first predetermined section for the first predetermined time before the connection designated position in the first MPEG image data: that is, the start position of the section A described later), Position b (the specified connection position in the first MPEG image data: that is, the end position of section A described later)
The information of the VBV buffer is described. Further, the information of the VBV buffer at the position c of the second MPEG image data (the boundary position of the second predetermined section that is the second predetermined time before the connection designated position in the second MPEG image data). There is also information on the VBV buffer at the position of the connection point d (the specified connection position in the second MPEG image data: the boundary position of the second predetermined section in this example).

【0041】そこで、第1のMPEG画像データのa-b
区間(第1の繋ぎ区間:ここでは区間Aとする)のデー
タを、一旦、復号化して復号画像データを得、その復号
画像データ(第1の繋ぎ区間復号画像データ)をMPEG符
号化方式で再符号化を行う。それによって作成された再
符号化データを区間Aの再符号化MPEG画像データ
(第1の繋ぎ区間再符号化データ)と呼ぶこととする。
この再符号化は、VBVバッファ占有値に関する情報値
の推移が、aの位置での前記検出した第1のVBVバッフ
ァ占有値関連情報に基づき得られたVBVバッファ占有値
に関する情報値から開始されて、dの位置での前記検出
した第2のVBVバッファ占有値関連情報に基づき得られ
たVBVバッファ占有値に関する情報値までで終了するよ
うにレートコントロールを行ってMPEG符号化方式で再符
号化を行う。
Therefore, the ab of the first MPEG image data
Data of a section (first connection section: here, section A) is once decoded to obtain decoded image data, and the decoded image data (first connection section decoded image data) is encoded by the MPEG encoding method. Re-encode. The re-encoded data created thereby will be referred to as re-encoded MPEG image data of the section A (first connection section re-encoded data).
In this re-encoding, the transition of the information value regarding the VBV buffer occupation value is started from the information value regarding the VBV buffer occupation value obtained based on the detected first VBV buffer occupation value related information at the position a. , D at the position of d, the rate control is performed so as to end up to the information value regarding the VBV buffer occupation value obtained based on the detected second VBV buffer occupation value related information, and re-encoding is performed by the MPEG encoding method. To do.

【0042】従来の繋ぎ再生動作である、第1のMPE
G画像データのbの位置まで再生を行い、そのあと第2
のMPEG画像データのdの位置へ接続してデータを再
生する、という動作を、区間Aの再符号化MPEG画像
データを用いて次のような動作とする。即ち、第1のM
PEG画像データのaの位置(区間Aの開始位置)まで
は第1のMPEG画像データの再生を行い、そのあと前
記区間Aの再符号化MPEG画像データをその区間の開
始位置から終了位置まで再生し、その後、第2のMPE
G画像データのdの位置(繋ぎ指定位置)へ接続してd
以降の第2のMPEG画像データのデータを再生する、
という動作にする。再生装置側にこの動作を行う繋ぎ再
生手段を設けて実現させる。
The first MPE, which is the conventional connection reproduction operation
Playback is performed up to position b of G image data, and then the second
The operation of connecting to the position d of the MPEG image data and reproducing the data is the following operation using the re-encoded MPEG image data of the section A. That is, the first M
The first MPEG image data is reproduced up to the position a of the PEG image data (the start position of the section A), and then the re-encoded MPEG image data of the section A is reproduced from the start position to the end position of the section. Then the second MPE
Connect to the d position (connection specified position) of the G image data and d
The following second MPEG image data is reproduced,
I will do the operation. This is realized by providing a connection reproducing means for performing this operation on the reproducing device side.

【0043】この繋ぎ再生動作とすることで、元の第1
及び第2のMPEG画像データと同じコンテンツ内容で
且つ、VBVバッファの破綻を起こさないシームレスな
接続再生を実現することが可能となる。なお、図8に示
した、第1のMPEG画像データ側のみを元に繋ぎ区間
の再符号化MPEG画像データを得る場合には、接続点
dの位置(第2のMPEG画像データにおける繋ぎ指定位
置)のVBVバッファの情報が必要となる。前述したよ
うにVBVバッファの情報は、MPEG画像データの所定区
間毎における、その区間の最後のピクチャーのMPEG符号
化開始時点または終了時点での情報であるので、所定区
間の境界の位置での情報となる。従って、接続点の位置
(繋ぎ指定位置)は、少なくとも第2のMPEG画像データ
においては第2の所定区間の境界として指定される必要
がある。(即ち、第2のMPEG画像データにおける接続点
dの位置は第2の所定区間の境界として指定される必要
がある。)また、第1のMPEG画像データ側のみを元
に繋ぎ区間の再符号化MPEG画像データを得る場合に
は、前述したように図8に示したaの位置(繋ぎ区間A
の開始位置)のVBVバッファの情報も必要となる。し
かし、aの位置は、第1のMPEG画像データにおける接続
点(繋ぎ指定位置)bから第1の所定時間分前の第1の
所定区間の境界として指定されるので、接続点bの位置
に関わらずaの位置ではVBVバッファの情報がえられ
る。よって、第1のMPEG画像データにおける接続点bの
位置は、必ずしも第1の所定区間の境界として指定され
る必要はない。
By performing this connection reproduction operation, the original first
Also, it is possible to realize seamless connection reproduction with the same content as the second MPEG image data and without the VBV buffer failure. It should be noted that when re-encoded MPEG image data of the connection section is obtained based on only the first MPEG image data side shown in FIG. 8, the position of the connection point d (the connection specified position in the second MPEG image data is specified). ) VBV buffer information is required. As described above, the information of the VBV buffer is the information at the start or end of the MPEG coding of the last picture of the predetermined section of the MPEG image data, and therefore the information at the boundary position of the predetermined section. Becomes Therefore, the position of the connection point (connection specified position) needs to be specified as the boundary of the second predetermined section at least in the second MPEG image data. (That is, the position of the connection point d in the second MPEG image data needs to be designated as the boundary of the second predetermined section.) Also, the recoding of the connecting section based only on the first MPEG image data side. In order to obtain the encoded MPEG image data, as described above, the position of a shown in FIG.
Information of the VBV buffer at the start position) is also required. However, since the position of a is specified as the boundary of the first predetermined section before the first predetermined time from the connection point (connection specified position) b in the first MPEG image data, it is set at the position of the connection point b. Regardless, the information of the VBV buffer can be obtained at the position a. Therefore, the position of the connection point b in the first MPEG image data does not necessarily have to be designated as the boundary of the first predetermined section.

【0044】次に、その応用例を図9(2),(3)に
示す。同図(1)は図8に示した例と同様のものであ
る。図8に示した例では、第1のMPEG画像データ側
のみを元に繋ぎ区間の再符号化MPEG画像データを得
て繋ぎ再生を実現したが、第2のMPEG画像データ側
のみを元に繋ぎ区間の再符号化MPEG画像データを得
て繋ぎ再生を実現することも可能である。その例が図9
(2)に示したものであり、第2のMPEG画像データにお
ける繋ぎ区間Bの再符号化MPEG画像データを用いる
ものである。
Next, examples of its application are shown in FIGS. 9 (2) and 9 (3). The figure (1) is the same as the example shown in FIG. In the example shown in FIG. 8, the re-encoded MPEG image data in the splicing section is obtained based on only the first MPEG image data side to realize the splicing reproduction, but the splicing is performed only on the second MPEG image data side. It is also possible to obtain re-encoded MPEG image data of a section and realize connection reproduction. Figure 9 shows an example.
It is shown in (2), and re-encoded MPEG image data of the connecting section B in the second MPEG image data is used.

【0045】図9(2)において、第1のMPEG画像デー
タにおける接続点(繋ぎ指定位置)をiの位置とし、第
2のMPEG画像データにおける接続点(繋ぎ指定位置)を
kの位置とする。前述したVBVバッファの情報を有す
る単位である第1及び第2の所定区間の1単位を、第1
のMPEG画像データにおいてはi-j間、第2のMPEG画像デ
ータにおいてはk-l間とする。lの位置は第2のMPEG
画像データにおける接続点(繋ぎ指定位置)kから第2
の所定時間分後の第2の所定区間の境界位置となる。接
続点kを開始位置としlの位置を終了位置とする区間を
繋ぎ区間B(第2の繋ぎ区間)とする。
In FIG. 9B, the connection point (connection designation position) in the first MPEG image data is the position i, and the connection point (connection designation position) in the second MPEG image data is the position k. . One unit of the first and second predetermined sections, which is a unit having the information of the VBV buffer described above, is
In the second MPEG image data, it is between ij and in the second MPEG image data. The position of l is the second MPEG
Second from the connection point (connection specified position) k in the image data
Is the boundary position of the second predetermined section after a predetermined time. A section having the connection point k as the start position and the position of l as the end position is referred to as a connection section B (second connection section).

【0046】第2のMPEG画像データのを繋ぎ区間B
(k-l区間)のデータを、一旦、復号化して、復号画
像データを得、その復号画像データ(第2の繋ぎ区間復
号画像データ)をMPEG符号化方式で再符号化を行う。そ
れによって作成された再符号化データを繋ぎ区間Bの再
符号化MPEG画像データ(第2の繋ぎ区間再符号化デ
ータ)と呼ぶこととする。この再符号化は、VBVバッ
ファ占有値に関する情報値の推移が、iの位置での第1
のVBVバッファ占有値関連情報に基づき得られたVBVバッ
ファ占有値に関する情報値から開始されて、lの位置で
の第2のVBVバッファ占有値関連情報に基づき得られたV
BVバッファ占有値に関する情報値までで終了するように
レートコントロールを行ってMPEG符号化方式で再符号化
を行う。
Connecting section B of the second MPEG image data
The data of (k-1 section) is once decoded to obtain decoded image data, and the decoded image data (second connection section decoded image data) is re-encoded by the MPEG encoding method. The re-encoded data created thereby will be referred to as re-encoded MPEG image data of the connecting section B (second connecting section re-encoded data). In this re-encoding, the transition of the information value regarding the VBV buffer occupation value is the first at the position of i.
Starting from the information value relating to the VBV buffer occupancy value obtained based on the VBV buffer occupancy value related information of V, the V obtained based on the second VBV buffer occupancy value related information at position l
The rate control is performed so that the processing is completed up to the information value related to the BV buffer occupation value, and re-encoding is performed by the MPEG encoding method.

【0047】そして、繋ぎ区間Bの再符号化MPEG画
像データを用いて、第1のMPEG画像データから第2
のMPEG画像データへの繋ぎ再生を行う。すなわち、
第1のMPEG画像データの接続点i(繋ぎ指定位置)
までは第1のMPEG画像データの再生を行い、そのあ
と前記区間Bの再符号化MPEG画像データをその区間
の開始位置から終了位置まで再生し、その後、第2のM
PEG画像データのlの位置(繋ぎ区間Bの終了位置)
へ接続してlの位置以降の第2のMPEG画像データの
データを再生する、という動作にする。再生装置側にこ
の動作を行う繋ぎ再生手段を設けて実現させる。
Then, by using the re-encoded MPEG image data of the connection section B, the first MPEG image data to the second MPEG image data
The connection reproduction to the MPEG image data is performed. That is,
Connection point i of the first MPEG image data (connection specified position)
Up to the end position of the re-encoded MPEG image data of the section B, and then the second M image data is reproduced.
Position of l in PEG image data (end position of connecting section B)
The second MPEG image data after the position of l is reproduced and the operation is performed. This is realized by providing a connection reproducing means for performing this operation on the reproducing device side.

【0048】この繋ぎ再生動作とすることで、元の第1
及び第2のMPEG画像データと同じコンテンツ内容で
且つ、VBVバッファの破綻を起こさないシームレスな
接続再生を実現することが可能となる。
By performing this connection reproduction operation, the original first
Also, it is possible to realize seamless connection reproduction with the same content as the second MPEG image data and without the VBV buffer failure.

【0049】なお、図9(2)に示した、第2のMPE
G画像データ側のみを元に繋ぎ区間の再符号化MPEG
画像データを得る場合には、接続点iの位置(第1のMP
EG画像データにおける繋ぎ指定位置)のVBVバッファ
の情報が必要となる。前述したようにVBVバッファの
情報は、MPEG画像データの所定区間毎における、その区
間の最後のピクチャーのMPEG符号化開始時点または終了
時点での情報であるので、所定区間の境界の位置での情
報となる。従って、接続点の位置(繋ぎ指定位置)は、
少なくとも第1のMPEG画像データにおいては第1の所定
区間の境界として指定される必要がある。(即ち、第1
のMPEG画像データにおける接続点iの位置は第1の所定
区間の境界として指定される必要がある。)また、第2
のMPEG画像データ側のみを元に繋ぎ区間の再符号化
MPEG画像データを得る場合には、前述のように図9
(2)に示した、lの位置(繋ぎ区間Bの終了位置)の
VBVバッファの情報も必要となる。しかし、lの位置
は、第2のMPEG画像データにおける接続点(繋ぎ指定位
置)kから第2の所定時間分後の第2の所定区間の境界
として指定されるので、接続点kの位置に関わらずlの
位置ではVBVバッファの情報が得られる。よって、第
2のMPEG画像データにおける接続点kの位置は、必ずし
も第2の所定区間の境界として指定される必要はない。
The second MPE shown in FIG. 9B is used.
Re-encoding MPEG of connecting section based only on G image data side
When obtaining image data, the position of the connection point i (first MP
Information on the VBV buffer at the specified connection position in the EG image data is required. As described above, the information of the VBV buffer is the information at the start or end of the MPEG coding of the last picture of the predetermined section of the MPEG image data, and therefore the information at the boundary position of the predetermined section. Becomes Therefore, the position of the connection point (connection specified position) is
At least in the first MPEG image data, it is necessary to specify it as the boundary of the first predetermined section. (That is, the first
The position of the connection point i in the MPEG image data is required to be designated as the boundary of the first predetermined section. ) See also
In order to obtain re-encoded MPEG image data of the connecting section based on only the MPEG image data side of FIG.
Information on the VBV buffer at the position of l (the end position of the connection section B) shown in (2) is also required. However, since the position of l is specified as the boundary of the second predetermined section after the second predetermined time from the connection point (connection specified position) k in the second MPEG image data, it is set at the position of the connection point k. Regardless, the information of the VBV buffer is obtained at the position of l. Therefore, the position of the connection point k in the second MPEG image data does not necessarily have to be designated as the boundary of the second predetermined section.

【0050】次に、図9(3)に示す応用例について説
明する。この例では、接続点前後の第1及び第2のMP
EG画像データを元に繋ぎ区間の再符号化MPEG画像
データを得て繋ぎ再生を実現すさせるものである。
Next, an application example shown in FIG. 9C will be described. In this example, the first and second MPs before and after the connection point
The re-encoding MPEG image data of the connection section is obtained based on the EG image data to realize the connection reproduction.

【0051】図9(3)において、第1のMPEG画像デー
タにおける接続点(繋ぎ指定位置)をnの位置とし、第
2のMPEG画像データにおける接続点(繋ぎ指定位置)を
pの位置とする。前述したVBVバッファの情報を有す
る単位である第1及び第2の所定区間の1単位を、第1
のMPEG画像データにおいてはm-n間、第2のMPEG画像
データにおいてはp-q間とする。
In FIG. 9C, the connection point (connection designation position) in the first MPEG image data is the position n, and the connection point (connection designation position) in the second MPEG image data is the position p. . One unit of the first and second predetermined sections, which is a unit having the information of the VBV buffer described above, is
In the case of the second MPEG image data, it is between mn and in the second MPEG image data.

【0052】mの位置は第1のMPEG画像データにおける
接続点(繋ぎ指定位置)nから第1の所定時間分前の第
1の所定区間の境界位置となる。mの位置を開始位置と
し接続点nの位置を終了位置とする区間を繋ぎ区間A
(第1の繋ぎ区間)とする。qの位置は第2のMPEG画像
データにおける接続点(繋ぎ指定位置)pから第2の所
定時間分後の第2の所定区間の境界位置となる。接続点
pを開始位置としqの位置を終了位置とする区間を繋ぎ
区間B(第2の繋ぎ区間)とする。
The position of m is the boundary position of the first predetermined section before the first predetermined time from the connection point (connection specified position) n in the first MPEG image data. A section in which the position of m is the start position and the position of the connection point n is the end position is connected to section A
(First connection section). The position of q becomes the boundary position of the second predetermined section after the second predetermined time from the connection point (connection specified position) p in the second MPEG image data. A section having the connection point p as the start position and the position of q as the end position is referred to as a connection section B (second connection section).

【0053】第1のMPEG画像データの繋ぎ区間A
(m-n区間)のデータを、一旦、復号化して復号画像
データ(繋ぎ区間A復号画像データ:第1の繋ぎ区間復
号画像データ)をえる。また、第2のMPEG画像デー
タのを繋ぎ区間B(p-q区間)のデータを、一旦、復
号化して、復号画像データ(繋ぎ区間B復号画像デー
タ:第2の繋ぎ区間復号画像データ)を得る。
Connection section A of the first MPEG image data
The data of (m-n section) is once decoded to obtain decoded image data (connection section A decoded image data: first connection section decoded image data). Further, the data of the connecting section B (pq section) of the second MPEG image data is once decoded to obtain decoded image data (connecting section B decoded image data: second connecting section decoded image data). obtain.

【0054】繋ぎ区間A復号画像データと繋ぎ区間B復
号画像データとを合わせた繋ぎ区間A+B復号画像デー
タ(第3の繋ぎ区間復号画像データ)をMPEG符号化方式
で再符号化を行う。それによって作成された再符号化デ
ータを繋ぎ区間A+Bの再符号化MPEG画像データ
(第3の繋ぎ区間再符号化データ)と呼ぶこととする。
この再符号化は、VBVバッファ占有値に関する情報値
の推移が、mの位置での第1のVBVバッファ占有値関連
情報に基づき得られたVBVバッファ占有値に関する情報
値から開始されて、qの位置での第2のVBVバッファ占
有値関連情報に基づき得られたVBVバッファ占有値に関
する情報値までで終了するようにレートコントロールを
行ってMPEG符号化方式で再符号化を行う。
The joint section A + B decoded image data (third joint section decoded image data) obtained by combining the joint section A decoded image data and the joint section B decoded image data is re-encoded by the MPEG encoding method. The re-encoded data thus created will be referred to as re-encoded MPEG image data of the connection section A + B (third connection section re-encoded data).
In this re-encoding, the transition of the information value related to the VBV buffer occupancy value is started from the information value related to the VBV buffer occupancy value obtained based on the first VBV buffer occupancy value related information at the position m, and q Re-encoding is performed by the MPEG encoding method by performing the rate control so that the processing is completed up to the information value regarding the VBV buffer occupation value obtained based on the second VBV buffer occupation value related information at the position.

【0055】そして、繋ぎ区間A+Bの再符号化MPE
G画像データを用いて、第1のMPEG画像データから
第2のMPEG画像データへの繋ぎ再生を行う。すなわ
ち、第1のMPEG画像データの繋ぎ区間Aの開始位置
mまでは第1のMPEG画像データの再生を行い、その
あと前記繋ぎ区間A+Bの再符号化MPEG画像データ
をその区間の開始位置から終了位置まで再生し、その
後、第2のMPEG画像データの繋ぎ区間Bの終了位置
qへ接続してqの位置以降の第2のMPEG画像データ
のデータを再生する、という動作にする。再生装置側に
この動作を行う繋ぎ再生手段を設けて実現させる。
Then, the re-encoding MPE of the connecting section A + B is performed.
The G image data is used to perform connection reproduction from the first MPEG image data to the second MPEG image data. That is, the first MPEG image data is reproduced up to the start position m of the connecting section A of the first MPEG image data, and then the re-encoded MPEG image data of the connecting section A + B ends from the start position of the section. The operation is performed such that the data is reproduced up to the position, and then the end position q of the connecting section B of the second MPEG image data is connected to reproduce the data of the second MPEG image data after the position of q. This is realized by providing a connection reproducing means for performing this operation on the reproducing device side.

【0056】この繋ぎ再生動作とすることで、元の第1
及び第2のMPEG画像データと同じコンテンツ内容で
且つ、VBVバッファの破綻を起こさないシームレスな
接続再生を実現することが可能となる。
By using this connection reproduction operation, the original first
Also, it is possible to realize seamless connection reproduction with the same content as the second MPEG image data and without the VBV buffer failure.

【0057】なお、図9(3)に示した例では、前述し
たようにmの位置(繋ぎ区間Aの開始位置)のVBVバ
ッファの情報が必要となる。mの位置は、第1のMPEG画
像データにおける接続点(繋ぎ指定位置)nから第1の
所定時間分前の第1の所定区間の境界として指定される
ので、接続点nの位置に関わらずmの位置ではVBVバ
ッファの情報が得られる。よって、第1のMPEG画像デー
タにおける接続点nの位置は、必ずしも第1の所定区間
の境界として指定される必要はない。
In the example shown in FIG. 9 (3), the information of the VBV buffer at the position m (start position of the connecting section A) is required as described above. Since the position of m is specified as the boundary of the first predetermined section before the first predetermined time from the connection point (connection specified position) n in the first MPEG image data, regardless of the position of the connection point n. Information of the VBV buffer is obtained at the position of m. Therefore, the position of the connection point n in the first MPEG image data does not necessarily have to be designated as the boundary of the first predetermined section.

【0058】また、前述のように図9(3)に示した、
qの位置(繋ぎ区間Bの終了位置)のVBVバッファの
情報も必要となる。qの位置は、第2のMPEG画像データ
における接続点(繋ぎ指定位置)pから第2の所定時間
分後の第2の所定区間の境界として指定されるので、接
続点pの位置に関わらずqの位置ではVBVバッファの
情報が得られる。よって、第2のMPEG画像データにおけ
る接続点pの位置も、必ずしも第2の所定区間の境界と
して指定される必要はない。
As described above, as shown in FIG. 9 (3),
Information on the VBV buffer at the position q (the end position of the connecting section B) is also required. Since the position of q is specified as the boundary of the second predetermined section after the second predetermined time from the connection point (connection specified position) p in the second MPEG image data, regardless of the position of the connection point p. At the position of q, information of the VBV buffer is obtained. Therefore, the position of the connection point p in the second MPEG image data does not necessarily have to be designated as the boundary of the second predetermined section.

【0059】このように、図9(1)〜(3)に示した
方法は、いずれもシームレスで高品位な繋ぎ再生を実現
させることができるこれらの発展系としては、図10に
示すように、第1のMPEG画像データと、第2のMP
EG画像データや、第3、第4のMPEG画像データ
を、図のように途中分岐するような繋ぎ再生を実現させ
ることも可能となる。このように、本発明を用いれば、
元のMPEG画像データそのものを加工することなく、繋ぎ
区間の再符号化MPEG画像データを生成し利用するだ
けで、他のMPEGデータに自由につなげることができるの
で、さまざまな分岐ストーリーを構成するプログラムを
符号化する際にも、分岐ストーリー毎にそのストーリー
の全体にわたる冗長なMPEG画像データを記録することな
く、メディアを効率よく使用することが可能となる。
(本発明を用いれば、第1〜第4のMPEG画像データ
それぞれ一組と、分岐ストーリー毎の繋ぎ区間の再符号
化MPEG画像データとを用意しておけばよい。)ま
た、図9(3)に示す方法を用いれば、前述したよう
に、第1のMPEG画像データにおける接続点の位置は、必
ずしも第1の所定区間の境界として指定される必要がな
く、第2のMPEG画像データにおける接続点の位置も、必
ずしも第2の所定区間の境界として指定される必要がな
いので、VBVバッファの情報を所定区間単位でサイド
情報として記述しておく所定区間単位よりも細かい精
度、例えば1フレーム単位で編集する場合に適用でき
る。この例を図15と共に説明する。所定単位は3フレ
ーム程度のものでも、1GOP程度でもよいが、ここで
は1GOPとする。
As described above, all of the methods shown in FIGS. 9 (1) to 9 (3) can be realized as seamless and high-quality connected reproduction as shown in FIG. , The first MPEG image data and the second MP
It is also possible to realize connection reproduction in which the EG image data and the third and fourth MPEG image data are branched midway as shown in the figure. Thus, using the present invention,
It is possible to freely connect to other MPEG data simply by generating and using re-encoded MPEG image data of the connecting section without processing the original MPEG image data itself, so a program that forms various branch stories. Even when encoding, the media can be used efficiently without recording redundant MPEG image data over the entire story for each branch story.
(By using the present invention, one set of each of the first to fourth MPEG image data and re-encoded MPEG image data of the connecting section for each branch story may be prepared.) Further, FIG. 9 (3) ), The position of the connection point in the first MPEG image data does not necessarily have to be specified as the boundary of the first predetermined section, as described above, and the connection in the second MPEG image data can be performed. Since the position of the point does not necessarily have to be specified as the boundary of the second predetermined section, the information of the VBV buffer is described as side information in predetermined section units, which is a finer precision than a predetermined section unit, for example, one frame unit. It can be applied when editing with. This example will be described with reference to FIG. The predetermined unit may be about 3 frames or 1 GOP, but here it is 1 GOP.

【0060】図15のように繋げる対象の2つのMPEGス
トリームが存在するとする。第1のMPEGストリームに矢
印で示してあるgとhの地点では、前記VBVバッファ
の情報リストにgの位置でのVBVバッファの情報と、
hの位置でのVBVバッファの情報が記述されている。
また、第2のMPEG画像データにもiの位置のVBV
バッファの情報とjの位置のVBVバッファの情報も存
在する。
It is assumed that there are two MPEG streams to be connected as shown in FIG. At the points g and h indicated by arrows in the first MPEG stream, the information of the VBV buffer at the position of g is added to the information list of the VBV buffer.
Information of the VBV buffer at the position of h is described.
In addition, the VBV of the position i is also included in the second MPEG image data.
There is also information on the buffer and information on the VBV buffer at the position of j.

【0061】第1のMEPGストリーム1のpの位置から、
第2のMPEGストリームの先頭へ繋ぐ場合、第1のMPEGス
トリームのgからpまでの区間Aのデータを復号し、さ
らに、第2のMPEGストリームのiからjの区間Bのデータ
を復号し、両方の画像をバッファ推移がgの位置のバッ
ファ占有値から始まってjの位置のバッファ占有値にな
るように再符号化を行う。
From the position p of the first MEPG stream 1,
When connecting to the beginning of the second MPEG stream, the data of the section A from g to p of the first MPEG stream is decoded, and further the data of the section B of i to j of the second MPEG stream is decoded, Re-encode both images so that the buffer transitions start at the buffer occupancy value at position g and become the buffer occupancy value at position j.

【0062】それによって作成されたデータを区間A+
Bの再符号化MPEG画像データを呼ぶとすると、従来
の再生動作である、第1のMPEG画像データのpの位
置まで再生を行い、そのあと第2のMPEG画像データ
へ接続してデータを再生する、という動作は、第1のM
PEG画像データのgの位置まで再生を行い、そのあと
前記区間A+Bの再符号化MPEG画像データを再生
し、その後、第2のMPEG画像データのjへ接続して
データを再生する、という動作にすることで、同じコン
テンツ内容で且つ、VBVバッファの破綻を起こさない
シームレスな接続再生をすることができる。
The data created thereby is section A +
When the re-encoded MPEG image data of B is called, the conventional reproduction operation is performed until the position p of the first MPEG image data is reproduced, and then the second MPEG image data is connected to reproduce the data. The action of doing is the first M
Playback is performed up to the position g of the PEG image data, then the re-encoded MPEG image data of the section A + B is played back, and then the data is played back by connecting to j of the second MPEG image data. By doing so, it is possible to perform seamless connection reproduction with the same content and without causing the VBV buffer to fail.

【0063】次に、サイド情報としてVBVバッファの
情報を記述しないで上述した各例と同様な繋ぎ再生を実
現する2つの方法について説明する。(繋ぎ区間再符号
化データを生成する際に必要となる、VBVバッファ占有
値に関する情報値の算出方法について説明する。)ま
ず、第1の方法について説明する。MPEG規格におい
て、基本的にCBR(constant bit rate)、即ち、固
定転送レートの場合には、MPEGビデオのピクチャー
レイヤにVBVバッファのバッファ占有率を示す、VBV
delay値が規定されている。この場合にはVBV delay値が
ピクチャー単位に記述されているので、MPEG画像ビ
ットストリームをピクチャーヘッダーのみだけでも観測
することで、MPEG画像データの所定位置に対応する
ピクチャのMPEG符号化開始時点(または終了時点)
でのVBVバッファ占有値を検出することができる。この
場合、例えば後述する図4におけるVBVバッファ情報
検出器33の機能は、ビットストリームのピクチャーヘ
ッダー(MPEGでは0x00000100という4バ
イトのコード)をサーチして、そのあとの、10ビット
のtemparal reference10ビット、picture coding typ
e3ビットのあとに続く、VBV delay16ビットを検出す
ることで実現できる。VBV delay値とは VBV delay = 90000 x B / R B:バッファ占有値 R:ビットレート で定義されたものであるから、固定レートの場合には、
このビットレートを用いてVBV delay値からVBVバッファ
占有値も計算で求めることができる。(例えば図4に示
すVBVバッファ情報検出器33で計算する。)MPE
GではこのVBV delay値は、図16(2)のように、グ
ラフの頂点の位置でのものに注意しなければならない。
Next, two methods for realizing the same connection reproduction as in the above-described examples without describing the information of the VBV buffer as the side information will be described. (A method of calculating the information value regarding the VBV buffer occupation value, which is necessary when generating the re-encoded data of the connecting section will be described.) First, the first method will be described. In the MPEG standard, basically, in the case of a CBR (constant bit rate), that is, a fixed transfer rate, VBV indicating the buffer occupancy rate of the VBV buffer in the picture layer of the MPEG video is shown.
The delay value is specified. In this case, since the VBV delay value is described in picture units, by observing the MPEG image bit stream only with the picture header alone, the MPEG encoding start time point (or the MPEG encoding start time of the picture corresponding to the predetermined position of the MPEG image data (or (At the end)
The VBV buffer occupancy value at can be detected. In this case, for example, the function of the VBV buffer information detector 33 in FIG. 4, which will be described later, is to search a picture header of a bitstream (a 4-byte code of 0x00000100 in MPEG), and then to search for a 10-bit temporal reference of 10 bits, picture coding typ
This can be realized by detecting 16 bits of VBV delay following e3 bits. VBV delay value is defined by VBV delay = 90000 x B / R B: buffer occupancy value R: bit rate, so in case of fixed rate,
Using this bit rate, the VBV buffer occupancy value can also be calculated from the VBV delay value. (For example, it is calculated by the VBV buffer information detector 33 shown in FIG. 4.) MPE
In G, it is necessary to pay attention to the VBV delay value at the position of the vertex of the graph, as shown in FIG. 16 (2).

【0064】次に、第2の方法について説明する。これ
は、固定転送レートではなく可変転送レートの場合であ
る。MPEG規格では、基本的にVBR(variable bit
rate:可変転送レート)の場合、MPEGビデオのピ
クチャーレイヤにおけるVBVバッファのバッファ占有
率を示すVBV delay値はすべて1、(16ビットすべて
が1なので0xffff)となる。従って、前記第1の
方法は使えない。
Next, the second method will be described. This is the case for variable transfer rates rather than fixed transfer rates. In the MPEG standard, basically VBR (variable bit
rate: variable transfer rate), the VBV delay value indicating the buffer occupancy of the VBV buffer in the picture layer of the MPEG video is all 1 (0xffff because all 16 bits are 1). Therefore, the first method cannot be used.

【0065】そこで、MPEG画像ビットストリームを
観測することで得られた情報から次のような計算を行
う。まず、ビットストリームの一番初めから、VBVバ
ッファをMPEG規定の最大値(たとえばメインプロフ
ァイルメインレベルでは1.75Mbit)まで占有したと仮定
する。次に、始めのピクチャーの符号量を減算する。次
に、可変転送レート符号化におけるピークレートの伝送
レート情報を用いて、表示ピクチャー間の時間だけ経過
した場合の伝送量を加算し、次のピクチャーの符号量を
減算する。このような一連の加算、減算という処理を所
定の求めたいビットストリームの位置まで繰り返し行う
ことで、図3に示すようなグラフをシミュレーションし
て求めるがごとく、MPEG画像データの所定位置に対
応するピクチャのMPEG符号化開始時点(または終了時
点)でのVBVバッファ占有値を求めることができる。可
変転送レート時のピークレートは、MPEGではシーケ
ンスヘッダーのbit rateというシンタックスの部分に記
述することに規定されているので、それを参照すれば得
られる。
Therefore, the following calculation is performed from the information obtained by observing the MPEG image bit stream. First, it is assumed that the VBV buffer is occupied from the beginning of the bit stream to the maximum value defined by the MPEG (for example, 1.75 Mbit at the main profile main level). Next, the code amount of the first picture is subtracted. Next, using the transmission rate information of the peak rate in variable transfer rate encoding, the transmission amount when the time between display pictures has elapsed is added, and the code amount of the next picture is subtracted. By repeating such a series of addition and subtraction processes up to a predetermined bit stream position to be obtained, a picture corresponding to a predetermined position of MPEG image data can be obtained by simulating a graph as shown in FIG. The VBV buffer occupancy value at the MPEG encoding start point (or end point) can be calculated. The peak rate at the variable transfer rate is specified in MPEG in the syntax part called bit rate of the sequence header, and can be obtained by referring to it.

【0066】例えば、後述する図4に示すVBVバッフ
ァ情報検出器33に上述のMPEG画像ビットストリー
ムを観測機能と計算機能を持たせるようにして実現す
る。(この第2の方法の場合、そのMPEG画像ビット
ストリームの先頭から、各ピクチャーの発生符号量を観
測して計算しなければならないが、第1の方法と同様に
予めサイド情報としてVBVバッファの情報を用意して
おく必要がない。)次に、上記第1及び第2の方法を用
いた場合における、繋ぎ区間再符号化データの生成につ
いて簡単に説明する。なお、この繋ぎ区間再符号化デー
タを用いた繋ぎ再生動作は、予めサイド情報として記録
されているVBVバッファの情報により生成した繋ぎ区
間再符号化データを用いた場合と同様であるので、ここ
では説明を省略する。
For example, the VBV buffer information detector 33 shown in FIG. 4, which will be described later, is realized by providing the above-mentioned MPEG image bit stream with an observation function and a calculation function. (In the case of the second method, the generated code amount of each picture must be observed and calculated from the beginning of the MPEG image bit stream, but as in the first method, information of the VBV buffer is previously used as side information. Next, a brief description will be given of the generation of the connection interval re-encoded data in the case of using the first and second methods described above. Note that the connection reproduction operation using the connection section re-encoded data is the same as the case of using the connection section re-encoded data generated from the information of the VBV buffer recorded in advance as the side information, and therefore, here, The description is omitted.

【0067】図9(1)に示す第1のMPEG画像デー
タ側のみを元に繋ぎ区間の再符号化MPEG画像データ
を得る場合には、第1のMPEG画像データにおける接
続点(繋ぎ指定位置)bから第1の所定時間分前の位置
aを開始位置として、第1のMPEG画像データにおけ
る繋ぎ指定位置bを終了位置とする区間を第1の繋ぎ区
間(繋ぎ区間A)とする。繋ぎ区間Aの開始位置aの指
定に、サイド情報を用いる場合のような第1の所定区間
の境界といった制限は不要となる。同様に、第2のMP
EG画像データにおける接続点(繋ぎ指定位置)dの指
定に、サイド情報を用いる場合のような第2の所定区間
の境界といった制限は不要となる。
When re-encoded MPEG image data of the connecting section is obtained based on only the first MPEG image data side shown in FIG. 9A, a connection point (connection specifying position) in the first MPEG image data is obtained. A section in which the position a, which is a predetermined predetermined time before b, is the start position and the specified connection position b in the first MPEG image data is the end position is the first connection section (connection section A). The specification of the start position a of the connecting section A does not require the limitation such as the boundary of the first predetermined section as in the case of using the side information. Similarly, the second MP
The specification of the connection point (connection specification position) d in the EG image data does not require the limitation such as the boundary of the second predetermined section as in the case of using the side information.

【0068】第1のMPEG画像データのa-b区間(繋
ぎ区間A)のデータを、一旦、復号化して復号画像デー
タを得、その復号画像データ(第1の繋ぎ区間復号画像
データ)をMPEG符号化方式で再符号化して、繋ぎ区
間Aの再符号化MPEG画像データ(第1の繋ぎ区間再
符号化データ)を得る。この再符号化は、VBVバッファ
占有値の推移が、上記第1または第2の方法で算出され
た、aの位置に相当するピクチャのMPEG符号化(第
1のMPEG画像データ生成時のMPEG符号化)開始
時点(または終了時点)でのVBVバッファ占有値から開
始される。そして、VBVバッファ占有値の推移が、上記
第1または第2の方法で算出された、dの位置に相当す
るピクチャのMPEG符号化(第2のMPEG画像データ生
成時のMPEG符号化)開始時点(または終了時点)で
のVBVバッファ占有値までで終了するように、レートコ
ントロールを行ってMPEG符号化方式で再符号化される。
得られた繋ぎ区間Aの再符号化MPEG画像データ(第
1の繋ぎ区間再符号化データ)を記録媒体に記録する。
(例えば、後述する図4に示すデータ書き込み部37に
より記録する。)次に、図9(2)に示す第2のMPE
G画像データ側のみを元に繋ぎ区間の再符号化MPEG
画像データを得る場合について説明する。図9(2)に
おいて、第1のMPEG画像データにおける接続点(繋ぎ指
定位置)をiの位置とし、第2のMPEG画像データにおけ
る接続点(繋ぎ指定位置)をkの位置とする。接続点k
を開始位置とし、接続点(繋ぎ指定位置)kから第2の
所定時間分後の位置となるlの位置を終了位置とする、
第2のMPEG画像データの区間を繋ぎ区間B(第2の
繋ぎ区間)とする。繋ぎ区間Bの終了位置lの指定に、
サイド情報を用いる場合のような、第2の所定区間の境
界といった制限は不要となる。同様に、第1のMPEG
画像データにおける接続点(繋ぎ指定位置)iの指定
に、サイド情報を用いる場合のような第1の所定区間の
境界といった制限は不要となる。
Data in the ab section (connecting section A) of the first MPEG image data is once decoded to obtain decoded image data, and the decoded image data (first connecting section decoded image data) is MPEG encoded. Re-encoding is performed by the method to obtain re-encoded MPEG image data of the connection section A (first connection section re-encoded data). In this re-encoding, the VBV buffer occupation value transition is MPEG-encoded for the picture corresponding to the position of a calculated by the first or second method (the MPEG encoding when the first MPEG image data is generated). Start) from the VBV buffer occupancy value at the start time (or end time). Then, the transition of the VBV buffer occupancy value is the start point of the MPEG coding (MPEG coding at the time of generating the second MPEG image data) of the picture corresponding to the position of d calculated by the first or second method. It is re-encoded by the MPEG encoding method by performing rate control so that the VBV buffer occupancy value at (or at the end time) ends.
The obtained re-encoded MPEG image data of the connection section A (first connection section re-encoded data) is recorded on the recording medium.
(For example, it is recorded by the data writing unit 37 shown in FIG. 4 described later.) Next, the second MPE shown in FIG. 9B.
Re-encoding MPEG of connecting section based only on G image data side
The case of obtaining image data will be described. In FIG. 9 (2), the connection point (connection designation position) in the first MPEG image data is the position i, and the connection point (connection designation position) in the second MPEG image data is the position k. Connection point k
Is the start position, and the position of l, which is the position after the second predetermined time from the connection point (connection designation position) k, is the end position.
The section of the second MPEG image data is referred to as a connection section B (second connection section). To specify the end position l of the connecting section B,
The limitation such as the boundary of the second predetermined section as in the case of using the side information is unnecessary. Similarly, the first MPEG
When the side information is used to specify the connection point (connection specified position) i in the image data, the restriction such as the boundary of the first predetermined section becomes unnecessary.

【0069】第2のMPEG画像データの繋ぎ区間B
(k-l区間)のデータを、一旦、復号化して、復号画
像データを得、その復号画像データ(第2の繋ぎ区間復
号画像データ)をMPEG符号化方式で再符号化して、繋ぎ
区間Bの再符号化MPEG画像データ(第2の繋ぎ区間
再符号化データ)を得る。この再符号化は、VBVバッフ
ァ占有値の推移が、上記第1または第2の方法で算出さ
れた、iの位置に相当するピクチャのMPEG符号化開
始時点(または終了時点)でのVBVバッファ占有値から
開始される。そして、VBVバッファ占有値の推移が、上
記第1または第2の方法で算出された、lの位置に相当
するピクチャのMPEG符号化開始時点(または終了時点)
でのVBVバッファ占有値までで終了するように、レート
コントロールを行ってMPEG符号化方式で再符号化が行わ
れる。得られた繋ぎ区間Bの再符号化MPEG画像デー
タ(第2の繋ぎ区間再符号化データ)を記録媒体に記録
する。(例えば、後述する図4に示すデータ書き込み部
37により記録する。)次に、図9(3)に示す、接続
点前後の第1及び第2のMPEG画像データを元に繋ぎ
区間の再符号化MPEG画像データを得る場合について
説明する。
Connection section B of the second MPEG image data
The data of (k-1 section) is once decoded to obtain decoded image data, and the decoded image data (second joint section decoded image data) is re-encoded by the MPEG encoding method to form the joint section B. Re-encoded MPEG image data (second connection section re-encoded data) is obtained. In this re-encoding, the transition of the VBV buffer occupation value is calculated by the first or second method, and the VBV buffer occupation at the MPEG encoding start time (or end time) of the picture corresponding to the position of i Start from the value. Then, the transition of the VBV buffer occupancy value is calculated by the first or second method, and the MPEG encoding start time (or end time) of the picture corresponding to the position of l is calculated.
The rate control is performed and re-encoding is performed by the MPEG encoding method so that the process ends up to the VBV buffer occupancy value. The re-encoded MPEG image data of the obtained connecting section B (second connecting section re-encoded data) is recorded on the recording medium. (For example, it is recorded by the data writing unit 37 shown in FIG. 4 which will be described later.) Next, the recoding of the connecting section based on the first and second MPEG image data before and after the connection point shown in FIG. 9C. A case of obtaining the encoded MPEG image data will be described.

【0070】図9(3)において、第1のMPEG画像デー
タにおける接続点(繋ぎ指定位置)をnの位置とし、第
2のMPEG画像データにおける接続点(繋ぎ指定位置)を
pの位置とする。
In FIG. 9C, the connection point (connection designation position) in the first MPEG image data is the position n, and the connection point (connection designation position) in the second MPEG image data is the position p. .

【0071】第1のMPEG画像データにおける接続点(繋
ぎ指定位置)nから第1の所定時間分前の位置をmとす
る。mの位置を開始位置とし、接続点nの位置を終了位
置とする第1のMPEG画像データの区間を、繋ぎ区間A
(第1の繋ぎ区間)とする。第2のMPEG画像データにお
ける接続点(繋ぎ指定位置)pから第2の所定時間分後
の位置をqする。接続点pを開始位置とし、qの位置を
終了位置とする第2のMPEG画像データの区間を、繋ぎ区
間B(第2の繋ぎ区間)とする。
The position before the first predetermined time from the connection point (connection designation position) n in the first MPEG image data is m. The section of the first MPEG image data having the position of m as the start position and the position of the connection point n as the end position
(First connection section). The position q after the second predetermined time from the connection point (connection specified position) p in the second MPEG image data is set. The section of the second MPEG image data having the connection point p as the start position and the position q as the end position is referred to as a connection section B (second connection section).

【0072】繋ぎ区間Aの開始位置mの指定に、サイド
情報を用いる場合のような第1の所定区間の境界といっ
た制限は不要となる。同様に、繋ぎ区間Bの終了位置q
の指定に、サイド情報を用いる場合のような第2の所定
区間の境界といった制限は不要となる。
When the side information is used to specify the start position m of the connecting section A, it is not necessary to limit the boundary of the first predetermined section. Similarly, the end position q of the connecting section B
There is no need to limit the boundary of the second predetermined section as in the case of using the side information for the specification.

【0073】第1のMPEG画像データの繋ぎ区間A
(m-n区間)のデータを、一旦、復号化して復号画像
データ(繋ぎ区間A復号画像データ:第1の繋ぎ区間復
号画像データ)を得る。また、第2のMPEG画像デー
タの繋ぎ区間B(p-q区間)のデータを、一旦、復号
化して、復号画像データ(繋ぎ区間B復号画像データ:
第2の繋ぎ区間復号画像データ)を得る。
Connection section A of the first MPEG image data
The data in the (mn section) is once decoded to obtain decoded image data (connecting section A decoded image data: first connecting section decoded image data). In addition, the data of the connection section B (pq section) of the second MPEG image data is once decoded, and the decoded image data (connection section B decoded image data:
The second connection section decoded image data) is obtained.

【0074】そして、繋ぎ区間A復号画像データと繋ぎ
区間B復号画像データとを合わせた繋ぎ区間A+B復号
画像データ(第3の繋ぎ区間復号画像データ)をMPEG符
号化方式で再符号化を行う。それによって作成された再
符号化データを繋ぎ区間A+Bの再符号化MPEG画像
データ(第3の繋ぎ区間再符号化データ)とする。この
再符号化は、VBVバッファ占有値の推移が、上記第1
または第2の方法で算出された、mの位置に相当するピ
クチャのMPEG符号化開始時点(または終了時点)で
のVBVバッファ占有値から開始される。そして、VBVバッ
ファ占有値の推移が、上記第1または第2の方法で算出
された、qの位置に相当するピクチャのMPEG符号化開始
時点(または終了時点)でのVBVバッファ占有値までで
終了するように、レートコントロールを行ってMPEG符号
化方式で再符号化される。得られた繋ぎ区間A+Bの再
符号化MPEG画像データ(第3の繋ぎ区間再符号化デ
ータ)を記録媒体に記録する。(例えば、後述する図4
に示すデータ書き込み部37により記録する。)図10
に示す例においても、もちろん、上述の計算方法により
必要な位置でのVBVバッファ占有値を求めることが可能
であり、所望の繋ぎ区間再符号化データ)を得ることが
できる。
Then, the joint section A + B decoded image data (third joint section decoded image data) obtained by combining the joint section A decoded image data and the joint section B decoded image data is re-encoded by the MPEG encoding method. The re-encoded data created thereby is used as re-encoded MPEG image data of the connection section A + B (third connection section re-encoded data). In this re-encoding, the transition of the VBV buffer occupation value is
Alternatively, it is started from the VBV buffer occupancy value at the MPEG encoding start point (or end point) of the picture corresponding to the position m calculated by the second method. Then, the transition of the VBV buffer occupancy value ends up to the VBV buffer occupancy value at the MPEG encoding start time (or end time) of the picture corresponding to the position of q calculated by the first or second method. As described above, rate control is performed and re-encoding is performed by the MPEG encoding method. The obtained re-encoded MPEG image data of the connection section A + B (third connection section re-encoded data) is recorded on the recording medium. (For example, FIG.
It is recorded by the data writing unit 37 shown in FIG. ) Figure 10
Also in the example shown in (1), it is of course possible to obtain the VBV buffer occupancy value at the required position by the above-described calculation method, and to obtain the desired connection interval re-encoded data).

【0075】次に、本発明を適用した記録再生装置の一
実施例によって記録媒体に記録するVBVバッファ情報
(MPEG画像データの所定区間毎における、その区間の最
後のピクチャーのMPEG符号化開始時点または終了時点で
のVBVバッファ占有値に関する情報値を示すVBVバッファ
占有値関連情報と、前記VBVバッファ占有値に関する情
報値が前記MPEG画像データのどの位置におけるVBVバッ
ファ占有値に関する情報値であるかを示すアドレス情
報)、ならびに、MPEG画像データに関する記録構造
について詳しく説明する。記録媒体には、MPEG符号化方
式で圧縮された画像データであるMPEG画像データが記録
される。このMPEG画像データは、一回の記録単位で符号
化生成された連続再生可能なデータが複数連続して連な
ったビットストリームとして記録される。
Next, the VBV buffer information to be recorded on the recording medium by one embodiment of the recording / reproducing apparatus to which the present invention is applied (in every predetermined section of MPEG image data, the MPEG coding start time of the last picture of that section or VBV buffer occupancy value related information indicating the information value regarding the VBV buffer occupancy value at the end point and indicating at which position in the MPEG image data the information value regarding the VBV buffer occupancy value is the information value regarding the VBV buffer occupancy value Address information) and the recording structure for MPEG image data will be described in detail. MPEG image data, which is image data compressed by the MPEG encoding method, is recorded on the recording medium. The MPEG image data is recorded as a bit stream in which a plurality of continuously reproducible data coded and generated in one recording unit are continuously arranged.

【0076】これらの符号化されたMPEG画像データのビ
ットストリームとは別に、MPEG画像データのビットスト
リームにおけるIピクチャーの1フレーム前のピクチャ
ー符号化終了時点でのVBVバッファ値(占有値)と、Pピ
クチャーの1フレーム前のピクチャー符号化終了時点で
のVBVバッファ値(占有値)と、前記各VBVバッファ値が
MPEG画像データのどの位置におけるVBVバッファ占有値
であるかを示すアドレス情報(この例では、MPEG画像デ
ータのファイルのはじめからの相対アドレス)が記録さ
れる。これらのデータを含むVBVバッファ情報のデータ
構造を図1に示す。
Apart from the bit stream of these encoded MPEG image data, the VBV buffer value (occupied value) at the end of picture encoding one frame before the I picture in the bit stream of the MPEG image data and P The VBV buffer value (occupied value) at the end of picture coding one frame before the picture and each VBV buffer value are
Address information (in this example, a relative address from the beginning of the MPEG image data file) indicating which position of the MPEG image data is the VBV buffer occupation value is recorded. The data structure of VBV buffer information including these data is shown in FIG.

【0077】VBVバッファ情報は階層構造をもってい
る。始めにエントリーポイント情報構造体があり、その
後にVBV情報構造体がある。エントリーポイント情報構
造体は、始めにエントリーポイント(EP)のアドレスの
個数を32ビット、その後にEPn(nは1以上の自然
数)アドレスを32ビットで順に記述する。EPnアドレ
スはVBV情報構造体のEPn情報(nは1以上の自然数)
の記述されている位置を示し、このVBVバッファ情報の
先頭からの相対アドレスを記述する。一方VBV情報構造
体は、EP1情報から順に記述されており、EP1情報の中身
は相対アドレス、PTM値、VBV値を順に記述する。
The VBV buffer information has a hierarchical structure. First there is the entry point information structure, and then there is the VBV information structure. In the entry point information structure, first, the number of entry point (EP) addresses is described in 32 bits, and then EPn (n is a natural number of 1 or more) addresses are described in 32 bits in order. EPn address is EPn information of VBV information structure (n is a natural number of 1 or more)
Indicates the position described in, and describes the relative address from the beginning of this VBV buffer information. On the other hand, the VBV information structure is described in order from the EP1 information, and the content of the EP1 information describes the relative address, the PTM value, and the VBV value in order.

【0078】VBV情報構造体のEPn情報における相対ア
ドレスとは、図2のように、MPEG画像データのビットス
トリームにおけるIピクチャーの1フレーム前のピクチ
ャー符号化終了時点、Pピクチャーの1フレーム前のピ
クチャー符号化終了時点、及び記録終了時点での、その
MPEG画像データの先頭からの相対アドレスであり、例え
ば単位はバイトが用いられる。ディスクメディアに記録
されている場合には、相対アドレスとしてセクターなど
が用いられる。
The relative address in the EPn information of the VBV information structure is, as shown in FIG. 2, the picture coding end point of the I picture one frame before in the bit stream of the MPEG image data, and the picture one frame before the P picture. At the end of encoding and at the end of recording
This is a relative address from the beginning of the MPEG image data, and for example, the unit is bytes. When recorded on a disk medium, a sector or the like is used as a relative address.

【0079】VBV情報構造体のEPn情報におけるPTM値と
は、MPEGのシステム規格(多重化規格)において、90
kHzもしくは27MHzのクロックで記録されているタイ
ムスタンプである。MPEG規格ではPTS(Presentation Ti
me Stamp)やDTS(Decoding Time Stamp)と呼ばれてい
る。ここでは、MPEG画像データのビットストリームのI
ピクチャーの1フレーム前のピクチャー符号化終了時
点、Pピクチャーの1フレーム前のピクチャー符号化終
了時点、及び記録終了時点での、時間情報としてDTSを
記録する。DTSは1ピクチャーに1つ記録されており、N
TSCのビデオ信号であれば90KHzクロックで1ピクチ
ャにつき3003クロックの間隔で、記録されている。
従って、本発明のように3ピクチャーごとにIピクチャ
かPピクチャが存在している場合で一番初めが0からス
タートする場合には、9009、18018....という
間隔でPTM情報がEPn情報に記述されることになる。
The PTM value in the EPn information of the VBV information structure is 90 in the MPEG system standard (multiplexing standard).
It is a time stamp recorded with a clock of kHz or 27 MHz. According to the MPEG standard, PTS (Presentation Ti
It is called me Stamp) or DTS (Decoding Time Stamp). Here, I of the bit stream of MPEG image data
DTS is recorded as time information at the end of picture coding one frame before the picture, at the end of picture coding one frame before the P picture, and at the end of recording. One DTS is recorded in one picture, and N
In the case of a TSC video signal, 90KHz clock is recorded at intervals of 3003 clocks per picture.
Therefore, when an I picture or a P picture exists for every 3 pictures as in the present invention and the first one starts from 0, the PTM information is EPn information at intervals of 9009, 18018 .... Will be described in.

【0080】VBV情報構造体のEPn情報におけるVBV値
は、MPEGで規定されているデコーダーの仮想バッファ占
有値である。MPEG画像データの1ピクチャごとの発生符
号量と、転送レートの値から計算で導けるもので、図3
のように、圧縮されているビットストリーム情報のIピ
クチャーとPピクチャーの1フレーム前のピクチャー符
号化終了時点での、図の○の位置でのVBV占有値を記述
する。もしくはMPEGで規定されているVBV delay値を記
述する。この値はVBV占有値まで、そのときの転送レー
トでどれだけの時間がかかるかという時間に換算した値
である。本発明ではVBVバッファ占有値に関する情報で
あれば何であっても良い。VBVバッファ占有値とVBV del
ay値の関係を図17に示す。VBVバッファの占有値OCC
は、符号化レートをRとすると、VBV delay = 90000 * O
CC / Rという関係にあり、90000は90kHzのカウ
ント数で示すための値である。
The VBV value in the EPn information of the VBV information structure is the virtual buffer occupation value of the decoder defined by MPEG. It can be calculated from the amount of generated code for each picture of MPEG image data and the value of the transfer rate.
As described above, the VBV occupancy value at the position of ◯ in the figure at the end of picture coding of the I picture and P picture of the compressed bit stream information one frame before is described. Alternatively, describe the VBV delay value specified by MPEG. This value is a value converted to the VBV occupancy value, which is the time required for the transfer rate at that time. In the present invention, any information may be used as long as it is information regarding the VBV buffer occupation value. VBV buffer occupancy value and VBV del
FIG. 17 shows the relationship between ay values. Occupied value of VBV buffer OCC
VBV delay = 90000 * O, where R is the coding rate
There is a relationship of CC / R, and 90000 is a value for indicating with a count number of 90 kHz.

【0081】MPEG圧縮では基本的にIBB、PBB、というよ
うに3フレーム単位でIかPのピクチャータイプを用いて
符号化する。MPEG圧縮はBピクチャーは両方向から予測
されている可能性があるので、符号化ビットストリーム
順番において、ビットストリームのIピクチャー、Pピク
チャーの1フレーム前のピクチャー符号化終了時点でし
か、データのつなぎ追加は簡単にはできない。そのため
本発明では、VBVの情報をビットストリームのIピクチャ
ー、Pピクチャーの1フレーム前のピクチャー符号化終
了時点で記述する形態をもつという仮定で説明してい
る。
In MPEG compression, coding is basically performed using a picture type of I or P in units of 3 frames such as IBB and PBB. In MPEG compression, B pictures may be predicted from both directions. Therefore, in the coding bitstream order, data joining is added only at the end of picture coding one frame before the I picture and P picture of the bitstream. Is not easy. Therefore, the present invention is described on the assumption that the VBV information is described at the end of picture coding of the I picture and P picture of the bit stream, which is one frame before.

【0082】しかしながら、本質的にはVBV占有値に関
する情報値は、毎ピクチャー持っても良い。また、ピク
チャー符号化終了時点でなく、符号化開始点でも良い。
図16(1)では符号化終了点の値をリストに持つ場合
の概念図であるが、この場合には一番初めのVBV占有値
に関する情報値が無いため、第1フレームの前に仮想的
にフレームがあったとして、その仮想フレームの符号化
終了時点のVBV占有値に関する情報値を初期値として計
算する。計算は第1のピクチャ符号量を、一番目のVBV
占有値に関する情報値に加算して、加算した値から、符
号化レートによる傾きから、(1/ピクチャーレート)
だけの時間によってどれだけの符号伝送量かを計算した
値を減算すると、図16(1)の黒丸部分の初期値が求
められる。また、図16(2)では符号化開始点の値を
リストに持つ場合の概念図であるが、この場合には一番
最後のVBV占有値に関する情報値が無いため、最終フレ
ームの後ろに仮想的にフレームがあったとして、その仮
想フレームの符号化開始時点のVBV占有値に関する情報
値を最終値として計算する。計算は最終のピクチャ符号
量を、最後のVBV占有値に関する情報値から減算して、
減算した値から、符号化レートによる傾きから、(1/
ピクチャーレート)だけの時間によってどれだけの符号
伝送量かを計算した値を加算すると、図16(2)の黒
丸部分の最終値が求められる。
However, the information value relating to the VBV occupation value may essentially have each picture. Further, the coding start point may be used instead of the picture coding end point.
FIG. 16 (1) is a conceptual diagram when the value of the coding end point is included in the list. In this case, since there is no information value regarding the first VBV occupation value, the virtual value is set before the first frame. Assuming that there is a frame in, the information value regarding the VBV occupation value at the end of encoding of the virtual frame is calculated as an initial value. The calculation uses the first picture code amount as the first VBV
By adding to the information value related to the occupied value, from the added value, from the slope according to the encoding rate, (1 / picture rate)
By subtracting the value of how much the code transmission amount is calculated by the time, the initial value of the black circle part of FIG. 16 (1) is obtained. 16 (2) is a conceptual diagram when the value of the coding start point is included in the list. In this case, since there is no information value related to the last VBV occupation value, a virtual image exists after the last frame. If there is a frame, the information value regarding the VBV occupancy value at the start of encoding of the virtual frame is calculated as the final value. The calculation subtracts the final picture code amount from the information value regarding the final VBV occupation value,
From the subtracted value, from the slope according to the coding rate, (1 /
The final value of the black circle portion in FIG. 16 (2) is obtained by adding the values obtained by calculating how much the code transmission amount is based on only the picture rate).

【0083】次に、本発明を適用した記録再生装置の一
実施例の構成を図4に示し、MPEG符号化方式で画像デー
タを符号化しながらVBVバッファ情報を作成する動作を
説明をする。
Next, the configuration of an embodiment of the recording / reproducing apparatus to which the present invention is applied is shown in FIG. 4, and the operation of creating VBV buffer information while encoding image data by the MPEG encoding method will be described.

【0084】記録媒体31に符号化データがまったく無
い状態、すなわち、初めて符号化する場合には、記録媒
体31からのデータ読み取り部32では、データが存在
していないので、データがないという情報をVBVバッフ
ァ情報検出器33に送信する。VBVバッファ情報検出器
33でもデータが存在していないので、パラメータ設定
器34にはあらかじめ設定した初期値、すなわちVBV値
は、たとえばMPEGで規定されるVBVの最大値の80%の
値とし、PTMタイムスタンプ情報は0とする。これらの
初期設定値を画像符号化器35に送信する。
When there is no encoded data in the recording medium 31, that is, when the encoding is performed for the first time, the data reading unit 32 from the recording medium 31 does not have the data, and therefore, the information that there is no data is displayed. It transmits to the VBV buffer information detector 33. Since there is no data even in the VBV buffer information detector 33, the initial value set in advance in the parameter setter 34, that is, the VBV value is set to 80% of the maximum value of VBV defined by MPEG, The time stamp information is 0. These initial setting values are transmitted to the image encoder 35.

【0085】画像符号化器35では、符号化を初期設定
値から開始する。画像符号化器35では符号化を行いな
がら、ビットストリームのIピクチャーの1フレーム
前、及びPピクチャーの1フレーム前のピクチャー符号
化終了時点での発生符号量とPTM値、VBV値を、毎回、VB
Vバッファ情報作成器36へ送信する。それとともに符
号化データをデータ書き込み部37へ送信する。さら
に、画像符号化器35は、ユーザーが画像圧縮記録を一
時停止、もしくは終了した時点での発生符号量とPTM
値、VBV値を、VBVバッファ情報作成器36へ送信する。
In the image encoder 35, the encoding is started from the initial setting value. The image encoder 35 encodes the generated code amount, the PTM value, and the VBV value at the end of picture encoding one frame before the I picture of the bitstream and one frame before the P picture, each time. VB
It is transmitted to the V buffer information generator 36. At the same time, the encoded data is transmitted to the data writing unit 37. Further, the image encoder 35 is configured to detect the generated code amount and PTM at the time when the user temporarily stops or finishes the image compression recording.
The value and the VBV value are transmitted to the VBV buffer information creator 36.

【0086】VBVバッファ情報作成器36では、入力さ
れた発生符号量値とPTM値とVBV値から図1に示す構造の
VBVバッファ情報のデータを作成する。もしくはそのデ
ータ構造を作成するのに必要なデータをメモリーして所
定のフォーマットで記録保持する。VBVバッファ情報作
成器36で作成された情報は、データ書き込み部37に
より符号化データ(MPEG画像データ)が記録媒体31に
書き込まれているときに、同時にバースト的に書き込み
を行っても良い。また、VBVバッファ情報作成器36で
作成された情報は、符号化データ(MPEG画像データ)が
書き込み終わったとき、すなわち、ユーザーが画像圧縮
記録を一時停止、もしくは終了した後に所定のフォーマ
ットで記録保持されていたデータから、図1の構造に変
換してデータ書き込み部37により書き込みを行っても
良い。
The VBV buffer information generator 36 has the structure shown in FIG. 1 from the input generated code amount value, PTM value and VBV value.
Create VBV buffer information data. Alternatively, the data necessary for creating the data structure is stored in a memory in a predetermined format. The information created by the VBV buffer information creator 36 may be simultaneously written in bursts when the data writing unit 37 writes the encoded data (MPEG image data) in the recording medium 31. Further, the information created by the VBV buffer information creator 36 is recorded and held in a predetermined format when the encoded data (MPEG image data) has been written, that is, after the user temporarily stops or finishes the image compression recording. The written data may be converted into the structure shown in FIG. 1 and written by the data writing unit 37.

【0087】次に、記録媒体31に記録されている第1
及び第2の2つのMPEG画像データに対して、所定の位置
からの繋ぎ再生を可能とするための区間Aの部分の再符
号化を行う場合の説明を図8を用いて行う。
Next, the first data recorded on the recording medium 31 is recorded.
A description will be given with reference to FIG. 8 of the case of re-encoding the portion of the section A for enabling the continuous reproduction from a predetermined position with respect to the second two MPEG image data.

【0088】まず、図示せぬ、ユーザーインターフェー
スから、すでに記録されている第1及び第2の2つのMP
EG画像データのどこのポイントから繋ぎ再生するかを指
定してもらう。
First, from the user interface (not shown), the first and second MPs already recorded are recorded.
Ask the user to specify from which point in the EG image data to connect and play.

【0089】記録媒体31には、すでに第1及び第2の
2つのMPEG画像データ(圧縮符号化ストリーム)と、図
4に示した記録再生装置により生成したVBVバッファ情
報とが記録されている。従って、図4に示すデータ読み
取り部32ではVBVバッファ情報を読み取り、接続点b
(繋ぎ指定位置)から区間Aの分だけ前にある位置の図
8におけるaの位置のVBV値、PTM値、相対アドレスを得
る。
The recording medium 31 has already recorded the first and second two MPEG image data (compression-coded streams) and the VBV buffer information generated by the recording / reproducing apparatus shown in FIG. Therefore, the data reading unit 32 shown in FIG. 4 reads the VBV buffer information, and the connection point b
The VBV value, the PTM value, and the relative address of the position a in FIG.

【0090】前記ユーザーインターフェースからの繋ぎ
再生位置の指定が、例えば、その指定の仕方が、データ
の相対アドレスの位置情報の場合には、VBVバッファ情
報の構造のEPn情報内の相対アドレス情報にもっとも近
い値のデータにリンクされているVBV値、PTM値を用い
る。また、もし、その指定の仕方が、データの開始時刻
からの時間や、繋ぎ再生されるポイントのタイムスタン
プ情報であれば、同様にVBVバッファ情報の構造のEPn
情報内のPTM値を用いて、この値が90KHzのクロック
で記録されている場合にはその値に 1/90000秒の値を乗
じることで秒の時間を得ることができ、その繋ぎ再生す
る位置(相対アドレス)とVBV値、PTM値を得ることがで
きる。
When the connection reproduction position is specified from the user interface, for example, when the specification method is position information of the relative address of the data, the relative address information in the EPn information of the VBV buffer information structure is most Use VBV and PTM values linked to data of similar values. If the designation method is the time from the start time of the data or the time stamp information of the point to be connected and reproduced, the EPn of the structure of the VBV buffer information is similarly set.
Using the PTM value in the information, if this value is recorded with a clock of 90 KHz, you can obtain the time in seconds by multiplying that value by the value of 1/90000 seconds, and the position for connecting and reproducing. (Relative address), VBV value, and PTM value can be obtained.

【0091】これらの値はパラメータ設定器34に入力
され、画像符号化器35においてその設定値から符号化
が開始される。一方、符号化データサーチ器38では再
符号化する区間Aの先頭位置を、すでに記録してあるビ
ットストリームに対してサーチする。サーチはデータの
相対アドレスを用いて、そのビットストリームファイル
の頭からの位置にポインタを設定する。
These values are input to the parameter setting unit 34, and the image encoder 35 starts encoding from the set values. On the other hand, the encoded data search unit 38 searches the head position of the section A to be re-encoded in the already recorded bit stream. The search uses the relative address of the data and sets the pointer at a position from the beginning of the bitstream file.

【0092】画像符号化器35では区間Aに対応する第
1のMPEG画像データを復号化し、復号画像を用いて
再度、VBVバッファ占有値の推移が、aの位置でのVB
V値から開始されて、dの位置でのVBV値までで終了する
ようにレートコントロールを行ってMPEG符号化方式で再
符号化を行う。再符号化は前記のように完全に復号した
画像を用いても良いが、特開平11−234677に開
示されているような、ビットストリーム上での符号量コ
ントロールの技術を用いても良い。
In the image encoder 35, the first MPEG image data corresponding to the section A is decoded, and using the decoded image, the transition of the VBV buffer occupancy value is VBV at the position a.
The rate control is performed so that it starts from the V value and ends up to the VBV value at the position of d, and re-encoding is performed by the MPEG encoding method. The re-encoding may use the completely decoded image as described above, but may use the code amount control technique on the bit stream as disclosed in Japanese Patent Laid-Open No. 11-234677.

【0093】ここでもし、再符号化する区間Aが、VB
Vバッファ情報の最小単位より長い場合には、再符号化
しながら、ビットストリームのIピクチャー、Pピクチャ
ーの1フレーム前のピクチャー符号化終了時点での発生
符号量とPTM値、VBV値を、毎回、VBVバッファ情報作成
器36へ送信する。それと共に、再符号化データをデー
タ書き込み部37へ送信する。
Here, if the section A to be re-encoded is VB
If it is longer than the minimum unit of the V buffer information, while re-encoding, the generated code amount, PTM value, and VBV value at the end of picture encoding of the I picture of the bit stream and the P picture one frame before are It is transmitted to the VBV buffer information generator 36. At the same time, the re-encoded data is transmitted to the data writing unit 37.

【0094】VBVバッファ情報作成器36では、入力さ
れた発生符号量値とPTM値とVBV値から図1に示す構造の
データを作成する。もしくはそのデータ構造を作成する
のに必要なデータをメモリーして所定のフォーマットで
記録保持する。VBVバッファ情報作成器36でのその情
報は、符号化データが書き込まれているときに、同時に
バースト的に書き込みを行っても良いし、符号化データ
が書き終わったとき、すなわち、ユーザーが画像圧縮記
録を一時停止、もしくは終了したときに所定のフォーマ
ットで記録保持されていたデータから、図1の構造に変
換して書き込みを行っても良い。
The VBV buffer information creator 36 creates data having the structure shown in FIG. 1 from the input generated code amount value, PTM value and VBV value. Alternatively, the data necessary for creating the data structure is stored in a memory in a predetermined format. The information in the VBV buffer information generator 36 may be written in bursts at the same time when the encoded data is being written, or when the encoded data has been written, that is, when the user compresses the image. Data recorded and held in a predetermined format when recording is temporarily stopped or ended may be converted into the structure shown in FIG. 1 for writing.

【0095】再符号化された区間Aの画像データ(繋ぎ
区間A再符号化データ)は、第1、第2のMPEG画像
データと分離された別のファイルとして記録する。もし
くは、記録第2のMPEG画像データの先頭に連結して
記録する。
The re-encoded image data of the section A (connection section A re-encoded data) is recorded as a separate file separated from the first and second MPEG image data. Alternatively, the second MPEG image data to be recorded is linked and recorded at the beginning.

【0096】第1のMPEG画像データと、第2のMPEG画像
データと、VBVバッファ占有値に関する情報とそのデー
タアドレス情報と、前記区間Aの再符号化画像データ
(または前記区間Bの再符号化画像データ、または前記
区間A+Bの再符号化画像データ)は、同一記録メディ
アに記録されていても、任意の組み合わせで複数の記録
メディアに記録くされていても、それぞれが異なる記録
メディアに記録されていてもかまわない。複数の記録メ
ディアに分けて記録されている場合には、それぞれの記
録メディア同士がリンクされて(それぞれのデータ、情
報同士がリンクされて)運用されるように、同一情報群
であることを示す情報、例えばIDなどを各記録メディア
に記録しておくと良い。第1のMPEG画像データと、第2
のMPEG画像データと、前記区間Aの再符号化画像データ
(または前記区間Bの再符号化画像データ、または前記
区間A+Bの再符号化画像データ)とが同一の記録媒体
に記録されている場合には、一つの記録媒体で、再生装
置側の繋ぎ再生を制御できる。
The first MPEG image data, the second MPEG image data, the information about the VBV buffer occupation value and its data address information, the re-encoded image data of the section A (or the re-encoding of the section B) The image data or the re-encoded image data of the section A + B) is recorded on different recording media, whether recorded on the same recording medium or a plurality of recording media in any combination. It doesn't matter. When recorded separately on multiple recording media, it indicates the same information group so that each recording media can be operated by linking them (each data and information are linked). Information, such as an ID, may be recorded in each recording medium. The first MPEG image data and the second
When the MPEG image data and the re-encoded image data of the section A (or the re-encoded image data of the section B or the re-encoded image data of the section A + B) are recorded on the same recording medium. In addition, one recording medium can control connection reproduction on the reproduction device side.

【0097】なお、繋ぎ区間再符号化画像データを得る
ためのVBVバッファ占有値に関する情報を、媒体に記録
されているサイド情報から読み出すのではなく、計算に
より求める場合には、VBVバッファ占有値に関する情報
とそのデータアドレス情報とを記録しておく必要はな
い。
When the information regarding the VBV buffer occupancy value for obtaining the connecting section re-encoded image data is obtained by calculation instead of reading from the side information recorded on the medium, the information regarding the VBV buffer occupancy value is calculated. It is not necessary to record the information and its data address information.

【0098】上記実施例で、記録メディアは記録再生装
置内の記録メディアとして説明したが、記録再生装置に
着脱自在の記録メディア、ネットワークを介した記録メ
ディア(データベース)であってもかまわない。
In the above embodiments, the recording medium has been described as a recording medium in the recording / reproducing apparatus, but a recording medium detachable from the recording / reproducing apparatus or a recording medium (database) via a network may be used.

【0099】また、上記実施例では、単体のMPEG画像デ
ータに着目して画像データをつなぐ例を説明したが、音
声データなどと共にMPEG方式でパケット多重化されたMP
EG多重化データであるMPEGトランスポートストリーム内
のMPEG画像データをつなぐ場合に適応しても良い。
Further, in the above-mentioned embodiment, an example in which image data is connected by paying attention to a single MPEG image data has been described.
This may be applied when connecting the MPEG image data in the MPEG transport stream which is the EG multiplexed data.

【0100】トランスポートストリームには可変長符号
化されているMPEG画像データ、固定長符号化されている
MPEG1レイヤー2オーディオもしくはAC3などが多重化
されている場合が多い。従って、その多重化されたデー
タ中の要素符号化データのひとつであるMPEG画像データ
をつなぐ場合、接続する点においてMPEGで規定されるST
Dバッファ(ビデオではVBVバッファ)の整合性を考慮し
た接続方法として、前記説明した実施例の方法を適応す
ればよい。
[0100] The transport stream has variable length coded MPEG image data and fixed length coded.
In many cases, MPEG1 layer 2 audio or AC3 is multiplexed. Therefore, when connecting MPEG image data, which is one of the element-encoded data in the multiplexed data, the ST specified by MPEG at the point of connection.
As a connection method considering the consistency of the D buffer (VBV buffer in video), the method of the above-described embodiment may be applied.

【0101】例えば第1及び第2のMPEGトランスポート
ストリーム内からそれぞれ接続対象の第1及び第2のMP
EG画像データを取り出し、上記した実施例と同様にして
接続する。繋ぎ再生に使用する繋ぎ区間再符号化データ
(前記区間Aの再符号化画像データ、前記区間Bの再符
号化画像データ、前記区間A+Bの再符号化画像デー
タ)は、MPEG方式でパケット多重化されたMPEG多重化デ
ータとして生成、記録されてもよい。
For example, the first and second MPs to be connected from within the first and second MPEG transport streams, respectively.
EG image data is taken out and connected in the same manner as in the above-mentioned embodiment. The rejoined segment re-encoded data (re-encoded image data of the section A, re-encoded image data of the section B, re-encoded image data of the section A + B) used for the joint reproduction is packet-multiplexed by the MPEG method. It may be generated and recorded as the generated MPEG multiplexed data.

【0102】図14(1)の状態はMPEGトランスポート
ストリームのパケット多重化されたデータの状態を示し
ている。Vと記載されているパケットはビデオパケッ
ト、Aと記載されているパケットはオーディオのパケッ
ト、Sと記載されているパケットはシステムで使用され
るPATやPMTなどの情報パケットである。おのおのMPEG2
システムのルールに準拠した形で記録されている。ビデ
オパケットは薄いグレーの色を施してある。これらの全
体を示した状態が同図(2)である。このビデオパケッ
トだけを集めた状態が同図(3)である。このビデオパ
ケットの中身は、同図(4)に示すように始めがIピク
チャーであり、次にBピクチャーが2枚、そのあとにPピ
クチャーが1枚、と続いてくのが典型的な例である。
The state of FIG. 14 (1) shows the state of packet-multiplexed data of the MPEG transport stream. Packets marked with V are video packets, packets marked with A are audio packets, and packets marked with S are information packets such as PAT and PMT used in the system. Each MPEG2
It is recorded according to the system rules. Video packets are colored in light gray. The state showing all of these is shown in FIG. The state in which only these video packets are collected is shown in FIG. As shown in (4) in the figure, the typical contents of this video packet are an I picture, two B pictures, then one P picture, and so on. is there.

【0103】これらのピクチャーの1枚もしくは複数の
ピクチャーにおいて再符号化によって符号量を調整す
る。例えば符号量が削減された状態が同図(5)であ
る。各ピクチャーの符号量はそれぞれ小さくなってい
る。その状態でパケット化したものが同図(6)であ
る。減少した部分には黒色を施してある。このパケット
分、ビデオの全体の量が減少する。そして、TSを再構築
する。この状態を全体で表現したものが同図(7)であ
る。同図(7)を拡大したものが同図(8)である。結
果的にVパケットの一部が減少し、それ以外の要素デー
タパケットはそのまま多重化する。
The code amount is adjusted by re-encoding one or more of these pictures. For example, the state in which the code amount is reduced is shown in (5) of FIG. The code amount of each picture is small. The packetization in that state is shown in FIG. The reduced part is colored black. This packet reduces the overall amount of video. Then rebuild the TS. This state is represented in its entirety in FIG. 7 (7). FIG. 8 is an enlarged view of FIG. 7 (7). As a result, a part of the V packet is reduced, and the other element data packets are multiplexed as they are.

【0104】MPEGシステムの規定ではPCRクロック情報
は100msecに一度は記録されていなければならない。
また、データ長が変更されているので、それぞれの要素
パケットに記載されているPCRクロック情報は必要に応
じて変更する。また、ビデオパケットにはアクセスユニ
ット(フレームやフィールドのピクチャー単位)の先頭
のPESヘッダーが存在するパケットにPTSやDTSが記述さ
れている。オーディオパケットには1つもしくは複数の
オーディオフレームをPESでパッキングしたその先頭のP
ESヘッダーが存在するパケットにPTSが記載されてい
る。これらのタイムスタンプ情報は画像においてはピク
チャー数を増減していない場合には変更する必要は無い
し、オーディオも再生時間長を増減しなければ変更の必
要はないが、それ以外の場合には、適切なPTS,DTSを追
加修正する。
According to the MPEG system regulations, PCR clock information must be recorded once every 100 msec.
Also, since the data length has been changed, the PCR clock information described in each element packet is changed as necessary. Also, in the video packet, PTS and DTS are described in the packet in which the leading PES header of the access unit (picture unit of frame or field) exists. In the audio packet, one or more audio frames are packed by PES, and the first P
PTS is described in the packet with ES header. These time stamp information need not be changed unless the number of pictures in the image is increased or decreased, and the audio need not be changed unless the reproduction time length is increased or decreased, but in other cases, Add and modify appropriate PTS and DTS.

【0105】さらにまた、単純に再符号化する場合に
は、予測符号化のリセットタイミングであるIピクチャ
ーからのGOP単位が扱いやすいが、GOPが独立していない
場合、即ち、境界のBピクチャーが双方のGOPにまたがっ
て予測されている場合(GOPのclosed gop=0の場合)に
は、一つ前のGOPの最後のリファレンスピクチャーを復
号化して、図示せぬ画像再符号化用メモリーなどに保持
しておくことが必要になる場合がある。
Furthermore, when simply re-encoding, the GOP unit from the I picture, which is the reset timing of predictive encoding, is easy to handle, but when the GOPs are not independent, that is, the B picture at the boundary is If it is predicted across both GOPs (when GOP closed gop = 0), the last reference picture of the previous GOP is decoded and stored in an image re-encoding memory (not shown). It may be necessary to keep it.

【0106】第1のMPEG多重化データ(第1のMPEGトラ
ンスポートストリーム)と、第2のMPEG画像データ(第
2のMPEGトランスポートストリーム)と、VBVバッファ
占有値に関する情報とそのデータアドレス情報と、前記
区間Aの再符号化画像データ(または前記区間Bの再符
号化画像データ、または前記区間A+Bの再符号化画像
データ)を要素符号化データとして含んで、MPEG方式に
よりパケット多重化して生成した繋ぎ区間MPEG多重化デ
ータとは、同一記録メディアに記録されていても、任意
の組み合わせで複数の記録メディアに記録くされていて
も、それぞれが異なる記録メディアに記録されていても
かまわない。複数の記録メディアに分けて記録されてい
る場合には、それぞれの記録メディア同士がリンクされ
て(それぞれのデータ、情報同士がリンクされて)運用
されるように、同一情報群であることを示す情報、例え
ばIDなどを各記録メディアに記録しておくと良い。第1
のMPEG多重化画像データと、第2のMPEG多重化画像デー
タと、前記区間Aの再符号化画像データ(または前記区
間Bの再符号化画像データ、または前記区間A+Bの再
符号化画像データ)の繋ぎ区間MPEG多重化データとが同
一の記録媒体に記録されている場合には、一つの記録媒
体で、再生装置側の繋ぎ再生を制御できる。
First MPEG multiplexed data (first MPEG transport stream), second MPEG image data (second MPEG transport stream), information on VBV buffer occupancy value and its data address information. , The re-encoded image data of the section A (or the re-encoded image data of the section B, or the re-encoded image data of the section A + B) is included as element encoded data, and is packet-multiplexed by the MPEG method to be generated. The connected section MPEG multiplexed data may be recorded on the same recording medium, may be recorded on a plurality of recording media in an arbitrary combination, or may be recorded on different recording media. When recorded separately on multiple recording media, it indicates the same information group so that each recording media can be operated by linking them (each data and information are linked). Information, such as an ID, may be recorded in each recording medium. First
MPEG-multiplexed image data, second MPEG-multiplexed image data, re-encoded image data of the section A (or re-encoded image data of the section B, or re-encoded image data of the section A + B) In the case where the MPEG multiplexed data of the connection section is recorded on the same recording medium, the connection reproduction on the reproducing device side can be controlled by one recording medium.

【0107】[0107]

【発明の効果】以上の通り、本発明を用いれば、第1及
び第2の2つのMPEG画像データを(または、第1のMPEG
画像データを要素符号化データとして含むパケット多重
化された第1のMPEG多重化データと、第2のMPEG画像デ
ータを要素符号化データとして含むパケット多重化され
た第2のMPEG多重化データとを)、それぞれの指定され
た繋ぎ指定位置で、前記第1のMPEG画像データから前記
第2のMPEG画像データへ繋げて再生させる際に(前記第
1のMPEG多重化データから前記第2のMPEG多重化データ
へ繋げて再生させる際に)、VBVバッファの接続にオー
バーフローやアンダーフローの矛盾が生じることなく、
シームレスで高品位な再生を実現させることができる。
As described above, according to the present invention, the first and second MPEG image data (or the first MPEG image data) can be obtained.
Packet-multiplexed first MPEG multiplexed data including image data as element encoded data, and packet-multiplexed second MPEG multiplexed data including second MPEG image data as element encoded data ), When the first MPEG image data is connected to the second MPEG image data to be reproduced at each specified connection position (from the first MPEG multiplexed data to the second MPEG multiplexed data). (When connecting to the encrypted data and playing), there is no inconsistency of overflow or underflow in the connection of the VBV buffer,
Seamless and high-quality reproduction can be realized.

【0108】また、本発明では、シームレスで高品位な
再生を実現させるために新たに生成・記録する画像デー
タとしては、設定した繋ぎ区間の再符号化データのみで
よいので、繋ぎ区間の再符号化データを記録する記録媒
体を効率よく利用できる。
Further, in the present invention, since the re-encoded data of the set connecting section is the only image data to be newly generated / recorded in order to realize seamless high-quality reproduction, re-coding of the connecting section is performed. The recording medium for recording the encoded data can be efficiently used.

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

【図1】本発明を適用した記録再生装置の一実施例に基
づくVBVバッファ情報構造を示す図である。
FIG. 1 is a diagram showing a VBV buffer information structure based on an embodiment of a recording / reproducing apparatus to which the present invention is applied.

【図2】一実施例におけるMPEG画像データと相対アドレ
スとの関係を示す図である。
FIG. 2 is a diagram showing a relationship between MPEG image data and a relative address according to an embodiment.

【図3】一実施例におけるVBV値を説明する説明図であ
る。
FIG. 3 is an explanatory diagram illustrating a VBV value according to an embodiment.

【図4】本発明を適用した記録再生装置の一実施例を示
すブロック図である。
FIG. 4 is a block diagram showing an embodiment of a recording / reproducing apparatus to which the present invention is applied.

【図5】従来のMPEG符号化器の一例を示す図である。FIG. 5 is a diagram showing an example of a conventional MPEG encoder.

【図6】従来のMPEG復号化器の一例を示す図である。FIG. 6 is a diagram showing an example of a conventional MPEG decoder.

【図7】MPEGにおけるVBVバッファ概念を説明するため
の図である。
FIG. 7 is a diagram for explaining the concept of a VBV buffer in MPEG.

【図8】本発明で実現可能とする繋ぎ再生の概念を説明
するための図である。
FIG. 8 is a diagram for explaining the concept of connection reproduction that can be realized by the present invention.

【図9】本発明で実現可能とする繋ぎ再生の概念を説明
するための図である。
FIG. 9 is a diagram for explaining the concept of connection reproduction that can be realized by the present invention.

【図10】本発明で実現可能とする繋ぎ再生の概念を説
明するための図である。
FIG. 10 is a diagram for explaining the concept of connection reproduction that can be realized by the present invention.

【図11】従来のMPEG多重化システムを示す説明図であ
る。
FIG. 11 is an explanatory diagram showing a conventional MPEG multiplexing system.

【図12】MPEGTSとPS及びPESの関連を示す説明図であ
る。
FIG. 12 is an explanatory diagram showing the relationship between MPEGTS and PS and PES.

【図13】MPEGTSのPSIの使用例を示す説明図である。FIG. 13 is an explanatory diagram showing a usage example of PSI of MPEG TS.

【図14】MPEGTSパケット配置を示す説明図である。FIG. 14 is an explanatory diagram showing an arrangement of MPEG TS packets.

【図15】本発明で実現可能とする繋ぎ再生の概念を説
明するための図である。
FIG. 15 is a diagram for explaining the concept of connection reproduction that can be realized by the present invention.

【図16】一実施例におけるVBVバッファ占有値に関す
る情報値を説明するための図である。
FIG. 16 is a diagram for explaining an information value related to a VBV buffer occupancy value in one embodiment.

【図17】VBVバッファ占有値とVBV delay値の関係を示
す図である。
FIG. 17 is a diagram showing a relationship between a VBV buffer occupation value and a VBV delay value.

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

31 記録媒体 32 データ読み取り部 33 VBVバッファ情報検出器 34 パラメータ設定器 35 画像符号化器 36 VBVバッファ情報作成器 37 データ書き込み部 38 符号化データサーチ器 31 recording medium 32 data reader 33 VBV buffer information detector 34 Parameter setter 35 image encoder 36 VBV buffer information generator 37 Data writing section 38 Coded data searcher

フロントページの続き (72)発明者 猪羽 渉 神奈川県横浜市神奈川区守屋町3丁目12番 地 日本ビクター株式会社内 (72)発明者 上田 健二朗 神奈川県横浜市神奈川区守屋町3丁目12番 地 日本ビクター株式会社内 (72)発明者 日暮 誠司 神奈川県横浜市神奈川区守屋町3丁目12番 地 日本ビクター株式会社内 Fターム(参考) 5C053 GA11 GB05 GB21 GB22 GB38 5C059 KK35 KK39 MA00 MA05 MA14 MA23 MC11 MC38 ME02 NN01 NN21 PP05 PP06 PP07 PP08 RC11 SS12 TA46 TB01 TB04 TC16 TC31 UA02 UA05 UA32 UA38 5D044 AB07 EF03 GK08 GK10 HL14Continued front page    (72) Inventor Wataru Inaba             3-12 Moriya-cho, Kanagawa-ku, Yokohama-shi, Kanagawa             Local Victor Company of Japan, Ltd. (72) Inventor Kenjiro Ueda             3-12 Moriya-cho, Kanagawa-ku, Yokohama-shi, Kanagawa             Local Victor Company of Japan, Ltd. (72) Inventor Seiji Higurashi             3-12 Moriya-cho, Kanagawa-ku, Yokohama-shi, Kanagawa             Local Victor Company of Japan, Ltd. F-term (reference) 5C053 GA11 GB05 GB21 GB22 GB38                 5C059 KK35 KK39 MA00 MA05 MA14                       MA23 MC11 MC38 ME02 NN01                       NN21 PP05 PP06 PP07 PP08                       RC11 SS12 TA46 TB01 TB04                       TC16 TC31 UA02 UA05 UA32                       UA38                 5D044 AB07 EF03 GK08 GK10 HL14

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】MPEG符号化方式で符号化された画像データ
である第1及び第2の2つのMPEG画像データを、それぞ
れのMPEG画像データにおける指定された繋ぎ指定位置
で、前記第1のMPEG画像データから前記第2のMPEG画像
データへ繋げて再生させるためのデータとして、前記MP
EG符号化方式で符号化された第2の繋ぎ区間再符号化デ
ータを生成して記録させる記録手段を設けたMPEGデータ
記録装置であって、 前記記録手段は、前記第2のMPEG画像データにおける前
記繋ぎ指定位置を開始位置とし、前記第2のMPEG画像デ
ータにおける前記繋ぎ指定位置から第2の所定時間分後
の位置を終了位置とする区間を第2の繋ぎ区間として、
前記第2の繋ぎ区間の前記第2のMPEG画像データを復号
して得た画像データである第2の繋ぎ区間復号画像デー
タを、前記MPEG符号化方式で再符号化して前記第2の繋
ぎ区間再符号化データを生成する再符号化手段を備え、
前記第2の繋ぎ区間再符号化データを記録媒体に記録さ
せるものであり、 前記再符号化手段は、前記再符号化時において、VBVバ
ッファ占有値に関する情報値の推移が、前記第1のMPEG
画像データでの前記繋ぎ指定位置に対応する位置におけ
る前記第1のMPEG画像データの符号化時のVBVバッファ
占有値に関する情報値から開始されて、前記第2の繋ぎ
区間の終了位置に対応する位置における前記第2のMPEG
画像データの符号化時のVBVバッファ占有値に関する情
報値までで終了するように符号量制御を行い再符号化を
行うものである、ことを特徴とするMPEGデータ記録装
置。
1. The first and second MPEG image data, which are image data encoded by the MPEG encoding method, are assigned to the first MPEG at a designated connection designation position in each of the MPEG image data. The MP data is used as data for connecting the image data to the second MPEG image data for reproduction.
An MPEG data recording device provided with recording means for generating and recording second connection section re-encoded data encoded by the EG encoding method, wherein the recording means is a part of the second MPEG image data. A section in which the connection designated position is a start position and a position after a second predetermined time from the connection designated position in the second MPEG image data is an end position is a second connection section,
The second connection section decoded image data, which is image data obtained by decoding the second MPEG image data in the second connection section, is re-encoded by the MPEG encoding method to obtain the second connection section. A re-encoding means for generating re-encoded data,
The second connection segment re-encoded data is recorded on a recording medium, and the re-encoding unit changes the information value relating to the VBV buffer occupation value at the time of the re-encoding.
A position corresponding to the end position of the second connection section, starting from the information value relating to the VBV buffer occupation value at the time of encoding the first MPEG image data at the position corresponding to the connection specification position in the image data The second MPEG in
An MPEG data recording device, characterized in that a code amount is controlled and re-encoding is performed so as to end up to an information value regarding a VBV buffer occupation value at the time of encoding image data.
【請求項2】請求項1に記載のMPEGデータ記録装置にお
いて、 前記記録手段は、前記第2の繋ぎ区間再符号化データを
要素符号化データとして含んで、MPEG方式によりパケッ
ト多重化して生成した第2の繋ぎ区間MPEG多重化データ
を記録媒体に記録させるものであることを特徴とするMP
EGデータ記録装置。
2. The MPEG data recording apparatus according to claim 1, wherein the recording unit includes the second connection section re-encoded data as element encoded data and packet-multiplexes the MPEG method to generate the encoded data. MP for recording second multiplexed MPEG multiplexed data on a recording medium
EG data recorder.
JP2002189975A 2001-05-30 2002-06-28 MPEG data recording device Expired - Lifetime JP3748244B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002189975A JP3748244B2 (en) 2001-05-30 2002-06-28 MPEG data recording device

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2001-162346 2001-05-30
JP2001162346 2001-05-30
JP2002189975A JP3748244B2 (en) 2001-05-30 2002-06-28 MPEG data recording device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2002155986A Division JP3748234B2 (en) 2001-05-30 2002-05-29 MPEG data recording method

Publications (2)

Publication Number Publication Date
JP2003052018A true JP2003052018A (en) 2003-02-21
JP3748244B2 JP3748244B2 (en) 2006-02-22

Family

ID=26615963

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002189975A Expired - Lifetime JP3748244B2 (en) 2001-05-30 2002-06-28 MPEG data recording device

Country Status (1)

Country Link
JP (1) JP3748244B2 (en)

Also Published As

Publication number Publication date
JP3748244B2 (en) 2006-02-22

Similar Documents

Publication Publication Date Title
US8260122B2 (en) MPEG picture data recording apparatus, MPEG picture data recording method, MPEG picture data recording medium, MPEG picture data generating apparatus, MPEG picture data reproducing apparatus, and MPEG picture data reproducing method
JP2003169292A (en) After-recording device, computer program, recording medium, transmission method and reproducing device
JP3748234B2 (en) MPEG data recording method
JP2003052040A (en) Mpeg data reproduction equipment
JP3748243B2 (en) MPEG data recording device
JP2005198350A (en) After-recording signal reproducing method
JP3748245B2 (en) MPEG data recording device
JP3748244B2 (en) MPEG data recording device
JP3748241B2 (en) MPEG data recording method
JP3748242B2 (en) MPEG data recording method
JP3748240B2 (en) MPEG data recording method
JP2008005520A (en) Mpeg data recording and reproducing method
JP2007325304A (en) Mpeg data recording and reproducing method
JP4148200B2 (en) MPEG image data recording apparatus and MPEG image data recording method
JP2004297829A (en) Mpeg data reproduction equipment
JP2003052021A (en) Mpeg data reproduction method
JP2003052012A (en) Mpeg data recording system, mpeg data recording medium, and mpeg data generator
JP4380068B2 (en) Data reproduction device and editing device
JP4192861B2 (en) MPEG image data recording apparatus and MPEG image data recording method
JP2007336574A (en) Mpeg data recording and reproducing apparatus
JP2008005519A (en) Mpeg data recording and reproducing apparatus
JP2008005522A (en) Mpeg data recording and reproducing method
JP2008005521A (en) Mpeg data recording and reproducing method
JP2004289871A (en) Method for reproducing mpeg data
JP2002112183A (en) Mpeg image data recording method

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050802

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20051003

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20051111

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20051124

R151 Written notification of patent or utility model registration

Ref document number: 3748244

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

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

Free format text: PAYMENT UNTIL: 20091209

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20101209

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20111209

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20111209

Year of fee payment: 6

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20121209

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20121209

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20131209

Year of fee payment: 8

EXPY Cancellation because of completion of term