JP4228618B2 - Recording apparatus and method, reproducing apparatus and method, recording medium, and program - Google Patents

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

Info

Publication number
JP4228618B2
JP4228618B2 JP2002236879A JP2002236879A JP4228618B2 JP 4228618 B2 JP4228618 B2 JP 4228618B2 JP 2002236879 A JP2002236879 A JP 2002236879A JP 2002236879 A JP2002236879 A JP 2002236879A JP 4228618 B2 JP4228618 B2 JP 4228618B2
Authority
JP
Japan
Prior art keywords
fat
directory entry
recording medium
data file
recorded
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2002236879A
Other languages
Japanese (ja)
Other versions
JP2004078490A (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.)
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)

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を用いて、情報記録媒体に記録されているFATを書き換える第2の書き換え手段と、記憶手段によって記憶されたディレクトリエントリのファイルサイズの項目にダミーの値が書き込まれているか否かに基づき、情報記録媒体中の不良データファイルを検出する検出手段と、検出手段によって不良データファイルが検出された場合、 FAT の不良データファイルに対応する部分を修正し、ディレクトリエントリのファイルサイズの項目の値を修正する修正手段とを含
【0041】
前記修正手段は、前記 FAT の前記不良データファイルに対応する、使用済の情報が記録されている一連のスペースのうち、最後のスペースに記録されているクラスタアドレスにより参照される前記 FAT のスペースに記録されている情報を、前記不良データファイルが終結することを意味するエンドマークに修正し、前記ディレクトリエントリのファイルサイズの項目の値を、前記一連のスペースそれぞれに記録されているクラスタアドレスの容量を合計した値に修正することができる。
【0042】
前記修正手段は、 FAT の不良データファイルに対応する、使用済の情報が記録されている一連のスペースのうち、最後のスペースに記録されている情報を、不良データファイルが終結することを意味するエンドマークに修正し、ディレクトリエントリのファイルサイズの項目の値を、一連のスペースから最後のスペースを除外して得られるスペースそれぞれに記録されているクラスタアドレスの容量を合計した値に修正することができる。
【0043】
前記第2の書き換え手段は、データファイルの記録終了時の他、周期的にも、第1の書き換え手段によって書き換えられた記憶手段によって記憶された FAT を用いて、情報記録媒体に記録されている FAT を書き換えるようにすることができる。
【0044】
本発明の記録方法は、情報記録媒体からディレクトリエントリおよびFATを読み出す読み出しステップと、読み出しステップの処理で読み出されたディレクトリエントリおよびFATを記憶する記憶ステップと、記憶ステップの処理で記憶されたFATを参照して、情報記録媒体の空きクラスタを検索する検索ステップと、検索ステップの処理で検索された情報記録媒体の空きクラスタにデータファイルを記録する記録ステップと、記録ステップの処理に対応して、記憶ステップの処理で記憶されたFATを書き換える第1の書き換えステップと、データファイルの記録開始時において、記憶ステップの処理で記憶されたディレクトリエントリのファイルサイズの項目にダミーの値を書き込み、ファイルサイズの項目にダミーの値を書き込んだディレクトリエントリを用いて、情報記録媒体に記録されているディレクトリエントリを更新する第1の更新ステップと、データファイルの記録終了時において、記憶ステップの処理で記憶されたディレクトリエントリのファイルサイズの項目を真の値に修正して、ファイルサイズの項目を真の値に修正したディレクトリエントリを用いて、情報記録媒体に記録されているディレクトリエントリを更新する第2の更新ステップと、データファイルの記録終了時において、第1の書き換えステップの処理で書き換えられたFATを用いて、情報記録媒体に記録されているFATを書き換える第2の書き換えステップと、記憶ステップの処理で記憶されたディレクトリエントリのファイルサイズの項目にダミーの値が書き込まれているか否かに基づき、情報記録媒体中の不良データファイルを検出する検出ステップと、検出ステップの処理で不良データファイルが検出された場合、 FAT の不良データファイルに対応する部分を修正し、ディレクトリエントリのファイルサイズの項目の値を修正する修正ステップとを含
【0045】
本発明の第1の記録媒体のプログラムは、情報記録媒体からディレクトリエントリおよびFATを読み出す読み出しステップと、読み出しステップの処理で読み出されたディレクトリエントリおよびFATを記憶する記憶ステップと、記憶ステップの処理で記憶されたFATを参照して、情報記録媒体の空きクラスタを検索する検索ステップと、検索ステップの処理で検索された情報記録媒体の空きクラスタにデータファイルを記録する記録ステップと、記録ステップの処理に対応して、記憶ステップの処理で記憶されたFATを書き換える第1の書き換えステップと、データファイルの記録開始時において、記憶ステップの処理で記憶されたディレクトリエントリのファイルサイズの項目にダミーの値を書き込み、ファイルサイズの項目にダミーの値を書き込んだディレクトリエントリを用いて、情報記録媒体に記録されているディレクトリエントリを更新する第1の更新ステップと、データファイルの記録終了時において、記憶ステップの処理で記憶されたディレクトリエントリのファイルサイズの項目を真の値に修正して、ファイルサイズの項目を真の値に修正したディレクトリエントリを用いて、情報記録媒体に記録されているディレクトリエントリを更新する第2の更新ステップと、データファイルの記録終了時において、第1の書き換えステップの処理で書き換えられたFATを用いて、情報記録媒体に記録されているFATを書き換える第2の書き換えステップと、記憶ステップの処理で記憶されたディレクトリエントリのファイルサイズの項目にダミーの値が書き込まれているか否かに基づき、情報記録媒体中の不良データファイルを検出する検出ステップと、検出ステップの処理で不良データファイルが検出された場合、 FAT の不良データファイルに対応する部分を修正し、ディレクトリエントリのファイルサイズの項目の値を修正する修正ステップとを含む処理をコンピュータに実行させる
【0046】
本発明の第1のプログラムは、情報記録媒体からディレクトリエントリおよびFATを読み出す読み出しステップと、読み出しステップの処理で読み出されたディレクトリエントリおよびFATを記憶する記憶ステップと、記憶ステップの処理で記憶されたFATを参照して、情報記録媒体の空きクラスタを検索する検索ステップと、検索ステップの処理で検索された情報記録媒体の空きクラスタにデータファイルを記録する記録ステップと、記録ステップの処理に対応して、記憶ステップの処理で記憶されたFATを書き換える第1の書き換えステップと、データファイルの記録開始時において、記憶ステップの処理で記憶されたディレクトリエントリのファイルサイズの項目にダミーの値を書き込み、ファイルサイズの項目にダミーの値を書き込んだディレクトリエントリを用いて、情報記録媒体に記録されているディレクトリエントリを更新する第1の更新ステップと、データファイルの記録終了時において、記憶ステップの処理で記憶されたディレクトリエントリのファイルサイズの項目を真の値に修正して、ファイルサイズの項目を真の値に修正したディレクトリエントリを用いて、情報記録媒体に記録されているディレクトリエントリを更新する第2の更新ステップと、データファイルの記録終了時において、第1の書き換えステップの処理で書き換えられたFATを用いて、情報記録媒体に記録されているFATを書き換える第2の書き換えステップと、記憶ステップの処理で記憶されたディレクトリエントリのファイルサイズの項目にダミーの値が書き込まれているか否かに基づき、情報記録媒体中の不良データファイルを検出する検出ステップと、検出ステップの処理で不良データファイルが検出された場合、 FAT の不良データファイルに対応する部分を修正し、ディレクトリエントリのファイルサイズの項目の値を修正する修正ステップとを含む処理をコンピュータに実行させ
【0047】
本発明の再生装置は、情報記録媒体からディレクトリエントリおよびFATを読み出す読み出し手段と、読み出し手段によって読み出されたディレクトリエントリおよびFATを記憶する記憶手段と、記憶手段によって記憶されたディレクトリエントリのファイルサイズの項目にダミーの値が書き込まれているか否かに基づき、情報記録媒体中の不良データファイルを検出する検出手段と、検出手段によって不良データファイルが検出された場合、FATの不良データファイルに対応する部分を修正し、ディレクトリエントリのファイルサイズの項目の値を修正する修正手段とを含む。
【0048】
前記修正手段は、前記 FAT の前記不良データファイルに対応する、使用済の情報が記録されている一連のスペースのうち、最後のスペースに記録されているクラスタアドレスにより参照される前記 FAT のスペースに記録されている情報を、前記不良データファイルが終結することを意味するエンドマークに修正し、前記ディレクトリエントリのファイルサイズの項目の値を、前記一連のスペースそれぞれに記録されているクラスタアドレスの容量を合計した値に修正することができる。
【0049】
前記修正手段は、 FAT の不良データファイルに対応する、使用済の情報が記録されている一連のスペースのうち、最後のスペースに記録されている情報を、不良データファイルが終結することを意味するエンドマークに修正し、ディレクトリエントリのファイルサイズの項目の値を、一連のスペースから最後のスペースを除外して得られるスペースそれぞれに記録されているクラスタアドレスの容量を合計した値に修正することができる。
【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】
ステップS3において、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]
BACKGROUND OF THE INVENTION
The present invention relates to a recording apparatus and method, a reproducing apparatus and method, a recording medium, and a program, and particularly used when a data file is recorded on or reproduced from an information recording medium according to a FAT (File Allocation Table) method. The present invention relates to a suitable recording apparatus and method, reproducing apparatus and method, recording medium, and program.
[0002]
[Prior art]
Conventionally, the FAT system is known as a format for recording and reproducing data files on an information recording medium such as a hard disk. The FAT method is supported by a personal computer equipped with an OS (Operating System) such as MS-DOS or WINDOWS (registered trademark) as a standard, so it can be said that it is 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 assigned to each sector. Access to the information recording medium is performed in units of sectors.
[0004]
In addition, 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 given a cluster address. Reading / writing of the file with respect to an information recording medium is performed per cluster.
[0005]
That is, when the size of the file to be recorded is larger than the capacity of one cluster, the file is divided and recorded in a plurality of clusters. On the other hand, when the size of the file to be recorded is less than the capacity of one cluster, only the 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) that is referred to and updated when a file is recorded or read, and a directory entry are recorded.
[0007]
Note that management information is recorded in one sector at the head of the information recording medium. The management information includes the capacity of the information recording medium, information indicating how many sectors the 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 FAT. In the FAT, spaces corresponding to the respective clusters of the information recording medium are provided, and a FAT address is assigned to each space.
[0009]
Information indicating whether the cluster of the cluster address CL0 is free or used is recorded in the space of the FAT address 0. As information indicating that the data has been used, if there is continuous data in the data recorded in the cluster having the cluster address CL0, the cluster address of the cluster in which the continuous data is recorded is recorded. If there is no continuous data in the data recorded in the cluster at the cluster address CL0, an end mark (EOF) is recorded which means that the file ends with the data recorded in the cluster at the cluster address CL0. .
[0010]
Similarly, information indicating whether the clusters of the cluster addresses CL1, 2, 3,... Are vacant or used is recorded in the spaces of the FAT addresses 1, 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 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, an empty cluster is sequentially searched by referring to FAT, and file A is stored there. Divided and recorded. In the case of FIG. 4, the files A-1 to A-6 divided into six are recorded in the clusters having the cluster addresses CL10, CL11, CL12, CL15, CL20, and CL18, respectively.
[0013]
In this case, the cluster address CL10 is recorded in the directory entry as the cluster address of the start cluster of the file A.
[0014]
In addition, as shown in FIG. 5, the cluster address CL11 is recorded in the FAT address 10 space, the cluster address CL12 is recorded in the FAT address 11 space, and the cluster address is stored in the FAT address 12 space. CL15 is recorded, cluster address CL20 is recorded in the space of FAT address 15, cluster address CL18 is recorded in the space of FAT address 20, and EOF is recorded in the space of FAT address 18.
[0015]
Thus, the FAT and directory entry updated when the file is recorded 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 of the file A (in this case, the cluster address CL10) is read, and the file A-1 is read from the cluster of the cluster address CL10. Is read out.
[0017]
Next, the FAT is referred to, information recorded in the space of the FAT address 10 (in this case, the cluster address CL11) is read, and the file A-2 is read from the cluster of the cluster address CL11. Next, information recorded in the space of the FAT address 11 (in this case, the cluster address CL12) is read, and the file A-3 is read from the cluster of the cluster address CL12.
[0018]
Thereafter, similarly, 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, and this is the EOF. Therefore, the data reading is finished. By the processing so far, the files A-1 to A-6 constituting the file A are read.
[0019]
As described so far, when reading a file, FAT is frequently referred to in order to specify a cluster to be read next. Similarly, when recording a file, the FAT is frequently referred to search for an empty cluster, and each time data is recorded in the cluster, it is used for the FAT space corresponding to the cluster in which the data is recorded. Information is recorded.
[0020]
Thus, since access to the FAT frequently occurs at the time of recording and reading of the file, in the conventional apparatus, the FAT recorded on the information recording medium is changed to the apparatus in order to speed up the processing. It is copied to the internal RAM (Random Access Memory), etc., and the copied FAT is referred to or updated.
[0021]
FIG. 6 shows an example of the configuration of such a conventional video recording apparatus.
[0022]
In this video recording apparatus, the video input unit 1 includes a CCD (Charge Coupled Device) camera and the like, shoots a subject, and sequentially outputs the obtained video signal to the 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 system and the like, and the obtained data stream is recorded and played back via the bus 3. Output to. In addition, the video compression processing unit 2 decodes data input from the recording / playback unit 4 via the bus 3 and outputs the obtained video signal to the display unit 8.
[0023]
The recording / playback unit 4 buffers the data stream input from the video compression processing unit 2 via the bus 3 and records it in a cluster at a cluster address designated by a CPU (Central Processing Unit) 6. The recording / reproducing unit 4 reads data recorded in the cluster at the cluster address designated by the CPU 6 and outputs the data to the video compression processing unit 2 via the bus 3.
[0024]
The CPU 6 outputs a read command and a cluster address of a cluster from which data is read to the recording / playback unit 4 based on the directory entry and FAT copied from the information recording medium 5 to the FAT storage RAM 7 during playback. To do. Further, during recording, the CPU 6 searches for a free cluster based on the FAT copied from the information recording medium 5 to the FAT storage RAM 7, and writes a write command and data to the recording / playback unit 4. Output the cluster address of the cluster to which Further, the CPU 6 updates the directory entry and FAT copied to the FAT storage RAM 7 during recording, and overwrites and records the directory entry and FAT in the information recording medium 5 when recording ends.
[0025]
Usually, a volatile RAM is used as the FAT storage RAM 7. Volatile RAM, for example, has the disadvantage of erasing stored data (FAT, etc.) when the power is cut off, but has the advantage of longer life than that of nonvolatile EEPROM (electrically erasable programmable ROM) 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 the flowchart in FIG. This operation is started, for example, when a recording instruction is issued from the user.
[0027]
In step S <b> 1, the CPU 6 controls the recording / reproducing unit 4 to read FAT from the information recording medium 5 and store it in the FAT storage RAM 7. In addition, the CPU 6 outputs a control signal that instructs each unit to start the recording process. In response to this 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. The video compression process 2 starts encoding the video signal input from the video input unit 1 and starts outputting the obtained data stream to the recording / playback unit 4.
[0028]
In step S 2, the CPU 6 controls the recording / reproducing unit 4 to read the directory entry from the information recording medium 5 and store it in the FAT storage RAM 7.
[0029]
In step S3, the CPU 6 refers to the FAT in the storage RAM 7 and searches for one free cluster. In step S4, the CPU 6 outputs the cluster address and write command of the free cluster searched in step S3 to the recording / reproducing unit 4. In response to this 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 of the FAT storage RAM 7. Specifically, the used information is recorded in the FAT space corresponding to the cluster in which the data is recorded.
[0031]
In step S6, the CPU 6 determines, for example, 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 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, when 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, EOF is recorded in the space corresponding to the cluster where the end of the FAT data stream is recorded, and the directory entry contains information about the file recorded this time (file name, extension, start cluster, file size, etc. ).
[0033]
In step S8, the CPU 6 controls the recording / reproducing unit 4 to overwrite the FAT and the directory entry in the FAT storage RAM 7 updated in step S7 in the information recording medium 5. Above, description of the operation | movement at the time of recording by CPU6 is complete | finished.
[0034]
[Problems to be solved by the invention]
By the way, for example, in a video recording / playback apparatus such as a video camera carried by a user, the battery runs out during recording or the battery is accidentally removed, and the power supply to the apparatus is lost. It can happen that the supply is interrupted.
[0035]
Therefore, if a situation such as battery drain occurs between the start of recording and the end of the processing in step S8 described above, the data stream up to that point is recorded in which cluster and in what order. Since the latest FAT indicating whether or not it has been erased from the volatile FAT storage RAM 7, the data stream of the video up to the time when the battery has run out is recorded on the information recording medium 5. There was a problem that it became impossible to reproduce it.
[0036]
If a nonvolatile EEPROM (electrically erasable programmable ROM) or the like is used for the FAT storage RAM 7, even if a situation such as the battery running out occurs, it is possible to prevent the latest FAT from disappearing. However, as described above, a nonvolatile EEPROM or the like has a short lifetime as compared with a volatile RAM, and is not suitable for actual use.
[0037]
Further, if a nonvolatile EEPROM or the like is used for the FAT storage RAM 7, considering that a removable disk that can be attached and detached is used as the information recording medium 5, the user can use the FAT remaining in the FAT storage RAM 7. , It may become impossible to grasp the correspondence with a plurality of removable disks.
[0038]
Therefore, it is expected that the RAM with high performance will be used for the purpose of temporarily storing the directory entry and FAT read from the information recording medium.
[0039]
The present invention has been made in view of such a situation, and even if a situation such as a battery running out occurs during recording, a video data stream recorded up to that point can be reproduced. The purpose is to do.
[0040]
[Means for Solving the Problems]
  The recording apparatus of the present invention refers to a reading means for reading a directory entry and FAT from an information recording medium, a storage means for storing the directory entry and FAT read by the reading means, and the FAT stored by the storage means. Search means for searching for free clusters in the information recording medium, recording means for recording data files in the free clusters in the information recording medium searched by the search means, and storage means corresponding to the recording processing by the recording means A first rewriting means for rewriting the stored FAT, and a directory entry stored by the storage means at the start of data file recording.file sizeWrite a dummy value in the itemfile sizeFirst update means for updating a directory entry recorded in the information recording medium using a directory entry in which a dummy value is written in the item, and a directory stored by the storage means at the end of data file recording Entryfile sizeCorrect the item to true value,file sizeUsing the directory entry in which the item is corrected to a true value, the second updating means for updating the directory entry recorded on the information recording medium, and the first rewriting means at the end of recording the data file. Recorded on an information recording medium using the recorded FATFATA second rewriting means for rewriting, Detecting means for detecting a defective data file in the information recording medium based on whether or not a dummy value is written in the file size item of the directory entry stored by the storage means, and detecting the defective data file by the detecting means If detected, FAT Correction means for correcting the part corresponding to the bad data file of the file and correcting the value of the file size item of the directory entry;IncludingMu.
[0041]
The correction means includes the FAT Of the series of spaces in which used information is recorded corresponding to the defective data file, the cluster address recorded in the last space is referred to. FAT The information recorded in the space is corrected to an end mark which means that the defective data file is terminated, and the file size item value of the directory entry is changed to the cluster recorded in each of the series of spaces. The address capacity can be corrected to the total value.
[0042]
The correcting means is FAT Of the series of spaces where used information is recorded corresponding to the bad data file, the information recorded in the last space is corrected to an end mark that means that the bad data file ends, The value of the file size item of the directory entry can be corrected to a total value of the capacity of the cluster addresses recorded in each space obtained by excluding the last space from a series of spaces.
[0043]
The second rewriting means is stored by the storage means rewritten by the first rewriting means periodically at the end of the recording of the data file. FAT Recorded on an information recording medium FAT Can be rewritten.
[0044]
  The recording method of the present invention includes a reading step for reading a directory entry and FAT from an information recording medium, a storing step for storing the directory entry and FAT read by the processing of the reading step, and a FAT stored by the processing of the storing step. Corresponding to the search step for searching for the free cluster of the information recording medium, the recording step for recording the data file in the free cluster of the information recording medium searched by the processing of the search step, and the processing of the recording step The first rewriting step for rewriting the FAT stored in the storage step processing and the directory entry stored in the storage step processing at the start of data file recordingfile sizeWrite a dummy value in the itemfile sizeThe first update step of updating the directory entry recorded on the information recording medium using the directory entry in which a dummy value is written in the item of the item, and the storage step processing at the end of recording of the data file are stored. Directory entryfile sizeCorrect the item to true value,file sizeThe second update step for updating the directory entry recorded on the information recording medium using the directory entry whose item is corrected to the true value, and the processing of the first rewrite step at the end of the data file recording Recorded on an information recording medium using FAT rewritten inFATA second rewriting step of rewritingThe detection step for detecting a defective data file in the information recording medium based on whether or not a dummy value is written in the file size item of the directory entry stored in the storage step processing, and the detection step processing If a bad data file is detected, FAT Modify the part corresponding to the bad data file and modify the file size field value of the directory entryIncludingMu.
[0045]
  The first recording medium program of the present invention includes a reading step for reading a directory entry and a FAT from an information recording medium, a storing step for 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 for searching for an empty cluster in the information recording medium with reference to the FAT stored in step (a), a recording step for recording a data file in an empty cluster in the information recording medium searched in the processing of the search step, and a recording step Corresponding to the processing, the first rewriting step for rewriting the FAT stored in the storage step processing, and the directory entry stored in the storage step processing at the start of data file recordingfile sizeWrite a dummy value in the itemfile sizeThe first update step of updating the directory entry recorded on the information recording medium using the directory entry in which a dummy value is written in the item of the item, and the storage step processing at the end of recording of the data file are stored. Directory entryfile sizeCorrect the item to true value,file sizeThe second update step for updating the directory entry recorded on the information recording medium using the directory entry whose item is corrected to the true value, and the processing of the first rewrite step at the end of the data file recording Recorded on an information recording medium using FAT rewritten inFATA second rewriting step of rewritingThe detection step for detecting a defective data file in the information recording medium based on whether or not a dummy value is written in the file size item of the directory entry stored in the storage step processing, and the detection step processing If a bad data file is detected, FAT Modify the part corresponding to the bad data file and modify the file size field value of the directory entryincludingLet the computer execute the process.
[0046]
  The first program of the present invention is stored by a reading step of reading a directory entry and FAT from an information recording medium, a storing step of storing the directory entry and FAT read by the processing of the reading step, and a processing of the storing step. Corresponding to the search step for searching for free clusters on the information recording medium with reference to the FAT, the recording step for recording data files in the free clusters on the information recording medium searched in the processing of the search step, and the processing of the recording step The first rewriting step for rewriting the FAT stored in the storage step processing and the directory entry stored in the storage step processing at the start of data file recordingfile sizeWrite a dummy value in the itemfile sizeThe first update step of updating the directory entry recorded on the information recording medium using the directory entry in which a dummy value is written in the item of the item, and the storage step processing at the end of recording of the data file are stored. Directory entryfile sizeCorrect the item to true value,file sizeThe second update step for updating the directory entry recorded on the information recording medium using the directory entry whose item is corrected to the true value, and the processing of the first rewrite step at the end of the data file recording Recorded on an information recording medium using FAT rewritten inFATA second rewriting step of rewritingThe detection step for detecting a defective data file in the information recording medium based on whether or not a dummy value is written in the file size item of the directory entry stored in the storage step processing, and the detection step processing If a bad data file is detected, FAT Modify the part corresponding to the bad data file and modify the file size field value of the directory entryCauses the computer to execute the process includingRu.
[0047]
  The reproducing apparatus of 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 directory entry stored by the storage unit.file sizeItemsBased on whether a dummy value is written toDetecting a defective data file in the information recording medium, and if a defective data file is detected by the detecting means, correct the portion corresponding to the FAT defective data file,file sizeCorrection means for correcting the value of the item.
[0048]
The correction means includes the FAT Of the series of spaces in which used information is recorded corresponding to the defective data file, the cluster address recorded in the last space is referred to. FAT The information recorded in the space is corrected to an end mark which means that the defective data file is terminated, and the file size item value of the directory entry is changed to the cluster recorded in each of the series of spaces. The address capacity can be corrected to the total value.
[0049]
The correcting means is FAT Of the series of spaces where used information is recorded corresponding to the bad data file, the information recorded in the last space is corrected to an end mark that means that the bad data file ends, The value of the file size item of the directory entry can be corrected to a total value of the capacity of the cluster addresses recorded in each space obtained by excluding the last space from a series of spaces.
[0050]
  The reproducing method of the present invention includes a reading step for reading a directory entry and a FAT from an information recording medium, a storing step for storing the directory entry and the FAT read by the processing of the reading step, and the directory stored by the processing of the storing step. Entryfile sizeItemsBased on whether a dummy value is written toDetecting a defective data file in the information recording medium, and if a defective data file is detected in the processing of the detecting step, correct the portion corresponding to the FAT defective data file andfile sizeA correction step to correct the value of the itemMu.
[0051]
  A program for a second recording medium of the present invention includes a reading step for reading a directory entry and a FAT from an information recording medium, a storing step for storing the directory entry and the FAT read in the processing of the reading step, and a processing of the storing step Of directory entries stored infile sizeItemsBased on whether a dummy value is written toDetecting a defective data file in the information recording medium, and if a defective data file is detected in the processing of the detecting step, correct the portion corresponding to the FAT defective data file andfile sizeA correction step for correcting the value of the itemLet the computer execute the process.
[0052]
  The second program of the present invention is stored by a reading step of reading a directory entry and FAT from the information recording medium, a storing step of storing the directory entry and FAT read by the processing of the reading step, and a processing of the storing step. Directory entryfile sizeItemsBased on whether a dummy value is written toDetecting a defective data file in the information recording medium, and if a defective data file is detected in the processing of the detecting step, correct the portion corresponding to the FAT defective data file andfile sizeAnd causing the computer to execute a process including a correction step for correcting the value of the item.Ru.
[0053]
  In the recording apparatus and method and the program of the present invention, at the start of data file recording, the stored directory entryfile sizeA dummy value is written infile sizeThe directory entry recorded in the information recording medium is updated using the directory entry in which a dummy value is written in the item. Also, at the end of data file recording, the stored directory entryfile sizeIs corrected to a true value,file sizeThe directory entry recorded in the information recording medium is updated using the directory entry in which the item is corrected to a true value.
[0054]
  In the playback apparatus and method and the program of the present invention, the stored directory entryfile sizeBy checking the item, a defective data file in the information recording medium is detected. If a defective data file is detected, the part corresponding to the FAT defective data file is corrected, and the directory entryfile sizeThe value of the item is corrected.
[0055]
The recording device may be an independent device or may be a block that executes recording by 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]
DETAILED DESCRIPTION OF THE INVENTION
A video recording / reproducing apparatus according to an embodiment of the present invention will be described below with reference to the drawings.
[0058]
The video recording / playback apparatus records a predetermined dummy value (for example, 0) in the file size item of the directory entry recorded in 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. Accordingly, if the recording is terminated abnormally due to the battery running out before the recording ends normally, a predetermined dummy value remains in the file size item of the directory entry. As a result, when the power is turned on, it is possible to determine whether or not the recording has ended abnormally due to the last time the battery has run out, by simply examining 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 ended abnormally last time. Thereby, it is possible to reproduce the data recorded up to the time when the previous recording was abnormally terminated.
[0060]
FIG. 8 shows a configuration example of the video recording / playback apparatus. The CPU 21 controls the drive 22 via the bus 35, reads the control program stored in the recording medium 23 such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory, In response to user operation information input from the operation input unit 25 via the bus 35, operation start and end of each unit of the video recording / reproducing apparatus is controlled. 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 with respect to the information recording medium 33.
[0061]
The directory entry and FAT recorded in 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 an operation input by the user (an operation to set the recording mode, an operation to set the playback mode, an operation to instruct the start of recording, an operation to instruct the end of recording, etc.) Is output to the CPU 21 through the bus 35 as operation information. The video input unit 26 includes a CCD camera or the like, shoots a subject, and sequentially outputs the obtained video signal to the baseband processing unit 27.
[0063]
The baseband processing unit 27 performs a filtering process on the video signals sequentially input from the video signal input unit 26 and outputs the result to the encoding unit 28. The encoding unit 28 encodes a video signal subjected to filter processing and the like sequentially input from the baseband processing unit 27 at the time of recording using the MPEG2 method and the like, and a data stream obtained is input to the multiplexing unit 29. Output. In addition, 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 during reproduction.
[0064]
The multiplexing unit 29 multiplexes the audio data stream input from the audio encoding unit (not shown) into the MPEG2 format by multiplexing the video data stream input from the encoding unit 28 during recording. The program stream (hereinafter referred to as PS) is generated and output to the buffer unit 30. Further, the multiplexing unit 29 obtains the PS read from the information recording medium 33 by the recording / reproducing unit 32 at the time of reproduction through the buffer unit 30, and separates it into a video data stream and an audio data stream, Each is output to the encoding unit 28 and the speech encoding unit.
[0065]
The buffer unit 30 has a built-in DRAM 31, and at the time of recording, every time the PS data input from the multiplexing unit 29 is accumulated in the DRAM 31 for one cluster, the buffer unit 30 requests the CPU 21 to write, and the writing succeeds. Until then, the PS data accumulated in the DRAM 31 is held. Further, the buffer unit 30 buffers PS data input from the recording / reproducing unit 32 and supplies the PS data to the multiplexing unit 29 during reproduction.
[0066]
The recording / playback unit 32 reads the directory entry and FAT recorded on the information recording medium 33 and copies them to the FAT storage DRAM 24 in accordance with control from the CPU 21. In addition, the recording / reproducing unit 32 overwrites and saves the directory entry and FAT updated on the FAT storage DRAM 24 in the information recording medium 33 in accordance with control from the CPU 21.
[0067]
Further, at the time of recording, the recording / reproducing unit 32 reads PS data for one cluster recorded in the DRAM 31 of the buffer 30 in accordance with the write command input from the CPU 21, and the cluster designated by the CPU 21 of the information recording medium 33. To record. The recording / playback unit 32 reads PS data recorded in a cluster designated by the CPU 21 of the information recording medium 33 and outputs the PS data to the buffer 30 in accordance with a read command input from the CPU 21 during playback.
[0068]
The information recording medium 33 is composed of a hard disk or the like formatted based on the FAT system, and directory entries and FAT are recorded in a predetermined recording area.
[0069]
The display unit 34 displays the video of the 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 it is encoded are communicated directly without going through the bus 35.
[0070]
Next, processing when the video recording / reproducing apparatus is turned on will be described with reference to the 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 is turned on, the process proceeds to step S12. In step S <b> 12, 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 S 13, the CPU 21 controls the recording / reproducing unit 32 to copy the directory entry recorded in the information recording medium 33 to the FAT storage DRAM 24.
[0072]
In step S14, the CPU 21 determines whether or not an abnormal termination due to battery exhaustion has occurred by examining the file size of each file of the directory entry copied from the information recording medium 33 to the FAT storage DRAM 24. To 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 termination 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 in the FAT storage DRAM 24 and the portion corresponding to the file that has been abnormally terminated in the FAT, and uses the repaired directory entry and the FAT to change the directory entry and the FAT in the information recording medium 33. Is overwritten. The directory entry and FAT repair processing will be described later with reference to FIGS.
[0074]
If it is determined in step S14 that no abnormal termination has occurred, the process of step S15 is skipped.
[0075]
In step S <b> 16, the CPU 21 determines whether the recording mode or the playback mode is set based on the operation information from the operation input unit 25. If it is determined that the recording mode is set, the process proceeds to step S17 to execute the recording mode process (described in detail with reference to FIG. 10).
[0076]
On the other hand, if it is determined in step S16 that the playback mode is set, the process proceeds to step S18 to execute the playback mode process. Specifically, the file to be played is specified by the user, the directory entry is referred to, 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 identified by referring to the data, and the data is read and read sequentially. Above, description of the process at the time of power-on by the said video recording / reproducing apparatus is complete | finished.
[0077]
Next, the recording mode process of step S17 will be described with reference to the flowchart of FIG.
[0078]
In step S21, the CPU 21 refers to the FAT in the FAT storage DRAM 24 and searches for an empty cluster for recording PS data first. For example, when the FAT of the FAT storage DRAM 24 is in the state as shown in FIG. 11, the cluster at the cluster address CL10 is searched as an empty 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 user has instructed to start recording, the process proceeds to step S23.
[0080]
In step S23, the CPU 21 records the file name, the start cluster (the cluster address of the free cluster searched in step S21), and the dummy file size as information on 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 this recording start command, the video input unit 26 to the buffer unit 30 start their respective operations. As a result, the PS data 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 S <b> 27, the CPU 21 refers to the FAT in the FAT storage DRAM 24 to search 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 at the cluster address CL11 is searched as an empty cluster.
[0084]
Then, the PS 31 input from the multiplexing unit 29 is stored in the DRAM 31 of the buffer unit 30 for one cluster, and the processes of steps S26 and S27 are repeated until there is a write request from the buffer unit 30 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 PS data for one cluster recorded in the DRAM 31 of the buffer 30, and the free 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 correspondence with the process of 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. In addition, the process of step S31 does not necessarily need to be performed 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 S <b> 32, the CPU 21 determines whether the end of recording is instructed by the user, and correspondingly, the end of the PS data is recorded on the information recording medium 33. If it is not determined that the end of 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 PS data has been recorded, the process proceeds to step S33. At the stage of proceeding to the process of step S33, the FAT of the FAT storage DRAM 24 is, for example, as shown in FIG. 12, the space for the cluster in which the end of the PS data is written (in the case of FIG. 12, the FAT address 17 In the space), EOF is written.
[0090]
In step S33, the CPU 21 records the correct value in the file size item in which the dummy value is currently recorded in the directory entry of the FAT saving DRAM 24.
[0091]
  Step S34The 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 recording mode processing.
[0092]
By the way, of the above-described recording mode processing, during the processing of steps S26 to S33, for example, a situation such as a battery running out occurs, and this recording mode processing is interrupted (that is, abnormal termination). In the case of occurrence of a file, information on a file in which a predetermined dummy value is recorded in the file size item remains in the directory entry of the information recording medium 33).
[0093]
Based on this information, in the process of step S14 of 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 FAT record 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 address CL10 is used as the next cluster address CL16, with the cluster of the cluster address CL10 at the head and the clusters of the cluster addresses CL11, CL12, and CL13 being used. It is assumed that information indicating vacancy is recorded in the corresponding space. When the FAT is in such a state, there is a high possibility of abnormal termination during the writing of data to the cluster at the cluster address CL16, so the reliability of the data recorded in the cluster at the cluster address CL16 is low.
[0096]
There are two possible methods for restoring directory entries and FAT. The first restoration method is a method in which the recorded data can be reproduced as much as possible, but the reliability of the data is low. The second restoration method is a method with high data reliability, although the amount of data that can be reproduced is smaller than that of the first restoration method.
[0097]
In the first repair method, EOF is recorded in the FAT space corresponding to the cluster address recorded in the last space among a series of spaces in which used information is recorded in the FAT. 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 FAT space for the cluster address CL16. As described above, when the FAT is repaired, the value of the total capacity 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 restoration method, the last space is rewritten to the end among a series of spaces in which used information is recorded in the FAT. When the FAT shown in FIG. 13 is restored by the second restoration method, the end is recorded in the FAT space for the cluster address CL13 as shown in FIG. As described above, when the FAT is repaired, a value obtained by adding up the capacities 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 the supply of power is suddenly interrupted due to a battery exhaustion or the like, files recorded up to that point can be reproduced. .
[0100]
Compared with the conventional video recording / playback apparatus, the processing that the video recording / playback apparatus to which the present invention is applied must perform during recording is to write a directory entry at the start of recording, and periodically during recording. In addition, since it is only a process of copying the FAT table to the information recording medium, there is no burden on the CPU.
[0101]
In the video recording / playback apparatus to which the present invention is applied, it is not necessary to record a special data file in order to detect abnormal termination, so that handling of the file does not become complicated.
[0102]
In addition, the information recording medium used by the video recording / reproducing apparatus to which the present invention is applied fully complies with the normal FAT format, so that a general-purpose personal computer can directly access the information recording medium. However, if an abnormal termination has occurred, an error may occur if a general-purpose personal computer accesses directly, but there is no problem if it has been repaired.
[0103]
Since the video recording / playback apparatus to which the present invention is applied can search for a file that has ended abnormally only by confirming the file size of the directory entry, this processing is promptly 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 periodically copied to an information recording medium. If this frequency is increased, restoration is impossible after abnormal termination. However, the processing at the time of recording becomes heavier. In other words, by adjusting the frequency with which the FAT is periodically copied to the information recording medium, tuning according to the system performance (mainly recording speed) and recoverability becomes possible.
[0105]
The present invention can be applied not only to an apparatus for recording and reproducing a video signal as in the present embodiment, but also to an apparatus for recording any data on an information recording medium formatted in the FAT system. Is possible.
[0106]
The present invention can also be implemented as a playback apparatus that can repair a directory entry and a FAT recorded in an information recording medium.
[0107]
By the way, 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 by installing a computer (for example, the CPU 21 in FIG. 8) incorporated in dedicated hardware, or various programs. For example, a general-purpose personal computer capable of executing various functions is installed from a recording medium (for example, the recording medium 23 in FIG. 8).
[0108]
As shown in FIG. 8, the recording medium is distributed to provide a program to the user separately from the computer, and includes a magnetic disk (including a flexible disk) on which the program is recorded, an optical disk (CD-ROM ( It is not only composed of package media consisting of Compact Disc-Read Only Memory (DVD), Digital Versatile Disc (DVD), magneto-optical disc (including MD (Mini Disc)), or semiconductor memory, but also pre-installed in the computer. It is composed of a ROM, a hard disk, etc., in which the program is recorded, which is provided to the user in the incorporated state.
[0109]
In the present specification, the step of describing the program recorded in the recording medium is not limited to the processing performed in time series according to the described order, but is not necessarily performed in time series, either in parallel or individually. The process to be executed is also included.
[0110]
Further, in this specification, the system represents the entire apparatus constituted by a plurality of apparatuses.
[0111]
【The invention's effect】
As described above, according to the present invention, when a situation such as the battery running out occurs during recording, information indicating that recording has ended abnormally can be left on the information recording medium. Furthermore, according to the present invention, it is possible to reproduce a video data stream recorded up to the time point 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 FAT.
FIG. 3 is a diagram illustrating an example of a directory entry.
FIG. 4 is a diagram illustrating a state in which a file is divided and recorded in a plurality of clusters.
FIG. 5 is a diagram illustrating an example of a FAT corresponding to the state illustrated in FIG. 4;
FIG. 6 is a block diagram showing an example of a configuration of a conventional video recording / playback apparatus.
7 is a flowchart for explaining an operation at the time of recording by the CPU of FIG. 6;
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 for explaining the operation of the video recording / reproducing apparatus of FIG. 8;
FIG. 10 is a flowchart illustrating a recording mode process in step S17 of FIG.
FIG. 11 is a diagram showing an example of FAT before recording is started.
FIG. 12 is a diagram showing an example of FAT after recording is normally completed.
FIG. 13 is a diagram showing an example of FAT after recording ends abnormally.
FIG. 14 is a diagram showing an example of a FAT repaired by the first repair method.
FIG. 15 is a diagram showing an example of a FAT repaired by the second repair method.
[Explanation of symbols]
21 CPU, 23 recording medium, 24 DRAM for FAT, 32 recording / reproducing unit, 33 information recording medium

Claims (13)

FAT方式に従ってデータファイルを情報記録媒体に記録する記録装置において、
前記情報記録媒体からディレクトリエントリおよびFATを読み出す読み出し手段と、
前記読み出し手段によって読み出された前記ディレクトリエントリおよび前記FATを記憶する記憶手段と、
前記記憶手段によって記憶された前記FATを参照して、前記情報記録媒体の空きクラスタを検索する検索手段と、
前記検索手段によって検索された前記情報記録媒体の前記空きクラスタにデータファイルを記録する記録手段と、
前記記録手段による記録の処理に対応して、前記記憶手段によって記憶された前記FATを書き換える第1の書き換え手段と、
前記データファイルの記録開始時において、前記記憶手段によって記憶された前記ディレクトリエントリのファイルサイズの項目にダミーの値を書き込み、前記ファイルサイズの項目に前記ダミーの値を書き込んだ前記ディレクトリエントリを用いて、前記情報記録媒体に記録されている前記ディレクトリエントリを更新する第1の更新手段と、
前記データファイルの記録終了時において、前記記憶手段によって記憶された前記ディレクトリエントリのファイルサイズの項目を真の値に修正して、前記ファイルサイズの項目を前記真の値に修正した前記ディレクトリエントリを用いて、前記情報記録媒体に記録されている前記ディレクトリエントリを更新する第2の更新手段と、
前記データファイルの記録終了時において、前記第1の書き換え手段によって書き換えられた前記FATを用いて、前記情報記録媒体に記録されている前記FATを書き換える第2の書き換え手段と
前記記憶手段によって記憶された前記ディレクトリエントリのファイルサイズの項目に前記ダミーの値が書き込まれているか否かに基づき、前記情報記録媒体中の不良データファイルを検出する検出手段と、
前記検出手段によって前記不良データファイルが検出された場合、前記 FAT の前記不良データファイルに対応する部分を修正し、前記ディレクトリエントリのファイルサイズの項目の値を修正する修正手段と
を含む録装置。
In a recording device for recording a data file on an information recording medium according to the FAT method,
Reading means for reading a directory entry and FAT from the information recording medium;
Storage means for storing the directory entry and the FAT read by the reading means;
Search means for searching for a free cluster of the information recording medium with reference to the FAT stored by the storage means;
Recording means for recording a data file in the empty cluster of the information recording medium searched by the search means;
A 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 to the file size item of the directory entry stored by the storage means, and the dummy entry is used to write the dummy value to the file size item. First update means for updating the directory entry recorded in the information recording medium;
At the end of recording the data file, the directory entry file size item stored in the storage means is corrected to a true value, and the file size item is corrected to the true value. A second updating means for updating the directory entry recorded on the information recording medium;
Second rewriting means for rewriting the FAT recorded on the information recording medium using the FAT rewritten by the first rewriting means at the end of recording of the data file ;
Detecting means for detecting a defective data file in the information recording medium based on whether or not the dummy value is written in the file size item of the directory entry stored by the storage means;
If the defective data file is detected by the detection means, to correct the portion corresponding to the FAT of the defective data file, record apparatus comprising a correction means for correcting the value of an item of the file size of the directory entry .
前記修正手段は、  The correcting means is
前記    Said FATFAT の前記不良データファイルに対応する、使用済の情報が記録されている一連のスペースのうち、最後のスペースに記録されているクラスタアドレスにより参照される前記Among the series of spaces in which used information is recorded corresponding to the defective data file, the cluster address recorded in the last space is referred to. FATFAT のスペースに記録されている情報を、前記不良データファイルが終結することを意味するエンドマークに修正し、Correct the information recorded in the space to an end mark that means that the bad data file ends,
前記ディレクトリエントリのファイルサイズの項目の値を、前記一連のスペースそれぞれに記録されているクラスタアドレスの容量を合計した値に修正する    The value of the file size item of the directory entry is corrected to a value obtained by summing the capacity of the cluster addresses recorded in each of the series of spaces.
請求項1に記載の記録装置。  The recording apparatus according to claim 1.
前記修正手段は、  The correcting means is
前記    Said FATFAT の前記不良データファイルに対応する、使用済の情報が記録されている一連のスペースのうち、最後のスペースに記録されている情報を、前記不良データファイルが終結することを意味するエンドマークに修正し、The information recorded in the last space in the series of used information recorded corresponding to the defective data file is corrected to an end mark that means that the defective data file is terminated. And
前記ディレクトリエントリのファイルサイズの項目の値を、前記一連のスペースから前記最後のスペースを除外して得られるスペースそれぞれに記録されているクラスタアドレスの容量を合計した値に修正する    The value of the file size item of the directory entry is corrected to the sum of the capacity of the cluster addresses recorded in each space obtained by excluding the last space from the series of spaces.
請求項1に記載の記録装置。  The recording apparatus according to claim 1.
前記第2の書き換え手段は、前記データファイルの記録終了時の他、周期的にも、前記第1の書き換え手段によって書き換えられた前記記憶手段によって記憶された前記FATを用いて、前記情報記録媒体に記録されている前記FATを書き換える
求項1に記載の記録装置。
The second rewriting means uses the FAT stored in the storage means rewritten by the first rewriting means periodically at the end of recording of the data file, and uses the information recording medium. Rewrite the FAT recorded in
The recording apparatus according to Motomeko 1.
FAT方式に従ってデータファイルを情報記録媒体に記録する記録装置の記録方法において、
前記情報記録媒体からディレクトリエントリおよびFATを読み出す読み出しステップと、
前記読み出しステップの処理で読み出された前記ディレクトリエントリおよび前記FATを記憶する記憶ステップと、
前記記憶ステップの処理で記憶された前記FATを参照して、前記情報記録媒体の空きクラスタを検索する検索ステップと、
前記検索ステップの処理で検索された前記情報記録媒体の前記空きクラスタにデータファイルを記録する記録ステップと、
前記記録ステップの処理に対応して、前記記憶ステップの処理で記憶された前記FATを書き換える第1の書き換えステップと、
前記データファイルの記録開始時において、前記記憶ステップの処理で記憶された前記ディレクトリエントリのファイルサイズの項目にダミーの値を書き込み、前記ファイルサイズの項目に前記ダミーの値を書き込んだ前記ディレクトリエントリを用いて、前記情報記録媒体に記録されている前記ディレクトリエントリを更新する第1の更新ステップと、
前記データファイルの記録終了時において、前記記憶ステップの処理で記憶された前記ディレクトリエントリのファイルサイズの項目を真の値に修正して、前記ファイルサイズの項目を前記真の値に修正した前記ディレクトリエントリを用いて、前記情報記録媒体に記録されている前記ディレクトリエントリを更新する第2の更新ステップと、
前記データファイルの記録終了時において、前記第1の書き換えステップの処理で書き換えられた前記FATを用いて、前記情報記録媒体に記録されている前記FATを書き換える第2の書き換えステップと
前記記憶ステップの処理で記憶された前記ディレクトリエントリのファイルサイズの項目に前記ダミーの値が書き込まれているか否かに基づき、前記情報記録媒体中の不良データファイルを検出する検出ステップと、
前記検出ステップの処理で前記不良データファイルが検出された場合、前記 FAT の前記不良データファイルに対応する部分を修正し、前記ディレクトリエントリのファイルサイズの項目の値を修正する修正ステップと
を含む録方法。
In a recording method of a recording apparatus for recording a data file on an information recording medium according to the FAT method,
A reading step of reading a directory entry and 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 empty cluster of the information recording medium searched in the processing of the searching step;
Corresponding to the processing of the recording step, a first rewriting step of rewriting the FAT stored in the storing step;
At the start of recording of the data file, a dummy value is written in the file size 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 file size item Using a first update step of updating the directory entry recorded in the information recording medium;
Wherein in the recording at the end of the data file, the item file size of the directory entry stored in the processing of the storage step to correct the true value, the directory entries of the file size modified to the true value A second update step of updating the directory entry recorded in the information recording medium using an entry;
A second rewriting step of rewriting the FAT recorded in 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 detection step of detecting a defective data file in the information recording medium based on whether or not the dummy value is written in the file size item of the directory entry stored in the processing of the storage step;
If the defective data files in the process of the detection step is detected, the serial comprising a correction step that corrects a portion corresponding to the FAT of the defective data file, to modify the value of the item file size of the directory entry Recording method.
FAT方式に従ってデータファイルを情報記録媒体に記録する記録装置を制御するコンピュータに実行させるプログラムであって、
前記情報記録媒体からディレクトリエントリおよびFATを読み出す読み出しステップと、
前記読み出しステップの処理で読み出された前記ディレクトリエントリおよび前記FATを記憶する記憶ステップと、
前記記憶ステップの処理で記憶された前記FATを参照して、前記情報記録媒体の空きクラスタを検索する検索ステップと、
前記検索ステップの処理で検索された前記情報記録媒体の前記空きクラスタにデータファイルを記録する記録ステップと、
前記記録ステップの処理に対応して、前記記憶ステップの処理で記憶された前記FATを書き換える第1の書き換えステップと、
前記データファイルの記録開始時において、前記記憶ステップの処理で記憶された前記ディレクトリエントリのファイルサイズの項目にダミーの値を書き込み、前記ファイルサイズの項目に前記ダミーの値を書き込んだ前記ディレクトリエントリを用いて、前記情報記録媒体に記録されている前記ディレクトリエントリを更新する第1の更新ステップと、
前記データファイルの記録終了時において、前記記憶ステップの処理で記憶された前記ディレクトリエントリのファイルサイズの項目を真の値に修正して、前記ファイルサイズの項目を前記真の値に修正した前記ディレクトリエントリを用いて、前記情報記録媒体に記録されている前記ディレクトリエントリを更新する第2の更新ステップと、
前記データファイルの記録終了時において、前記第1の書き換えステップの処理で書き換えられた前記FATを用いて、前記情報記録媒体に記録されている前記FATを書き換える第2の書き換えステップと
前記記憶ステップの処理で記憶された前記ディレクトリエントリのファイルサイズの項目に前記ダミーの値が書き込まれているか否かに基づき、前記情報記録媒体中の不良データファイルを検出する検出ステップと、
前記検出ステップの処理で前記不良データファイルが検出された場合、前記 FAT の前記不良データファイルに対応する部分を修正し、前記ディレクトリエントリのファイルサイズの項目の値を修正する修正ステップと
を含む処理をコンピュータに実行させるコンピュータが読み取り可能なプログラムが記録されている記録媒体。
A program that causes a computer that controls a recording device to record a data file on an information recording medium according to the FAT method,
A reading step of reading a directory entry and 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 empty cluster of the information recording medium searched in the processing of the searching step;
Corresponding to the processing of the recording step, a first rewriting step of rewriting the FAT stored in the storing step;
At the start of recording of the data file, a dummy value is written in the file size 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 file size item Using a first update step of updating the directory entry recorded in the information recording medium;
Wherein in the recording at the end of the data file, the item file size of the directory entry stored in the processing of the storage step to correct the true value, the directory entries of the file size modified to the true value A second update step of updating the directory entry recorded in the information recording medium using an entry;
A second rewriting step of rewriting the FAT recorded in 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 detection step of detecting a defective data file in the information recording medium based on whether or not the dummy value is written in the file size item of the directory entry stored in the processing of the storage step;
If the said defective data files in the process of detection step is detected, the process comprising the modified step of modifying the portion corresponding to the FAT of the defective data file, to modify the value of the item file size of the directory entry A computer-readable recording medium on which a computer-readable program is recorded.
FAT方式に従ってデータファイルを情報記録媒体に記録する記録装置を制御するコンピュータに、
前記情報記録媒体からディレクトリエントリおよびFATを読み出す読み出しステップと、
前記読み出しステップの処理で読み出された前記ディレクトリエントリおよび前記FATを記憶する記憶ステップと、
前記記憶ステップの処理で記憶された前記FATを参照して、前記情報記録媒体の空きクラスタを検索する検索ステップと、
前記検索ステップの処理で検索された前記情報記録媒体の前記空きクラスタにデータファイルを記録する記録ステップと、
前記記録ステップの処理に対応して、前記記憶ステップの処理で記憶された前記FATを書き換える第1の書き換えステップと、
前記データファイルの記録開始時において、前記記憶ステップの処理で記憶された前記ディレクトリエントリのファイルサイズの項目にダミーの値を書き込み、前記ファイルサイズの項目に前記ダミーの値を書き込んだ前記ディレクトリエントリを用いて、前記情報記録媒体に記録されている前記ディレクトリエントリを更新する第1の更新ステップと、
前記データファイルの記録終了時において、前記記憶ステップの処理で記憶された前記ディレクトリエントリのファイルサイズの項目を真の値に修正して、前記ファイルサイズの項目を前記真の値に修正した前記ディレクトリエントリを用いて、前記情報記録媒体に記録されている前記ディレクトリエントリを更新する第2の更新ステップと、
前記データファイルの記録終了時において、前記第1の書き換えステップの処理で書き換えられた前記FATを用いて、前記情報記録媒体に記録されている前記FATを書き換える第2の書き換えステップと
前記記憶ステップの処理で記憶された前記ディレクトリエントリのファイルサイズの項目に前記ダミーの値が書き込まれているか否かに基づき、前記情報記録媒体中の不良データファイルを検出する検出ステップと、
前記検出ステップの処理で前記不良データファイルが検出された場合、前記 FAT の前記不良データファイルに対応する部分を修正し、前記ディレクトリエントリのファイルサイズの項目の値を修正する修正ステップと
を含む処理を実行させるログラム。
To a computer that controls a recording device that records a data file on an information recording medium according to the FAT method,
A reading step of reading a directory entry and 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 empty cluster of the information recording medium searched in the processing of the searching step;
Corresponding to the processing of the recording step, a first rewriting step of rewriting the FAT stored in the storing step;
At the start of recording of the data file, a dummy value is written in the file size 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 file size item Using a first update step of updating the directory entry recorded in the information recording medium;
Wherein in the recording at the end of the data file, the item file size of the directory entry stored in the processing of the storage step to correct the true value, the directory entries of the file size modified to the true value A second update step of updating the directory entry recorded in the information recording medium using an entry;
A second rewriting step of rewriting the FAT recorded in 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 detection step of detecting a defective data file in the information recording medium based on whether or not the dummy value is written in the file size item of the directory entry stored in the processing of the storage step;
A process of correcting a part of the FAT corresponding to the defective data file and correcting the value of the file size item of the directory entry when the defective data file is detected in the process of the detecting step. program to be run.
FAT方式に従って情報記録媒体に記録されているデータファイルを再生する再生装置において、
前記情報記録媒体からディレクトリエントリおよびFATを読み出す読み出し手段と、
前記読み出し手段によって読み出された前記ディレクトリエントリおよび前記FATを記憶する記憶手段と、
前記記憶手段によって記憶された前記ディレクトリエントリのファイルサイズの項目にダミーの値が書き込まれているか否かに基づき、前記情報記録媒体中の不良データファイルを検出する検出手段と、
前記検出手段によって前記不良データファイルが検出された場合、前記FATの前記不良データファイルに対応する部分を修正し、前記ディレクトリエントリのファイルサイズの項目の値を修正する修正手段と
を含む生装置。
In a playback device that plays back a data file recorded on an information recording medium according to the FAT method,
Reading means for reading a directory entry and 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 defective data file in the information recording medium based on whether or not a dummy value is written in the file size item of the directory entry stored by the storage means;
If the defective data file is detected by the detection means, to correct the portion corresponding to the FAT of the defective data file, playback apparatus comprising a correction means for correcting the value of an item of the file size of the directory entry .
前記修正手段は、  The correcting means is
前記    Said FATFAT の前記不良データファイルに対応する、使用済の情報が記録されている一連のスペースのうち、最後のスペースに記録されているクラスタアドレスにより参照される前記Among the series of spaces in which used information is recorded corresponding to the defective data file, the cluster address recorded in the last space is referred to. FATFAT のスペースに記録されている情報を、前記不良データファイルが終結することを意味するエンドマークに修正し、Correct the information recorded in the space to an end mark that means that the bad data file ends,
前記ディレクトリエントリのファイルサイズの項目の値を、前記一連のスペースそれぞれに記録されているクラスタアドレスの容量を合計した値に修正する    The value of the file size item of the directory entry is corrected to a value obtained by summing the capacity of the cluster addresses recorded in each of the series of spaces.
請求項8に記載の再生装置。  The playback apparatus according to claim 8.
前記修正手段は、  The correcting means is
前記    Said FATFAT の前記不良データファイルに対応する、使用済の情報が記録されている一連のスペースのうち、最後のスペースに記録されている情報を、前記不良データファイルが終結することを意味するエンドマークに修正し、The information recorded in the last space in the series of used information recorded corresponding to the defective data file is corrected to an end mark that means that the defective data file is terminated. And
前記ディレクトリエントリのファイルサイズの項目の値を、前記一連のスペースから前記最後のスペースを除外して得られるスペースそれぞれに記録されているクラスタアドレスの容量を合計した値に修正する    The value of the file size item of the directory entry is corrected to the sum of the capacity of the cluster addresses recorded in each space obtained by excluding the last space from the series of spaces.
請求項8に記載の再生装置。  The playback apparatus according to claim 8.
FAT方式に従って情報記録媒体に記録されているデータファイルを再生する再生装置の再生方法において、
前記情報記録媒体からディレクトリエントリおよびFATを読み出す読み出しステップと、
前記読み出しステップの処理で読み出された前記ディレクトリエントリおよび前記FATを記憶する記憶ステップと、
前記記憶ステップの処理で記憶された前記ディレクトリエントリのファイルサイズの項目にダミーの値が書き込まれているか否かに基づき、前記情報記録媒体中の不良データファイルを検出する検出ステップと、
前記検出ステップの処理で前記不良データファイルが検出された場合、前記FATの前記不良データファイルに対応する部分を修正し、前記ディレクトリエントリのファイルサイズの項目の値を修正する修正ステップと
を含む生方法。
In a playback method of a playback device for playing back a data file recorded on an information recording medium according to the FAT method,
A reading step of reading a directory entry and 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;
Detecting a defective data file in the information recording medium based on whether or not a dummy value is written in the file size item of the directory entry stored in the processing of the storage step;
If the defective data files in the process of the detection step is detected, re and a correction step that corrects a portion corresponding to the FAT of the defective data file, to modify the value of the item file size of the directory entry Raw method.
FAT方式に従って情報記録媒体に記録されているデータファイルを再生する再生装置を制御するコンピュータに実行させるプログラムであって、
前記情報記録媒体からディレクトリエントリおよびFATを読み出す読み出しステップと、
前記読み出しステップの処理で読み出された前記ディレクトリエントリおよび前記FATを記憶する記憶ステップと、
前記記憶ステップの処理で記憶された前記ディレクトリエントリのファイルサイズの項目にダミーの値が書き込まれているか否かに基づき、前記情報記録媒体中の不良データファイルを検出する検出ステップと、
前記検出ステップの処理で前記不良データファイルが検出された場合、前記FATの前記不良データファイルに対応する部分を修正し、前記ディレクトリエントリのファイルサイズの項目の値を修正する修正ステップと
を含む処理をコンピュータに実行させるコンピュータが読み取り可能なプログラムが記録されている記録媒体。
A program that causes a computer that controls a playback device to play back a data file recorded on an information recording medium according to the FAT system,
A reading step of reading a directory entry and 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;
Detecting a defective data file in the information recording medium based on whether or not a dummy value is written in the file size item of the directory entry stored in the processing of the storage step;
If the said defective data files in the process of detection step is detected, the process comprising the modified step of modifying the portion corresponding to the FAT of the defective data file, to modify the value of the item file size of the directory entry A computer-readable recording medium on which a computer-readable program is recorded.
FAT方式に従って情報記録媒体に記録されているデータファイルを再生する再生装置を制御するコンピュータに、
前記情報記録媒体からディレクトリエントリおよびFATを読み出す読み出しステップと、
前記読み出しステップの処理で読み出された前記ディレクトリエントリおよび前記FATを記憶する記憶ステップと、
前記記憶ステップの処理で記憶された前記ディレクトリエントリのファイルサイズの項目にダミーの値が書き込まれているか否かに基づき、前記情報記録媒体中の不良データファイルを検出する検出ステップと、
前記検出ステップの処理で前記不良データファイルが検出された場合、前記FATの前記不良データファイルに対応する部分を修正し、前記ディレクトリエントリのファイルサイズの項目の値を修正する修正ステップと
を含む処理を実行させるログラム。
To a computer that controls a playback device that plays back a data file recorded on an information recording medium according to the FAT system,
A reading step of reading a directory entry and 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;
Detecting a defective data file in the information recording medium based on whether or not a dummy value is written in the file size item of the directory entry stored in the processing of the storage step;
A correction step that corrects a portion of the FAT corresponding to the defective data file and corrects the value of the file size item of the directory entry when the defective data file is detected in the detection step; program to be run.
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 JP2004078490A (en) 2004-03-11
JP4228618B2 true 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)

Families Citing this family (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
JP2004078490A (en) 2004-03-11

Similar Documents

Publication Publication Date Title
US7949842B2 (en) Method and apparatus for formatting storage medium
US7676141B2 (en) Recording apparatus and recording method
JP4151197B2 (en) Recording / reproducing apparatus and recording / reproducing method
US7058770B2 (en) Method and apparatus for controlling the recording of digital information, by using unit management table
EP0957486A2 (en) Method for copying, recording, and editing data onto disk recording media, and disk recording apparatus
JP4036056B2 (en) Recording apparatus and method, recording medium, and program
US7234078B2 (en) Data recovery method and data recording apparatus
JP2004178788A (en) Recording device and recording method
KR100612221B1 (en) Digital video Recorder having data back-up mechanism and the method thereof
US20050259542A1 (en) Reproduction device and method, recording medium, and program
JP4228618B2 (en) Recording apparatus and method, reproducing apparatus and method, recording medium, and program
US8682141B2 (en) Video and audio recording apparatus and editing method
US20030007783A1 (en) Recording/reproducingdisk control device and disc apparatus comprising the same
JP2001045420A (en) Recorder, method and computer-readable storage medium
JP2005301641A (en) Video photographing device
JP2001167565A (en) Digital recorder-reproducer using random accessible recording medium and recording-reproducing method of digital data
KR100513351B1 (en) Method for file close in digital recorder
JP4500562B2 (en) Storage device, in-vehicle device, and control method of storage device
JP2009181603A (en) Digital information recording/reproducing system
JP2000149464A (en) Recording/reproducing device and method therefor, and distribution medium
KR100497365B1 (en) Improved file system and recording media and file access method therefor
US7821882B2 (en) Recording and reproducing apparatus and recording method
JP2010026931A (en) Host device and data recording method for the host device
JP2009054227A (en) Data write apparatus, data write/read apparatus, imaging device, data write method, and data write/read method
KR20050011032A (en) Method for writing information file in digital recorder

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