JP2002237139A - Data recording and reproducing device - Google Patents

Data recording and reproducing device

Info

Publication number
JP2002237139A
JP2002237139A JP2001005827A JP2001005827A JP2002237139A JP 2002237139 A JP2002237139 A JP 2002237139A JP 2001005827 A JP2001005827 A JP 2001005827A JP 2001005827 A JP2001005827 A JP 2001005827A JP 2002237139 A JP2002237139 A JP 2002237139A
Authority
JP
Japan
Prior art keywords
data
data block
atom
file
registered
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2001005827A
Other languages
Japanese (ja)
Other versions
JP2002237139A5 (en
Inventor
Tomoya Shimura
智哉 紫村
Hirotoshi Iwano
裕利 岩野
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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP2001005827A priority Critical patent/JP2002237139A/en
Publication of JP2002237139A publication Critical patent/JP2002237139A/en
Publication of JP2002237139A5 publication Critical patent/JP2002237139A5/ja
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To provide a data recording and reproducing device capable of surely accessing all data blocks and accessing a data block succeeding the data block which is made unreadable. SOLUTION: The data recording and reproducing device is provided with a recording part 1 for recording a file which registers various data in the unit of the data block consisting of management information, such as data, and the size, the number and the kind of the data on a recording medium 2, a reproducing part 3 for acquiring a leading position of the succeeding data block, and reading the succeeding data block on the basis of the data size within the management information in the above data block, and a normal retrieval means 4 for retrieving the data block in the file on the basis of the kind of data within the management information in the data block read by the reproducing part 3. In the above data recording and reproducing device, the offset data block in which the offset value to the leading position of some data blocks included in the file from the arbitrary reference position in the file is registered is registered in the arbitrary position of the file.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、データブロック単
位で様々なデータが登録されたファイルを読み書きする
記録媒体用のデータ記録再生装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data recording / reproducing apparatus for a recording medium for reading / writing a file in which various data are registered in data block units.

【0002】[0002]

【従来の技術】様々なデータを記録媒体に記録、ネット
ワークを介した転送、配信などを行う場合、データその
ものとそのデータがどのようなデータであるか、または
そのデータにアクセスするために、全データ中のどこに
どのような形態で存在しているかを表す、そのデータを
管理する管理情報が必要となる。
2. Description of the Related Art When recording various data on a recording medium, transferring the data via a network, or distributing the data, the data itself and the type of the data, or the entire data in order to access the data, are required. Management information for managing the data, which indicates where and in what form the data exists, is required.

【0003】管理情報には、例えば図18に示すよう
に、記録されたデータのファイル名を管理することを目
的として、1つのEntryにファイル名を格納する場合を
考える。この場合、存在するファイルの数により、ファ
イル名を格納する管理情報の領域(データブロック)が
可変長となるため、管理情報のデータ領域を把握するこ
とが必要となる。
[0005] For example, as shown in FIG. 18, a case where a file name is stored in one entry for the purpose of managing a file name of recorded data is considered. In this case, the management information area (data block) for storing the file name has a variable length depending on the number of existing files. Therefore, it is necessary to know the management information data area.

【0004】このため、管理情報内の任意の決まった位
置(図18の例では、管理情報の先頭の位置)にファイ
ルの個数を格納することにより、ファイル名を管理して
いる情報領域を把握することが可能となる。ここで、デ
ータブロックとは、ファイル名などのいくつかのデータ
群とそれを管理するデータ数などの管理情報とを1まと
まりにしたものをいう。
Therefore, by storing the number of files at an arbitrary fixed position in the management information (the top position of the management information in the example of FIG. 18), the information area managing the file name can be grasped. It is possible to do. Here, a data block is a group of several data groups such as file names and management information such as the number of data for managing the data groups.

【0005】また、図19に示すように、複数の画像デ
ータを1つのファイルで管理する場合を考える。この
時、可変長符号化アルゴリズムを利用して画像データを
圧縮する場合、個々の画像データのデータサイズが異な
ることになる。よって、それぞれの画像データにアクセ
スするためには、各データのデータサイズを示す管理情
報が必要となる。
Further, as shown in FIG. 19, a case is considered where a plurality of image data are managed in one file. At this time, when the image data is compressed using the variable length coding algorithm, the data sizes of the individual image data are different. Therefore, in order to access each image data, management information indicating the data size of each data is required.

【0006】上記2つの例では、データ数やデータサイ
ズが可変長となっている。そのため、ファイルの任意の
位置に付加したデータの個数や、データのサイズなどの
管理情報によって、そのデータブロックの終了位置を知
ることができるため、後続するデータブロックのデータ
の先頭位置を知ることが可能である。
In the above two examples, the number of data and the data size are variable length. Therefore, the end position of the data block can be known from the management information such as the number of data added to an arbitrary position in the file and the size of the data. It is possible.

【0007】このように、データ長をデータブロックの
先頭に付加する形態をとることにより、複数のデータブ
ロックを連続して記録する場合、ファイルの先頭からデ
ータブロックのサイズだけ読み飛ばすことで、後続する
データブロックにアクセスすることが可能となる。これ
をファイル内で繰り返すことにより、ファイル内のデー
タブロックを検索することができる。
As described above, by adopting a form in which the data length is added to the beginning of a data block, when a plurality of data blocks are continuously recorded, by skipping the data block size from the beginning of the file, the subsequent Data blocks to be accessed. By repeating this in the file, a data block in the file can be searched.

【0008】AVデータのファイルフォーマットであるQu
ickTimeの場合は、図20に示すように、1つのまとま
ったデータブロックをatomという単位で表し、そのatom
では、先頭の4バイトにそのatomのバイト単位のサイ
ズ、後続する4バイトにそのatomの種類を格納するヘッ
ダをデータの先頭に付加している。
[0008] Qu is a file format of AV data.
In the case of ickTime, as shown in FIG. 20, one group of data blocks is represented by a unit called atom.
In this example, a header for storing the size of the atom in units of bytes in the first four bytes and a header for storing the type of the atom in the subsequent four bytes are added to the beginning of the data.

【0009】そのため、QuickTimeファイルの先頭の8バ
イトで最初のatomのサイズと種類を知ることができ、フ
ァイルの先頭からその最初のatomのサイズだけシーク
(atomの先頭アドレスにatomのサイズを加算したアドレ
スへ移動)することにより、後続するatomにアクセスす
ることが可能となる。
[0009] Therefore, the size and type of the first atom can be known from the first 8 bytes of the QuickTime file, and seek from the beginning of the file by the size of the first atom (adding the size of the atom to the start address of the atom) By moving to the address), it is possible to access the subsequent atom.

【0010】また、atomはファイル内に連続して記録で
きるだけでなく、図20におけるmoov atom内のtrak at
omのように、atom内にさらにいくつかのatomをもつこと
が可能であり、atomを入れ子にすることができる。
In addition to the atom, not only can the atom be continuously recorded in the file, but also the trak at in the moov atom in FIG.
Like om, it is possible to have more atoms in an atom, and atoms can be nested.

【0011】ここで、moov atomとは、いくつかのAVデ
ータが記録されているmdat atom内データの管理情報が
登録されているatomである。また、trak atomは、moov
atom内に存在し、音声や画像などを再生するために必要
な管理情報を保持しているatomである。
Here, the moov atom is an atom in which management information of data in the mdat atom in which some AV data is recorded is registered. Also, the trak atom is moov
An atom that exists in the atom and holds the management information required to play back audio and images.

【0012】ファイル内の任意のatomを検索するには、
ファイルの先頭より、atomのヘッダを読み出し、最初の
atomの種類が目的のatomであるか確認する。もし、最初
のatomの種類が目的のatomでなかった場合は、最初のat
omのデータサイズだけファイルの先頭より読み飛ばし、
後続するatomのヘッダ情報を取得する。
To search for any atom in the file,
Read the atom header from the beginning of the file,
Check if the type of atom is the desired atom. If the type of the first atom is not the desired atom, the first at
Skip the data size of om from the beginning of the file,
Fetch the header information of the following atom.

【0013】取得したatomのヘッダ情報より、atomの種
類が目的のatomであるかの確認を行う。これをファイル
の最後まで繰り返すことにより、目的のatomを検索する
ことができる。以上のアクセス方法により、QuickTime
ファイル内の任意のatomを検索することが可能となる。
From the header information of the acquired atom, it is confirmed whether the type of the atom is the target atom. By repeating this until the end of the file, the target atom can be searched. With the above access method, QuickTime
Any atom in the file can be searched.

【0014】[0014]

【発明が解決しようとする課題】しかしながら、上述し
た従来の技術においては、データの個数やサイズを表し
た管理情報によって、後続するデータの管理情報やデー
タにアクセスするが、光ディスクなどのリムーバブルな
記録媒体の場合、記録面にほこりや傷が付着したり、記
録中に加わった衝撃などにより、データが誤った箇所へ
上書きされることが考えられる。
However, in the above-mentioned prior art, management information and data of subsequent data are accessed by management information indicating the number and size of data. In the case of a medium, it is conceivable that dust or scratches adhere to the recording surface or that data is overwritten on an erroneous location due to an impact applied during recording.

【0015】このような場合、図21、図22に示すよ
うに、本来登録されているデータと異なった値が管理情
報として読み出されてしまい、後続するデータブロック
にアクセスすることがが不可能となる。
In such a case, as shown in FIGS. 21 and 22, a value different from the originally registered data is read out as management information, and it is impossible to access a subsequent data block. Becomes

【0016】図21においては、1つのデータブロック
内に持っているデータ数を表す管理情報が正しく読み出
せなくなり、このデータブロックの終了位置を間違った
箇所に示している例である。
FIG. 21 shows an example in which management information indicating the number of data items held in one data block cannot be read correctly, and the end position of this data block is indicated in an incorrect position.

【0017】これは、データブロックの先頭から登録さ
れている個数分のデータの次に、次のデータブロックが
存在し、データの個数を表す値が正しくないと、その誤
った個数分を有効なデータであるとして扱うことから、
次のデータブロックのヘッダ領域を誤認識してしまうこ
とになり、後続するデータブロックのデータを正しく読
み出せないためである。
This is because if the next data block exists next to the number of data registered from the beginning of the data block and the value representing the number of data is not correct, the wrong number is used as the valid data. Because it is treated as data,
This is because the header area of the next data block is erroneously recognized, and the data of the subsequent data block cannot be correctly read.

【0018】また、図22においては、画像データのデ
ータブロックの管理情報であるデータサイズが正しく読
み出せなくなったことにより、画像データの途中までを
データブロックの終了位置としている例である。これ
は、画像データのサイズが正しくないと、後続するデー
タの読み出し位置が正しくないため、後続するデータを
正しく読み出せないことになる。
FIG. 22 shows an example in which the data block, which is the management information of the data block of the image data, cannot be read correctly, so that the middle of the image data is set as the end position of the data block. This is because if the size of the image data is not correct, the reading position of the subsequent data is not correct, so that the subsequent data cannot be read correctly.

【0019】さらに、図23に示すように、QuickTime
ファイル内のatomのヘッダ情報が正しく読み出せない
と、上記と同様に後続するatomのヘッダやデータが正し
い値であっても、後続するatomへのアクセスが正しく行
えなくなる。
Further, as shown in FIG.
If the header information of the atom in the file cannot be read correctly, access to the subsequent atom cannot be performed correctly even if the header and data of the subsequent atom have the correct values as described above.

【0020】これは、atomのヘッダ情報であるsizeが正
しく読み出せなくなることにより、注目しているatomの
先頭アドレスから正しくないsizeだけの位置を次のatom
のヘッダ情報として扱うためである。
This is because the size which is the header information of the atom cannot be read correctly, and the position of the incorrect size from the head address of the focused atom is replaced by the next atom.
This is because it is handled as header information.

【0021】本発明は、上記課題に鑑みてなされたもの
であり、確実にAVデータの管理情報のバックアップデー
タブロックへアクセスすることを可能とし、AVデータの
記録・再生に対する不具合を回避することができるデー
タ記録再生装置を提供するものである。
[0021] The present invention has been made in view of the above-mentioned problems, and it is possible to reliably access a backup data block of AV data management information, and to avoid a problem in recording / reproducing AV data. It is intended to provide a data recording / reproducing apparatus capable of performing the above.

【0022】[0022]

【課題を解決するための手段】本願の第1の発明は、デ
ータ及び該データのサイズや個数、種類を含む管理情報
からなるデータブロック単位で、各種データが登録され
たファイルを記録媒体に記録する記録手段と、前記デー
タブロック中の管理情報内のデータサイズに基づき、後
続するデータブロックの先頭位置を得て、後続するデー
タブロックを読み出す再生手段と、前記再生手段により
読み出されたデータブロック中の管理情報内のデータ種
類に基づき、ファイル内のデータブロックを検索する検
索手段とを備えたデータ記録再生装置において、前記フ
ァイル内の任意の基準位置から該ファイル内に含まれる
いくつかのデータブロックの先頭位置へのオフセット値
が登録されたオフセットデータブロックをファイルの任
意の位置に登録したことを特徴とする。
According to a first aspect of the present invention, a file in which various types of data are registered is recorded on a recording medium in units of data blocks including data and management information including the size, number, and type of the data. Recording means for performing, a reproducing means for obtaining a starting position of a subsequent data block based on a data size in management information in the data block, and reading the subsequent data block; and a data block read by the reproducing means. And a search means for searching for a data block in the file based on the data type in the management information in the file. Register the offset data block in which the offset value to the head position of the block is registered at an arbitrary position in the file. It is characterized in.

【0023】本願の第2の発明は、前記オフセットデー
タブロックのサイズが固定長であることを特徴とする。
The second invention of the present application is characterized in that the size of the offset data block is fixed.

【0024】本願の第3の発明は、前記オフセットデー
タブロックのサイズが可変長であることを特徴とする。
According to a third aspect of the present invention, the size of the offset data block is variable.

【0025】本願の第4の発明は、前記データブロック
が、AVデータが登録されているデータブロックと、その
AVデータのデータブロックの記録・再生の形態を管理す
る管理情報が登録されているデータブロックとを含むこ
とを特徴とする。
According to a fourth aspect of the present invention, the data block includes a data block in which AV data is registered,
And a data block in which management information for managing the recording / reproducing mode of the data block of the AV data is registered.

【0026】本願の第5の発明は、前記AVデータの管理
情報が登録されているデータブロックのコピーを、バッ
クアップとしてファイル内に登録するとともに、ファイ
ル内の任意の基準位置からこの管理情報のバックアップ
のデータブロックへのオフセット値を前記オフセットデ
ータブロックへ登録することを特徴とする。
According to a fifth aspect of the present invention, a copy of a data block in which the management information of the AV data is registered is registered in a file as a backup, and the management information is backed up from an arbitrary reference position in the file. The offset value to the data block is registered in the offset data block.

【0027】本願の第6の発明は、前記再生手段により
読み出された再生データの異常を検出する異常検出手段
と、前記異常検出手段により再生データの異常が検出さ
れた時、前記オフセットデータブロックに登録されたオ
フセット値に基づき、任意のデータブロックを検索する
異常時検索手段とを備えたことを特徴とする。
According to a sixth aspect of the present invention, there is provided an abnormality detecting means for detecting an abnormality in the reproduced data read by the reproducing means, and when the abnormality detecting means detects an abnormality in the reproduced data, the offset data block. And an abnormal-time search means for searching for an arbitrary data block based on the offset value registered in (1).

【0028】本願の第7の発明は、前記異常検出手段に
よりAVデータの管理情報が登録されているオリジナルの
データブロックに異常が検出された時、前記異常時検索
手段が、前記オフセットデータブロックに登録されたオ
フセット値に基づき、該AVデータの管理情報が登録され
ているバックアップのデータブロックを検索し、この管
理情報のバックアップのデータブロックに基づいて、AV
データを再生することを特徴とする。
According to a seventh aspect of the present invention, when an abnormality is detected in the original data block in which the management information of the AV data is registered by the abnormality detecting means, the abnormal state searching means sets the offset data block to Based on the registered offset value, a backup data block in which the management information of the AV data is registered is searched, and based on the backup data block of the management information,
It is characterized by reproducing data.

【0029】本願の第8の発明は、前記AVデータの管理
情報が登録されているバックアップのデータブロックを
用いて、前記異常が検出されたAVデータの管理情報が登
録されているオリジナルのデータブロックを復旧するこ
とを特徴とする。
According to an eighth aspect of the present invention, an original data block in which the management information of the AV data in which the abnormality is detected is registered using a backup data block in which the management information of the AV data is registered. Is restored.

【0030】本願の第9の発明は、前記異常検出手段に
よりデータブロックの管理情報に異常が検出された時、
前記異常時検索手段が、前記オフセットデータブロック
に登録されたオフセット値を用いて、前記異常が検出さ
れたデータブロックの管理情報を復旧させることを特徴
とする。
According to a ninth aspect of the present invention, when an abnormality is detected in the management information of the data block by the abnormality detecting means,
The abnormality-time search means restores the management information of the data block in which the abnormality has been detected, using the offset value registered in the offset data block.

【0031】本願の第10の発明は、データ及び該デー
タのサイズや個数、種類を含む管理情報からなるデータ
ブロック単位で、各種データが登録されたファイルを記
録媒体に記録する記録手段と、前記データブロック中の
管理情報内のデータサイズに基づき、後続するデータブ
ロックの先頭位置を得て、後続するデータブロックを読
み出す再生手段と、前記再生手段により読み出されたデ
ータブロック中の管理情報内のデータ種類に基づき、フ
ァイル内のデータブロックを検索する通常検索手段とを
備えたデータ記録再生装置において、前記ファイル外に
存在するデータの所在が登録された外部参照データブロ
ックをファイルの任意の位置に登録したことを特徴とす
る。
According to a tenth aspect of the present invention, there is provided a recording means for recording, on a recording medium, a file in which various types of data are registered in units of data blocks comprising data and management information including the size, number, and type of the data, Based on the data size in the management information in the data block, a reproducing unit that obtains the head position of the subsequent data block and reads the subsequent data block; and a reproducing unit that reads out the subsequent data block in the management information in the data block read by the reproducing unit. In a data recording / reproducing apparatus including a normal search unit for searching for a data block in a file based on a data type, an external reference data block in which the location of data existing outside the file is registered is located at an arbitrary position in the file. It is characterized by being registered.

【0032】本願の第11の発明は、前記データブロッ
クが、AVデータが登録されているデータブロックと、そ
のAVデータのデータブロックの記録・再生の形態を管理
する管理情報が登録されているデータブロックとを含む
ことを特徴とする。
According to an eleventh aspect of the present invention, the data block includes a data block in which AV data is registered, and a data block in which management information for managing a recording / reproducing mode of the data block of the AV data is registered. And a block.

【0033】本願の第12の発明は、前記AVデータの管
理情報が登録されているデータブロックのコピーを、バ
ックアップとしてファイル外に登録するとともに、この
管理情報のバックアップのデータブロックの所在を前記
外部参照データブロックへ登録することを特徴とする。
According to a twelfth aspect of the present invention, a copy of a data block in which the management information of the AV data is registered is registered outside the file as a backup, and the location of the backup data block of the management information is stored in the external storage. It is characterized in that it is registered in a reference data block.

【0034】[0034]

【発明の実施の形態】以下、本発明のデータ記録再生装
置の実施形態について、図1乃至図17とともに詳細に
説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, embodiments of the data recording / reproducing apparatus of the present invention will be described in detail with reference to FIGS.

【0035】図1は本実施形態のデータ記録再生装置に
おける概略構成を示すブロック図である。図1におい
て、1は記録媒体2へデータの書き込みを行う記録部、
2は記録媒体、3は記録媒体2からデータの読み込みを
行う再生部、4はデータブロックの管理情報内のデータ
ブロックサイズより後続のデータブロックの位置を求
め、データブロックの種類により、任意のデータブロッ
クを検索する検索手段である。
FIG. 1 is a block diagram showing a schematic configuration of the data recording / reproducing apparatus of the present embodiment. In FIG. 1, reference numeral 1 denotes a recording unit that writes data to a recording medium 2,
2 is a recording medium, 3 is a reproducing unit that reads data from the recording medium 2, and 4 is a position of a succeeding data block based on the data block size in the management information of the data block. This is a search means for searching for a block.

【0036】5は再生データが正しく再生されているか
を検出する異常検出手段、6はオフセットデータブロッ
クのオフセット値を用いて、データブロックの種類によ
り、任意のデータブロックを検索する異常時検索手段で
ある。
Reference numeral 5 denotes abnormality detecting means for detecting whether reproduced data is reproduced correctly, and reference numeral 6 denotes abnormality detecting means for searching an arbitrary data block according to the type of the data block using the offset value of the offset data block. is there.

【0037】上記のように構成されたデータ記録再生装
置においては、入力された記録データをデータブロック
単位で記録するため、ファイルをオープンし、記録部1
を通して記録媒体2に記録する。このとき、データブロ
ックの管理情報のサイズとして任意の値を格納した上で
データブロックを記録し、データブロックを記録し終え
てデータブロックサイズが確定してからデータブロック
の管理情報の位置へ移動し、実際のデータブロックサイ
ズを記録する。
In the data recording / reproducing apparatus configured as described above, in order to record the input recording data in data block units, a file is opened and the recording unit 1 is opened.
Through the recording medium 2. At this time, after storing an arbitrary value as the size of the data block management information, the data block is recorded, and after the data block is recorded and the data block size is determined, the data block is moved to the position of the data block management information. Record the actual data block size.

【0038】ファイル内に任意のデータブロックを記録
し終えたら、ファイルをクローズして、記録媒体2への
記録を終了する。また、記録データのデータブロックの
サイズがメモリ上のサイズからあらかじめ把握できてい
る場合は、初めからデータブロックサイズを正しく付加
して記録することにより、図1における記録部1のフィ
ードバック処理は不要となる。
When the recording of an arbitrary data block in the file is completed, the file is closed and the recording on the recording medium 2 is completed. When the size of the data block of the recording data can be known in advance from the size in the memory, the data block size is correctly added from the beginning and recording is performed, so that the feedback processing of the recording unit 1 in FIG. 1 is unnecessary. Become.

【0039】次に、記録媒体2へ記録したファイルを読
み出す場合は、再生部3によりファイルをオープンし、
データブロックを読み出す。通常検索手段4で読み出し
たいファイル内のデータブロックを検索する。
Next, when reading a file recorded on the recording medium 2, the file is opened by the reproducing unit 3, and
Read the data block. The normal search means 4 searches for a data block in the file to be read.

【0040】ここでは、AVデータを再生するために、AV
データの再生に関する管理情報データブロックを検索
し、見つかった場合は、その管理情報データブロックか
らAVデータが格納されているデータブロックを参照し、
AVデータを再生する。
Here, in order to reproduce AV data,
Search for the management information data block related to data reproduction, and if found, refer to the data block where AV data is stored from the management information data block,
Play AV data.

【0041】このとき、管理情報データブロックの登録
情報にデータ再生時間やAVデータのデータブロックへの
オフセット値が、AVデータのデータブロックサイズを越
えている場合など矛盾が生じるときや、ユーザーによる
再生データの不具合の要求があった場合は、異常検出手
段5により再生データの異常検出が行われる。
At this time, when inconsistency arises in the registration information of the management information data block, such as when the data reproduction time or the offset value to the AV data data block exceeds the data block size of the AV data, or when the reproduction by the user is performed. When there is a request for a data defect, the abnormality detection means 5 detects an abnormality in the reproduced data.

【0042】そして、異常時検索手段6において、ファ
イル内の任意の基準位置からファイル内のデータブロッ
クへのオフセット値が格納されているオフセットデータ
ブロックより、そのオフセット値を利用して、AVデータ
の管理情報のバックアップデータブロックへアクセス
し、データの再生を行う。
The abnormal time search means 6 uses the offset value from the offset data block in which the offset value from an arbitrary reference position in the file to the data block in the file is stored, and uses the offset value. Access the backup data block of the management information and reproduce the data.

【0043】この場合においても、異常検出手段5で再
生データが異常であると検出された場合はエラーとな
る。また、通常検索手段4の検索において、AVデータの
再生に関する管理情報データブロックや他のデータブロ
ックが見つからなかった場合は、異常時検出手段6によ
り前述のオフセットデータブロックを用いて、目的のデ
ータブロックを検索する。
Also in this case, an error occurs if the abnormality detection means 5 detects that the reproduced data is abnormal. If the management information data block relating to the reproduction of AV data and other data blocks are not found in the search by the normal search means 4, the abnormal time detection means 6 uses the offset data block to generate the target data block. Search for.

【0044】このとき、AVデータの再生に関する管理情
報データブロックを検索した場合は、その管理情報デー
タブロックからAVデータが格納されているデータブロッ
クを参照し、AVデータを再生する。そして、前述と同じ
ように、異常時検出手段5で再生データの異常検出を行
い、不具合が生じた場合は、再度図異常時検索手段6に
おいて、オフセットデータブロックからAVデータの管理
情報のバックアップデータブロックへアクセスし、デー
タ再生を行う。
At this time, when a management information data block relating to the reproduction of AV data is searched, the data block in which the AV data is stored is referred to from the management information data block to reproduce the AV data. Then, in the same manner as described above, the abnormality detection means 5 detects an abnormality in the reproduced data. If a problem occurs, the abnormality detection means 6 again searches the offset data block for the backup data of the AV data management information from the offset data block. Access the block and perform data reproduction.

【0045】さらに、この場合においても、異常検出手
段5で再生データの異常が検出された場合はエラーとな
る。そして、記録媒体2からの読み出しが終了したらフ
ァイルをクローズする。
Further, also in this case, when the abnormality detecting means 5 detects an abnormality in the reproduced data, an error occurs. When the reading from the recording medium 2 is completed, the file is closed.

【0046】ここで、ファイル内にある任意のデータブ
ロックを検索する処理を、図2のフローチャートととも
に説明する。まず、ステップS80において、ファイル
の先頭位置へ移動し、次にステップS81において、目
的のデータブロックをファイル内の位置まで検索するた
め、現在の位置が目的データブロックの位置であるかの
判定を行う。
Here, the process of searching for an arbitrary data block in a file will be described with reference to the flowchart of FIG. First, in step S80, the file is moved to the head position of the file. Then, in step S81, the target data block is searched for up to the position in the file. Therefore, it is determined whether the current position is the position of the target data block. .

【0047】ステップS81での判定の結果、現在の位
置が目的データブロックであった場合は、ステップS8
2へ進み、目的データブロックにアクセスを行い終了す
る。ステップS81で現在の位置が目的データブロック
でなかった場合は、ステップS83へ進み、現在のデー
タブロックの先頭に格納されているデータブロックサイ
ズ分だけ移動し、次のデータブロックの先頭位置へ移動
する。
If the result of determination in step S81 is that the current position is the target data block, step S8
Proceed to 2 to access the target data block and end. If it is determined in step S81 that the current position is not the target data block, the process proceeds to step S83, where the data block is moved by the size of the data block stored at the head of the current data block, and is moved to the head position of the next data block. .

【0048】そして、ステップS84において、移動し
た位置がファイル終了位置であるかの判定を行う。ファ
イルの終了位置かの判定には、ファイルの終了位置を表
すEOFを検出することにより、現在のファイル位置がフ
ァイルの最後かを判定する。
Then, in step S84, it is determined whether the moved position is the file end position. To determine the end position of the file, the EOF indicating the end position of the file is detected to determine whether the current file position is the end of the file.

【0049】ファイルの終了位置に到達した場合は、目
的データブロックを検索できなかったということにな
り、ステップS85において、エラーを出力し終了す
る。移動した位置がファイルの終了位置でなかった場合
は、ステップS81に戻り、現在の位置が目的データブ
ロックの位置であるかの判定を行い、ファイルの終了位
置へ到達するか、目的データブロックが見つかるまで、
これらの処理を繰り返す。
If the end position of the file has been reached, it means that the target data block could not be retrieved, and in step S85, an error is output and the processing ends. If the moved position is not the end position of the file, the process returns to step S81 to determine whether the current position is the position of the target data block, and reaches the end position of the file or finds the target data block. Until,
These processes are repeated.

【0050】光ディスクを用いたカムコーダなどリムー
バブルな記録媒体を用いて、記録・再生を行う場合は、
記録面に付着したほこりや傷により、記録されたデータ
を正しく読み出せなくなる場合がある。また、PCのよう
な据え置き型の機器の場合は、常に固定して設置されて
いるために、PC本体に対し強い衝撃が加わる可能性は低
いと考えられるが、前記カムコーダのようなポータブル
機器の場合は、手に保持し、走りながら撮影を行った
り、撮影中に物にぶつかることや不注意で機器を落とす
などの強い衝撃が加わる可能性が据え置き型機器に比べ
高い。
When recording / reproducing using a removable recording medium such as a camcorder using an optical disk,
The recorded data may not be read correctly due to dust or scratches attached to the recording surface. In the case of a stationary device such as a PC, since it is always fixed, it is considered that there is a low possibility that a strong impact is applied to the PC body. In this case, there is a higher possibility that a strong impact such as holding a hand and shooting while running, hitting an object during shooting or inadvertently dropping the device will be applied compared to a stationary device.

【0051】ポータブル機器において、このような使用
環境中では、記録中に機器に衝撃が加わることで書き込
みレーザーが振動によりずれ、別のデータ領域に誤って
記録してしまうことにより、そのデータ領域が間違った
データで上書きされることとなり、そのデータ領域を読
み出す場合に、正しい値が読み出せなくなる。
In a portable device, in such a use environment, when a shock is applied to the device during recording, the writing laser shifts due to vibration, and the data is mistakenly recorded in another data region. It will be overwritten with wrong data, and when reading the data area, the correct value cannot be read.

【0052】このように、データブロックの先頭にある
データサイズが読み取り不能となったり、正しい値が読
み出せない場合、上記検索手段4を用いた検索では、こ
のデータブロックを含め、後続するデータブロックを正
しく読み出せなくなる。
As described above, when the data size at the head of the data block becomes unreadable or the correct value cannot be read, the search using the search means 4 includes the following data block including this data block. Cannot be read correctly.

【0053】これは、図21、図22とともに上述した
ように、正しいデータブロックサイズが読み出せないこ
とにより、正しく読み出せないデータブロックの先頭ア
ドレスから間違ったデータサイズだけ移動したファイル
位置を次のデータブロックの先頭位置と誤認識するため
である。
As described above with reference to FIGS. 21 and 22, since the correct data block size cannot be read, the file position moved by the wrong data size from the head address of the data block that cannot be read correctly is moved to the next file position. This is because it is erroneously recognized as the head position of the data block.

【0054】さらに、その正しく読み出せないデータブ
ロック内や次のデータブロック内のファイル位置を次の
データブロックのサイズ部分とみなし、間違った次のデ
ータサイズだけ読み飛ばすことから、後続する正しいデ
ータブロックが読み出せなくなる。
Further, the file position in the data block that cannot be read correctly or in the next data block is regarded as the size portion of the next data block, and the reading of the wrong next data size is skipped. Cannot be read.

【0055】上述のデータブロックの先頭にあるデータ
サイズが正しく読み出せない場合に、後続するデータブ
ロックに対しても正しく読み出せないことを回避するた
め、本実施形態においては、図3、図4に示すように、
ファイルの最後にファイル内の基準となる位置(ファイ
ルの先頭や最後など)から各々のデータブロックの先頭
位置へのオフセット値を格納するデータブロック(以
下、オフセットデータブロック)を用意する。
In the present embodiment, if the data size at the head of the above-mentioned data block cannot be read correctly, it is possible to prevent the subsequent data block from being read correctly. As shown in
At the end of the file, a data block (hereinafter, offset data block) for storing an offset value from a reference position in the file (the beginning or end of the file) to the beginning position of each data block is prepared.

【0056】ここでは、このオフセットデータブロック
をファイルの最後に設けている。これは、データサイズ
などの管理情報が正しく読み出せないと、前述の検索手
段4ではオフセットデータブロック自体も検索できなく
なるので、確実にオフセットデータブロックを検索する
ためである。
Here, this offset data block is provided at the end of the file. This is because if the management information such as the data size cannot be read correctly, the above-mentioned search means 4 cannot search the offset data block itself, so that the offset data block is surely searched.

【0057】すなわち、ファイルシステムの機能である
シークを用いて、ファイルの終了位置へシークする方法
や、ファイル終了フラグであるEOFを検出するまで、フ
ァイル内データを次々に読み出していく方法などを用い
ることにより、ファイルの最後へ移動することは容易で
あるので、データサイズ情報が正しく読み出せないこと
に関係なく確実にオフセットデータブロックにアクセス
することが可能となる。
That is, a method of seeking to the end position of a file using a seek function of the file system, a method of reading data in a file one after another until EOF which is a file end flag is detected, and the like are used. This makes it easy to move to the end of the file, so that the offset data block can be reliably accessed regardless of whether the data size information cannot be read correctly.

【0058】尚、前述の説明では、オフセットデータブ
ロックをファイルの最後に登録することとしているが、
ファイルの先頭にオフセットデータブロックを設ける場
合は、記録媒体2にデータブロックを保存する際、あら
かじめ仮の値の入ったオフセットデータブロックを記録
し、その後にデータブロックを保存する。
In the above description, the offset data block is registered at the end of the file.
When an offset data block is provided at the beginning of the file, when storing the data block on the recording medium 2, an offset data block containing a temporary value is recorded in advance, and then the data block is stored.

【0059】そして、各々のデータブロックへのオフセ
ット情報が確定した段階でオフセットデータブロックを
更新するという方法を用いることにより、ファイルの先
頭にオフセットデータブロックを設けることが可能とな
る。このように、オフセットデータブロックは必ずしも
ファイルの最後に配置する必要はなく、ファイルの先頭
など、任意の決まった位置に設けても、ファイルの先頭
と最後との両方に設けても良い。
Then, by using a method of updating the offset data block when the offset information for each data block is determined, the offset data block can be provided at the head of the file. As described above, the offset data block does not necessarily need to be placed at the end of the file, and may be provided at an arbitrary fixed position such as the beginning of the file, or may be provided at both the beginning and end of the file.

【0060】次に、図3、図4に示すように、オフセッ
トデータブロックをファイルの最後に設定した場合のデ
ータブロックへのアクセス方法を、図5のフローチャー
トとともに説明する。
Next, a method of accessing a data block when an offset data block is set at the end of a file as shown in FIGS. 3 and 4 will be described with reference to the flowchart of FIG.

【0061】まず、ステップS90において、ファイル
の任意の基準位置からファイル内のデータブロックへの
オフセット値を格納したファイルの最後にあるオフセッ
トデータブロックへアクセスを行うため、ファイルの終
了位置へ移動し、ファイルの任意の基準位置からオフセ
ットデータブロックの先頭位置へのオフセット値が格納
されているオフセットデータブロックの最後のフィール
ド情報を取得する。
First, in step S90, in order to access the offset data block at the end of the file storing the offset value from the arbitrary reference position of the file to the data block in the file, the file is moved to the end position of the file. The last field information of the offset data block in which the offset value from the arbitrary reference position of the file to the start position of the offset data block is stored is obtained.

【0062】ここで、ファイルの終了位置へ移動するに
は、ファイルシステムの機能であるシークを用いて、フ
ァイルの終了位置へシークする方法と、ファイル終了フ
ラグであるEOFを検出するまで、ファイル内データを次
々に読み出していく方法とが考えられる。
Here, in order to move to the end position of the file, a method of seeking to the end position of the file using the seek function of the file system and the method of seeking the end of the file until the end of file EOF is detected. One possible method is to read data one after another.

【0063】次に、ステップS91において、任意の基
準位置から取得したオフセット値の位置へ移動すること
により、オフセットデータブロックの先頭へ移動し、ヘ
ッダ情報を読み飛ばす。そして、ステップS92におい
て、オフセットデータブロックの現在のフィールドが読
み出したいデータのオフセット値のフィールドであるか
の判定を行う。
Next, in step S91, by moving from an arbitrary reference position to the position of the acquired offset value, the head moves to the head of the offset data block and skips the header information. Then, in step S92, it is determined whether the current field of the offset data block is the field of the offset value of the data to be read.

【0064】現在のフィールドが読み出したいデータの
オフセット値のフィールドであった場合は、ステップS
93へ進み、そのオフセット値を取得する。そして、ス
テップS94において、ファイルの任意の基準位置から
取得したオフセット値への位置へ移動し、ステップS9
5で読み出したいデータブロックへアクセスする。
If the current field is the field of the offset value of the data to be read, step S
Proceed to 93 to acquire the offset value. Then, in step S94, the file is moved from an arbitrary reference position to a position corresponding to the acquired offset value, and step S9 is performed.
In step 5, the data block to be read is accessed.

【0065】また、ステップS92での判定結果が現在
のフィールドが読み出したいデータのオフセット値のフ
ィールドでなかった場合は、ステップS96へ進み、次
のフィールド情報へ移動する。
If the result of determination in step S92 is that the current field is not the field of the offset value of the data to be read, the flow advances to step S96 to move to the next field information.

【0066】そして、ステップS97にて、ステップS
96で移動した位置がファイルの終わりを示すEOFを検
出した場合は、ステップS98へ進み、読み出したいデ
ータブロックへのオフセット値が格納されていなかった
ことになり、エラーを出力し終了する。
Then, in step S97, step S
If the position moved at 96 detects EOF indicating the end of the file, the process proceeds to step S98, where the offset value to the data block to be read has not been stored, an error is output, and the process ends.

【0067】ステップS97で現在のファイル位置がフ
ァイルの終了でなかった場合には、ステップS92へ戻
り、読み出したいデータブロックへのオフセットのフィ
ールドが見つかるかファイルの終了位置へ到達するま
で、上述の処理を繰り返す。
If the current file position is not the end of the file in step S97, the flow returns to step S92, and the above-described processing is performed until the field of the offset to the data block to be read is found or the end position of the file is reached. repeat.

【0068】次に、AVファイルフォーマットの1つであ
るQuickTimeファイルにおいて、ファイル内の任意のato
mを検索する処理の流れを、図6のフローチャートを用
いて説明する。まず、ステップS20において、現在の
ファイル位置をファイルの先頭に設定し、ステップS2
1において、現在のファイル位置から8バイトのデータ
であるatomヘッダを読み出す。
Next, in the QuickTime file which is one of the AV file formats, any
The processing flow for searching for m will be described with reference to the flowchart in FIG. First, in step S20, the current file position is set at the beginning of the file, and in step S2
In step 1, the atom header, which is 8-byte data, is read from the current file position.

【0069】そして、ステップS22において、読み出
したヘッダの後半部の4バイトであるatomの種類が目的
のatomであるか判定する。例えば、moov atom内に存在
し、音声や画像などを再生するために必要な情報を保持
しているTrack header atomを検索する場合は、読み出
したヘッダの後半部4バイトが"tkhd"のASCIIコードで
あるかを判定する。
Then, in step S22, it is determined whether the type of the atom of the latter 4 bytes of the read header is the target atom. For example, when searching for a Track header atom that exists in a moov atom and holds information necessary for reproducing voices and images, the ASCII code of the second half of the read header is "tkhd". Is determined.

【0070】もし、目的のatomであった場合は、ステッ
プS26へ進み、目的atomデータへアクセスを行い終了
する。しかし、目的のatomでなかった場合は、ステップ
S23へ進み、ステップS21で取得した8バイトの前
半部4バイトであるatomのデータサイズだけ現在の位置
から読み飛ばし、読み飛ばし後の位置を現在のファイル
位置に設定する。
If it is the target atom, the process proceeds to step S26, accesses the target atom data, and ends. However, if the target atom is not the target atom, the process proceeds to step S23, where the data is skipped from the current position by the data size of the atom, which is the first 4 bytes of the 8 bytes acquired in step S21, and the position after the skip is replaced with the current position. Set to file position.

【0071】例えば、ファイルシステムの機能を利用し
て、atomのデータサイズ分だけ現在位置からシークする
ことで移動が可能となる。ステップS24において、ス
テップS23で読み飛ばした結果、ファイルの終了位置
を表すEOFを検出することにより、現在のファイル位置
がファイルの最後かを判定する。
For example, it is possible to move by seeking from the current position by the size of the atom data using the function of the file system. In step S24, as a result of skipping in step S23, EOF indicating the end position of the file is detected to determine whether the current file position is the end of the file.

【0072】現在のファイル位置がファイルの最後であ
った場合は、目的のatomが検索ファイル内に見つからな
かったこととなり、ステップS25により、エラー処理
を行い検索を終了する。
If the current file position is at the end of the file, it means that the target atom has not been found in the search file, error processing is performed in step S25, and the search ends.

【0073】現在のファイル位置がファイルの最後でな
かった場合は、ステップS21へ戻り、現在のファイル
位置から8バイトのデータであるatomヘッダを読み出
す。そして、ステップS22に進み、ファイルの最後ま
での範囲を目的のatomが見つかるまで上述の検索処理を
繰り返す。
If the current file position is not at the end of the file, the flow returns to step S21 to read an atom header, which is 8-byte data, from the current file position. Then, the process proceeds to step S22, and the above-described search processing is repeated until the target atom is found in the range up to the end of the file.

【0074】前述したカムコーダの例のような場合に、
atomのヘッダ部分の読み取り不能が生じると、上記検索
手段4では、正しくないヘッダ情報を読み込んだことに
なり、それ以降のatomへのアクセスが不可能となる。
In the case of the above-described example of the camcorder,
If the header portion of the atom becomes unreadable, the search means 4 reads incorrect header information and cannot access the atom thereafter.

【0075】これは、図19とともに上述したように、
moov atomのsize情報が正しく読み出せない場合、moov
atomの途中のファイル位置を終了位置とみなし、正しく
ないmoov atomの終了位置の次の8バイトをいくつかのA
Vデータが記録されているmdat atomのヘッダ領域と把握
するためである。
This is, as described above with reference to FIG.
If the size information of the moov atom cannot be read correctly, moov
Regarding the file position in the middle of the atom as the end position, the next 8 bytes after the end position of the incorrect moov atom
This is for grasping the header area of the mdat atom where V data is recorded.

【0076】そのため、mdat atomのヘッダ情報が正し
い値としても、moov atomからmdat atomへアクセスに行
くことが不可能であるため、後続するatomへアクセスが
できない。
Therefore, even if the header information of the mdat atom has a correct value, it is impossible to access the mdat atom from the moov atom, so that the subsequent atom cannot be accessed.

【0077】このように、正しくないatomのヘッダ情報
を読み込んだ場合、正しいatomのsizeとtypeが読み出せ
なくなることにより、atomの種類を誤認識し、さらにat
omの先頭アドレスから間違ったsizeだけ移動したファイ
ル位置を次のatomのヘッダ情報と誤認識することから、
そのatom内や次のatom内である正しいヘッダ情報でない
ファイル位置を次のatomのヘッダ部分とみなし、次のat
omの種類についても誤認識を行い、間違った次のatomの
サイズだけシークするために、後続するatomデータが問
題ない場合であっても、読み出せなくなるわけである。
As described above, when the incorrect atom header information is read, the correct size and type of the atom cannot be read.
Since the file position moved by the wrong size from the head address of om is misrecognized as the header information of the next atom,
A file position that is not correct header information in that atom or in the next atom is regarded as the header part of the next atom, and the next at
Since the type of om is also erroneously recognized and seek is performed only for the wrong size of the next atom, the data cannot be read even if there is no problem with the subsequent atom data.

【0078】読み出したatomのヘッダ情報が正しい値で
ないことを検出する方法について説明する。これは、図
6におけるステップS22の直前に、図7に示すフロー
チャートの検出処理を付加することにより、ヘッダ情報
が正しい値であるという検出を付加した検索処理が可能
となる。
A method for detecting that the header information of the read atom is not a correct value will be described. By adding the detection processing of the flowchart shown in FIG. 7 immediately before step S22 in FIG. 6, it is possible to perform a search processing in which the detection that the header information is a correct value is added.

【0079】取得したatomヘッダ情報の先頭4バイトで
あるatomのsizeが現在のQuickTimeファイルサイズより
大きいか、または負の値など明らかに正しくない値を示
している場合は、正しいatomのsizeとみなさずヘッダが
正しい値でないと判断するため、図7におけるステップ
S50において、atom sizeがヘッダ情報領域サイズで
ある8より大きく、ファイルサイズより小さいかの判定
を行っている。
If the size of the atom, which is the first 4 bytes of the acquired atom header information, is larger than the current QuickTime file size or indicates a clearly incorrect value such as a negative value, it is regarded as the correct atom size. In order to determine that the header is not a correct value, in step S50 in FIG. 7, it is determined whether the atom size is larger than 8 which is the header information area size and smaller than the file size.

【0080】atom sizeがこの範囲外の値であった場合
は、ステップS52へ進みエラー処理を行い、検索を終
了する。この場合は、後述するatomの復旧処理を行うこ
とにより、atomデータの復旧およびアクセスが可能とな
る。atomのsizeが正しい値を示しているならば、ステッ
プS51に進み、後続する4バイトであるatomのtypeが
アルファベット、数字、記号などのASCIIコードである
4バイトの文字列であるかの判定を行う。
If the atom size is out of this range, the flow advances to step S52 to perform error processing, and the search ends. In this case, it is possible to recover and access the atom data by performing the later-described atom recovery processing. If the size of the atom indicates a correct value, the process proceeds to step S51, where it is determined whether the type of the subsequent 4 bytes atom is a 4-byte character string that is an ASCII code such as alphabets, numbers, and symbols. Do.

【0081】この条件を満たさない場合は、ヘッダ情報
が正しく読み出せないと判断し、ステップS52へ進み
エラー処理を行い、検索を終了する。ステップS51の
条件を満たし、正しいatomのtypeであった場合は、正し
いatomのヘッダ情報が取得できたこととなり、図6にお
けるステップS22以降の処理を行うことにより、目的
のatomを検索する。
If this condition is not satisfied, it is determined that the header information cannot be read correctly, the flow advances to step S52 to perform error processing, and the search ends. If the condition of step S51 is satisfied and the type of the atom is correct, the header information of the correct atom has been obtained, and the target atom is searched for by performing the processing of step S22 and subsequent steps in FIG.

【0082】以上のように、正しく読み出せないヘッダ
情報を含んでいるQuickTimeファイルを再生した場合、a
tom検索において必要なatomが見つからなかったり、再
生に必要な正しいデータを取得できないことから、再生
システムがエラーを発生するか、再生している映像や音
声に不具合が生じ、ユーザーが正しくないAVデータを
再生していると判断することになる。この場合は、ユー
ザーが後述する復旧処理を選択することにより、正しく
読み出せないatomを復旧させることが可能となる。
As described above, when a QuickTime file containing header information that cannot be read correctly is reproduced, a
Since the required atom cannot be found in the tom search or the correct data required for playback cannot be obtained, the playback system generates an error or the playback video or audio malfunctions, causing the user to incorrect AV data. Is being reproduced. In this case, it is possible to recover an atom that cannot be read correctly by selecting a recovery process described later by the user.

【0083】以上のように、atomのヘッダ情報が正しく
読み出せない場合、そのQuickTimeファイルを正しく再
生できなくなるという不具合が生じる。これを回避する
方法について説明する。
As described above, if the atom header information cannot be read correctly, the QuickTime file cannot be reproduced correctly. A method for avoiding this will be described.

【0084】再生を行うシステムが前述の検出手段4に
より、atomヘッダのsizeを正しく読み出せないと検出し
た場合は、目的のatomのtypeをQuickTimeファイルの先
頭より、1バイトづつ検索していき、目的のatomのtype
のASCIIコードがファイル内で見つかるまで検索すると
いう手法が考えられる。
When the reproducing system detects that the size of the atom header cannot be read correctly by the detection means 4, the type of the target atom is searched one byte at a time from the beginning of the QuickTime file. Desired atom type
You can search until the ASCII code is found in the file.

【0085】しかしながら、これはQuickTimeファイル
を1バイトづつ比較するため、検索速度が遅く効率が悪
い。また、必ずしも目的のatomのヘッダ情報中のtypeを
検索できるとは限らず、偶然にatom中のデータ領域に存
在するatom typeと同じASCIIコードを持つデータを検索
してしまうことが考えられる。さらに、atomヘッダ情報
のtypeが正しく読み出せない場合は、検索する手段を失
う。
However, since the QuickTime files are compared byte by byte, the search speed is low and the efficiency is low. In addition, it is not always possible to search for the type in the header information of the target atom, and it is possible to accidentally search for data having the same ASCII code as the atom type existing in the data area in the atom. Furthermore, if the type of the atom header information cannot be read correctly, the search means is lost.

【0086】このため、本実施形態においては、以下に
説明する手法をQuickTimeファイルに適用する。QuickTi
meファイルを記録媒体に記録するときに、ファイルの最
後に前述のオフセットデータブロックに相当するoffset
atomと呼ばれる管理情報を記録する。
Therefore, in the present embodiment, the method described below is applied to a QuickTime file. QuickTi
When recording a me file on a recording medium, offset corresponding to the aforementioned offset data block is added at the end of the file.
Records management information called an atom.

【0087】このoffset atomは、ファイル内の基準ア
ドレス(ファイルの先頭、最後やoffset atomの先頭ア
ドレスなどファイル内の任意の箇所で良い)から想定す
るatomの先頭アドレスへのオフセット値を、図8に示す
ように管理している。
The offset atom represents the offset value from the reference address in the file (which may be any position in the file such as the beginning and end of the file or the beginning address of the offset atom) to the starting address of the atom as shown in FIG. It is managed as shown in

【0088】図8の例では、オフセット値を管理するat
omとして、offset atomのsize、offset atomの種類であ
るtype、moov atomへのオフセット値、mdat atomへのオ
フセット値、moov atomのコピーであるバックアップmoo
v atomへのオフセット値の順番により、4バイト単位で
格納するものである。
In the example of FIG. 8, at is used to manage the offset value.
As om, the size of the offset atom, the type that is the type of the offset atom, the offset value to the moov atom, the offset value to the mdat atom, and the backup moo that is a copy of the moov atom
v Stored in 4-byte units according to the order of the offset values to the atom.

【0089】図8のoffset atomのヘッダ情報をぬかし
た1つ目のフィールドは、ファイル内の基準アドレスか
らmoov atomの先頭アドレスまでのオフセット値を格納
する。2つ目のフィールドには、同様にmdat atomまで
のオフセット値を格納する。さらに、3つ目のフィール
ドには、バックアップmoov atomまでのオフセット値を
格納する。
The first field in the header information of the offset atom in FIG. 8 stores the offset value from the reference address in the file to the start address of the moov atom. Similarly, the second field stores the offset value up to the mdat atom. Further, an offset value to the backup moov atom is stored in the third field.

【0090】尚、オフセット値を管理するatomは、これ
らのatomに限定されるものではなく、必要に応じて設定
することが可能である。バックアップmoov atomについ
ての詳細な説明は後述する。
The atoms for managing the offset value are not limited to these atoms, but can be set as needed. A detailed description of the backup moov atom will be described later.

【0091】atomのヘッダ情報であるsizeが正しく読み
出せない場合は、それ以降のatomの検索が不可能である
というのは、前述した通りであるが、ヘッダ情報が正し
く読み出せないと前述の検索手段4では、offset atom
自体も検索することができなくなる。
If the size of the atom header information cannot be read correctly, it is impossible to search for further atoms as described above. In search means 4, offset atom
It will no longer be searchable.

【0092】そのため、確実にoffset atomを検索する
ために、offset atomをQuickTimeファイルの最後のatom
として登録する。これは、ファイルの最後の位置へ移動
することが容易であることから、ヘッダ情報が正しく読
み出せないことに関係なく、確実にoffset atomにアク
セス可能とするためである。
Therefore, in order to surely search for an offset atom, the offset atom is assigned to the last atom of the QuickTime file.
Register as This is because it is easy to move to the last position of the file, so that the offset atom can be reliably accessed regardless of the fact that the header information cannot be read correctly.

【0093】また、前述の説明では、offset atomをフ
ァイルの最後に設けるとしているが、ファイルの先頭に
offset atomを設ける場合は、記録媒体2にatomデータ
を保存する際、あらかじめ仮の値の入ったoffset atom
を記録し、その後にatomデータ(moovやmdat atomな
ど)を保存する。
In the above description, the offset atom is provided at the end of the file.
When an offset atom is provided, when storing the atom data in the recording medium 2, an offset atom containing a temporary value in advance is stored.
And then save the atom data (moov, mdat atom, etc.).

【0094】そして、各々のatomデータへのオフセット
情報が確定した段階でoffset atomを更新するという方
法を用いることにより、ファイルの先頭にoffset atom
を設けることが可能となる。このように、offset atom
は必ずしもファイルの最後におく必要はなく、ファイル
の先頭など任意の決まった位置に設けたり、ファイルの
先頭と最後との両方に設けても良い。
Then, by using a method of updating the offset atom when the offset information to each atom data is determined, the offset atom is added to the head of the file.
Can be provided. Thus, the offset atom
Need not always be at the end of the file, and may be provided at any fixed position such as the beginning of the file, or may be provided at both the beginning and end of the file.

【0095】atomのヘッダ情報が正しく読み出せない場
合は、目的のatomを検索するために、ファイルの終了位
置にあるoffset atomへアクセスするため、図9に示す
フローチャートの検索処理を行う。
If the header information of the atom cannot be read correctly, the search process of the flowchart shown in FIG. 9 is performed to access the offset atom at the end position of the file in order to search for the target atom.

【0096】ステップS30において、QuickTimeファ
イルの終了位置へ移動し、その位置からファイルの先頭
側へoffset atomの大きさである20バイトのアドレス
へ移動する。この位置がoffset atomが存在する場合のo
ffset atomの先頭位置となる。
In step S30, the process moves to the end position of the QuickTime file, and moves from that position to the beginning of the file to the address of 20 bytes which is the size of the offset atom. O when this position has an offset atom
This is the start position of the ffset atom.

【0097】そして、ステップS31において、そのア
ドレスから8byteのヘッダ情報を取得する。取得したヘ
ッダ情報が正しいoffset atomであるかの判定を行うた
め、ステップS32において、ヘッダ情報の先頭4バイ
トの内容がoffset atomのsizeを示す"20"であり、後続
する4バイトの内容がoffset atomのtypeを示す"ofst"
であるかの判定を行う。
Then, in step S31, 8 bytes of header information are obtained from the address. In order to determine whether the acquired header information is a correct offset atom, in step S32, the content of the first 4 bytes of the header information is “20” indicating the size of the offset atom, and the content of the subsequent 4 bytes is offset "ofst" indicating the type of atom
Is determined.

【0098】正しいoffset atomのヘッダでなかった場
合は、ステップS41に進みエラー処理を行って終了す
る。正しいoffset atomのヘッダであった場合は、ステ
ップS33へ進む。ここで、moov atomを検索する場合
は、ステップS34へ進み、offset atomの先頭から8
バイトの位置へ移動し、この位置より4バイトのデータ
を取得して、ステップS39へ進む。
If the header is not the correct offset atom, the flow advances to step S41 to perform error processing, and ends. If the header is a correct offset atom, the process proceeds to step S33. Here, when searching for a moov atom, the process proceeds to step S34, where 8
Move to the byte position, acquire 4-byte data from this position, and proceed to step S39.

【0099】また、ステップS33において、他のatom
を検索する場合は、ステップS35へ進み、ここでmdat
atomを検索する場合は、ステップS36へ進み、offse
t atomの先頭から12バイトの位置へ移動し、この位置
より4バイトのデータを取得して、ステップS39へ進
む。
In step S33, another atom is deleted.
When searching for, the process proceeds to step S35, where mdat
When searching for an atom, the process proceeds to step S36,
It moves to the position of 12 bytes from the head of t atom, acquires 4-byte data from this position, and proceeds to step S39.

【0100】さらに、ステップS35において、他のat
omを検索する場合は、ステップS37へ進み、ここでバ
ックアップmoov atomを検索する場合は、ステップS3
8へ進み、offset atomの先頭から16バイトの位置へ
移動し、この位置より4バイトのデータを取得して、ス
テップS39へ進む。
Further, at step S35, another at
When searching for om, the process proceeds to step S37. When searching for a backup moov atom, step S3 is performed.
Then, the process proceeds to step S8, moves to the position of 16 bytes from the head of the offset atom, acquires 4-byte data from this position, and proceeds to step S39.

【0101】ステップS37で他のatomを検索する場合
は、QuickTimeファイル内に登録されていないatomデー
タを検索しようとしたことになり、ステップS41へ進
み、エラー処理を行って終了する。
If another atom is searched in step S37, it means that an attempt has been made to search for atom data that is not registered in the QuickTime file, and the flow advances to step S41 to perform error processing and terminate.

【0102】ステップS34、S36、S38の処理後
に、ステップS39へ進んだ場合、ファイル内の任意の
基準位置から取得したオフセット位置へ移動する。そし
て、ステップS40において、移動した位置より目的の
atomのデータへアクセスする。
When the process proceeds to step S39 after the processes of steps S34, S36 and S38, the file is moved to an offset position obtained from an arbitrary reference position in the file. Then, in step S40, the target position is
Access atom data.

【0103】QuickTime Fileでは、AVデータを再生する
ために、再生の順番や同期制御、長さ、各素材データの
情報などを管理するmoov atomが存在する。そして、こ
のmoov atomは、様々なAVデータをまとめて格納してい
るmdat atom内のデータの位置やサイズを管理してい
る。
In the QuickTime File, there is a moov atom that manages the order of reproduction, synchronization control, length, information of each material data, etc. in order to reproduce AV data. The moov atom manages the position and size of data in the mdat atom that stores various AV data collectively.

【0104】もし、前記atomヘッダが正しく読み出せな
いことと同様に、moov atom内データの読み取り不能が
生じると、このmoov atomのデータを正しく読み出せな
くなることから、再生の順番や長さなどをを管理してい
る情報や、mdat atom内に格納されている様々な素材デ
ータを表すオフセット値も正しく把握できなくなり、正
しい再生が行われなくなる。
If the data in the moov atom cannot be read, as in the case where the atom header cannot be read correctly, the data of the moov atom cannot be read correctly. And the offset values representing various material data stored in the mdat atom cannot be correctly grasped, and correct reproduction cannot be performed.

【0105】これは、光ディスクを用いたリムーバブル
なカムコーダで大事なイベントなどの撮影を行う場合、
ディスクの記録面に付着したほこりや傷、および撮影時
の振動などにより、記録した大切な撮影データを読み出
せなくなる場合などに生じる。
This is because when a removable camcorder using an optical disk is used to shoot an important event or the like,
This occurs when recorded important photographing data cannot be read out due to dust or scratches attached to the recording surface of the disc, or vibration during photographing.

【0106】このような問題が生じる可能性を低くする
ために、管理情報のバックアップを用意する必要性が高
い。また、オリジナルのmoov atomとバックアップのmoo
v atomとの記録媒体中の記録されている距離が近いと、
オリジナルのmoov atomが読み出せなくなった場合に、
バックアップのmoov atomも読み出せなくなる可能性が
高い。
In order to reduce the possibility that such a problem occurs, it is highly necessary to prepare a backup of the management information. Also, original moov atom and backup moo
v If the distance recorded in the recording medium with the atom is short,
If the original moov atom can no longer be read,
There is a high possibility that the backup moov atom cannot be read.

【0107】これは、例えば光ディスク等が傷により損
傷を受けた場合、データサイズが小さいQuickTimeファ
イルであると、オリジナルとバックアップのmoov atom
の両方が読み出せなくなるということである。しかし、
記録しているAVデータがMPEGストリームなどの動画デー
タの場合、例えば1時間分のデータサイズは、ビットレ
ートが8Mbpsであると、約3.5Gバイトものデータサ
イズとなる。
This is because, for example, when an optical disk or the like is damaged by a scratch, if the data size is a small QuickTime file, the original and backup moov atom
Cannot be read out. But,
When the recorded AV data is moving image data such as an MPEG stream, for example, the data size for one hour is about 3.5 Gbytes when the bit rate is 8 Mbps.

【0108】図10に示すように、moov atom、mdat at
om、バックアップmoov atomの順番で記録した場合は、m
dat atomのサイズが3.5Gバイトのサイズになると、
オリジナルとバックアップのmoov atomが共に損傷を受
ける可能性は低いことから、バックアップmoov atomをQ
uickTimeファイル内に設けても、オリジナルのバックア
ップとしての機能を果たす可能性は高い。
As shown in FIG. 10, moov atom, mdat at
om, if recorded in the order of backup moov atom, m
When the size of the dat atom becomes 3.5 GB,
It is unlikely that both the original and backup moov atoms will be damaged.
Even if it is provided in a uickTime file, it is highly likely that it will function as a backup of the original.

【0109】上述のことから、mdat atom内の素材デー
タやAVデータが正しくファイルに存在しているにもかか
わらず、moov atomの破損により再生が正しく行われな
いことを回避するために、図10の例では、mdat atom
の次にmoov atomのコピーをバックアップとして、Quick
Timeファイル内に追加する。
As described above, in order to avoid that the reproduction is not performed correctly due to the damage of the moov atom even though the material data and the AV data in the mdat atom are correctly present in the file, FIG. In the example, the mdat atom
Next, a copy of moov atom as a backup, Quick
Add it in the Time file.

【0110】再生に関する管理情報を二重化して登録す
ることで、元のmoov atomが破損を受けた場合であって
も、バックアップのmoov atomにアクセスすることによ
り、正しい再生を可能とし、さらに、破損したmoov ato
mを復旧させることが可能となる。
By duplicating and registering the management information related to reproduction, even if the original moov atom is damaged, correct reproduction is enabled by accessing the backup moov atom and Moov ato
m can be restored.

【0111】ただし、バックアップmoov atomを記録し
たとしても、前述のように、このバックアップmoov ato
mにアクセスするまでの間にatomのsize情報が正しく読
み出せない場合、結局バックアップmoov atomへアクセ
スできなくなる。
However, even if the backup moov atom is recorded, as described above, this backup moov atom
If the size information of the atom cannot be read correctly before accessing m, the backup moov atom cannot be accessed after all.

【0112】そこで、前述したように、そのmoovのバッ
クアップの位置情報もoffset atom内に登録する。これ
は、バックアップmoov atomを登録する時に、図11に
示すように、ファイル内の任意の基準位置からバックア
ップmoov atomの先頭位置までのオフセット値を、前述
の図8に示したoffset atomの最後の4バイトに登録す
る。
Thus, as described above, the backup location information of the moov is also registered in the offset atom. When registering the backup moov atom, as shown in FIG. 11, the offset value from an arbitrary reference position in the file to the start position of the backup moov atom is set to the last value of the offset atom shown in FIG. Register in 4 bytes.

【0113】このバックアップmoov atomを登録するの
と同様に、QuickTimeファイルフォーマット以外のファ
イルフォーマットを用いた場合でも、データの管理情報
が存在する場合は、この管理情報のコピーをバックアッ
プとして、ファイル内の任意の場所へ登録し、その位置
をoffset atomに相当する情報で管理しても良い。
As in the case of registering the backup moov atom, even if a file format other than the QuickTime file format is used, if data management information exists, a copy of the management information is used as a backup and the An arbitrary location may be registered, and the location may be managed by information corresponding to an offset atom.

【0114】moov atomデータが正しいデータでないこ
とを検出する方法として、前述のatomヘッダ情報が正し
くないことを検出する方法の他に、以下に挙げる手法が
ある。これは、システムの検出によるものと、ユーザー
によるものとが挙げられる。
As a method of detecting that the moov atom data is not correct data, there is a method described below, in addition to the method of detecting that the atom header information is not correct. This may be due to detection of the system or by the user.

【0115】システムの検出によるものは、moov atom
で管理されている情報のうち、全体の再生時間よりも、
あるtrackの再生時間が長い時やmdat atomデータ内の参
照を表すオフセット値やサイズがmdat atomデータサイ
ズを超えてしまっている時などのように管理情報のつじ
つまが合わなくなり、システムよりエラーが生じた場合
である。
The result of system detection is moov atom
Of the information managed in,
When the playback time of a certain track is long or when the offset value or size indicating the reference in the mdat atom data exceeds the mdat atom data size, the management information becomes inconsistent and an error occurs from the system. Is the case.

【0116】一方、ユーザーの検出によるものは、再生
している映像や音声に不具合を感じた時に、ユーザーが
QuickTimeファイルが損傷していると判断し、その旨を
システムに伝えることにより検出される。
On the other hand, according to the detection by the user, when the user feels a defect in the reproduced video or audio,
It is detected by determining that the QuickTime file is damaged and telling it to the system.

【0117】前述のmoov atomが正しいデータでないと
検出された場合の処理について説明する。atomのヘッダ
情報が正しく読めない場合や、moov atomが正しいデー
タでないと検出された場合は、QuickTimeファイルの最
後にあるoffset atomを用いて前述の検索手段6によ
り、バックアップのmoov atomへアクセスを行う。
The processing when the above moov atom is detected as not correct data will be described. If the header information of the atom cannot be read correctly, or if the moov atom is detected as not correct data, access the backup moov atom by the above-described search means 6 using the offset atom at the end of the QuickTime file. .

【0118】これをAVデータの管理情報として、AVデー
タの再生を行う。ここで、バックアップのmoov atomを
用いた場合でも、この管理情報が正しいデータでないと
検出された場合は、mdat atomデータが正しく読み出せ
ないか、オリジナルとバックアップのmoov atomが共に
正しいデータでないことが考えられる。
The AV data is reproduced using this as the management information of the AV data. Here, even if the backup moov atom is used, if this management information is detected as not correct data, the mdat atom data cannot be read correctly, or both the original and backup moov atom are not correct data. Conceivable.

【0119】また、moov atomが正しいデータでないと
検出され、バックアップmoov atomを検索する場合、図
6とともに上述したatomの検索方法を用いて、ファイル
の先頭から後続するatomを順に検索していき、バックア
ップmoov atomが見つかるまでQuickTimeファイル内を検
索しても良い。
When the moov atom is detected as not correct data and a backup moov atom is searched for, the subsequent atom is searched sequentially from the beginning of the file using the atom search method described above with reference to FIG. You may search the QuickTime file until you find a backup moov atom.

【0120】moov atomが正しいデータでないと検出さ
れた場合は、正しいデータでないmoov atomを復旧する
処理を行っても良い。これは、前述のバックアップmoov
atomをoffset atomの情報により検索してアクセスを行
い、バックアップmoov atomに対して異常がないかを検
出するか、バックアップmoov atomによりAVデータを再
生し、異常がないことを確認する。
When it is detected that the moov atom is not correct data, processing for restoring the moov atom that is not correct data may be performed. This is the backup moov mentioned earlier
Access the atom by searching for the information of the offset atom, and detect whether there is any abnormality in the backup moov atom or play back the AV data with the backup moov atom and confirm that there is no abnormality.

【0121】問題がなければ、offset atomによる異常
時検索手段6により、異常のあるmoov atomの位置を検
索し、バックアップmoov atomの内容をmoov atomの先頭
へコピーすることにより、異常のあったオリジナルのmo
ov atomを復旧させる。
If there is no problem, the location of the abnormal moov atom is searched by the abnormal time searching means 6 based on the offset atom, and the contents of the backup moov atom are copied to the beginning of the moov atom, thereby obtaining the original having the abnormality. No mo
Restore ov atom.

【0122】また、前述のatomヘッダのsize情報のみが
正しく読み出せない場合は、offsetatomのオフセット値
を用いて、正しく読み出せないヘッダ情報を持つatomと
後続するatomのオフセット値の差より、正しく読み出せ
ないヘッダ情報を持つatomのサイズを算出し、offset a
tomが指している正しく読み出せないヘッダ情報を持つa
tomの先頭アドレスへこのサイズとatomの種類を8バイ
ト書き込むことにより、正しく読み出せないヘッダ情報
を持つatomのヘッダ情報を復旧させることが可能であ
る。
If only the size information of the above atom header cannot be read correctly, the offset value of offsetetatom is used to determine the difference between the offset value of the atom having unreadable header information and the offset value of the subsequent atom. Calculate the size of the atom that has unreadable header information, and
a with header information that tom points to and cannot be read correctly
By writing this size and the type of atom to the head address of tom in 8 bytes, it is possible to recover the header information of atom having header information that cannot be read correctly.

【0123】さらに、atomヘッダのatomの種類のみが破
損している場合は、offset atomのオフセット値を用い
て、該atomヘッダの位置にアクセスし、検索しようとし
たatomの種類を破損したatomの種類とみなして、該atom
ヘッダの後半4バイトに書き込むことにより、破損した
atomの種類を持つatomのヘッダ情報を復旧させることが
できる。
Further, when only the atom type in the atom header is damaged, the position of the atom header is accessed using the offset value of the offset atom, and the atom type of the atom to be searched is replaced with the atom type. Considering the kind, the atom
Writing in the last 4 bytes of the header destroyed
The header information of the atom having the type of atom can be restored.

【0124】moov atomのバックアップ情報をファイル
内に設ける方法は、QuickTimeファイルに限定したもの
ではなく、他のファイルフォーマットにおいてもデータ
のバックアップを有する場合は、データのバックアップ
を保持し、ファイルの最後にこのバックアップ情報への
オフセット値を保持することによって、バックアップデ
ータへアクセスが可能となり、元のデータの復旧も行う
ことが可能となる。
The method of providing the backup information of the moov atom in the file is not limited to the QuickTime file. If the data is backed up in another file format, the backup of the data is held and the file is stored at the end of the file. By holding the offset value to the backup information, the backup data can be accessed, and the original data can be restored.

【0125】QuickTime File内に格納するatomは、前述
のように、moov atom、mdat atom、バックアップmoov a
tomだけではなく、様々な種類が存在する。よって、固
定個数のatomのoffset情報ではなく、任意の個数のoffs
et情報を管理したい場合が考えられる。
As described above, the atoms stored in the QuickTime File are moov atom, mdat atom, backup moov a
There are various types, not just tom. Therefore, instead of the offset information of a fixed number of atoms,
You may want to manage et information.

【0126】前述のoffset atomでは、atomのsizeが固
定長であるため、想定するatom以外は管理することがで
きない。そのため、ファイルの最後に記録するoffset a
tomを、図12に示すように規定する。
In the above-mentioned offset atom, since the size of the atom has a fixed length, it is impossible to manage other than the assumed atom. Therefore, offset a recorded at the end of the file
tom is defined as shown in FIG.

【0127】この場合のoffset atomは、atom sizeを可
変長とし、ヘッダ領域に後続して、ファイル内に登録さ
れているatomの数だけのファイルの任意の基準位置から
のオフセット値をフィールドにもつ。
The offset atom in this case has an atom size of a variable length, and has, in the field, an offset value from an arbitrary reference position of the file corresponding to the number of atoms registered in the file, following the header area. .

【0128】図12の例では、ヘッダ情報に後続してバ
ックアップmoov atomへのオフセット値をフィールドに
持ち、いくつかのファイル内atomへのオフセット値のフ
ィールドが格納された後、mdat atom、moov atomのオフ
セット値を格納している。
In the example of FIG. 12, after the header information, the offset value to the backup moov atom is included in the field, and after storing the offset value fields to the atoms in some files, the mdat atom, moov atom The offset value of is stored.

【0129】そしてまた、いくつかのファイル内atomへ
のオフセット値をフィールドに持ち、最後にoffset ato
m自身へのオフセット値を格納している。さらに、Quick
Timeのatomは入れ子の形態もとることができるため、at
om内部にあるatomに対してもオフセット値を登録して良
い。
Also, some files have offset values to the atoms in the field, and finally, offset ato
Stores the offset value to m itself. In addition, Quick
Since the atom of Time can take the form of nesting, at
An offset value may be registered for an atom inside om.

【0130】offset atomに登録するフィールドを全て
登録し終えたら、後続する4バイト(offset atomの最
後の4バイト。この4バイトを書き終えるとファイルエ
ンドとなる)にoffset atomへの基準アドレスからのオ
フセット値を格納する。
When all the fields to be registered in the offset atom have been registered, the subsequent 4 bytes (the last 4 bytes of the offset atom. When these 4 bytes have been written, the end of the file becomes the file end) from the reference address to the offset atom Stores the offset value.

【0131】尚、offset atomの最後の4バイトとし
て、offset atomへの基準アドレスからのオフセット値
ではなく、offset atomのsizeであるatom sizeを格納し
ても良い。このoffset atomを用いて、ファイル内に任
意の個数のatomの位置情報を登録することが可能とな
る。
As the last four bytes of the offset atom, an atom size, which is the size of the offset atom, may be stored instead of the offset value from the reference address to the offset atom. Using this offset atom, it is possible to register the position information of an arbitrary number of atoms in the file.

【0132】前述の決まったatomのoffset情報を管理す
るoffset atomの場合と異なり、本実施形態では、offse
t情報だけではどのatomの情報を管理しているかが分か
らない。このような場合のoffset atomから目的のatom
にアクセスする方法を、図13のフローチャートを用い
て説明する。尚、この図13では、offset atomの最後
の4バイトとして、offset atomへの基準アドレスから
のオフセット値が格納された場合を示している。
Unlike the case of the offset atom which manages the offset information of the determined atom, in the present embodiment, the offset atom
It is impossible to know which atom information is managed by only the t information. The target atom from the offset atom in such a case
The method for accessing the file will be described with reference to the flowchart of FIG. FIG. 13 shows a case where an offset value from a reference address to the offset atom is stored as the last 4 bytes of the offset atom.

【0133】ステップS60において、ファイルの終了
位置へ移動し、ファイルの終了部分の4バイトのデータ
を取得する。この値は、offset atomの先頭アドレスへ
の任意の基準位置からのオフセット値である。
In step S60, the file is moved to the end position of the file, and 4-byte data of the end portion of the file is obtained. This value is an offset value from an arbitrary reference position to the start address of the offset atom.

【0134】そこで、ステップS61において、ファイ
ル内の任意の基準位置から取得したオフセットのアドレ
スへ移動することにより、offset atomの先頭へ移動し
たことになる。
Then, in step S61, by moving to the address of the offset acquired from an arbitrary reference position in the file, it has moved to the head of the offset atom.

【0135】ステップS62において、現在のアドレス
から8バイトのデータであるoffsetatomのヘッダ情報を
取得する。ステップS63にて、取得したヘッダ情報の
先頭4バイトの値がファイルサイズからoffset atomの
先頭位置を引いた値(offset atomのsizeの計算値)と
一致し、後続する4バイトのtypeがoffset atomの種類
を示す"ofst"であるとき、取得したヘッダ情報がoffset
atomであると判定する。
In step S62, the header information of the offset which is 8-byte data is obtained from the current address. In step S63, the value of the first 4 bytes of the obtained header information matches the value obtained by subtracting the start position of the offset atom from the file size (the calculated value of the size of the offset atom), and the type of the subsequent 4 bytes is the offset atom Is "ofst" indicating the type of the header, the acquired header information is offset
Judge as an atom.

【0136】offset atomと判定されなかった場合は、
ステップS70へ進みエラー処理をして終了する。offs
et atomと判定された場合は、ステップS64へ進み、
現在のアドレスがoffset atomのフィールド情報の最後
でないかの判定を行う。
When the offset atom is not determined,
The process proceeds to step S70, performs error processing, and ends. offs
If it is determined to be et atom, the process proceeds to step S64,
Determine whether the current address is not the end of the field information of the offset atom.

【0137】現在のアドレスが最後のアドレス(offset
atomへのオフセット値が格納されているアドレス)で
あった場合は、目的のatomが見つからなかったことにな
り、ステップS70へ進みエラー処理をして終了する。
そうでなかった場合は、ステップS65へ進み、現在の
アドレスから4バイトのオフセット値を取得し、任意の
基準位置からオフセット値のアドレスへ移動する。
The current address is the last address (offset
If the address is the address at which the offset value to the atom is stored), it means that the target atom has not been found, the process proceeds to step S70, performs error processing, and ends.
If not, the flow advances to step S65 to acquire a 4-byte offset value from the current address, and move from an arbitrary reference position to the address of the offset value.

【0138】次に、ステップS66において、移動した
アドレスより8バイトのヘッダ情報を取得する。そし
て、ステップS67において、ヘッダ情報の後半4byte
のtype情報が目的のatomのtype情報であるかASCIIコー
ドの比較を行い、目的のatomであった場合は、ステップ
S68により、目的atomへアクセスを行って終了する。
Next, in step S66, 8-byte header information is obtained from the moved address. Then, in step S67, the last 4 bytes of the header information
The ASCII code is compared to determine whether the type information of the target atom is the type information of the target atom. If the type information is the target atom, the target atom is accessed in step S68, and the processing ends.

【0139】目的atomでなかった場合は、ステップS6
9にて現在のアドレスに4を加えて、次のオフセットの
フィールド情報の位置に移動し、ステップS64へ戻
り、目的atomが見つかるまでかoffset atomの終了位置
まで前記処理を繰り返して、目的atomを検索する。
If it is not the target atom, step S6
In step 9, add 4 to the current address, move to the position of the field information of the next offset, return to step S64, repeat the above processing until the target atom is found or the end position of the offset atom, and Search for.

【0140】また、前記検索の場合、オリジナルのmoov
atomとバックアップのmoov atomのtypeを違う名前にし
てあれば良いが、そうでない場合は区別がつかなくなる
ため、バックアップ情報のオフセット値は、offset ato
m内の任意の場所に規定して登録するようにする。例え
ば、offset atomの先頭や最後のフィールドにバックア
ップデータへのオフセット値を格納する(図11、図1
2では、offset atomの先頭フィールドに設定してい
る)。
Further, in the case of the above search, the original moov
It is sufficient if the type of the atom and the backup moov atom are different names, but otherwise, it becomes indistinguishable, so the offset value of the backup information is offset ato
Make sure to register at any place in m. For example, the offset value to the backup data is stored in the first or last field of the offset atom (see FIGS. 11 and 1).
In 2, it is set in the first field of the offset atom).

【0141】ファイルの最後の位置へ移動することは、
容易であることから、offset atomの登録する位置は、Q
uickTimeファイルの最後のatomとして登録した方が、確
実にoffset atomにアクセスすることが可能となる。し
かし、offset atomはファイルの最後におく必要はな
く、offset atomへのアクセスする手段さえ存在すれ
ば、ファイルの先頭などの任意の位置でも良い。さら
に、当該ファイル内ではなく、任意の場所に登録するよ
うにしても良い。
Moving to the last position of the file is
Because it is easy, the position where the offset atom is registered is Q
Registering the atom as the last atom in the uickTime file ensures access to the offset atom. However, the offset atom need not be at the end of the file, but may be at any position such as the beginning of the file as long as there is a means for accessing the offset atom. Further, the information may be registered in an arbitrary place, not in the file.

【0142】前述のQuickTimeファイルは、管理情報の
バックアップであるmoov atomを同一ファイル内に格納
している例であるが、バックアップのmoov atomを別フ
ァイル内に保存しても良い。
Although the above QuickTime file is an example in which the moov atom that is a backup of the management information is stored in the same file, the backup moov atom may be stored in another file.

【0143】動画や静止画などを記録したQuickTimeフ
ァイルの管理情報のバックアップ(以下、moov atomの
バックアップ)を外部のQuickTimeファイルに作成する
場合、オリジナルのQuickTimeファイルの任意の位置
に、moov atomのバックアップデータが格納されている
外部QuickTimeファイルの所在位置(パス)およびファ
イル名を保持しているoptr atom(外部参照データブロ
ックに相当)を記録する。
When creating a backup of the management information of a QuickTime file (hereinafter referred to as a “moov atom backup”) in which moving images and still images are recorded in an external QuickTime file, the backup of the moov atom is stored at an arbitrary position in the original QuickTime file. The location (path) of the external QuickTime file in which the data is stored and the optr atom (corresponding to the external reference data block) holding the file name are recorded.

【0144】この場合のoptr atomは、図14に示すよ
うに、最初の4バイトにatom size、次の4バイトにato
m typeとしてatomヘッダを記録する。後続するフィール
ドは、moov atomのバックアップデータの所在を示すPoi
ntフィールドであり、moov atomのバックアップデータ
が格納されているQuickTimeファイル名を外部ファイル
名としてパスも含めて記録する。そして、最後のフィー
ルドに、optr atomのエンド位置からoptr atom内のPoin
tフィールドへのオフセット値を格納する。
In this case, as shown in FIG. 14, the optr atom has an atom size in the first 4 bytes and an atom size in the next 4 bytes.
Record atom header as m type. The following field is a Poi indicating the location of the moov atom backup data.
In the nt field, the QuickTime file name storing the backup data of the moov atom is recorded as an external file name including the path. Then, in the last field, the Poin in the optr atom from the end position of the optr atom
Stores the offset value to the t field.

【0145】このoptr atomを用いたQuickTimeファイル
の例を図15に示す。図15においては、オリジナルの
QuickTimeファイルがmoov atom、mdat atomの順番で記
録され、moov atomのバックアップが格納されている外
部QuickTimeファイルのファイル名を格納しているoptr
atomがファイルの最後に記録されている。この図15
は、optr atom内のPointフィールドが指しているQuickT
imeファイルに、moov atomのバックアップのみが記録さ
れている例であり、Pointフィールドに格納されている
ファイル名のQuickTimeファイルには、他のatomが複数
個、記録されていても良い。
FIG. 15 shows an example of a QuickTime file using the optr atom. In FIG. 15, the original
An optr in which the QuickTime file is recorded in the order of moov atom and mdat atom, and stores the file name of the external QuickTime file that stores the backup of the moov atom
atom is recorded at the end of the file. This FIG.
Is the QuickT pointed to by the Point field in the optr atom
This is an example in which only the backup of the moov atom is recorded in the ime file, and a plurality of other atoms may be recorded in the QuickTime file having the file name stored in the Point field.

【0146】前述のoptr atomを用いたmoov atomのバッ
クアップへアクセスする方法を説明する。オリジナルの
moov atomへのアクセスが不能となった場合は、ファイ
ルエンドへシークした後、ファイルエンド(optr atom
のエンド)の4バイトにあるoptr atom内のPointフィー
ルドへのオフセット値により、Pointフィールドへアク
セスを行い、moov atomのバックアップが登録されてい
るQuickTimeファイル名を取得する。
A method of accessing the backup of the moov atom using the above optr atom will be described. Original
If access to the moov atom becomes impossible, seek to the file end and then file end (optr atom
By using the offset value to the Point field in the optr atom in the 4 bytes of (end), the Point field is accessed, and the QuickTime file name in which the backup of the moov atom is registered is obtained.

【0147】そして、取得したファイル名のファイルを
オープンし、異常時検索手段6によってこの外部QuickT
imeファイル内のmoov atomを検索する。このように、mo
ov atomのバックアップデータへアクセスを行うことに
より、AVデータの再生を行うことが可能となる。また、
前述と同じように、moov atomのバックアップデータを
オリジナルのmoov atomへコピーすることにより、不具
合が生じているオリジナルのQuickTimeファイル内のmoo
v atomを復旧することも可能となる。
Then, the file having the obtained file name is opened, and the external QuickT
Search for moov atom in ime file. Thus, mo
By accessing the backup data of the ov atom, it is possible to reproduce the AV data. Also,
As described above, by copying the backup data of the moov atom to the original moov atom, the moo file in the original QuickTime
v It is also possible to recover the atom.

【0148】また、外部に存在するmoov atomのバック
アップがQuickTimeファイル形式で記録されている必要
はなく、任意のデータフォーマットで記録されていても
良い。この場合は、図16に示すようなoptr atomを用
いて、外部にあるmoov atomのバックアップへアクセス
を行う。
Further, the backup of the moov atom existing outside need not be recorded in the QuickTime file format, but may be recorded in any data format. In this case, the backup of the external moov atom is accessed using the optr atom as shown in FIG.

【0149】図16においては、最初の4バイトにatom
size、次の4バイトにatom typeとしてatomヘッダを記
録する。次に、moov atomのバックアップが格納されて
いるデータ内における任意に定めた基準位置からmoov a
tomのバックアップデータへのオフセット値であるPoint
Offsetフィールドを格納する。尚、図中の括弧では、m
oov atomのバックアップが格納されているデータをファ
イルとしており、このファイル内における基準位置から
のオフセット値となる。
In FIG. 16, the first four bytes contain atom
In the next 4 bytes of size, an atom header is recorded as an atom type. Next, from the arbitrarily defined reference position in the data in which the backup of the moov atom is stored,
Point which is the offset value to the backup data of tom
Stores the Offset field. In the parentheses in the figure, m
The file stores the backup data of the oov atom, and is an offset value from the reference position in this file.

【0150】次の後続するフィールドは、moov atomの
バックアップデータの所在を示すPointフィールドであ
る。この場合においても、図中の括弧は、moov atomの
バックアップが格納されているデータをファイルとして
おり、moov atomのバックアップデータが格納されてい
るファイル名を外部ファイル名として記録している。そ
して、最後のフィールドに、optr atomエンドからoptr
atom内のPoint Offsetフィールドへのオフセット値を格
納する。
The next succeeding field is a Point field indicating the location of the backup data of the moov atom. In this case as well, the parentheses in the figure indicate that the data storing the backup of the moov atom is a file, and the file name storing the backup data of the moov atom is recorded as an external file name. And in the last field, optr atom end from optr
Store the offset value to Point Offset field in atom.

【0151】このようなmoov atomのバックアップが外
部ファイルに存在する場合のoptr atomを用いたQuickTi
meファイルの例を図17に示す。図17においては、オ
リジナルのQuickTimeファイルがmoov atom、mdat atom
の順番で記録され、moov atomのバックアップが格納さ
れている外部ファイルのファイル名およびその外部ファ
イル内におけるmoov atomのバックアップデータへのオ
フセット値を格納しているoptr atomがファイルの最後
に記録されている。
When a backup of such a moov atom exists in an external file, QuickTi using the optr atom is used.
FIG. 17 shows an example of the me file. In FIG. 17, the original QuickTime files are moov atom, mdat atom
The file name of the external file that stores the backup of the moov atom and the optr atom that stores the offset value to the backup data of the moov atom in the external file are recorded at the end of the file. I have.

【0152】このoptr atomは、ファイルエンド(optr
atomエンド)の4バイトのoffset値がoptr atom内のPoi
nt Offsetフィールドを指しており、このPoint Offset
フィールドが外部ファイル内のmoov atomのバックアッ
プデータ部分を指している。そして、後続するPointフ
ィールドがその外部ファイルを指している。また、この
図17は、optr atom内のPointフィールドが指している
ファイル(外部ファイル)内におけるPoint Offsetフィ
ールドのオフセット値の位置にmoov atomのバックアッ
プが記録されている例であり、外部ファイル内には、他
のデータが記録されていても良い。
This optr atom is a file end (optr atom)
The 4-byte offset value of the atom end) is Poi in the optr atom
nt Offset field, this Point Offset
The field points to the moov atom backup data part in the external file. The subsequent Point field points to the external file. FIG. 17 is an example in which a backup of the moov atom is recorded at the offset value position of the Point Offset field in the file (external file) pointed to by the Point field in the optr atom. May be recorded with other data.

【0153】前述の外部データ内にmoov atomのバック
アップデータが存在する場合のアクセス方法について説
明する。オリジナルのmoov atomへのアクセスが不能と
なった場合は、ファイルエンドへシークした後、ファイ
ルエンド(optr atomエンド)の4バイトにあるoptr at
om内のPoint Offsetフィールドへのオフセット値によ
り、Point Offsetフィールドへアクセスを行い、Point
Offsetの値を取得する。
An access method when backup data of a moov atom exists in the above-mentioned external data will be described. If access to the original moov atom becomes impossible, seek to the file end and then optr at in the 4 bytes of the file end (optr atom end)
By accessing the Point Offset field by the offset value to the Point Offset field in om, Point
Get the value of Offset.

【0154】そして、次のPointフィールドへアクセス
を行い、moov atomのバックアップが登録されているデ
ータの所在(例えば、外部ファイル名)を取得する。ま
た、取得した所在データ(外部ファイル)内における読
み込み済みであるPoint Offsetの位置にあるデータにア
クセスし、moov atomのバックアップデータを取得す
る。
Then, the next Point field is accessed to obtain the location (for example, an external file name) of the data in which the backup of the moov atom is registered. Further, the data at the position of the read Point Offset in the obtained location data (external file) is accessed, and the backup data of the moov atom is obtained.

【0155】このように、moov atomのバックアップデ
ータへアクセスを行うことにより、AVデータの再生を行
うことが可能となる。また、前述と同じように、moov a
tomのバックアップデータをオリジナルのmoov atomへコ
ピーすることにより、不具合が生じているオリジナルの
QuickTimeファイル内のmoov atomを復旧することも可能
となる。
As described above, by accessing the backup data of the moov atom, it is possible to reproduce the AV data. Also, as described above, moov a
By copying the backup data of tom to the original moov atom, the original
Moov atoms in QuickTime files can be recovered.

【0156】前述の図14乃至図17に示したoptr ato
mは、moov atomのバックアップデータの所在を記録して
あれば良く、外部参照ファイル名に限定されるものでは
ない。例えば、メモリ上にmoov atomのバックアップを
格納した場合は、そのデータの存在するアドレスを格納
しても良く、また、ネットワーク上に存在する場合は、
そのデータへのURLを記録すれば良い。つまり、optr at
om内には、moov atomのバックアップデータが存在して
いる場所の所在を記録すれば良い。
The optrato shown in FIG. 14 to FIG.
m is only required to record the location of the backup data of the moov atom, and is not limited to the external reference file name. For example, if a moov atom backup is stored in memory, the address where the data exists may be stored, and if it exists on a network,
Just record the URL to that data. That is, optr at
In om, the location of the location where the backup data of the moov atom exists may be recorded.

【0157】また、前述のoptr atomのPointフィールド
には、moov atomのバックアップ情報への所在だけでな
く、例えば別ファイルに格納されているmdat atom等の
任意のatomの所在を格納しても良い。
In the Point field of the above optr atom, not only the location of the moov atom in the backup information but also the location of an arbitrary atom such as the mdat atom stored in another file may be stored. .

【0158】さらに、1つの外部データ内の1つのatom
のみを参照するのではなく、複数の外部データ内の複数
のatomを参照しても良い。その場合は、optr atomに
は、外部データを示す所在(例えば、ファイル名)とそ
の外部データ内におけるある定めた基準位置から参照し
たいatomへのoffset値を1セットとして、必要な数だけ
このセットを登録すれば良い。
Further, one atom in one external data
Instead of referencing only, a plurality of atoms in a plurality of external data may be referenced. In this case, the optr atom is a set of the location (for example, a file name) indicating the external data and the offset value from a predetermined reference position in the external data to the atom to be referred to, and this set is used as many as necessary. You just need to register.

【0159】前述の外部データ参照(例えば、moov ato
mのバックアップデータ参照)は、QuickTimeファイルに
限定されたものではなく、データの先頭にデータサイズ
を記録した前述のデータブロックにも適用可能であり、
参照するデータの所在を格納した外部参照データブロッ
クをオリジナルのファイル内に用意することにより、外
部のデータにアクセスが可能である。
The external data reference (for example, moov ato
m backup data) is not limited to QuickTime files, but can also be applied to the aforementioned data blocks that record the data size at the beginning of the data.
By preparing an external reference data block storing the location of the data to be referenced in the original file, external data can be accessed.

【0160】以上詳述したように、あるまとまったデー
タにそのデータのサイズなどを表す管理情報を付加した
データブロックが記録媒体内のファイル内に1つ以上記
録されている場合に、ファイル内のどこかのデータブロ
ックの管理情報が読み取り不能となると、後続するデー
タブロックにアクセスできなくなる。
As described in detail above, when one or more data blocks obtained by adding management information indicating the size of data to a certain set of data are recorded in the file on the recording medium, If the management information of any data block becomes unreadable, the subsequent data block cannot be accessed.

【0161】そのため、本実施形態のデータ記録再生装
置においては、確実にアクセス可能なファイル内の最後
の位置に、各々のデータブロックへアクセスするための
ファイル内の任意の基準位置からのオフセット値を登録
するオフセットデータブロックを設ける、或いは、この
ファイルとは別のデータ(例えば、外部ファイル)内に
必要なバックアップデータを保持し、そのバックアップ
データを持った別データの所在を登録する外部参照デー
タブロックを設けることにより、確実に全てのデータブ
ロックやデータブロックのバックアップへのアクセスが
可能となり、読み取り不能となったデータブロックに後
続するデータブロックにアクセスできないといった問題
を解決することができる。
Therefore, in the data recording / reproducing apparatus of the present embodiment, the offset value from an arbitrary reference position in the file for accessing each data block is set at the last position in the file that can be securely accessed. An offset data block to be registered, or an external reference data block that holds necessary backup data in data different from this file (for example, an external file) and registers the location of another data having the backup data Is provided, it is possible to reliably access all the data blocks and the backup of the data blocks, and it is possible to solve the problem that the data blocks subsequent to the unreadable data blocks cannot be accessed.

【0162】また、QuickTimeファイルでは、AVデータ
の記録・再生を管理しているmoov atom内のデータが読
み取り不能となった場合、AVデータを正しく記録・再生
ができなくなる。
In the QuickTime file, if the data in the moov atom that manages the recording / reproduction of AV data becomes unreadable, the AV data cannot be recorded / reproduced correctly.

【0163】このために、moov atomのコピーをバック
アップmoov atomとして、ファイル内に設けることによ
り、この問題を解決することができるが、前記と同様
に、バックアップmoov atomまでに存在するatomのヘッ
ダ情報が読み取り不能となると、バックアップmoov ato
mへアクセスができなくなる。
For this purpose, this problem can be solved by providing a copy of the moov atom as a backup moov atom in the file. However, similar to the above, the header information of the atom existing up to the backup moov atom can be solved. Becomes unreadable, backup moov ato
You cannot access m.

【0164】そのため、本実施形態のデータ記録再生装
置においては、バックアップmoov atomへアクセスする
ためのファイル内の任意の基準位置からのオフセット値
を登録するoffset atomを設ける、或いは、このQuickTi
meファイルとは別の外部のデータ内にmoov atomのバッ
クアップを保存し、この外部データの所在を登録するop
tr atomを設けることにより、確実にバックアップmoov
atomへアクセスが可能となり、AVデータの記録・再生に
対する不具合が生じる問題を抑制することが可能とな
る。
For this reason, in the data recording / reproducing apparatus of the present embodiment, an offset atom for registering an offset value from an arbitrary reference position in a file for accessing a backup moov atom is provided, or this QuickTi
An op that stores a backup of the moov atom in external data separate from the me file and registers the location of this external data
By providing tr atom, backup moov is sure
It becomes possible to access the atom, and it is possible to suppress a problem that a problem occurs in recording / reproducing AV data.

【0165】尚、本発明は、QuickTimeファイル以外の
ファイルフォーマットにおいても、ファイルの最後か任
意の場所にoffsetを表すデータ領域を設けることで適用
可能であり、そのoffsetを表すデータ領域へのオフセッ
ト値をファイル内の任意の箇所に格納すれば良い。
The present invention can be applied to a file format other than the QuickTime file by providing a data area representing an offset at the end of the file or at an arbitrary position. The offset value to the data area representing the offset May be stored at any location in the file.

【0166】また、QuickTimeファイル以外のファイル
フォーマットにおいても、AVデータの管理情報のバック
アップが登録されている場合、offsetを表すデータ領域
やそのバックアップが登録されている外部データの所在
を示す領域から、オリジナルのAVデータの管理情報を復
旧させることができ、さらには、データブロックの管理
情報(データ長や種類)を、offsetを表すデータを用い
て復旧させることが可能であることは明らかである。
Also, in a file format other than the QuickTime file, if a backup of the management information of the AV data is registered, the data area indicating the offset and the area indicating the location of the external data in which the backup is registered are read from the data area. Obviously, the management information of the original AV data can be restored, and the management information (data length and type) of the data block can be restored using the data representing the offset.

【0167】[0167]

【発明の効果】本発明によれば、各々のデータブロック
へアクセスするためのファイル内の任意の基準位置から
のオフセット値を登録したオフセットデータブロックを
設けているので、確実に全てのデータブロックへのアク
セスが可能となり、読み取り不能となったデータブロッ
クに後続するデータブロックにアクセスすることが可能
となる。
According to the present invention, an offset data block in which an offset value from an arbitrary reference position in a file for accessing each data block is registered is provided. Can be accessed, and a data block subsequent to the data block that has become unreadable can be accessed.

【0168】また、AVデータの管理情報のデータブロッ
クのコピーを、バックアップデータブロックとしてファ
イル内に設けるとともに、ファイル内の任意の基準位置
からこのバックアップデータブロックの先頭位置へのオ
フセット値を登録したオフセットデータブロックを設け
る、或いは、このバックアップデータブロックをこのフ
ァイルとは別の外部データ内に設けるとともに、この外
部データの所在を示すデータブロックを設けることで、
確実にAVデータの管理情報のバックアップデータブロッ
クへアクセスが可能となり、AVデータの記録・再生に対
する不具合を回避することができる。
A copy of the data block of the management information of the AV data is provided in the file as a backup data block, and an offset value in which an offset value from an arbitrary reference position in the file to the head position of the backup data block is registered. By providing a data block or providing this backup data block in external data separate from this file and providing a data block indicating the location of this external data,
It is possible to reliably access the backup data block of the management information of the AV data, and it is possible to avoid a problem in recording / reproducing the AV data.

【0169】さらに、オリジナルのAVデータの管理情報
データブロックの破損が検出された場合は、バックアッ
プのAVデータの管理情報データブロックをオリジナルの
管理情報データブロックへコピーすることにより、前記
破損したAVデータの管理情報データブロックを復旧させ
ることができる。また、データブロックの管理情報の破
損が検出された場合も、オフセットデータブロックのオ
フセット値を用いて、前記破損したデータブロックの管
理情報を復旧させることができる。
Further, if the management information data block of the original AV data is detected to be damaged, the management information data block of the backup AV data is copied to the original management information data block, thereby obtaining the damaged AV data. The management information data block can be recovered. Further, even when the management information of the data block is detected to be damaged, the management information of the damaged data block can be restored using the offset value of the offset data block.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明のデータ記録再生装置の実施形態におけ
る概略構成を示すブロック図である。
FIG. 1 is a block diagram showing a schematic configuration of a data recording / reproducing apparatus according to an embodiment of the present invention.

【図2】本発明のデータ記録再生装置の実施形態におけ
る任意のデータブロックの検索処理を示すフローチャー
トである。
FIG. 2 is a flowchart showing a search process of an arbitrary data block in the embodiment of the data recording / reproducing apparatus of the present invention.

【図3】本発明のデータ記録再生装置の実施形態におけ
るオフセットデータブロックをファイルの最後に記録し
た場合を示す概略説明図である。
FIG. 3 is a schematic explanatory diagram showing a case where an offset data block is recorded at the end of a file in the embodiment of the data recording / reproducing apparatus of the present invention.

【図4】本発明のデータ記録再生装置の実施形態におけ
るオフセットデータブロックをファイルの最後に記録し
た場合を示す概略説明図である。
FIG. 4 is a schematic explanatory diagram showing a case where an offset data block is recorded at the end of a file in the embodiment of the data recording / reproducing apparatus of the present invention.

【図5】本発明のデータ記録再生装置の実施形態におけ
るオフセットデータブロックを用いた任意のデータブロ
ックの検索処理を示すフローチャートである。
FIG. 5 is a flowchart showing a search process of an arbitrary data block using an offset data block in the embodiment of the data recording / reproducing apparatus of the present invention.

【図6】本発明のデータ記録再生装置の実施形態におけ
るQuickTimeファイル内の任意のatomデータの検索処理
を示すフローチャートである。
FIG. 6 is a flowchart showing a process of searching for arbitrary atom data in a QuickTime file in the embodiment of the data recording / reproducing apparatus of the present invention.

【図7】本発明のデータ記録再生装置の実施形態におけ
るQuickTimeファイルの読み出したatomのヘッダ情報が
正しい値か否かの検出処理を示すフローチャートであ
る。
FIG. 7 is a flowchart showing a process of detecting whether or not the header information of the read atom of the QuickTime file is a correct value in the embodiment of the data recording / reproducing apparatus of the present invention.

【図8】本発明のデータ記録再生装置の実施形態におけ
る固定長のoffset atomを示す概略説明図である。
FIG. 8 is a schematic explanatory diagram showing a fixed-length offset atom in the embodiment of the data recording / reproducing apparatus of the present invention.

【図9】本発明のデータ記録再生装置の実施形態におけ
るoffset atomが固定長である場合の任意のatomデータ
の検索処理を示すフローチャートである。
FIG. 9 is a flowchart showing a process of searching for arbitrary atom data when an offset atom has a fixed length in the embodiment of the data recording / reproducing apparatus of the present invention.

【図10】本発明のデータ記録再生装置の実施形態にお
ける固定長のoffset atomをファイルの最後に記録した
場合を示す概略説明図である。
FIG. 10 is a schematic explanatory diagram showing a case where a fixed-length offset atom is recorded at the end of a file in the embodiment of the data recording / reproducing apparatus of the present invention.

【図11】本発明のデータ記録再生装置の実施形態にお
ける可変長のoffset atomをファイルの最後に記録した
場合を示す概略説明図である。
FIG. 11 is a schematic explanatory diagram showing a case where a variable-length offset atom is recorded at the end of a file in the embodiment of the data recording / reproducing apparatus of the present invention.

【図12】本発明のデータ記録再生装置の実施形態にお
ける可変長のoffset atomを示す概略説明図である。
FIG. 12 is a schematic explanatory view showing a variable length offset atom in the embodiment of the data recording / reproducing apparatus of the present invention.

【図13】本発明のデータ記録再生装置の実施形態にお
けるoffset atomが可変長である場合の任意のatomデー
タの検索処理を示すフローチャートである。
FIG. 13 is a flowchart showing a process of searching for arbitrary atom data when an offset atom has a variable length in the embodiment of the data recording / reproducing apparatus of the present invention.

【図14】本発明のデータ記録再生装置の実施形態にお
ける外部QuickTimeファイル名を指すoptr atomを示す概
略説明図である。
FIG. 14 is a schematic explanatory diagram showing an optr atom indicating an external QuickTime file name in the embodiment of the data recording / reproducing apparatus of the present invention.

【図15】本発明のデータ記録再生装置の実施形態にお
ける外部QuickTimeファイル名を指すoptr atomをファイ
ルの最後に記録した場合を示す概略説明図である。
FIG. 15 is a schematic explanatory diagram showing a case where an optr atom indicating an external QuickTime file name is recorded at the end of a file in the embodiment of the data recording / reproducing apparatus of the present invention.

【図16】本発明のデータ記録再生装置の実施形態にお
ける外部ファイル名とそのファイル内でのoffset値を指
すoptr atomを示す概略説明図である。
FIG. 16 is a schematic explanatory diagram showing an external file name and an optr atom indicating an offset value in the file in the embodiment of the data recording / reproducing apparatus of the present invention.

【図17】本発明のデータ記録再生装置の実施形態にお
ける外部ファイル名とそのファイル内でのoffset値を指
すoptr atomをファイルの最後に記録した場合を示す概
略説明図である。
FIG. 17 is a schematic explanatory diagram showing a case where an external file name and an optr atom indicating an offset value in the file are recorded at the end of the file in the embodiment of the data recording / reproducing apparatus of the present invention.

【図18】複数のentryを持ち、そのentryの個数を示す
管理情報を含んだデータブロックをファイル内に複数記
録した場合を示す概略説明図である。
FIG. 18 is a schematic explanatory diagram showing a case where a plurality of data blocks including a plurality of entries and including management information indicating the number of the entries are recorded in a file.

【図19】画像データとそのサイズを表す管理情報を含
んだデータブロックをファイル内に複数記録した場合を
示す概略説明図である。
FIG. 19 is a schematic explanatory diagram showing a case where a plurality of data blocks including image data and management information indicating the size thereof are recorded in a file.

【図20】QuickTimeファイル内のatomデータの構成を
示した概略説明図である。
FIG. 20 is a schematic explanatory diagram showing the structure of atom data in a QuickTime file.

【図21】図18のあるデータブロックの管理情報が読
み取る不能となった場合に、後続するデータブロックに
アクセスが不可能となることを示す概略説明図である。
FIG. 21 is a schematic explanatory view showing that when management information of a certain data block in FIG. 18 cannot be read, access to a subsequent data block becomes impossible.

【図22】図19のあるデータブロックの管理情報が読
み取る不能となった場合に、後続するデータブロックに
アクセスが不可能となることを示す概略説明図である。
FIG. 22 is a schematic explanatory view showing that when management information of a certain data block in FIG. 19 cannot be read, access to a subsequent data block becomes impossible.

【図23】QuickTimeファイル内のatomデータのヘッダ
情報が読み取り不能となった場合に、後続するatomデー
タにアクセスが不可能となることを示す概略説明図であ
る。
FIG. 23 is a schematic explanatory diagram showing that when header information of atom data in a QuickTime file becomes unreadable, subsequent atom data cannot be accessed.

【符号の説明】[Explanation of symbols]

1 記録部 2 記録媒体 3 再生部 4 通常検索手段 5 再生データ異常検出手段 6 異常時検索手段 DESCRIPTION OF SYMBOLS 1 Recording part 2 Recording medium 3 Reproduction part 4 Normal search means 5 Reproduction data abnormality detection means 6 Abnormality retrieval means

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5B082 DE06 EA01 EA05 5D044 AB01 AB05 AB07 DE03 DE38 DE62 DE64 EF05 FG19 5D110 AA27 AA29 DA06 DA07 DA11 DB03 DC05 DC16  ──────────────────────────────────────────────────続 き Continued on the front page F term (reference) 5B082 DE06 EA01 EA05 5D044 AB01 AB05 AB07 DE03 DE38 DE62 DE64 EF05 FG19 5D110 AA27 AA29 DA06 DA07 DA11 DB03 DC05 DC16 DC16

Claims (12)

【特許請求の範囲】[Claims] 【請求項1】 データ及び該データのサイズや個数、種
類を含む管理情報からなるデータブロック単位で、各種
データが登録されたファイルを記録媒体に記録する記録
手段と、 前記データブロック中の管理情報内のデータサイズに基
づき、後続するデータブロックの先頭位置を得て、後続
するデータブロックを読み出す再生手段と、 前記再生手段により読み出されたデータブロック中の管
理情報内のデータ種類に基づき、ファイル内のデータブ
ロックを検索する通常検索手段とを備えたデータ記録再
生装置において、 前記ファイル内の任意の基準位置から該ファイル内に含
まれるいくつかのデータブロックの先頭位置へのオフセ
ット値が登録されたオフセットデータブロックをファイ
ルの任意の位置に登録したことを特徴とするデータ記録
再生装置。
A recording unit for recording, on a recording medium, a file in which various data are registered in units of a data block including data and management information including a size, a number, and a type of the data; Based on the data size in the data block, obtains the start position of the subsequent data block, and reads out the subsequent data block.Based on the data type in the management information in the data block read out by the reproduction unit, the file A data recording / reproducing apparatus provided with a normal search means for searching for a data block in a file, wherein an offset value from an arbitrary reference position in the file to a head position of some data blocks included in the file is registered. Characterized in that the offset data block is registered at an arbitrary position in the file. Raw equipment.
【請求項2】 前記請求項1に記載のデータ記録再生装
置において、 前記オフセットデータブロックのサイズが固定長である
ことを特徴とするデータ記録再生装置。
2. The data recording / reproducing apparatus according to claim 1, wherein the size of the offset data block is a fixed length.
【請求項3】 前記請求項1に記載のデータ記録再生装
置において、 前記オフセットデータブロックのサイズが可変長である
ことを特徴とするデータ記録再生装置。
3. The data recording / reproducing apparatus according to claim 1, wherein the size of the offset data block is variable.
【請求項4】 前記請求項1乃至3のいずれかに記載の
データ記録再生装置において、 前記データブロックは、AVデータが登録されているデー
タブロックと、そのAVデータのデータブロックの記録・
再生の形態を管理する管理情報が登録されているデータ
ブロックとを含むことを特徴とするデータ記録再生装
置。
4. The data recording / reproducing apparatus according to claim 1, wherein the data block includes a data block in which AV data is registered and a data block of the data block of the AV data.
A data block in which management information for managing a reproduction mode is registered.
【請求項5】 前記請求項4に記載のデータ記録再生装
置において、 前記AVデータの管理情報が登録されているデータブロッ
クのコピーを、バックアップとしてファイル内に登録す
るとともに、ファイル内の任意の基準位置からこの管理
情報のバックアップのデータブロックへのオフセット値
を前記オフセットデータブロックへ登録することを特徴
とするデータ記録再生装置。
5. The data recording / reproducing apparatus according to claim 4, wherein a copy of the data block in which the management information of the AV data is registered is registered in a file as a backup, and an arbitrary reference in the file is registered. A data recording / reproducing apparatus, wherein an offset value from a position to a backup data block of the management information is registered in the offset data block.
【請求項6】 前記請求項1乃至5のいずれかに記載の
データ記録再生装置において、 前記再生手段により読み出された再生データの異常を検
出する異常検出手段と、 前記異常検出手段により再生データの異常が検出された
時、前記オフセットデータブロックに登録されたオフセ
ット値に基づき、任意のデータブロックを検索する異常
時検索手段とを備えたことを特徴とするデータ記録再生
装置。
6. The data recording / reproducing apparatus according to claim 1, wherein an abnormality detecting unit that detects an abnormality of the reproduced data read by the reproducing unit, and the reproduced data is read by the abnormality detecting unit. A data recording / reproducing apparatus comprising: an abnormal time search means for searching an arbitrary data block based on the offset value registered in the offset data block when the abnormality is detected.
【請求項7】 前記請求項6に記載のデータ記録再生装
置において、 前記異常時検索手段は、前記異常検出手段によりAVデー
タの管理情報が登録されているオリジナルのデータブロ
ックに異常が検出された時、前記オフセットデータブロ
ックに登録されたオフセット値に基づき、該AVデータの
管理情報が登録されているバックアップのデータブロッ
クを検索し、この管理情報のバックアップのデータブロ
ックに基づいて、AVデータを再生することを特徴とする
データ記録再生装置。
7. The data recording / reproducing apparatus according to claim 6, wherein the abnormality detecting means detects an abnormality in an original data block in which AV data management information is registered by the abnormality detecting means. At this time, a backup data block in which the management information of the AV data is registered is searched based on the offset value registered in the offset data block, and the AV data is reproduced based on the backup data block of the management information. A data recording / reproducing apparatus characterized in that:
【請求項8】 前記請求項7に記載のデータ記録再生装
置において、 前記AVデータの管理情報が登録されているバックアップ
のデータブロックを用いて、前記異常が検出されたAVデ
ータの管理情報が登録されているオリジナルのデータブ
ロックを復旧させることを特徴とするデータ記録再生装
置。
8. The data recording / reproducing apparatus according to claim 7, wherein the management information of the AV data in which the abnormality is detected is registered using a backup data block in which the management information of the AV data is registered. A data recording / reproducing apparatus for recovering an original data block that has been set.
【請求項9】 前記請求項6乃至8のいずれかに記載の
データ記録再生装置において、 前記異常時検索手段は、前記異常検出手段によりデータ
ブロックの管理情報に異常が検出された時、前記オフセ
ットデータブロックに登録されたオフセット値を用い
て、前記異常が検出されたデータブロックの管理情報を
復旧させることを特徴とするデータ記録再生装置。
9. The data recording / reproducing apparatus according to claim 6, wherein said abnormal time searching means is configured to detect said offset when said abnormality detecting means detects an abnormality in data block management information. A data recording / reproducing apparatus for recovering management information of a data block in which the abnormality is detected, using an offset value registered in the data block.
【請求項10】 データ及び該データのサイズや個数、
種類を含む管理情報からなるデータブロック単位で、各
種データが登録されたファイルを記録媒体に記録する記
録手段と、 前記データブロック中の管理情報内のデータサイズに基
づき、後続するデータブロックの先頭位置を得て、後続
するデータブロックを読み出す再生手段と、 前記再生手段により読み出されたデータブロック中の管
理情報内のデータ種類に基づき、ファイル内のデータブ
ロックを検索する通常検索手段とを備えたデータ記録再
生装置において、 前記ファイル外に存在するデータの所在が登録された外
部参照データブロックをファイルの任意の位置に登録し
たことを特徴とするデータ記録再生装置。
10. Data, the size and number of the data,
Recording means for recording, on a recording medium, a file in which various data are registered in units of data blocks comprising management information including a type; and a head position of a subsequent data block based on a data size in the management information in the data block. And a reproducing means for reading out a subsequent data block, and a normal search means for searching for a data block in a file based on a data type in management information in the data block read by the reproducing means. In the data recording / reproducing apparatus, an external reference data block in which the location of data existing outside the file is registered is registered at an arbitrary position in the file.
【請求項11】 前記請求項10に記載のデータ記録再
生装置において、 前記データブロックは、AVデータが登録されているデー
タブロックと、そのAVデータのデータブロックの記録・
再生の形態を管理する管理情報が登録されているデータ
ブロックとを含むことを特徴とするデータ記録再生装
置。
11. The data recording / reproducing apparatus according to claim 10, wherein the data block includes a data block in which AV data is registered and a data block of the AV data.
A data block in which management information for managing a reproduction mode is registered.
【請求項12】 前記請求項11に記載のデータ記録再
生装置において、 前記AVデータの管理情報が登録されているデータブロッ
クのコピーを、バックアップとしてファイル外に登録す
るとともに、この管理情報のバックアップのデータブロ
ックの所在を前記外部参照データブロックへ登録するこ
とを特徴とするデータ記録再生装置。
12. The data recording / reproducing apparatus according to claim 11, wherein a copy of a data block in which the management information of the AV data is registered is registered outside the file as a backup, and the backup of the management information is A data recording / reproducing apparatus, wherein the location of a data block is registered in the external reference data block.
JP2001005827A 2000-12-08 2001-01-15 Data recording and reproducing device Pending JP2002237139A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001005827A JP2002237139A (en) 2000-12-08 2001-01-15 Data recording and reproducing device

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2000373640 2000-12-08
JP2000-373640 2000-12-08
JP2001005827A JP2002237139A (en) 2000-12-08 2001-01-15 Data recording and reproducing device

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2008105177A Division JP4593645B2 (en) 2000-12-08 2008-04-14 Data recording apparatus and data reproducing apparatus

Publications (2)

Publication Number Publication Date
JP2002237139A true JP2002237139A (en) 2002-08-23
JP2002237139A5 JP2002237139A5 (en) 2008-05-29

Family

ID=26605469

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001005827A Pending JP2002237139A (en) 2000-12-08 2001-01-15 Data recording and reproducing device

Country Status (1)

Country Link
JP (1) JP2002237139A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1526536A1 (en) * 2002-08-02 2005-04-27 Sony Corporation Recording device and method, salvage device and method, and program
JP2007122339A (en) * 2005-10-27 2007-05-17 Sony Corp File restoration method, file restoration program, and recording medium
JP2008176931A (en) * 2000-12-08 2008-07-31 Sharp Corp Data recording device and data reproducing device
US11201908B2 (en) * 2014-02-05 2021-12-14 Seon Design (Usa) Corp. Uploading data from mobile devices

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008176931A (en) * 2000-12-08 2008-07-31 Sharp Corp Data recording device and data reproducing device
JP2010238352A (en) * 2000-12-08 2010-10-21 Sharp Corp Data recording device and data reproducing device
JP4593645B2 (en) * 2000-12-08 2010-12-08 シャープ株式会社 Data recording apparatus and data reproducing apparatus
EP1526536A1 (en) * 2002-08-02 2005-04-27 Sony Corporation Recording device and method, salvage device and method, and program
EP1526536A4 (en) * 2002-08-02 2005-11-02 Sony Corp Recording device and method, salvage device and method, and program
US7609942B2 (en) 2002-08-02 2009-10-27 Sony Corporation Recording device and method, salvage device and method, and program
JP2007122339A (en) * 2005-10-27 2007-05-17 Sony Corp File restoration method, file restoration program, and recording medium
US11201908B2 (en) * 2014-02-05 2021-12-14 Seon Design (Usa) Corp. Uploading data from mobile devices

Similar Documents

Publication Publication Date Title
US8538243B2 (en) Method and apparatus for recording manufacturer information on a recording medium and for determining whether the manufacturer information is effective
KR100288203B1 (en) Real time data recording method
US20040184775A1 (en) Recording/reproducing apparatus, recording/reproducing method, computer program providing medium, and recording medium
JP5064531B2 (en) Data recording apparatus and data reproducing apparatus
US7657562B2 (en) Data processing apparatus and data processing method
US7813248B2 (en) Method and apparatus for protecting data when a recording process has failed
JP2002237139A (en) Data recording and reproducing device
US20020145957A1 (en) File managing method for a recorded digital stream
JP4561872B2 (en) Recording / reproducing apparatus and information processing method
JP2003219326A (en) Image reproducing apparatus
JP2000215201A (en) Multimedia information providing system
US20090169185A1 (en) Optical disk playback apparatus and method for managing data in optical disk playback apparatus
JP4155878B2 (en) Information recording / reproducing device
KR102422450B1 (en) Method for managing media data and sensing data
JP2003346459A (en) Data management method for information recording medium, and information recording medium
US20060155767A1 (en) Information recording-and-reproducing method and information recording-and-reproducing apparatus with play-list copy function
JP2003263860A (en) Storage medium where data can additionally be written after finalization, and device and method for recording and reproducing the same
JP2008085683A (en) Still image file recording and editing device
JPH11126462A (en) Tape recording medium, control information generating device, and control information decoding device
JP2009181603A (en) Digital information recording/reproducing system
JP2000322203A (en) Data recovery method for magnetic tape device
JP2003209770A (en) Image recording and reproducing apparatus
JPH0368043A (en) Edition number control system for electronic filing system
JP2004318944A (en) Recorder
KR20040081993A (en) Method for overwriting data in digital recorder

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080110

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20080110

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080415

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080724

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080729

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080924

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20081021