JP2004078490A - Recording device and method, reproducing device and method, recording medium and program - Google Patents

Recording device and method, reproducing device and method, recording medium and program Download PDF

Info

Publication number
JP2004078490A
JP2004078490A JP2002236879A JP2002236879A JP2004078490A JP 2004078490 A JP2004078490 A JP 2004078490A JP 2002236879 A JP2002236879 A JP 2002236879A JP 2002236879 A JP2002236879 A JP 2002236879A JP 2004078490 A JP2004078490 A JP 2004078490A
Authority
JP
Japan
Prior art keywords
directory entry
fat
recording medium
information recording
data file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2002236879A
Other languages
Japanese (ja)
Other versions
JP4228618B2 (en
Inventor
Teruhiko Mochizuki
望月 輝彦
Yoshihiro Uchiumi
内海 義博
Toshichika Urushibara
漆原 利親
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.)
Sony Corp
Original Assignee
Sony Corp
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 Sony Corp filed Critical Sony Corp
Priority to JP2002236879A priority Critical patent/JP4228618B2/en
Publication of JP2004078490A publication Critical patent/JP2004078490A/en
Application granted granted Critical
Publication of JP4228618B2 publication Critical patent/JP4228618B2/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)

Abstract

<P>PROBLEM TO BE SOLVED: To enable the information indicating the abnormal termination of the recording to remain, and to replay the data stream of an image recorded before the recording is abnormally terminated. <P>SOLUTION: In a step S14, a CPU checks a file size of each file of a directory entry copied on a storage DRAM for FAT, to determine whether the abnormal termination caused by the dying of battery is generated or not. Concretely, in a case when a specific dummy value is recorded as the file size, the generation of the abnormal termination is determined. When the generation of the abnormal termination is determined in the step S14, a processing is advanced to a step S15, where the CPU restores a part corresponding to abnormally terminated files of the directory entry of the storage DRAM for FAT and FAT, and overwrites the directory entry and FAT of an information recording medium. This invention can be applied to a hard disc recorder. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
本発明は、記録装置および方法、再生装置および方法、記録媒体、並びにプログラムに関し、特に、FAT(File Allocation Table)方式に従ってデータファイルを情報記録媒体に記録したり、再生したりする場合に用いて好適な記録装置および方法、再生装置および方法、記録媒体、並びにプログラムに関する。
【0002】
【従来の技術】
従来、ハードディスクなどの情報記録媒体にデータファイルを記録し、また再生するためのフォーマットとして、FAT方式が知られている。FAT方式は、MS−DOS、WINDOWS(登録商標)などのOS(Operating System)を搭載しているパーソナルコンピュータによって標準でサポートされているので、最も普及しているファイルフォーマット方式であるということができる。
【0003】
FAT方式について説明する。図1に示すように、情報記録媒体の記録領域は、セクタと称される物理的記録単位に分割されている。各セクタは、所定の容量(例えば、512バイト)を有し、それぞれにセクタアドレスが付与されている。情報記録媒体に対するアクセスはセクタ単位で行われる。
【0004】
また、情報記録媒体の記録領域は、所定の数のセクタから構成されるクラスタと称される論理的記録単位に分割されている。各クラスタには、それぞれクラスタアドレスが付与されている。情報記録媒体に対するファイルの読み書きは、クラスタ単位で行われる。
【0005】
すなわち、記録するファイルのサイズが1個のクラスタの容量よりも大きい場合、ファイルは複数のクラスタに分割して記録される。反対に、記録するファイルのサイズが1個のクラスタの容量以下である場合、1個のクラスタに、当該ファイルだけが記録される。
【0006】
情報記録媒体の所定の記録領域には、ファイルを記録したり読み出したりするときに参照され、また更新されるファイルアロケーションテーブル(以下、FATと記述する)、およびディレクトリエントリが記録されている。
【0007】
なお、情報記録媒体先頭の1セクタには、管理情報が記録されている。管理情報には、情報記録媒体の容量、1クラスタが何セクタで構成されているかを示す情報、FATテーブルが記録されているクラスタのクラスタアドレス、ディレクトリエントリが記録されているクラスタのクラスタアドレスなどが含まれる。
【0008】
図2は、FATの一例を示している。FATには、情報記録媒体の全てのクラスタにそれぞれに対応するスペースが設けられており、各スペースにはFATアドレスが付与されている。
【0009】
FATアドレス0のスペースには、クラスタアドレスCL0のクラスタが空いているか、または使用済であるかを示す情報が記録されている。使用済であることを示す情報としては、クラスタアドレスCL0のクラスタに記録されているデータに継続するデータが存在する場合、継続するデータが記録されているクラスタのクラスタアドレスが記録される。クラスタアドレスCL0のクラスタに記録されているデータに継続するデータが存在しない場合、クラスタアドレスCL0のクラスタに記録されているデータでファイルが終結することを意味するエンドマーク(EOF)が記録されている。
【0010】
同様に、FATアドレス1,2,3…のスペースには、それぞれ、クラスタアドレスCL1,2,3…のクラスタが空いているか、または使用済であるかを示す情報が記録されている。
【0011】
図3は、ディレクトリエントリの一例を示している。ディレクトリエントリには、各ファイルについて、ファイル名、拡張子、属性、予約済み領域、ファイル作成時刻、ファイル作成日、最終アクセス日、開始クラスタのクラスタアドレス、更新日時、およびファイルサイズが記録されている。
【0012】
例えば、図4に示すように、5個以上6個以下のクラスタに収まるサイズのファイルAが記録される場合、FATが参照されて、順次、空いているクラスタが検索され、そこにファイルAが分割されて記録される。図4の場合、6分割されたファイルA−1乃至A−6が、それぞれ、クラスタアドレスCL10,CL11,CL12,CL15,CL20,CL18のクラスタに記録された状態を示している。
【0013】
この場合、ディレクトリエントリには、ファイルAの開始クラスタのクラスタアドレスとして、クラスタアドレスCL10が記録される。
【0014】
また、FATには、図5に示すように、FATアドレス10のスペースに、クラスタアドレスCL11が記録され、FATアドレス11のスペースに、クラスタアドレスCL12が記録され、FATアドレス12のスペースに、クラスタアドレスCL15が記録され、FATアドレス15のスペースに、クラスタアドレスCL20が記録され、FATアドレス20のスペースに、クラスタアドレスCL18が記録され、FATアドレス18のスペースに、EOFが記録される。
【0015】
このように、ファイルの記録時に更新されたFATおよびディレクトリエントリは、ファイルが読み出されるときに使用される。
【0016】
例えば、ファイルAが読み出される場合、まず始めに、ディレクトリエントリが参照されて、ファイルAの開始クラスタ(いまの場合、クラスタアドレスCL10)が読み出され、クラスタアドレスCL10のクラスタから、ファイルA−1が読み出される。
【0017】
次に、FATが参照されて、FATアドレス10のスペースに記録されている情報(いまの場合、クラスタアドレスCL11)が読み出され、クラスタアドレスCL11のクラスタからファイルA−2が読み出される。次に、FATアドレス11のスペースに記録されている情報(いまの場合、クラスタアドレスCL12)が読み出され、クラスタアドレスCL12のクラスタからファイルA−3が読み出される。
【0018】
これ以降同様にして、クラスタアドレスCL15,CL20,CL18のクラスタから、順次、ファイルA−4乃至A−6が読み出され、FATアドレス18のスペースに記録されている情報が読み出され、これがEOFであるので、データの読み出しが終了される。ここまでの処理により、ファイルAを構成するファイルA−1乃至A−6が読み出されたことになる。
【0019】
ここまで説明したように、ファイルの読み出し時においては、次に読み出すクラスタを特定するために、頻繁にFATが参照される。同様に、ファイルの記録時においても、空きクラスタを検索するために頻繁にFATが参照され、さらに、データがクラスタに記録される毎、データが記録されたクラスタに対応するFATのスペースに、使用済の情報が記録される。
【0020】
このように、ファイルの記録および読み出し時においては、FATに対するアクセスが頻繁に発生するので、従来の装置においては、その処理を高速化するために、情報記録媒体に記録されているFATを、装置内のRAM(Random Access Memory)などにコピーして、コピーしたFATを参照したり、更新したりすることが行われている。
【0021】
図6は、そのような従来の映像記録装置の構成の一例を示している。
【0022】
この映像記録装置において、映像入力部1は、CCD(Charge Coupled Device)カメラなどからなり、被写体を撮影し、得られる映像信号を映像圧縮処理部2に順次出力する。映像圧縮処理部2は、映像入力部1から入力される映像信号を、MPEG(Moving Pictures Experts Group)2方式などを用いて符号化し、得られるデータストリームを、バス3を介して記録再生部4に出力する。また、映像圧縮処理部2は、記録再生部4からバス3を介して入力されるデータを復号し、得られる映像信号を表示部8に出力する。
【0023】
記録再生部4は、バス3を介して映像圧縮処理部2から入力されるデータストリームをバッファリングし、CPU(Central Processing Unit)6から指定されるクラスタアドレスのクラスタに記録する。また、記録再生部4は、CPU6から指定されたクラスタアドレスのクラスタに記録されているデータを読み出し、バス3を介して映像圧縮処理部2に出力する。
【0024】
CPU6は、再生時において、情報記録媒体5からFAT保存用RAM7にコピーしたディレクトリエントリおよびFATに基づき、記録再生部4に対して、リード(Read)コマンドと、データを読み出すクラスタのクラスタアドレスを出力する。また、CPU6は、記録時においては、情報記録媒体5からFAT保存用RAM7にコピーしたFATに基づき、空いているクラスタを検索して、記録再生部4に対して、ライト(Write)コマンドとデータを書き込むクラスタのクラスタアドレスを出力する。また、CPU6は、記録時において、FAT保存用RAM7にコピーしたディレクトリエントリおよびFATを更新し、記録終了時において、情報記録媒体5のディレクトリエントリおよびFATを上書き記録する。
【0025】
通常、FAT保存用RAM7には、揮発性RAMが用いられる。揮発性RAMは、例えば、電源が遮断された場合、記憶していたデータ(FATなど)が消去されてしまう欠点があるが、寿命が不揮発性EEPROM(electrically erasable programmable ROM)のそれよりも長い利点がある。表示部8は、映像圧縮処理部2から出力された映像信号の映像を表示する。
【0026】
次に、CPU6の録画時の動作について、図7にフローチャートをして説明する。この動作は、例えば、ユーザから録画の指示が行われたときに開始される。
【0027】
ステップS1において、CPU6は、記録再生部4を制御して、情報記録媒体5からFATを読み出させ、FAT保存用RAM7に保存させる。また、CPU6は、各部に対して、録画処理を開始するように指示する制御信号を出力する。この制御信号に対応し、例えば、映像入力部1は、撮影を開始して、得られた映像信号を映像圧縮処理部2に出力し始める。映像圧縮処理2は、映像入力部1から入力された映像信号の符号化を開始し、得られたデータストリームを記録再生部4に出力し始める。
【0028】
ステップS2において、CPU6は、記録再生部4を制御して、情報記録媒体5からディレクトリエントリを読み出させ、FAT保存用RAM7に保存させる。
【0029】
ステップS3において、CPU6は、保存用RAM7のFATを参照して、空きクラスタを1つ検索する。ステップS4において、CPU6は、ステップS3で検索した空きクラスタのクラスタアドレスとライトコマンドを、記録再生部4に出力する。このライトコマンドに対応して、記録再生部4は、指定されたクラスタにバッファリングしているデータを記録する。
【0030】
ステップS5において、CPU6は、FAT保存用RAM7のFATを更新する。具体的には、データを記録したクラスタに対応するFATのスペースに、使用済の情報を記録する。
【0031】
ステップS6において、CPU6は、例えば、ユーザからの録画終了の指示に対応して、映像信号が符号化されているデータストリームの終端が情報記録媒体5に記録されたか否かを判定し、データストリームの終端が記録されたと判定されるまで、処理はステップS3に戻り、それ以降の処理が繰り返される。
【0032】
その後、ステップS6において、データストリームの終端が記録されたと判定された場合、処理はステップS7に進む。ステップS7において、CPU6は、FAT保存用RAM7のFATとディレクトリエントリを更新する。具体的には、FATのデータストリームの終端が記録されたクラスタに対応するスペースにEOFを記録し、ディレクトリエントリには、今回記録したファイルに関する情報(ファイル名、拡張子、開始クラスタ、ファイルサイズなど)を記録する。
【0033】
ステップS8において、CPU6は、記録再生部4を制御して、ステップS7で更新したFAT保存用RAM7のFATとディレクトリエントリを、情報記録媒体5に上書き保存させる。以上で、CPU6による記録時の動作の説明を終了する。
【0034】
【発明が解決しようとする課題】
ところで、例えば、ユーザが携帯して使用するビデオカメラのような映像記録再生装置においては、録画の最中にバッテリが切れてしまったり、誤ってバッテリが抜かれてしまったりして、装置に対する電源の供給が遮断されてしまうことが起こり得る。
【0035】
したがって、録画が開始された後、上述したステップS8の処理が終了するまでの間に、バッテリが切れるなどの事態が生じた場合、その時点までのデータストリームがどのクラスタにどのような順序で記録されているかを示す最新のFATが、揮発性のFAT保存用RAM7から消えてしまうので、情報記録媒体5には、バッテリが切れたなどの時点までの映像のデータストリームは記録されているものの、それを再生することができなくなってしまう課題があった。
【0036】
なお、FAT保存用RAM7に不揮発性のEEPROM(electrically erasable programmable ROM)などを使用すれば、バッテリが切れるなどの事態が生じたとしても、最新のFATが消えてしまうことを防ぐことができる。しかしながら、上述したように、不揮発性のEEPROMなどは、揮発性のRAMに比較して寿命が短いので、実使用には適していない。
【0037】
また、仮にFAT保存用RAM7に不揮発性のEEPROMなどを使用した場合、情報記録媒体5として着脱換装可能なリムーバブルディスクが用いられることを考慮すると、ユーザが、FAT保存用RAM7に残されたFATと、複数存在し得るリムーバブルディスクとの対応を把握できなくなってしまうことがある。
【0038】
したがって、情報記録媒体から読み出したディレクトリエントリおよびFATを一時的に記憶する用途には、今後とも、発揮性のRAMが用いられるものと思われる。
【0039】
本発明はこのような状況に鑑みてなされたものであり、録画の最中にバッテリが切れるなどの事態が発生したとしても、その時点までに記録されている映像のデータストリームを再生できるようにすることを目的とする。
【0040】
【課題を解決するための手段】
本発明の記録装置は、情報記録媒体からディレクトリエントリおよびFATを読み出す読み出し手段と、読み出し手段によって読み出されたディレクトリエントリおよびFATを記憶する記憶手段と、記憶手段によって記憶されたFATを参照して、情報記録媒体の空きクラスタを検索する検索手段と、検索手段によって検索された情報記録媒体の空きクラスタにデータファイルを記録する記録手段と、記録手段による記録の処理に対応して、記憶手段によって記憶されたFATを書き換える第1の書き換え手段と、データファイルの記録開始時において、記憶手段によって記憶されたディレクトリエントリの所定の項目にダミーの値を書き込み、所定の項目にダミーの値を書き込んだディレクトリエントリを用いて、情報記録媒体に記録されているディレクトリエントリを更新する第1の更新手段と、データファイルの記録終了時において、記憶手段によって記憶されたディレクトリエントリの所定の項目を真の値に修正して、所定の項目を真の値に修正したディレクトリエントリを用いて、情報記録媒体に記録されているディレクトリエントリを更新する第2の更新手段と、データファイルの記録終了時において、第1の書き換え手段によって書き換えられたFATを用いて、情報記録媒体に記録されているディレクトリエントリを書き換える第2の書き換え手段とを含むことを特徴とする。
【0041】
前記所定の項目は、ファイルサイズの項目とすることができる。
【0042】
前記第2の書き換え手段は、データファイルの記録終了時の他、周期的にも、第1の書き換え手段によって書き換えられた記憶手段によって記憶されたFATを用いて、情報記録媒体に記録されているディレクトリエントリを書き換えるようにすることができる。
【0043】
本発明の記録装置は、記憶手段によって記憶されたディレクトリエントリの所定の項目を調べることにより、情報記録媒体中の不良データファイルを検出する検出手段と、検出手段によって不良データファイルが検出された場合、FATの不良データファイルに対応する部分を修正し、ディレクトリエントリの所定の項目の値を修正する修正手段とをさらに含むことができる。
【0044】
本発明の記録方法は、情報記録媒体からディレクトリエントリおよびFATを読み出す読み出しステップと、読み出しステップの処理で読み出されたディレクトリエントリおよびFATを記憶する記憶ステップと、記憶ステップの処理で記憶されたFATを参照して、情報記録媒体の空きクラスタを検索する検索ステップと、検索ステップの処理で検索された情報記録媒体の空きクラスタにデータファイルを記録する記録ステップと、記録ステップの処理に対応して、記憶ステップの処理で記憶されたFATを書き換える第1の書き換えステップと、データファイルの記録開始時において、記憶ステップの処理で記憶されたディレクトリエントリの所定の項目にダミーの値を書き込み、所定の項目にダミーの値を書き込んだディレクトリエントリを用いて、情報記録媒体に記録されているディレクトリエントリを更新する第1の更新ステップと、データファイルの記録終了時において、記憶ステップの処理で記憶されたディレクトリエントリの所定の項目を真の値に修正して、所定の項目を真の値に修正したディレクトリエントリを用いて、情報記録媒体に記録されているディレクトリエントリを更新する第2の更新ステップと、データファイルの記録終了時において、第1の書き換えステップの処理で書き換えられたFATを用いて、情報記録媒体に記録されているディレクトリエントリを書き換える第2の書き換えステップとを含むことを特徴とする。
【0045】
本発明の第1の記録媒体のプログラムは、情報記録媒体からディレクトリエントリおよびFATを読み出す読み出しステップと、読み出しステップの処理で読み出されたディレクトリエントリおよびFATを記憶する記憶ステップと、記憶ステップの処理で記憶されたFATを参照して、情報記録媒体の空きクラスタを検索する検索ステップと、検索ステップの処理で検索された情報記録媒体の空きクラスタにデータファイルを記録する記録ステップと、記録ステップの処理に対応して、記憶ステップの処理で記憶されたFATを書き換える第1の書き換えステップと、データファイルの記録開始時において、記憶ステップの処理で記憶されたディレクトリエントリの所定の項目にダミーの値を書き込み、所定の項目にダミーの値を書き込んだディレクトリエントリを用いて、情報記録媒体に記録されているディレクトリエントリを更新する第1の更新ステップと、データファイルの記録終了時において、記憶ステップの処理で記憶されたディレクトリエントリの所定の項目を真の値に修正して、所定の項目を真の値に修正したディレクトリエントリを用いて、情報記録媒体に記録されているディレクトリエントリを更新する第2の更新ステップと、データファイルの記録終了時において、第1の書き換えステップの処理で書き換えられたFATを用いて、情報記録媒体に記録されているディレクトリエントリを書き換える第2の書き換えステップとを含むことを特徴とする。
【0046】
本発明の第1のプログラムは、情報記録媒体からディレクトリエントリおよびFATを読み出す読み出しステップと、読み出しステップの処理で読み出されたディレクトリエントリおよびFATを記憶する記憶ステップと、記憶ステップの処理で記憶されたFATを参照して、情報記録媒体の空きクラスタを検索する検索ステップと、検索ステップの処理で検索された情報記録媒体の空きクラスタにデータファイルを記録する記録ステップと、記録ステップの処理に対応して、記憶ステップの処理で記憶されたFATを書き換える第1の書き換えステップと、データファイルの記録開始時において、記憶ステップの処理で記憶されたディレクトリエントリの所定の項目にダミーの値を書き込み、所定の項目にダミーの値を書き込んだディレクトリエントリを用いて、情報記録媒体に記録されているディレクトリエントリを更新する第1の更新ステップと、データファイルの記録終了時において、記憶ステップの処理で記憶されたディレクトリエントリの所定の項目を真の値に修正して、所定の項目を真の値に修正したディレクトリエントリを用いて、情報記録媒体に記録されているディレクトリエントリを更新する第2の更新ステップと、データファイルの記録終了時において、第1の書き換えステップの処理で書き換えられたFATを用いて、情報記録媒体に記録されているディレクトリエントリを書き換える第2の書き換えステップとを含む処理をコンピュータに実行させることを特徴とする。
【0047】
本発明の再生装置は、情報記録媒体からディレクトリエントリおよびFATを読み出す読み出し手段と、読み出し手段によって読み出されたディレクトリエントリおよびFATを記憶する記憶手段と、記憶手段によって記憶されたディレクトリエントリの所定の項目を調べることにより、情報記録媒体中の不良データファイルを検出する検出手段と、検出手段によって不良データファイルが検出された場合、FATの不良データファイルに対応する部分を修正し、ディレクトリエントリの所定の項目の値を修正する修正手段とを含むことを特徴とする。
【0048】
前記所定の項目は、ファイルサイズの項目とすることができる。
【0049】
前記検出手段は、記憶手段によって記憶されたディレクトリエントリの所定の項目にダミーの値が書き込まれているか否かに基づき、情報記録媒体中の不良データファイルを検出するようにすることができる。
【0050】
本発明の再生方法は、情報記録媒体からディレクトリエントリおよびFATを読み出す読み出しステップと、読み出しステップの処理で読み出されたディレクトリエントリおよびFATを記憶する記憶ステップと、記憶ステップの処理で記憶されたディレクトリエントリの所定の項目を調べることにより、情報記録媒体中の不良データファイルを検出する検出ステップと、検出ステップの処理で不良データファイルが検出された場合、FATの不良データファイルに対応する部分を修正し、ディレクトリエントリの所定の項目の値を修正する修正ステップとを含むことを特徴とする。
【0051】
本発明の第2の記録媒体のプログラムは、情報記録媒体からディレクトリエントリおよびFATを読み出す読み出しステップと、読み出しステップの処理で読み出されたディレクトリエントリおよびFATを記憶する記憶ステップと、記憶ステップの処理で記憶されたディレクトリエントリの所定の項目を調べることにより、情報記録媒体中の不良データファイルを検出する検出ステップと、検出ステップの処理で不良データファイルが検出された場合、FATの不良データファイルに対応する部分を修正し、ディレクトリエントリの所定の項目の値を修正する修正ステップとを含むことを特徴とする。
【0052】
本発明の第2のプログラムは、情報記録媒体からディレクトリエントリおよびFATを読み出す読み出しステップと、読み出しステップの処理で読み出されたディレクトリエントリおよびFATを記憶する記憶ステップと、記憶ステップの処理で記憶されたディレクトリエントリの所定の項目を調べることにより、情報記録媒体中の不良データファイルを検出する検出ステップと、検出ステップの処理で不良データファイルが検出された場合、FATの不良データファイルに対応する部分を修正し、ディレクトリエントリの所定の項目の値を修正する修正ステップとを含む処理をコンピュータに実行させることを特徴とする。
【0053】
本発明の記録装置および方法、並びにプログラムにおいては、データファイルの記録開始時において、記憶されたディレクトリエントリの所定の項目にダミーの値が書き込まれ、所定の項目にダミーの値が書き込まれたディレクトリエントリを用いて、情報記録媒体に記録されているディレクトリエントリが更新される。また、データファイルの記録終了時において、記憶されたディレクトリエントリの所定の項目が真の値に修正され、所定の項目が真の値に修正されたディレクトリエントリを用いて、情報記録媒体に記録されているディレクトリエントリが更新される。
【0054】
本発明の再生装置および方法、並びにプログラムにおいては、記憶されたディレクトリエントリの所定の項目を調べることにより、情報記録媒体中の不良データファイルが検出され、不良データファイルが検出された場合、FATの不良データファイルに対応する部分が修正され、ディレクトリエントリの所定の項目の値が修正される。
【0055】
記録装置は、独立した装置であってもよいし、記録再生装置の記録を実行するブロックであってもよい。
【0056】
再生装置は、独立した装置であってもよいし、記録再生装置の再生を実行するブロックであってもよい。
【0057】
【発明の実施の形態】
以下、図面を参照して本発明の一実施の形態である映像記録再生装置について説明する。
【0058】
当該映像記録再生装置は、録画開始時において、情報記録媒体に記録されているディレクトリエントリのファイルサイズの項目に、所定のダミーの値(例えば、0)を記録し、録画が終了した時において、ファイルサイズの項目に記録されているダミーの値を、真の値に更新するようにしている。したがって、録画が正常に終了される前に、バッテリが切れるなどによって、録画が異常終了された場合、ディレクトリエントリのファイルサイズの項目には、所定のダミーの値が残ることになる。これにより、電源投入時、情報記録媒体に記録されているディレクトリエントリのファイルサイズの項目を調べるだけで、前回、バッテリが切れるなどに起因して、録画が異常終了されたか否を判定することができる。
【0059】
また、当該映像記録再生装置は、前回、録画が異常終了されたと判定された場合、ディレクトリエントリおよびFATを修復するようにしている。これにより、前回、録画が異常終了された時点までに録画されているデータを再生するこができる。
【0060】
図8は、当該映像記録再生装置の構成例を示している。CPU21は、バス35を介してドライブ22を制御し、磁気ディスク、光ディスク、光磁気ディスク、または半導体メモリなどよりなる記録媒体23に記憶されている制御用プログラムを読み出し、読み出した制御用プログラム、および操作入力部25からバス35を介して入力されるユーザの操作情報に対応し、当該映像記録再生装置の各部の動作開始および終了を制御する。また、特に、CPU21は、バス35を介して接続された記録再生部32に対し、リードコマンドまたはライトコマンドとともにクラスタアドレスを出力し、情報記録媒体33に対するデータの読み書きを制御する。
【0061】
揮発性のFAT用DRAM24には、情報記録媒体33に記録されているディレクトリエントリおよびFATがコピーされる。FAT用DRAM24にコピーされたディレクトリエントリおよびFATは、CPU21によって参照されたり、更新されたり、修復されたりする。
【0062】
操作入力部25は、操作ボタンなどのユーザインタフェースからなり、ユーザが入力する操作(録画モードに設定する操作、再生モードに設定する操作、録画開始を指示する操作、録画終了を指示する操作等)を受け付け、操作情報としてバス35を介してCPU21に出力する。映像入力部26は、CCDカメラなどからなり、被写体を撮影し、得られる映像信号をベースバンド処理部27に順次出力する。
【0063】
ベースバンド処理部27は、映像信号入力部26から順次入力される映像信号に、フィルタ処理などを施して符号化部28に出力する。符号化部28は、録画時において、ベースバンド処理部27から順次入力されるフィルタ処理などが施された映像信号を、MPEG2方式などを用いて符号化し、得られるデータストリームを多重化部29に出力する。また、符号化部28は、再生時において、多重化部29から入力される映像のデータストリームを復号して、得られる映像信号を表示部34に出力する。
【0064】
多重化部29は、録画時において、符号化部28から入力される映像のデータストリームに、図示せぬ音声符号化部から入力される音声のデータストリームを多重化することにより、MPEG2のフォーマットに従ったプログラムストリーム(以下、PSと記述する)を生成して、バッファ部30に出力する。また、多重化部29は、再生時において、記録再生部32が情報記録媒体33から読み出したPSを、バッファ部30を介して取得し、映像のデータストリームと音声のデータストリームに分離して、それぞれを符号化部28と音声符号化部に出力する。
【0065】
バッファ部30は、DRAM31を内蔵しており、録画時において、多重化部29から入力されるPSのデータがDRAM31に1クラスタ分だけ溜まる毎、CPU21に対して書き込みを要求し、書き込みが成功するまで、DRAM31に溜まっているPSのデータを保持させる。また、バッファ部30は、再生時において、記録再生部32から入力されるPSのデータをバファリングして多重化部29に供給する。
【0066】
記録再生部32は、CPU21からの制御に従い、情報記録媒体33に記録されているディレクトリエントリおよびFATを読み出して、FAT保存用DRAM24にコピーする。また、記録再生部32は、CPU21からの制御に従い、FAT保存用DRAM24上において更新されたディレクトリエントリおよびFATを情報記録媒体33に上書き保存する。
【0067】
さらに、記録再生部32は、記録時において、CPU21から入力されるライトコマンドに従い、バッファ30のDRAM31に記録されている1クラスタ分のPSのデータを読み出し、情報記録媒体33のCPU21が指定するクラスタに記録する。また、記録再生部32は、再生時において、CPU21から入力されるリードコマンドに従い、情報記録媒体33のCPU21が指定するクラスタに記録されているPSのデータを読み出し、バッファ30に出力する。
【0068】
情報記録媒体33は、FAT方式に基づいてフォーマットされているハードディスクなどからなり、所定の記録領域にディレクトリエントリとFATが記録されている。
【0069】
表示部34は、再生時において、情報記録媒体33から再生される映像信号の映像を表示する。バス35には、CPU21から各部に対する制御信号が伝送される。映像信号やそれが符号化されているPSは、バス35を介することなく、直接的に通信される。
【0070】
次に、当該映像記録再生装置の電源投入時の処理について、図9のフローチャートを参照して説明する。
【0071】
ステップS11において、CPU21は、電源がオンとされたか否かを判定し、電源がオンとされたと判定するまで待機する。電源がオンとされたと判定された場合、処理は、ステップS12に進む。ステップS12において、CPU21は、記録再生部32を制御して、情報記録媒体33に記録されているFATを、FAT用保存DRAM24にコピーさせる。ステップS13において、CPU21は、記録再生部32を制御して、情報記録媒体33に記録されているディレクトリエントリを、FAT用保存DRAM24にコピーさせる。
【0072】
ステップS14において、CPU21は、情報記録媒体33からFAT用保存DRAM24にコピーされたディレクトリエントリの各ファイルのファイルサイズを調べることにより、バッテリ切れなどに起因する異常終了が発生していたか否かを判定する。具体的には、ディレクトリエントリの各ファイルのファイルサイズに所定のダミーの値が記録されている場合、異常終了が発生していたと判定する。
【0073】
ステップS14において、異常終了が発生していたと判定された場合、処理はステップS15に進む。ステップS15において、CPU21は、FAT用保存DRAM24のディレクトリエントリとFATの異常終了されていたファイルに対応する部分を修復し、修復したディレクトリエントリとFATを用いて、情報記録媒体33のディレクトリエントリとFATを上書きさせる。なお、ディレクトリエントリとFATの修復処理については図13乃至図15を参照して後述する。
【0074】
ステップS14において、異常終了が発生していないと判定された場合、ステップS15の処理はスキップされる。
【0075】
ステップS16において、CPU21は、操作入力部25からの操作情報に基づき、録画モード、または再生モードのどちらに設定されていのかを判定する。録画モードに設定されていると判定された場合、処理はステップS17に進み、録画モードの処理(図10を参照して詳述する)を実行する。
【0076】
反対に、ステップS16において、再生モードに設定されていると判定された場合、処理はステップS18に進み、再生モードの処理が実行される。具体的には、ユーザによって再生するファイルが指定され、ディレクトリエントリが参照されることにより、指定されたファイルの開始クラスタのクラスタアドレスが判明されて、データの読み出しが開始され、これ以降、FATが参照されて、データの続きが記録されているクラスタが判明され、順次データの読み読み出しが行われる。以上で、当該映像記録再生装置による電源投入時の処理の説明を終了する。
【0077】
次に、ステップS17の録画モードの処理について、図10のフローチャートを参照して説明する。
【0078】
ステップS21において、CPU21は、FAT用保存DRAM24のFATを参照して、最初にPSのデータを記録するための空きクラスタを検索する。例えば、FAT用保存DRAM24のFATが、図11に示すような状態である場合、クラスタアドレスCL10のクラスタが空きクラスタとして検索される。
【0079】
ステップS22において、CPU21は、操作入力部25からの操作情報に基づき、ユーザから録画開始が指示されたか否かを判定し、ユーザから録画開始が指示されたと判定するまで待機する。ユーザから録画開始が指示されたと判定された場合、処理は、ステップS23に進む。
【0080】
ステップS23において、CPU21は、FAT用保存DRAM24のディレクトリエントリに、これから録画するファイルの情報として、ファイル名、開始クラスタ(ステップS21で検索した空きクラスタのクラスタアドレス)、およびダミーのファイルサイズを記録する。
【0081】
ステップS24において、CPU21は、記録再生部32を制御して、FAT用保存DRAM24のディレクトリエントリを情報記録媒体33にコピーさせる(上書きさせる)。
【0082】
ステップS25において、CPU21は、各部に対し、バス35を介して、録画開始コマンドを送信する。この録画開始コマンドに対応して、映像入力部26乃至バッファ部30は、それぞれの動作を開始する。これにより、バッファ部30のDRAM31には、多重化部29から入力されたPSのデータが溜まり始めることになる。
【0083】
ステップS26において、CPU21は、バッファ部30から、書き込み要求があるか否かを判定し、書き込み要求がないと判定した場合、処理はステップS27に進む。ステップS27において、CPU21は、FAT用保存DRAM24のFATを参照して、次にデータを記録するための空きクラスタを検索する。例えば、FAT用保存DRAM24のFATが、図11に示すような状態である場合、クラスタアドレスCL11のクラスタが空きクラスタとして検索される。
【0084】
そして、バッファ部30のDRAM31に、多重化部29から入力されたPSのデータが1クラスタ分だけ溜まり、バッファ部30からCPU21に対して、書き込み要求があるまで、ステップS26およびS27の処理が繰り返される。
【0085】
ステップS26において、バッファ部30から、書き込み要求があると判定された場合、処理はステップS28に進む。ステップS28において、CPU21は、記録再生部32に対して、ライトコマンドとともに空きクラスタのクラスタアドレスを通知する。
【0086】
CPU21から入力されたライトコマンドに従い、ステップS29において、記録再生部32は、バッファ30のDRAM31に記録されている1クラスタ分のPSのデータを読み出し、情報記録媒体33のCPU21によって指定された空きクラスタに書き込む。
【0087】
ステップS30において、CPU21は、ステップS29の処理に対応して、FAT用保存DRAM24のFATを更新する。ステップS31において、CPU21は、記録再生部32を制御して、FAT用保存DRAM24の更新したFATを、情報記録媒体33にコピーさせる(上書きさせる)。なお、ステップS31の処理は、ステップS30の処理の後、必ずしも毎回実行しなくてもよい。例えば、定期的に(例えば、数秒乃至数分毎に)実行すればよい。
【0088】
ステップS32において、CPU21は、ユーザから録画終了が指示され、それに対応して、PSのデータの終端が情報記録媒体33に記録されたか否かを判定する。PSのデータの終端が記録されたと判定されない場合、処理はステップS26に戻り、それ以降の処理が繰り替えされる。
【0089】
その後、ステップS32において、PSのデータの終端が記録されたと判定された場合、処理はステップS33に進む。なお、ステップS33の処理に進む段階において、FAT用保存DRAM24のFATは、例えば、図12に示すように、PSのデータの終端が書き込まれたクラスタに対するスペース(図12の場合、FATアドレス17のスペース)には、EOFが書き込まれた状態となっている。
【0090】
ステップS33において、CPU21は、FAT用保存DRAM24のディレクトリエントリの、現在ダミーの値が記録されているファイルサイズの項目に正しい値を記録する。
【0091】
ステップS33において、CPU21は、記録再生部32を制御して、FAT用保存DRAM24の更新されたディレクトリエントリを情報記録媒体33にコピーさせる(上書きさせる)。以上で、録画モードの処理の説明を終了する。
【0092】
ところで、上述した録画モードの処理のうち、ステップS26乃至S33の処理の最中に、例えば、バッテリが切れるなどの事態が発生して、この録画モードの処理が中断された場合(すなわち、異常終了が発生した場合、)情報記録媒体33のディレクトリエントリには、ファイルサイズの項目に、所定のダミーの値が記録されたファイルの情報が残ることになる。
【0093】
この情報に基づいて、上述した図9のステップS14の処理では、異常終了の発生の有無が判定されることになる。
【0094】
次に、図9のステップS15におけるディレクトリエントリおよびFATの修復処理について説明する。
【0095】
ここで、異常終了されたファイルに対応するFATの記録が図13に示すような状態であるとする。すなわち、情報記録媒体33に記録されているFATによれば、クラスタアドレスCL10のクラスタを先頭に、クラスタアドレスCL11,CL12,CL13のクラスタが使用済の状態で、次に使用されるクラスタアドレスCL16に対応するスペースに、空きを示す情報が記録されている状態であるとする。FATがこのような状態である場合、クラスタアドレスCL16のクラスタにデータを書き込んでいる最中に異常終了した可能性が高いので、クラスタアドレスCL16のクラスタに記録されているデータの信頼性が低い。
【0096】
ディレクトリエントリおよびFATの修復方法には、2種類の方法が考えられる。第1の修復方法は、記録されているデータを少しでも多く再生できるようにするが、データの信頼性が低い方法である。第2の修復方法は、第1の修復方法に比べて再生できるデータの量は少なくなるが、データの信頼性が高い方法である。
【0097】
第1の修復方法では、FATにおいて使用済の情報が記録されている一連のスペースのうち、最後のスペースに記録されているクラスタアドレスに対応するFATのスペースにEOFが記録される。図13に示されたFATを、第1の修復方法で修復した場合、図14に示すように、クラスタアドレスCL16に対するFATのスペースに、エンドが記録される。このように、FATが修復された場合、ディレクトリエントリのファイルサイズの項目には、クラスタアドレスCL10,CL11,CL12,CL13,CL16の容量を合計した値が記録される。
【0098】
第2の修復方法では、FATにおいて使用済の情報が記録されている一連のスペースのうち、最後のスペースがエンドに書き換えられる。図13に示されたFATを、第2の修復方法で修復した場合、図15に示すように、クラスタアドレスCL13に対するFATのスペースに、エンドが記録される。このように、FATが修復された場合、ディレクトリエントリのファイルサイズの項目には、クラスタアドレスCL10,CL11,CL12,CL13の容量を合計した値が記録される。
【0099】
以上のように、本発明を適用した映像記録再生装置によれば、バッテリ切れなどに起因して、突然電源の供給が途絶えたとしても、その時点でまでに記録したファイルを再生させることができる。
【0100】
なお、従来の映像記録再生装置に比較して、本発明を適用した映像記録再生装置が録画中に行わなければならない処理としては、記録開始時のディレクトリエントリを書き込むことと、録画中において定期的にFATテーブルを情報記録媒体にコピーする処理だけなので、CPUに負担をかけることはない。
【0101】
本発明を適用した映像記録再生装置においては、異常終了を検出するために特殊なデータファイルを記録する必要がないので、ファイルの扱いが複雑にならない。
【0102】
また、本発明を適用した映像記録再生装置が用いる情報記録媒体は、通常のFATフォーマットに完全に従っているので、この情報記録媒体に対して、汎用のパーソナルコンピュータが直接アクセスすることができる。ただし、異常終了が発生している場合には、汎用のパーソナルコンピュータが直接アクセスした場合、エラーを起こす可能性があるが、修復後であれば、問題ない。
【0103】
本発明を適用した映像記録再生装置は、ディレクトリエントリのファイルサイズを確認するだけで異常終了したファイルを検索することができるので、この処理は速やかに終了される。
【0104】
本発明を適用した映像記録再生装置では、FAT用保存DRAM24において更新されたFATを定期的に情報記録媒体にコピーするようにしているが、この頻度を高くすれば、異常終了した後、復元不可となる部分がより少なくなるが、その分だけ録画時の処理が重くなる。換言すれば、FATを定期的に情報記録媒体にコピーする頻度を調整することで、システムの性能(主に記録スピード)と復元性にあわせたチューニングが可能となる。
【0105】
なお、本発明は、本実施の形態のように、映像信号を記録し、また再生する装置だけでなく、あらゆるデータを、FAT方式でフォーマットされた情報記録媒体に記録する装置に適用することが可能である。
【0106】
また、本発明は、情報記録媒体に記録されているディレクトリエントリおよびFATを修復できる再生装置として、実施することも可能である。
【0107】
ところで、上述した一連の処理は、ハードウェアにより実行させることもできるが、ソフトウェアにより実行させることもできる。一連の処理をソフトウェアにより実行させる場合には、そのソフトウェアを構成するプログラムが、専用のハードウェアに組み込まれているコンピュータ(例えば、図8のCPU21)、または、各種のプログラムをインストールすることで、各種の機能を実行することが可能な、例えば汎用のパーソナルコンピュータなどに、記録媒体(例えば、図8の記録媒体23)からインストールされる。
【0108】
この記録媒体は、図8に示すように、コンピュータとは別に、ユーザにプログラムを提供するために配布される、プログラムが記録されている磁気ディスク(フレキシブルディスクを含む)、光ディスク(CD−ROM(Compact Disc−Read Only Memory)、DVD(Digital Versatile Disc)を含む)、光磁気ディスク(MD(Mini Disc)を含む)、もしくは半導体メモリなどよりなるパッケージメディアにより構成されるだけでなく、コンピュータに予め組み込まれた状態でユーザに提供される、プログラムが記録されているROMやハードディスクなどで構成される。
【0109】
なお、本明細書において、記録媒体に記録されるプログラムを記述するステップは、記載された順序に従って時系列的に行われる処理はもちろん、必ずしも時系列的に処理されなくとも、並列的あるいは個別に実行される処理をも含むものである。
【0110】
また、本明細書において、システムとは、複数の装置により構成される装置全体を表すものである。
【0111】
【発明の効果】
以上のように、本発明によれば、録画の最中にバッテリが切れるなどの事態が発生した場合、録画が異常終了したことを示す情報を情報記録媒体に残すことができる。さらに、本発明によれば、録画が異常終了した時点までに記録されている映像のデータストリームを再生することが可能となる。
【図面の簡単な説明】
【図1】情報記録媒体の物理的記録単位と論理的記録単位を示す図である。
【図2】FATの一例を示す図である。
【図3】ディレクトリエントリの一例を示す図である。
【図4】ファイルが複数のクラスタに分割して記録される状態を示す図である。
【図5】図4に示された状態に対応するFATの一例を示す図である。
【図6】従来の映像記録再生装置の構成の一例を示すブロック図である。
【図7】図6のCPUによる録画時の動作を説明するフローチャートである。
【図8】本発明の一実施の形態である映像記録再生装置の構成例を示すブロック図である。
【図9】図8の映像記録再生装置の動作を説明するフローチャートである。
【図10】図9のステップS17における録画モードの処理を説明するフローチャートである。
【図11】録画が開始される前のFATの一例を示す図である。
【図12】録画が正常に終了した後のFATの一例を示す図である。
【図13】録画が異常終了した後のFATの一例を示す図である。
【図14】第1の修復方法により修復されたFATの一例を示す図である。
【図15】第2の修復方法により修復されたFATの一例を示す図である。
【符号の説明】
21 CPU, 23 記録媒体, 24 FAT用DRAM, 32 記録再生部, 33 情報記録媒体
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a recording device and method, a reproducing device and method, a recording medium, and a program, and more particularly to a method of recording and reproducing a data file on an information recording medium according to a FAT (File Allocation Table) system. The present invention relates to a preferable recording device and method, a reproducing device and method, a recording medium, and a program.
[0002]
[Prior art]
Conventionally, as a format for recording and reproducing a data file on an information recording medium such as a hard disk, the FAT method has been known. The FAT method is supported by a personal computer equipped with an OS (Operating System) such as MS-DOS, WINDOWS (registered trademark) or the like, and can be said to be the most popular file format method. .
[0003]
The FAT method will be described. As shown in FIG. 1, the recording area of the information recording medium is divided into physical recording units called sectors. Each sector has a predetermined capacity (for example, 512 bytes), and a sector address is given to each sector. Access to the information recording medium is performed in sector units.
[0004]
The recording area of the information recording medium is divided into logical recording units called clusters each composed of a predetermined number of sectors. Each cluster is assigned a cluster address. Reading and writing of files from and to the information recording medium are performed in cluster units.
[0005]
That is, when the size of a file to be recorded is larger than the capacity of one cluster, the file is divided into a plurality of clusters and recorded. Conversely, if the size of the file to be recorded is smaller than the capacity of one cluster, only that file is recorded in one cluster.
[0006]
In a predetermined recording area of the information recording medium, a file allocation table (hereinafter referred to as FAT) which is referred to and updated when recording or reading a file, and a directory entry are recorded.
[0007]
Note that management information is recorded in the first sector of the information recording medium. The management information includes the capacity of the information recording medium, information indicating how many sectors each cluster is composed of, the cluster address of the cluster where the FAT table is recorded, the cluster address of the cluster where the directory entry is recorded, and the like. included.
[0008]
FIG. 2 shows an example of the FAT. The FAT is provided with spaces corresponding to all the clusters of the information recording medium, and each space is assigned a FAT address.
[0009]
In the space of the FAT address 0, information indicating whether the cluster of the cluster address CL0 is empty or has been used is recorded. When there is data continuing from the data recorded in the cluster of the cluster address CL0, the cluster address of the cluster in which the continuing data is recorded is recorded as the information indicating that the data has been used. If there is no data continuing from the data recorded in the cluster with the cluster address CL0, an end mark (EOF) is recorded which means that the file ends with the data recorded in the cluster with the cluster address CL0. .
[0010]
Similarly, in the spaces of the FAT addresses 1, 2, 3,..., Information indicating whether the cluster of the cluster address CL1, 2, 3,.
[0011]
FIG. 3 shows an example of a directory entry. The directory entry records the file name, extension, attribute, reserved area, file creation time, file creation date, last access date, start cluster address, update date and time, and file size for each file. .
[0012]
For example, as shown in FIG. 4, when a file A having a size that fits in 5 or more and 6 or less clusters is recorded, the FAT is referred to, an empty cluster is sequentially searched, and the file A is stored there. It is divided and recorded. FIG. 4 shows a state where the six divided files A-1 to A-6 are recorded in the clusters having the cluster addresses CL10, CL11, CL12, CL15, CL20, and CL18, respectively.
[0013]
In this case, in the directory entry, the cluster address CL10 is recorded as the cluster address of the start cluster of the file A.
[0014]
In the FAT, as shown in FIG. 5, a cluster address CL11 is recorded in the space of the FAT address 10, a cluster address CL12 is recorded in the space of the FAT address 11, and a cluster address CL is recorded in the space of the FAT address 12. CL15 is recorded, the cluster address CL20 is recorded in the space of the FAT address 15, the cluster address CL18 is recorded in the space of the FAT address 20, and the EOF is recorded in the space of the FAT address 18.
[0015]
As described above, the FAT and directory entry updated at the time of recording the file are used when the file is read.
[0016]
For example, when the file A is read, first, the directory entry is referred to, the starting cluster (the cluster address CL10 in this case) of the file A is read, and the file A-1 is read from the cluster of the cluster address CL10. Is read.
[0017]
Next, referring to the FAT, the information (in this case, the cluster address CL11) recorded in the space of the FAT address 10 is read, and the file A-2 is read from the cluster of the cluster address CL11. Next, information (in this case, the cluster address CL12) recorded in the space of the FAT address 11 is read, and the file A-3 is read from the cluster of the cluster address CL12.
[0018]
Thereafter, in the same manner, the files A-4 to A-6 are sequentially read from the cluster of the cluster addresses CL15, CL20, and CL18, and the information recorded in the space of the FAT address 18 is read. Therefore, the data reading is completed. By the processing so far, the files A-1 to A-6 constituting the file A have been read.
[0019]
As described above, when reading a file, the FAT is frequently referred to in order to specify the next cluster to be read. Similarly, at the time of recording a file, the FAT is frequently referred to in order to search for a free cluster, and each time data is recorded in a cluster, the FAT is used in a space of the FAT corresponding to the cluster in which the data is recorded. Completed information is recorded.
[0020]
As described above, when a file is recorded and read, access to the FAT frequently occurs. Therefore, in the conventional device, in order to speed up the processing, the FAT recorded on the information recording medium is deleted. Copying to a RAM (Random Access Memory) or the like, and referring to or updating the copied FAT is performed.
[0021]
FIG. 6 shows an example of the configuration of such a conventional video recording device.
[0022]
In this video recording apparatus, a video input unit 1 is composed of a CCD (Charge Coupled Device) camera or the like, shoots a subject, and sequentially outputs obtained video signals to a video compression processing unit 2. The video compression processing unit 2 encodes the video signal input from the video input unit 1 using the MPEG (Moving Pictures Experts Group) 2 method or the like, and converts the obtained data stream via the bus 3 into the recording / reproducing unit 4. Output to Further, the video compression processing unit 2 decodes data input from the recording / reproducing unit 4 via the bus 3 and outputs the obtained video signal to the display unit 8.
[0023]
The recording / reproducing unit 4 buffers the data stream input from the video compression processing unit 2 via the bus 3 and records the data stream in a cluster of a cluster address specified by a CPU (Central Processing Unit) 6. Further, the recording / reproducing unit 4 reads data recorded in the cluster of the designated cluster address from the CPU 6 and outputs the data to the video compression processing unit 2 via the bus 3.
[0024]
During reproduction, the CPU 6 outputs a read command and a cluster address of a cluster from which data is read to the recording / reproducing unit 4 based on the directory entry and the FAT copied from the information recording medium 5 to the FAT storage RAM 7 during reproduction. I do. Also, at the time of recording, the CPU 6 searches for an empty cluster based on the FAT copied from the information recording medium 5 to the FAT storage RAM 7 and sends a write (Write) command and data to the recording / reproducing unit 4. Outputs the cluster address of the cluster in which is written. Further, the CPU 6 updates the directory entry and the FAT copied to the FAT storage RAM 7 at the time of recording, and overwrites the directory entry and the FAT of the information recording medium 5 at the end of the recording.
[0025]
Usually, a volatile RAM is used as the FAT storage RAM 7. Volatile RAMs have the disadvantage that stored data (such as FAT) are erased when the power is turned off, but have a longer lifespan than that of non-volatile EEPROMs (Electrically Erasable Programmable ROMs). There is. The display unit 8 displays the video of the video signal output from the video compression processing unit 2.
[0026]
Next, the operation of the CPU 6 during recording will be described with reference to a flowchart in FIG. This operation is started, for example, when a recording instruction is issued from the user.
[0027]
In step S1, the CPU 6 controls the recording / reproducing unit 4 to read out the FAT from the information recording medium 5 and store it in the FAT storage RAM 7. Further, the CPU 6 outputs a control signal for instructing each unit to start a recording process. In response to the control signal, for example, the video input unit 1 starts shooting and starts outputting the obtained video signal to the video compression processing unit 2. In the video compression process 2, encoding of the video signal input from the video input unit 1 is started, and output of the obtained data stream to the recording / reproducing unit 4 is started.
[0028]
In step S2, the CPU 6 controls the recording / reproducing unit 4 to read a directory entry from the information recording medium 5 and store the directory entry in the FAT storage RAM 7.
[0029]
In step S3, the CPU 6 refers to the FAT in the storage RAM 7 to search for one free cluster. In step S4, the CPU 6 outputs the cluster address and the write command of the free cluster searched in step S3 to the recording / reproducing unit 4. In response to the write command, the recording / reproducing unit 4 records the data buffered in the designated cluster.
[0030]
In step S5, the CPU 6 updates the FAT in the FAT storage RAM 7. Specifically, the used information is recorded in the FAT space corresponding to the cluster in which the data has been recorded.
[0031]
In step S6, the CPU 6 determines whether or not the end of the data stream in which the video signal is encoded has been recorded on the information recording medium 5, for example, in response to a recording end instruction from the user. Until it is determined that the end of is recorded, the process returns to step S3, and the subsequent processes are repeated.
[0032]
Thereafter, if it is determined in step S6 that the end of the data stream has been recorded, the process proceeds to step S7. In step S7, the CPU 6 updates the FAT and the directory entry in the FAT storage RAM 7. Specifically, the EOF is recorded in a space corresponding to the cluster in which the end of the data stream of the FAT is recorded, and information about the file recorded this time (file name, extension, start cluster, file size, etc.) is recorded in the directory entry. ).
[0033]
In step S8, the CPU 6 controls the recording / reproducing unit 4 to overwrite and save the FAT and the directory entry in the FAT storage RAM 7 updated in step S7 on the information recording medium 5. This concludes the description of the recording operation by the CPU 6.
[0034]
[Problems to be solved by the invention]
By the way, for example, in a video recording / reproducing apparatus such as a video camera carried by a user, the battery runs out during recording, or the battery is accidentally pulled out, so that the power supply to the apparatus is lost. It can happen that the supply is cut off.
[0035]
Therefore, if a situation such as running out of the battery occurs after the recording is started and before the processing of step S8 is completed, the data stream up to that point is recorded in which cluster and in what order. Since the latest FAT indicating whether or not the data has been erased disappears from the volatile FAT storage RAM 7, although the data stream of the video up to the time such as when the battery runs out is recorded on the information recording medium 5, There was a problem that it became impossible to reproduce it.
[0036]
If a non-volatile electrically erasable programmable ROM (EEPROM) or the like is used as the FAT storage RAM 7, it is possible to prevent the latest FAT from being erased even if a situation such as running out of battery occurs. However, as described above, a nonvolatile EEPROM or the like has a shorter life than a volatile RAM, and is not suitable for practical use.
[0037]
Further, if a non-volatile EEPROM or the like is used as the FAT storage RAM 7, considering that a removable disk that can be inserted and removed is used as the information recording medium 5, the user can store the FAT stored in the FAT storage RAM 7 with the FAT storage RAM 7. However, it may not be possible to grasp the correspondence with a plurality of removable disks.
[0038]
Therefore, for the purpose of temporarily storing the directory entry and the FAT read from the information recording medium, it is expected that the RAM having the excellent performance will be used in the future.
[0039]
The present invention has been made in view of such a situation, and even if a situation such as running out of battery occurs during recording, it is possible to reproduce a data stream of a video recorded up to that point. The purpose is to do.
[0040]
[Means for Solving the Problems]
A recording device according to the present invention includes a reading unit that reads a directory entry and a FAT from an information recording medium, a storage unit that stores the directory entry and the FAT read by the reading unit, and a FAT that is stored by the storage unit. A search unit for searching for an empty cluster of the information recording medium, a recording unit for recording a data file in an empty cluster of the information recording medium searched by the search unit, and a storage unit corresponding to the recording process by the recording unit. A first rewriting means for rewriting the stored FAT, and a dummy value is written in a predetermined item of the directory entry stored by the storage means and a dummy value is written in the predetermined item at the start of recording of the data file. The information recorded on the information recording medium is recorded using the directory entry. First updating means for updating the directory entry stored therein, and at the end of recording of the data file, correcting a predetermined item of the directory entry stored by the storage means to a true value and changing the predetermined item to a true value. Second updating means for updating the directory entry recorded on the information recording medium by using the directory entry corrected in the above manner, and using the FAT rewritten by the first rewriting means at the end of recording the data file. And a second rewriting means for rewriting a directory entry recorded on the information recording medium.
[0041]
The predetermined item may be a file size item.
[0042]
The second rewriting means periodically records the data file on the information recording medium by using the FAT stored by the storage means rewritten by the first rewriting means at the end of the recording of the data file and periodically. Directory entries can be rewritten.
[0043]
The recording apparatus according to the present invention includes a detecting unit that detects a bad data file in the information recording medium by checking a predetermined item of a directory entry stored by the storing unit, and a detecting unit that detects the bad data file. , Correcting a portion corresponding to the bad data file of the FAT, and correcting a value of a predetermined item of the directory entry.
[0044]
A recording method according to the present invention includes a reading step of reading a directory entry and a FAT from an information recording medium, a storing step of storing the directory entry and the FAT read in the processing of the reading step, and a FAT stored in the processing of the storing step. , A search step of searching for an empty cluster of the information recording medium, a recording step of recording a data file in an empty cluster of the information recording medium searched in the processing of the search step, and a processing of the recording step. A first rewriting step of rewriting the FAT stored in the processing of the storage step, and, at the start of recording of the data file, writing a dummy value in a predetermined item of the directory entry stored in the processing of the storage step, and Directory entry that wrote a dummy value to the item A first update step of updating a directory entry recorded on the information recording medium by using a file, and when the recording of the data file is completed, a predetermined item of the directory entry stored in the processing of the storage step is set to true. A second update step of updating the directory entry recorded on the information recording medium by using the directory entry in which the predetermined item is corrected to a true value and the predetermined item is corrected to a true value; A second rewriting step of rewriting a directory entry recorded on the information recording medium using the FAT rewritten in the processing of the first rewriting step.
[0045]
The program of the first recording medium of the present invention includes a reading step of reading a directory entry and a FAT from an information recording medium, a storing step of storing the directory entry and the FAT read in the processing of the reading step, and a processing of the storing step. A search step of searching for an empty cluster of the information recording medium with reference to the FAT stored in the step (a), a recording step of recording a data file in an empty cluster of the information recording medium searched in the processing of the search step, and In response to the processing, a first rewriting step of rewriting the FAT stored in the storage step processing, and at the start of recording of the data file, a dummy value is added to a predetermined item of the directory entry stored in the storage step processing. And write a dummy value to the specified item A first updating step of updating the directory entry recorded on the information recording medium using the directory entry, and when the recording of the data file is completed, a predetermined item of the directory entry stored in the processing of the storage step is set to true. And a second update step of updating the directory entry recorded on the information recording medium by using the directory entry in which the predetermined item has been corrected to the true value. And a second rewriting step of rewriting a directory entry recorded on the information recording medium using the FAT rewritten in the processing of the first rewriting step.
[0046]
A first program of the present invention is stored in a reading step of reading a directory entry and a FAT from an information recording medium, a storing step of storing the directory entry and the FAT read in the processing of the reading step, and a storing step. A search step of searching for an empty cluster of the information recording medium with reference to the retrieved FAT, a recording step of recording a data file in an empty cluster of the information recording medium searched in the processing of the search step, and a processing of the recording step. A first rewriting step of rewriting the FAT stored in the processing of the storage step, and writing a dummy value to a predetermined item of the directory entry stored in the processing of the storage step at the start of recording of the data file; The directory in which a dummy value has been written to the specified item A first update step of updating the directory entry recorded on the information recording medium by using the re-entry, and when the recording of the data file is completed, a predetermined item of the directory entry stored in the processing of the storage step is set to true. And a second update step of updating the directory entry recorded on the information recording medium by using the directory entry in which the predetermined item has been corrected to the true value. And a second rewriting step of rewriting the directory entry recorded on the information recording medium using the FAT rewritten in the processing of the first rewriting step.
[0047]
A reproducing apparatus according to the present invention comprises: a reading unit that reads a directory entry and a FAT from an information recording medium; a storage unit that stores the directory entry and the FAT read by the reading unit; A check means for detecting a bad data file in the information recording medium by examining the item, and when the bad data file is detected by the detecting means, a portion corresponding to the bad data file in the FAT is corrected and a predetermined directory entry is determined. And a correction unit for correcting the value of the item.
[0048]
The predetermined item may be a file size item.
[0049]
The detecting means may detect a defective data file in the information recording medium based on whether a dummy value is written in a predetermined item of the directory entry stored by the storage means.
[0050]
A reproducing method according to the present invention includes a reading step of reading a directory entry and a FAT from an information recording medium, a storing step of storing the directory entry and the FAT read in the processing of the reading step, and a directory stored in the processing of the storing step. A detection step of detecting a defective data file in the information recording medium by examining a predetermined item of the entry, and when a defective data file is detected in the processing of the detection step, a portion corresponding to the defective data file of the FAT is corrected. And modifying a value of a predetermined item of the directory entry.
[0051]
The program of the second recording medium according to the present invention includes a reading step of reading a directory entry and a FAT from an information recording medium, a storing step of storing the directory entry and the FAT read in the processing of the reading step, and a processing of the storing step. A detecting step of detecting a defective data file in the information recording medium by checking a predetermined item of the directory entry stored in the step (a). Modifying the corresponding part and modifying the value of a predetermined item of the directory entry.
[0052]
A second program according to the present invention is a storage medium that stores a directory entry and a FAT read out from the information recording medium, a storage step that stores the directory entry and the FAT read out in the processing of the reading step, and a storage step that stores the directory entry and the FAT. Detecting a bad data file in the information recording medium by examining a predetermined item of the directory entry, and, if a bad data file is detected in the processing of the detecting step, a portion corresponding to the bad data file in the FAT. And correcting the value of a predetermined item of the directory entry by a computer.
[0053]
In the recording apparatus, method, and program according to the present invention, at the start of recording of a data file, a dummy value is written in a predetermined item of a stored directory entry, and a dummy value is written in a predetermined item. The directory entry recorded on the information recording medium is updated using the entry. Further, at the end of recording of the data file, a predetermined item of the stored directory entry is corrected to a true value, and the predetermined item is recorded on an information recording medium using the directory entry corrected to a true value. Directory entry is updated.
[0054]
In the reproducing apparatus and method and the program according to the present invention, by checking a predetermined item of the stored directory entry, a bad data file in the information recording medium is detected. The portion corresponding to the bad data file is corrected, and the value of a predetermined item of the directory entry is corrected.
[0055]
The recording device may be an independent device, or may be a block that performs recording of the recording / reproducing device.
[0056]
The playback device may be an independent device or a block that executes playback of the recording / playback device.
[0057]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, a video recording / reproducing apparatus according to an embodiment of the present invention will be described with reference to the drawings.
[0058]
The video recording / reproducing apparatus records a predetermined dummy value (for example, 0) in the file size item of the directory entry recorded on the information recording medium at the start of recording, and when the recording ends, The dummy value recorded in the file size item is updated to a true value. Therefore, if the recording is abnormally terminated due to, for example, running out of the battery before the recording is completed normally, a predetermined dummy value remains in the file size item of the directory entry. Thus, when the power is turned on, it is possible to determine whether or not the recording was abnormally terminated last time due to, for example, running out of the battery just by checking the file size item of the directory entry recorded on the information recording medium. it can.
[0059]
The video recording / reproducing apparatus restores the directory entry and the FAT when it is determined that the recording has been abnormally terminated last time. As a result, it is possible to reproduce the data recorded up to the time when the recording was abnormally terminated last time.
[0060]
FIG. 8 shows a configuration example of the video recording / reproducing apparatus. The CPU 21 controls the drive 22 via the bus 35, reads a control program stored in a recording medium 23 such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory, and reads the read control program; In response to the user's operation information input from the operation input unit 25 via the bus 35, it controls the operation start and end of each unit of the video recording / reproducing apparatus. Further, in particular, the CPU 21 outputs a cluster address together with a read command or a write command to the recording / reproducing unit 32 connected via the bus 35, and controls reading / writing of data from / to the information recording medium 33.
[0061]
The directory entry and the FAT recorded on the information recording medium 33 are copied to the volatile FAT DRAM 24. The directory entry and the FAT copied to the FAT DRAM 24 are referred to, updated, or repaired by the CPU 21.
[0062]
The operation input unit 25 includes a user interface such as an operation button, and is operated by a user (operation for setting a recording mode, operation for setting a playback mode, operation for instructing recording start, operation for instructing recording end, and the like). And outputs it to the CPU 21 via the bus 35 as operation information. The video input unit 26 includes a CCD camera or the like, captures an image of a subject, and sequentially outputs obtained video signals to a baseband processing unit 27.
[0063]
The baseband processing unit 27 performs a filtering process or the like on the video signals sequentially input from the video signal input unit 26, and outputs the video signals to the encoding unit 28. At the time of recording, the encoding unit 28 encodes, using the MPEG2 system or the like, the filtered video signal sequentially input from the baseband processing unit 27 using the MPEG2 method, and transmits the obtained data stream to the multiplexing unit 29. Output. Further, at the time of reproduction, the encoding unit 28 decodes the video data stream input from the multiplexing unit 29 and outputs the obtained video signal to the display unit 34.
[0064]
The multiplexing unit 29 multiplexes the video data stream input from the encoding unit 28 with the audio data stream input from the audio encoding unit (not shown) at the time of recording, thereby forming an MPEG2 format. A corresponding program stream (hereinafter, referred to as PS) is generated and output to the buffer unit 30. The multiplexing unit 29 acquires the PS read from the information recording medium 33 by the recording / reproducing unit 32 via the buffer unit 30 at the time of reproduction, and separates the PS into a video data stream and an audio data stream. Each is output to the encoding unit 28 and the audio encoding unit.
[0065]
The buffer unit 30 has a built-in DRAM 31. At the time of recording, every time PS data input from the multiplexing unit 29 accumulates in the DRAM 31 for one cluster, the buffer unit 30 requests the CPU 21 to write, and the writing succeeds. Until that time, the PS data stored in the DRAM 31 is held. The buffer unit 30 buffers the PS data input from the recording / reproducing unit 32 and supplies the data to the multiplexing unit 29 during reproduction.
[0066]
The recording / reproducing unit 32 reads the directory entry and the FAT recorded on the information recording medium 33 under the control of the CPU 21 and copies them to the FAT storage DRAM 24. Further, the recording / reproducing unit 32 overwrites and saves the updated directory entry and FAT on the FAT storage DRAM 24 on the information recording medium 33 under the control of the CPU 21.
[0067]
Further, at the time of recording, the recording / reproducing unit 32 reads out one cluster of PS data recorded in the DRAM 31 of the buffer 30 according to the write command input from the CPU 21, and reads the cluster data designated by the CPU 21 of the information recording medium 33. To record. Further, at the time of reproduction, the recording / reproducing unit 32 reads PS data recorded in the cluster specified by the CPU 21 of the information recording medium 33 and outputs the data to the buffer 30 according to a read command input from the CPU 21.
[0068]
The information recording medium 33 is composed of a hard disk or the like formatted based on the FAT method, and has a directory entry and a FAT recorded in a predetermined recording area.
[0069]
The display unit 34 displays an image of a video signal reproduced from the information recording medium 33 during reproduction. A control signal for each unit is transmitted from the CPU 21 to the bus 35. The video signal and the PS on which the video signal is encoded are directly communicated without passing through the bus 35.
[0070]
Next, a process when the power of the video recording / reproducing apparatus is turned on will be described with reference to a flowchart of FIG.
[0071]
In step S11, the CPU 21 determines whether or not the power is turned on, and waits until it is determined that the power is turned on. If it is determined that the power has been turned on, the process proceeds to step S12. In step S12, the CPU 21 controls the recording / reproducing unit 32 to copy the FAT recorded on the information recording medium 33 to the FAT storage DRAM 24. In step S13, the CPU 21 controls the recording / reproducing unit 32 to copy the directory entry recorded on the information recording medium 33 to the FAT storage DRAM 24.
[0072]
In step S14, the CPU 21 determines whether or not an abnormal end due to a dead battery or the like has occurred by checking the file size of each file of the directory entry copied from the information recording medium 33 to the FAT storage DRAM 24. I do. Specifically, when a predetermined dummy value is recorded in the file size of each file of the directory entry, it is determined that an abnormal end has occurred.
[0073]
If it is determined in step S14 that an abnormal end has occurred, the process proceeds to step S15. In step S15, the CPU 21 repairs the directory entry of the FAT storage DRAM 24 and the portion corresponding to the file which has been abnormally terminated in the FAT, and uses the restored directory entry and FAT to store the directory entry of the information recording medium 33 and the FAT. Overwrite. The directory entry and FAT repair processing will be described later with reference to FIGS.
[0074]
If it is determined in step S14 that the abnormal end has not occurred, the process of step S15 is skipped.
[0075]
In step S16, the CPU 21 determines whether the recording mode or the reproduction mode is set based on the operation information from the operation input unit 25. If it is determined that the recording mode has been set, the process proceeds to step S17, and the processing in the recording mode (described in detail with reference to FIG. 10) is executed.
[0076]
Conversely, when it is determined in step S16 that the reproduction mode has been set, the process proceeds to step S18, and the processing in the reproduction mode is executed. Specifically, a file to be reproduced is specified by the user, and by referring to the directory entry, the cluster address of the start cluster of the specified file is determined, and data reading is started. The cluster in which the continuation of the data is recorded is determined by referring to the data, and the data is read and read sequentially. This is the end of the description of the processing performed by the video recording / reproducing apparatus when the power is turned on.
[0077]
Next, the processing in the recording mode in step S17 will be described with reference to the flowchart in FIG.
[0078]
In step S21, the CPU 21 first refers to the FAT of the FAT storage DRAM 24 to search for an empty cluster for recording PS data. For example, when the FAT of the FAT storage DRAM 24 is in a state as shown in FIG. 11, the cluster of the cluster address CL10 is searched as a free cluster.
[0079]
In step S22, the CPU 21 determines whether or not the user has instructed to start recording based on the operation information from the operation input unit 25, and waits until it is determined that the user has instructed to start recording. If it is determined that the recording start has been instructed by the user, the process proceeds to step S23.
[0080]
In step S23, the CPU 21 records the file name, the starting cluster (the cluster address of the free cluster searched in step S21), and the dummy file size as information of the file to be recorded in the directory entry of the FAT storage DRAM 24. .
[0081]
In step S24, the CPU 21 controls the recording / reproducing unit 32 to copy (overwrite) the directory entry of the FAT storage DRAM 24 to the information recording medium 33.
[0082]
In step S25, the CPU 21 transmits a recording start command to each unit via the bus 35. In response to the recording start command, the video input unit 26 to the buffer unit 30 start their respective operations. Thus, the data of the PS input from the multiplexing unit 29 starts to accumulate in the DRAM 31 of the buffer unit 30.
[0083]
In step S26, the CPU 21 determines whether or not there is a write request from the buffer unit 30, and if it is determined that there is no write request, the process proceeds to step S27. In step S27, the CPU 21 refers to the FAT of the FAT storage DRAM 24 and searches for a free cluster for recording data next. For example, when the FAT of the FAT storage DRAM 24 is in a state as shown in FIG. 11, the cluster of the cluster address CL11 is searched as a free cluster.
[0084]
Then, the data of the PS input from the multiplexing unit 29 for one cluster accumulates in the DRAM 31 of the buffer unit 30, and the processes of steps S26 and S27 are repeated until the buffer unit 30 issues a write request to the CPU 21. It is.
[0085]
If it is determined in step S26 that there is a write request from the buffer unit 30, the process proceeds to step S28. In step S28, the CPU 21 notifies the recording / playback unit 32 of the cluster address of the free cluster together with the write command.
[0086]
In accordance with the write command input from the CPU 21, in step S 29, the recording / reproducing unit 32 reads one cluster of PS data recorded in the DRAM 31 of the buffer 30, and reads an empty cluster designated by the CPU 21 of the information recording medium 33. Write to.
[0087]
In step S30, the CPU 21 updates the FAT of the FAT storage DRAM 24 in accordance with the processing in step S29. In step S31, the CPU 21 controls the recording / reproducing unit 32 to copy (overwrite) the updated FAT in the FAT storage DRAM 24 to the information recording medium 33. Note that the process of step S31 does not necessarily have to be executed every time after the process of step S30. For example, it may be executed periodically (for example, every few seconds to several minutes).
[0088]
In step S32, the CPU 21 determines that the end of the PS data has been recorded on the information recording medium 33 in response to an instruction from the user to end the recording. If it is not determined that the end of the PS data has been recorded, the process returns to step S26, and the subsequent processes are repeated.
[0089]
Thereafter, if it is determined in step S32 that the end of the PS data has been recorded, the process proceeds to step S33. At the stage of proceeding to the processing of step S33, the FAT of the FAT storage DRAM 24 is, for example, as shown in FIG. 12, a space for the cluster in which the end of the PS data is written (in FIG. Space) is in a state where EOF is written.
[0090]
In step S33, the CPU 21 records a correct value in a file size item in which a dummy value is currently recorded in the directory entry of the FAT storage DRAM 24.
[0091]
In step S33, the CPU 21 controls the recording / reproducing unit 32 to copy (overwrite) the updated directory entry of the FAT storage DRAM 24 to the information recording medium 33. This is the end of the description of the processing in the recording mode.
[0092]
By the way, in the above-described recording mode processing, during the processing of steps S26 to S33, for example, when a situation such as running out of the battery occurs and the recording mode processing is interrupted (that is, abnormal termination) Occurs)), in the directory entry of the information recording medium 33, information of a file in which a predetermined dummy value is recorded in the file size item remains.
[0093]
Based on this information, in the processing of step S14 in FIG. 9 described above, it is determined whether or not an abnormal end has occurred.
[0094]
Next, the directory entry and FAT repair processing in step S15 in FIG. 9 will be described.
[0095]
Here, it is assumed that the recording of the FAT corresponding to the abnormally terminated file is in a state as shown in FIG. That is, according to the FAT recorded on the information recording medium 33, the cluster of the cluster address CL10 is used, and the cluster of the cluster addresses CL11, CL12, and CL13 is already used. It is assumed that information indicating a space is recorded in the corresponding space. When the FAT is in such a state, it is highly probable that the FAT has abnormally ended while data is being written to the cluster of the cluster address CL16, and thus the reliability of the data recorded in the cluster of the cluster address CL16 is low.
[0096]
There are two types of methods for repairing directory entries and FATs. The first restoration method allows the recorded data to be reproduced as much as possible, but has low data reliability. The second restoration method has a smaller amount of reproducible data than the first restoration method, but is a method with high data reliability.
[0097]
In the first restoration method, the EOF is recorded in a space of the FAT corresponding to the cluster address recorded in the last space among a series of spaces in which information used in the FAT is recorded. When the FAT shown in FIG. 13 is repaired by the first repair method, as shown in FIG. 14, the end is recorded in the space of the FAT corresponding to the cluster address CL16. As described above, when the FAT is restored, the total value of the cluster addresses CL10, CL11, CL12, CL13, and CL16 is recorded in the file size item of the directory entry.
[0098]
In the second repair method, the last space in a series of spaces in which used information is recorded in the FAT is rewritten to the end. When the FAT shown in FIG. 13 is repaired by the second repair method, the end is recorded in the space of the FAT for the cluster address CL13 as shown in FIG. As described above, when the FAT is restored, the total value of the cluster addresses CL10, CL11, CL12, and CL13 is recorded in the file size item of the directory entry.
[0099]
As described above, according to the video recording / reproducing apparatus to which the present invention is applied, even if power supply is suddenly cut off due to a battery exhaustion or the like, a file recorded up to that point can be reproduced. .
[0100]
In addition, as compared with the conventional video recording / reproducing apparatus, the processing that the video recording / reproducing apparatus to which the present invention is applied must be performed during recording includes writing a directory entry at the start of recording, and performing regular processing during recording. Only the process of copying the FAT table to the information recording medium does not impose a burden on the CPU.
[0101]
In the video recording / reproducing apparatus to which the present invention is applied, it is not necessary to record a special data file for detecting abnormal termination, so that handling of the file is not complicated.
[0102]
Further, since the information recording medium used by the video recording / reproducing apparatus to which the present invention is applied completely conforms to the normal FAT format, a general-purpose personal computer can directly access this information recording medium. However, if an abnormal termination has occurred, an error may occur if a general-purpose personal computer directly accesses the computer.
[0103]
Since the video recording / reproducing apparatus to which the present invention is applied can search for the abnormally terminated file only by checking the file size of the directory entry, this processing is immediately terminated.
[0104]
In the video recording / reproducing apparatus to which the present invention is applied, the FAT updated in the FAT storage DRAM 24 is regularly copied to the information recording medium. However, if this frequency is increased, the FAT cannot be restored after abnormal termination. Becomes smaller, but the processing at the time of recording becomes heavier. In other words, by adjusting the frequency of copying the FAT to the information recording medium periodically, tuning in accordance with the system performance (mainly the recording speed) and the resilience can be performed.
[0105]
The present invention can be applied not only to a device that records and reproduces a video signal as in the present embodiment, but also to a device that records all data on an information recording medium formatted in the FAT format. It is possible.
[0106]
Further, the present invention can be embodied as a reproducing apparatus capable of restoring a directory entry and a FAT recorded on an information recording medium.
[0107]
Incidentally, the series of processes described above can be executed by hardware, but can also be executed by software. When a series of processing is executed by software, a program constituting the software is installed in a computer (for example, CPU 21 in FIG. 8) incorporated in dedicated hardware, or by installing various programs, It is installed from a recording medium (for example, the recording medium 23 in FIG. 8) in, for example, a general-purpose personal computer that can execute various functions.
[0108]
As shown in FIG. 8, this recording medium is a magnetic disk (including a flexible disk) on which the program is recorded and an optical disk (CD-ROM (distributed) provided separately from the computer to provide the program to the user. Compact Disc-Read Only Memory, DVD (including Digital Versatile Disc), Magneto-Optical Disk (including MD (Mini Disc)), or package media including semiconductor memory, etc. It is provided with a ROM or a hard disk in which the program is recorded, which is provided to the user in a built-in state.
[0109]
In this specification, the steps of describing a program recorded on a recording medium include, in addition to processing performed in chronological order according to the described order, not only chronological processing but also parallel or individual processing. This includes the processing to be executed.
[0110]
Also, in this specification, a system refers to an entire device including a plurality of devices.
[0111]
【The invention's effect】
As described above, according to the present invention, when a situation such as running out of battery occurs during recording, information indicating that recording has been abnormally terminated can be left on the information recording medium. Further, according to the present invention, it is possible to reproduce the data stream of the video recorded by the time when the recording ends abnormally.
[Brief description of the drawings]
FIG. 1 is a diagram showing a physical recording unit and a logical recording unit of an information recording medium.
FIG. 2 is a diagram illustrating an example of a FAT.
FIG. 3 is a diagram illustrating an example of a directory entry.
FIG. 4 is a diagram showing a state where a file is divided into a plurality of clusters and recorded.
FIG. 5 is a diagram showing an example of a FAT corresponding to the state shown in FIG.
FIG. 6 is a block diagram illustrating an example of a configuration of a conventional video recording / reproducing device.
FIG. 7 is a flowchart illustrating an operation of the CPU of FIG. 6 during recording.
FIG. 8 is a block diagram illustrating a configuration example of a video recording / reproducing apparatus according to an embodiment of the present invention.
FIG. 9 is a flowchart illustrating the operation of the video recording / reproducing device of FIG. 8;
FIG. 10 is a flowchart illustrating processing in a recording mode in step S17 of FIG. 9;
FIG. 11 is a diagram illustrating an example of a FAT before recording is started.
FIG. 12 is a diagram showing an example of a FAT after recording has been completed normally.
FIG. 13 is a diagram illustrating an example of the FAT after the recording ends abnormally.
FIG. 14 is a diagram showing an example of a FAT restored by the first restoration method.
FIG. 15 is a diagram showing an example of a FAT restored by a second restoration method.
[Explanation of symbols]
Reference Signs List 21 CPU, 23 recording medium, 24 FAT DRAM, 32 recording / reproducing unit, 33 information recording medium

Claims (13)

FAT方式に従ってデータファイルを情報記録媒体に記録する記録装置において、
前記情報記録媒体からディレクトリエントリおよびFATを読み出す読み出し手段と、
前記読み出し手段によって読み出された前記ディレクトリエントリおよび前記FATを記憶する記憶手段と、
前記記憶手段によって記憶された前記FATを参照して、前記情報記録媒体の空きクラスタを検索する検索手段と、
前記検索手段によって検索された前記情報記録媒体の前記空きクラスタにデータファイルを記録する記録手段と、
前記記録手段による記録の処理に対応して、前記記憶手段によって記憶された前記FATを書き換える第1の書き換え手段と、
前記データファイルの記録開始時において、前記記憶手段によって記憶された前記ディレクトリエントリの所定の項目にダミーの値を書き込み、前記所定の項目に前記ダミーの値を書き込んだ前記ディレクトリエントリを用いて、前記情報記録媒体に記録されている前記ディレクトリエントリを更新する第1の更新手段と、
前記データファイルの記録終了時において、前記記憶手段によって記憶された前記ディレクトリエントリの所定の項目を真の値に修正して、前記所定の項目を前記真の値に修正した前記ディレクトリエントリを用いて、前記情報記録媒体に記録されている前記ディレクトリエントリを更新する第2の更新手段と、
前記データファイルの記録終了時において、前記第1の書き換え手段によって書き換えられた前記FATを用いて、前記情報記録媒体に記録されている前記ディレクトリエントリを書き換える第2の書き換え手段と
を含むことを特徴とする記録装置。
In a recording apparatus that records a data file on an information recording medium according to the FAT method,
Reading means for reading a directory entry and a FAT from the information recording medium;
Storage means for storing the directory entry and the FAT read by the reading means;
Searching means for searching for an empty cluster of the information recording medium with reference to the FAT stored by the storing means;
Recording means for recording a data file in the free cluster of the information recording medium searched by the search means,
First rewriting means for rewriting the FAT stored by the storage means in response to a recording process by the recording means;
At the start of recording of the data file, a dummy value is written in a predetermined item of the directory entry stored by the storage means, and the directory entry in which the dummy value is written in the predetermined item is used, First updating means for updating the directory entry recorded on the information recording medium;
At the end of recording of the data file, a predetermined item of the directory entry stored by the storage unit is corrected to a true value, and the directory entry obtained by correcting the predetermined item to the true value is used. Second updating means for updating the directory entry recorded on the information recording medium;
A second rewriting means for rewriting the directory entry recorded on the information recording medium by using the FAT rewritten by the first rewriting means at the end of the recording of the data file. Recording device.
前記所定の項目は、ファイルサイズの項目である
ことを特徴とする請求項1に記載の記録装置。
The recording apparatus according to claim 1, wherein the predetermined item is a file size item.
前記第2の書き換え手段は、前記データファイルの記録終了時の他、周期的にも、前記第1の書き換え手段によって書き換えられた前記記憶手段によって記憶された前記FATを用いて、前記情報記録媒体に記録されている前記ディレクトリエントリを書き換える
ことを特徴とする請求項1に記載の記録装置。
The second rewriting means uses the FAT stored by the storage means rewritten by the first rewriting means periodically at the end of the recording of the data file and periodically. 2. The recording apparatus according to claim 1, wherein the directory entry recorded in the directory is rewritten.
前記記憶手段によって記憶された前記ディレクトリエントリの所定の項目を調べることにより、前記情報記録媒体中の不良データファイルを検出する検出手段と、
前記検出手段によって前記不良データファイルが検出された場合、前記FATの前記不良データファイルに対応する部分を修正し、前記ディレクトリエントリの所定の項目の値を修正する修正手段と
をさらに含むことを特徴とする請求項1に記載の記録装置。
Detecting means for detecting a bad data file in the information recording medium by checking a predetermined item of the directory entry stored by the storage means;
When the bad data file is detected by the detecting means, a correcting means for correcting a portion of the FAT corresponding to the bad data file and correcting a value of a predetermined item of the directory entry is further included. 2. The recording apparatus according to claim 1, wherein:
FAT方式に従ってデータファイルを情報記録媒体に記録する記録装置の記録方法において、
前記情報記録媒体からディレクトリエントリおよびFATを読み出す読み出しステップと、
前記読み出しステップの処理で読み出された前記ディレクトリエントリおよび前記FATを記憶する記憶ステップと、
前記記憶ステップの処理で記憶された前記FATを参照して、前記情報記録媒体の空きクラスタを検索する検索ステップと、
前記検索ステップの処理で検索された前記情報記録媒体の前記空きクラスタにデータファイルを記録する記録ステップと、
前記記録ステップの処理に対応して、前記記憶ステップの処理で記憶された前記FATを書き換える第1の書き換えステップと、
前記データファイルの記録開始時において、前記記憶ステップの処理で記憶された前記ディレクトリエントリの所定の項目にダミーの値を書き込み、前記所定の項目に前記ダミーの値を書き込んだ前記ディレクトリエントリを用いて、前記情報記録媒体に記録されている前記ディレクトリエントリを更新する第1の更新ステップと、
前記データファイルの記録終了時において、前記記憶ステップの処理で記憶された前記ディレクトリエントリの所定の項目を真の値に修正して、前記所定の項目を前記真の値に修正した前記ディレクトリエントリを用いて、前記情報記録媒体に記録されている前記ディレクトリエントリを更新する第2の更新ステップと、
前記データファイルの記録終了時において、前記第1の書き換えステップの処理で書き換えられた前記FATを用いて、前記情報記録媒体に記録されている前記ディレクトリエントリを書き換える第2の書き換えステップと
を含むことを特徴とする記録方法。
In a recording method of a recording device that records a data file on an information recording medium according to a FAT method,
Reading a directory entry and a FAT from the information recording medium;
A storage step of storing the directory entry and the FAT read in the processing of the reading step;
A search step of searching for a free cluster of the information recording medium with reference to the FAT stored in the processing of the storage step;
A recording step of recording a data file in the free cluster of the information recording medium searched in the processing of the search step;
A first rewriting step of rewriting the FAT stored in the processing of the storage step, corresponding to the processing of the recording step;
At the start of recording of the data file, a dummy value is written in a predetermined item of the directory entry stored in the processing of the storing step, and the directory entry in which the dummy value is written in the predetermined item is used. A first updating step of updating the directory entry recorded on the information recording medium;
At the end of the recording of the data file, a predetermined item of the directory entry stored in the processing of the storing step is corrected to a true value, and the directory entry obtained by correcting the predetermined item to the true value is stored in the directory entry. Using the second update step of updating the directory entry recorded on the information recording medium,
A second rewriting step of rewriting the directory entry recorded on the information recording medium by using the FAT rewritten in the processing of the first rewriting step at the end of recording of the data file. Recording method characterized by the above-mentioned.
FAT方式に従ってデータファイルを情報記録媒体に記録する記録装置のプログラムであって、
前記情報記録媒体からディレクトリエントリおよびFATを読み出す読み出しステップと、
前記読み出しステップの処理で読み出された前記ディレクトリエントリおよび前記FATを記憶する記憶ステップと、
前記記憶ステップの処理で記憶された前記FATを参照して、前記情報記録媒体の空きクラスタを検索する検索ステップと、
前記検索ステップの処理で検索された前記情報記録媒体の前記空きクラスタにデータファイルを記録する記録ステップと、
前記記録ステップの処理に対応して、前記記憶ステップの処理で記憶された前記FATを書き換える第1の書き換えステップと、
前記データファイルの記録開始時において、前記記憶ステップの処理で記憶された前記ディレクトリエントリの所定の項目にダミーの値を書き込み、前記所定の項目に前記ダミーの値を書き込んだ前記ディレクトリエントリを用いて、前記情報記録媒体に記録されている前記ディレクトリエントリを更新する第1の更新ステップと、
前記データファイルの記録終了時において、前記記憶ステップの処理で記憶された前記ディレクトリエントリの所定の項目を真の値に修正して、前記所定の項目を前記真の値に修正した前記ディレクトリエントリを用いて、前記情報記録媒体に記録されている前記ディレクトリエントリを更新する第2の更新ステップと、
前記データファイルの記録終了時において、前記第1の書き換えステップの処理で書き換えられた前記FATを用いて、前記情報記録媒体に記録されている前記ディレクトリエントリを書き換える第2の書き換えステップと
を含むことを特徴とするコンピュータが読み取り可能なプログラムが記録されている記録媒体。
A program for a recording device for recording a data file on an information recording medium according to the FAT method,
Reading a directory entry and a FAT from the information recording medium;
A storage step of storing the directory entry and the FAT read in the processing of the reading step;
A search step of searching for a free cluster of the information recording medium with reference to the FAT stored in the processing of the storage step;
A recording step of recording a data file in the free cluster of the information recording medium searched in the processing of the search step;
A first rewriting step of rewriting the FAT stored in the processing of the storage step, corresponding to the processing of the recording step;
At the start of recording of the data file, a dummy value is written in a predetermined item of the directory entry stored in the processing of the storing step, and the directory entry in which the dummy value is written in the predetermined item is used. A first updating step of updating the directory entry recorded on the information recording medium;
At the end of the recording of the data file, a predetermined item of the directory entry stored in the processing of the storing step is corrected to a true value, and the directory entry obtained by correcting the predetermined item to the true value is stored in the directory entry. Using the second update step of updating the directory entry recorded on the information recording medium,
A second rewriting step of rewriting the directory entry recorded on the information recording medium by using the FAT rewritten in the processing of the first rewriting step at the end of recording of the data file. A recording medium on which a computer-readable program is recorded.
FAT方式に従ってデータファイルを情報記録媒体に記録する記録装置を制御するコンピュータに、
前記情報記録媒体からディレクトリエントリおよびFATを読み出す読み出しステップと、
前記読み出しステップの処理で読み出された前記ディレクトリエントリおよび前記FATを記憶する記憶ステップと、
前記記憶ステップの処理で記憶された前記FATを参照して、前記情報記録媒体の空きクラスタを検索する検索ステップと、
前記検索ステップの処理で検索された前記情報記録媒体の前記空きクラスタにデータファイルを記録する記録ステップと、
前記記録ステップの処理に対応して、前記記憶ステップの処理で記憶された前記FATを書き換える第1の書き換えステップと、
前記データファイルの記録開始時において、前記記憶ステップの処理で記憶された前記ディレクトリエントリの所定の項目にダミーの値を書き込み、前記所定の項目に前記ダミーの値を書き込んだ前記ディレクトリエントリを用いて、前記情報記録媒体に記録されている前記ディレクトリエントリを更新する第1の更新ステップと、
前記データファイルの記録終了時において、前記記憶ステップの処理で記憶された前記ディレクトリエントリの所定の項目を真の値に修正して、前記所定の項目を前記真の値に修正した前記ディレクトリエントリを用いて、前記情報記録媒体に記録されている前記ディレクトリエントリを更新する第2の更新ステップと、
前記データファイルの記録終了時において、前記第1の書き換えステップの処理で書き換えられた前記FATを用いて、前記情報記録媒体に記録されている前記ディレクトリエントリを書き換える第2の書き換えステップと
を含む処理を実行させることを特徴とするプログラム。
A computer that controls a recording device that records a data file on an information recording medium according to the FAT method;
Reading a directory entry and a FAT from the information recording medium;
A storage step of storing the directory entry and the FAT read in the processing of the reading step;
A search step of searching for a free cluster of the information recording medium with reference to the FAT stored in the processing of the storage step;
A recording step of recording a data file in the free cluster of the information recording medium searched in the processing of the search step;
A first rewriting step of rewriting the FAT stored in the processing of the storage step, corresponding to the processing of the recording step;
At the start of recording of the data file, a dummy value is written in a predetermined item of the directory entry stored in the processing of the storing step, and the directory entry in which the dummy value is written in the predetermined item is used. A first updating step of updating the directory entry recorded on the information recording medium;
At the end of the recording of the data file, a predetermined item of the directory entry stored in the processing of the storing step is corrected to a true value, and the directory entry obtained by correcting the predetermined item to the true value is stored in the directory entry. Using the second update step of updating the directory entry recorded on the information recording medium,
A second rewriting step of rewriting the directory entry recorded on the information recording medium using the FAT rewritten in the processing of the first rewriting step at the end of recording of the data file. A program characterized by executing
FAT方式に従って情報記録媒体に記録されているデータファイルを再生する再生装置において、
前記情報記録媒体からディレクトリエントリおよびFATを読み出す読み出し手段と、
前記読み出し手段によって読み出された前記ディレクトリエントリおよび前記FATを記憶する記憶手段と、
前記記憶手段によって記憶された前記ディレクトリエントリの所定の項目を調べることにより、前記情報記録媒体中の不良データファイルを検出する検出手段と、
前記検出手段によって前記不良データファイルが検出された場合、前記FATの前記不良データファイルに対応する部分を修正し、前記ディレクトリエントリの所定の項目の値を修正する修正手段と
を含むことを特徴とする再生装置。
In a reproducing apparatus for reproducing a data file recorded on an information recording medium according to the FAT method,
Reading means for reading a directory entry and a FAT from the information recording medium;
Storage means for storing the directory entry and the FAT read by the reading means;
Detecting means for detecting a bad data file in the information recording medium by checking a predetermined item of the directory entry stored by the storage means;
And correcting means for correcting a portion of the FAT corresponding to the bad data file and correcting a value of a predetermined item of the directory entry when the bad data file is detected by the detecting means. Playback device.
前記所定の項目は、ファイルサイズの項目である
ことを特徴とする請求項8に記載の再生装置。
9. The reproducing apparatus according to claim 8, wherein the predetermined item is a file size item.
前記検出手段は、前記記憶手段によって記憶された前記ディレクトリエントリの所定の項目にダミーの値が書き込まれているか否かに基づき、前記情報記録媒体中の不良データファイルを検出する
ことを特徴とする請求項8に記載の再生装置。
The detecting unit detects a defective data file in the information recording medium based on whether a dummy value is written in a predetermined item of the directory entry stored by the storage unit. The playback device according to claim 8.
FAT方式に従って情報記録媒体に記録されているデータファイルを再生する再生装置の再生方法において、
前記情報記録媒体からディレクトリエントリおよびFATを読み出す読み出しステップと、
前記読み出しステップの処理で読み出された前記ディレクトリエントリおよび前記FATを記憶する記憶ステップと、
前記記憶ステップの処理で記憶された前記ディレクトリエントリの所定の項目を調べることにより、前記情報記録媒体中の不良データファイルを検出する検出ステップと、
前記検出ステップの処理で前記不良データファイルが検出された場合、前記FATの前記不良データファイルに対応する部分を修正し、前記ディレクトリエントリの所定の項目の値を修正する修正ステップと
を含むことを特徴とする再生方法。
In a reproducing method of a reproducing apparatus for reproducing a data file recorded on an information recording medium according to a FAT method,
Reading a directory entry and a FAT from the information recording medium;
A storage step of storing the directory entry and the FAT read in the processing of the reading step;
A detecting step of detecting a bad data file in the information recording medium by checking a predetermined item of the directory entry stored in the processing of the storing step;
And correcting the portion of the FAT corresponding to the bad data file and correcting the value of a predetermined item of the directory entry when the bad data file is detected in the processing of the detecting step. Characteristic playback method.
FAT方式に従って情報記録媒体に記録されているデータファイルを再生する再生装置のプログラムであって、
前記情報記録媒体からディレクトリエントリおよびFATを読み出す読み出しステップと、
前記読み出しステップの処理で読み出された前記ディレクトリエントリおよび前記FATを記憶する記憶ステップと、
前記記憶ステップの処理で記憶された前記ディレクトリエントリの所定の項目を調べることにより、前記情報記録媒体中の不良データファイルを検出する検出ステップと、
前記検出ステップの処理で前記不良データファイルが検出された場合、前記FATの前記不良データファイルに対応する部分を修正し、前記ディレクトリエントリの所定の項目の値を修正する修正ステップと
を含むことを特徴とするコンピュータが読み取り可能なプログラムが記録されている記録媒体。
A program for a reproducing apparatus for reproducing a data file recorded on an information recording medium according to the FAT method,
Reading a directory entry and a FAT from the information recording medium;
A storage step of storing the directory entry and the FAT read in the processing of the reading step;
A detecting step of detecting a bad data file in the information recording medium by checking a predetermined item of the directory entry stored in the processing of the storing step;
And correcting the portion of the FAT corresponding to the bad data file and correcting the value of a predetermined item of the directory entry when the bad data file is detected in the processing of the detecting step. A recording medium on which a computer readable program is recorded.
FAT方式に従って情報記録媒体に記録されているデータファイルを再生する再生装置を制御するコンピュータに、
前記情報記録媒体からディレクトリエントリおよびFATを読み出す読み出しステップと、
前記読み出しステップの処理で読み出された前記ディレクトリエントリおよび前記FATを記憶する記憶ステップと、
前記記憶ステップの処理で記憶された前記ディレクトリエントリの所定の項目を調べることにより、前記情報記録媒体中の不良データファイルを検出する検出ステップと、
前記検出ステップの処理で前記不良データファイルが検出された場合、前記FATの前記不良データファイルに対応する部分を修正し、前記ディレクトリエントリの所定の項目の値を修正する修正ステップと
を含む処理を実行させることを特徴とするプログラム。
A computer that controls a reproducing apparatus that reproduces a data file recorded on an information recording medium in accordance with the FAT method,
Reading a directory entry and a FAT from the information recording medium;
A storage step of storing the directory entry and the FAT read in the processing of the reading step;
A detecting step of detecting a bad data file in the information recording medium by checking a predetermined item of the directory entry stored in the processing of the storing step;
When the defective data file is detected in the processing of the detecting step, a correcting step of correcting a portion of the FAT corresponding to the bad data file and correcting a value of a predetermined item of the directory entry. A program characterized by being executed.
JP2002236879A 2002-08-15 2002-08-15 Recording apparatus and method, reproducing apparatus and method, recording medium, and program Expired - Fee Related JP4228618B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002236879A JP4228618B2 (en) 2002-08-15 2002-08-15 Recording apparatus and method, reproducing apparatus and method, recording medium, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002236879A JP4228618B2 (en) 2002-08-15 2002-08-15 Recording apparatus and method, reproducing apparatus and method, recording medium, and program

Publications (2)

Publication Number Publication Date
JP2004078490A true JP2004078490A (en) 2004-03-11
JP4228618B2 JP4228618B2 (en) 2009-02-25

Family

ID=32020878

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002236879A Expired - Fee Related JP4228618B2 (en) 2002-08-15 2002-08-15 Recording apparatus and method, reproducing apparatus and method, recording medium, and program

Country Status (1)

Country Link
JP (1) JP4228618B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008052767A (en) * 2006-08-22 2008-03-06 Sony Corp Recording device and recording method, and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008052767A (en) * 2006-08-22 2008-03-06 Sony Corp Recording device and recording method, and program

Also Published As

Publication number Publication date
JP4228618B2 (en) 2009-02-25

Similar Documents

Publication Publication Date Title
US7676141B2 (en) Recording apparatus and recording method
JPH11242850A (en) Real time data recording system
US8270813B2 (en) Apparatus, method and computer program for processing information
JP5374254B2 (en) Image file transfer device
US7613892B2 (en) Recording device, recording method, recording medium, and program
US7234078B2 (en) Data recovery method and data recording apparatus
US20100177250A1 (en) Recording apparatus and recording method
JP2004178788A (en) Recording device and recording method
US20050259542A1 (en) Reproduction device and method, recording medium, and program
JP4228618B2 (en) Recording apparatus and method, reproducing apparatus and method, recording medium, and program
JP2005301641A (en) Video photographing device
JP2001045420A (en) Recorder, method and computer-readable storage medium
US8682141B2 (en) Video and audio recording apparatus and editing method
JP4274029B2 (en) Recording apparatus and method, reproducing apparatus and method, program recording medium, and program
KR101407166B1 (en) Method for database recovery in digital video recorder
KR100513351B1 (en) Method for file close in digital recorder
KR101879616B1 (en) Dual Indexed File System
JP2009141394A (en) Unit and method for recording control, and computer program
JP4500562B2 (en) Storage device, in-vehicle device, and control method of storage device
JP2009181603A (en) Digital information recording/reproducing system
JP2010026931A (en) Host device and data recording method for the host device
JP5822603B2 (en) Recording device
JPWO2005029492A1 (en) Recording / reproducing apparatus and recording medium
JP5111413B2 (en) Recording / reproducing apparatus and recording / reproducing method
US7821882B2 (en) Recording and reproducing apparatus and recording method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050601

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080814

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20081003

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

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

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

Free format text: PAYMENT UNTIL: 20111212

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees