JP2013037612A - Recording device and recording method - Google Patents

Recording device and recording method Download PDF

Info

Publication number
JP2013037612A
JP2013037612A JP2011174827A JP2011174827A JP2013037612A JP 2013037612 A JP2013037612 A JP 2013037612A JP 2011174827 A JP2011174827 A JP 2011174827A JP 2011174827 A JP2011174827 A JP 2011174827A JP 2013037612 A JP2013037612 A JP 2013037612A
Authority
JP
Japan
Prior art keywords
recording
file
data
area
recorded
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2011174827A
Other languages
Japanese (ja)
Other versions
JP5633484B2 (en
Inventor
Hideki Takei
秀記 武井
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.)
JVCKenwood Corp
Original Assignee
JVCKenwood 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 JVCKenwood Corp filed Critical JVCKenwood Corp
Priority to JP2011174827A priority Critical patent/JP5633484B2/en
Publication of JP2013037612A publication Critical patent/JP2013037612A/en
Application granted granted Critical
Publication of JP5633484B2 publication Critical patent/JP5633484B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a recording device for sufficiently developing the recording performance of a recording medium, increasing the use efficiency of a recording area, and reducing the possibility that temporarily recorded data are lost.SOLUTION: First and second areas Art and Anrt of allocation block units consisting of a plurality of clusters are set for the data area of a recording medium. The set of actual data and an accessory file to be made accessory to the actual data according as the actual data are recorded is recorded by the allocation block units in the first area Art. When the accessory file recorded in the first area is updated irrelevantly with the recording of the actual data, the updated accessory file is recorded by cluster units in the second area Anrt.

Description

本発明は、フラッシュメモリ等の記録媒体に映像データや音声データ等のデータを記録する記録装置及び記録方法に関する。   The present invention relates to a recording apparatus and a recording method for recording data such as video data and audio data on a recording medium such as a flash memory.

ビデオカメラ等の記録装置においては、機械的な駆動部が不要なフラッシュメモリが広く利用されるようになってきた。特に、NAND型フラッシュメモリは大容量化が容易であり、映像データのような大きなサイズのデータを記録する記録装置に用いるのに好適である。フラッシュメモリ等の記録媒体は、ファイルベースの論理的な構造(ファイルシステム)で初期化されて、データが記録される。ファイルシステムとしては、FAT(File Allocation Table)ファイルシステムが多く採用されている。FATファイルシステムでは、クラスタと呼ばれる単位でデータを記録する。   In recording devices such as video cameras, flash memories that do not require a mechanical drive unit have been widely used. In particular, the NAND flash memory can be easily increased in capacity, and is suitable for use in a recording apparatus that records data of a large size such as video data. A recording medium such as a flash memory is initialized with a file-based logical structure (file system) to record data. As a file system, a FAT (File Allocation Table) file system is often used. In the FAT file system, data is recorded in units called clusters.

国際公開第2005/076275号パンフレットInternational Publication No. 2005/076275 Pamphlet 特開2005−190331号公報JP 2005-190331 A

フラッシュメモリの記録領域は、イレーズブロック(消去ブロック)と称される物理的な単位で構成され、記録媒体内部の管理はイレーズブロック単位で行われる。また、記録媒体特有の論理ブロック(以下、アロケーションブロック)を高速記録のための記録単位とすることが多い。アロケーションブロックは複数のクラスタから構成され、1つのアロケーションブロック内には1個以上のイレーズブロックが含まれる。フラッシュメモリに記録するデータとしては、映像データや音声データ等の実データの他に、実データに付随させる付随ファイルがある。付随ファイルとしては、実データに関するメタデータである補助ファイルや、実データを管理するための管理ファイルがある。付随ファイル(補助ファイルや管理ファイル)は、実データと比較してファイルサイズが小さい。   The recording area of the flash memory is configured in physical units called erase blocks (erase blocks), and management inside the recording medium is performed in units of erase blocks. In many cases, a logical block (hereinafter referred to as an allocation block) specific to a recording medium is used as a recording unit for high-speed recording. The allocation block is composed of a plurality of clusters, and one or more erase blocks are included in one allocation block. As data to be recorded in the flash memory, in addition to actual data such as video data and audio data, there are accompanying files attached to the actual data. As the accompanying file, there are an auxiliary file, which is metadata related to actual data, and a management file for managing actual data. The accompanying file (auxiliary file or management file) has a smaller file size than the actual data.

記録媒体に各種のデータ(実データ,補助ファイル,管理ファイル)を記録する場合、記録媒体が有している高い記録性能を十分に引き出すように記録することが望まれる。また、ファイルサイズの大きい実データとファイルサイズの小さい付随データとを空き領域を少なくして効率的に記録することにより、記録領域の使用効率を高めることも望まれる。さらに、一旦記録したデータが何らかの理由で意図せず消失する可能性を低くすることも望まれる。   When various types of data (actual data, auxiliary files, management files) are recorded on the recording medium, it is desirable to record so that the high recording performance possessed by the recording medium can be sufficiently obtained. It is also desirable to increase the use efficiency of the recording area by efficiently recording actual data having a large file size and accompanying data having a small file size while reducing the free area. It is also desirable to reduce the possibility that data once recorded is unintentionally lost for some reason.

本発明はこのような要望に対応するため、記録媒体の記録性能を十分に引き出すことができ、記録領域の使用効率を高めることができ、一旦記録したデータが消失する可能性を低くすることができる記録装置及び記録方法を提供することを目的とする。   In order to meet such a demand, the present invention can sufficiently bring out the recording performance of the recording medium, increase the use efficiency of the recording area, and reduce the possibility that data once recorded is lost. It is an object to provide a recording apparatus and a recording method that can be used.

本発明は、上述した従来の技術の課題を解決するため、記録媒体(4)に対するデータの記録を制御する制御部(5)を備え、前記制御部は、前記記録媒体のデータ領域に対して、複数のクラスタよりなるアロケーションブロック単位の第1及び第2の領域を設定する設定手段と、前記第1の領域内に、実データと、この実データを記録するのに対応させて前記実データに対して付随させる付随ファイルとの組をアロケーションブロック単位で記録する第1の記録手段と、前記第1の領域に記録された前記付随ファイルを、前記実データの記録とは無関係に更新させた際に、更新させた付随ファイルを前記第2の領域内にクラスタ単位で記録する第2の記録手段とを有することを特徴とする記録装置を提供する。   The present invention includes a control unit (5) for controlling the recording of data on the recording medium (4) in order to solve the above-described problems of the conventional technology, and the control unit controls the data area of the recording medium. Setting means for setting first and second areas in units of allocation blocks composed of a plurality of clusters; real data in the first area; and the real data corresponding to recording the real data And a first recording means for recording a set of accompanying files to be attached to each of the allocation blocks, and the accompanying file recorded in the first area is updated regardless of the recording of the actual data. In this case, there is provided a recording apparatus comprising: a second recording unit that records the updated accompanying file in a cluster unit in the second area.

上記の記録装置において、前記付随ファイルが、前記実データにおけるそれぞれのクリップに付随させるそれぞれのクリップのメタデータである補助ファイルと、前記実データの全体を管理する管理ファイルとを含む場合には、前記第2の記録手段は、前記補助ファイルを更新させた際には更新させた補助ファイルを前記第2の領域内に記録し、前記管理ファイルを更新させた際には更新させた管理ファイルを前記第2の領域内に記録する。   In the recording apparatus, when the accompanying file includes an auxiliary file that is metadata of each clip attached to each clip in the actual data, and a management file that manages the entire actual data, The second recording means records the updated auxiliary file in the second area when the auxiliary file is updated, and updates the management file when the management file is updated. Recording is performed in the second area.

上記の記録装置において、前記記録媒体は、それぞれのクラスタに対応させたエントリを記録する管理テーブルを有し、前記第2の記録手段が前記更新させた付随ファイルを前記第2の領域内に記録するのに併せて、更新前の付随ファイルを記録しているクラスタに対応するエントリを消去する消去手段をさらに有することが好ましい。   In the above recording apparatus, the recording medium has a management table for recording entries corresponding to the respective clusters, and the second recording unit records the updated associated file in the second area. In addition to this, it is preferable to further include an erasing unit for erasing the entry corresponding to the cluster in which the accompanying file before update is recorded.

また、本発明は、上述した従来の技術の課題を解決するため、記録媒体のデータ領域に対して、複数のクラスタよりなるアロケーションブロック単位の第1及び第2の領域を設定し、前記記録媒体に実データを記録するに際し、前記実データと、前記実データを記録するのに対応させてリアルタイムに記録すべきファイルであり、前記実データに対して付随させる付随ファイルとの組をリアルタイムデータとし、このリアルタイムデータを前記第1の領域内にアロケーションブロック単位で記録し、前記第1の領域に記録された前記付随ファイルを前記リアルタイムデータの記録後に更新させた際に、更新させた付随ファイルを非リアルタイムデータとし、この非リアルタイムデータ前記第2の領域内にクラスタ単位で記録することを特徴とする記録方法を提供する。   In addition, in order to solve the above-described problems of the conventional technology, the present invention sets the first and second areas in allocation block units composed of a plurality of clusters for the data area of the recording medium, and the recording medium When recording real data, a set of the real data and a file to be recorded in real time corresponding to the recording of the real data is a real time data. When the real-time data is recorded in the first area in units of allocation blocks and the associated file recorded in the first area is updated after the real-time data is recorded, Non-real-time data is recorded, and the non-real-time data is recorded in clusters in the second area. To provide that the recording method.

本発明の記録装置及び記録方法によれば、記録媒体の記録性能を十分に引き出すことができ、記録領域の使用効率を高めることができ、一旦記録したデータが消失する可能性を低くすることができる。   According to the recording apparatus and the recording method of the present invention, the recording performance of the recording medium can be sufficiently obtained, the use efficiency of the recording area can be increased, and the possibility that the data once recorded is lost can be reduced. it can.

本発明の記録装置の一実施形態を示すブロック図である。1 is a block diagram showing an embodiment of a recording apparatus of the present invention. 図1中の記録媒体4の論理構造を示す図である。It is a figure which shows the logical structure of the recording medium 4 in FIG. 図2中のデータ領域の具体的な構造の第1の例を示す図である。It is a figure which shows the 1st example of the specific structure of the data area | region in FIG. 図2中のデータ領域の具体的な構造の第2の例を示す図である。It is a figure which shows the 2nd example of the specific structure of the data area | region in FIG. データ領域にリアルタイムデータを追加して記録していく状態を説明するための図である。It is a figure for demonstrating the state which adds and records real-time data in a data area. 補助ファイルを更新する際の動作を説明するための図である。It is a figure for demonstrating the operation | movement at the time of updating an auxiliary file. 管理ファイルを更新する際の動作を説明するための図である。It is a figure for demonstrating the operation | movement at the time of updating a management file. 一実施形態の記録動作を説明するためのフローチャートである。It is a flowchart for demonstrating the recording operation of one Embodiment.

以下、本発明の記録装置及び記録方法の一実施形態について、添付図面を参照して説明する。図1に示す一実施形態の記録装置は、ビデオカメラを例にしているが、本発明はビデオカメラに限定されるものではない。図1においては、音声データの処理及び記録については省略し、記録媒体4に記録する実データを動画データとして説明する。実データは、静止画データや音声データでもよいし、映像データ及び音声データ以外のプログラムデータ等、任意のデータでよい。   Hereinafter, an embodiment of a recording apparatus and a recording method of the present invention will be described with reference to the accompanying drawings. The recording apparatus according to the embodiment shown in FIG. 1 uses a video camera as an example, but the present invention is not limited to the video camera. In FIG. 1, processing and recording of audio data are omitted, and actual data recorded on the recording medium 4 will be described as moving image data. The actual data may be still image data or audio data, or arbitrary data such as program data other than video data and audio data.

図1において、図示していない被写体からの破線で示す光は撮像部1に入射されて、被写体が撮像される。撮像部1から出力された撮像信号は映像信号処理部2に入力されて、A/D変換及び各種の信号処理が行われる。映像信号処理部2から出力された動画データは一時記憶部3に一時的に記憶される。制御部5は、一時記憶部3及び記録媒体4のデータの書き込み及び読み出しを制御する。一時記憶部3に記憶された動画データは、記録媒体4へと入力されて記録される。記録媒体4に動画データを記録する際には、動画データに関するメタデータである補助ファイルや、動画データを管理するための管理ファイルも併せて記録される。記録媒体4は一例としてフラッシュメモリである。補助ファイル及び管理ファイルは一例としてXML(eXtensible Markup Language)ファイルである。   In FIG. 1, light indicated by a broken line from a subject (not shown) enters the imaging unit 1 and the subject is imaged. The imaging signal output from the imaging unit 1 is input to the video signal processing unit 2, and A / D conversion and various types of signal processing are performed. The moving image data output from the video signal processing unit 2 is temporarily stored in the temporary storage unit 3. The control unit 5 controls writing and reading of data in the temporary storage unit 3 and the recording medium 4. The moving image data stored in the temporary storage unit 3 is input to the recording medium 4 and recorded. When moving image data is recorded on the recording medium 4, an auxiliary file that is metadata related to the moving image data and a management file for managing the moving image data are also recorded. The recording medium 4 is a flash memory as an example. For example, the auxiliary file and the management file are XML (eXtensible Markup Language) files.

ユーザは、操作部6を操作することによって、記録媒体4に記録した動画データを消去することができる。制御部5は、動画データを消去した場合には管理ファイルを更新する。また、ユーザは、操作部6を操作することによって、動画データを記録した撮影者等の情報を新たに追加したり、既に記録されている情報を書き換えたりすることができる。撮影者等の情報は補助ファイルとして記録される。   The user can erase the moving image data recorded on the recording medium 4 by operating the operation unit 6. The control unit 5 updates the management file when the moving image data is deleted. Further, by operating the operation unit 6, the user can newly add information such as a photographer who has recorded the moving image data, or can rewrite already recorded information. Information such as the photographer is recorded as an auxiliary file.

図2を用いて、記録媒体4の論理構造について説明する。図2に示すように、記録媒体4にはアドレス0〜Mの複数のセクタに区分けされている。先頭アドレスであるアドレス0のセクタはMBR(Master Boot Record)となっている。所定のアドレスのセクタはPBR(Partition Boot Record)となっている。複数のセクタによってFAT領域(管理テーブル)が設けられ、複数のセクタによって実データ,補助ファイル,管理ファイルを記録するデータ領域(記録可能領域)が設けられている。FAT領域はエントリ2〜Nの複数のエントリを含む。データ領域は複数のクラスタを含む。エントリはクラスタと1対1で対応している。   The logical structure of the recording medium 4 will be described with reference to FIG. As shown in FIG. 2, the recording medium 4 is divided into a plurality of sectors having addresses 0 to M. The sector at address 0, which is the start address, is MBR (Master Boot Record). A sector at a predetermined address is a PBR (Partition Boot Record). A FAT area (management table) is provided by a plurality of sectors, and a data area (recordable area) for recording actual data, auxiliary files, and management files is provided by a plurality of sectors. The FAT area includes a plurality of entries 2 to N. The data area includes a plurality of clusters. The entry has a one-to-one correspondence with the cluster.

本実施形態においては、記録媒体4に記録するデータをリアルタイムデータと非リアルタイムデータとに分け、制御部5による制御によって記録媒体4にデータを記録する際の記録の仕方を異ならせている。本実施形態であるビデオカメラの場合、撮像した動画の記録を開始して終了するまでのいわゆる録画中に記録する実データと、録画中に記録する実データに関連して記録する補助ファイル及び管理ファイルとをリアルタイムデータとする。録画の終了後に、実データの記録とは無関係に、既に記録されている補助ファイルや管理ファイルを更新した場合に新たに記録する補助ファイルや管理ファイルを非リアルタイムデータとする。   In the present embodiment, data to be recorded on the recording medium 4 is divided into real-time data and non-real-time data, and the recording method when data is recorded on the recording medium 4 is controlled by control by the control unit 5. In the case of the video camera according to the present embodiment, actual data recorded during so-called recording from the start to the end of recording of the captured video, and auxiliary files and management recorded in association with the actual data recorded during recording Let files be real-time data. After the recording is finished, regardless of the actual data recording, when the already recorded auxiliary file or management file is updated, the newly recorded auxiliary file or management file is set as non-real time data.

本実施形態においては、図3に示すように、データ領域に対して、リアルタイムデータを記録するリアルタイムデータ記録エリアArtと、非リアルタイムデータを記録する非リアルタイムデータ記録エリアAnrtとを分けて設定している。非リアルタイムデータ記録エリアAnrtの位置は特に限定されるものではない。図3の例では、最終アドレス側に非リアルタイムデータ記録エリアAnrtを設けている。図4に示すように、最初のアドレス側と最終アドレス側の双方に2つの非リアルタイムデータ記録エリアAnrt1,Anrt2を設けてもよい。   In the present embodiment, as shown in FIG. 3, a real-time data recording area Art for recording real-time data and a non-real-time data recording area Anrt for recording non-real time data are set separately for the data area. Yes. The position of the non-real time data recording area Anrt is not particularly limited. In the example of FIG. 3, a non-real time data recording area Anrt is provided on the final address side. As shown in FIG. 4, two non-real time data recording areas Anrt1 and Anrt2 may be provided on both the first address side and the final address side.

図3,図4において、リアルタイムデータ記録エリアArtと非リアルタイムデータ記録エリアAnrt(Anrt1,Anrt2)におけるそれぞれの区画は、クラスタである。横方向一列の複数のクラスタが1つのアロケーションブロックを構成する。リアルタイムデータ記録エリアArtと非リアルタイムデータ記録エリアAnrtはそれぞれ1または複数のアロケーションブロックよりなるアロケーションブロック単位で設定されている。非リアルタイムデータ記録エリアAnrtのアロケーションブロック数は、リアルタイムデータ記録エリアArtのアロケーションブロック数より大幅に少なくてよい。なお、クラスタを示す区画を、リアルタイムデータ記録エリアArtでは破線で、非リアルタイムデータ記録エリアAnrt(Anrt1,Anrt2)では実線で示しているが、物的な構造の違いを意味するものではない。   3 and 4, each section in the real-time data recording area Art and the non-real-time data recording area Anrt (Anrt1, Anrt2) is a cluster. A plurality of clusters in a horizontal row constitute one allocation block. The real-time data recording area Art and the non-real-time data recording area Anrt are set in units of allocation blocks each consisting of one or a plurality of allocation blocks. The number of allocation blocks in the non-real-time data recording area Ant may be significantly smaller than the number of allocation blocks in the real-time data recording area Art. The section indicating the cluster is indicated by a broken line in the real-time data recording area Art and by a solid line in the non-real-time data recording area Anrt (Anrt1, Anrt2), but does not mean a difference in physical structure.

図5を用いて、録画中に、リアルタイムデータ記録エリアArtにリアルタイムデータを順次追加して記録していく際の動作について説明する。制御部5は、リアルタイムデータ記録エリアArtにデータをアロケーションブロック単位で記録するよう制御する。図5(A)において、動画データDv1は、映像の記録を開始して終了するまでの1つのクリップの実データである。図5(A)の例では、アロケーションブロックB1の全体とアロケーションブロックB2の一部が動画データDv1となっている。   With reference to FIG. 5, an operation when recording is performed by sequentially adding real-time data to the real-time data recording area Art during recording will be described. The control unit 5 controls to record data in allocation block units in the real-time data recording area Art. In FIG. 5A, moving image data Dv1 is actual data of one clip from the start to the end of video recording. In the example of FIG. 5A, the entire allocation block B1 and a part of the allocation block B2 are moving image data Dv1.

制御部5は、アロケーションブロックB2において、動画データDv1の最終のクラスタの次のクラスタに、動画データDv1に関するメタデータである補助ファイルFs1を記録するよう制御する。補助ファイルFs1は1つのクリップである動画データDv1に関するXMLファイルである。また、制御部5は、アロケーションブロックB2において、補助ファイルFs1の次のクラスタに、リアルタイムデータ記録エリアArtに記録している実データの全体を管理する管理ファイルFm1を記録するよう制御する。   In the allocation block B2, the control unit 5 controls to record the auxiliary file Fs1, which is metadata related to the moving image data Dv1, in the cluster next to the final cluster of the moving image data Dv1. The auxiliary file Fs1 is an XML file related to the moving image data Dv1 that is one clip. In addition, the control unit 5 controls the allocation block B2 to record the management file Fm1 for managing the entire real data recorded in the real-time data recording area Art in the next cluster of the auxiliary file Fs1.

図5(B)は、図5(A)に対して次のクリップである動画データDv2を追加した状態を示している。上記のように、データをアロケーションブロック単位で記録するので、動画データDv2はアロケーションブロックB2の空き領域から記録するのではなく、アロケーションブロックB3から記録される。図5(B)の例では、アロケーションブロックB3の全体とアロケーションブロックB4の一部が動画データDv2となっている。制御部5は、アロケーションブロックB4において、動画データDv2の最終のクラスタの次のクラスタに、動画データDv2に関するメタデータである補助ファイルFs2を記録するよう制御する。   FIG. 5B shows a state where moving image data Dv2, which is the next clip, is added to FIG. 5A. As described above, since the data is recorded in allocation block units, the moving image data Dv2 is recorded not from the free area of the allocation block B2, but from the allocation block B3. In the example of FIG. 5B, the entire allocation block B3 and a part of the allocation block B4 are moving image data Dv2. In the allocation block B4, the control unit 5 controls to record the auxiliary file Fs2, which is metadata related to the moving image data Dv2, in the cluster next to the final cluster of the moving image data Dv2.

管理ファイルFm1は実データの全体を管理するファイルであり、図5(B)に示すように新たに動画データDv2が追加された場合には、管理ファイルを書き換えることが必要となる。そこで、制御部5は、アロケーションブロックB4において、補助ファイルFs2の次のクラスタに、実データの全体、即ち、動画データDv1,Dv2を管理する管理ファイルFm2を記録するよう制御する。管理ファイルFm2を記録したことにより管理ファイルFm1は不要となり、×印で示すように、管理ファイルFm1は消去される。厳密には、制御部5は、管理ファイルFm1自体を消去するのではなく、管理ファイルFm1を記録するクラスタに対応したエントリを消去する。管理ファイルFm1を記録するクラスタに対応したエントリを消去することによって、見かけ上、管理ファイルFm1が消去されることになる。   The management file Fm1 is a file for managing the entire actual data. When the moving image data Dv2 is newly added as shown in FIG. 5B, it is necessary to rewrite the management file. Therefore, the control unit 5 controls the allocation block B4 to record the management data Fm2 for managing the entire actual data, that is, the moving image data Dv1 and Dv2, in the next cluster of the auxiliary file Fs2. Since the management file Fm2 is recorded, the management file Fm1 becomes unnecessary, and the management file Fm1 is deleted as indicated by a cross. Strictly speaking, the control unit 5 does not delete the management file Fm1 itself, but deletes the entry corresponding to the cluster that records the management file Fm1. By deleting the entry corresponding to the cluster that records the management file Fm1, the management file Fm1 is apparently deleted.

さらに、図5(C)は、図5(B)に対して次のクリップである動画データDv3を追加した状態を示している。動画データDv3はアロケーションブロックB5から記録される。図5(C)の例では、アロケーションブロックB5の全体とアロケーションブロックB6の一部が動画データDv3となっている。制御部5は、アロケーションブロックB6において、動画データDv3の最終のクラスタの次のクラスタに、動画データDv3に関するメタデータである補助ファイルFs3を記録するよう制御する。   Further, FIG. 5C shows a state in which moving image data Dv3 which is the next clip is added to FIG. 5B. The moving image data Dv3 is recorded from the allocation block B5. In the example of FIG. 5C, the entire allocation block B5 and a part of the allocation block B6 are moving image data Dv3. In the allocation block B6, the control unit 5 controls to record the auxiliary file Fs3, which is metadata related to the moving image data Dv3, in a cluster next to the final cluster of the moving image data Dv3.

動画データDv3が追加されたことにより、制御部5は、補助ファイルFs3の次のクラスタに、実データの全体、即ち、動画データDv1,Dv2,Dv3を管理する管理ファイルFm3を記録するよう制御する。図5(B)と同様に、×印で示すように、管理ファイルFm2は消去される。厳密には、制御部5は、管理ファイルFm2自体を消去するのではなく、管理ファイルFm2を記録するクラスタに対応したエントリを消去する。図5(C)では、見かけ上、管理ファイルFm1,Fm2が消去されている。   Due to the addition of the moving image data Dv3, the control unit 5 controls to record the entire actual data, that is, the management file Fm3 for managing the moving image data Dv1, Dv2, and Dv3 in the next cluster of the auxiliary file Fs3. . Similar to FIG. 5B, the management file Fm2 is erased as indicated by a cross. Strictly speaking, the control unit 5 does not delete the management file Fm2 itself, but deletes the entry corresponding to the cluster that records the management file Fm2. In FIG. 5C, the management files Fm1 and Fm2 are apparently deleted.

次に、図6を用いて、録画の終了後に、既に記録されている補助ファイルを更新した場合の動作について説明する。図6では、非リアルタイムデータ記録エリアAnrtが図3のように設けられている場合について示す。図6(A)は、リアルタイムデータ記録エリアArtに記録されているリアルタイムデータが、図5(C)の状態である場合を示している。例えば、ユーザが操作部6を操作して動画データDv1よりなるクリップの撮影者を示す情報を変更したとする。   Next, the operation when the auxiliary file already recorded is updated after the end of recording will be described with reference to FIG. FIG. 6 shows a case where the non-real time data recording area Anrt is provided as shown in FIG. FIG. 6A shows a case where the real-time data recorded in the real-time data recording area Art is in the state shown in FIG. For example, it is assumed that the user operates the operation unit 6 and changes information indicating a photographer of a clip made of moving image data Dv1.

撮影者を示す情報を変更すると、補助ファイルFs1が更新される。制御部5は、図6(B)に示すように、補助ファイルFs1を更新する場合には、非リアルタイムデータ記録エリアAnrt内のクラスタに、補助ファイルFs1を更新させた補助ファイルFs10を記録するよう制御する。併せて、制御部5は、補助ファイルFs1を記録するクラスタに対応したエントリを消去することによって、見かけ上、管理ファイルFs1を消去する。図6(B)では、既に消去されていた管理ファイルFm1に加えて、×印で示すように補助ファイルFs1も消去された状態となる。   When the information indicating the photographer is changed, the auxiliary file Fs1 is updated. As shown in FIG. 6B, when the auxiliary file Fs1 is updated, the control unit 5 records the auxiliary file Fs10 obtained by updating the auxiliary file Fs1 in the cluster in the non-real-time data recording area Anrt. Control. At the same time, the control unit 5 apparently deletes the management file Fs1 by deleting the entry corresponding to the cluster that records the auxiliary file Fs1. In FIG. 6B, in addition to the management file Fm1 that has already been deleted, the auxiliary file Fs1 is also deleted as indicated by a cross.

さらに、図7を用いて、図6(B)に引き続き、既に記録されている一部の実データを消去した場合の動作について説明する。例えば、ユーザが操作部6を操作して動画データDv1を消去する操作を行ったとする。制御部5は、図7(B)に示すように、動画データDv1を消去する操作により、動画データDv1のクラスタに対応したエントリを消去することによって、見かけ上、動画データDv1と補助ファイルFs1を消去する。   Further, using FIG. 7, the operation when a part of the already recorded real data is erased will be described following FIG. 6B. For example, assume that the user operates the operation unit 6 to perform an operation of deleting the moving image data Dv1. As shown in FIG. 7B, the controller 5 apparently deletes the moving image data Dv1 and the auxiliary file Fs1 by deleting the entry corresponding to the cluster of the moving image data Dv1 by the operation of deleting the moving image data Dv1. to erase.

動画データDv1を消去することによって、管理ファイルFm3を更新する必要があることから、制御部5は、図7(B)に示すように、非リアルタイムデータ記録エリアAnrt内のクラスタに、管理ファイルFm3を更新させた管理ファイルFm30を記録するよう制御する。併せて、制御部5は、管理ファイルFm3を記録するクラスタに対応したエントリを消去することによって、見かけ上、管理ファイルFm3を消去する。制御部5は、非リアルタイムデータ記録エリアAnrt内に、付随ファイル(補助ファイル及び管理ファイル)をクラスタ単位で記録するよう制御する。   Since it is necessary to update the management file Fm3 by deleting the moving image data Dv1, the control unit 5 adds the management file Fm3 to the cluster in the non-real-time data recording area Anrt as shown in FIG. 7B. The management file Fm30 that has been updated is recorded. At the same time, the control unit 5 apparently deletes the management file Fm3 by deleting the entry corresponding to the cluster that records the management file Fm3. The control unit 5 controls to record accompanying files (auxiliary files and management files) in units of clusters in the non-real-time data recording area Anrt.

以上のように、本実施形態においては、図5を用いて説明したように、実データ,補助ファイル,管理ファイルの組をアロケーションブロック単位で順次に記録するので、記録媒体4が有している高い記録性能を十分に引き出すことが可能である。また、実データ,補助ファイル,管理ファイルを組にしてアロケーションブロック単位で記録するので、空き領域を少なくすることができ、記録領域の使用効率を高めることが可能である。   As described above, in the present embodiment, as described with reference to FIG. 5, the set of actual data, auxiliary files, and management files is sequentially recorded in units of allocation blocks. High recording performance can be fully exploited. In addition, since the actual data, the auxiliary file, and the management file are combined and recorded in units of allocation blocks, the free area can be reduced and the use efficiency of the recording area can be increased.

第1の比較例として、実データ,補助ファイル,管理ファイルをクラスタ単位で順次に記録することが考えられる。この場合には、記録領域の使用効率を高めることができるが、記録性能を十分に引き出すことができない可能性がある。また、第2の比較例として、実データ,補助ファイル,管理ファイルそれぞれをアロケーションブロック単位で順次に記録することが考えられる。この場合には、ファイルサイズの小さい補助ファイルや管理ファイルもアロケーションブロック単位で記録することになるので、記録領域の使用効率が大幅に低くなってしまう。本実施形態では、第1及び第2の比較例と比較して、記録媒体4が有している高い記録性能を十分に引き出すことができ、記録領域の使用効率を高めることもできる。   As a first comparative example, it is conceivable to record actual data, auxiliary files, and management files sequentially in cluster units. In this case, the use efficiency of the recording area can be increased, but there is a possibility that the recording performance cannot be sufficiently obtained. As a second comparative example, it can be considered that actual data, auxiliary files, and management files are sequentially recorded in units of allocation blocks. In this case, since auxiliary files and management files having a small file size are recorded in units of allocation blocks, the use efficiency of the recording area is greatly reduced. In the present embodiment, compared with the first and second comparative examples, the high recording performance of the recording medium 4 can be sufficiently obtained, and the use efficiency of the recording area can be increased.

また、本実施形態においては、図6及び図7を用いて説明したように、録画の終了後に補助ファイルや管理ファイルを更新した際に、更新した補助ファイルや管理ファイルをリアルタイムデータ記録エリアArtではなく、非リアルタイムデータ記録エリアAnrtに記録するので、リアルタイムデータ記録エリアArtに記録した実データ等を意図せず消失する可能性を大幅に低くすることが可能である。   In the present embodiment, as described with reference to FIGS. 6 and 7, when the auxiliary file or management file is updated after the recording is finished, the updated auxiliary file or management file is stored in the real-time data recording area Art. However, since it is recorded in the non-real-time data recording area Ant, it is possible to greatly reduce the possibility that the actual data recorded in the real-time data recording area Art will be lost unintentionally.

仮に、更新した補助ファイルや管理ファイルをリアルタイムデータ記録エリアArtに記録するとすれば、リアルタイムデータ記録エリアArt内のクラスタに補助ファイルや管理ファイルのデータを書き込む際に同一アロケーションブロック内の他のクラスタに影響を及ぼす可能性がある。本実施形態では、更新した補助ファイルや管理ファイルを非リアルタイムデータ記録エリアAnrtに記録するので、リアルタイムデータ記録エリアArt内の他のクラスタに影響を及ぼす可能性はほとんどない。更新前の補助ファイルや管理ファイルを実際に消去するのではなく、エントリを消去するのみであるので、アロケーションブロック内の他のクラスタに影響を及ぼすことはない。   If the updated auxiliary file or management file is recorded in the real-time data recording area Art, then when the auxiliary file or management file data is written to the cluster in the real-time data recording area Art, it is stored in another cluster in the same allocation block. May have an effect. In the present embodiment, since the updated auxiliary file and management file are recorded in the non-real time data recording area Anrt, there is almost no possibility of affecting other clusters in the real time data recording area Art. Since the auxiliary file and the management file before the update are not actually deleted but only the entry is deleted, the other clusters in the allocation block are not affected.

第3の比較例として、実データを記録するエリアと、補助ファイル及び管理ファイルを記録するエリアとを図3と同様に分けることが考えられる。この場合には、実データと、実データに付随すべき補助ファイル及び管理ファイルとが離れた位置に記録されるため、記録性能が低下する可能性があり、好ましくない。   As a third comparative example, it can be considered that an area for recording actual data and an area for recording auxiliary files and management files are divided in the same manner as in FIG. In this case, since the actual data and the auxiliary file and management file to be attached to the actual data are recorded at positions separated from each other, the recording performance may be deteriorated, which is not preferable.

図8のフローチャートを用いて、本実施形態による記録動作について改めて説明する。図8において、制御部5は、ステップS1にて、リアルタイムデータを記録するか否かを判定する。即ち、制御部5は、録画開始の指示がなされたか否かを判定する。リアルタイムデータを記録すると判定されれば(YES)、制御部5は、ステップS2にて、リアルタイムデータ記録エリアArtにリアルタイムデータを記録するよう記録媒体4を制御する。制御部5は、ステップS2の後、ステップS3に移行させる。制御部5は、ステップS1にてリアルタイムデータを記録すると判定されなければ(NO)、ステップS3に移行させる。   The recording operation according to the present embodiment will be described again using the flowchart of FIG. In FIG. 8, the control unit 5 determines whether or not to record real-time data in step S1. That is, the control unit 5 determines whether or not an instruction to start recording has been given. If it is determined that real-time data is to be recorded (YES), the control unit 5 controls the recording medium 4 to record real-time data in the real-time data recording area Art in step S2. The control part 5 makes it transfer to step S3 after step S2. If it is not determined in step S1 that real-time data is to be recorded (NO), the control unit 5 proceeds to step S3.

制御部5は、ステップS3にて、補助ファイルまたは管理ファイルを更新するか否かを判定する。即ち、制御部5は、ユーザによって補助ファイルまたは管理ファイルを更新する操作がなされたか否かを判定する。補助ファイルまたは管理ファイルを更新すると判定されれば(YES)、ステップS4にて、非リアルタイムデータ記録エリアAnrtに更新された補助ファイルまたは管理ファイルを記録し、更新前の補助ファイルまたは管理ファイルのエントリを消去することによって、見かけ上、更新前の補助ファイルまたは管理ファイルを消去する。ステップS3にて補助ファイルまたは管理ファイルを更新すると判定されなければ(NO)、制御部5は、ステップS1に処理を戻す。   In step S3, the control unit 5 determines whether to update the auxiliary file or the management file. That is, the control unit 5 determines whether or not an operation for updating the auxiliary file or the management file has been performed by the user. If it is determined to update the auxiliary file or management file (YES), the updated auxiliary file or management file is recorded in the non-real-time data recording area Anrt in step S4, and the entry of the auxiliary file or management file before the update is recorded. By erasing, the auxiliary file or management file before update is apparently deleted. If it is not determined in step S3 that the auxiliary file or the management file is updated (NO), the control unit 5 returns the process to step S1.

本発明は以上説明した本実施形態に限定されるものではなく、本発明の要旨を逸脱しない範囲において種々変更可能である。記録媒体4としてはフラッシュメモリが好適であるが、図2と同様の論理構造を有するのであれば、他の記録媒体であってもよい。記録媒体4は記録装置に内蔵されていてもよく、着脱自在であってもよい。   The present invention is not limited to the embodiment described above, and various modifications can be made without departing from the scope of the present invention. The recording medium 4 is preferably a flash memory, but may be another recording medium as long as it has the same logical structure as FIG. The recording medium 4 may be built in the recording device or may be detachable.

1 撮像部
2 映像信号処理部
3 一時記憶部
4 記録媒体
5 制御部
6 操作部
DESCRIPTION OF SYMBOLS 1 Imaging part 2 Video signal processing part 3 Temporary storage part 4 Recording medium 5 Control part 6 Operation part

Claims (4)

記録媒体に対するデータの記録を制御する制御部を備え、
前記制御部は、
前記記録媒体のデータ領域に対して、複数のクラスタよりなるアロケーションブロック単位の第1及び第2の領域を設定する設定手段と、
前記第1の領域内に、実データと、この実データを記録するのに対応させて前記実データに対して付随させる付随ファイルとの組をアロケーションブロック単位で記録する第1の記録手段と、
前記第1の領域に記録された前記付随ファイルを、前記実データの記録とは無関係に更新させた際に、更新させた付随ファイルを前記第2の領域内にクラスタ単位で記録する第2の記録手段と、
を有することを特徴とする記録装置。
A control unit for controlling data recording on the recording medium;
The controller is
Setting means for setting a first area and a second area in units of allocation blocks made up of a plurality of clusters with respect to the data area of the recording medium;
A first recording means for recording, in allocation block units, a set of actual data and an accompanying file associated with the actual data in association with recording the actual data in the first area;
When the associated file recorded in the first area is updated regardless of the recording of the actual data, the updated associated file is recorded in the second area in units of clusters. Recording means;
A recording apparatus comprising:
前記付随ファイルは、前記実データにおけるそれぞれのクリップに付随させるそれぞれのクリップのメタデータである補助ファイルと、前記実データの全体を管理する管理ファイルとを含み、
前記第2の記録手段は、前記補助ファイルを更新させた際には更新させた補助ファイルを前記第2の領域内に記録し、前記管理ファイルを更新させた際には更新させた管理ファイルを前記第2の領域内に記録する
ことを特徴とする請求項1記載の記録装置。
The accompanying file includes an auxiliary file that is metadata of each clip attached to each clip in the actual data, and a management file that manages the entire actual data,
The second recording means records the updated auxiliary file in the second area when the auxiliary file is updated, and updates the management file when the management file is updated. The recording apparatus according to claim 1, wherein recording is performed in the second area.
前記記録媒体は、それぞれのクラスタに対応させたエントリを記録する管理テーブルを有し、
前記第2の記録手段が前記更新させた付随ファイルを前記第2の領域内に記録するのに併せて、更新前の付随ファイルを記録しているクラスタに対応するエントリを消去する消去手段をさらに有する
ことを特徴とする請求項1または2に記載の記録装置。
The recording medium has a management table for recording an entry corresponding to each cluster,
In addition to recording the updated associated file in the second area by the second recording unit, the erasing unit further erases an entry corresponding to a cluster in which the associated file before update is recorded. The recording apparatus according to claim 1, wherein the recording apparatus is provided.
記録媒体のデータ領域に対して、複数のクラスタよりなるアロケーションブロック単位の第1及び第2の領域を設定し、
前記記録媒体に実データを記録するに際し、前記実データと、前記実データを記録するのに対応させてリアルタイムに記録すべきファイルであり、前記実データに対して付随させる付随ファイルとの組をリアルタイムデータとし、このリアルタイムデータを前記第1の領域内にアロケーションブロック単位で記録し、
前記第1の領域に記録された前記付随ファイルを前記リアルタイムデータの記録後に更新させた際に、更新させた付随ファイルを非リアルタイムデータとし、この非リアルタイムデータ前記第2の領域内にクラスタ単位で記録する
ことを特徴とする記録方法。
For the data area of the recording medium, first and second areas in allocation block units composed of a plurality of clusters are set,
When recording actual data on the recording medium, a set of the actual data and a file to be recorded in real time corresponding to the recording of the actual data, and an accompanying file associated with the actual data Real-time data, this real-time data is recorded in allocation blocks in the first area,
When the accompanying file recorded in the first area is updated after the recording of the real-time data, the updated accompanying file is made non-real-time data, and the non-real-time data is clustered in the second area. A recording method characterized by recording.
JP2011174827A 2011-08-10 2011-08-10 Recording apparatus and recording method Active JP5633484B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011174827A JP5633484B2 (en) 2011-08-10 2011-08-10 Recording apparatus and recording method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011174827A JP5633484B2 (en) 2011-08-10 2011-08-10 Recording apparatus and recording method

Publications (2)

Publication Number Publication Date
JP2013037612A true JP2013037612A (en) 2013-02-21
JP5633484B2 JP5633484B2 (en) 2014-12-03

Family

ID=47887161

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011174827A Active JP5633484B2 (en) 2011-08-10 2011-08-10 Recording apparatus and recording method

Country Status (1)

Country Link
JP (1) JP5633484B2 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003308240A (en) * 2002-04-15 2003-10-31 Sony Corp Data storage device
JP2005122252A (en) * 2003-10-14 2005-05-12 Matsushita Electric Ind Co Ltd Reproducing device, reproducing and recording device, and video-editing device
JP2006285669A (en) * 2005-03-31 2006-10-19 Toshiba Corp Host apparatus
JP2008276697A (en) * 2007-05-07 2008-11-13 Matsushita Electric Ind Co Ltd Data recording device
WO2008146475A1 (en) * 2007-06-01 2008-12-04 Panasonic Corporation Recording apparatus
JP2009064386A (en) * 2007-09-10 2009-03-26 Sony Corp Information processing apparatus, recording method, and computer program
WO2011058700A1 (en) * 2009-11-11 2011-05-19 パナソニック株式会社 Access device, information recording device, controller, real time information recording system, access method, and program

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003308240A (en) * 2002-04-15 2003-10-31 Sony Corp Data storage device
JP2005122252A (en) * 2003-10-14 2005-05-12 Matsushita Electric Ind Co Ltd Reproducing device, reproducing and recording device, and video-editing device
JP2006285669A (en) * 2005-03-31 2006-10-19 Toshiba Corp Host apparatus
JP2008276697A (en) * 2007-05-07 2008-11-13 Matsushita Electric Ind Co Ltd Data recording device
WO2008146475A1 (en) * 2007-06-01 2008-12-04 Panasonic Corporation Recording apparatus
JP2009064386A (en) * 2007-09-10 2009-03-26 Sony Corp Information processing apparatus, recording method, and computer program
WO2011058700A1 (en) * 2009-11-11 2011-05-19 パナソニック株式会社 Access device, information recording device, controller, real time information recording system, access method, and program

Also Published As

Publication number Publication date
JP5633484B2 (en) 2014-12-03

Similar Documents

Publication Publication Date Title
US8977802B2 (en) Access device, information recording device, controller, real time information recording system, access method, and program
RU2642349C1 (en) Method for storing data using data storage device and data storage device
JP5400875B2 (en) MEMORY CONTROLLER, NONVOLATILE STORAGE DEVICE, ACCESS DEVICE, NONVOLATILE STORAGE SYSTEM, DATA WRITE METHOD, AND PROGRAM
WO2011121870A1 (en) Data recording device, and data recording method
TWI540435B (en) Memory system capable of prohibiting access to application software and system software
WO2011021367A1 (en) Non-volatile storage device, access device, and non-volatile storage system
US8625968B2 (en) Recording apparatus and control method thereof
JP5523128B2 (en) Recording apparatus and control method thereof
JP5633484B2 (en) Recording apparatus and recording method
JP2006252137A (en) Optimization method for nonvolatile storage device
JP2007279873A (en) Data recorder
JP5693277B2 (en) Recording apparatus and recording method
JP5455689B2 (en) Recording apparatus and method
JP2007280329A (en) Nonvolatile storage device and method for managing the same device
JP2013118510A (en) Image processing apparatus and image processing method
JP2005085081A (en) Data recording device with nonvolatile semiconductor memory as recording medium
JP2011133947A (en) Non-volatile storage device, access device, and non-volatile storage system
JP7149809B2 (en) IMAGE RECORDING DEVICE, CONTROL METHOD AND PROGRAM THEREOF
US8509597B2 (en) Recording apparatus, imaging and recording apparatus, recording method, and program
JP2011164733A (en) Recording device and recording method
JP6494275B2 (en) Recording apparatus and recording apparatus control method
JP5489818B2 (en) Recording / reproducing apparatus and control method thereof
JP2016009279A (en) Recording device
US8938592B2 (en) Reproducing device and reproducing method
JP2007058671A (en) Information processor, method and program, and recording medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140228

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140908

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20140916

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140929

R150 Certificate of patent or registration of utility model

Ref document number: 5633484

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150