JPH10174058A - Coding quantity control device - Google Patents

Coding quantity control device

Info

Publication number
JPH10174058A
JPH10174058A JP33170696A JP33170696A JPH10174058A JP H10174058 A JPH10174058 A JP H10174058A JP 33170696 A JP33170696 A JP 33170696A JP 33170696 A JP33170696 A JP 33170696A JP H10174058 A JPH10174058 A JP H10174058A
Authority
JP
Japan
Prior art keywords
code amount
encoding
capacity
control device
coding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP33170696A
Other languages
Japanese (ja)
Inventor
Koichi Tsuchikane
孝一 土金
Ten Urano
天 浦野
Akiomi Kunihazama
亜輝臣 国狭
Hideyuki Fujii
秀行 藤井
Noburo Ito
修朗 伊藤
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric Co 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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP33170696A priority Critical patent/JPH10174058A/en
Publication of JPH10174058A publication Critical patent/JPH10174058A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To realize encoding of natural image by providing an encoding means for outputting coded data and a coding quantity control means for setting a target per unit segment based on a medium capacity and the number of segments and controlling the coding quantity of the coding data to be outputted by the encoding means. SOLUTION: A free capacity of a recording medium 1 comprising an optical magnetic disk is detected by a medium capacity detecting means 2. The detecting means 2 detects the free capacity by subtracting a recorded data quantity from a total storage capacity. A coding quantity control means 3 finds the number of corresponding segments by entering a recording estimated time, divides the free capacity by the number of segments and finding the target coding quantity per unit segment, and controls the encoding means 4 corresponding to this. Thus obtained coded data is stored in a generated coded quantity detecting means 5. The detecting means 5 feeds back the detected coded quantity to the control means 3 to control so that the coding data quantity per segment approaches to the target coding quantity of the detected coded quantity.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、画像等のデータを
符号化し、発生符号量により符号化ビットレートを動的
に変化させることによって、媒体容量の限られた記録媒
体に効率よく記録することができる符号化装置に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to encoding data such as an image and dynamically changing the encoding bit rate according to the generated code amount, thereby efficiently recording the data on a recording medium having a limited medium capacity. The present invention relates to an encoding device capable of performing the following.

【0002】[0002]

【従来の技術】従来、記録媒体にMPEGにより符号化
した画像データを記録する方法としては、GOP毎の符
号量を一定にして記録する固定ビットレートの符号化方
法が利用されている。一方、特開平5−122655号
公報には、テープ残量と残り記録時間に応じて目標符号
量を制御し乍ら画像を符号化して記録するリアルタイム
の可変ビットレートの符号化方法が提案されている。
2. Description of the Related Art Conventionally, as a method of recording image data encoded by MPEG on a recording medium, a constant bit rate encoding method of recording with a constant code amount for each GOP has been used. On the other hand, Japanese Patent Application Laid-Open No. 5-122655 proposes a real-time variable bit rate encoding method for encoding and recording an image while controlling a target code amount according to the remaining amount of tape and the remaining recording time. I have.

【0003】[0003]

【発明が解決しようとする課題】この従来技術によれ
ば、テープ終端に於て圧縮し難い複雑な画像が発生した
場合に、画質が低下するおそれがある。そこで、本発明
は、リアルタイムの可変ビットレートの符号化方法に於
て、この画質の低下部分をセクタ毎に分散化することに
より、自然な画像の符号化を実現する物である。
According to this prior art, when a complicated image that is difficult to compress occurs at the end of the tape, the image quality may be degraded. Therefore, the present invention realizes a natural image encoding by dispersing the degraded portion of the image quality for each sector in a real-time variable bit rate encoding method.

【0004】[0004]

【課題を解決するための手段】本発明は、データを符号
化して符号化データを出力する符号化手段と、媒体容量
とセグメントの数に基づき単位セグメント当りの目標ま
たは予測符号量を設定し前記符号化手段より出力される
符号化データの符号量を制御する符号量制御手段とを、
それぞれ配することを特徴とする。
According to the present invention, there is provided an encoding means for encoding data and outputting encoded data, and setting a target or predicted code amount per unit segment based on a medium capacity and the number of segments. Code amount control means for controlling the code amount of the encoded data output from the encoding means,
It is characterized by being arranged respectively.

【0005】また本発明は、前記媒体容量が、媒体の空
容量であることを特徴とする。更に本発明は、前記媒体
容量が、指定記録エリアの容量であることを特徴とす
る。更に本発明は、前記各セグメント毎の前記目標符号
量が、共通であることを特徴とする。
Further, the present invention is characterized in that the medium capacity is an empty capacity of the medium. Further, the present invention is characterized in that the medium capacity is a capacity of a designated recording area. Further, the present invention is characterized in that the target code amount for each of the segments is common.

【0006】更に本発明は、前記予測符号量が、メモリ
に記憶されている過去の複数のセグメント毎の符号量に
応じて設定されることを特徴とする。更に本発明は、前
記メモリが、シーンチェンジでリセットされることを特
徴とする。更に本発明は、前記予測符号量が、最尤推定
法により設定されることを特徴とする。
Further, the present invention is characterized in that the predicted code amount is set in accordance with a code amount for each of a plurality of past segments stored in a memory. Further, the present invention is characterized in that the memory is reset by a scene change. Further, the present invention is characterized in that the predicted code amount is set by a maximum likelihood estimation method.

【0007】更に本発明は、画質優先モードの設定によ
り前記符号化手段の符号化を制限することを特徴とす
る。更に本発明は、前記セグメントが、一定時間である
ことを特徴とする。
Further, the present invention is characterized in that the encoding of the encoding means is restricted by setting an image quality priority mode. Further, the invention is characterized in that the segment is a fixed time.

【0008】[0008]

【発明の実施の形態】以下、本発明を図示する実施例に
従い説明する。 (第1実施例)まず、第1実施例は、記録媒体を光磁気
ディスク、データを画像データ、符号化手法としてMP
EGを採用するものであり、5分を1セグメントとして
目標符号量を設定するものであるが、本発明に於て、記
録媒体やデータや符号化種法やセグメントの時間につい
ては、特に前述するものに限られるものではない。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below with reference to the illustrated embodiments. (First Embodiment) First, in the first embodiment, the recording medium is a magneto-optical disk, the data is image data, and the encoding method is MP.
The EG is adopted, and the target code amount is set with 5 minutes as one segment. In the present invention, the recording medium, data, coding type, and segment time are particularly described above. It is not limited to things.

【0009】図1に示す様に第1の実施例では、光磁気
ディスクより成る記録媒体1の空容量即ち記録可能容量
を媒体容量検出手段2にて検出する。この媒体容量検出
手段2は、媒体を再生して得られる全記憶容量より、記
録済データ量を減算することにより空容量を検出する。
前記符号量制御手段3は、記録予定時間を入力して対応
するセグメントの数を求め、空容量をセグメントの数で
割り算して単位セグメント当りの目標符号量を求め、こ
の目標符号量に応じて画像データを入力するMPEGの
符号化手段4を制御する。
As shown in FIG. 1, in the first embodiment, the free capacity, ie, the recordable capacity of the recording medium 1 composed of a magneto-optical disk is detected by the medium capacity detecting means 2. This medium capacity detecting means 2 detects the free capacity by subtracting the recorded data amount from the total storage capacity obtained by reproducing the medium.
The code amount control means 3 inputs the scheduled recording time to determine the number of corresponding segments, divides the free space by the number of segments to obtain a target code amount per unit segment, and calculates the target code amount according to the target code amount. It controls the MPEG encoding means 4 for inputting image data.

【0010】その結果得られる符号化データは、前記記
録媒体1に記録されると共に、発生符号量検出手段5に
記憶される。前記発生符号量検出手段5は、検出符号量
を符号量制御手段3にフィードバックして、セグメント
当りの符号化データ量が検出符号量が目標符号量に近付
く様に制御をする。
The resulting encoded data is recorded on the recording medium 1 and stored in the generated code amount detecting means 5. The generated code amount detection unit 5 feeds back the detected code amount to the code amount control unit 3 and controls the amount of encoded data per segment so that the detected code amount approaches the target code amount.

【0011】その結果、発生する符号量は図2に示す様
に、セグメント毎にほぼ一定の値(丸印で図示)に収束
する。その結果、セグメント毎に符号化データの量が平
均化される。本実施例では、画質優先モードの設定を行
うと操作期間中前記符号化手段4が、符号量制御手段3
の制御に優先して符号化を制限し、画質優先の符号化が
為されるように構成されている。
As a result, the generated code amount converges to a substantially constant value (shown by a circle) for each segment as shown in FIG. As a result, the amount of encoded data is averaged for each segment. In this embodiment, when the setting of the image quality priority mode is performed, the encoding unit 4 performs the code amount control unit 3 during the operation period.
The encoding is restricted prior to the control of (1), and encoding is performed with priority on image quality.

【0012】また、本実施例では、空容量を媒体容量と
したが、本発明では、媒体が複数の記録エリアに等分さ
れている場合に、指定記録エリア内に記録可能な容量を
媒体容量として符号量制御手段3にプリセットしても良
い。更に、目標符号量は、本実施例の様に記録期間中一
定に設定しても良いが、本発明では、必ずしも一定とす
る必要はない。例えば、符号化の制御に多少の融通性を
持たせた場合には、目標符号量に対して発生符号量に過
不足を生じることがあり、この過不足を吸収するように
目標または予測符号量を逐次変更することも意義があ
る。 (第2実施例)そこで、第2実施例として、セグメント
単位でシーンチェンジ後の発生符号量をメモリに記憶
し、最尤推定法を用いて、過去の履歴に応じて予測符号
量をセグメント毎に変更して符号化する符号化装置につ
いて図3に基づき説明する。
In this embodiment, the empty capacity is defined as the medium capacity. However, in the present invention, when the medium is equally divided into a plurality of recording areas, the capacity recordable in the designated recording area is determined as the medium capacity. May be preset in the code amount control means 3. Further, the target code amount may be set to be constant during the recording period as in this embodiment, but is not necessarily required to be constant in the present invention. For example, if the coding control has some flexibility, the generated code amount may be excessive or deficient with respect to the target code amount, and the target or predicted code amount may be adjusted to absorb the excess or deficiency. It is also meaningful to change successively. (Second Embodiment) Therefore, as a second embodiment, the generated code amount after a scene change is stored in a memory in units of segments, and the estimated code amount is calculated for each segment in accordance with the past history using the maximum likelihood estimation method. An encoding apparatus that performs encoding by changing to (1) will be described with reference to FIG.

【0013】本実施例では、まず前記残量検出手段2A
にて磁気ドラムを可とする記録媒体1Aより空容量を検
出する。最尤推定手段3Aは、この空容量と入力される
記録すべき記録時間、即ちセグメント数に基づいて予測
符号量の初期値を推定する。この最尤推定手段3Aは、
更に複数の予測符号量の候補値を多数記憶しており、メ
モリ3Bがシーンチェンジ後に記憶するセグメント当り
の発生符号量を入力し最尤推定手法に基づき、最適な予
測符号量を推定して出力する。尚、この最尤推定方法
は、1969年11月15日に培風館発行の「統計解
析」第107〜110頁に開示されている周知の技術で
あり具体的な説明は割愛する。
In this embodiment, first, the remaining amount detecting means 2A
To detect the empty capacity from the recording medium 1A which enables the magnetic drum. The maximum likelihood estimating means 3A estimates the initial value of the predicted code amount based on the free space and the input recording time to be recorded, that is, the number of segments. This maximum likelihood estimation means 3A
Further, the memory 3B stores a large number of candidate values of a plurality of predicted code amounts, inputs the generated code amount per segment stored after the scene change, estimates the optimal predicted code amount based on the maximum likelihood estimation method, and outputs I do. This maximum likelihood estimation method is a well-known technique disclosed in “Statistical Analysis” published by Baifukan on November 15, 1969, pp. 107-110, and a detailed description thereof will be omitted.

【0014】ビットレート制御手段3Cは、推定された
予測符号量に基づき符号化手段4Aの符号化を制御して
いる。尚、このビットレート制御手段3Cは、セグメン
ト単位の発生符号量をメモリ3Bに記憶させており、シ
ーンチェンジ後のセグメント当りの発生符号量が全て記
憶される。シーンチェンジ検出手段5Aは、原画像を入
力してシーンチェンジを検出し、メモリ3Bと最尤推定
手段3Aをリセットする。
The bit rate control means 3C controls the coding of the coding means 4A based on the estimated code amount. The bit rate control means 3C stores the generated code amount per segment in the memory 3B, and stores all generated code amounts per segment after a scene change. The scene change detecting means 5A detects the scene change by inputting the original image, and resets the memory 3B and the maximum likelihood estimating means 3A.

【0015】その結果、図4に示す破線の予測符号量
は、シーンチェンジ後、次第に実線の発生符号量より安
定に推移する。尚、前述する実施例では磁気ドラムを記
録媒体としたが、記録媒体は光ディスクでも光磁気ディ
スクでもよいことは言うまでもない。
As a result, the predicted code amount indicated by the broken line shown in FIG. 4 gradually changes more stably than the generated code amount indicated by the solid line after the scene change. Although the recording medium is a magnetic drum in the above-described embodiment, it goes without saying that the recording medium may be an optical disk or a magneto-optical disk.

【0016】[0016]

【発明の効果】本発明によれば、単位セグメント毎に符
号化データの発生符号量を制御する為画像劣化が分散さ
れる。また本発明では、発生符号量が媒体の空容量ばか
りではなく指定記録エリアの容量でも制御され、自由な
記録が可能になる。
According to the present invention, since the generated code amount of encoded data is controlled for each unit segment, image deterioration is dispersed. Further, according to the present invention, the generated code amount is controlled not only by the free capacity of the medium but also by the capacity of the designated recording area, and free recording is enabled.

【0017】更に、目標または予測符号量は、一定にす
ることも可変にすることも可能であり、自由な設定が可
能になる。また、予測符号量を、最尤推定法により設定
する画像がより安定となる。更に、画質優先モードの設
定により高画質記録が可能になる。更に、セグメント
は、一定時間に設定されており、回路の簡素化が可能に
なる。
Further, the target or predicted code amount can be fixed or variable, and can be freely set. Further, an image in which the predicted code amount is set by the maximum likelihood estimation method becomes more stable. Further, setting of the image quality priority mode enables high image quality recording. Further, the segments are set at a fixed time, and the circuit can be simplified.

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

【図1】本発明の第1実施例を示す回路ブロック図であ
る。
FIG. 1 is a circuit block diagram showing a first embodiment of the present invention.

【図2】本発明の第1実施例のセグメントとデータ量の
関係を示す図である。
FIG. 2 is a diagram illustrating a relationship between a segment and a data amount according to the first embodiment of this invention.

【図3】本発明の第2実施例を示す回路ブロック図であ
る。
FIG. 3 is a circuit block diagram showing a second embodiment of the present invention.

【図4】本発明の第2実施例のセグメントとデータ量の
関係を示す図である。
FIG. 4 is a diagram showing a relationship between a segment and a data amount according to a second embodiment of the present invention.

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

1 記録媒体 3 符号量制御手段 4 符号化手段 5A シーンチェンジ検出部 DESCRIPTION OF SYMBOLS 1 Recording medium 3 Code amount control means 4 Encoding means 5A Scene change detection part

───────────────────────────────────────────────────── フロントページの続き (72)発明者 藤井 秀行 大阪府守口市京阪本通2丁目5番5号 三 洋電機株式会社内 (72)発明者 伊藤 修朗 大阪府守口市京阪本通2丁目5番5号 三 洋電機株式会社内 ──────────────────────────────────────────────────続 き Continued on the front page (72) Inventor Hideyuki Fujii 2-5-5 Keihanhondori, Moriguchi-shi, Osaka Sanyo Electric Co., Ltd. (72) Inventor Shuro Ito 2-chome, Keihanhondori, Moriguchi-shi, Osaka No. 5-5 in Sanyo Electric Co., Ltd.

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】 データを符号化して符号化データを出力
する符号化手段と、媒体容量とセグメントの数に基づき
単位セグメント当りの目標または予測符号量を設定し前
記符号化手段より出力される符号化データの発生符号量
を制御する符号量制御手段とを、それぞれ配して成る符
号量制御装置。
An encoding means for encoding data and outputting encoded data, a target or predicted code amount per unit segment based on a medium capacity and the number of segments, and a code output from the encoding means. And a code amount control means for controlling the generated code amount of the encoded data.
【請求項2】 前記媒体容量は、媒体の空容量であるこ
とを特徴とする請求項1記載の符号量制御装置。
2. The code amount control device according to claim 1, wherein the medium capacity is an empty capacity of the medium.
【請求項3】 前記媒体容量は、指定記録エリアの容量
であることを特徴とする請求項1記載の符号量制御装
置。
3. The code amount control device according to claim 1, wherein the medium capacity is a capacity of a designated recording area.
【請求項4】 前記各セグメント毎の前記目標符号量
は、共通であることを特徴とする請求項2または3記載
の符号量制御装置。
4. The code amount control device according to claim 2, wherein the target code amount for each of the segments is common.
【請求項5】 前記予測符号量は、メモリに記憶されて
いる過去の複数のセグメント毎の符号量に応じて設定さ
れることを特徴とする請求項1記載の符号量制御装置。
5. The code amount control device according to claim 1, wherein the predicted code amount is set according to a code amount for each of a plurality of past segments stored in a memory.
【請求項6】 前記メモリは、シーンチェンジでリセッ
トされることを特徴とする請求項5記載の符号量制御装
置。
6. The code amount control device according to claim 5, wherein the memory is reset by a scene change.
【請求項7】 前記予測符号量は、最尤推定法により設
定されることを特徴とする請求項6記載の符号量制御装
置。
7. The code amount control device according to claim 6, wherein the predicted code amount is set by a maximum likelihood estimation method.
【請求項8】 画質優先モードの設定により前記符号化
手段の符号化を制限することを特徴とする請求項1記載
の符号化制御装置。
8. The encoding control device according to claim 1, wherein the encoding of said encoding means is restricted by setting an image quality priority mode.
【請求項9】 前記セグメントは、一定時間であること
を特徴とする請求項1記載の符号化装置。
9. The encoding apparatus according to claim 1, wherein the segment has a fixed time.
JP33170696A 1996-12-12 1996-12-12 Coding quantity control device Pending JPH10174058A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP33170696A JPH10174058A (en) 1996-12-12 1996-12-12 Coding quantity control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33170696A JPH10174058A (en) 1996-12-12 1996-12-12 Coding quantity control device

Publications (1)

Publication Number Publication Date
JPH10174058A true JPH10174058A (en) 1998-06-26

Family

ID=18246686

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33170696A Pending JPH10174058A (en) 1996-12-12 1996-12-12 Coding quantity control device

Country Status (1)

Country Link
JP (1) JPH10174058A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6697567B1 (en) 1999-05-24 2004-02-24 Renesas Technology Corp. Dynamic image encoding apparatus
JP2010213132A (en) * 2009-03-12 2010-09-24 Mitsubishi Electric Corp Monitor recording system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6697567B1 (en) 1999-05-24 2004-02-24 Renesas Technology Corp. Dynamic image encoding apparatus
JP2010213132A (en) * 2009-03-12 2010-09-24 Mitsubishi Electric Corp Monitor recording system

Similar Documents

Publication Publication Date Title
JP3953574B2 (en) Program encoding apparatus and recording apparatus
US8363717B2 (en) Image processing apparatus
US6718121B1 (en) Information signal processing apparatus using a variable compression rate in accordance with contents of information signals
US20020024999A1 (en) Video encoding apparatus and method and recording medium storing programs for executing the method
US20050094870A1 (en) Video encoding method and video encoding apparatus
US8270040B2 (en) Image-encoding apparatus and method outputting control parameter for controlling structure of moving image data encoded group in encoding unit based on index value
US20020031178A1 (en) Video encoding method and apparatus, recording medium, and video transmission method
JP3740813B2 (en) Image encoding method and image encoding apparatus
US6577809B2 (en) User selectable variable trick mode speed
JP3837889B2 (en) Encoding method and encoding apparatus
JPH10174058A (en) Coding quantity control device
US6798978B1 (en) Method of and device for encoding an information stream
KR100214578B1 (en) Real time variable bit rate encoding method and apparatus of image information
JPH10304372A (en) Image coding method and device, and image transmission method
JPH08140100A (en) Video signal coding device
JP2001204018A (en) Variable bit rate coder and coding method
JPH08331556A (en) Image coder and image coding method
JP4759360B2 (en) Image processing device
JP4423215B2 (en) Image processing device
JPH11346365A (en) Encoding/compression method and device
JP2939956B2 (en) Moving picture information playback device
KR100681833B1 (en) Apparatus compressing data in the data recording system and method therefor
JP3125926B2 (en) Encoding recording device and encoding recording method
KR100261395B1 (en) Data recording apparatus
JP2006237847A (en) Image processing apparatus