JP4305254B2 - Moving image recording apparatus, electronic camera apparatus, moving image recording method, and program - Google Patents
Moving image recording apparatus, electronic camera apparatus, moving image recording method, and program Download PDFInfo
- Publication number
- JP4305254B2 JP4305254B2 JP2004112615A JP2004112615A JP4305254B2 JP 4305254 B2 JP4305254 B2 JP 4305254B2 JP 2004112615 A JP2004112615 A JP 2004112615A JP 2004112615 A JP2004112615 A JP 2004112615A JP 4305254 B2 JP4305254 B2 JP 4305254B2
- Authority
- JP
- Japan
- Prior art keywords
- recording
- image
- moving image
- recording medium
- recorded
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Description
本発明は、動画をストリーム記録する機能を備えた動画像記録装置及び電子カメラ装置と、動画像記録方法、プログラムに関する。 The present invention relates to a moving image recording device and an electronic camera device having a function of recording moving images in a stream, a moving image recording method, and a program.
従来、動画撮影機能を備えたデジタルカメラ、携帯電話などにおいて動画像を記録するときのデータ形式は、Motion JPEG(Joint Photographic coding Experts Group)やMPEG(Moving Picture coding Experts Group)などが多く用いられている。これらは、一定時間間隔毎に圧縮符号化された画像データを記録する形式である。動画像を記録する媒体としては、SDメモリカード(Serure Digital memory card)などが多く用いられている。 Conventionally, Motion JPEG (Joint Photographic coding Experts Group), MPEG (Moving Picture coding Experts Group), etc. have been used as the data format for recording moving images in digital cameras and mobile phones equipped with video shooting functions. Yes. These are formats for recording image data that is compression-coded at regular time intervals. As a medium for recording a moving image, an SD memory card (Serure Digital memory card) or the like is often used.
動画像を記録する場合、規定時間内での動画撮影については、一定時間間隔毎に圧縮符号化された画像データを内部メモリに一時蓄積して、撮影後に動画データを記録媒体に書き込むため、データ書き込み処理には時間的な制約がない。一方、記録媒体の容量一杯までの撮影が可能な動画撮影(以下、ストリーム録画という)については、撮影し圧縮符号化した動画データを逐次記録媒体に書き込まなければならないため、データ書き込み処理に時間的な制約がある。 When recording a moving image, for moving image shooting within a specified time, image data that has been compression-coded at regular time intervals is temporarily stored in the internal memory, and the moving image data is written to the recording medium after shooting. There is no time restriction in the writing process. On the other hand, for moving image shooting (hereinafter referred to as stream recording) capable of shooting up to the full capacity of the recording medium, moving image data that has been shot and compression-encoded must be sequentially written to the recording medium. There are some restrictions.
一方、メモリカードにおけるデータの書き込み性能は、メモリカードそれぞれにより異なり、書き込みが速いカード、遅いカードが存在する。そのため、書き込みが遅いカードを使用すると、書き込み時間がかかり過ぎることにより、一枚の画像を処理するために許された一定時間内に一連の処理が終了しないという状況が発生することがある。その場合には、撮影を中止するか、フレームレートを落とす(録画する画像の間隔を長くする)、またはビットレートを落とす(録画する画像の圧縮率を上げる)など、画質を低下させることにより、メモリカードに対するデータの書き込み量を減らすことにより撮影を継続させるなどの対応が一般に行われている。 On the other hand, the data writing performance of the memory card differs depending on the memory card, and there are a card with a fast writing and a card with a slow writing. For this reason, when a card with slow writing is used, it may take a long time to write, and a situation may occur in which a series of processing does not end within a fixed time allowed for processing one image. In that case, by reducing the image quality, such as stopping shooting, reducing the frame rate (increasing the interval between recorded images), or decreasing the bit rate (increasing the compression rate of the recorded images) In general, countermeasures such as continuing shooting by reducing the amount of data written to the memory card are performed.
また、例えば下記の特許文献1には、デジタルカメラにおいて、予め内部メモリに複数フレーム分のバッファ領域を確保しておき、動画像をストリーム録画する際には、撮影し圧縮符号化した動画データの内部メモリへの書込み動作と並行して、先に記憶された画像データを読み出してメモリカード等に随時記録し、かつ記録が終了した動画データを内部メモリから消去する、つまり内部メモリをリングバッファとして使用し、このリングバッファが撮影時間の経過に伴いメモリカードに記録されていない動画データで一杯になった時点で動画撮影を中止する動画記録方法が記載されている。
しかしながら、上記従来の方法の場合、書き込み速度が遅いメモリカードあるいは書き込み速度が遅くなってしまったメモリカードを使用して何回も動画撮影を行うと、動画撮影を行う毎に撮影途中で撮影が強制的に中止されてしまうか、撮影途中で画質が変化してしまい、動画の撮影開始から撮影終了するまで均一な画質の動画像を得ることができなくなってしまうといった問題が発生する。 However, in the case of the conventional method described above, if a video card is shot many times using a memory card with a slow writing speed or a memory card with a slow writing speed, the shot is taken during the shooting each time a video is shot. There is a problem that the image is forcibly canceled or the image quality changes during shooting, and a moving image with uniform image quality cannot be obtained from the start of shooting a movie to the end of shooting.
本発明は、かかる従来の課題に鑑みてなされたものであり、動画の撮影が終了するまで均一な画質で動画像を記録することが可能となる動画記録装置及び電子カメラ装置、動画像記録方法と、それらの実現に使用されるプログラムを提供することを目的とする。 The present invention has been made in view of such a conventional problem, and a moving image recording apparatus, an electronic camera device, and a moving image recording method capable of recording a moving image with uniform image quality until shooting of the moving image is completed. And it aims at providing the program used for those realization.
前記課題を解決するため請求項1の発明にあっては、動画像を構成する画像データを所定のフレーム周期で画像処理しながら記録媒体に順次記録する動画像記録手段と、この動画像記録手段による前記記録媒体への画像処理後の画像データの書込み処理に、動画像の正常な記録を阻害する遅れが生じたか否かを判断する判断手段と、この判断手段により前記遅れが生じたと判断された場合に、その旨を示す情報を前記記憶媒体を識別するための識別情報と共に記憶する情報記憶手段と、この情報記憶手段に前記遅れが生じた旨を示す情報が記憶されている場合には、前記動画像記録手段による前記記録媒体への次回の記録動作で記録される動画像の画質を、今回の記録動作での動画像の画質よりも低い画質に設定する画質設定手段とを備えた動画像記録装置とした。
In order to solve the above-mentioned problem, in the invention of
かかる構成においては、動画像の記録中に、記録媒体への画像処理後の画像データの書込み処理に動画像の正常な記録を阻害する遅れが生じた場合には、その旨を示す情報が記憶され、その情報が記憶されている場合には、前記記録媒体への次回の記録動作で記録する動画像の画質が今回の記録動作での動画像の画質よりも低い画質に自動的に設定される。したがって、動画像の記録中に、記録媒体への画像処理後の画像データの書込み処理に動画像の正常な記録を阻害する遅れが生じた場合には、次回以降の記録動作で記録する動画像の画質を、遅れが生じたときの画質よりも低い画質とすることが可能となる。
In such a configuration, when there is a delay that hinders normal recording of moving images in the writing processing of image data after image processing to the recording medium during recording of moving images, information indicating that is stored. If the information is stored, the image quality of the moving image recorded in the next recording operation on the recording medium is automatically set to be lower than the image quality of the moving image in the current recording operation. The Accordingly, during the recording of a moving image, if there is a delay that hinders normal recording of the moving image in the writing process of the image data after the image processing to the recording medium, the moving image to be recorded in the subsequent recording operation It is possible to make the image quality lower than the image quality when the delay occurs.
また、請求項2の発明にあっては、前記情報記憶手段は、前記判断手段により遅れが生じたと判断されたときに前記動画像記録手段により記録媒体に順次記録されている動画像の画質を示す画質情報を記憶し、前記画質設定手段は、前記動画像記録手段による次回の記録動作で記録される動画像の画質を、前記情報記憶手段に記憶されている画質情報により示される画質よりも所定の割合だけ低い画質に設定するものとした。 According to a second aspect of the present invention, the information storage means determines the image quality of the moving images sequentially recorded on the recording medium by the moving image recording means when the determining means determines that a delay has occurred. The image quality setting means stores the image quality of the moving image recorded in the next recording operation by the moving image recording means more than the image quality indicated by the image quality information stored in the information storage means. The image quality is set to be lower by a predetermined ratio.
かかる構成においては、動画像の記録中に、記録媒体への画像処理後の画像データの書込み処理に動画像の正常な記録を阻害する遅れが生じた場合には、次回以降の記録動作で記録する動画像の画質を、遅れが生じたときの画質よりも所定の割合だけ低い画質とすることが可能となる。 In such a configuration, during the recording of a moving image, if there is a delay that hinders normal recording of the moving image in the writing process of the image data after the image processing to the recording medium, the recording operation is performed in the subsequent recording operation. It is possible to set the image quality of the moving image to be lower by a predetermined ratio than the image quality when the delay occurs.
また、請求項3の発明にあっては、前記情報記憶手段は、前記判断手段により遅れが生じたと判断された場合に、前記動画像記録手段による次回の記録動作で記録される動画像の画質を示す画質情報を記憶し、前記画質設定手段は、前記動画像記録手段による次回の記録動作で記録される動画像の画質を、前記情報記憶手段に記憶されている画質情報により示される画質に設定するものとした。 According to a third aspect of the present invention, when the information storage means determines that a delay has occurred by the determination means, the image quality of the moving image recorded in the next recording operation by the moving image recording means The image quality setting means sets the image quality of the moving image recorded in the next recording operation by the moving image recording means to the image quality indicated by the image quality information stored in the information storage means. It was supposed to be set.
かかる構成においては、動画像の記録中に、記録媒体への画像処理後の画像データの書込み処理に動画像の正常な記録を阻害する遅れが生じた場合には、次回以降の記録動作で記録する動画像の画質を、遅れが生じたとき記憶されていた画質情報により示される、遅れが生じたときの画質よりも低い画質とすることが可能となる。 In such a configuration, during the recording of a moving image, if there is a delay that hinders normal recording of the moving image in the writing process of the image data after the image processing to the recording medium, the recording operation is performed in the subsequent recording operation. It is possible to set the image quality of the moving image to be lower than the image quality when the delay occurs, which is indicated by the image quality information stored when the delay occurs.
また、請求項4の発明にあっては、前記動画像記録手段により画像処理後の画像データが前記記録媒体へ記録されるときの所要時間を計測する計測手段を備え、前記画質設定手段は、前記動画像記録手段による次回の記録動作で記録される動画像の画質を、前記判断手段により前記遅れが生じたと判断されたときの動画像の記録途中において前記計測手段により計測された所要時間における、前記画像処理後の画像データの記録に許容されていた時間に対する超過割合に応じた割合だけ低下した画質に設定するものとした。 According to a fourth aspect of the present invention, the image processing apparatus includes a measuring unit that measures a time required when the image data after image processing is recorded on the recording medium by the moving image recording unit, and the image quality setting unit includes: The image quality of the moving image recorded in the next recording operation by the moving image recording unit is determined according to the time required by the measuring unit during the recording of the moving image when the determination unit determines that the delay has occurred. The image quality is set to be lowered by a rate corresponding to the excess rate with respect to the time allowed for the recording of the image data after the image processing.
かかる構成においては、動画像の記録中に、記録媒体への画像処理後の画像データの書込み処理に動画像の正常な記録を阻害する遅れが生じた後の記録動作で記録する動画像の画質の下げ幅を必要最小限に止めることができる。 In such a configuration, during the recording of the moving image, the image quality of the moving image recorded in the recording operation after a delay that hinders normal recording of the moving image occurs in the writing process of the image data after the image processing to the recording medium. The amount of lowering can be minimized.
また、請求項5の発明にあっては、前記記録媒体に記録する複数フレーム分の画像処理後の画像データを一時記憶するバッファメモリを備え、前記判断手段は、前記バッファメモリにおける画像データの書き込み位置と読み出し位置とが所定の関係となったとき前記遅れが生じたと判断し、前記画質設定手段は、前記動画像記録手段による次回の記録動作で記録される動画像の画質を、前記判断手段により前記遅れが生じたと判断された時点で前記バッファメモリに記録されている前記記録媒体に未記録の画像データの合計サイズと、前記記録媒体に記録済みの画像データの合計サイズとの比率に応じた割合だけ低下した画質に設定するものとした。
かかる構成においても、動画像の記録中に、記録媒体への画像処理後の画像データの書込み処理に動画像の正常な記録を阻害する遅れが生じた後の記録動作で記録する動画像の画質の下げ幅を必要最小限に止めることができる。
The invention according to
Even in such a configuration, during the recording of the moving image, the image quality of the moving image recorded in the recording operation after a delay that hinders the normal recording of the moving image occurs in the writing process of the image data after the image processing to the recording medium. The amount of lowering can be minimized.
また、請求項6の発明にあっては、前記記録媒体に記録する複数フレーム分の画像処理後の画像データを一時記憶するバッファメモリを備え、前記判断手段は、前記バッファメモリにおける画像データの書き込み位置と読み出し位置とが所定の関係となったとき前記遅れが生じたと判断し、前記画質設定手段は、前記動画像記録手段による次回の記録動作で記録される動画像の画質を、前記判断手段により前記遅れが生じたと判断された時点で前記記録媒体に書込み済みのデータ量と、前記バッファメモリの容量との比率に応じた割合だけ低下した画質に設定するものとした。
かかる構成においても、動画像の記録中に、記録媒体への画像処理後の画像データの書込み処理に動画像の正常な記録を阻害する遅れが生じた後の記録動作で記録する動画像の画質の下げ幅を必要最小限に止めることができる。
According to a sixth aspect of the invention, there is provided a buffer memory for temporarily storing image data after image processing for a plurality of frames to be recorded on the recording medium, wherein the determination means writes image data in the buffer memory. It is determined that the delay has occurred when the position and the read position are in a predetermined relationship, and the image quality setting means determines the image quality of the moving image recorded in the next recording operation by the moving image recording means. Thus, when it is determined that the delay has occurred, the image quality is set to be decreased by a ratio corresponding to the ratio between the amount of data already written on the recording medium and the capacity of the buffer memory.
Even in such a configuration, during the recording of the moving image, the image quality of the moving image recorded in the recording operation after a delay that hinders the normal recording of the moving image occurs in the writing process of the image data after the image processing to the recording medium. The amount of lowering can be minimized.
また、請求項6の発明にあっては、前記動画像記録手段により画像処理後の画像データが前記記録媒体へ記録されるときの所要時間を計測する計測手段と、前記動画像記録手段による動画像の記録途中に前記計測手段により計測された所要時間の合計、及び前記記録媒体に記録された全画像データの合計サイズから、前記記録媒体へのデータの平均書込み速度を算出する速度算出手段と、前記動画像記録手段により新たな動画像が前記記録媒体へ記録される毎に前記算出手段により算出された平均書込み速度を履歴情報として記憶する速度履歴記憶手段と、この速度履歴記憶手段に記憶されている履歴情報に基づき、所定期間における前記平均書込み速度の劣化度合を取得する取得手段と、この取得手段により取得された劣化度合が決められた劣化度合を超えた旨を報知する報知手段とを備えたものとした。 According to a sixth aspect of the present invention, there is provided a measuring means for measuring a time required for recording image data after image processing by the moving image recording means to the recording medium, and a moving image by the moving image recording means. Speed calculating means for calculating the average writing speed of data to the recording medium from the total required time measured by the measuring means during image recording and the total size of all image data recorded on the recording medium; Each time a new moving image is recorded on the recording medium by the moving image recording unit, a speed history storage unit that stores the average writing speed calculated by the calculation unit as history information, and the speed history storage unit stores the average writing speed. Acquisition means for acquiring the degree of deterioration of the average writing speed in a predetermined period, and the degree of deterioration acquired by the acquisition means are determined based on the history information that is obtained. It was that a notification means for notifying that exceeds the degree of deterioration.
かかる構成においては、使用期間の経過に伴い記録する画像データの断片化によって記録媒体におけるデータの書き込み性能が一定以上劣化した場合には、それをユーザーに認識させることができる。 In such a configuration, when the writing performance of data on the recording medium deteriorates by a certain level due to fragmentation of image data to be recorded as the usage period elapses, it can be recognized by the user.
また、請求項8の発明にあっては、動画像を構成する画像データを所定のフレーム周期で画像処理しながら記録媒体に順次記録する動画像記録方法において、前記記録媒体への画像処理後の画像データの書込み処理に、動画像の正常な記録を阻害する遅れが生じたか否かを判断する工程と、前記遅れが生じたと判断された場合に、その旨を示す情報を前記記憶媒体を識別するための識別情報と共に記憶する工程と、前記情報記憶手段に前記遅れが生じた旨を示す情報が記憶されている場合には、前記記録媒体への次回の動画像の記録動作に先立ち、前記記録媒体に記録する動画像の画質を今回の記録動作での動画像の画質よりも低い画質に設定する工程とを含む方法とした。
According to an eighth aspect of the present invention, in the moving image recording method of sequentially recording image data constituting a moving image on a recording medium while performing image processing at a predetermined frame period, the image data after the image processing on the recording medium is performed. A step of determining whether or not a delay that hinders normal recording of moving images has occurred in the writing process of image data, and when it is determined that the delay has occurred, information indicating the fact is identified from the storage medium a step of storing with identification information for, when information indicating that the delay has occurred in the information storage means is stored, prior to the recording operation of the next moving image on the recording medium, wherein And a step of setting the image quality of the moving image to be recorded on the recording medium to a lower image quality than that of the moving image in the current recording operation .
したがって、動画像の記録中に、記録媒体への画像処理後の画像データの書込み処理に動画像の正常な記録を阻害する遅れが生じた場合には、次回以降の記録動作で記録する動画像の画質を、遅れが生じたときの画質よりも低い画質とすることが可能となる。 Accordingly, during the recording of a moving image, if there is a delay that hinders normal recording of the moving image in the writing process of the image data after the image processing to the recording medium, the moving image to be recorded in the subsequent recording operation It is possible to make the image quality lower than the image quality when the delay occurs.
また、請求項9の発明にあっては、動画像を構成する画像データを所定のフレーム周期で画像処理しながら記録媒体に順次記録する動画像記録装置が有するコンピュータを、動画像を構成する画像データを所定のフレーム周期で画像処理しながら記録媒体に順次記録する動画像記録手段と、この動画像記録手段による前記記録媒体への画像処理後の画像データの書込み処理に、動画像の正常な記録を阻害する遅れが生じたか否かを判断する判断手段と、この判断手段により前記遅れが生じたと判断された場合に、その旨を示す情報を前記記憶媒体を識別するための識別情報と共に情報記憶手段に記憶させる制御手段と、前記情報記憶手段に前記遅れが生じた旨を示す情報が記憶されている場合には、前記動画像記録手段による前記記録媒体への次回の記録動作で記録される動画像の画質を今回の記録動作での動画像の画質よりも低い画質に設定する画質設定手段として機能させるためのプログラムとした。
According to the ninth aspect of the present invention, there is provided a computer having a moving image recording apparatus that sequentially records image data constituting a moving image on a recording medium while performing image processing at a predetermined frame period. A moving image recording unit that sequentially records data on a recording medium while performing image processing at a predetermined frame period, and a writing process of image data after image processing on the recording medium by the moving image recording unit A determination unit that determines whether or not a delay that inhibits recording has occurred, and information indicating that when the determination unit determines that the delay has occurred, together with identification information for identifying the storage medium and a control means for storing in the memory means, when the information indicating that the delay has occurred in the information storage means is stored, to the recording medium by the moving image recording unit And a program for functioning as the image quality setting means for setting the image quality of a moving image to be recorded in the next recording operation to a lower image quality than the image quality of the moving image at the current recording operation.
また、請求項10の発明にあっては、撮像手段により所定のフレーム周期で撮像された、動画像を構成する画像データを前記所定のフレーム周期で圧縮しながら着脱自在な記録媒体に順次記録する動画撮影機能を備えた電子カメラ装置において、動画像を構成する画像データを所定のフレーム周期で画像処理しながら記録媒体に順次記録する動画像記録手段と、この動画像記録手段による前記記録媒体への画像処理後の画像データの書込み処理に、動画像の正常な記録を阻害する遅れが生じたか否かを判断する判断手段と、この判断手段により前記遅れが生じたと判断された場合に、その旨を示す情報を前記記憶媒体を識別するための識別情報と共に情報記憶手段に記憶させる制御手段と、前記情報記憶手段に前記遅れが生じた旨を示す情報が記憶されている場合には、前記動画像記録手段による前記記録媒体への次回の記録動作で記録される動画像の画質を今回の記録動作での動画像の画質よりも低い画質に設定する画質設定手段とを備えた電子カメラ装置とした。
According to the tenth aspect of the present invention, the image data constituting the moving image captured at a predetermined frame period by the imaging means is sequentially recorded on a removable recording medium while being compressed at the predetermined frame period. In an electronic camera device having a moving image shooting function, moving image recording means for sequentially recording image data constituting a moving image on a recording medium while performing image processing at a predetermined frame period, and to the recording medium by the moving image recording means A determination means for determining whether or not a delay that hinders normal recording of moving images has occurred in the writing process of the image data after the image processing, and when it is determined by the determination means that the delay has occurred, information indicating a control means for storing information indicating the fact to the information storage means together with identification information for identifying the storage medium, the fact that the delay has occurred in the information storage means When stored, the image quality to set the image quality of the next moving image recorded by the recording operation to the recording medium by the moving image recording means lower quality than the image quality of the moving image in the current recording operation An electronic camera device provided with setting means.
かかる構成においては、撮像された画像からなる動画像の記録中に、記録媒体への画像処理後の画像データの書込み処理に動画像の正常な記録を阻害する遅れが生じた場合には、その旨を示す情報が記憶され、その情報が記憶されている場合には、前記記録媒体への次回の記録動作で記録する動画像の画質が今回の記録動作での動画像の画質よりも低い画質に自動的に設定される。したがって、動画像の記録中に、記録媒体への画像処理後の画像データの書込み処理に動画像の正常な記録を阻害する遅れが生じた場合には、次回以降の記録動作で記録する動画像の画質を、遅れが生じたときの画質よりも低い画質とすることが可能となる。
In such a configuration, if there is a delay that hinders normal recording of moving images in the writing processing of image data after image processing to the recording medium during recording of moving images composed of captured images, When the information indicating that is stored and the information is stored , the image quality of the moving image recorded in the next recording operation to the recording medium is lower than the image quality of the moving image in the current recording operation. It is automatically set to. Accordingly, during the recording of a moving image, if there is a delay that hinders normal recording of the moving image in the writing process of the image data after the image processing to the recording medium, the moving image to be recorded in the subsequent recording operation It is possible to make the image quality lower than the image quality when the delay occurs.
本発明の装置及び方法においては、動画像の記録中に、記録媒体への画像処理後の画像データの書込み処理に動画像の正常な記録を阻害する遅れが生じた場合には、次回以降の記録動作で記録する動画像の画質を、遅れが生じたときの画質よりも低い(例えば所定の割合だけ低い)画質とすることが可能となるようにした。よって、動画像を記録する記録媒体として例えば同一の記録媒体を用いる場合、動画像の記録中に画像データの書込み処理に遅れが生じたとしても、次回以降の動画像の記録に際しては、その途中に画質を変更することなく正常な記録動作を継続させることができ、動画の撮影が終了するまで均一な画質で動画像を記録することが可能となる。 In the apparatus and method of the present invention, during the recording of a moving image, if there is a delay that hinders normal recording of the moving image in the writing process of the image data after the image processing to the recording medium, The image quality of the moving image recorded by the recording operation can be made lower than the image quality when the delay occurs (for example, lower by a predetermined ratio). Therefore, for example, when the same recording medium is used as a recording medium for recording a moving image, even if there is a delay in the writing process of the image data during recording of the moving image, the recording of the moving image from the next time onward is in progress. Therefore, the normal recording operation can be continued without changing the image quality, and a moving image can be recorded with a uniform image quality until the moving image shooting is completed.
これに加え、請求項4,5,6の発明においては、動画像の記録中に、記録媒体への画像処理後の画像データの書込み処理に動画像の正常な記録を阻害する遅れが生じた後の記録動作で記録する動画像の画質の下げ幅を必要最小限に止めることができるようにした。よって、より高品質の動画像を記録することができる。
In addition, in the inventions of
さらに、請求項7の発明においては、使用期間の経過に伴い、記録する画像データの断片化によって記録媒体におけるデータの書き込み性能が一定以上劣化した場合には、それをユーザーに認識させることができるようにした。よって、記録媒体の初期化を実行させることにより、記録可能な動画像の品質を、できるだけ記録媒体が有する本来のデータの書き込み性能に応じた画質に維持することが可能となる。
Further, in the invention of
以下、本発明の一実施の形態を図にしたがって説明する。
(実施形態1)
図1は、本発明の各実施の形態に共通するデジタルカメラのブロック図である。このデジタルカメラは動画撮影機能を備えたものであり、以下の構成を備えている。
Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
(Embodiment 1)
FIG. 1 is a block diagram of a digital camera common to each embodiment of the present invention. This digital camera has a moving image shooting function and has the following configuration.
デジタルカメラは、カメラ本体1と、カメラ本体1に着脱可能な記録メディア20から構成されており、カメラ本体1には複数枚のレンズからなる光学系2、及び光学系2を介して自己の受光面に被写体の光像が結像される撮像手段であるベイヤ配列等の色フィルタが装着されたCCD3が配置されている。CCD3はタイミングジェネレータ7から送られる駆動信号により駆動され、被写体の光像を光電変換し撮像信号として出力する。CCD3からの出力信号はCDS回路4で相関二重サンプリング及びゲイン調整が行われ、A/D変換回路5でデジタル信号に変換される。A/D変換されたベイヤデータはDSP部6に入力され、ペデスタルクランプ等の処理が施された後、ブロック内の輝度・色差マトリックス回路で輝度(Y)信号及び色差(UV)信号に変換される。なお、DSP部6では、オートアイリス、オートホワイトバランス、輪郭強調、画素補間などの画品質向上のための処理も行われる。
The digital camera includes a
DSP部6から出力されたYUVデータは解像度変換ブロック8で予め設定された画像サイズに変換された後、1フレーム分のデータが順次内蔵メモリ14(例えばSDRAM)に確保される画像データ用作業領域14a(図2参照)に格納される。内蔵メモリ14に格納された1フレーム分のYUVデータは表示コントローラ11へ送られ、そこでビデオ信号に変換された後、LCD(液晶表示器)12によりスルー画像として表示される。なお、LCD12は、後述する動画撮影時においては本発明の報知手段としても機能する。
The YUV data output from the
また、動画撮影時に内蔵メモリ14に格納されたYUVデータは順次データ圧縮伸長ブロック9へ送られ、所定の動画記録方式(例えばMotion−JPEGやMPEG)のコーデックによりデータ圧縮した後コード化され、内蔵メモリ14に一時的に記憶された後、メディアコントローラ10を介してフレームデータ(ビデオデータ)として記録メディア20に順次書き込まれる。係る一連の動作はフレーム毎に繰り返し実行される。つまりストリーム記録される。なお、動画撮影のフレームレートはタイミングジェネレータ7で作成されるタイミング信号によって決まり、コード化されるデータの圧縮率はデータ圧縮伸長ブロック9内の量子化テーブル値によって決定される。 なお、静止画撮影時に内蔵メモリ14に格納された1フレーム分のYUVデータは、前記データ圧縮伸長ブロック9でJPEG方式等でデータ圧縮した後コード化され、内蔵メモリ14内でファイル化された後、メディアコントローラ10を介して記録メディア20に静止画データ(静止画ファイル)として記録される。また、データ圧縮伸長ブロック9は、静止画又は動画の再生時には記録メディア20から読み出された静止画や動画のデータを伸張し、静止画データやフレームデータとして内蔵メモリ14の画像データ用作業領域14aに展開する。
In addition, YUV data stored in the built-in
音声処理ブロック15は、音声付の動画撮影時においてカメラ本体1に内蔵されたマイク16に入力した音声をデジタル信号に変換し、データ圧縮後にオーディオデータとして内蔵メモリ14へ送る。内蔵メモリ14に送られたオーディオデータはフレームデータと共に一連のストリームデータとして記録メディア20に順次書き込まれる。また、音声処理ブロック15は、音声付動画の再生時には、内蔵メモリ14から送られたオーディオデータを復号し、アナログの音声信号に変換した後、カメラ本体1に内蔵された内蔵スピーカ17から音声出力させる。
The
キー入力ブロック18は、シャッターボタン、電源キー、MENUキー等の複数の操作キーを含み、使用者によるキー操作に応じたキー入力信号をCPU13に出力する。なお、シャッターボタンは動画撮影時に録画開始/終了ボタンとしても機能する。
The
上述した各ブロックはCPU13により制御されており、CPU13が各ブロックの制御に必要とされるプログラムやデータはプログラムメモリ19に記憶されている。そして、CPU13は上記プログラム及びキー入力信号に基づき動作することにより本発明の動画像記録手段、判断手段、画質設定手段、計測手段、速度算出手段、制御手段、取得手段として機能する。
Each block described above is controlled by the
また、プログラムメモリ19はEEPROMやフラッシュメモリ等の書き換え可能な不揮発性メモリからなり、上記プログラムやデータ以外にも、ユーザーにより設定されたシステムや各機能に関する設定データ、例えば動画撮影時に記録する動画像の品質を決める画像サイズ、フレームレート、圧縮率等の録画パラメータが随時記憶される。また、動画撮影時において、前記内蔵メモリ14には、図2に示したように、後述する書込情報100(図6参照)等の作業用データを記憶するバッファとして使用する汎用作業領域14bが、前記画像データ用作業領域14aとは別に確保される。
The
次に、以上の構成からなるデジタルカメラにおける本発明に係る動作を説明する。図3は、動画撮影モードにおいて、シャッターボタンによる撮影開始操作に応じCPU13が実行する動画撮影処理の内容を示すフローチャートである。なお、ここでは、記録メディア20の使用開始後、または初期化後において初めて動画撮影モードが設定されたものとする。
Next, the operation according to the present invention in the digital camera having the above configuration will be described. FIG. 3 is a flowchart showing the contents of the moving image shooting process executed by the
CPU13は、撮影開始操作があると直ちに図5に示した事前処理に移行し(ステップSA1)、後述する録画情報200(図7参照)が記録メディア20に記録されているか否かを確認する(ステップSA101)。ここでは、記録メディア20に一度も動画記録が行われておらず録画情報200は存在しないため(ステップSA101でNO)、そのまま図3の処理に戻り、そのときユーザーにより設定されているフレームレート、画像サイズ、圧縮率に応じた動画記録処理(ストリーム録画)を開始する。撮影開始直後の撮像タイミングでは前回の画像データ(フレームデータ)が存在しないため(ステップSA2,SA3が共にYES)、直ちにCCD3による撮像処理を実施する(ステップSA4)。引き続き、撮像した1フレーム目の画像データを圧縮符号化した後(ステップSA5)、圧縮符号化した画像データの記録メディア20への書き込みを開始するとともに、タイマ機能による画像データの書き込み時間の計測を開始する(ステップSA6)。
When the photographing start operation is performed, the
その後、画像データの書き込みが終了したら(ステップSA7でYES)、書き込み時間の計測を終了し(ステップSA8)、その計測結果と、書き込んだデータサイズを内蔵メモリ14の汎用作業領域14bに記憶する(ステップSA9)。そして、撮影終了操作又は記録メディア20のフル状態の検出があるまでの間は(ステップSA10でNO)、新たな撮影タイミングが到来する毎に撮像処理、圧縮符号化、記録メディア20へのデータ書き込みを繰り返し(ステップSA4〜SA9)、その間に前記汎用作業領域14bにフレーム毎のフレーム数分の書き込み時間(T1,T2,T3,・・・)と書き込んだ画像データのサイズ(D1,D2,D3,・・・)からなる図6に示した書込み情報100を蓄積する。
Thereafter, when the writing of the image data is finished (YES in step SA7), the writing time measurement is finished (step SA8), and the measurement result and the written data size are stored in the general-
また、上記処理を繰り返す間に、いずれかの撮影タイミングが到来したとき、前のフレームの画像データについて記録メディア20への書き込み処理(保存処理)が終了していなかったときには(ステップSA3でNO)、処理時間情報として「範囲外」を前記汎用作業領域14bに暫定的に記憶する(ステップSA11)。なお、前記汎用作業領域14bには、処理時間情報の初期値として「範囲内」が予め記憶されているものとする。さらに、今回のフレームの画像データに代えて前回のフレームの画像データを使用するための処理を実施することにより、記録メディア20へ対するデータの書込みデータ量を減らし(ステップSA12)、ステップSA2へ戻る。
Further, when any shooting timing arrives while the above processing is repeated, the writing process (storing process) to the
やがて、ユーザーによる撮影終了操作又は記録メディア20のフル状態の検出があったら(ステップSA10でYES)、引き続き図4に示した処理に進み、バッファメモリに記憶されている処理時間情報が「範囲外」でなければ(ステップSA13でNO)、バッファメモリに記憶されている書込み情報100に基づき、書き込んだ画像データの合計サイズと書込み時間の合計時間から平均書込み速度を算出し(ステップSA14)、その算出結果と、前記処理時間情報(この場合は「範囲内」)、撮影時の設定フレームレート及び設定ビットレートを、図7に示したような録画情報200として記録メディア20の所定領域に記録し(ステップSA15)、そのまま動画撮影処理を終了する。なお、設定ビットレートは、ユーザにより設定されたフレームレート、画像サイズ、及び圧縮率により一義的に決まる値である。
Eventually, if there is a shooting end operation by the user or the full state of the
また、バッファメモリに記憶されている処理時間情報が「範囲外」であったときには(ステップSA13でYES)、上記と同様に平均書込み速度を算出した後(ステップSA16)、さらに前記汎用作業領域14bに書込み情報100として記憶されている中の最大の書込み時間、つまり撮像タイミングの到来時に記録メディア20に書き込み中であった画像データの書込みに要した時間の中で最も長かった時間について、撮影時のフレームレートで画像データの書込み可能な時間(撮像処理間隔)を超えた分の、書込み許容時間に対する割合(超過割合)を算出する(ステップSA17)。そして、その算出結果と、前記処理時間情報(この場合は「範囲外」)、撮影時の設定フレームレート及び設定ビットレート、平均書込み速度を録画情報200として記録メディア20の所定領域に記録する(ステップSA18)。
If the processing time information stored in the buffer memory is “out of range” (YES in step SA13), the average writing speed is calculated in the same manner as described above (step SA16), and then the general-
次に、記録メディア20に規定回数(以下の説明では、100回とする。)以上の録画情報200が記録されているか否かを確認する(ステップSA19)。ここでは、記録メディア20を初期化した後等における初めての動画撮影であり、録画情報200が1回分しか記録されていないため(ステップSA19でNO)、そのまま動画撮影処理を終了する。なお、規定回数以上の録画情報が記録されていた場合の処理については後述する。
Next, it is confirmed whether or not the
一方、2回目以後の動画撮影が開始されたときには、前述した図5の事前処理において、記録メディア20には前回の録画情報200が記録されているため(ステップSA101でYES)、まず記録メディア20から前回の録画情報200を読み込み(ステップSA102)、前回の処理時間情報が「範囲外」であるか否か、つまり前回の動画撮影時に記録メディア20ヘの画像データの書き込みに遅れが生じたか否かを確認する(ステップSA103)。このとき処理時間情報が「範囲内」であって、遅れが生じていなければ(ステップSA103でNO)、直ちに事前処理を終了し、図3の前述したステップSA2以降の処理によって新たな動画像を記録する。
On the other hand, when the second and subsequent moving image shootings are started, the
また、前回の処理時間情報が「範囲外」であったときには、今回の動画記録時の録画パラメータにおけるフレームレート、ビットレートの値を、処理時間情報と対応して記録されている前回設定されていたフレームレート、ビットレートを、対応して記録されている超過割合に応じた分だけ下げた値に設定する、つまり動画像の画質(フレームレート、画像サイズ、圧縮率等)を記録メディア20におけるデータの書き込み性能に応じて低下させる設定を行う(ステップSA104)。例えば、図7に示したように、前回(1回目)の超過割合が20%であって、フレームレートが15fps、ビットレートが100Kバイトであったときには、下げる割合を80%として、フレームレートを12fps、ビットレートを80Kバイトに設定する。しかる後、事前処理を終了し、図3の前述したステップSA2以降の処理を実行する。これにより、2回目の動画撮影時においては、記録メディア20ヘの画像データの書き込みに遅れを生じさせることなく、つまりいずれかのフレームで前回の画像データを使用する処理(ステップSA12の処理)を行うことによる部分的な画質低下を生じさせることなく、撮影が終了するまで均一な画質で動画像を記録(ストリーム録画)することができる。
If the previous processing time information is “out of range”, the frame rate and bit rate values in the recording parameters at the time of the current video recording are set in correspondence with the processing time information. The frame rate and the bit rate are set to values corresponding to the corresponding excess ratio, that is, the image quality (frame rate, image size, compression rate, etc.) of the moving image is set in the
他方、以上の処理より動画撮影が複数回行われると、記録メディア20内の所定領域には、図7に示したように撮影回数分の録画情報200が蓄積される。そして、いずれかの動画撮影の終了時において、前記汎用作業領域14bに記憶されている処理時間情報が「範囲外」であり(ステップSA13でYES)、しかも記録メディア20の所定領域に記録されている録画情報200の数が、その回の分を含めて規定回数(100回)以上に記録されているときには(ステップSA19でYES)、録画情報200に基づき平均書込み速度の劣化度合、つまり記録メディア20におけるデータの書き込み性能の劣化度合を算出する(ステップSA20)。具体的には、今回よりも100回以上前に保存されている、処理時間情報が「範囲外」である最も古い平均書込み速度に対する、ステップSA16において算出した今回の平均書込み速度の割合(パーセント)を劣化度合として、
劣化度合 = 最も古い平均書込み速度 ÷ 今回の平均書込み速度 ×100
により求める。
On the other hand, when moving image shooting is performed a plurality of times by the above processing,
Degree of degradation = oldest average writing speed ÷ current average writing speed × 100
Ask for.
そして、算出した劣化度合が規定以上でなければ(ステップSA21でNO)、そのまま動画撮影処理を終了し、劣化度合が規定以上であったときには(ステップSA21でYES)、記録メディアの初期化を促すメッセージをLCD12に表示した後(ステップSA22)、動画撮影処理を終了する。例えば、記録メディア20に記録されている録画情報が図7に示した内容で、かつ上記規定の劣化度合が80パーセントであるとき、103回目である今回は、処理時間情報が「範囲外」であり、かつ平均書込み速度が63Kバイト/sであり、1回目の83Kバイト/sに対する劣化度合は75パーセントであるため、記録メディア20の初期化を促すメッセージをLCD12に表示させることとなる。
If the calculated degree of deterioration is not more than the specified value (NO in step SA21), the moving image shooting process is terminated, and if the degree of deterioration is more than the specified value (YES in step SA21), the initialization of the recording medium is prompted. After the message is displayed on the LCD 12 (step SA22), the moving image shooting process is terminated. For example, when the recording information recorded on the
これにより、記録メディア20としてフラッシュメモリ等のディバイスを用いる場合に、使用期間の経過に伴い記録する画像データの断片化によってデータの書き込み性能が一定以上劣化した場合には、それをユーザーに認識させることができる。したがって、記録メディア20の初期化を実行させることにより、記録可能な動画像の品質を、できるだけ記録メディア20が有する本来のデータの書き込み性能に応じた画質に維持することが可能となる。
As a result, when a device such as a flash memory is used as the
なお、本実施の形態では、動画撮影時に、記録メディア20に対する画像データの書込み処理に遅れが生じたときには、今回のフレームの画像データに代えて前回のフレームの画像データを使用することにより、記録メディア20へ対するデータの書込み量を減らすようにしたが(ステップSA12)、その時点で動画撮影を中止させるようにしてもよい。その場合であっても、次回の動画撮影時には、撮影が終了するまで均一な画質で動画像を記録(ストリーム録画)することができる。但し、動画撮影処理を終了する前に前述したステップSA14〜SA18における録画情報200の記録処理を実施する必要がある。
In the present embodiment, when a delay occurs in the writing process of the image data to the
また、動画撮影時に、記録メディア20に対する画像データの書込み処理に遅れが生じ、次回の動画撮影におけるフレームレートとビットレートを下げる際、それらを、遅れが生じたときの書込み時間の、書込み許容時間に対する超過割合に応じた分だけ下げるようにしたが、フレームレートとビットレートとを超過割合に関係なく、予め決めておいた規定の割合だけ下げるようにしてもよい。但し、本実施の形態のようにした方が、フレームレートとビットレートの下げ幅を必要最小限に止めることができ、次回の動画撮影時に、より高品質の動画像を記録することができる。
Further, when moving image shooting, there is a delay in the writing process of image data to the
また、本実施の形態では、記録メディア20を本発明の情報記憶手段、速度履歴記録手段として機能させ、動画撮影を行う毎に取得した複数の録画情報200を履歴情報として記録メディア20に保存しておくようにしたが、上記のように次回の動画撮影におけるフレームレートとビットレートを予め決めておいた規定の割合だけ下げるものとし、またユーザーに記録メディア20の初期化を促すための処理を行わない場合には、前回の動画撮影時における録画情報200だけを記録メディア20に保存するだけでもよい。
In the present embodiment, the
また、録画情報200は記録メディア20ではなくカメラ本体側(例えばプログラムメモリ19)に記録するようにしてもよい。その場合には、録画情報200を、記録メディア20を識別するための識別情報と共に、互いに対応づけて記憶しておき、使用する記録メディア20(識別情報)に対応する録画情報を読み出して使用する必要がある。
The
(実施形態2)
次に、本発明の第2の実施の形態について説明する。本実施の形態は、第1の実施の形態で図1に示したものと同様の構成を備えたデジタルカメラにおいて、前記内蔵メモリ14に、図8に示したように画像データ用作業領域14aおよび汎用作業領域14bとは別に、先に説明したリングバッファとして使用されるリングバッファ領域(例えば60秒分程度の動画データが記録可能なサイズ領域)14cが割り当てられており、内蔵メモリ14が本発明のバッファメモリとして機能するとともに、前記プログラムメモリ19には、CPU13に後述する動画撮影処理を行わせることにより、CPU13を本発明の動画像記録手段、判断手段、画質設定手段、制御手段として機能させるためのプログラムが記録されているものである。
(Embodiment 2)
Next, a second embodiment of the present invention will be described. In the present embodiment, in the digital camera having the same configuration as that shown in FIG. 1 in the first embodiment, the built-in
以下、本実施の形態の本発明に係る動作を説明する。図9は、動画撮影モードにおいて、シャッターボタンによる撮影開始操作に応じCPU13が実行する動画撮影処理の内容を示すフローチャートである。なお、ここでも、記録メディア20の使用開始後、または初期化後において初めて動画撮影モードが設定されたものとする。
Hereinafter, the operation of the present embodiment according to the present invention will be described. FIG. 9 is a flowchart showing the contents of the moving image shooting process executed by the
CPU13は、撮影開始操作があると直ちに図10に示した事前処理に移行し(ステップSB1)、記録メディア20に後述する録画情報が記録されているか否かを確認する(ステップSB101)。ここでは、記録メディア20に一度も動画記録が行われておらず録画情報は存在しないため(ステップSB101でNO)、そのまま図9の処理に戻り、そのときユーザーにより設定されているフレームレート、画像サイズ、圧縮率に応じた動画記録処理(ストリーム録画)を開始する。撮影開始直後の撮像タイミングでは、内蔵メモリ14のリングバッファ領域14cには空きが有るため(ステップSB2,SB3が共にYES)、直ちにCCD3による撮像処理を実施する(ステップSB4)。引き続き、撮像した1フレーム目の画像データを圧縮符号化した後(ステップSB5)、圧縮符号化した画像データをリングバッファ領域14cに記憶する(ステップSB6)。
When there is a shooting start operation, the
その後、撮影終了操作があるまでの間は(ステップSB7でNO)、新たな撮影タイミングが到来する毎に撮像処理、圧縮符号化、前記リングバッファ領域14cへのデータ記憶を繰り返す(ステップSB4〜SB6)。なお、その間には、リングバッファ領域14cに記憶した画像データを、記憶順に読み出して記録メディア20に随時記録し、かつ記録が終了した動画データをリングバッファ領域14cから消去する処理(上書きを許可する処理)を並行して行う(図示せず)。
Thereafter, until a shooting end operation is performed (NO in step SB7), the imaging process, compression encoding, and data storage in the
また、上記処理を繰り返す間に、いずれかの撮影タイミングが到来したとき、リングバッファ領域14cに次の画像データを記憶するのに十分な空きがなかった場合には(ステップSB3でNO)、リングバッファ状態として「一杯」を、またその時点で記録メディア20に書込み済みのデータ量をそれぞれバッファ(汎用作業領域14b)に暫定的に記憶する(ステップSB8)。なお、前記汎用作業領域14bには、予めリングバッファ状態として「空き有り」が記憶されているものとする。さらに、今回のフレームの画像データに代えて前回のフレームの画像データを使用するための処理を実施することにより、記録メディア20に対するデータの書込み量を減らし(ステップSB9)、ステップSB2へ戻る。
Further, when any shooting timing arrives while the above processing is repeated, if there is not enough space in the
やがて、ユーザーによる撮影終了操作又は記録メディア20のフル状態の検出があったら(ステップSB7でYES)、バッファメモリに記憶されているリングバッファ状態、及び書込み済みデータ量と、撮影時のフレームレート及びビットレートとからなる録画情報300(図11参照)として記録メディア20の所定領域に記録した後(ステップSB10)、動画撮影処理を終了する。
Eventually, if there is a shooting end operation by the user or the full state of the
一方、2回目以後の動画撮影が開始されたときには、前述した図10の事前処理において、記録メディア20に録画情報が記録されているため(ステップSB101でYES)、まず記録メディア20から録画情報を読み込み(ステップSB102)、リングバッファ状態が「一杯」であるか否かを確認する(ステップSB103)。このときリングバッファ状態が「空き有り」であれば(ステップSB103でNO)、直ちに事前処理を終了し、図9の前述したステップSB2以降の処理によって新たな動画像を記録する。
On the other hand, when the second and subsequent moving image shootings are started, the recording information is recorded on the
逆に、録画情報300が図11に示したような内容であって、リングバッファ状態が「一杯」であったときには、今回の動画記録時の録画パラメータにおけるフレームレート、ビットレートの値として、リングバッファ状態と共に記録されている書込み済みデータ量とリングバッファの容量の比率に合わせて、前回設定されていたフレームレート、ビットレートを下げた値に設定する、つまり動画像の画質を記録メディア20におけるデータの書き込み性能に応じて低下させる設定を行う(ステップSB104)。
On the contrary, when the
例えば、図示した例では、前回設定されていたフレームレートが15fps、ビットレートが100Kバイト、書込み済みデータ量が48000Kバイトであるため、仮にリングバッファの容量が6000Kバイトであれば(比率が8:1)、下げる割合を80%として、フレームレートを12fps、ビットレート(画像サイズ、圧縮率)を80Kバイトに設定する。しかる後、事前処理を終了し、図9の前述したステップSB2以降の処理を実行する。これにより、2回目の動画撮影時においては、動画撮影途中にリングバッファに溢れが生じることなく、つまりいずれかのフレームで前回の画像データを使用する処理(ステップSB9の処理)を行うことによる部分的な画質低下を生じさせることなく、撮影が終了するまで均一な画質で動画像を記録(ストリーム録画)することができる。 For example, in the illustrated example, the previously set frame rate is 15 fps, the bit rate is 100 Kbytes, and the amount of written data is 48000 Kbytes. Therefore, if the ring buffer capacity is 6000 Kbytes (ratio is 8: 1) The rate of reduction is set to 80%, the frame rate is set to 12 fps, and the bit rate (image size, compression rate) is set to 80 Kbytes. Thereafter, the pre-processing is terminated, and the processing from step SB2 onward in FIG. 9 is executed. Thereby, at the time of the second moving image shooting, the ring buffer does not overflow during the moving image shooting, that is, a portion obtained by performing the process using the previous image data in any frame (the process of step SB9). It is possible to record a moving image with a uniform image quality (stream recording) until shooting is completed without causing a deterioration in image quality.
なお、本実施の形態では、動画撮影時に、リングバッファが一杯となったときには、今回のフレームの画像データに代えて前回のフレームの画像データを使用することにより、記録メディア20に対するデータの書込み量を減らすようにしたが(ステップSB9)、その時点で動画撮影を中止させるようにしてもよい。その場合であっても、次回の動画撮影時には、撮影が終了するまで均一な画質(フレームレート、画像サイズ、圧縮率)で動画像を記録(ストリーム録画)することができる。但し、動画撮影処理を終了する前に前述したステップSB10における録画情報300の記録処理を実施する必要がある。
In the present embodiment, when the ring buffer becomes full during moving image shooting, the amount of data written to the
また、動画撮影途中にリングバッファが一杯となり、次回の動画撮影におけるフレームレートとビットレートを下げる際、それらを、リングバッファ領域14cの容量と、リングバッファが一杯となった時の書込み済みデータ量との比率に合わせて下げるようにしたが、フレームレートとビットレートとを上記比率に関係なく、予め決めておいた規定の割合だけ下げるようにしてもよい。その場合、前述した書込み済みデータ量の記録は当然不要となる。但し、本実施の形態のようにした方が、フレームレートとビットレートの下げ幅を必要最小限に止めることができ、次回の動画撮影時に、より高品質の動画像を記録することができる。
In addition, when the ring buffer becomes full during moving image shooting and the frame rate and bit rate for the next moving image shooting are lowered, the
また、本実施の形態においても、記録メディア20を本発明の情報記憶手段として機能させ、録画情報300を記録メディア20に記録するようにしたが、記録メディア20ではなくカメラ本体側(例えばプログラムメモリ19)に記録するようにしてもよい。その場合には、録画情報を、記録メディア20を特定する識別情報と共に、互いに対応づけて記憶しておき、使用する記録メディア20(識別情報)に対応する録画情報を読み出して使用する必要がある。
Also in the present embodiment, the
また、本実施の形態においては、記録メディア20におけるデータの書き込み性能が一定以上劣化した場合に、記録メディアの初期化を促すメッセージを表示するといった動作は行わないようにしたが、本実施の形態においても、第1の実施の形態のようにそれを実施するようにしてもよい。但し、その場合には、第1の実施の形態と同様に、動画像の記録を行っている間に画像データの書込み時間を計測するとともに、撮影毎に平均書込み速度を履歴情報として記憶しておき、それに基づき記録メディア20におけるデータの書き込み性能が一定以上劣化したか否かを判断する処理が別途必要となる。
Further, in the present embodiment, when the data writing performance in the
また、本実施の形態においては、記録メディア20へ書込む以前にリングバッファ領域14cに一時的に記憶しておく画像データを、圧縮符号化した後の画像データとしたが、圧縮前のYUVデータ又はベイヤデータをリングバッファ領域14cに記憶するようにしてもよい。
In the present embodiment, the image data temporarily stored in the
また、前述したステップSB3においては、リングバッファ領域14cに次の画像データを記憶するのに十分な空きがなかった場合にリングバッファ状態が「一杯」であると判断するようにしたが、例えばリングバッファ領域14cの空き容量が所定量よりも低下していたとき、バッファメモリが一杯になったと判断するようにしてもよい。つまり、バッファメモリが一杯になったか否かの判断は、リングバッファ領域14cにおける画像データの書き込み位置と読み出し位置とが所定の関係になったか否かによって行えばよい。
In step SB3 described above, when there is not enough space in the
また、前回設定されていたフレームレート、ビットレートを下げる割合についても、リングバッファ領域14cにおける画像データの書き込み位置と読み出し位置とが所定の関係になった時点において、記録メディア20に未だ書込まれずにリングバッファ領域14cに残存する画像データの合計サイズと、記録メディア20に書込みが完了している画像データの合計サイズとの比率に応じた割合とすればよい。
In addition, the rate at which the frame rate and the bit rate that were set last time are not yet written to the
また、第1の実施の形態では、いずれかの撮像タイミングが到来した時点で記録メディア20に対する前のフレームの画像データの書込み処理が終了していない場合に、次回の動画撮影において記録する動画像の画質を下げるように、次回使用される録画パラメータ(フレームレート、画像サイズ、圧縮率)の値を下げ、また第2の実施の形態では、いずれかの撮像タイミングが到来した時点でリングバッファ状態が「一杯」であった場合に、次回使用される録画パラメータの値を下げるようにしたが、以下のようにしてもよい。
Further, in the first embodiment, when any of the imaging timings arrives and the writing process of the image data of the previous frame on the
例えば、録画情報として、次回の動画撮影において使用される録画パラメータ(フレームレート、画像サイズ、圧縮率)を記録メディア20等へ記録しておき、次回の動画撮影時には、予め記録されている録画パラメータを使用した動画撮影を行うようにしてもよい。
For example, as recording information, recording parameters (frame rate, image size, compression rate) used in the next moving image shooting are recorded on the
また、単純に録画情報として、動画撮影中に、いずれかの撮像タイミングが到来した時点で記録メディア20に対する前のフレームの画像データの書込み処理が終了していない状況や、リングバッファ状態が「一杯」となる状況が発生したことを示すフラグ情報を記録しておき、係るフラグ情報から上記状況が発生したか否かを判断し、それが発生した場合に、次回使用される録画パラメータ(フレームレート、画像サイズ、圧縮率)の値を下げるための処理を行わせるようにしてもよい。
In addition, simply as video recording information, when any imaging timing arrives during moving image shooting, the state where the writing process of the image data of the previous frame to the
また、以上の説明においては、本発明を、動画撮影機能を備えたデジタルカメラに採用した場合について説明したが、これに限らず本発明は、録画時に動画をストリーム記録する構成を備えたものであれば、例えばデジタルビデオカメラ、カメラ付き携帯電話機、カメラ付きPDA、カメラ付きパソコン等の種々の電子カメラ装置にも採用することができる。その場合においても、前述した効果を得ることができる。 In the above description, the case where the present invention is applied to a digital camera having a moving image shooting function has been described. However, the present invention is not limited to this, and the present invention has a configuration for recording a moving image at the time of recording. If present, the present invention can be applied to various electronic camera devices such as a digital video camera, a camera-equipped mobile phone, a camera-equipped PDA, and a camera-equipped personal computer. Even in that case, the above-described effects can be obtained.
さらに、任意の形式で圧縮して記録する動画像は撮影されたものでなくとも、例えばアナログのテレビ放送の放送画像やビデオ入力端子から入力された動画像であってもよく、また、その場合を含め、動画を記録する記録媒体は半導体メモリに限らずハードディスク等であってもかまわない。 Furthermore, a moving image that is compressed and recorded in an arbitrary format may be a moving image input from a video input terminal or a broadcast image of an analog television broadcast, for example. In addition, a recording medium for recording a moving image is not limited to a semiconductor memory, and may be a hard disk or the like.
1 カメラ本体
2 光学系
3 CCD
12 LCD
13 CPU
14 内蔵メモリ
14a 画像データ用作業領域
14b 汎用作業領域
14c リングバッファ領域
17 内蔵スピーカ
18 キー入力ブロック
19 プログラムメモリ
20 記録メディア
200 録画情報
300 録画情報
1
12 LCD
13 CPU
14 Built-in
Claims (10)
この動画像記録手段による前記記録媒体への画像処理後の画像データの書込み処理に、動画像の正常な記録を阻害する遅れが生じたか否かを判断する判断手段と、
この判断手段により前記遅れが生じたと判断された場合に、その旨を示す情報を前記記憶媒体を識別するための識別情報と共に記憶する情報記憶手段と、
この情報記憶手段に前記遅れが生じた旨を示す情報が記憶されている場合には、前記動画像記録手段による前記記録媒体への次回の記録動作で記録される動画像の画質を、今回の記録動作での動画像の画質よりも低い画質に設定する画質設定手段と
を備えたことを特徴とする動画像記録装置。 Moving image recording means for sequentially recording image data constituting the moving image on a recording medium while performing image processing at a predetermined frame period;
Determination means for determining whether or not a delay that hinders normal recording of moving images has occurred in the writing processing of image data after image processing on the recording medium by the moving image recording means;
Information storage means for storing information indicating the fact together with identification information for identifying the storage medium when the determination means determines that the delay has occurred;
When the information indicating that the delay has occurred in the information storage means is stored, the image quality of the next moving image recorded by the recording operation to the recording medium by the moving image recording unit, the current A moving image recording apparatus comprising: an image quality setting unit configured to set an image quality lower than that of a moving image in a recording operation .
前記画質設定手段は、前記動画像記録手段による次回の記録動作で記録される動画像の画質を、前記情報記憶手段に記憶されている画質情報により示される画質よりも所定の割合だけ低い画質に設定することを特徴とする請求項1記載の動画像記録装置。 The information storage means stores image quality information indicating image quality of moving images sequentially recorded on a recording medium by the moving image recording means when it is determined that a delay has occurred by the determining means;
The image quality setting means sets the image quality of the moving image recorded in the next recording operation by the moving image recording means to an image quality lower by a predetermined ratio than the image quality indicated by the image quality information stored in the information storage means. The moving image recording apparatus according to claim 1, wherein the moving image recording apparatus is set.
前記画質設定手段は、前記動画像記録手段による次回の記録動作で記録される動画像の画質を、前記情報記憶手段に記憶されている画質情報により示される画質に設定することを特徴とする請求項1記載の動画像記録装置。 The information storage means stores image quality information indicating an image quality of a moving image recorded in a next recording operation by the moving image recording means when it is determined that a delay has occurred by the determining means;
The image quality setting means sets an image quality of a moving image recorded in a next recording operation by the moving image recording means to an image quality indicated by image quality information stored in the information storage means. Item 4. The moving image recording apparatus according to Item 1.
前記画質設定手段は、前記動画像記録手段による次回の記録動作で記録される動画像の画質を、前記判断手段により前記遅れが生じたと判断されたときの動画像の記録途中において前記計測手段により計測された所要時間における、前記画像処理後の画像データの記録に許容されていた時間に対する超過割合に応じた割合だけ低下した画質に設定することを特徴とする請求項2記載の動画像記録装置。 Measuring means for measuring a time required when image data after image processing is recorded on the recording medium by the moving image recording means;
The image quality setting means determines the image quality of the moving image recorded in the next recording operation by the moving image recording means by the measuring means during the recording of the moving image when the determination means determines that the delay has occurred. 3. The moving image recording apparatus according to claim 2, wherein the image quality is set to be reduced by a ratio corresponding to an excess ratio with respect to a time allowed for recording the image data after the image processing in the measured required time. .
前記判断手段は、前記バッファメモリにおける画像データの書き込み位置と読み出し位置とが所定の関係となったとき前記遅れが生じたと判断し、
前記画質設定手段は、前記動画像記録手段による次回の記録動作で記録される動画像の画質を、前記判断手段により前記遅れが生じたと判断された時点で前記バッファメモリに記録されている前記記録媒体に未記録の画像データの合計サイズと、前記記録媒体に記録済みの画像データの合計サイズとの比率に応じた割合だけ低下した画質に設定することを特徴とする請求項1記載の動画像記録装置。 A buffer memory that temporarily stores image data after image processing for a plurality of frames to be recorded on the recording medium;
The determining means determines that the delay has occurred when a write position and a read position of image data in the buffer memory have a predetermined relationship;
The image quality setting means records the image quality of a moving image recorded in the next recording operation by the moving image recording means, which is recorded in the buffer memory when the determination means determines that the delay has occurred. 2. The moving image according to claim 1, wherein the image quality is set to a quality reduced by a ratio corresponding to a ratio between a total size of image data not recorded on the medium and a total size of image data recorded on the recording medium. Recording device.
前記判断手段は、前記バッファメモリにおける画像データの書き込み位置と読み出し位置とが所定の関係となったとき前記遅れが生じたと判断し、The determining means determines that the delay has occurred when a write position and a read position of image data in the buffer memory have a predetermined relationship;
前記画質設定手段は、前記動画像記録手段による次回の記録動作で記録される動画像の画質を、前記判断手段により前記遅れが生じたと判断された時点で前記記録媒体に書込み済みのデータ量と、前記バッファメモリの容量との比率に応じた割合だけ低下した画質に設定することを特徴とする請求項1記載の動画像記録装置。The image quality setting means determines the image quality of the moving image recorded in the next recording operation by the moving image recording means, the amount of data already written on the recording medium when the determination means determines that the delay has occurred. 2. The moving picture recording apparatus according to claim 1, wherein the image quality is set to be lowered by a ratio corresponding to a ratio with the capacity of the buffer memory.
前記動画像記録手段による動画像の記録途中に前記計測手段により計測された所要時間の合計、及び前記記録媒体に記録された全画像データの合計サイズから、前記記録媒体へのデータの平均書込み速度を算出する速度算出手段と、
前記動画像記録手段により新たな動画像が前記記録媒体へ記録される毎に前記算出手段により算出された平均書込み速度を履歴情報として記憶する速度履歴記憶手段と、
この速度履歴記憶手段に記憶されている履歴情報に基づき、所定期間における前記平均書込み速度の劣化度合を取得する取得手段と、
この取得手段により取得された劣化度合が決められた劣化度合を超えた旨を報知する報知手段と
を備えたことを特徴とする請求項1,2,3,5,6のいずれかに記載の動画像記録装置。 Measuring means for measuring a time required when image data after image processing is recorded on the recording medium by the moving image recording means;
The average writing speed of data to the recording medium from the total required time measured by the measuring means during the recording of moving images by the moving image recording means and the total size of all image data recorded on the recording medium Speed calculating means for calculating
Speed history storage means for storing, as history information, an average writing speed calculated by the calculation means each time a new moving image is recorded on the recording medium by the moving image recording means;
Based on the history information stored in the speed history storage means, an acquisition means for acquiring the degree of deterioration of the average writing speed in a predetermined period;
Claim 1,2,3,5, characterized in that a notifying means for notifying the deterioration degree obtained by the acquisition means exceeds a deterioration degree which is determined, according to any one of the 6 Video recording device.
前記記録媒体への画像処理後の画像データの書込み処理に、動画像の正常な記録を阻害する遅れが生じたか否かを判断する工程と、
前記遅れが生じたと判断された場合に、その旨を示す情報を前記記憶媒体を識別するための識別情報と共に記憶する工程と、
前記情報記憶手段に前記遅れが生じた旨を示す情報が記憶されている場合には、前記記録媒体への次回の動画像の記録動作に先立ち、前記記録媒体に記録する動画像の画質を今回の記録動作での動画像の画質よりも低い画質に設定する工程と
を含むことを特徴とする動画像記録方法。 In a moving image recording method for sequentially recording image data constituting a moving image on a recording medium while performing image processing at a predetermined frame period,
A step of determining whether or not a delay that hinders normal recording of a moving image has occurred in a writing process of image data after image processing on the recording medium;
When it is determined that the delay has occurred, storing information indicating that together with identification information for identifying the storage medium ;
If information indicating that the delay has occurred is stored in the information storage means, the image quality of the moving image to be recorded on the recording medium is set to the current image quality prior to the next moving image recording operation on the recording medium. And a step of setting the image quality to be lower than the image quality of the moving image in the recording operation .
動画像を構成する画像データを所定のフレーム周期で画像処理しながら記録媒体に順次記録する動画像記録手段と、
この動画像記録手段による前記記録媒体への画像処理後の画像データの書込み処理に、動画像の正常な記録を阻害する遅れが生じたか否かを判断する判断手段と、
この判断手段により前記遅れが生じたと判断された場合に、その旨を示す情報を前記記憶媒体を識別するための識別情報と共に情報記憶手段に記憶させる制御手段と、
前記情報記憶手段に前記遅れが生じた旨を示す情報が記憶されている場合には、前記動画像記録手段による前記記録媒体への次回の記録動作で記録される動画像の画質を、今回の記録動作での動画像の画質よりも低い画質に設定する画質設定手段と
して機能させるためのプログラム。 A computer having a moving image recording apparatus for sequentially recording image data constituting a moving image on a recording medium while performing image processing at a predetermined frame period;
Moving image recording means for sequentially recording image data constituting the moving image on a recording medium while performing image processing at a predetermined frame period;
Determination means for determining whether or not a delay that hinders normal recording of moving images has occurred in the writing processing of image data after image processing on the recording medium by the moving image recording means;
Control means for storing information indicating the fact in the information storage means together with identification information for identifying the storage medium when the determination means determines that the delay has occurred;
Wherein when said delay information indicating that occurs is stored in the information storage means, the image quality of the next moving image recorded by the recording operation to the recording medium by the moving image recording unit, the current A program for functioning as an image quality setting means for setting an image quality lower than that of a moving image in a recording operation .
動画像を構成する画像データを所定のフレーム周期で画像処理しながら記録媒体に順次記録する動画像記録手段と、
この動画像記録手段による前記記録媒体への画像処理後の画像データの書込み処理に、動画像の正常な記録を阻害する遅れが生じたか否かを判断する判断手段と、
この判断手段により前記遅れが生じたと判断された場合に、その旨を示す情報を前記記憶媒体を識別するための識別情報と共に情報記憶手段に記憶させる制御手段と、
前記情報記憶手段に前記遅れが生じた旨を示す情報が記憶されている場合には、前記動画像記録手段による前記記録媒体への次回の記録動作で記録される動画像の画質を、今回の記録動作での動画像の画質よりも低い画質に設定する画質設定手段と
を備えたことを特徴とする電子カメラ装置。 In an electronic camera device having a moving image photographing function for sequentially recording image data constituting a moving image captured by an imaging unit on a detachable recording medium while compressing at a predetermined frame cycle.
Moving image recording means for sequentially recording image data constituting the moving image on a recording medium while performing image processing at a predetermined frame period;
Determination means for determining whether or not a delay that hinders normal recording of moving images has occurred in the writing processing of image data after image processing on the recording medium by the moving image recording means;
Control means for storing information indicating the fact in the information storage means together with identification information for identifying the storage medium when the determination means determines that the delay has occurred;
Wherein when said delay information indicating that occurs is stored in the information storage means, the image quality of the next moving image recorded by the recording operation to the recording medium by the moving image recording unit, the current An electronic camera apparatus comprising: an image quality setting unit configured to set an image quality lower than that of a moving image in a recording operation .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004112615A JP4305254B2 (en) | 2004-04-07 | 2004-04-07 | Moving image recording apparatus, electronic camera apparatus, moving image recording method, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004112615A JP4305254B2 (en) | 2004-04-07 | 2004-04-07 | Moving image recording apparatus, electronic camera apparatus, moving image recording method, and program |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2009055338A Division JP4687801B2 (en) | 2009-03-09 | 2009-03-09 | Moving image recording apparatus, electronic camera apparatus, moving image recording method, and program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2005303395A JP2005303395A (en) | 2005-10-27 |
JP4305254B2 true JP4305254B2 (en) | 2009-07-29 |
Family
ID=35334444
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2004112615A Expired - Fee Related JP4305254B2 (en) | 2004-04-07 | 2004-04-07 | Moving image recording apparatus, electronic camera apparatus, moving image recording method, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4305254B2 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007142754A (en) * | 2005-11-17 | 2007-06-07 | Canon Inc | Imaging apparatus |
JP6554761B2 (en) * | 2014-06-18 | 2019-08-07 | リコーイメージング株式会社 | Moving picture imaging apparatus and moving picture imaging method |
JP6463960B2 (en) * | 2014-12-11 | 2019-02-06 | 株式会社イマジオム | Video recording device |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH10164503A (en) * | 1996-11-26 | 1998-06-19 | Matsushita Electric Ind Co Ltd | Video-processing device and method therefor |
JP2001111956A (en) * | 1999-10-12 | 2001-04-20 | Olympus Optical Co Ltd | Electronic camera |
JP2002247509A (en) * | 2001-02-21 | 2002-08-30 | Sanyo Electric Co Ltd | Camera device |
-
2004
- 2004-04-07 JP JP2004112615A patent/JP4305254B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2005303395A (en) | 2005-10-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4725183B2 (en) | Imaging apparatus and method | |
US7705904B2 (en) | Moving-image recording device for recording moving image | |
JP4315085B2 (en) | Camera device and moving image shooting method | |
US8743227B2 (en) | Imaging apparatus and control method for reducing a load of writing image data on a recording medium | |
JP4777180B2 (en) | Imaging apparatus and control method thereof | |
WO2008053716A1 (en) | Imaging device and imaging method | |
US20060109754A1 (en) | Electronic camera apparatus with moving-image picking-up function and moving-image recording method | |
KR20070088445A (en) | Image processor | |
JP4958758B2 (en) | Recording apparatus, reproducing apparatus, recording method, reproducing method, and program | |
JP2009147549A (en) | Moving image recording apparatus, moving image reproducing apparatus and program | |
JP4687801B2 (en) | Moving image recording apparatus, electronic camera apparatus, moving image recording method, and program | |
US8379093B2 (en) | Recording and reproduction apparatus and methods, and a recording medium storing a computer program for executing the methods | |
JP4785460B2 (en) | Imaging apparatus and imaging method | |
JP4305254B2 (en) | Moving image recording apparatus, electronic camera apparatus, moving image recording method, and program | |
JP4962503B2 (en) | Image recording apparatus, image recording method, and program | |
JP4799504B2 (en) | Image decoding apparatus and control method thereof | |
JP4942288B2 (en) | Electronic camera device | |
KR20090064278A (en) | Recording apparatus, replaying apparatus, recording method, replaying method and program recording medium | |
JP4254548B2 (en) | Moving image recording apparatus and program | |
JP2008160860A (en) | Electronic camera apparatus, moving image recording method and program | |
JP2009050017A (en) | Moving image recording apparatus and program | |
JP2010147531A (en) | Imaging apparatus and imaging method | |
KR101332299B1 (en) | Image recording apparatus and method thereof | |
JP2005348258A (en) | Photographing apparatus and method, program and storage medium | |
US11089212B2 (en) | Image capture apparatus that records video signal captured at variable frame rate as moving image data, method of controlling same, and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20070228 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20090106 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20090309 |
|
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: 20090407 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20090420 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 4305254 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120515 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120515 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130515 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130515 Year of fee payment: 4 |
|
LAPS | Cancellation because of no payment of annual fees |