JP4095165B2 - Video recording apparatus and computer-readable recording medium - Google Patents

Video recording apparatus and computer-readable recording medium Download PDF

Info

Publication number
JP4095165B2
JP4095165B2 JP14747098A JP14747098A JP4095165B2 JP 4095165 B2 JP4095165 B2 JP 4095165B2 JP 14747098 A JP14747098 A JP 14747098A JP 14747098 A JP14747098 A JP 14747098A JP 4095165 B2 JP4095165 B2 JP 4095165B2
Authority
JP
Japan
Prior art keywords
video
recording medium
rearrangement
data control
data
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
Application number
JP14747098A
Other languages
Japanese (ja)
Other versions
JPH1145518A (en
Inventor
浩史 須田
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP14747098A priority Critical patent/JP4095165B2/en
Publication of JPH1145518A publication Critical patent/JPH1145518A/en
Application granted granted Critical
Publication of JP4095165B2 publication Critical patent/JP4095165B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Television Signal Processing For Recording (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Management Or Editing Of Information On Record Carriers (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、固体磁気ディスクメモリや光磁気ディスクメモリ、光ディスクメモリ等に動画や静止画を記録するビデオカメラ等に用いて好適な映像記録装置に関する。
【0002】
【従来の技術】
従来の映像記録再生装置としては、アナログ映像信号を磁気テープに記録するビデオテープレコーダがある。このような磁気記録再生装置に対して、映像信号をデジタル信号に変換した後、磁気テープに記録するデジタルVTR、固体ディスクや光磁気ディスクに記録するディスクビデオ、フラッシュメモリやSRAM等の固体メモリに記録する固体メモリビデオ等が提案されている。これらのビデオシステムでは、情報量の削減のために入力デジタル信号に圧縮処理を施しており、少ない記憶容量で多くの動画情報や静止画情報の記録を可能にしている。
【0003】
このような映像記録装置の圧縮方式は、一般的にまず、画像を水平n×垂直n個の画素ごとに複数のブロックに分割し、各ブロックごとにディスクリートコサイン変換(DCT)等の直交変換を施し、各係数を所定のビット数に丸めることで量子化する。画像情報は低域に偏っているため、高周波成分のビット数を減らすことでデータ量を削減することができる。また、ハフマン符号化等の可変長符号化により出現確率に応じたデータ圧縮を行うことができる。さらに、動画の映像はフレーム間での相関が強いので、この性質を用いてフレーム間の差分を抽出することで、大幅に圧縮をかけることが可能になる。これらの圧縮技術を組み合わせて動画像の圧縮を行い、データ量を削減した上で固体磁気ディスクメモリや光ディスクメモリ等に記録する動画像記録システムが各種提案されている。
【0004】
【発明が解決しようとする課題】
上述の動画像記録システムにおいては、単位時間あたり動画像のデータ量が多いため、できるだけ高速でディスクメモリとの間で入出力を行う必要がある。ところが、動画の記録と消去を何回か繰り返すと、メモリ内の消去された空きスペースと記録されたデータがそれぞれ断片化してしまい、このため映像を連続して記録するスペースが少なくなり、高速なデータ入出力が困難になってくるなどの問題があった。
【0005】
本発明は上記の問題を解決するために成されたもので、記録媒体上に映像データを連続して記録できるスペースを常に確保できるようにすることを目的とする。
【0006】
【課題を解決するための手段】
本発明は、入力される映像情報を記録媒体に記録する映像記録装置であって所定のスイッチの操作に基づいて、上記記録媒体上に記録された映像情報の記録位置を変更する再配置を行うデータ制御手段と、上記記録媒体上のデータ記録済み領域とデータ未記録領域の分布状態を検出して、上記再配置を行うべき映像情報を識別する識別手段と、上記再配置を一度に行う回数を設定する設定手段とを備え、上記データ制御手段は、上記識別手段によって識別された映像情報に関する再配置を、上記設定手段によって設定された回数ずつ複数回に分割して実行することを特徴とする。
【0007】
また、本発明は、入力される映像情報を記録媒体に記録するコンピュータに、所定のスイッチの操作に基づいて、上記記録媒体上に記録された映像情報の記録位置を変更する再配置を行うデータ制御手順と、上記記録媒体上のデータ記録済み領域とデータ未記録領域の分布状態を検出して、上記再配置を行うべき映像情報を識別する識別手順と、上記再配置を一度に行う回数を設定する設定手順とを実行させるプログラムを記憶したコンピュータ読み取り可能な記録媒体であって、上記データ制御手順では、上記識別手順で識別された映像情報に関する再配置を、上記設定手順で設定された回数ずつ複数回に分割して実行することを特徴とするコンピュータ読み取り可能な記録媒体であることを特徴とする。
また、本発明は、入力される映像情報を記録媒体に記録する映像記録装置における映像記録方法であって、所定のスイッチの操作に基づいて、上記記録媒体上に記録された映像情報の記録位置を変更する再配置を行うデータ制御工程と、上記記録媒体上のデータ記録済み領域とデータ未記録領域の分布状態を検出して、上記再配置を行うべき映像情報を識別する識別工程と、上記再配置を一度に行う回数を設定する設定工程とを備え、上記データ制御工程では、上記識別工程で識別された映像情報に関する再配置を、上記設定工程で設定された回数ずつ複数回に分割して実行することを特徴とする。
【0008】
【発明の実施の形態】
以下、図面を参照し、本発明の実施の形態について説明する。
(第1実施形態)
図1は本発明の第1の実施の形態の構成を示す図である。図1において、ビデオカメラ101で撮影された被写体110の映像信号は、加算器108へ入力されると共に、データ圧縮回路102へ入力される。記録手段あるいはデータ制御手段としてのデータ圧縮回路102では、制御手段としてのマイクロコンピュータ(以下、マイコンと称す)104から指示された圧縮率とタイミングでデータを圧縮して、記録媒体あるいはメモリ手段としてのハードディスク103に記録する。マイコン104は、ハードディスク103に記録された映像データを、映像選択スイッチ105と映像消去スイッチ106の状態に基づいて選択し消去する。次に、後述するようにしてハードディスク103のデータの並びを再配置することで最適化する。この映像選択、映像消去、再配置の状態は、キャラクタジェネレータ107で生成され、加算器108でビデオカメラ101からの映像信号とミックスされて表示手段としてのディスプレイ109に表示される。なお、111は本発明によるコンピュータ読み取り可能な記録媒体としてのメモリであり、半導体メモリ、磁気媒体、光磁気ディスク、光ディスク、CD−ROM等が用いられ、後述の図3、図6、図7にフローチャートで示す処理をマイコン104で実行するプログラムが格納されている。
【0009】
次に、ハードディスク103上のデータの並び及びデータ再配置による最適化について、図2を用いて説明する。図2(a)はハードディスク103のデータ配置を示す図である。ハードディスク103は、同心円状に外側からトラック1、トラック2、トラック3、トラック4、トラック5と記録トラックがあり、各トラックはセクタ1からセクタ8までさらに細かく分かれている。データはこのセクタ単位で映像の各カットがハードディスク103に記録される。以降、1トラック目の1セクタをセクタ11、3トラック目の5セクタをセクタ35のように表現するものとする。
【0010】
図2(b)は、映像をハードディスク103に記録した際に、各セクタにどのように記録されるかを示した図である。何も記録されていないハードディスク103に映像データが記録される場合は、トラック1のセクタ1(セクタ11)から順に記録される。従って、まず6セクタの記録容量を必要とする映像1は、セクタ11から12、13、14、15、16までの領域を使用して記録を完了する。次に、3セクタの記憶容量を必要とする映像2は、セクタ17、18、そして2トラック目に進みセクタ21に記憶される。さらに、4セクタの記憶容量を必要とする映像3は、セクタ22、23、24、25に記憶されて完了する。以下さらに、別な映像を連続して記憶する場合も、同様にハードディスク上で連続的な配置になるように記憶される。
【0011】
さて、映像1、2、3まで書き込んだ状態で、映像2を削除(消去)するとすると、セクタ17、18、21のデータが削除されてこの部分が空きになる。次に、5セクタの記憶容量を必要とする映像4を書き込もうとすると、セクタ17、18、21、26、27と非連続になってしまい、ハードディスクの記録、再生の速度が遅くなる。そこで、セクタ17、18、21を削除した後、データを再配置して、ハードディスクの最適化を行う。映像1はそのままだが、セクタ22からセクタ25まで書かれている映像3を、図2(c)に示すように、セクタ17、18、21、22に移動させる。これにより、その次に5セクタの記憶容量を必要とする映像4を記録するときには、セクタ23、24、25、26、27とハードディスク上に連続して書かれる。
【0012】
図3はマイコン104の動作を示すフローチャートであり、ステップS301〜310から成る。これら各ステップS301〜310はメモリ111に記録されたプログラムに従って行われる。図4は上記処理中におけるディスプレイ表示動作を示す図である。
図3において、ステップS301から始まり、まずキャラクタジェネレータ107を通してディスプレイ109に映像番号を表示する(S302)。例えば、図4(a)の画面1のごとく“映像番号:1”と表示する。次に、映像選択スイッチ105が押されているかどうかチェックし(S303)、押されていれば、映像番号を増加させて(S305)、新映像番号を表示する(S306)。例えば、図4(b)の画面2のごとく“映像番号:2”と番号を増加させて表示する。
【0013】
ステップS303で映像選択スイッチ105がオフの場合は、さらに映像消去スイッチ106が押されているかどうかチェックし(S304)、押されている場合は、現在表示中の映像番号の映像を消去し(S307)、映像消去中の表示を出す(S308)。例えば、図4(c)の画面3のごとく“映像番号:2:消去中”と表示する。そして、この直後にハードディスク103のデータを前述のようにして再配置することで最適化を行う(S309)。このとき最適化を行っている旨の表示を出す(S310)。例えば、図4(d)の画面4のごとく“データ最適化中”と表示して使用者に知らせる。この再配置のアルゴリズムとしては、例えばハードディスクの空きエリアに一旦映像信号をコピーした後に再配置すべき空きエリアにコピーする(映像単位でもセクタ単位でもよい)方法、あるいは始めから順次セクタ単位で空きエリアに書き込んで行く方法等、種々の方法が考えられる。なお、再配置処理(映像情報再配置処理)時のデータの一時退避用メモリは、ハードディスク上でなく、他のメモリを用いてもよく、そのワークメモリも1セクタ分あれば十分である。
【0014】
(第2、第3実施形態)
図5は第2、第3の実施の形態の構成を示す図であり、図1と同一の番号は同一の動作をするので説明を省略する。図5において、スイッチ501は主電源スイッチで、このスイッチをオンにすることで、マイコン104、スイッチ502、スイッチ503に通電される。スイッチ502は電源スイッチで、マイコン104にスイッチの状態を知らせる。スイッチ503はマイコン104で制御されて、ビデオカメラ101、データ圧縮回路102、ハードディスク103、キャラクタジェネレータ107、ディスプレイ109等の各部に電源を供給する。
【0015】
図6は第2の実施の形態の動作を示すフローチャートである。電源が切断されている状態から始まり(S601)、まずスイッチ501がオン(S602)になると、マイコン104に通電される(S603)。マイコン104はスイッチ502の状態をチェックし(S604)、オフならばスイッチ502の状態をチェックし続け、オンならばスイッチ503をオンにすることで(S605)、マイコン以外の各部の電源をオンにする(S606)。
【0016】
各部の電源がオンになったところでシステムの初期化を行い(S607)、次にハードディスク103のデータを再配置することで最適化を行う(S608)。このとき最適化を行っている旨の表示を出す(S609)。以上で撮影または再生の準備が完了する(S610)。
【0017】
図7は第3の実施の形態の動作を示すフローチャートである。電源が各部に通電されている状態から始まり(S701)、スイッチ501がオフ(S702)となったら、すぐにハードディスク103のデータを再配置する最適化を行い(S703)、最適化を行っている旨の表示を出す(S704)。最適化が終了したら、マイコン104はスイッチ503をオフにして、マイコン以外の各部の電源を切断する(S705)。
【0018】
上述した各実施の形態によれば、ハードディスク103上のデータとデータとの間に消去等により空きスペースが生じた場合に、後ろのデータを詰めて空きスペースを埋めるように再配置を行うことにより最適化が行われるので、データが常に連続的に記録されるようになる。
【0019】
(第4実施形態)
次に本発明の第4の実施形態について説明する。
本実施形態は、電源がAC電源の場合、バッテリーの場合には、その残量が充分あるときに、データ最適化処理を行うようにしたものである。
【0020】
図8は、本発明の第4の実施形態の構成を示すブロック図である。
同図において、ビデオカメラ101より出力された映像信号は、データ圧縮回路102へと供給され制御手段としてのマイクロコンピュータ104より指示された圧縮率とタイミングでデータ圧縮され、ハードディスク103へと供給される。
【0021】
またビデオカメラ101より出力された映像信号は、加算器108によって、キャラクタジェネレータ107より出力された映像選択、映像消去、再配置等の制御状態の情報と加算され、ディスプレイ109に表示される。
【0022】
また電源系統について説明すると、バッテリー803と、AC電源を使用可能とするためのACアダプタ802を用いてAC電源801を、電源選択スイッチ804の切換動作により選択的に使用することができ、主電源スイッチ501を介してマイクロコンピュータ104へと供給される。
【0023】
また電源選択スイッチ804(第一識別手段)によりいずれの電源が選択されているかを示すスイッチ状態(電源状態)検知情報が、 マイクロコンピュータ104へと供給されるとともに、電源電圧の電圧検知情報が、マイクロコンピュータ104へと供給され、特にバッテリー使用時の減電検知等が行われる。
【0024】
また502は主電源スイッチ501によってマイクロコンピュータ104に主電源が供給されている状態で、ビデオカメラシステムとしての電源をオン、オフ制御する電源スイッチ、503はマイクロコンピュータ以外の各回路部へと電源を供給するためのスイッチ、また105はハードディスク103に記録されている映像情報を選択するための映像選択スイッチ、106は映像選択スイッチ105によって選択された映像情報を消去する消去スイッチである。
【0025】
以上のように構成されたビデオカメラ装置における動作を図9のフローチャートを用いて説明する。
【0026】
ステップS901で処理をスタートすると、ステップS902でスイッチ502の状態を判別し、スイッチ502がオフからオンへと切り換わった場合には、ステップS903へと移行し、スイッチ502がオンからオフへと切り換わった場合にはステップS922へと移行し、スイッチ502がオンのときは、ステップS911へと移行する。
【0027】
スイッチ502がオンで、ステップS911で映像情報の番号を表示し、ステップS912で映像選択スイッチ105がオンされていれば、ステップS920へと移行し、映像情報の番号を増加させ、ステップS921において新たな映像情報の番号を表示する。
【0028】
またステップS912で映像選択スイッチ105がオフであれば、ステップS913へと進み、電源の種別の検知を行い、AC電源であれば、映像消去スイッチ106の状態を判別する。
【0029】
一方、ステップS913で、電源の種別(種類)がバッテリーであった場合には、ステップS914で電圧が所定値以上であるか否かを判別し、電圧が所定値(所定レベル)以上であれば、ステップS915へと進んで映像消去スイッチ105の指示に応じた処理を行い、電源電圧が所定値以下であったなら、ステップS902へと復帰し、結果として消去を禁止する。
【0030】
すなわちこの処理により、AC電源のとき、及びバッテリーの電源電圧が所定値以上であるときには、 消去動作を可能とし、バッテリー使用時で且つ電源電圧が所定値以下のときは、消去を禁止する。
【0031】
ステップS915で、映像消去スイッチ106が操作されており、消去動作の指示が出された場合は、ステップS916へと移行して現在の映像番号の映像情報を消去し、ステップS917で映像情報を消去中であることを表示し、ステップS919で、前述したのと同様にデータ最適化処理を行い、ステップS919でデータ最適化処理中であることを表示し、ステップS902へと復帰する。
すなわちこの処理において、映像情報を消去するごとにデータ最適化が行われる。
【0032】
上述のステップS902でスイッチ502がオフからオンへと切り換えられたことが判別された場合には、ステップS903でスイッチ503をオンにしてマイクロコンピュータ104以外の各回路部へと電源を供給し(S904)、ステップS905でシステムを初期化する。
【0033】
続いてステップS906で、電源の種別を判別し、電源の種別がAC電源であった場合には、ステップS908で、前述したのと同様にデータ最適化処理を行い、ステップS909でデータ最適化処理中であることを表示し、ステップS910で撮影/再生準備を完了した後、ステップS902へと復帰する。
【0034】
またステップS906で電源がバッテリーであることが判別された場合には、ステップS907で電圧が所定値以上であるか否かを判別し、電圧が所定値以上であれば、ステップS908へと進んで前記データ最適化処理を実行し、電圧が所定値に達していなければ、ステップS908のデータ最適化処理を飛ばしてステップS910の撮影/再生準備を完了し、ステップS902へと復帰する。
【0035】
次にステップS902で、スイッチ502がオンからオフに切り換えられてステップS922へと移行した場合はについて説明する。
ステップS922で、電源の種別を判別し、電源の種別がAC電源であった場合には、ステップS924で、前述したのと同様にデータ最適化処理を行い、ステップS925でデータ最適化処理中であることを表示し、ステップS926でスイッチ503をオフにし、マイクロコンピュータ104以外の各回路への電源供給をオフにする。
【0036】
またステップS922で電源がバッテリーであることが判別された場合には、ステップS923で電圧が所定値以上であるか否かを判別し、電圧が所定値以上であれば、ステップS924へと進んで前記データ最適化処理を実行し、電圧が所定値に達していなければ、ステップS924のデータ最適化処理を飛ばしてステップS926の処理を実行し、ステップS902へと復帰する。
【0037】
以上の処理により、電源がACのとき、及びバッテリー残量が充分あるときにデータ最適化を実行することができ、データ最適化処理中の電源切れを防止することができる。
【0038】
(第5実施形態)
次に本発明の第5の実施形態について説明する。本実施形態は、図9のフローチャートにおけるステップS908、ステップS918、ステップS924で行われるデータ最適化処理の他の例を示すもので、第10図にその処理のフローチャートを示す。
【0039】
本実施形態は、記録媒体上のすべての不連続領域についてデータ最適化処理を行うと、長い処理時間を要するため、不連続領域が近接している場合には、ピックアップの動き量が少なくてもよく、アクセスタイムがそれほど長くならないが、不連続領域が大きく離れているときは、アクセスするたびにピックアップの動き量が大きくなり、アクセスタイムが長くかかることを考慮し、不連続領域が相対的に所定距離以上離れているデータ領域のみ最適化を図るようにすることにより、データ最適化処理に要する時間を節減するものである。
【0040】
同図において、ステップS930で処理をスタートすると、ステップS931で記録されている画像のファイルのNOを1とし、ステップS932へと移行し、ステップS931で指定したファイルが存在するか否かを判別する。指定されたファイルが存在しない場合には、後述のステップS937の処理へと移行する。指定されたファイルが存在する場合には、ステップS933、934へと進み、そのファイルを構成するデータ領域に不連続領域が存在するか否かを判定し(第二識別手段)、不連続領域が存在しない場合には、ステップS937の処理へと進む。
【0041】
ステップS934で、不連続領域が存在する場合には、ステップS935へと移行し、記録媒体上において、不連続部分の相対距離が所定の距離THより離れているか否かを判定し、所定の距離以上離れている場合のみステップS936へと移行して映像ファイルのデータ最適化を実行し、ステップS937へと移行する。ステップS935で、不連続部分の相対距離が所定の距離TH以下であった場合には、データ最適化処理を行わずに、ステップS937へと移行する。
【0042】
ステップS937の処理においては、ファイルNOに1を加えて次のファイルを指定し、ステップS938へと進み、記録媒体上の全てのファイルについてデータ最適化処理の要否の判定あるいはデータ最適化処理が行われたか否かを判定し、すべてのファイルに付いて処理が終了した場合には、ステップS939へと進んでこのサブルーチンを終了し、まだ未処理のファイルが存在する場合には、ステップS932の処理へと戻り、上記の処理を繰り返し行う。
【0043】
(第6実施形態)
本実施形態もデータ最適化処理を効率よく、撮影動作に支障を来たさないように、一度にあまり多くの時間をかけずに、分割して行うようにしたものである。本実施形態では、一回のデータ最適化処理ごとに、全てのファイルを処理せず、1回に所定回数(本実施形態では3回)ずつ行うようにしたものである。
【0044】
図11に本実施形態における処理を示すフローチャートを示す。同図において、図10の第5の実施形態と同様の処理を行うステップには、同一の符号を付し、その説明を省略する。
【0045】
同図のフローチャートにおいて、図10のフローチャートと異なるのは、ステップS951、ステップ957、ステップS958の処理のみである。
【0046】
ステップS951では、データ最適化処理を行うファイル数をカウントするカウンタに1を入力する。ステップS932〜ステップS936の処理は図10と同様である。そしてステップS957では、ファイルNOを1インクリメントするとともに、カウンタの内容も1インクリメントする。
【0047】
続いてステップS958で、データ最適化処理の対象となったファイル数、すなわちカウンタの内容が4になったなら、サブルーチンを抜け、メインルーチンへと復帰する。尚、ステップS958内の設定回数を変更することにより、1回にデータ最適化処理を行うファイル数を変更することができる。
【0048】
(第7実施形態)
次に本発明における第7の実施形態について説明する。図12において、図8に示す第5の実施形態と同一構成部分については、同一符号を用いてその説明を省略する。
【0049】
同図において、第8図と異なるのは、データ圧縮回路102の出力側に符号量測定回路1001が設けられ、その結果がマイコン104へと供給されるようになっている点と、最適化実行スイッチ1002が設けられ、操作者の意思でデータ最適化処理を実行し得るようにした点である。またハードディスク103の空き領域の残量はマイコン104にて常時管理されている。
【0050】
符号量測定回路1001は、データ圧縮回路102より出力される出力信号より、現在の記録データレートを判別してマイコン104へと供給するとともに、ハードディスク103の空き容量を比較し、記録残量時間を演算し、キャラクタジェネレータ107を介してディスプレイ109に表示するとともに、その残量時間に応じて操作者にデータ最適化処理を促す警告、メッセージ等を表示するものである。
【0051】
図15(a),(b)は、それぞれディスク残量、最適化を促すメッセージを表示したディスプレイ画面をそれぞれ示すものである。
【0052】
図13は、本実施形態の処理を示すフローチャートである。
同図において、ステップS1101で処理をスタートすると、ステップS1102で,図15(a)に示すように、ハードディスク103上の連続空き領域からハードディスク残量表示を行い、ステップS1103で映像選択スイッチ105の状態を判別する。
【0053】
ステップS1103で、映像選択スイッチ105がオンなら、ステップS1105で選択する映像情報の番号を増加し、ステップS1106で新たな映像情報の番号を表示し、ステップS1109へと移行する。
【0054】
ステップS1103で映像選択スイッチ105がオフであれば、ステップS1104へと移行し、映像消去スイッチ106の状態を判別する。
【0055】
ステップS1104で映像消去スイッチ106がオフならそのままステップS1109へと移行し、映像消去スイッチ106がオンならステップS1107へと移行し、現在の映像番号の映像情報を消去し、ステップS1108で映像情報を消去中であることを表示し、ステップS1109へと移行する。
【0056】
ステップS1109で、不連続のデータ領域を検出し、ステップS1110で不連続領域が存在しなければ、ステップS1102へと復帰し、不連続領域が存在する場合には、ステップS1111に移行して電源の状態を検知し、AC電源が使用されている場合、及びAC電源でなくバッテリー電源であって且つステップS1112で電源電圧が所定値以上あると判定された場合には、ステップS1113へと移行してデータ最適化処理を実行した場合のハードディスク103の空き容量残量を推定し、ステップS1114でデータ最適化処理の実行を促す表示を行う(図15(b))。
【0057】
続いてステップS1115で、操作者がデータ最適化処理の実行を行うための最適化実行スイッチ1002の状態を判別し、スイッチが操作されていた場合には、ステップS1116でデータ最適化処理を行い、ステップS1117で、データ最適化処理を実行中であることを表示し、ステップS1102へと復帰する。
【0058】
またステップS1115で最適化実行スイッチ1002が操作されていない場合、ステップS1112でバッテリー電源電圧が所定値に満たない場合には、データ最適化処理を行わずにステップS1102へと復帰する。
【0059】
図14は、データ最適化処理の動作及び残量表示を説明するための図である。同図(a)は、映像1がハードディスク103上のセクタ11〜16を使用して記録されており、映像2がセクタ17、18、21を使用して記録され、映像3がセクタ22〜25を使用して記録されている状態(分布状態)を示している。そしてセクタ残量は、27セクタであるとする。
【0060】
ここで同図(b)に示すように、映像2を消去することにより、セクタ17、18、21に空きセクタが生じる。
【0061】
この状態で新たに映像4の記録を行った場合には、同図(c)に示すように、映像2の消去後の空き領域を使用せず、ハードディスク103上の記録の最後尾に付け加える形で記録が行われる。同図では、セクタ23〜27からなる5セクタからなる映像4が記録されており、新たな記録はそのアクセスの効率から考えてハードディスク103上の最後尾に追加する形で行われる。
【0062】
その理由は、データを常に記録済セクタの最後尾から続けて記録するのは、連続する空き領域に記録を行ってアクセスタイムを短くするようにするためであり、データの途中が消去されたとき、ここに新たに記録情報を書き込もうとすると、新たに記録する画像情報がその領域に入りきれない場合は、そこから他の空き領域にピックアップを移動しなければならないため、アクセスタイムが長くなり、記録を効率よく行うことができないからである。したがって、残量も同図(b)に示すように、映像2を消去しても、途中の空き領域は含めず、27セクタのまま表示する。
【0063】
この状態で、同図(c)に示すように新たに映像4の記録を行った場合には、映像2の消去後の空き領域を使用せず、ハードディスク103上の記録の最後尾に付け加える形で記録が行われる。同図では、セクタ23〜27からなる5セクタからなる映像4が記録されており、その結果残りセクタは22セクタと表示されている。このように、記録済み(データ記録済み)領域に、消去によって空き領域(データ未記録領域)が生じても、これを表示するセクタ残量には含めない。
【0064】
ここで、データ並べ替えにより、空きセクタのデータを前づめし、データ最適化処理を行った場合を同図(d)に示す。映像2を消去した空きセクタに映像3、映像4の記録セクタをシフトし、空き領域が埋められている。これによって、実質的にセクタ残量が増加し、表示も25セクタに変化する。
【0065】
以上のように、映像情報の一部を消去することにより、途中に空きセクタができた場合、この領域はセクタ残量表示に含めず、データ最適化処理を行った後は、空きセクタが増加したことを表示するようにしたので、操作者に誤解を与えることを防止し、常にアクセスタイムの短い操作性、信頼性の良好なカメラを提供することができる。
【0066】
なお、各実施の形態での記録媒体としては磁気記録のハードディスク103を使用したが、その他光ディスク、光磁気ディスク、磁気テープ、フラッシュメモリ、RAMを用いてもよい。
【0067】
【発明の効果】
以上説明したように、本発明によれば、映像情報の消去時、電源投入時または電源切断時などに、記録媒体上の映像情報を再配置して最適化を逐次行うことにより、動画の消去と記録を繰り返しても、映像情報が断片化することがなく、記録媒体上に連続した記録スペースを確保することができ、また再配置処理を一度に大量に行わず、複数回に分割して実行することにより、再配置処理のために記録動作に支障が生じることも軽減できる。このため記録媒体の性能を十分引き出すことができ、高データレートで高画質な動画像を高速に記録・再生することができる効果がある。
【図面の簡単な説明】
【図1】本発明の第1の実施の形態を示す構成図である。
【図2】本発明の第1の実施の形態の動作を示す構成図である。
【図3】本発明の第1の実施の形態のアルゴリズムを示すフローチャートである。
【図4】本発明の第1の実施の形態の表示動作を示す構成図である。
【図5】本発明の第2、第3の実施の形態を示す構成図である。
【図6】本発明の第2の実施の形態のアルゴリズムを示すフローチャートである。
【図7】本発明の第3の実施の形態のアルゴリズムを示すフローチャートである。
【図8】本発明の第4の実施の形態を示す構成図である。
【図9】本発明の第4の実施の形態のアルゴリズムを示すフローチャートである。
【図10】本発明の第5の実施の形態のアルゴリズムを示すフローチャートである。
【図11】本発明の第6の実施の形態のアルゴリズムを示すフローチャートである。
【図12】本発明の第7の実施の形態を示す構成図である。
【図13】本発明の第7の実施の形態のアルゴリズムを示すフローチャートである。
【図14】本発明の第7の実施の形態の残量表示を説明するための図である。
【図15】本発明の第7の実施の形態の残量表示例を示す図である。
【符号の説明】
103 ハードディスク
104 マイコン
105 映像選択スイッチ
106 映像消去スイッチ
107 キャラクタジェネレータ
109 ディスプレイ
111 メモリ
501 主電源スイッチ
1001 符号量測定回路
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a video recording apparatus suitable for use in a video camera or the like for recording a moving image or a still image on a solid magnetic disk memory, a magneto-optical disk memory, an optical disk memory or the like.
[0002]
[Prior art]
As a conventional video recording / reproducing apparatus, there is a video tape recorder that records an analog video signal on a magnetic tape. For such a magnetic recording / reproducing apparatus, after converting the video signal into a digital signal, the digital VTR for recording on a magnetic tape, the disk video for recording on a solid disk or a magneto-optical disk, the solid memory such as a flash memory or SRAM, etc. Solid-state memory video to be recorded has been proposed. In these video systems, the input digital signal is compressed to reduce the amount of information, and a large amount of moving image information and still image information can be recorded with a small storage capacity.
[0003]
In general, the compression method of such a video recording apparatus first divides an image into a plurality of blocks for each of horizontal n × vertical n pixels, and performs orthogonal transform such as discrete cosine transform (DCT) for each block. And quantize each coefficient by rounding it to a predetermined number of bits. Since image information is biased toward low frequencies, the amount of data can be reduced by reducing the number of high-frequency component bits. Further, data compression corresponding to the appearance probability can be performed by variable length coding such as Huffman coding. Furthermore, since the video image has a strong correlation between frames, extraction of the difference between frames using this property makes it possible to significantly compress the video. Various moving image recording systems have been proposed in which moving images are compressed by combining these compression techniques to reduce the amount of data and then record in a solid magnetic disk memory, an optical disk memory or the like.
[0004]
[Problems to be solved by the invention]
In the above-described moving image recording system, since the amount of moving image data per unit time is large, it is necessary to input / output data to / from the disk memory as fast as possible. However, if you record and erase a movie several times, the erased empty space in the memory and the recorded data will be fragmented. There were problems such as data input / output becoming difficult.
[0005]
The present invention has been made to solve the above-described problems, and an object of the present invention is to always ensure a space in which video data can be continuously recorded on a recording medium.
[0006]
[Means for Solving the Problems]
  The present inventionInput movieImage informationVideo recording apparatus for recording on a recording mediumBecause,Data control means for performing rearrangement for changing the recording position of the video information recorded on the recording medium based on an operation of a predetermined switch, and distribution of data recorded areas and data unrecorded areas on the recording medium An identifying means for detecting a state and identifying video information to be rearranged; and a setting means for setting the number of times the rearrangement is performed at a time. The data control means is identified by the identifying means. Relocation related to the video information is divided into multiple times by the number of times set by the setting meansTo doIt is characterized by.
[0007]
  Further, the present invention provides data for rearranging a computer that records input video information on a recording medium to change a recording position of the video information recorded on the recording medium based on an operation of a predetermined switch. A control procedure, an identification procedure for identifying video information to be rearranged by detecting a distribution state of data recorded areas and unrecorded areas on the recording medium, and the number of times the rearrangement is performed at one time. A computer-readable recording medium storing a program for executing a setting procedure to be set, wherein in the data control procedure, the relocation relating to the video information identified in the identification procedure is performed the number of times set in the setting procedure. It is a computer-readable recording medium characterized by being divided into multiple times and executedFeatures.
  The present invention is also a video recording method in a video recording apparatus for recording input video information on a recording medium, and the recording position of the video information recorded on the recording medium based on an operation of a predetermined switch A data control step for performing rearrangement for changing the data, an identification step for detecting the distribution state of the data recorded area and the data unrecorded area on the recording medium, and identifying video information to be rearranged, and A setting step for setting the number of times the rearrangement is performed at one time. In the data control step, the rearrangement relating to the video information identified in the identification step is divided into a plurality of times by the number of times set in the setting step. It is characterized by executing.
[0008]
DETAILED DESCRIPTION OF THE INVENTION
  Embodiments of the present invention will be described below with reference to the drawings.
(First embodiment)
  FIG. 1 is a diagram showing the configuration of the first exemplary embodiment of the present invention. In FIG. 1, the video signal of the subject 110 photographed by the video camera 101 is input to the adder 108 and to the data compression circuit 102.As recording means or data control meansThe data compression circuit 102 compresses data at a compression rate and timing instructed from a microcomputer (hereinafter referred to as a microcomputer) 104 as a control means, and records it on a hard disk 103 as a recording medium or memory means. The microcomputer 104 selects and deletes the video data recorded on the hard disk 103 based on the state of the video selection switch 105 and the video deletion switch 106. Next, optimization is performed by rearranging the data arrangement of the hard disk 103 as described later. The video selection, video erasure, and rearrangement states are generated by the character generator 107 and mixed with the video signal from the video camera 101 by the adder 108.As a display meansIt is displayed on the display 109. Reference numeral 111 denotes a memory as a computer-readable recording medium according to the present invention, and a semiconductor memory, a magnetic medium, a magneto-optical disk, an optical disk, a CD-ROM, or the like is used, which will be described later with reference to FIGS. A program for executing the processing shown in the flowchart by the microcomputer 104 is stored.
[0009]
Next, optimization by data arrangement and data rearrangement on the hard disk 103 will be described with reference to FIG. FIG. 2A shows the data arrangement of the hard disk 103. The hard disk 103 is concentrically arranged from the outside with track 1, track 2, track 3, track 4, track 5 and recording track, and each track is further divided into sectors 1 to 8. In the data, each cut of the video is recorded on the hard disk 103 in units of sectors. Hereinafter, it is assumed that one sector of the first track is represented as sector 11 and five sectors of the third track are represented as sector 35.
[0010]
FIG. 2B is a diagram showing how the video is recorded in each sector when the video is recorded on the hard disk 103. When video data is recorded on the hard disk 103 on which nothing is recorded, it is recorded in order from sector 1 (sector 11) of track 1. Accordingly, first, video 1 that requires a recording capacity of 6 sectors is recorded using the areas from sectors 11 to 12, 13, 14, 15, and 16. Next, the video 2 requiring a storage capacity of 3 sectors is stored in the sector 21 after proceeding to the sectors 17 and 18 and the second track. Furthermore, video 3 requiring a storage capacity of 4 sectors is stored in sectors 22, 23, 24, 25 and completed. In the following, when another video is continuously stored, the video is similarly stored in a continuous arrangement on the hard disk.
[0011]
Now, if the video 2 is deleted (erased) with the video 1, 2, and 3 written, the data in the sectors 17, 18, and 21 are deleted, and this portion becomes empty. Next, when video 4 requiring a storage capacity of 5 sectors is written, it becomes discontinuous with sectors 17, 18, 21, 26, and 27, and the recording and playback speed of the hard disk becomes slow. Therefore, after deleting the sectors 17, 18, and 21, the data is rearranged to optimize the hard disk. Although the video 1 remains as it is, the video 3 written from the sector 22 to the sector 25 is moved to the sectors 17, 18, 21, and 22, as shown in FIG. As a result, the next time video 4 that requires a storage capacity of 5 sectors is recorded, the sectors 23, 24, 25, 26, and 27 are continuously written on the hard disk.
[0012]
FIG. 3 is a flowchart showing the operation of the microcomputer 104, and includes steps S301 to S310. Each of these steps S301 to S310 is performed according to a program recorded in the memory 111. FIG. 4 is a diagram showing a display operation during the above processing.
In FIG. 3, starting from step S301, first, a video number is displayed on the display 109 through the character generator 107 (S302). For example, as shown in the screen 1 in FIG. Next, it is checked whether or not the video selection switch 105 is pressed (S303). If it is pressed, the video number is incremented (S305), and a new video number is displayed (S306). For example, as shown in screen 2 in FIG. 4B, “video number: 2” is incremented and displayed.
[0013]
  If the video selection switch 105 is off in step S303, it is checked whether or not the video erasure switch 106 has been pressed (S304). If it has been pressed, the video of the currently displayed video number is deleted (S307). ), A display during video erasure is displayed (S308). For example, as shown in the screen 3 in FIG. 4C, “video number: 2: erasing” is displayed. Immediately after this, optimization is performed by rearranging the data on the hard disk 103 as described above (S309). At this time, an indication that optimization is being performed is displayed (S310). For example, as shown in the screen 4 in FIG. 4D, “data optimization in progress” is displayed to inform the user. As an algorithm for this rearrangement, for example, a method of copying a video signal once to an empty area of a hard disk and then copying it to an empty area to be rearranged (may be a video unit or a sector unit), or an empty area sequentially from the beginning Various methods, such as a method of writing data in the file, can be considered. Relocation processing(Video information rearrangement process)As the temporary data storage memory, other memory may be used instead of the hard disk, and it is sufficient for the work memory to be one sector.
[0014]
(Second and third embodiments)
FIG. 5 is a diagram showing the configuration of the second and third embodiments. The same reference numerals as those in FIG. In FIG. 5, a switch 501 is a main power switch. By turning on this switch, the microcomputer 104, the switch 502, and the switch 503 are energized. A switch 502 is a power switch and notifies the microcomputer 104 of the switch state. The switch 503 is controlled by the microcomputer 104 and supplies power to the video camera 101, the data compression circuit 102, the hard disk 103, the character generator 107, the display 109, and the like.
[0015]
FIG. 6 is a flowchart showing the operation of the second embodiment. Starting from a state where the power is cut off (S601), when the switch 501 is turned on (S602), the microcomputer 104 is energized (S603). The microcomputer 104 checks the state of the switch 502 (S604). If it is off, it continues to check the state of the switch 502. If it is on, the switch 503 is turned on (S605). (S606).
[0016]
When the power of each unit is turned on, the system is initialized (S607), and then optimized by rearranging the data on the hard disk 103 (S608). At this time, a display indicating that optimization is being performed is displayed (S609). Thus, preparation for shooting or reproduction is completed (S610).
[0017]
FIG. 7 is a flowchart showing the operation of the third embodiment. Starting from a state in which the power supply is energized (S701), and when the switch 501 is turned off (S702), optimization is performed to immediately rearrange the data on the hard disk 103 (S703). A message to that effect is displayed (S704). When the optimization is completed, the microcomputer 104 turns off the switch 503 and turns off the power of each unit other than the microcomputer (S705).
[0018]
According to each embodiment described above, when an empty space is generated between data on the hard disk 103 due to erasure or the like, rearrangement is performed so as to fill the empty space by filling the subsequent data. Since optimization is performed, data is always recorded continuously.
[0019]
(Fourth embodiment)
Next, a fourth embodiment of the present invention will be described.
In the present embodiment, when the power source is an AC power source, and in the case of a battery, data optimization processing is performed when the remaining amount is sufficient.
[0020]
FIG. 8 is a block diagram showing a configuration of the fourth exemplary embodiment of the present invention.
In the figure, the video signal output from the video camera 101 is supplied to the data compression circuit 102, is compressed with the compression rate and timing specified by the microcomputer 104 as the control means, and is supplied to the hard disk 103. .
[0021]
The video signal output from the video camera 101 is added by the adder 108 with control state information such as video selection, video erasure, and rearrangement output from the character generator 107 and displayed on the display 109.
[0022]
The power supply system will be described. The AC power source 801 can be selectively used by the switching operation of the power source selection switch 804 using the battery 803 and the AC adapter 802 for enabling the AC power source. This is supplied to the microcomputer 104 via the switch 501.
[0023]
  Also, the power selection switch 804(First identification means)Switch status indicating which power supply is selected by(Power status)The detection information is supplied to the microcomputer 104, and the voltage detection information of the power supply voltage is supplied to the microcomputer 104, and in particular, detection of power reduction when the battery is used is performed.
[0024]
Reference numeral 502 denotes a main power switch 501 that supplies power to the microcomputer 104. The power switch for controlling the power supply of the video camera system is turned on and off. Reference numeral 503 denotes a power switch for each circuit unit other than the microcomputer. A switch for supply, 105 is a video selection switch for selecting video information recorded on the hard disk 103, and 106 is an erasure switch for erasing the video information selected by the video selection switch 105.
[0025]
The operation of the video camera apparatus configured as described above will be described with reference to the flowchart of FIG.
[0026]
When the process starts in step S901, the state of the switch 502 is determined in step S902. If the switch 502 is switched from OFF to ON, the process proceeds to step S903, and the switch 502 is switched from ON to OFF. If changed, the process proceeds to step S922. If the switch 502 is on, the process proceeds to step S911.
[0027]
If the switch 502 is on, the number of the video information is displayed in step S911. If the video selection switch 105 is turned on in step S912, the process proceeds to step S920, the number of the video information is incremented, and a new one is added in step S921. The number of the correct video information.
[0028]
If the video selection switch 105 is off in step S912, the process advances to step S913 to detect the type of power supply, and if it is an AC power supply, the state of the video erasure switch 106 is determined.
[0029]
  On the other hand, in step S913, the type of power supply(type)Is a battery, it is determined in step S914 whether or not the voltage is equal to or higher than a predetermined value.(Predetermined level)If so, the process proceeds to step S915 to perform processing according to the instruction of the video erasure switch 105. If the power supply voltage is equal to or lower than the predetermined value, the process returns to step S902, and erasure is prohibited as a result.
[0030]
That is, by this process, when an AC power source is used and when the power supply voltage of the battery is equal to or higher than a predetermined value, the erasing operation is enabled.
[0031]
If the video erasure switch 106 is operated in step S915 and an instruction for erasing operation is issued, the process proceeds to step S916 to erase the video information of the current video number, and the video information is erased in step S917. In step S919, the data optimization process is performed in the same manner as described above. In step S919, the data optimization process is displayed, and the process returns to step S902.
That is, in this process, data optimization is performed every time video information is deleted.
[0032]
If it is determined in step S902 that the switch 502 has been switched from off to on, the switch 503 is turned on in step S903 to supply power to each circuit unit other than the microcomputer 104 (S904). ) In step S905, the system is initialized.
[0033]
In step S906, the type of power source is determined. If the power source type is AC power source, data optimization processing is performed in the same manner as described above in step S908, and data optimization processing is performed in step S909. Is displayed, and after completion of shooting / playback preparation in step S910, the process returns to step S902.
[0034]
If it is determined in step S906 that the power source is a battery, it is determined in step S907 whether or not the voltage is equal to or greater than a predetermined value. If the voltage is equal to or greater than the predetermined value, the process proceeds to step S908. The data optimization process is executed, and if the voltage has not reached the predetermined value, the data optimization process in step S908 is skipped, the preparation for shooting / reproduction in step S910 is completed, and the process returns to step S902.
[0035]
Next, the case where the switch 502 is switched from on to off in step S902 and the process proceeds to step S922 will be described.
In step S922, the type of power source is determined. If the power source type is AC power source, data optimization processing is performed in the same manner as described above in step S924, and data optimization processing is being performed in step S925. In step S926, the switch 503 is turned off, and the power supply to each circuit other than the microcomputer 104 is turned off.
[0036]
If it is determined in step S922 that the power source is a battery, it is determined in step S923 whether or not the voltage is equal to or higher than a predetermined value. If the voltage is equal to or higher than the predetermined value, the process proceeds to step S924. If the data optimization process is executed and the voltage has not reached the predetermined value, the data optimization process in step S924 is skipped, the process in step S926 is executed, and the process returns to step S902.
[0037]
With the above processing, data optimization can be executed when the power source is AC and when the battery level is sufficient, and it is possible to prevent power failure during the data optimization processing.
[0038]
(Fifth embodiment)
Next, a fifth embodiment of the present invention will be described. The present embodiment shows another example of the data optimization processing performed in steps S908, S918, and S924 in the flowchart of FIG. 9, and FIG. 10 shows a flowchart of the processing.
[0039]
In this embodiment, if the data optimization process is performed for all the discontinuous areas on the recording medium, a long processing time is required. Therefore, when the discontinuous areas are close to each other, the amount of movement of the pickup is small. Well, the access time is not so long, but when the discontinuous area is far away, the amount of movement of the pickup increases every time it is accessed, and the discontinuous area is relatively By optimizing only the data area that is more than a predetermined distance away, the time required for the data optimization process is reduced.
[0040]
  In the figure, when the process is started in step S930, the image file NO recorded in step S931 is set to 1, the process proceeds to step S932, and it is determined whether or not the file specified in step S931 exists. . If the designated file does not exist, the process proceeds to step S937 described later. If the specified file exists, the process proceeds to steps S933 and 934 to determine whether or not a discontinuous area exists in the data area constituting the file.(Second identification means)If there is no discontinuous area, the process proceeds to step S937.
[0041]
If there is a discontinuous area in step S934, the process proceeds to step S935, where it is determined whether or not the relative distance of the discontinuous portion is separated from the predetermined distance TH on the recording medium. Only when the distance is more than the above, the process proceeds to step S936, the video file data optimization is executed, and the process proceeds to step S937. If the relative distance of the discontinuous portion is equal to or smaller than the predetermined distance TH in step S935, the process proceeds to step S937 without performing the data optimization process.
[0042]
In the process of step S937, 1 is added to the file NO to specify the next file, and the process proceeds to step S938, where it is determined whether or not the data optimization process is necessary for all the files on the recording medium or the data optimization process is performed. It is determined whether or not the processing has been performed, and if the processing is completed for all the files, the process proceeds to step S939 to end the subroutine. If there is still an unprocessed file, the process proceeds to step S932. Returning to the process, the above process is repeated.
[0043]
  (Sixth embodiment)
  This embodiment also performs data optimization processing efficiently so as not to hinder the shooting operation.OneThis is done in a divided manner without spending too much time each time. In this embodiment, every file optimization process does not process all the files, but at a predetermined number of times (in this embodiment, three times).) One by oneIt is what I do.
[0044]
FIG. 11 is a flowchart showing processing in the present embodiment. In the figure, steps that perform the same processing as in the fifth embodiment in FIG. 10 are assigned the same reference numerals, and descriptions thereof are omitted.
[0045]
In the flowchart shown in the figure, the only difference from the flowchart shown in FIG. 10 is the processing in steps S951, 957, and S958.
[0046]
In step S951, 1 is input to a counter that counts the number of files to be subjected to data optimization processing. The processing in steps S932 to S936 is the same as that in FIG. In step S957, the file number is incremented by 1, and the contents of the counter are also incremented by 1.
[0047]
In step S958, if the number of files subject to data optimization processing, that is, the content of the counter reaches 4, the subroutine is exited and the process returns to the main routine. Note that the number of files for which data optimization processing is performed at a time can be changed by changing the number of times set in step S958.
[0048]
(Seventh embodiment)
Next, a seventh embodiment of the present invention will be described. In FIG. 12, the same components as those of the fifth embodiment shown in FIG.
[0049]
8 differs from FIG. 8 in that a code amount measurement circuit 1001 is provided on the output side of the data compression circuit 102, and the result is supplied to the microcomputer 104, and the optimization execution is performed. A switch 1002 is provided so that the data optimization process can be executed at the operator's will. Also, the remaining amount of free space on the hard disk 103 is constantly managed by the microcomputer 104.
[0050]
The code amount measurement circuit 1001 determines the current recording data rate from the output signal output from the data compression circuit 102 and supplies it to the microcomputer 104, compares the free space of the hard disk 103, and determines the remaining recording time. The calculation is performed and displayed on the display 109 via the character generator 107, and a warning, a message, or the like that prompts the operator to perform data optimization processing according to the remaining time is displayed.
[0051]
FIGS. 15 (a) and 15 (b) respectively show display screens that display a disk remaining amount and a message prompting optimization.
[0052]
FIG. 13 is a flowchart showing the processing of this embodiment.
In the figure, when the process is started in step S1101, the hard disk remaining amount is displayed from the continuous free space on the hard disk 103 as shown in FIG. 15A in step S1102, and the state of the video selection switch 105 is displayed in step S1103. Is determined.
[0053]
If the video selection switch 105 is turned on in step S1103, the number of video information to be selected is increased in step S1105, a new video information number is displayed in step S1106, and the process proceeds to step S1109.
[0054]
If the video selection switch 105 is off in step S1103, the process proceeds to step S1104 to determine the state of the video erasure switch 106.
[0055]
If the video erasure switch 106 is off in step S1104, the process proceeds to step S1109. If the video erasure switch 106 is on, the process proceeds to step S1107, and the video information of the current video number is erased. In step S1108, the video information is erased. Is displayed, and the process proceeds to step S1109.
[0056]
In step S1109, a discontinuous data area is detected. If there is no discontinuous area in step S1110, the process returns to step S1102. If a discontinuous area exists, the process proceeds to step S1111 and the power supply is turned off. When the state is detected and the AC power source is used, and when it is determined that the power source is not the AC power source but the battery power source and the power source voltage is equal to or higher than the predetermined value in step S1112, the process proceeds to step S1113. The remaining capacity of the hard disk 103 when the data optimization process is executed is estimated, and a display prompting the execution of the data optimization process is performed in step S1114 (FIG. 15B).
[0057]
In step S1115, the operator determines the state of the optimization execution switch 1002 for executing the data optimization process. If the switch has been operated, the data optimization process is performed in step S1116. In step S1117, it is displayed that the data optimization process is being executed, and the process returns to step S1102.
[0058]
If the optimization execution switch 1002 is not operated in step S1115, and if the battery power supply voltage is less than the predetermined value in step S1112, the process returns to step S1102 without performing data optimization processing.
[0059]
  FIG. 14 is a diagram for explaining the operation of the data optimization process and the remaining amount display. In FIG. 6A, video 1 is recorded using sectors 11 to 16 on the hard disk 103, video 2 is recorded using sectors 17, 18, and 21, and video 3 is recorded to sectors 22 to 25. Is recorded using(Distribution state)Is shown. The remaining sector capacity is 27 sectors.
[0060]
Here, as shown in FIG. 4B, erasing video 2 causes empty sectors in sectors 17, 18, and 21.
[0061]
When a new video 4 is recorded in this state, as shown in FIG. 5C, the empty area after deletion of the video 2 is not used and is added to the end of the recording on the hard disk 103. Recording is done. In the figure, video 4 consisting of 5 sectors consisting of sectors 23 to 27 is recorded, and new recording is performed in the form of being added to the end of the hard disk 103 in view of the access efficiency.
[0062]
The reason is that the data is always recorded continuously from the end of the recorded sector in order to shorten the access time by recording in a continuous free area. When trying to write new recording information here, if the image information to be newly recorded cannot fit in the area, the pickup must be moved from there to another free area, so the access time becomes longer, This is because recording cannot be performed efficiently. Therefore, as shown in FIG. 5B, the remaining amount is displayed as 27 sectors without including a free space in the middle even if the video 2 is deleted.
[0063]
  In this state, when the video 4 is newly recorded as shown in FIG. 5C, the empty area after erasing the video 2 is not used, but added to the end of the recording on the hard disk 103. Recording is done. In the figure, video 4 consisting of 5 sectors consisting of sectors 23 to 27 is recorded, and as a result, the remaining sectors are displayed as 22 sectors. Recorded like this(Data recorded)Free space in the area by erasing(Data unrecorded area)Is not included in the remaining sector capacity for display.
[0064]
Here, FIG. 4D shows a case where the data optimization process is performed by preliminarily allocating data in empty sectors by data rearrangement. The recording sectors of video 3 and video 4 are shifted to empty sectors from which video 2 has been erased, and the empty areas are filled. This substantially increases the remaining sector capacity, and the display changes to 25 sectors.
[0065]
As described above, if an empty sector is created in the middle by erasing part of the video information, this area is not included in the remaining sector display, and the number of empty sectors increases after data optimization processing is performed. As a result, it is possible to prevent the operator from being misunderstood and to provide a camera with a short operability and a high reliability.
[0066]
Although the magnetic recording hard disk 103 is used as the recording medium in each embodiment, other optical disks, magneto-optical disks, magnetic tapes, flash memories, and RAMs may be used.
[0067]
【The invention's effect】
  As explained above, according to the present invention,, MovieWhen erasing image information, turning the power on, turning the power off, etc.The projectionBy re-arranging image information and performing sequential optimization, it is possible to repeat erasing and recording of moving images., MovieThe image information is not fragmented, and a continuous recording space can be secured on the recording medium.If the relocation process is not performed in a large amount at once, but divided and executed multiple times, it is possible to reduce the trouble of the recording operation due to the relocation process.. For this reason, the performance of the recording medium can be sufficiently obtained, and there is an effect that a high-quality moving image can be recorded / reproduced at high speed at a high data rate.
[Brief description of the drawings]
FIG. 1 is a configuration diagram showing a first embodiment of the present invention.
FIG. 2 is a configuration diagram showing the operation of the first exemplary embodiment of the present invention.
FIG. 3 is a flowchart illustrating an algorithm according to the first embodiment of this invention.
FIG. 4 is a configuration diagram illustrating a display operation according to the first embodiment of this invention.
FIG. 5 is a configuration diagram showing second and third embodiments of the present invention.
FIG. 6 is a flowchart showing an algorithm of the second embodiment of the present invention.
FIG. 7 is a flowchart showing an algorithm according to the third embodiment of the present invention.
FIG. 8 is a configuration diagram showing a fourth embodiment of the present invention.
FIG. 9 is a flowchart showing an algorithm according to the fourth embodiment of the present invention.
FIG. 10 is a flowchart showing an algorithm according to the fifth embodiment of the present invention.
FIG. 11 is a flowchart showing an algorithm according to the sixth embodiment of the present invention.
FIG. 12 is a block diagram showing a seventh embodiment of the present invention.
FIG. 13 is a flowchart showing an algorithm according to the seventh embodiment of the present invention.
FIG. 14 is a diagram for explaining a remaining amount display according to a seventh embodiment of the present invention;
FIG. 15 is a diagram illustrating a remaining amount display example according to the seventh embodiment of the present invention;
[Explanation of symbols]
103 hard disk
104 Microcomputer
105 Video selection switch
106 Video deletion switch
107 Character generator
109 display
111 memory
501 Main power switch
1001 Code amount measurement circuit

Claims (16)

入力される映像情報を記録媒体に記録する映像記録装置であって
所定のスイッチの操作に基づいて、上記記録媒体上に記録された映像情報の記録位置を変更する再配置を行うデータ制御手段と、
上記記録媒体上のデータ記録済み領域とデータ未記録領域の分布状態を検出して、上記再配置を行うべき映像情報を識別する識別手段と、
上記再配置を一度に行う回数を設定する設定手段とを備え、
上記データ制御手段は、上記識別手段によって識別された映像情報に関する再配置を、上記設定手段によって設定された回数ずつ複数回に分割して実行することを特徴とする映像記録装置。
A video recording apparatus for recording movies image information input to the recording medium,
Data control means for performing rearrangement for changing the recording position of the video information recorded on the recording medium based on an operation of a predetermined switch;
An identification means for detecting the distribution state of the data recorded area and the data unrecorded area on the recording medium, and identifying video information to be rearranged;
Setting means for setting the number of times the above rearrangement is performed at a time,
The video recording apparatus according to claim 1, wherein the data control means executes the rearrangement relating to the video information identified by the identification means by dividing the rearrangement into a plurality of times by the number of times set by the setting means .
記データ制御手段は、上記記録媒体上で映像情報と像情報との間に空きスペースが生じた場合に、この空きスペースを埋めるように上記再配置を行うことを特徴とする請求項1記載の映像記録装置。Upper Symbol data control unit, when the empty space is generated between the movies image information and movies image information on said recording medium, characterized by the TURMERIC line the rearrangement so as to fill the empty space The video recording apparatus according to claim 1. 記データ制御手段は、上記記録された映像情報を消去するためのスイッチの操作に基づいて、対象となる映像情報を消去すると共に、上記再配置を行うことを特徴とする請求項1記載の映像記録装置。Upper Symbol data control means, based on the operation of the switch for erasing movies image information the recording, erases the image information of interest, wherein, wherein the TURMERIC row on SL relocation Item 2. The video recording apparatus according to Item 1. 記データ制御手段は、上記映像記録装置の電源投入スイッチの操作に応じて上記再配置を行うことを特徴とする請求項1記載の映像記録装置。Upper Symbol data control means, the image recording apparatus according to claim 1, wherein the TURMERIC line the relocation in accordance with the operation of the power-up switch of the video recorder. 記データ制御手段は、上記映像記録装置の電源オフスイッチの操作に応じて上記再配置を行うことを特徴とする請求項1記載の映像記録装置。Above Symbol data control means, the image recording apparatus according to claim 1, wherein that you perform the rearrangement in response to the operation of the power-off switch of the upper SL video recording apparatus. 上記再配置の動作に関する情報を表示する表示手段を更に備えることを特徴とする請求項1記載の映像記録装置。Video recording apparatus according to claim 1, further comprising a display means for displaying information about the behavior of the relocation. 記データ制御手段は、上記記録媒体上の複数セクタに渡って記録される各映像情報を単位として上記再配置を行うことを特徴とする請求項1記載の映像記録装置。Upper Symbol data control means, the image recording apparatus according to claim 1, wherein the TURMERIC line the relocation each movies image information units to be recorded over plural sectors on the recording medium. 装置本体の電源の種類を識別する電源識別手段を更に備え、A power source identifying means for identifying the power source type of the apparatus body;
上記データ制御手段は、上記電源識別手段によって識別された電源がAC電源であるときに、上記再配置を実行することを特徴とする請求項1記載の映像記録装置。  2. The video recording apparatus according to claim 1, wherein the data control unit executes the rearrangement when the power source identified by the power source identification unit is an AC power source.
装置本体の電源の種類及び残量を識別する電源識別手段を更に備え、A power source identifying means for identifying the power source type and remaining amount of the apparatus body;
上記データ制御手段は、上記電源識別手段によって識別された電源がバッテリーであった場合には、その残量が所定レベル以上あるときに、上記再配置を実行することを特徴とする請求項1記載の映像記録装置。  2. The data control unit according to claim 1, wherein when the power source identified by the power source identification unit is a battery, the data control unit executes the rearrangement when the remaining amount is equal to or higher than a predetermined level. Video recording device.
上記データ制御手段は、互いに所定の距離範囲外において散在するデータ記録済み領域についてのみ上記再配置を実行することを特徴とする請求項1記載の映像記録装置。2. The video recording apparatus according to claim 1, wherein the data control means executes the rearrangement only on data recorded areas scattered outside a predetermined distance range. 上記記録媒体はハードディスクであることを特徴とする請求項1乃至10のいずれか1項記載の映像記録装置。11. The video recording apparatus according to claim 1, wherein the recording medium is a hard disk. 入力される映像情報を記録媒体に記録するコンピュータに、In a computer that records input video information on a recording medium,
所定のスイッチの操作に基づいて、上記記録媒体上に記録された映像情報の記録位置を変更する再配置を行うデータ制御手順と、  A data control procedure for performing rearrangement to change the recording position of the video information recorded on the recording medium based on an operation of a predetermined switch;
上記記録媒体上のデータ記録済み領域とデータ未記録領域の分布状態を検出して、上記再配置を行うべき映像情報を識別する識別手順と、  An identification procedure for detecting the distribution state of the data recorded area and the data unrecorded area on the recording medium and identifying the video information to be rearranged;
上記再配置を一度に行う回数を設定する設定手順とを実行させるプログラムを記憶したコンピュータ読み取り可能な記録媒体であって、  A computer-readable recording medium storing a program for executing a setting procedure for setting the number of times the relocation is performed at once,
上記データ制御手順では、上記識別手順で識別された映像情報に関する再配置を、上記設定手順で設定された回数ずつ複数回に分割して実行することを特徴とするコンピュータ読み取り可能な記録媒体。  The computer-readable recording medium characterized in that in the data control procedure, the rearrangement relating to the video information identified in the identification procedure is executed by being divided into a plurality of times by the number of times set in the setting procedure.
上記データ制御手順では、上記記録媒体上で映像情報と映像情報との間に空きスペースが生じた場合に、この空きスペースを埋めるように上記再配置を行うことを特徴とする請求項12記載のコンピュータ読み取り可能な記録媒体。13. The data control procedure according to claim 12, wherein when an empty space is generated between video information on the recording medium, the rearrangement is performed so as to fill the empty space. Computer-readable recording medium. 上記データ制御手順では、上記記録された映像情報を消去するためのスイッチの操作に基づいて、対象となる映像情報を消去すると共に、上記再配置を行うことを特徴とする請求項12記載のコンピュータ読み取り可能な記録媒体。13. The computer according to claim 12, wherein in the data control procedure, the target video information is erased and the rearrangement is performed based on an operation of a switch for erasing the recorded video information. A readable recording medium. 上記データ制御手順では、上記コンピュータの電源投入スイッチの操作に応じて上記再配置を行うことを特徴とする請求項12記載のコンピュータ読み取り可能な記録媒体。13. The computer-readable recording medium according to claim 12, wherein in the data control procedure, the rearrangement is performed according to an operation of a power-on switch of the computer. 入力される映像情報を記録媒体に記録する映像記録装置における映像記録方法であって
所定のスイッチの操作に基づいて、上記記録媒体上に記録された映像情報の記録位置を変更する再配置を行うデータ制御工程と、
上記記録媒体上のデータ記録済み領域とデータ未記録領域の分布状態を検出して、上記再配置を行うべき映像情報を識別する識別工程と、
上記再配置を一度に行う回数を設定する設定工程とを備え、
上記データ制御工程では、上記識別工程で識別された映像情報に関する再配置を、上記設定工程で設定された回数ずつ複数回に分割して実行することを特徴とする映像記録方法
A video recording method in a video recording apparatus for recording input video information on a recording medium ,
A data control step for performing rearrangement to change the recording position of the video information recorded on the recording medium based on the operation of a predetermined switch;
An identification step of detecting the distribution state of the data recorded area and the data unrecorded area on the recording medium and identifying the video information to be rearranged;
A setting step for setting the number of times the above rearrangement is performed at a time,
In the data control step, the rearrangement relating to the video information identified in the identification step is executed by being divided into a plurality of times by the number of times set in the setting step .
JP14747098A 1997-05-30 1998-05-28 Video recording apparatus and computer-readable recording medium Expired - Fee Related JP4095165B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14747098A JP4095165B2 (en) 1997-05-30 1998-05-28 Video recording apparatus and computer-readable recording medium

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP9-141800 1997-05-30
JP14180097 1997-05-30
JP14747098A JP4095165B2 (en) 1997-05-30 1998-05-28 Video recording apparatus and computer-readable recording medium

Publications (2)

Publication Number Publication Date
JPH1145518A JPH1145518A (en) 1999-02-16
JP4095165B2 true JP4095165B2 (en) 2008-06-04

Family

ID=26473968

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14747098A Expired - Fee Related JP4095165B2 (en) 1997-05-30 1998-05-28 Video recording apparatus and computer-readable recording medium

Country Status (1)

Country Link
JP (1) JP4095165B2 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000055854A1 (en) 1999-03-17 2000-09-21 Kabushiki Kaisha Toshiba Method for recording stream data and its data structure
JP2002344863A (en) * 2001-05-14 2002-11-29 Olympus Optical Co Ltd Image pickup and recording device
JP2005332507A (en) * 2004-05-21 2005-12-02 Sony Corp Information processor, information processing method, and computer program
JP4850419B2 (en) * 2005-01-11 2012-01-11 キヤノン株式会社 Information processing apparatus, information processing method, program, and storage medium
JP4356624B2 (en) 2005-02-07 2009-11-04 株式会社日立製作所 Recording / reproducing apparatus, recording apparatus, recording / reproducing method, and recording method
JP4826648B2 (en) * 2009-03-27 2011-11-30 株式会社日立製作所 Recording / reproducing apparatus, recording apparatus, and recording / reproducing method
JP4935918B2 (en) * 2010-03-29 2012-05-23 株式会社日立製作所 Information recording device

Also Published As

Publication number Publication date
JPH1145518A (en) 1999-02-16

Similar Documents

Publication Publication Date Title
US7257317B2 (en) Recording apparatus and reproducing apparatus
JP4002699B2 (en) Recording medium for storing information for still images
JP2010273327A (en) Recording apparatus
JP4095165B2 (en) Video recording apparatus and computer-readable recording medium
JP3211679B2 (en) Editing device and editing method
JP6220160B2 (en) Reproducing apparatus and control method thereof
JP5814739B2 (en) Recording device
JP3903039B2 (en) Recording device
JP5762014B2 (en) REPRODUCTION DEVICE AND REPRODUCTION DEVICE CONTROL METHOD
JP2008077695A (en) Video sound recording and reproducing device
KR20080095382A (en) Method for editing of moving picture file list
JP2005158151A (en) Information recording and reproducing device
JP2004171670A (en) Recording and reproducing device and recording and reproducing method
JP5697463B2 (en) Movie editing apparatus and method of controlling movie editing apparatus
JP3530546B2 (en) Recording / playback device
KR100389855B1 (en) Method for recording and/or reproducing still pictures
JP2011060391A (en) Reproduction device
KR100393083B1 (en) Method for recording and/or reproducing still picture
JP3715980B2 (en) Multimedia data processing method and apparatus
KR100378173B1 (en) Recording medium for storing virtual deletion information for still picture
KR100378175B1 (en) Recording medium for storing virtual deletion information for still picture
KR101397011B1 (en) Method for generating abstract of program and display unit enabling of the method
JP2005354451A (en) Recording method of picked-up image
KR100378174B1 (en) Recording and/or reproducing apparatus for storing virtual deletion information for still picture
JP2008278334A (en) Recorder, control method of recorder, program and storage medium

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050517

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050517

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20061102

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20071129

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20071211

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080205

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: 20080226

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080307

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

Free format text: PAYMENT UNTIL: 20110314

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20120314

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees