JP2009089151A - Moving image recorder and its method - Google Patents

Moving image recorder and its method Download PDF

Info

Publication number
JP2009089151A
JP2009089151A JP2007257668A JP2007257668A JP2009089151A JP 2009089151 A JP2009089151 A JP 2009089151A JP 2007257668 A JP2007257668 A JP 2007257668A JP 2007257668 A JP2007257668 A JP 2007257668A JP 2009089151 A JP2009089151 A JP 2009089151A
Authority
JP
Japan
Prior art keywords
recording
hdd
transfer rate
encoding
moving image
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
JP2007257668A
Other languages
Japanese (ja)
Inventor
Kei Itani
慶 井澗
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 JP2007257668A priority Critical patent/JP2009089151A/en
Publication of JP2009089151A publication Critical patent/JP2009089151A/en
Pending legal-status Critical Current

Links

Landscapes

  • Television Signal Processing For Recording (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a moving image recorder of simple constitution, which encodes moving image data and detects the operating condition of recording through a recording means upon recording the encoded data on a recording medium to estimate a recording medium transfer rate based on the condition and control an encoding rate. <P>SOLUTION: When the moving image data is encoded and the encoded data is recorded on an HDD 116, the recording condition of the HDD 116 is detected to estimate HDD transfer rate based on the recording condition and adjust the HDD transfer rate so that the encoding rate becomes lower than the HDD transfer rate. According to this operation, the actual recording operation condition can be fed back into the HDD at encoding, thus the encoding can be performed at the encoding rate suitable to the actual condition of recording operation. Accordingly, the elimination of data by the overflow of a buffer 106 can be avoided. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、動画像データを符号化してハードディスク等の記録媒体に記録する動画像記録装置およびその方法に関する。   The present invention relates to a moving image recording apparatus and method for encoding moving image data and recording the encoded data on a recording medium such as a hard disk.

近年、ハードディスク等の記録媒体は、高速化・大容量化が急速に進み、動画像データを記録するメディアとしての期待も高まり、ムービーカメラ等で撮影した動画像データを上記記録媒体にリアルタイムに格納する技術が普及している。
従来の動画像記録装置では、高品質なデータをリアルタイムに記録するために、磁気ヘッドを目的のトラック上に移動させるためのシーク時間や回転待ち時間を考慮し、リアルタイム性が要求される動画データについてはディスクの外周側のゾーンに記録し、リアルタイム性が要求されない静止画等については、ディスクの内周側のゾーンに記録するという技術がある。
また、2つのエンコーダを設け、初段のエンコード情報からエンコードパラメータをフィードバックして後段のエンコーダでデータ量を調整するという技術もある。
In recent years, recording media such as hard disks have rapidly increased in speed and capacity, and expectations for media for recording moving image data have increased. Moving image data captured by a movie camera or the like is stored in the recording medium in real time. Technology to do so is widespread.
In conventional moving image recording devices, in order to record high-quality data in real time, moving image data that requires real-time properties in consideration of seek time and rotation waiting time for moving the magnetic head onto the target track Is recorded in a zone on the outer peripheral side of the disc, and a still image or the like that does not require real-time performance is recorded in a zone on the inner peripheral side of the disc.
There is also a technique in which two encoders are provided, the encoding parameters are fed back from the first-stage encoding information, and the data amount is adjusted by the subsequent-stage encoder.

特開平9−186963号公報JP-A-9-186963 特開平7−177464号公報JP-A-7-177464

しかしながら上述した従来技術では、ディスクの外周での書き込みスピードの優位性を利用してハードディスク等への記録媒体へのリアルタイム書き込み処理を実現しているが、MPEG規格等のように1ピクチャ毎に可変長の符号量が発生する場合、ディスク外周部であっても符号量が増大した動画像データを記録できない場合が生じる。   However, in the above-described prior art, real-time writing processing to a recording medium to a hard disk or the like is realized by using the advantage of writing speed on the outer periphery of the disk, but it is variable for each picture as in the MPEG standard or the like. When a long code amount is generated, moving image data with an increased code amount may not be recorded even at the outer periphery of the disc.

さらに、ハードディスクにおいてはフラグメンテーションの発生などの外因で記録媒体への転送速度の低下が発生し記録できない場合や、落下等で一時的に記録媒体に記録できない場合が生じる。
すなわち、従来技術では、記録媒体への実際の記録動作状態を符号化にフィードバックしておらず、実際の記録動作状態に不適合な符号化レートで符号化が行われることがあるという問題がある。
また、複数のエンコーダを設ける場合、構成が複雑化するという問題がある。
Further, in the hard disk, there are cases where the transfer rate to the recording medium is reduced due to external factors such as fragmentation, and recording cannot be performed, or recording on the recording medium cannot be performed temporarily due to dropping or the like.
That is, the conventional technique has a problem that the actual recording operation state on the recording medium is not fed back to the encoding, and the encoding may be performed at an encoding rate that is incompatible with the actual recording operation state.
Moreover, when providing a some encoder, there exists a problem that a structure becomes complicated.

本発明は、上述した従来技術の問題に鑑みてなされ、動画像データを符号化し、符号化データを記録媒体へ記録する際に、記録媒体の実際の記録状態に適合した符号化を行うことができる動画像記録装置およびその方法を提供することを目的とする。   The present invention has been made in view of the above-described problems of the prior art, and when encoding moving image data and recording the encoded data on a recording medium, encoding suitable for the actual recording state of the recording medium can be performed. An object of the present invention is to provide a moving image recording apparatus and a method thereof.

上述した従来技術の問題点を解決し、上述した目的を達成するために、本発明の動画像記録装置は、符号化データを記録媒体に記録する動画像記録装置であって、入力した動画像データを所定の符号化レートで符号化する符号化手段と、前記符号化手段にて符号化された符号化データを記憶するメモリと、前記メモリから前記符号化データを読み出し前記記録媒体へ記録する記録手段と、前記記録手段による記録動作状態を検出する記録動作状態検出手段と、前記記録動作状態検出手段にて検出された前記記録動作状態に基づいて、前記記録手段が前記記録媒体へ前記符号化データを記録するためのデータ転送レートの予測を行う記録媒体転送レート予測手段と、前記記録媒体転送レート予測手段にて予測された前記データ転送レートに基づいて前記符号化レートを制御する符号化レート制御手段とを有する。好適には、前記記録動作状態検出手段は、前記記録手段による記録動作状態として、本装置の落下による記録停止状態を検出する。   In order to solve the above-described problems of the prior art and achieve the above-described object, a moving image recording apparatus of the present invention is a moving image recording apparatus that records encoded data on a recording medium, and the input moving image Encoding means for encoding data at a predetermined encoding rate, a memory for storing encoded data encoded by the encoding means, and reading the encoded data from the memory and recording it on the recording medium A recording operation state detecting unit for detecting a recording operation state by the recording unit; and the recording unit transmits the code to the recording medium based on the recording operation state detected by the recording operation state detection unit. Recording medium transfer rate prediction means for predicting the data transfer rate for recording the digitized data, and based on the data transfer rate predicted by the recording medium transfer rate prediction means And a coding rate control means for controlling the coding rate Te. Preferably, the recording operation state detection unit detects a recording stop state due to a fall of the apparatus as the recording operation state by the recording unit.

また、本発明の動画像記録方法では、符号化データを記録媒体に記録する動画像記録方法であって、入力した動画像データを所定の符号化レートで符号化して符号化データを生成し、当該符号化データをメモリに書き込む符号化工程と、前記メモリから前記符号化工程にて書き込んだ前記符号化データを読み出して前記記録媒体へ記録する記録工程と、前記記録手段による記録動作状態を検出する記録動作状態検出工程と、前記記録動作状態検出工程にて検出された前記記録動作状態に基づいて、前記記録工程において前記記録媒体へ前記符号化データを記録するためのデータ転送レートの予測を行う記録媒体転送レート予測工程と、前記記録媒体転送レート予測工程にて予測された前記データ転送レートに基づいて前記符号化レートを制御する符号化レート制御工程とを有する。   The moving image recording method of the present invention is a moving image recording method for recording encoded data on a recording medium, encoding the input moving image data at a predetermined encoding rate to generate encoded data, An encoding process for writing the encoded data into the memory, a recording process for reading the encoded data written in the encoding process from the memory and recording it on the recording medium, and detecting a recording operation state by the recording means Based on the recording operation state detected in the recording operation state detection step and the recording operation state detection step to predict the data transfer rate for recording the encoded data on the recording medium in the recording step. A recording medium transfer rate prediction step to be performed; and the encoding rate is controlled based on the data transfer rate predicted in the recording medium transfer rate prediction step And a that coding rate controlling step.

本発明によれば、動画像データを符号化し、符号化データを記録媒体へ記録する際に、記録媒体の実際の記録状態に適合した符号化レートで符号化を行うことができる動画像記録装置およびその方法を提供することができる。   ADVANTAGE OF THE INVENTION According to this invention, when moving image data is encoded and it records encoded data on a recording medium, the moving image recording apparatus which can encode by the encoding rate suitable for the actual recording state of the recording medium And a method thereof.

以下、本発明の実施形態について図面を参照し説明する。
図1は、本発明の実施形態の機能ブロック図である。
Embodiments of the present invention will be described below with reference to the drawings.
FIG. 1 is a functional block diagram of an embodiment of the present invention.

図1は、画像データ(動画像データ)および音声データをMPEG方式により圧縮符号化するMPEG符号化装置のうち、画像データを圧縮符号化する動画像記録装置の基本的な構成を示している。
図1に示すように、動画像記録装置10は、入力端子101、演算部102、DCT部103、量子化部104、VLC部105、バッファ106、逆量子化部107、逆DCT部108、演算部109、画像メモリ110、動き補償予測部111、符号化レート制御部112、HDD状態検出部114、HDDアクセス制御部115、HDD転送レート予測部117を有しており、HDD116に画像データを書き込むように構成されている。なお、HDD116は、フラッシュメモリやDVD、BD等の他の記録媒体であってもよい。
FIG. 1 shows a basic configuration of a moving image recording apparatus that compresses and encodes image data, among MPEG encoding apparatuses that compress and encode image data (moving image data) and audio data by the MPEG method.
As illustrated in FIG. 1, the moving image recording apparatus 10 includes an input terminal 101, an operation unit 102, a DCT unit 103, a quantization unit 104, a VLC unit 105, a buffer 106, an inverse quantization unit 107, an inverse DCT unit 108, an operation. Unit 109, image memory 110, motion compensation prediction unit 111, coding rate control unit 112, HDD state detection unit 114, HDD access control unit 115, HDD transfer rate prediction unit 117, and writes image data to HDD 116 It is configured as follows. The HDD 116 may be another recording medium such as a flash memory, a DVD, or a BD.

ここで、HDD116が本発明の記録媒体に相当し、バッファ106が本発明のメモリ、HDDアクセス制御部115が本発明の記録手段、HDD状態検出部114が本発明の記録動作状態検出手段、HDD転送レート予測部117が記録媒体転送レート予測手段、符号化レート制御部112が本発明の符号化レート制御手段にそれぞれ相当し、DCT部103、量子化部104、VLC部105等が本発明の符号化手段に相当する。また、本実施形態におけるHDD転送レートが本発明の記録媒体転送レートに相当する。   Here, the HDD 116 corresponds to the recording medium of the present invention, the buffer 106 is the memory of the present invention, the HDD access control unit 115 is the recording unit of the present invention, the HDD state detection unit 114 is the recording operation state detection unit of the present invention, and the HDD. The transfer rate prediction unit 117 corresponds to the recording medium transfer rate prediction unit, the encoding rate control unit 112 corresponds to the encoding rate control unit of the present invention, and the DCT unit 103, the quantization unit 104, the VLC unit 105, etc. This corresponds to the encoding means. Further, the HDD transfer rate in this embodiment corresponds to the recording medium transfer rate of the present invention.

次に本実施形態の動作を説明する。   Next, the operation of this embodiment will be described.

動画像記録装置10に画像データが入力すると、入力端子101は、入力された画像データを、演算部102と動き補償予測部111へ出力する。   When image data is input to the moving image recording apparatus 10, the input terminal 101 outputs the input image data to the calculation unit 102 and the motion compensation prediction unit 111.

演算部102は、動き補償予測器111にて復号化した画像データと入力端子101から入力された画像データとの差分を求め、当該差分画像データをDCT部103へ出力する。   The calculation unit 102 obtains a difference between the image data decoded by the motion compensation predictor 111 and the image data input from the input terminal 101, and outputs the difference image data to the DCT unit 103.

DCT部103は、演算部102から入力された上記差分画像データを直交変換し、直交変換したDCT係数を量子化部104に出力する。   The DCT unit 103 orthogonally transforms the difference image data input from the arithmetic unit 102 and outputs the orthogonally transformed DCT coefficients to the quantization unit 104.

量子化部104は、DCT部103から入力されたDCT係数を量子化し、量子化データをVLC部105と、逆量子化部107へ出力する。   The quantization unit 104 quantizes the DCT coefficient input from the DCT unit 103 and outputs the quantized data to the VLC unit 105 and the inverse quantization unit 107.

その際、量子化部104は、符号化レート制御部112からの符号量制御信号に基づいて、量子化スケールを大きく制御することで発生符号量を抑えたり、量子化スケールを小さく制御することで発生符号量を変更する。なお、符号化レート制御部112における符号量制御信号の生成は、後述する。   At this time, the quantization unit 104 controls the generated code amount by controlling the quantization scale largely based on the code amount control signal from the coding rate control unit 112, or controls the quantization scale small. Change the amount of generated code. The generation of the code amount control signal in the coding rate control unit 112 will be described later.

逆量子化部107は、量子化部104からの量子化データを逆量子化し、逆量子化したDCT係数を逆DCT部108へ出力し、逆DCT部108は、逆量子化器107からのDCT係数データを逆DCTした後、演算部109に出力する。   The inverse quantization unit 107 inversely quantizes the quantized data from the quantization unit 104 and outputs the inversely quantized DCT coefficient to the inverse DCT unit 108. The inverse DCT unit 108 receives the DCT from the inverse quantizer 107. The coefficient data is subjected to inverse DCT and then output to the calculation unit 109.

演算部109は、イントラモードの場合、逆DCT部108から入力されたデータに、動き補償予測部111から入力された差分画像を加算し、画像メモリ110に出力して参照画像として記憶する。これにより、画像データが復元される。なお、インターモードの場合は加算しない。   In the intra mode, the calculation unit 109 adds the difference image input from the motion compensation prediction unit 111 to the data input from the inverse DCT unit 108, outputs the difference image to the image memory 110, and stores it as a reference image. Thereby, the image data is restored. In the inter mode, no addition is performed.

動き補償予測部111は、入力端子101から入力画像が入力すると、画像メモリ110に蓄えられている参照画像を参照して動き補償予測を行い、予測により得られた差分画像を演算部102及び演算部109に出力する一方、検出した動きベクトルと予測モードとをVLC部105へ出力する   When an input image is input from the input terminal 101, the motion compensation prediction unit 111 performs motion compensation prediction with reference to the reference image stored in the image memory 110, and calculates the difference image obtained by the prediction by the calculation unit 102 and the calculation. While outputting to the unit 109, the detected motion vector and the prediction mode are output to the VLC unit 105.

VLC部105は、量子化部104からの量子化データと、動き補償予測部111から動きベクトルと予測モードの符号化パラメータ等を可変長符号化して、バッファ106へ出力する。   The VLC unit 105 performs variable length coding on the quantized data from the quantizing unit 104, the motion vector, the coding parameter of the prediction mode, and the like from the motion compensated prediction unit 111, and outputs them to the buffer 106.

バッファ106は、VLC部105からの可変長符号化データを一時蓄え、HDDアクセス制御部115は、バッファ106に蓄えられている符号化データを読み出し、その符号化データを所定の転送レートでHDD116に転送し当該符号化データを記録する。   The buffer 106 temporarily stores the variable length encoded data from the VLC unit 105, and the HDD access control unit 115 reads the encoded data stored in the buffer 106 and stores the encoded data in the HDD 116 at a predetermined transfer rate. Transfer and record the encoded data.

すると、詳細は後述するが、HDD状態検出部114がHDD116の記録状態を検出し、HDD転送レート予測部117がその記録状態よりHDD116への転送レートを予測し、符号化レート制御部112がHDD116への転送レートに基づいて符号化レートを決定し、量子化部104における量子化の制御を行う。   Then, although details will be described later, the HDD status detection unit 114 detects the recording status of the HDD 116, the HDD transfer rate prediction unit 117 predicts the transfer rate to the HDD 116 from the recording status, and the encoding rate control unit 112 detects the HDD 116. The coding rate is determined based on the transfer rate to the image, and the quantization unit 104 controls the quantization.

図2は、HDD116に画像データを記録する場合のHDD転送レートと符号化レートの時間変化を示す。横軸は記録開始からの経過時間(秒)、縦軸はビットレートをそれぞれ表す。
図2に示すように、MPEG方式で画像データを符号化する場合は、1ピクチャ毎に可変長の符号量を持っているため符号化レートは変動する。
FIG. 2 shows temporal changes in the HDD transfer rate and the encoding rate when image data is recorded on the HDD 116. The horizontal axis represents the elapsed time (seconds) from the start of recording, and the vertical axis represents the bit rate.
As shown in FIG. 2, when image data is encoded by the MPEG method, the encoding rate varies because each picture has a variable amount of code.

図2に示すHDD転送レート低下ポイントは、例えば、ファイル数が増加することによりHDD116の空きセクタが離散的に存在している(フラグメンテーションの発生)等の要因によりHDD転送レートの低下が発生すると仮定したポイントである。
上記HDD転送レート低下ポイントまでは、例えば、空きセクタまでのシーク時間や回転待ち時間が少なくHDD転送レートは通常状態であるため、HDD転送レート≧符号化レートとなり、符号化されたデータをデータ欠落することなく安定して記録することができる。
しかしながら、上記HDD転送レート低下ポイント以降では、例えば、空きセクタから次の空きセクタに到達するまでのシーク時間や回転待ち時間が増大し、HDD転送レートが低下して、その結果HDD転送レート<符号化レートとなってしまう。この場合、画像データを安定した状態でリアルタイム記録することができず、例えば、数フレーム(あるいは数十フレーム)単位で画像データが欠落してしまい、HDD116に記録された画像データを再生するとコマ落ち画像となってしまう。また、落下等により一時的にHDD116に書き込めない状態が発生したときも同様である。
The HDD transfer rate lowering point shown in FIG. 2 is assumed that the HDD transfer rate decreases due to factors such as the fact that empty sectors in the HDD 116 exist discretely (occurrence of fragmentation) as the number of files increases. This is the point.
Up to the HDD transfer rate drop point, for example, the HDD transfer rate is normal because the seek time to the empty sector and the rotation waiting time are small and the HDD transfer rate is equal to the encoding rate, and the encoded data is lost. It is possible to record stably without doing.
However, after the HDD transfer rate lowering point, for example, the seek time and rotation waiting time until reaching the next empty sector increases, and the HDD transfer rate decreases, and as a result, HDD transfer rate <sign It becomes the conversion rate. In this case, the image data cannot be recorded in real time in a stable state. For example, the image data is lost in units of several frames (or several tens of frames), and when the image data recorded in the HDD 116 is reproduced, frames are dropped. It becomes an image. The same applies when a state in which data cannot be temporarily written to the HDD 116 due to a drop or the like occurs.

そこで、本実施の形態では、HDD116にフラグメンテーションが生じたり、落下して、HDD転送レート<符号化レートとなった場合、符号化レートをHDD転送レートの時間変化に応じて動的に変化させることにより、画像データ量(符号量)を適宜増減させる。   Therefore, in the present embodiment, when fragmentation occurs or falls in the HDD 116 and the HDD transfer rate <the encoding rate, the encoding rate is dynamically changed according to the time change of the HDD transfer rate. Thus, the image data amount (code amount) is appropriately increased or decreased.

次に、本装置におけるHDD状態検出による符号量制御について説明する。   Next, code amount control based on HDD status detection in this apparatus will be described.

図3は、本装置におけるHDD状態検出による符号量制御動作例を示すフローチャートである。   FIG. 3 is a flowchart showing an example of code amount control operation based on HDD status detection in this apparatus.

HDDアクセス制御部115によるHDD116への記録が開始すると(ステップST01)、HDD状態検出部114はHDDアクセス制御部115から常時あるいは定期的にHDD116の記録状態を検出する(ステップST02)。ここで、HDD状態検出部114は、HDD116の記録状態として、シーク時間、回転待ち時間および記録時間等の時間情報を検出する。   When the HDD access control unit 115 starts recording on the HDD 116 (step ST01), the HDD state detection unit 114 detects the recording state of the HDD 116 from the HDD access control unit 115 constantly or periodically (step ST02). Here, the HDD state detection unit 114 detects time information such as a seek time, a rotation waiting time, and a recording time as the recording state of the HDD 116.

ここで、HDD116のシーク時間とは、磁気ヘッドを目的のトラックに移動するまでの時間、回転待ち時間とは、目的のトラックに移動してから磁気ヘッドが目的のセクタの真上に達するまでの時間、記録時間とは、画像データを空きセクタに記録するために要する時間である。これらの合計時間がHDD116にデータを記録完了する時間となるので、これらの情報によりHDD転送レートを予測することができる。   Here, the seek time of the HDD 116 is the time until the magnetic head moves to the target track, and the rotation waiting time is the time from when the magnetic head moves to the target track until the magnetic head reaches just above the target sector. The time and recording time are times required to record image data in an empty sector. Since the total time is the time to complete data recording in the HDD 116, the HDD transfer rate can be predicted from these information.

HDD転送レート予測部117は、HDD状態検出部114が検出したHDD116の状態に基づき、シーク時間、回転待ち時間および記録時間等の情報に基づいてHDD転送レートを予測して、符号化レート制御部112へ出力する(ステップST03)。   The HDD transfer rate prediction unit 117 predicts the HDD transfer rate based on information such as a seek time, a rotation waiting time, and a recording time based on the state of the HDD 116 detected by the HDD state detection unit 114, and an encoding rate control unit It outputs to 112 (step ST03).

符号化レート制御部112は、HDD転送レート予測部117からのHDD転送レートと、量子化部10を制御している現在の符号化レートを比較し、“HDD転送レート≧符号化レート”であるか否かを判断し、バッファ106がオーバーフローしないように量子化部104における符号量を制御する(ステップST04)。   The encoding rate control unit 112 compares the HDD transfer rate from the HDD transfer rate prediction unit 117 with the current encoding rate controlling the quantization unit 10, and “HDD transfer rate ≧ encoding rate”. And the code amount in the quantization unit 104 is controlled so that the buffer 106 does not overflow (step ST04).

つまり、HDD116の正常な記録状態である“HDD転送レート≧符号化レート”であれば、符号化レート制御部112は、当該符号化レートを維持するか、あるいは符号化レートが“HDD転送レート≧符号化レート”の関係を満たす範囲内で、符号化レートを上げる(ステップST05)。具体的には、“HDD転送レート≧符号化レート”の場合、符号化レート制御部112は、当該符号化レートを初期値のまま維持しても良いし、“HDD転送レート≧符号化レート”を満足する範囲で、符号化レートを初期値より上げるようにしても勿論よい。また、HDD116にフラグメンテーションなどが発生し、HDD転送レートが下がり、それに応じ符号化レートもいったん下げた後、フラグメンテーションの解除などによりHDD転送レートが初期値等に復帰した場合には、符号化レートを上げて初期値等に復帰させるようにしても良いし、さらには“HDD転送レート≧符号化レート”を満足する範囲で、符号化レートを初期値より上げるようにしても勿論よい。   That is, if “HDD transfer rate ≧ encoding rate”, which is a normal recording state of the HDD 116, the encoding rate control unit 112 maintains the encoding rate or the encoding rate is “HDD transfer rate ≧ The encoding rate is increased within a range that satisfies the relationship of “encoding rate” (step ST05). Specifically, when “HDD transfer rate ≧ encoding rate”, the encoding rate control unit 112 may maintain the encoding rate as an initial value, or “HDD transfer rate ≧ encoding rate”. Of course, the encoding rate may be raised from the initial value within a range that satisfies the above. In addition, when fragmentation or the like occurs in the HDD 116, the HDD transfer rate decreases, and the encoding rate is also lowered accordingly. Then, when the HDD transfer rate returns to the initial value or the like by releasing the fragmentation, the encoding rate is changed. It may be raised to the initial value or the like, or of course, the coding rate may be raised from the initial value in a range satisfying “HDD transfer rate ≧ coding rate”.

これに対し、HDD116にフラグメンテーションなどが発生し、“HDD転送レート<符号化レート”であれば、符号化レート制御部112は、“HDD転送レート≧符号化レート”の関係になるよう符号化レートを下げ、量子化部104における符号量を制御する(ステップST06)。その際、符号化レート制御部112は、常にバッファ106がオーバーフローしないように監視しているので、“HDD転送レート<符号化レート”の状態が発生しても、直ぐに符号化レートを下げる必要はなく、“HDD転送レート<符号化レート”の状態が続き、バッファ106がオーバーフローしそうであると判断した場合に、“HDD転送レート≧符号化レート”の関係になるよう符号化レートを下げるようにしても勿論よい。   On the other hand, if fragmentation or the like occurs in the HDD 116 and “HDD transfer rate <encoding rate”, the encoding rate control unit 112 determines that the encoding rate is such that “HDD transfer rate ≧ encoding rate”. And the code amount in the quantization unit 104 is controlled (step ST06). At this time, since the encoding rate control unit 112 always monitors the buffer 106 so as not to overflow, it is not necessary to immediately decrease the encoding rate even if the condition “HDD transfer rate <encoding rate” occurs. However, if it is determined that the condition of “HDD transfer rate <encoding rate” continues and the buffer 106 is likely to overflow, the encoding rate is lowered so as to satisfy the relationship of “HDD transfer rate ≧ encoding rate”. Of course.

符号化レート制御部112は、記録処理が終了かどうかを判断し(ステップST07)、記録処理が終了であれば、本動作は終了する。記録処理が終了でない場合は、ステップST02へ戻る。   The coding rate control unit 112 determines whether or not the recording process is finished (step ST07), and if the recording process is finished, the operation is finished. If the recording process is not completed, the process returns to step ST02.

このように、HDD116の記録状態に応じて符号化レート、すなわち符号量の増減を画像記録処理が終了するまで繰り返し実行することで、画像データを一定の画像品質を維持しつつHDD116に記録することができる。   In this manner, by repeatedly executing the increase / decrease of the encoding rate, that is, the code amount according to the recording state of the HDD 116 until the image recording process is completed, the image data is recorded on the HDD 116 while maintaining a constant image quality. Can do.

このように、本実施形態の動画像記録装置10では、画像データを符号化し、符号化データをHDD116へ記録する際に、HDD116の記録状態を検出し、当該記録状態に基づいてHDD転送レートを予測し、当該HDD転送レートより符号化レートが下回るように調整する。これにより、実際のHDD116への記録動作状態を符号化にフィードバックすることができ、実際の記録動作状態に適合した符号化レートで符号化を行うことができる。そのため、バッファ106がオーバーフローしてデータが消失することを回避できる。   As described above, in the moving image recording apparatus 10 of the present embodiment, when the image data is encoded and the encoded data is recorded on the HDD 116, the recording state of the HDD 116 is detected, and the HDD transfer rate is set based on the recording state. Predict and adjust the encoding rate to be lower than the HDD transfer rate. Thereby, the actual recording operation state to the HDD 116 can be fed back to the encoding, and encoding can be performed at an encoding rate suitable for the actual recording operation state. Therefore, it is possible to avoid the data loss due to the overflow of the buffer 106.

なお、上記実施形態では、HDD状態検出部114がHDDアクセス制御部115からHDD116の記録状態として、シーク時間、回転待ち時間および記録時間等の時間情報を検出するように説明したが、本発明では、これに限らず、本装置内の、例えば、HDDアクセス制御部115またはHDD116等に、あるいはHDD状態検出部114として、落下検出のためのGセンサ(図示せず)が設けられている場合、これらの時間情報の代わりに、あるいはこれらの時間情報と共に、そのGセンサからの落下検出情報や、落下によるHDD116の記録停止状態を、HDD116の記録状態として検出するようにしても良い。なお、HDD116の記録状態として、Gセンサからの落下検出情報や、落下によるHDD116の記録停止状態を用いる場合、HDD転送レート予測部117は、HDD116の転送レートを0と予測することになる。この場合、図3のST06の処理を何度も繰り返し行うことになり、段階的に符号化レートが下げられ、この場合にも、バッファ106のオーバーフローを防止することができる。   In the above embodiment, the HDD state detection unit 114 detects time information such as seek time, rotation waiting time, and recording time as the recording state of the HDD 116 from the HDD access control unit 115. Not limited to this, when a G sensor (not shown) for drop detection is provided in the apparatus, for example, in the HDD access control unit 115 or the HDD 116 or as the HDD state detection unit 114, Instead of the time information or together with the time information, the drop detection information from the G sensor and the recording stop state of the HDD 116 due to the drop may be detected as the recording state of the HDD 116. When the drop detection information from the G sensor or the recording stop state of the HDD 116 due to a drop is used as the recording state of the HDD 116, the HDD transfer rate prediction unit 117 predicts the transfer rate of the HDD 116 as zero. In this case, the process of ST06 in FIG. 3 is repeated many times, and the encoding rate is lowered step by step. In this case as well, overflow of the buffer 106 can be prevented.

本発明は上述した実施形態には限定されない。
すなわち、当業者は、本発明の技術的範囲またはその均等の範囲内において、上述した実施形態の構成要素に関し、様々な変更、コンビネーション、サブコンビネーション、並びに代替を行ってもよい。
The present invention is not limited to the embodiment described above.
That is, those skilled in the art may make various modifications, combinations, subcombinations, and alternatives regarding the components of the above-described embodiments within the technical scope of the present invention or an equivalent scope thereof.

上述した実施形態では、動画像記録装置の一例としてムービーカメラを挙げているが、動画像データを符号化し、記録媒体に記録するものであれば、特に限定されない。   In the embodiment described above, a movie camera is cited as an example of a moving image recording apparatus, but there is no particular limitation as long as moving image data is encoded and recorded on a recording medium.

また、データ符号化の規格として、H.264/MPEG−4 AVCや、それ以降の規格に対しても本発明を適用可能である。   As a data encoding standard, H.264 is used. The present invention can also be applied to H.264 / MPEG-4 AVC and later standards.

また、HDD転送レート低下ポイントの要因として、フラグメンテーションや落下を挙げているが、記録媒体へのデータ転送レートを低下させる状況であれば、いかなる状況であってもかまわない。   Further, although fragmentation and dropping are cited as factors of the HDD transfer rate lowering point, any situation may be used as long as the data transfer rate to the recording medium is decreased.

また、符号化レートを、HDD転送レート≧符号化レートとなるように調整を行っているが、記録媒体への安定した書き込みが実現されるのであれば、この条件に限らない。   In addition, the encoding rate is adjusted so that the HDD transfer rate ≧ the encoding rate, but the condition is not limited as long as stable writing to the recording medium is realized.

また、符号化レートを変更後に、HDD転送レートと符号化レートを復帰するための復帰条件として、記録媒体への安定した書き込みが実現されるのであれば、この条件に限らない。   In addition, as long as stable writing to the recording medium is realized as a return condition for returning the HDD transfer rate and the encoding rate after changing the encoding rate, the present invention is not limited to this condition.

また、記録媒体の状態検出の手段として、他の機能または機構が備わっていてもよい。   Further, as a means for detecting the state of the recording medium, other functions or mechanisms may be provided.

本発明は、動画像データを符号化してハードディスク等の記録媒体に記録する装置に適用可能である。   The present invention can be applied to an apparatus that encodes moving image data and records it on a recording medium such as a hard disk.

本発明の実施形態に係る動画像記録装置の主要な機能ブロックを説明するために示す機能ブロック図である。It is a functional block diagram shown in order to demonstrate the main functional blocks of the moving image recording device which concerns on embodiment of this invention. 図1に示す動画像記録装置において記録開始からHDD転送レートと符号化レートの時間変化を説明するために示す図である。FIG. 2 is a diagram for explaining temporal changes in HDD transfer rate and encoding rate from the start of recording in the moving image recording apparatus shown in FIG. 1. 図1に示す動画像記録装置における主要な機能のフローを説明するために示すフローチャートである。2 is a flowchart shown for explaining a flow of main functions in the moving image recording apparatus shown in FIG. 1.

符号の説明Explanation of symbols

10…動画像記録装置、
101…入力端子、
102…演算部、
103…DCT部、
104…量子化部、
105…VLC部、
106…バッファ、
107…逆量子化部、
108…逆DCT部、
109…演算部、
110…画像メモリ、
111…動き補償予測部、
112…符号化レート制御部、
114…HDD状態検出部、
115…HDDアクセス制御部、
116…HDD、
117…HDD転送レート予測部
10: Moving image recording device,
101: Input terminal,
102: arithmetic unit,
103 ... DCT section,
104: Quantization unit,
105 ... VLC section,
106 ... buffer,
107: Inverse quantization unit,
108: Inverse DCT section,
109 ... arithmetic unit,
110: Image memory,
111 ... a motion compensation prediction unit,
112 ... Coding rate control unit,
114... HDD state detection unit,
115... HDD access control unit,
116: HDD,
117... HDD transfer rate prediction unit

Claims (3)

符号化データを記録媒体に記録する動画像記録装置であって、
入力した動画像データを所定の符号化レートで符号化する符号化手段と、
前記符号化手段にて符号化された符号化データを記憶するメモリと、
前記メモリから前記符号化データを読み出し前記記録媒体へ記録する記録手段と、
前記記録手段による記録動作状態を検出する記録動作状態検出手段と、
前記記録動作状態検出手段にて検出された前記記録動作状態に基づいて、前記記録手段が前記記録媒体へ前記符号化データを記録するためのデータ転送レートの予測を行う記録媒体転送レート予測手段と、
前記記録媒体転送レート予測手段にて予測された前記データ転送レートに基づいて前記符号化レートを制御する符号化レート制御手段と
を有することを特徴とする動画像記録装置。
A moving image recording apparatus for recording encoded data on a recording medium,
Encoding means for encoding the input moving image data at a predetermined encoding rate;
A memory for storing the encoded data encoded by the encoding means;
Recording means for reading the encoded data from the memory and recording it on the recording medium;
A recording operation state detection unit for detecting a recording operation state by the recording unit;
A recording medium transfer rate prediction means for predicting a data transfer rate for the recording means to record the encoded data on the recording medium based on the recording operation state detected by the recording operation state detection means; ,
And a coding rate control unit for controlling the coding rate based on the data transfer rate predicted by the recording medium transfer rate prediction unit.
前記記録動作状態検出手段は、前記記録手段による記録動作状態として、本装置の落下による記録停止状態を検出する、ことを特徴とする請求項1に記載の動画像記録装置。   The moving image recording apparatus according to claim 1, wherein the recording operation state detection unit detects a recording stop state due to a fall of the apparatus as a recording operation state by the recording unit. 符号化データを記録媒体に記録する動画像記録方法であって、
入力した動画像データを所定の符号化レートで符号化して符号化データを生成し、当該符号化データをメモリに書き込む符号化工程と、
前記メモリから前記符号化工程にて書き込んだ前記符号化データを読み出して前記記録媒体へ記録する記録工程と、
前記記録手段による記録動作状態を検出する記録動作状態検出工程と、
前記記録動作状態検出工程にて検出された前記記録動作状態に基づいて、前記記録工程において前記記録媒体へ前記符号化データを記録するためのデータ転送レートの予測を行う記録媒体転送レート予測工程と、
前記記録媒体転送レート予測工程にて予測された前記データ転送レートに基づいて前記符号化レートを制御する符号化レート制御工程と
を有することを特徴とする動画像記録方法。
A moving image recording method for recording encoded data on a recording medium,
An encoding process in which the input moving image data is encoded at a predetermined encoding rate to generate encoded data, and the encoded data is written in a memory;
A recording step of reading out the encoded data written in the encoding step from the memory and recording it on the recording medium;
A recording operation state detection step of detecting a recording operation state by the recording means;
A recording medium transfer rate prediction step for predicting a data transfer rate for recording the encoded data on the recording medium in the recording step based on the recording operation state detected in the recording operation state detection step; ,
And a coding rate control step of controlling the coding rate based on the data transfer rate predicted in the recording medium transfer rate prediction step.
JP2007257668A 2007-10-01 2007-10-01 Moving image recorder and its method Pending JP2009089151A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007257668A JP2009089151A (en) 2007-10-01 2007-10-01 Moving image recorder and its method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007257668A JP2009089151A (en) 2007-10-01 2007-10-01 Moving image recorder and its method

Publications (1)

Publication Number Publication Date
JP2009089151A true JP2009089151A (en) 2009-04-23

Family

ID=40661934

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007257668A Pending JP2009089151A (en) 2007-10-01 2007-10-01 Moving image recorder and its method

Country Status (1)

Country Link
JP (1) JP2009089151A (en)

Similar Documents

Publication Publication Date Title
JP5021502B2 (en) Method and apparatus for controlling rate distortion trade-off by mode selection of video encoder
JP4869147B2 (en) Image recording / playback device
US9369772B1 (en) Dual PID controller based bit allocation and rate control for video coding
CN104125460A (en) Method and apparatus for controlling video bitrates
JP4342139B2 (en) Signal processing device
JP4797974B2 (en) Imaging device
US8837918B2 (en) Video recording apparatus
JP5330672B2 (en) Video encoding apparatus and video encoding method
JP2007306370A (en) Image coding recorder
JP2009089151A (en) Moving image recorder and its method
JP2009100461A (en) Video recording and reproducing device, video recording device and video encoding device
JP5078852B2 (en) Moving picture coding apparatus and moving picture coding method
US20040141732A1 (en) Moving-picture code amount control method, moving-picture recording method, moving-picture code amount control apparatus and moving-picture recording apparatus
US20090290855A1 (en) Apparatus And Method For Recording Video Data
JP2010050616A (en) Recording device and recording method, reproduction device and reproduction method, program, and recording/reproducing device
JP4759360B2 (en) Image processing device
JP2007109329A5 (en)
JP2007336005A (en) Image coding apparatus and image coding method
JP2003023637A (en) Image coding method and image coding device
JP4291185B2 (en) Transcoding method, transcoder and program
JP4423215B2 (en) Image processing device
JP4423214B2 (en) Image processing device
KR101054644B1 (en) Motion Estimation Based Image Coding / Decoding Apparatus and Method
JPH08331556A (en) Image coder and image coding method
JP2008211555A (en) Video signal encoding device and video signal encoding method