JP2004343167A - File recording apparatus and file recording method - Google Patents

File recording apparatus and file recording method Download PDF

Info

Publication number
JP2004343167A
JP2004343167A JP2003133896A JP2003133896A JP2004343167A JP 2004343167 A JP2004343167 A JP 2004343167A JP 2003133896 A JP2003133896 A JP 2003133896A JP 2003133896 A JP2003133896 A JP 2003133896A JP 2004343167 A JP2004343167 A JP 2004343167A
Authority
JP
Japan
Prior art keywords
data
sample
recording
box
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2003133896A
Other languages
Japanese (ja)
Other versions
JP4292465B2 (en
Inventor
Satoshi Tsujii
訓 辻井
Makoto Yamada
誠 山田
Mitsuhiro Hirabayashi
光浩 平林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sony Corp
Original Assignee
Sony Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sony Corp filed Critical Sony Corp
Priority to JP2003133896A priority Critical patent/JP4292465B2/en
Publication of JP2004343167A publication Critical patent/JP2004343167A/en
Application granted granted Critical
Publication of JP4292465B2 publication Critical patent/JP4292465B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Television Signal Processing For Recording (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Management Or Editing Of Information On Record Carriers (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a file recording apparatus and a file recording method which is adopted for a video camera for recording an imaging result by a file of e.g., the QT format to avoid a deterioration in the user-friendliness for editing work or the like to the utmost thereby recording the file of the QT format or the like for a long time even when a memory with a small capacity is in use. <P>SOLUTION: The length of a management unit corresponding to a sample of the QT file is sequentially and stepwise increased by the progress of recording of real data. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明は、ファイル記録装置及びファイル記録方法に関し、例えばQTフォーマットのファイルにより撮像結果を記録するビデオカメラに適用することができる。本発明は、QTファイルのサンプルに対応する管理単位の長さを実データの記録の進行により順次段階的に増大させることにより、編集作業等における使い勝手の劣化を極力回避して、少ない容量のメモリを用いる場合でもQTフォーマットによるファイル等を長時間記録することができるようにする。
【0002】
【従来の技術】
従来、マルチメディア対応のファイルフォーマットとしてQuick Timeファイルフォーマット(以下:QTフォーマットと呼ぶ)が広く知られており、また近年、このQTフォーマットを基準にしてISO Base Mediaファイルフォーマット(MPEG4−part12)、 Motion JPEG2000(MJ2)ファイルフォーマット、AVC(Advanced Video Coding :MPEG4−part10)ファイルフォーマット等が標準化されるようになされている。
【0003】
この種のファイルフォーマットにおいては、動画、静止画、音声等による実データがまとめられてブロック化され、またこの実データのブロックとは別に、この実データを管理する管理情報がまとめられてブロック化される。以下、このようなブロックをボックスと呼び、実データをまとめたボックスをメディアデータボックス(Media Data Box)と呼ぶ。また管理情報をまとめたボックスをムービーボックス(Movie Box )と呼ぶ。
【0004】
この種のファイルフォーマットにおいては、このムービーボックスが、管理情報を属性毎にまとめて階層構造によりボックス化して作成され、このムービーボックスにより、一体に保持されたメディアデータボックス、他のファイルに保持されたメディアデータボックスを管理して動画等を再生できるようになされ、これによりいわゆる内部参照形式、外部参照形式により各種メディアを提供できるようになされている。なお、このような外部参照形式においては、他のファイルのメディアデータボックスを管理できることにより、ノンリニア編集等に利用することができる。
【0005】
またこの種のファイルフォーマットにおいて、メディアデータボックスは、実データが所定の最小管理単位で区切られ、ムービーボックスにおいては、最下位層のボックスにおいて、この実データの最小管理単位に対してそれぞれ管理情報が設定されるようになされている。以下、この実データの最小管理単位をサンプル(Sample)と呼ぶ。これによりこの種のファイルフォーマットにおいては、このサンプルを単位にして編集処理、頭出し処理等を実行できるようになされている。
【0006】
この種のファイルフォーマットによりファイルを作成する場合、処理の利便性を考慮して、例えば特開2001−94933号公報に開示されているように、通常、表示の単位に対応する1フレーム又は1GOP(Group Of Pictures )を1サンプルに設定するようになされている。また1つのファイル中で、1サンプルの長さを変更できるようになされているものの、処理を簡略化するために、1つのファイル中では1サンプルが固定した長さに設定されるようになされている。
【0007】
これによりこの種のファイルフォーマットにおいては、実データによる記録の進行に伴いムービーボックスのデータ量が増大し、実データの記録を完了しなければ、ムービーボックスの内容が確定しない特徴がある。これによりこの種のファイルフォーマットによりハードディスク、光ディスク等の記録媒体にファイルを記録する場合、記録媒体にメディアデータボックスを順次記録しながら、ムービーボックスの作成に必要なデータをメモリ等に順次蓄積して保持し、メディアデータボックスの記録を完了すると、このメモリ等に保持したデータよりムービーボックスを作成して記録媒体に記録するようになされている。
【0008】
【特許文献1】
特開2001−94933号公報
【0009】
【発明が解決しようとする課題】
ところでこのように実データの記録に伴ってデータ量が増大する管理情報をメモリ等に蓄積して記録媒体に記録する場合、十分な容量によるメモリを保持しているコンピュータ等の機器においては、長時間の実データを記録する場合でも十分に対応することができる。
【0010】
しかしながらこのようなファイルフォーマットにおいては、コンピュータとの親和性を図ることを目的として携帯型のビデオレコーダに適用することも考えられ、このような携帯機器においては、コンピュータ等に比して十分なメモリ容量を確保することが困難な欠点がある。
【0011】
これによりこのような携帯機器において、この種のファイルフォーマットによるファイルを記録する場合、長時間、連続して記録できない問題があった。
【0012】
すなわち長時間記録する場合にあっては、記録途中で管理情報の蓄積にメモリの容量が不足することになり、結局、実データであるメディアデータボックスについては正しく記録を完了し得たとしても、これを管理するムービーボックスについては、正しく記録することが困難になり、これにより正しく記録を完了したメディアデータボックスの実データを再生できなくなる。これにより結局、記録途中で強制的に記録を中止してそれまでの記録により1つのファイルを作成し、改めて記録を再開することになる。
【0013】
因みに、例えば1サンプルを1フレームに設定して、MPEG(Moving Picture Experts Group)によるビデオデータを1時間記録する場合、QTフォーマットにおいては、サンプルテーブルボックスを構成するボックスのうちで、時間管理に供するボックス(Composition Time−to−Sample Box)のデータ量が約563〔KByte〕になり、またサンプルのデータ量を管理するボックス(Sample Size Box )のデータ量が約422〔KByte〕にもなる。
【0014】
この問題を解決する1つの方法として、1サンプルに割り当てるフレーム数、GOPの長さを長く設定しておく方法が考えられるが、このように1サンプルの長さを長くすると、その分、頭出し等の処理における分解能が粗くなり、ノンリニア編集等の処理における使い勝手が著しく劣化する問題がある。
【0015】
本発明は以上の点を考慮してなされたもので、編集作業等における使い勝手の劣化を極力回避して、少ない容量のメモリを用いる場合でもQTフォーマットによるファイル等を長時間記録することができるファイル記録装置及びファイル記録方法を提案しようとするものである。
【0016】
【課題を解決するための手段】
かかる課題を解決するため請求項1の発明においては、順次入力される実データを所定フォーマットのファイルにより記録媒体に記録するファイル記録装置に適用して、監視手段の監視結果に基づいたデータ処理手段の制御により、実データの記録の進行により管理単位の長さを順次段階的に増大させる制御手段を備えるようにする。
【0017】
また請求項6の発明においては、順次入力される実データを記録媒体に記録した後、実データに順次設定した管理単位による管理情報、実データの他の管理情報をまとめて階層構造によりボックス化した管理情報のボックスを記録媒体に記録するファイル記録方法に適用して、実データの記録の進行により管理単位の長さを順次段階的に増大させる。
【0018】
請求項1の構成により、実データの記録の進行により管理単位の長さを順次段階的に増大させるようにすれば、管理情報を保持するメモリにおいて、記録の進行によりメモリ容量が少なくなってくると、その分、管理情報の増大速度を小さくして空き容量の減少速度を小さくすることができ、これによりこのメモリにおける管理情報のオーバーフローを防止することができる。これにより少ない容量のメモリを用いる場合でもQTフォーマットによるファイル等を長時間記録することができる。またこのようにして作成される管理情報のボックスにおいては、当初、管理単位が十分な長さに設定されて、メモリ容量の減少により管理単位が長くなることにより、例えば、記録時間の短いファイルについては、管理単位を当初の設定のままに保持することができる。また記録時間が長くなると、その分、末尾側で順次管理単位の長さが長くなることになる。これにより管理単位の長さの増大による編集作業等における使い勝手の劣化を極力回避することができる。
【0019】
これにより請求項6の構成によれば、編集作業等における使い勝手の劣化を極力回避して、少ない容量のメモリを用いる場合でもQTフォーマットによるファイル等を長時間記録することができるファイル記録方法を提供することができる。
【0020】
【発明の実施の形態】
以下、適宜図面を参照しながら本発明の実施の形態を詳述する。
【0021】
(1)第1の実施の形態
(1−1)第1の実施の形態の構成
(1−1−1)ビデオディスク装置の全体構成
図2は、本発明の実施の形態に係るビデオディスク装置を示すブロック図である。このビデオディスク装置1においては、図示しない撮像手段、音声取得手段により被写体のビデオ信号、オーディオ信号を取得し、このビデオ信号及びオーディオ信号による撮像結果を光ディスク2に記録する。またこの光ディスク2に記録した撮像結果を再生して液晶表示パネルによる表示手段、スピーカによる音声出力手段より出力し、また外部機器に出力する。このビデオディスク装置1では、このような撮像結果によるビデオ信号及びオーディオ信号をMPEGのフォーマットによりデータ圧縮した後、所定のファイルフォーマットにより光ディスク2に記録するようになされ、この実施の形態では、このファイルフォーマットにQTフォーマットが適用されるようになされている。なお以下において、QTフォーマットによるファイルをQTファイルと呼ぶ。
【0022】
これによりビデオディスク装置1において、ビデオ符号器11は、撮像結果によるビデオ信号DV1をアナログディジタル変換処理してビデオデータを生成し、このビデオデータをMPEGのフォーマットに従って符号化処理し、これによりビデオデータによるエレメンタリストリームDVを出力する。
【0023】
またオーディオ符号器12は、撮像結果によるオーディオ信号DA1をアナログディジタル変換処理してオーディオデータを生成し、このオーディオデータをMPEGのフォーマットに従って符号化処理し、これによりオーディオデータによるエレメンタリストリームDAを出力する。
【0024】
ファイル生成器15は、記録時、ビデオ符号器11及びオーディオ符号器12から出力されるエレメンタリストリームDA及びDVを同期化して多重化処理し、システム制御マイコン19の制御によりQTファイルを作成する。このためファイル生成器15は、順次入力されるエレメンタリストリームDA及びDVを多重化してメディアデータボックスのデータを順次出力しながら、このメディアデータボックスのデータに対応して内蔵のメモリ15Aにムービーボックスの生成に必要なデータを追記して保持し、メディアデータボックスの記録の完了によりメモリ15Aに保持したデータからムービーボックスのデータ列を生成して出力する。
【0025】
メモリコントローラ18は、システム制御マイコン19の制御により動作を切り換え、記録時、このファイル生成器15から出力されるQTファイルによるデータ列をメモリ17に順次記録して一時保持し、続くエラー訂正符号/復号器21の処理に対応して保持したデータを出力する。また再生時、これとは逆に、エラー訂正符号/復号器21の出力データを一時保持し、ファイル復号器16、システム制御マイコン19に出力する。
【0026】
エラー訂正符号/復号器21は、システム制御マイコン19の制御により動作を切り換え、記録時、メモリコントローラ18の出力データをメモリ20に一時記録して誤り訂正符号を付加する。またこのようにしてメモリ20に保持したデータを所定順序により読み出して出力することにより、これらのデータをインターリーブ処理してデータ変復調器23に出力する。またエラー訂正符号/復号器21は、再生時、記録時とは逆に、データ変復調器23から出力されるデータを所定順序によりメモリ20に一時記録してメモリコントローラ18に出力することにより、このデータ変復調器23から出力されるデータをデインターリーブ処理して出力する。またこのとき、記録時に付加した誤り訂正符号により誤り訂正処理する。
【0027】
データ変復調器23は、システム制御マイコン19の制御により動作を切り換え、記録時、エラー訂正符号/復号器21の出力データをシリアルデータ列に変換した後、変調処理して磁界変調ドライバ24又は光ピックアップ33に出力する。また再生時、光ピックアップ33から出力される再生信号からクロックを再生し、このクロックを基準にして再生信号を2値識別、復調処理することにより、記録時に生成したシリアルデータ列に対応する再生データを得、この再生データをエラー訂正符号/復号器21に出力する。
【0028】
磁界変調ドライバ24は、光ディスク2が光磁気ディスクの場合に、記録時、システム制御マイコン19の制御により、データ変復調器23の出力信号により磁界ヘッド32を駆動する。ここで磁界ヘッド32は、光ディスク2を間に挟んで光ピックアップ33に対向するように保持され、光ピックアップ33によるレーザービーム照射位置にデータ変復調器23の出力データに応じた変調磁界を印加する。これによりこのビデオディスク装置1では、光ディスク2が光磁気ディスクの場合、熱磁気記録の手法を適用してQTフォーマットによるファイルにより撮像結果を光ディスク2に記録するようになされている。
【0029】
かくするにつき光ディスク2は、ディスク状記録媒体であり、この実施の形態では、光磁気ディスク(MO:Magneto−Optical Disk)、相変化型ディスク等の書き換え可能な光ディスクである。スピンドルモータ31は、この光ディスク2をサーボ回路30の制御により、光ディスク2に応じて線速度一定(CLV:Constant Linear Velocity)、角速度一定(CAV、Constant Angular Velocity)、ゾーンCLV(ZCLV:Zone Constant Linear Velocity )等の条件により光ディスク2を回転駆動する。
【0030】
サーボ回路30は、光ピックアップ33から出力される各種信号に基づいて、スピンドルモータ31の動作を制御し、これによりスピンドル制御の処理を実行する。またサーボ回路30は、同様にして光ピックアップ33をトラッキング制御、フォーカス制御し、また光ピックアップ33、磁界ヘッド32をシークさせ、さらにはフォーカスサーチ等の処理を実行する。
【0031】
ドライブ制御マイコン22は、システム制御マイコン19の指示により、これらサーボ回路30におけるシーク等の動作を制御する。
【0032】
光ピックアップ33は、光ディスク2にレーザービームを照射してその戻り光を所定の受光素子により受光し、受光結果を演算処理することにより、各種制御用の信号を生成して出力し、また光ディスク2に形成されたピット列、マーク列に応じて信号レベルが変化する再生信号を出力する。また光ピックアップ33は、システム制御マイコン19の制御により動作を切り換え、光ディスク2が光磁気ディスクの場合、記録時、光ディスク2に照射するレーザービームの光量を間欠的に立ち上げる。これによりこのビデオディスク装置1では、いわゆるパルストレイン方式により光ディスク2に撮像結果を記録するようになされている。また光ピックアップ33は、光ディスク2が相変化型ディスク等の場合、データ変復調器23の出力データに応じて光ディスク2に照射するレーザービームの光量を再生時の光量から書き込み時の光量に立ち上げ、これにより熱記録の手法を適用して光ディスク2に撮像結果を記録するようになされている。
【0033】
これらによりこのビデオディスク装置1では、撮像結果によるビデオ信号及びオーディオ信号をビデオ符号器11、オーディオ符号器12によりデータ圧縮してエレメンタリストリームに変換した後、ファイル生成器15によりQTフォーマットのファイルに変換し、メモリコントローラ18、エラー訂正符号/復号器21、データ変復調器23を順次介して、光ピックアップ33により、又は光ピックアップ33及び磁界ヘッド32によりこのQTフォーマットのファイルを光ディスク2に記録するようになされている。
【0034】
またビデオディスク装置1では、光ピックアップ33より得られる再生信号をデータ変復調器23により処理して再生データを得、この再生データをエラー訂正符号/復号器21で処理して、光ディスク2に記録したQTフォーマットによるファイルを再生できるようになされ、これらQTフォーマットによるファイルのデータをメモリコントローラ18から出力するようになされている。
【0035】
ファイル復号器16は、メモリコントローラ18から出力されるQTファイルのデータを入力し、このデータをビデオデータ及びオーディオデータのエレメンタリストリームに分解して出力する。この処理において、ファイル復号器16は、システム制御マイコン19によるシーク等の制御により事前にムービーボックスのデータを取得して保持し、このムービーボックスに設定された管理情報に基づいてビデオデータ及びオーディオデータのエレメンタリストリームを出力する。
【0036】
ビデオ復号器13は、このビデオデータのエレメンタリストリームをデータ伸長して図示しない表示手段、外部機器に出力する。オーディオ復号器14は、ファイル復号器16から出力されるオーディオデータのエレメンタリストリームをデータ伸長して、図示しない音声出力手段、外部機器に出力する。これによりこのビデオディスク装置1では、光ディスク2から再生した撮像結果をモニタし得るようになされている。
【0037】
システム制御マイコン19は、このビデオディスク装置1全体の動作を制御するマイコンであり、図示しないメモリに記録された所定の処理手順の実行により、ユーザーによる操作に応動して各部の動作を制御する。これによりシステム制御マイコン19は、撮像結果を光ディスク2に記録し、またこの光ディスク2に記録した撮像結果を再生してユーザーに提供し、さらには編集処理を実行するようになされている。このような記録に係る各部の制御において、システム制御マイコン19は、記録の進捗により1サンプルの設定を順次切り換えるようにファイル生成器15の設定を切り換え、これにより編集作業等における使い勝手の劣化を有効に回避して、少ない容量のメモリを用いる場合でも撮像結果を長時間記録することができるようになされている。
【0038】
(1−1−2)QTファイル
ここで図3は、QTファイルの基本構成を示す概念図である。QTフォーマットは、特殊なハードウェアを用いずに動画等を再生するためのOS(Operating System) の拡張機能として生まれたファイルフォーマットである。QTフォーマットは、動画、音声、静止画、文字、MIDI等の種々の形式による実データを1つの時間軸で同期させて再生することができるタイムベースのマルチメディアファイルフォーマットであり、ネットワーク上のストリーミングにも対応できるようになされている。QTファイルにおいて、これら種々の形式による実データは、それぞれ個別のトラックとして格納され、それぞれ動画、音声、文字による実データのトラックがビデオトラック、サウンドトラック(オーディオトラック)、テキストトラックと称されるようになされている。
【0039】
QTファイルF1、F2は、このトラックの集合によりメディアデータボックス(Media Data Box)が形成され、このメディアデータボックス(Media Data Box)の各トラックの管理情報等がまとめられてムービーボックス(Movie Box )が形成される。なおここでボックスは、アトム(Atom)とも呼ばれる。またメディアデータボックスは、ボックスのタイプ名がmdatに設定され、ムービーデータ(Movie Data)とも呼ばれる。これに対してムービーボックスは、ボックスのタイプ名がmoovに設定され、ムービーリソース(Movie Resource)とも呼ばれる。
【0040】
QTファイルは、これらメディアデータボックス、ムービーボックスが一体となった形式の自己内包形ファイルF1と、ムービーボックスのみからなる形式の外部参照形ファイルF2とがあり、この外部参照形ファイルF2においては、他のファイルF1に存在するメディアデータボックスを管理対象に設定できるようになされ、これによりノンリニア編集等に利用できるようになされている。なおこのように他のファイルF1に存在するメディアデータボックスを管理対象とする場合には、ムービーボックスに、この他のファイルに係る記録媒体上の相対パス、絶対パス等の管理情報が併せて割り当てられるようになされている。
【0041】
図4は、自己内包形ファイルF1に関して、ビデオトラック及びオーディオトラックによりメディアデータボックスが構成されている場合について、これらメディアデータボックス、ムービーボックスを詳細に示す図表であり、図5及び図6は、図4の構成をC言語の記述によりタイプ名と共に示す図表である。なおムービーボックスにおいて、トラックボックス(タイプ名trak)は、下位階層のボックス構造がビデオトラックとオーディオトラックとでほぼ同一であることにより、図4においてオーディオトラックに係るトラックボックスの下位階層について記述を省略して示す。
【0042】
ムービーボックスは、管理情報を属性毎にボックス化した階層構造により作成される。すなわちムービーボックスは、ムービーヘッダボックス(movie header)、トラックボックス(track )等により構成される。ムービーヘッダボックスは、ヘッダー情報が収容され、タイプ名がmvhdに設定される。これに対してトラックボックス(track )は、メディアデータボックスに設けられたトラックに対応してそれぞれ設けられる。トラックボックス(track )は、トラックヘッダボックス(track header)、エディットボックス(edit)、メディアボックス(media )等により構成され、それぞれメディアデータボックスの個々の実データに関する情報が記述される。
【0043】
ここでトラックヘッダボックス(track header)は、ヘッダー情報が収容される。エディットボックス(edit)は、必要に応じてエディットリストボックス(edit list )を含み、このエディットリストボックス(edit list )にイン点、アウト点までの時間情報、再生速度等の情報を設定することにより、ノンリニア編集に利用できるようになされている。
【0044】
メディアボックス(media )は、それぞれ対応する実データの圧縮方式、格納場所、表示時間等を管理するための情報が割り当てられ、タイプ名がmdiaに設定される。メディアボックス(media )は、メディアヘッダボックス(media header)、メディアハンドラリファレンスボックス(media handler reference )、メディア情報ボックス(media information )により構成される。ここでメディアヘッダボックス(media header)は、ヘッダー情報が割り当てられ、メディアハンドラリファレンスボックス(media handler reference (図4においてはmedia handler により示す))は、対応する実データの種類が記録され、これによりビデオデータ、オーディオデータ等を識別できるようになされている。
【0045】
メディア情報ボックス(media information )は、最小の管理単位であるサンプルに係る各種の情報が割り当てられ、タイプ名がminfに設定される。メディア情報ボックス(media information )は、実データに対応するメディアヘッダ(video madia information header、sound madia information header(図4においてはvideo madia headerにより示す))、データハンドラリファレンスボックス(data handler reference(図4においてはdata handlerにより示す))、データ情報ボックス(data information)、サンプルテーブルボックス(sample table)により構成される。
【0046】
ここでメディアヘッダは、上位のメディアハンドラリファレンスボックス(media handler reference )に対応して、ビデオトラック及びオーディオトラックでそれぞれタイプ名がvmhd、smhdに設定され、ヘッダー情報が収容される。データハンドラリファレンスボックス(data handler reference)は、対応する実データの取り扱いに関する情報が設定され、データ情報ボックス(data information)は、下位階層のデータリファレンスボックス(data reference)により実際に参照するデータの格納場所、格納方法の情報が割り当てられるようになされている。
【0047】
サンプルテーブルボックス(sample table)は、各サンプルに関する情報が割り当てられ、タイプ名がstblに設定される。サンプルテーブルボックス(sample table)は、サンプルディスクリプションボックス(sample description)、時間サンプルボックス(time−to−sample)、サンプルサイズボックス(sample size )、サンプルチャンクボックス(sample−to−chunk )、チャンクオフセットボックス(chunk offset)、同期サンプルボックス(sync sample )、コンポジション時間サンプルボックス(composition time−to−sample)等により構成される。
【0048】
ここでサンプルディスクリプションボックス(sample description)は、デコードに関する情報が保存され、具体的にデータ圧縮方式、関連する情報が割り当てられる。すなわち図7に示すように、サンプルディスクリプションボックス(sample description)は、サンプルディスクリプションボックス(sample description)のサイズ(Size)、タイプ名(stsd)、バージョン、フラグが順次割り当てられる。またこのサンプルディスクリプションボックス(sample description)のエントリ数(number of Entries )が割り当てられ、このエントリ数の分だけ、データ圧縮方式、関連する情報によるエントリ(Video sample description entry)が割り当てられる。
【0049】
サンプルディスクリプションボックス(sample description)は、このエントリ(Video sample description entry)に係る実データの処理の変更に対応して、これらエントリ(Video sample description entry)が登録され、エントリ数(number of Entries )がアップカウントされる。サンプルディスクリプションボックス(sample description)は、このエントリ(Video sample description entry)の1つに1サンプルに割り当てるフレーム数を記述するフィールド(Frame Count )が設けられ、このフィールドに1サンプルのフレーム数を具体的に記録するようになされている。具体的に、1GOPを1サンプルとする場合、このフィールドには15フレームが記述され、2GOPを1サンプルとする場合、このフィールドには30フレームが記述される。因みに、このような処理の変更に係るエントリ(Video sample description entry)は、そのエントリ番号が、後述するサンプルチャンクボックス(sample−to−chunk )のエントリに設定されたインデックス番号(sample description Index)に対応するように設定され、これにより実データにおける対応する処理の変更箇所を検出できるようになされている。
【0050】
これによりサンプルディスクリプションボックス(sample description)においては、記録の進行によりメディアデータボックスのデータ量が増大した場合でも一定のデータ量に保持されるようになされているものの、途中で1サンプルに割り当てるフレーム数を変更すると、1つのエントリ分だけ、データ量が増大するようになされている。
【0051】
時間サンプルボックス(time−to−sample)は、各サンプルとデコードに係る時間軸との関係がフレームレートにより記述される。すなわち図8に示すように、時間サンプルボックス(time−to−sample)は、時間サンプルボックス(time−to−sample)のサイズ(Size)、タイプ名(stts)、バージョン、フラグが順次割り当てられる。またエントリ数(number of Entries )が割り当てられ、このエントリ数の分だけ、エントリ(Time−to−Sample entry#1〜#M)が登録される。時間サンプルボックス(time−to−sample)は、このエントリ(Time−to−Sample entry#1〜#M)に、1サンプルの表示時間(Sample Duration )、この表示時間が適用されるサンプル数(Sample Count)が割り当てられる。これによりQTファイルにおいては、例えばフレームレートの異なるNTSC方式、PAL方式によるビデオ信号を1つのファイルにより記録する場合等に、この時間サンプルボックス(time−to−sample)の設定により違和感なく再生できるようになされている。しかして時間サンプルボックス(time−to−sample)は、この実施の形態において、記録の進行によりメディアデータボックスのデータ量が増大した場合でも一定のデータ量に保持されるようになされている。
【0052】
これに対して1つのサンプルに割り当てるフレーム数を変更すると、その分、1サンプルに係る表示時間が変化することにより、表示時間(Sample Duration )が異なることになる。これによりこの場合、時間サンプルボックス(time−to−sample)は、エントリ(Time−to−Sample entry)が追加されてエントリ数(number of Entries )がアップカウントされる。これにより時間サンプルボックス(time−to−sample)は、記録途中で1サンプルに割り当てるフレーム数を変更すると、1エントリ分、データ量が増大するようになされている。
【0053】
サンプルサイズボックス(sample size )は、各サンプルのデータ量が記述される。すなわち図9に詳細に示すように、サンプルサイズボックス(sample size )は、サンプルサイズボックス(sample size )のサイズ(Size)、タイプ名(stsz)、バージョン、フラグが順次割り当てられ、ディフォルトによるサンプルの長さ(Default Sample Size value )が記録される。もしサンプルのサイズが1つでも異なれば、サンプル数に対応した値によるエントリ数(Number of Entries )が記述され、各サンプルの大きさ(Sample Size value )がエントリ(Sample Size entry#1 〜#N)により登録される。サンプルサイズボックス(sample size )は、この1つのエントリ(Sample Size entry )が固定長による4〔Byte〕により記述され、このエントリが実データにおけるサンプル毎に設けられる。これによりサンプルサイズボックス(sample size )は、記録の進行によりメディアデータボックスのサンプル数が増大すると、その分、エントリ数(Number of Entries )、エントリ(Sample Size entry#1 〜#N)が増大してデータ量が増大するようになされている。
【0054】
サンプルチャンクボックス(sample−to−chunk )は、チャンク(chunk )とそのチャンク(chunk )を構成するサンプルとの関係が記述される。なおここでチャンク(chunk )は、メディアデータボックスに各トラックデータをブロック化して割り当てる際の各ブロックであり、複数サンプルの集合により1つのチャンクが作成される。サンプルチャンクボックス(sample−to−chunk )は、サンプルチャンクボックス(sample−to−chunk )のサイズ(Size)、タイプ名(stsc)、バージョン、フラグが順次割り当てられ、エントリ数(Number of Entries )、エントリ(Sample−to−Chunk entry#1 〜Sample−to−Chunk entry#M )が記述される。ここでサンプルチャンクボックス(sample−to−chunk )は、1つのチャンクを構成するサンプル数が変更される毎に、エントリ(Sample−to−Chunk entry )が登録され、このエントリ(Sample−to−Chunk entry )に、エントリに係る最初のチャンク番号(First Chunk Number)、1チャンク当たりのサンプル数(Sample per Chunk)等が割り当てられるようになされている。
【0055】
サンプルチャンクボックス(sample−to−chunk )は、記録途中で1サンプルに割り当てるフレーム数を変更した場合、上述したサンプルディスクリプションボックス(sample description)のエントリの追加に対応してエントリ(Sample−to−Chunk entry )が追加され、このエントリのインデックス番号(sample description Index)により、対応するサンプルディスクリプションボックス(sample description)のエントリを特定できるようになされている。これによりサンプルチャンクボックス(sample−to−chunk )は、記録の進行によりメディアデータボックスのサンプル数が増大しても、一定データ量に保持されるようになされるものの、記録途中で1サンプルのフレーム数を変更すると、1つのエントリ分、データ量が増大するようになされている。
【0056】
チャンクオフセットボックス(chunk offset)は、ファイル先頭を基準にした各チャンク先頭の位置情報がエントリにより記録される。これによりこのチャンクオフセットボックス(chunk offset)においては、サンプルサイズボックス(sample size )と同様に、記録の進行によりメディアデータボックスのチャンク数が増大すると、その分、データ量が増大するようになされている。
【0057】
同期サンプルボックス(sync sample )、コンポジション時間サンプルボックス(composition time−to−sample)は、オプションである。同期サンプルボックス(sync sample )は、サンプルにおけるIピクチャーの位置情報がテーブルの形式により記述され、コンポジション時間サンプルボックス(composition time−to−sample)は、データ圧縮処理によりストリーム上の順序と表示上の順序が異なってなるピクチャーが存在することにより、表示に係る時間情報が記録されるようになされている。これらによりコンポジション時間サンプルボックス(composition time−to−sample)においても、記録の進行によりメディアデータボックスのサンプル数が増大すると、その分、データ量が増大するようになされている。なおこの実施の形態においては、1サンプルをGOP単位で設定することにより、これら同期サンプルボックス(sync sample )は、省略される。
【0058】
なおオーディオトラックについては、ビデオトラックのようなデコード結果の並べ替えを要しないことにより、コンポジション時間サンプルボックス(composition time−to−sample)が省略され、また固定レートによりデータ圧縮されていること等により、記録の進行によるサンプル数の増大によりデータ量が増大するものの、その増大の程度はビデオトラックに比して小さいものとなる。
【0059】
これらによりサンプルテーブルボックスにおいては、最小管理単位であるサンプルの管理情報が属性毎にボックス化され、これらのボックスにおいて、サンプルサイズボックス(sample size )、チャンクオフセットボックス(chunk offset)、同期サンプルボックス(sync sample )、コンポジション時間サンプルボックス(composition time−to−sample)に、記録の進行による実データのデータ量に応じてデータ量が増大する管理情報が割り当てられるようになされている。また特に、サンプルサイズボックス(sample size )、同期サンプルボックス(sync sample )、コンポジション時間サンプルボックス(composition time−to−sample)においては、記録の進行による最小管理単位であるサンプル数に応じてデータ量が増大する管理単位による管理情報が割り当てられるようになされている。これに対してサンプルディスクリプションボックス(sample description)、時間サンプルボックス(time−to−sample)、サンプルチャンクボックス(sample−to−chunk )には、サンプルテーブルボックスの他のボックスと同様に、実データの処理に必要な管理情報が割り当てられ、管理情報を構成するパラメータが変更される毎に、エントリにより変更後の管理情報が設けられるようになされている。
【0060】
これに対してメディアデータボックスは、QTファイルの実データであるビデオデータ及びオーディオデータのエレメンタリストリームが、それぞれサンプルの集合としてチャンク(chunk )に割り当てられ、ビデオデータのエレメンタリストリームによるチャンク、オーディオデータのエレメンタリストリームによるチャンクが交互に設けられるようになされている。
【0061】
この実施の形態では、オーディオ符号器12、ビデオ符号器11により、これらオーディオデータ及びビデオデータのエレメンタリストリームに、MPEG1 Audio Layer 2の圧縮符号化方式によって符号化したオーディオデータ、MPEG2 Video の圧縮符号化方式によって符号化したビデオデータを適用するようになされている。なおQTファイルにおいては、例えばMotion JPEG、Motion JPEG2000、MPEG4、AVC等の各種のビデオデータ、Dolby AC3、ATRAC(Adaptive Transform Acoustic Coding)等の各種のオーディオデータをこれらオーディオデータ及びビデオデータに適用することも可能であり、さらには何ら圧縮符号化処理していないリニアデータを適用することも可能である。
【0062】
図11は、このようなメディアデータボックスとムービーボックスによるQTファイルのデータDQについて、フレームレートが30〔フレーム/秒〕のビデオデータを例に取って、ビデオ符号器11から出力されるビデオデータのエレメンタリストリームDVとの対比により、フレーム、サンプル、チャンクの関係を示すタイムチャートである。QTファイルにおいては、上述したように最小の管理単位がサンプルに設定され、このサンプルの集合によりチャンクが作成されることにより、1GOP(15ビデオフレーム)を1サンプルに設定し、2サンプルを1チャンクに設定した場合(図11(A)及び(B))、1秒間に1チャンクが設定されて順次ビデオデータのエレメンタリストリームDVによる実データが管理されることになる。なおこの図11において、SHは、エレメンタリストリームDVにおけるシーケンスヘッダである。これによりQTファイルにおいては、直接、サンプル単位でアクセスして実データをデコードできるようになされている。なおこのような設定において、GOPは、GOP内で予測フレームが設定されるいわゆるクローズドGOPを適用することが望ましい。
【0063】
これに対して図12は、サンプリング周波数48〔kHz〕、2チャンネルのオーディオデータを例に取って、オーディオ符号器12から出力されるオーディオデータのエレメンタリストリームDAとの対比により、フレーム、サンプル、チャンクの関係を示すタイムチャートである。この場合、オーディオ符号器12から出力されるオーディオデータDAにおいては(図12(A))、1152サンプル×2チャンネルにより復号単位であるオーディオデコードユニットが設定される。このようなオーディオデータに対して、オーディオデコードユニットを1サンプルに設定し、図11に示したビデオデータにおけるチャンクの設定に対応して1チャンクを1秒に設定すると、単純な割り算では1チャンク当たりのサンプル数が41.66……サンプルとなる。これによりこの場合、連続する3つのチャンクにそれぞれ41サンプル、42サンプル、42サンプルを割り当て、ファイル生成器15においては3チャンクを単位にしてビデオデータとオーディオデータとを多重化処理する(図12(B))。これによりQTファイルにおいては、オーディオデータにおいても、直接、サンプル単位でアクセスして実データをデコードできるようになされている。
【0064】
図13及び図14は、このようなビデオデータ及びオーディオデータについて、インターリーブとチャンク等の関係を示すタイムチャートである。この図13に示す例では、フレーム周期t0によるフレームレートのビデオ信号DV1がビデオ符号器11に入力され、このビデオ信号DV1を符号化処理してなるビデオデータDVの1GOPを1サンプルに設定した場合である。またこの1GOPによるサンプルに対して、4サンプルを1チャンクに割り当て、チャンク単位でオーディオデータとインターリーブ処理した場合である。なお上述したチャンクオフセットボックス(chunk offset)により、各チャンクの先頭が検出されることになる。
【0065】
これに対して図14に示すように、オーディオ信号DA1については、1つのオーディオデコードユニットを1つのサンプルに割り当て、このビデオデータにおけるインターリーブの単位に対応するように、複数サンプルにより1チャンクを構成してビデオデータをインターリーブ処理するようになされている。
【0066】
なお図15〜図17は、このように設定されるチャンクの光ディスク2上のレイアウトの説明に供する略線図である。何らファイルが記録されていない光ディスク2にこのような構成に係るQTファイルを記録する場合、始めに連続した領域にメディアデータボックスのデータが順次記録され、メディアデータボックスの記録を終了すると、対応するムービーボックスのデータが連続した領域に順次記録され、これらによりQTファイルは、連続した領域にあたかも一筆書きのように記録される。
【0067】
これに対して光ディスク2へのファイルの記録、削除を繰り返すと、光ディスク2においては、フラグメントが進み、連続した領域へのQTファイルの記録が困難になる。図15〜図17は、このような場合におけるQTファイルのレイアウトを示すものであり、図15は、1つのトラック構造によるQTファイルを例に取って少なくともチャンク単位で連続した領域にQTファイルを記録してアクセス性を向上させるものである。また図16及び図17は、オーディオ及びビデオデータのトラック構造によるQTファイルを例にとって、少なくとも対応するオーディオ及びビデオデータのチャンクを単位にして連続した領域にQTファイルを記録してアクセス性を向上させるものである。
【0068】
(1−1−3)QTファイルの処理
これらによりこのビデオディスク装置1において、ファイル生成器15は、実データであるビデオデータ及びオーディオデータによるエレメンタリストリームDV、DAに、最小管理単位であるサンプル、サンプルの上位の管理単位であるチャンクを順次設定し、エレメンタリストリームDV、DAを多重化して記録手段により記録しながら、この実データの記録に対応して管理情報を順次取得してメモリ15Aに保持し、実データの記録の終了により、メモリ15Aに保持した管理情報により管理情報のボックスであるムービーボックスのデータを記録手段に出力するようになされ、これらの処理に係るデータ処理手段を構成するようになされている。
【0069】
ファイル生成器15は、このような管理単位の設定等をシステム制御マイコン19の制御により実行するようになされている。すなわちファイル生成器15は、システム制御マイコン19の指示により、ビデオデータに対して1サンプルの長さを設定し、また1チャンクを構成するサンプル数等を設定する。またファイル生成器15において、このビデオデータに対する1サンプル、1チャンクの設定に対応して図11〜図17について上述したようにオーディオデータに対して1サンプルの長さを設定し、また1チャンクを構成するサンプル数等を設定する。
【0070】
これらのファイル生成器15の処理に対応して、システム制御マイコン19は、ユーザーによるトリガスイッチの操作に応動して撮像結果の記録開始、終了をファイル生成器15を含む各回路ブロックに指示し、この実施の形態ではこの指示による記録の開始から終了までが1つのQTファイルとして光ディスク2に記録されるようになされている。なおこの場合に、繰り返しのトリガスイッチの操作による撮像結果を繋ぎ撮りにより光ディスク2に記録し、電源を立ち上げた後、立ち下げるまでの記録を1つのQTファイルとしてもよい。
【0071】
これによりビデオディスク装置1では、ファイル生成器15で順次ビデオデータ及びオーディオデータのエレメンタリストリームを処理してメディアデータボックスが光ディスク2に記録されると共に、ムービーボックスの構築に必要なデータがメモリ15Aに順次蓄積され、システム制御マイコン19からの制御によりメディアデータボックスの記録を終了すると、メモリ15Aに蓄積されたデータによりムービーボックスを光ディスク2に記録し、これらにより1つのQTファイルを光ディスク2に記録するようになされている。
【0072】
システム制御マイコン19は、このようにして撮像結果の記録開始を指示する際に、ファイル生成器15に対して1サンプルの長さを1GOPに設定するように指示する。また記録を開始すると、ファイル生成器15に保持されたメモリ15Aの空き容量Mを監視して図1、図18の処理手順を実行し、記録の進行により1サンプルの長さをGOPを単位にして順次段階的に増大させる。これによりこの実施の形態では、長時間記録する場合でも、メモリ15Aにおいて容量が不足しないようにして、少ない容量のメモリを用いる場合でもQTファイルを長時間記録することができるようになされている。
【0073】
すなわちシステム制御マイコン19は、ユーザーによる記録開始の指示により、ステップSP1からステップSP2に移り、1サンプルの長さを1GOPに設定するようにファイル生成器15に指示した後、各回路ブロックに記録の開始を指示し、これによりメディアデータボックスの記録を開始する。これによりシステム制御マイコン19は、ステップSP3において、1サンプルを1GOPに設定してメディアボックスを光ディスク2に記録しながら、ムービーボックスに必要な管理情報をメモリ15Aに順次蓄積する。
【0074】
システム制御マイコン19は、このようにして記録を開始すると、続くステップSP4において、ユーザーによるトリガ操作子の操作により記録の終了が指示されたか否か判断し、ここで否定結果が得られると、ステップSP5に移り、メモリ15Aの空き容量Mがこのメモリ15Aの容量の1/2以下となったか否か判断する。ここで否定結果が得られると、システム制御マイコン19は、ステップSP3に戻る。これによりシステム制御マイコン19は、メモリ15Aの空き容量Mがこのメモリ15Aの容量の1/2以下となるまでの間、ステップSP3−ステップSP4−ステップSP5−ステップSP3の処理手順を繰り返し、1サンプルを1GOPに設定して撮像結果を光ディスク2に記録する。また途中で、ユーザーによるトリガスイッチの操作によりステップSP4で肯定結果が得られると、ステップSP4からステップSP6に移り、ファイル生成器15等に記録の終了を指示し、これによりメディアデータボックスの記録を完結した後、メモリ15Aに格納した管理情報よりムービーボックスを生成して光ディスク2に記録する。またこのムービーボックスの記録を完了すると、ステップSP7に移ってこの処理手順を終了する。
【0075】
これによりこのビデオディスク装置1では、比較的短い時間によるファイルについては、1サンプルを1GOPに設定して、光ディスク2に記録し、編集処理等における使い勝手の劣化を有効に回避するようになされている。
【0076】
これに対してこのようにして1サンプルを1GOPに設定してメディアデータボックスを記録して、記録の進行によりメモリ15Aの空き容量Mがこのメモリ15Aの容量の1/2以下となると、ステップSP5で肯定結果が得られることにより、システム制御マイコン19は、ステップSP5からステップSP8に移る。ここでシステム制御マイコン19は、ファイル生成器15に対して、1サンプルを2GOPに設定するように指示し、これにより1サンプルの長さを増大させる。
【0077】
続いてシステム制御マイコン19は、ステップSP9に移り、ユーザーによるトリガ操作子の操作により記録の終了が指示されたか否か判断し、ここで否定結果が得られると、ステップSP10に移り、メモリ15Aの空き容量Mがこのメモリ15Aの容量の1/4以下となったか否か判断する。ここで否定結果が得られると、システム制御マイコン19は、ステップSP8に戻る。これによりシステム制御マイコン19は、メモリ15Aの空き容量Mがこのメモリ15Aの容量の1/2〜1/4の範囲で、ステップSP8−ステップSP9−ステップSP10−ステップSP8の処理手順を繰り返し、1サンプルを2GOPに設定して撮像結果を光ディスク2に記録する。また途中で、ユーザーによるトリガスイッチの操作によりステップSP9で肯定結果が得られると、ステップSP9からステップSP6に移り、メディアデータボックスの記録を完結した後、ムービーボックスを生成して光ディスク2に記録し、ムービーボックスの記録を完了すると、ステップSP7に移ってこの処理手順を終了する。
【0078】
これによりこのビデオディスク装置1では、1サンプルを1GOPに設定して、光ディスク2への記録を開始した後、一定時間以上記録時間が長くなり、メモリ15Aの容量が残り少なくなると、1サンプルを2GOPに設定して撮像結果を記録するようになされ、1サンプルの長さが長くなることによる編集処理等における使い勝手の劣化を極力回避するようになされている。
【0079】
これに対してこのようにして1サンプルを2GOPに設定してメディアデータボックスを記録して、記録の進行によりメモリ15Aの空き容量Mがこのメモリ15Aの容量の1/4以下となると、ステップSP10で肯定結果が得られることにより、システム制御マイコン19は、ステップSP10からステップSP11に移る。ここでシステム制御マイコン19は、ファイル生成器15に対して、1サンプルを3GOPに設定するように指示し、これにより1サンプルの長さをさらに増大させる。
【0080】
続いてシステム制御マイコン19は、ステップSP12に移り、ユーザーより記録の終了が指示されたか否か判断し、ここで否定結果が得られると、ステップSP13に移り、メモリ15Aの空き容量Mがこのメモリ15Aの容量の1/8以下となったか否か判断する。ここで否定結果が得られると、システム制御マイコン19は、ステップSP11に戻る。これによりシステム制御マイコン19は、メモリ15Aの空き容量Mがこのメモリ15Aの容量の1/4〜1/8の範囲で、ステップSP11−ステップSP12−ステップSP13−ステップSP11の処理手順を繰り返し、1サンプルを3GOPに設定して撮像結果を光ディスク2に記録する。また途中で、ユーザーによるトリガスイッチの操作によりステップSP12で肯定結果が得られると、ステップSP12からステップSP6に移る。
【0081】
これによりこのビデオディスク装置1では、1サンプルを1GOPに設定して、光ディスク2への記録を開始した後、一定時間以上記録時間が長くなり、メモリ15Aの容量が残り少なくなると、1サンプルを2GOPに設定して撮像結果を記録し、さらに記録が進行してメモリ15Aの空き容量がさらに残り少なくなると、1サンプルを3GOPに設定して撮像結果を記録するようになされ、1サンプルの長さが長くなることによる編集処理等における使い勝手の劣化を極力回避するようになされている。
【0082】
これに対してこのようにして1サンプルを3GOPに設定して、記録の進行によりメモリ15Aの空き容量Mがこのメモリ15Aの容量の1/8以下となると、ステップSP13で肯定結果が得られることにより、システム制御マイコン19は、ステップSP13からステップSP14に移る。ここでシステム制御マイコン19は、ファイル生成器15に対して、1サンプルを4GOPに設定するように指示し、これにより1サンプルの長さをさらに増大させる。
【0083】
続いてシステム制御マイコン19は、ステップSP15に移り、ユーザーより記録の終了が指示されたか否か判断し、ここで否定結果が得られると、ステップSP16に移り、メモリ15Aの空き容量Mがこのメモリ15Aの容量の1/16以下となったか否か判断する。ここで否定結果が得られると、システム制御マイコン19は、ステップSP14に戻る。これによりシステム制御マイコン19は、メモリ15Aの空き容量Mがこのメモリ15Aの容量の1/8〜1/16の範囲では、1サンプルを4GOPに設定して撮像結果を光ディスク2に記録する。また途中で、ユーザーによるトリガスイッチの操作によりステップSP15で肯定結果が得られると、ステップSP15からステップSP6に移る。
【0084】
これによりこのビデオディスク装置1では、1サンプルを3GOPに設定して、さらに記録が進行してメモリ15Aの空き容量が残り少なくなると、1サンプルを4GOPに設定して撮像結果を記録するようになされている。
【0085】
またこのようにして1サンプルを4GOPに設定して、記録の進行によりメモリ15Aの空き容量Mがこのメモリ15Aの容量の1/16以下となると、ステップSP16で肯定結果が得られることにより、システム制御マイコン19は、ステップSP16からステップSP17に移り、ファイル生成器15に対して、1サンプルを5GOPに設定するように指示する。
【0086】
続いてシステム制御マイコン19は、ステップSP18に移り、ユーザーより記録の終了が指示されたか否か判断し、ここで否定結果が得られると、ステップSP19に移り、メモリ15Aの空き容量Mがこのメモリ15Aの容量の1/32以下となったか否か判断する。ここで否定結果が得られると、システム制御マイコン19は、ステップSP17に戻る。これによりシステム制御マイコン19は、メモリ15Aの空き容量Mがこのメモリ15Aの容量の1/16〜1/32の範囲では、1サンプルを5GOPに設定して撮像結果を光ディスク2に記録する。また途中で、ユーザーによるトリガの操作によりステップSP18で肯定結果が得られると、ステップSP18からステップSP6に移る。
【0087】
これによりこのビデオディスク装置1では、1サンプルを4GOPに設定して、さらに記録が進行してメモリ15Aの空き容量が残り少なくなると、1サンプルを5GOPに設定して撮像結果を記録するようになされている。
【0088】
またこのようにして1サンプルを5GOPに設定して、記録の進行によりメモリ15Aの空き容量Mがこのメモリ15Aの容量の1/32以下となると、ステップSP19で肯定結果が得られることにより、システム制御マイコン19は、ステップSP19からステップSP20に移り、ファイル生成器15に対して、1サンプルを6GOPに設定するように指示する。
【0089】
続いてシステム制御マイコン19は、ステップSP21に移り、ユーザーより記録の終了が指示されたか否か判断し、ここで否定結果が得られると、ステップSP22に移り、メモリ15Aの空き容量Mがこのメモリ15Aの容量の1〔KByte〕以下となったか否か判断する。ここで否定結果が得られると、システム制御マイコン19は、ステップSP22に戻る。これによりシステム制御マイコン19は、メモリ15Aの空き容量Mがこのメモリ15Aの容量の1/32〜1〔KByte〕の範囲では、1サンプルを6GOPに設定して撮像結果を光ディスク2に記録する。また途中で、ユーザーによるトリガスイッチの操作によりステップSP21で肯定結果が得られると、ステップSP21からステップSP6に移る。これに対してメモリ15Aの空き容量が1〔KByte〕以下となると、ステップSP22で肯定結果が得られることにより、ステップSP22からステップSP6に移り、撮像結果の記録を強制的に終了する。
【0090】
これらによりシステム制御マイコン19は、メモリ15Aの空き容量により記録の進行を監視し、記録の進行により順次段階的に1サンプルの長さを増大させてメモリ15Aのオーバーフローを有効に回避するようになされ、このオーバーフローの回避によりQTファイルを長時間記録するようになされている。なお最終的にメモリ15Aの空き容量が1〔KByte〕以下となった時点で記録を強制的に終了するのは、ムービーボックスの処理に余裕を持たせるためである。
【0091】
図19は、このシステム制御マイコン19におけるサンプルの設定と、記録時間との関係を示す特性曲線図である。これによりビデオディスク装置1では、管理情報を保持するメモリ15Aにおいて、記録の進行によりメモリ容量が少なくなってくると、その分、管理情報の増大速度を小さくして空き容量の減少する速度を小さくすることができ、これによりこのメモリ15Aにおける管理情報のオーバーフローを防止することができる。これにより少ない容量のメモリを用いる場合でもQTフォーマットによるファイル等を長時間記録することができる。またこのようにして作成される管理情報のボックスにおいては、当初、管理単位が十分な長さに設定されて、メモリ容量の減少により管理単位が長くなることにより、例えば、記録時間の短いファイルについては、管理単位を当初の設定のままに保持することができる。また記録時間が長くなると、その分、末尾側で順次管理単位の長さが長くなることになる。これにより管理単位の長さに増大による編集作業等における使い勝手の劣化を極力回避することができる。
【0092】
なおこのようなメモリ15Aの空き容量の判定基準においては、図19との対比により図20に示すように、例えば比較的短いシーンの記録が繰り返される場合等の、予測される機器の使用形態に応じて種々に設定することができる。因みに、図20の例は、メモリ15Aの空き容量Mの判定基準をそれぞれ3/4、7/8、15/16、31/32、63/64に設定した場合である。
【0093】
なおこのように段階的に1サンプルの長さを増大させると、何ら1チャンクのサンプル数を変更しない場合、相対的に1チャンクの長さが長くなる。これによりチャンクの数を基準にしてビデオデータ及びオーディオデータをインターリーブして多重化すると、1サンプルの長さが増大した分、インターリーブ周期が長くなり、ビデオデータ、オーディオデータの連続した再生が困難になる恐れがある。
【0094】
これにより、1サンプルの長さを増大させても一定値以上1チャンクの長さが変化しないように、1チャンクを構成するサンプル数を所定範囲で併せて補正して、オーディオデータ、ビデオデータの連続した再生を確実なものとするようにしてもよい。
【0095】
(1−2)第1の実施の形態の動作
以上の構成において、このビデオディスク装置1では、撮像手段で取得されるビデオ信号DV1がビデオ符号器11によりデータ圧縮されて可変レートによりファイル生成器15に入力され、またマイク等で取得されるオーディオ信号DA1がオーディオ符号器12によりデータ圧縮されてファイル生成器15に入力され、ここでQTファイルに変換されて続く一連の構成により光ディスク2に記録される。
【0096】
このファイル生成器15における処理において、ビデオデータ及びオーディオデータは、最小管理単位であるサンプルが設定され、このサンプルの集合によるチャンクにまとめられ、チャンク毎にインターリーブされてメディアデータボックスのデータとして出力され、光ディスク2に記録される。ビデオデータ及びオーディオデータは、このようにして順次処理されながら、各サンプル、各チャンクの再生に必要な情報が取得されて管理情報としてメモリ15Aに蓄積され、実データであるメディアデータボックスの記録が完了すると、このメモリ15Aに記録された管理情報によるムービーボックスのデータが記録手段に出力され、メディアデータボックスに対応するムービーボックスが光ディスク2に記録される。ビデオデータ及びオーディオデータは、これによりQTファイルとして光ディスク2に記録されることになる。
【0097】
このようにして記録されるQTファイルにおいては、実データに順次設定した管理単位による管理情報を、実データの他の管理情報と共に階層構造によりボックス化してムービーボックスが形成され、この管理単位による情報により、再生に必要な情報が把握される。すなわち管理情報単位の記録位置に関しては、チャンクオフセットボックスに設けられた各エントリにより先頭位置が検出される。また各サンプルについては、このチャンクオフセットボックスの記録と、サンプルサイズボックスに設けられら各サンプルのデータ量とにより、ファイル先頭、チャンク先頭を順次辿って検出される。
【0098】
これによりQTファイルでは、チャンクオフセットボックス、サンプルサイズボックスにおけるエントリがチャンク毎、サンプル毎に設けられ、これらチャンクオフセットボックス、サンプルサイズボックスのデータ量が記録の進行により徐々に増大し、何ら対応策を講じない場合には、ファイル生成器15におけるメモリ15Aの記録が破綻してしまうことになる。またコンポジション時間サンプルボックス(composition time−to−sample)においても、同様に記録の進行によりデータ量が増大することになる。
【0099】
このためこの実施の形態においては、システム制御マイコン19によるファイル生成器15の制御により、記録の進行によりサンプルの長さが順次段階的に増大される。これによりビデオディスク装置1では、1サンプルの長さを増大させた分、チャンク、サンプルの設定速度を低下させることができ、チャンクオフセットボックス、サンプルサイズボックスについて、データ量の増大速度を低下させることができる。これらによりビデオディスク装置1では、管理情報を保持するメモリ15Aにおいて、記録の進行によりメモリ容量が少なくなってくると、その分、管理情報の増大速度を小さくして空き容量の減少する速度を小さくすることができ、これによりこのメモリ15Aにおける破綻を防止して、メディアデータの記録を完了した後に、確実にムービーデータを記録することができる。これにより少ない容量のメモリを用いる場合でもQTフォーマットによるファイルを長時間記録することができる。
【0100】
またこのようにして作成されるムービーボックスにおいては、当初、管理単位であるサンプルが十分な長さに設定されて、メモリ容量の減少により管理単位が長くなることにより、例えば、記録時間の短いファイルについては、管理単位を当初の設定のままに保持することができる。また記録時間が長くなると、その分、末尾側で順次管理単位の長さが長くなることになる。これにより管理単位の長さの増大による編集作業等における使い勝手の劣化を極力回避することができる。
【0101】
なおこのようにしてサンプルの長さを変更した場合、サンプルテーブルボックスのサンプルディスクリプションボックス(sample description)、時間サンプルボックス(time−to−sample)、サンプルチャンクボックス(sample−to−chunk )では、却ってデータ量が増大する。しかしながらこれらのボックスにおけるデータ量の増大は、サンプル長の変更時点で、1つのエントリを登録することにより増大するものであり、チャンクオフセットボックス、サンプルサイズボックスにおけるデータ量の減少に比して、格段的に小さく、これにより無視することができる。
【0102】
しかしてこの実施の形態では、このように記録の進捗を監視して段階的にサンプルの長さを増大させてメモリ15Aにおける破綻を防止するようにして、この進捗の監視が、破綻防止対象であるメモリ15Aの空き容量の監視により実行される。これによりビデオディスク装置1では、編集作業等における使い勝手の劣化を極力回避して、簡易かつ確実に、少ない容量のメモリを用いる場合でもQTフォーマットによるファイル等を長時間記録することができる。
【0103】
またこのようにして記録する実データのビデオデータストリームが、GOPを単位したデータ圧縮に係るエレメンタリストリームであるのに対し、このエレメンタリストリームのGOPを単位にして段階的にサンプルの長さが増大するように設定され、これによりサンプルの長さを切り換えてなる何れの箇所においてQTファイルを再生する場合でも、サンプルテーブルボックスの記録により1サンプル単位でQTファイルを再生することができるようになされている。
【0104】
(1−3)第1の実施の形態の効果
以上の構成によれば、QTファイルのサンプルに対応する管理単位の長さを実データの記録の進行により順次段階的に増大させることにより、編集作業等における使い勝手の劣化を極力回避して、少ない容量のメモリを用いる場合でもQTフォーマットによるファイルを長時間記録することができる。
【0105】
また管理情報を保持するメモリの空き容量を監視して実データの記録の進捗を監視することにより、編集作業等における使い勝手の劣化を極力回避して、簡易かつ確実に、少ない容量のメモリを用いる場合でもQTフォーマットによるファイル等を長時間記録することができる。
【0106】
またGOPを単位とした符号化処理に係るビデオデータを処理するにつき、管理単位の長さを、このビデオデータのGOPを単位にして順次段階的に増大させることにより、何れの箇所を再生する場合でも、サンプルテーブルボックスの記録により1サンプル単位でQTファイルを再生することができ、QTファイルにおけるランダムアクセス性の低下を有効に回避することができる。
【0107】
(2)第2の実施の形態
この実施の形態においては、ビデオデータのデータ圧縮処理に、1フレーム単位でデータ圧縮処理が完結する圧縮符号化方式であるJPEG、Motion JPEG、Motion JPEG2000等を適用する。またこれに対応して図18〜図20においてGOPの数を記述した箇所に括弧書きにより示すように、フレームを単位にしてサンプル長を順次段階的に増大させる。なおこの実施の形態においては、これらの処理に関連する構成が異なる点を除いて、第1の実施の形態と同一に構成される。
【0108】
この実施の形態のように、1フレーム単位でデータ圧縮処理が完結する圧縮符号化方式によりビデオデータをデータ圧縮した場合でも、第1の実施の形態と同様の効果を得ることができる。
【0109】
またこの場合、フレームを単位にしてサンプル長を順次段階的に増大させて、QTファイルにおけるランダムアクセス性の低下を有効に回避することができる。
【0110】
(3)第3の実施の形態
この実施の形態においては、図2において破線により示すように、バッテリ残量検出回路40によりバッテリの残量を検出し、この検出結果によりサンプルの長さを切り換える特性を変更する。なおこの実施の形態においては、このバッテリ残量の検出結果に係るシステム制御マイコン19の構成が異なる点を除いて、第1又は第2の実施の形態と同一に構成される。
【0111】
すなわちメモリ15Aの空き容量が十分に残っている場合、光ディスク2に十分な空き容量が残っている場合であっても、バッテリの残量が少ない場合、このバッテリの残量により記録時間が制限され、結局、QTファイルの記録を完了しなければならなくなる。この場合、例えば図19に破線により示すように、バッテリにより制限される記録可能時間Tが短い場合にあっては、当初の設定により1サンプルを1GOPに設定したままでも、QTファイルの記録を完了できることになる。
【0112】
またこのように当初の設定により1サンプルを1GOPに設定したままではメモリ15Aが破綻するものの、1サンプルの長さを2GOPに切り換えたままで、QTファイルの記録を完了できる場合もある。
【0113】
これによりこの実施の形態においては、バッテリの残量による記録可能時間により、メモリ15Aの空き容量を判定する判定基準を切り換え、1サンプルの長さを増大させる特性を、バッテリの残量に応じて適応的に変化させる。またシステム制御マイコン19において、バッテリの残量検出結果より、バッテリが尽きかける直前で、強制的に撮像結果の記録を終了する。
【0114】
この実施の形態のように、バッテリの残量による記録可能時間により、メモリの空き容量を判定する判定基準を切り換え、1サンプルの長さを増大させる特性を適応的に変化させるようにすれば、第1及び第2の実施の形態に比して使い勝手を向上して、第1及び第2の実施の形態と同様の効果を得ることができる。
【0115】
(4)第4の実施の形態
この実施の形態においては、記録媒体の空き容量に応じてサンプルの長さを切り換える特性を変更する。なおこの実施の形態においては、この空き容量の処理に係るシステム制御マイコン19の構成が異なる点を除いて、第1、第2又は第3の実施の形態と同一に構成される。
【0116】
すなわちメモリ15Aの空き容量が十分に残っている場合、バッテリが十分な場合でも、光ディスク2の空き容量が少ない場合、光ディスク2の空き容量により記録時間が制限され、結局、QTファイルの記録を完了しなければならなくなる。
【0117】
この場合も、第3の実施の形態について上述したバッテリの残量により記録可能時間が制限される場合と同様に、当初の設定により1サンプルを1GOPに設定したままでも、QTファイルの記録を完了できる場合、さらには1サンプルを1GOPに設定したままではメモリ15Aが破綻するものの、1サンプルの長さを2GOPに切り換えたままで、QTファイルの記録を完了できる場合が発生する。
【0118】
これによりこの実施の形態においては、記録媒体である光ディスク2の空き容量により、メモリ15Aの空き容量を判定する判定基準を切り換え、1サンプルの長さを増大させる特性を、記録媒体の空き容量に応じて適応的に変化させる。またシステム制御マイコン19において、光ディスク2の空き容量、メモリ15Aに記録した管理情報のデータ量を監視し、ムービーボックスの分まで光ディスク2の空き容量が少なくなると、強制的にメディアデータボックスの記録を終了してムービーボックスを記録する。
【0119】
この実施の形態のように、記録媒体の空き容量により1サンプルの長さを増大させる特性を適応的に変化させるようにすれば、第1〜第3の実施の形態に比して使い勝手を向上して、第1及び第2の実施の形態と同様の効果を得ることができる。
【0120】
(4)他の実施の形態
なお上述の実施の形態においては、ビデオデータにおけるサンプルの変更に伴ってオーディオデータのサンプルを変更する場合について述べたが、本発明はこれに限らず、オーディオデータについては、チャンクを構成するサンプル数の変更により、ビデオデータにおけるサンプルの変更に対応するようにしてもよい。
【0121】
また上述の実施の形態においては、記録の進捗をメモリの空き容量により監視する場合について述べたが、本発明はこれに限らず、記録時間、記録媒体のデータ量の変化等、種々の監視基準による監視方法を広く適用することができる。
【0122】
また上述の実施の形態においては、MPEG1 Audio Layer 2の圧縮符号化方式によって符号化したオーディオデータ、MPEG2 Video 、Motion JPEG、Motion JPEG2000の圧縮符号化方式によって符号化したビデオデータを光ディスク2に記録する場合について述べたが、本発明はこれに限らず、QTファイルに適用可能なオーディオデータ、ビデオデータの記録に広く適用することができる。
【0123】
また上述の実施の形態においては、本発明をビデオディスク装置に適用してQTファイルを記録する場合について述べたが、本発明はこれに限らず、ISOBase Madiaファイルフォーマット(MPEG4−part12)、 Motion JPEG2000(MJ2)ファイルフォーマット、AVC(Advance Video Coding:MPEG4−part10)ファイルフォーマット等、QTファイルと同様に、管理単位による管理情報を他の管理情報とまとめて階層構造によりボックス化してなるファイルの記録に広く適用することができる。
【0124】
また上述の実施の形態においては、本発明をビデオディスク装置に適用して光ディスクにファイルを記録する場合について述べたが、本発明はこれに限らず、磁気ディスク、メモリカード等、種々の記録媒体に記録する場合にも広く適用することができる。
【0125】
また上述の実施の形態においては、本発明をビデオディスク装置に適用した場合について述べたが、本発明はこれに限らず、撮像機能を有する携帯電話、PDA(Personal Digital Assisiants )、さらには有線、無線により得られる撮像結果を記録するサーバー等、要はビデオデータを記録する各種記録装置に広く適用することができる。
【0126】
【発明の効果】
上述のように本発明によれば、QTファイルのサンプルに対応する管理単位の長さを実データの記録の進行により順次段階的に増大させることにより、編集作業等における使い勝手の劣化を極力回避して、少ない容量のメモリを用いる場合でもQTフォーマットによるファイル等を長時間記録することができる。
【図面の簡単な説明】
【図1】本発明の第1の実施の形態に係るビデオディスク装置におけるシステム制御マイコンの処理手順を示すフローチャートである。
【図2】本発明の第1の実施の形態に係るビデオディスク装置を示すブロック図である。
【図3】QTファイルの説明に供する略線図である。
【図4】QTファイルのボックス構造を示す略線図である。
【図5】QTファイルのボックス構造を示す図表である。
【図6】図5の続きを示す図表である。
【図7】サンプルディスクリプションボックスを示す図表である。
【図8】時間サンプルボックスを示す図表である。
【図9】サンプルサイズボックスを示す図表である。
【図10】サンプルチャンクボックスを示す図表である。
【図11】ビデオデータとQTファイルとの関係を示すタイムチャートである。
【図12】オーディオデータとQTファイルとの関係を示すタイムチャートである。
【図13】1サンプルを4GOPに設定した場合について、ビデオデータとQTファイルとの関係を示すタイムチャートである。
【図14】チャンクオフセットとの関連によりオーディオデータとQTファイルとの関係を示すタイムチャートである。
【図15】光ディスク上におけるQTファイルのレイアウトを示す略線図である。
【図16】ビデオデータ及びオーディオデータのチャンクを対にして配置する場合について、光ディスク上におけるQTファイルのレイアウトを示す略線図である。
【図17】図16の他の例を示す略線図である。
【図18】図1の続きを示すフローチャートである。
【図19】図1及び図18の処理手順によるサンプルの切り換えを示す特性曲線図である。
【図20】図19の他の例を示す特性曲線図である。
【符号の説明】
1……ビデオディスク装置、2……光ディスク、11……ビデオ符号器、12……オーディオ符号器、15……ファイル生成器、15A、17、20……メモリ、19……システム制御マイコン、40……バッテリ残量検出回路
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a file recording device and a file recording method, and can be applied to, for example, a video camera that records an imaging result using a QT format file. The present invention increases the length of a management unit corresponding to a sample of a QT file in a stepwise manner in accordance with the progress of actual data recording, thereby minimizing deterioration in usability in editing work and the like, and minimizing the memory capacity. , It is possible to record a file or the like in the QT format for a long time.
[0002]
[Prior art]
Conventionally, a Quick Time file format (hereinafter, referred to as a QT format) has been widely known as a file format compatible with multimedia. In recent years, an ISO Base Media file format (MPEG4-part12), Motion based on the QT format has been used as a reference. The JPEG2000 (MJ2) file format, the AVC (Advanced Video Coding: MPEG4-part10) file format, and the like are standardized.
[0003]
In this type of file format, actual data such as moving images, still images, and audio are grouped into blocks, and separately from the blocks of the actual data, management information for managing the actual data is grouped into blocks. Is done. Hereinafter, such a block is called a box, and a box in which actual data is put together is called a media data box (Media Data Box). A box in which the management information is put together is called a movie box (Movie Box).
[0004]
In this type of file format, this movie box is created by grouping management information for each attribute into a box according to a hierarchical structure, and by this movie box, a media data box held integrally and held in another file The media data box can be managed to reproduce a moving image or the like, whereby various media can be provided in a so-called internal reference format or external reference format. In such an external reference format, the media data box of another file can be managed, so that it can be used for nonlinear editing or the like.
[0005]
In this type of file format, in the media data box, real data is divided by a predetermined minimum management unit, and in a movie box, management information is stored in the lowest layer box for each of the minimum management units of the real data. Is set. Hereinafter, the minimum management unit of the actual data is referred to as a sample. Thus, in this type of file format, editing processing, cueing processing, and the like can be executed in units of this sample.
[0006]
When a file is created in this type of file format, one frame or one GOP (one GOP) corresponding to a display unit is usually considered in consideration of the convenience of processing, for example, as disclosed in JP-A-2001-94933. Group Of Pictures) is set to one sample. Although the length of one sample can be changed in one file, in order to simplify the processing, one sample is set to a fixed length in one file. I have.
[0007]
As a result, in this type of file format, the data amount of the movie box increases with the progress of the recording using the actual data, and the content of the movie box is not determined unless the recording of the actual data is completed. Thus, when recording a file on a recording medium such as a hard disk or an optical disk in this type of file format, data necessary for creating a movie box is sequentially stored in a memory or the like while sequentially recording a media data box on the recording medium. When the recording is completed and the recording of the media data box is completed, a movie box is created from the data retained in the memory or the like and recorded on the recording medium.
[0008]
[Patent Document 1]
JP 2001-94933 A
[0009]
[Problems to be solved by the invention]
By the way, when the management information whose data amount increases along with the recording of the actual data is stored in a memory or the like and recorded on a recording medium, in a device such as a computer having a memory having a sufficient capacity, a long time is required. Even when actual time data is recorded, it is possible to sufficiently cope with the case.
[0010]
However, in such a file format, it is conceivable that the present invention is applied to a portable video recorder in order to achieve compatibility with a computer. In such a portable device, a sufficient memory is required compared to a computer or the like. There is a disadvantage that it is difficult to secure the capacity.
[0011]
As a result, when recording a file in this type of file format in such a portable device, there has been a problem that recording cannot be continuously performed for a long time.
[0012]
That is, in the case of recording for a long time, the capacity of the memory is insufficient for storing the management information in the middle of recording, and even if the recording of the media data box which is the actual data can be completed correctly, It becomes difficult to correctly record the movie box that manages this, and it becomes impossible to reproduce the actual data of the media data box that has been correctly recorded. As a result, the recording is forcibly stopped in the middle of the recording, one file is created by the previous recording, and the recording is restarted again.
[0013]
Incidentally, for example, when one sample is set to one frame and video data by MPEG (Moving Picture Experts Group) is recorded for one hour, the QT format is used for time management among boxes constituting a sample table box. The data amount of the box (composition time-to-sample box) becomes about 563 [KB], and the data amount of the box (Sample Size Box) for managing the data amount of the sample becomes about 422 [KB].
[0014]
One way to solve this problem is to set the number of frames to be allocated to one sample and the length of the GOP to be long. However, there is a problem that the resolution in processing such as processing becomes coarse, and usability in processing such as non-linear editing is significantly deteriorated.
[0015]
The present invention has been made in consideration of the above points, and it is possible to avoid deterioration of usability in editing work and the like as much as possible, and to record a file or the like in the QT format for a long time even when a small capacity memory is used. A recording device and a file recording method are proposed.
[0016]
[Means for Solving the Problems]
In order to solve this problem, the invention according to claim 1 is applied to a file recording device that records sequentially input real data on a recording medium in a file of a predetermined format, and a data processing unit based on a monitoring result of the monitoring unit. Is provided with a control means for sequentially increasing the length of the management unit in a stepwise manner as the recording of actual data progresses.
[0017]
Further, according to the invention of claim 6, after the sequentially input real data is recorded on the recording medium, the management information based on the management unit sequentially set in the real data and other management information of the real data are collectively boxed in a hierarchical structure. By applying the management information box to a file recording method of recording the box on the recording medium, the length of the management unit is gradually increased step by step as the actual data is recorded.
[0018]
According to the configuration of the first aspect, if the length of the management unit is gradually increased step by step as the actual data is recorded, the memory capacity of the memory holding the management information is reduced by the recording. Accordingly, the rate of increase of the management information can be reduced and the rate of decrease of the free space can be reduced, thereby preventing the overflow of the management information in the memory. Thus, even when a small capacity memory is used, a file or the like in the QT format can be recorded for a long time. In the management information box created in this way, the management unit is initially set to a sufficient length, and the management unit becomes longer due to a decrease in the memory capacity. Can maintain the management unit as originally set. In addition, as the recording time becomes longer, the length of the management unit sequentially becomes longer at the end. As a result, it is possible to avoid as much as possible the deterioration of usability in editing work or the like due to an increase in the length of the management unit.
[0019]
Thus, according to the configuration of the sixth aspect, a file recording method capable of recording a file or the like in the QT format for a long time even when a small-capacity memory is used is provided while avoiding deterioration of usability in editing work and the like as much as possible. can do.
[0020]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings as appropriate.
[0021]
(1) First embodiment
(1-1) Configuration of First Embodiment
(1-1-1) Overall configuration of video disk device
FIG. 2 is a block diagram showing a video disk device according to the embodiment of the present invention. In the video disk device 1, a video signal and an audio signal of a subject are obtained by an imaging unit and a voice obtaining unit (not shown), and an imaging result of the video signal and the audio signal is recorded on the optical disk 2. In addition, the imaging result recorded on the optical disk 2 is reproduced and output from a display unit using a liquid crystal display panel, an audio output unit using a speaker, and output to an external device. In the video disk device 1, after a video signal and an audio signal based on such an imaging result are data-compressed according to the MPEG format, they are recorded on the optical disk 2 in a predetermined file format. The QT format is applied to the format. In the following, a file in the QT format is called a QT file.
[0022]
Thus, in the video disk device 1, the video encoder 11 performs analog-to-digital conversion processing on the video signal DV1 based on the imaging result to generate video data, and encodes the video data according to the MPEG format. To output an elementary stream DV.
[0023]
Also, the audio encoder 12 generates audio data by performing an analog-to-digital conversion process on the audio signal DA1 based on the imaging result, encodes the audio data according to the MPEG format, and thereby outputs an elementary stream DA of the audio data. I do.
[0024]
During recording, the file generator 15 synchronizes and multiplexes the elementary streams DA and DV output from the video encoder 11 and the audio encoder 12, and creates a QT file under the control of the system control microcomputer 19. Therefore, the file generator 15 multiplexes the sequentially input elementary streams DA and DV and sequentially outputs the data of the media data box, and stores the movie box in the built-in memory 15A corresponding to the data of the media data box. The data necessary for the generation of the media data box is additionally recorded and stored, and upon completion of the recording of the media data box, a data string of the movie box is generated and output from the data stored in the memory 15A.
[0025]
The memory controller 18 switches the operation under the control of the system control microcomputer 19, and at the time of recording, sequentially records and temporarily retains the data string based on the QT file output from the file generator 15 in the memory 17, The held data is output according to the processing of the decoder 21. At the time of reproduction, on the contrary, the output data of the error correction code / decoder 21 is temporarily stored and output to the file decoder 16 and the system control microcomputer 19.
[0026]
The error correction code / decoder 21 switches its operation under the control of the system control microcomputer 19, and at the time of recording, temporarily records the output data of the memory controller 18 in the memory 20 and adds an error correction code. By reading and outputting the data held in the memory 20 in a predetermined order in this manner, the data is interleaved and output to the data modem 23. The error correction code / decoder 21 temporarily records the data output from the data modulator / demodulator 23 in the memory 20 in a predetermined order and outputs the data to the memory controller 18 in a reverse order to the time of reproduction and recording. The data output from the data modulator / demodulator 23 is deinterleaved and output. At this time, error correction processing is performed using an error correction code added during recording.
[0027]
The data modulator / demodulator 23 switches its operation under the control of the system control microcomputer 19, converts the output data of the error correction code / decoder 21 into a serial data string at the time of recording, modulates the data, and modulates the data by a magnetic field modulation driver 24 or an optical pickup. 33. At the time of reproduction, a clock is reproduced from a reproduction signal output from the optical pickup 33, and the reproduction signal is subjected to binary identification and demodulation processing with reference to this clock, whereby reproduction data corresponding to the serial data sequence generated at the time of recording is obtained. And outputs the reproduced data to the error correction code / decoder 21.
[0028]
When the optical disk 2 is a magneto-optical disk, the magnetic field modulation driver 24 drives the magnetic field head 32 by the output signal of the data modulator / demodulator 23 under the control of the system control microcomputer 19 during recording. Here, the magnetic field head 32 is held so as to face the optical pickup 33 with the optical disc 2 interposed therebetween, and applies a modulation magnetic field corresponding to the output data of the data modulator / demodulator 23 to the laser beam irradiation position of the optical pickup 33. Thus, in the video disk device 1, when the optical disk 2 is a magneto-optical disk, the imaging result is recorded on the optical disk 2 by a file in the QT format by applying a thermomagnetic recording method.
[0029]
Thus, the optical disk 2 is a disk-shaped recording medium. In this embodiment, the optical disk 2 is a rewritable optical disk such as a magneto-optical disk (MO: Magneto-Optical Disk) or a phase-change disk. Under control of the servo circuit 30, the spindle motor 31 controls the optical disk 2 according to the optical disk 2 according to the constant linear velocity (CLV), the constant angular velocity (CAV), the constant angular velocity (CAV), and the zone CLV (ZCLV: Zone Constant Linear). The optical disk 2 is rotationally driven under conditions such as Velocity).
[0030]
The servo circuit 30 controls the operation of the spindle motor 31 based on various signals output from the optical pickup 33, and thereby executes a spindle control process. Similarly, the servo circuit 30 performs tracking control and focus control of the optical pickup 33, seeks the optical pickup 33 and the magnetic field head 32, and further executes processes such as focus search.
[0031]
The drive control microcomputer 22 controls operations such as seeking in these servo circuits 30 according to an instruction from the system control microcomputer 19.
[0032]
The optical pickup 33 irradiates the optical disk 2 with a laser beam, receives the return light thereof by a predetermined light receiving element, and performs arithmetic processing on the received light to generate and output various control signals. And outputs a reproduction signal whose signal level changes in accordance with the pit row and mark row formed in the above. The optical pickup 33 switches its operation under the control of the system control microcomputer 19, and when the optical disk 2 is a magneto-optical disk, intermittently raises the amount of a laser beam applied to the optical disk 2 during recording. Thus, in the video disk device 1, an imaging result is recorded on the optical disk 2 by a so-called pulse train method. When the optical disk 2 is a phase change type disk or the like, the optical pickup 33 raises the light amount of the laser beam applied to the optical disk 2 from the light amount at the time of reproduction to the light amount at the time of writing according to the output data of the data modulator / demodulator 23. Thus, the imaging result is recorded on the optical disk 2 by applying the thermal recording method.
[0033]
Thus, in the video disk device 1, the video signal and the audio signal based on the imaging result are data-compressed by the video encoder 11 and the audio encoder 12 and converted into an elementary stream, and then the file generator 15 converts the video signal and the audio signal into a QT format file. The QT format file is recorded on the optical disk 2 by the optical pickup 33 or by the optical pickup 33 and the magnetic field head 32 through the memory controller 18, the error correction code / decoder 21, and the data modem 23 sequentially. It has been made.
[0034]
In the video disk device 1, the reproduced signal obtained from the optical pickup 33 is processed by the data modulator / demodulator 23 to obtain reproduced data, and the reproduced data is processed by the error correction code / decoder 21 and recorded on the optical disk 2. Files in the QT format can be reproduced, and data of the files in the QT format are output from the memory controller 18.
[0035]
The file decoder 16 receives the data of the QT file output from the memory controller 18, decomposes the data into elementary streams of video data and audio data, and outputs them. In this process, the file decoder 16 acquires and holds the data of the movie box in advance by the control of the seek and the like by the system control microcomputer 19, and based on the management information set in the movie box, the video data and the audio data. Output the elementary stream of.
[0036]
The video decoder 13 decompresses the elementary stream of the video data and outputs it to display means (not shown) and an external device. The audio decoder 14 decompresses the elementary stream of the audio data output from the file decoder 16 and outputs it to audio output means (not shown) and an external device. As a result, the video disk device 1 can monitor the imaging result reproduced from the optical disk 2.
[0037]
The system control microcomputer 19 is a microcomputer that controls the operation of the entire video disk device 1, and controls the operation of each unit in response to a user operation by executing a predetermined processing procedure recorded in a memory (not shown). Thereby, the system control microcomputer 19 records the imaging result on the optical disk 2, reproduces the imaging result recorded on the optical disk 2 and provides the reproduction result to the user, and further executes the editing process. In the control of each unit related to such recording, the system control microcomputer 19 switches the settings of the file generator 15 so as to sequentially switch the setting of one sample in accordance with the progress of recording, thereby effectively reducing the usability in editing work and the like. Thus, the imaging result can be recorded for a long time even when a small capacity memory is used.
[0038]
(1-1-2) QT file
Here, FIG. 3 is a conceptual diagram showing a basic configuration of the QT file. The QT format is a file format created as an extended function of an OS (Operating System) for reproducing a moving image or the like without using special hardware. The QT format is a time-based multimedia file format in which real data in various formats such as moving images, audio, still images, characters, and MIDI can be reproduced in a synchronized manner on one time axis. It is made to be able to cope with. In the QT file, the actual data in these various formats is stored as individual tracks, and the actual data tracks of moving images, sounds, and characters are respectively referred to as video tracks, sound tracks (audio tracks), and text tracks. It has been made.
[0039]
In the QT files F1 and F2, a set of the tracks forms a media data box (Media Data Box), and management information of each track of the media data box (Media Data Box) is put together to form a movie box (Movie Box). Is formed. Here, the box is also called an atom. The type name of the media data box is set to mdat, and is also called movie data (Movie Data). On the other hand, the movie box has a box type name set to moov, and is also called a movie resource (Movie Resource).
[0040]
The QT file includes a self-contained file F1 having a format in which the media data box and the movie box are integrated, and an external reference file F2 having only the movie box. In the external reference file F2, A media data box existing in another file F1 can be set as a management target, so that it can be used for non-linear editing or the like. When the media data box existing in the other file F1 is to be managed as described above, management information such as a relative path and an absolute path on the recording medium for the other file is also assigned to the movie box. It has been made to be.
[0041]
FIG. 4 is a table showing the media data box and the movie box in detail when the media data box is constituted by the video track and the audio track with respect to the self-contained file F1. FIGS. 5 is a chart showing the configuration of FIG. 4 together with type names in C language description. In the movie box, the description of the track box (type name trak) for the lower layer of the track box related to the audio track is omitted in FIG. 4 because the box structure of the lower layer is almost the same for the video track and the audio track. Shown.
[0042]
Movie boxes are created in a hierarchical structure in which management information is boxed for each attribute. That is, the movie box is configured by a movie header box (movie header), a track box (track), and the like. The movie header box contains header information, and the type name is set to mvhd. On the other hand, the track boxes (track) are provided corresponding to the tracks provided in the media data box. The track box (track) is composed of a track header box (track header), an edit box (edit), a media box (media), and the like, and describes information on individual actual data in the media data box.
[0043]
Here, a track header box (track header) contains header information. The edit box (edit) includes an edit list box (edit list) as necessary, and by setting information such as time information up to an in point and an out point, reproduction speed, and the like in the edit list box (edit list). Has been made available for non-linear editing.
[0044]
In the media box (media), information for managing the compression method, storage location, display time, and the like of the corresponding real data is assigned, and the type name is set to mdia. The media box (media) is composed of a media header box (media header), a media handler reference box (media handler reference), and a media information box (media information). Here, a media header box (media header) is assigned header information, and a media handler reference box (media handler reference (indicated by media handler in FIG. 4)) records the type of the corresponding real data. Video data, audio data, and the like can be identified.
[0045]
In the media information box (media information), various types of information relating to the sample, which is the minimum management unit, are assigned, and the type name is set to minf. The media information box (media information) includes a media header (video media information header, sound media information header (indicated by a video media header in FIG. 4) corresponding to actual data), and a data handler reference box (representing a header field). , Data handler), a data information box (data information), and a sample table box (sample table).
[0046]
Here, the type of the media header is set to vmhd and smhd in the video track and the audio track, respectively, corresponding to the upper media handler reference box (media handler reference), and the header information is stored. In the data handler reference box (data handler reference), information relating to the handling of the corresponding real data is set, and in the data information box (data information), data actually referred to by the lower-level data reference box (data reference) is stored. Information on the location and storage method is assigned.
[0047]
In the sample table box (sample table), information about each sample is assigned, and the type name is set to stbl. The sample table box (sample table) includes a sample description box (sample description), a time sample box (time-to-sample), a sample size box (sample size), a sample chunk box (sample-to-chunk), and a chunk offset. It comprises a box (chunk offset), a synchronous sample box (sync sample), a composition time sample box (composition time-to-sample), and the like.
[0048]
Here, in the sample description box (sample description), information on decoding is stored, and specifically, a data compression method and related information are assigned. That is, as shown in FIG. 7, the sample description box (sample description) is sequentially assigned a size (Size), a type name (stsd), a version, and a flag of the sample description box (sample description). Also, the number of entries (number of Entries) of the sample description box (sample description) is allocated, and an entry (Video sample description entry) based on the data compression method and related information is allocated by the number of entries.
[0049]
In the sample description box (sample description), these entries (Video sample description entry) are registered, and the number of entries (number of entry entries) is registered in response to a change in the processing of the actual data related to this entry (Video sample description entry). Is counted up. The sample description box (sample description) is provided with a field (Frame Count) for describing the number of frames to be allocated to one sample in one of the entries (Video sample description entry), and the number of frames of one sample is provided in this field. It is made to record it. Specifically, when one GOP is defined as one sample, 15 frames are described in this field. When two GOPs are defined as one sample, 30 frames are described in this field. By the way, the entry (Video sample description entry) related to such a change of the processing has the entry number in the index number (sample description Index) set in the entry of the sample chunk box (sample-to-chunk) described later. Corresponding settings are made so that a change in the corresponding process in the actual data can be detected.
[0050]
Accordingly, in the sample description box (sample description), even if the data amount of the media data box increases due to the progress of recording, the data amount is held at a constant value, but the frame allocated to one sample in the middle When the number is changed, the data amount is increased by one entry.
[0051]
In a time sample box (time-to-sample), a relationship between each sample and a time axis related to decoding is described by a frame rate. That is, as shown in FIG. 8, a time sample box (time-to-sample) is sequentially assigned a size (Size), a type name (stts), a version, and a flag of the time sample box (time-to-sample). The number of entries (number of entries) is assigned, and the entries (Time-to-Sample entries # 1 to #M) are registered by the number of entries. The time sample box (time-to-sample) includes a display time (Sample Duration) of one sample and a number of samples (Sample) to which the display time is applied to this entry (Time-to-Sample entry # 1 to #M). Count) is assigned. Thus, in a QT file, for example, when video signals of different frame rates are recorded by one file according to the NTSC system or the PAL system, the time sample box (time-to-sample) can be reproduced without discomfort. It has been made. In this embodiment, the time sample box (time-to-sample) is held at a constant data amount even when the data amount of the media data box increases due to the progress of recording.
[0052]
On the other hand, when the number of frames allocated to one sample is changed, the display time (Sample Duration) differs due to the change in the display time per sample. Thereby, in this case, an entry (Time-to-Sample entry) is added to the time sample box (time-to-sample), and the number of entries (number of Entries) is up-counted. Thus, when the number of frames assigned to one sample is changed during recording, the data amount of the time sample box (time-to-sample) is increased by one entry.
[0053]
The sample size box (sample size) describes the data amount of each sample. That is, as shown in detail in FIG. 9, the sample size box (sample size) is sequentially assigned the size (Size), the type name (stsz), the version, and the flag of the sample size box (sample size). The length (Default Sample Size value) is recorded. If even one sample size is different, the number of entries (Number of Entries) is described by a value corresponding to the number of samples, and the size (Sample Size value) of each sample is represented by an entry (Sample Size entry # 1 to #N). ). In the sample size box (sample size), this one entry (Sample Size entry) is described by 4 [Byte] having a fixed length, and this entry is provided for each sample in the actual data. Accordingly, in the sample size box (sample size), as the number of samples in the media data box increases due to the progress of recording, the number of entries (Number of Entries) and the entries (Sample Size entries # 1 to #N) increase accordingly. Thus, the data amount is increased.
[0054]
The sample chunk box (sample-to-chunk) describes the relationship between a chunk (chunk) and the samples that make up the chunk (chunk). Here, a chunk is a block when each track data is divided into blocks and assigned to a media data box, and one chunk is created by a set of a plurality of samples. In the sample chunk box (sample-to-chunk), a size (Size), a type name (stsc), a version, and a flag of the sample chunk box (sample-to-chunk) are sequentially assigned, the number of entries (Number of Entries), Entries (Sample-to-Chunk entry # 1 to Sample-to-Chunk entry #M) are described. Here, each time the number of samples constituting one chunk is changed, an entry (Sample-to-Chunk entry) is registered in the sample chunk box (Sample-to-Chunk), and this entry (Sample-to-Chunk) is registered. The first chunk number (First Chunk Number) related to the entry, the number of samples per chunk (Sample per Chunk), and the like are assigned to the entry.
[0055]
When the number of frames allocated to one sample is changed during recording, the sample chunk box (sample-to-chunk) corresponds to the addition of an entry in the sample description box (sample description) described above. Chunk entry) is added, and the entry of the corresponding sample description box (sample description) can be specified by the index number (sample description Index) of this entry. As a result, the sample chunk box (sample-to-chunk) is kept at a fixed data amount even if the number of samples in the media data box increases due to the progress of recording. When the number is changed, the data amount is increased by one entry.
[0056]
In the chunk offset box (chunk offset), position information of the beginning of each chunk based on the beginning of the file is recorded by an entry. As a result, in the chunk offset box, as the number of chunks in the media data box increases due to the progress of recording, the data amount increases in the same manner as in the sample size box (sample size). I have.
[0057]
The synchronization sample box (sync sample) and the composition time sample box (composition time-to-sample) are optional. In the synchronous sample box (sync sample), the position information of the I picture in the sample is described in the form of a table, and in the composition time sample box (composition time-to-sample), the order on the stream and the display on the stream are determined by data compression processing. , The time information related to the display is recorded. Accordingly, in the composition time-to-sample, as the number of samples in the media data box increases as recording progresses, the data amount increases accordingly. In this embodiment, by setting one sample in GOP units, these synchronous sample boxes (sync samples) are omitted.
[0058]
The audio track does not require the rearrangement of decoding results as in the case of the video track, so that a composition time-to-sample is omitted, and data is compressed at a fixed rate. Thus, although the data amount increases due to an increase in the number of samples due to the progress of recording, the degree of the increase is smaller than that of the video track.
[0059]
Thus, in the sample table box, the management information of the sample, which is the minimum management unit, is boxed for each attribute. In these boxes, a sample size box (sample size), a chunk offset box (chunk offset), and a synchronous sample box ( Sync sample) and composition time-to-sample are assigned management information whose data amount increases in accordance with the data amount of actual data due to the progress of recording. In particular, in a sample size box (sample size), a synchronous sample box (sync sample), and a composition time sample box (composition time-to-sample), data is set according to the number of samples which is the minimum management unit due to the progress of recording. Management information is assigned by a management unit whose amount increases. On the other hand, in the sample description box (sample description), the time sample box (time-to-sample), and the sample chunk box (sample-to-chunk), as in the other boxes of the sample table box, the actual data is stored. The management information required for the processing is allocated, and every time a parameter constituting the management information is changed, the changed management information is provided by the entry.
[0060]
On the other hand, in the media data box, elementary streams of video data and audio data, which are actual data of a QT file, are respectively assigned to chunks as a set of samples, and chunks and audios by the elementary streams of video data are assigned. Chunks based on elementary streams of data are provided alternately.
[0061]
In this embodiment, the audio encoder 12 and the video encoder 11 use the MPEG1 Audio Layer 2 compression encoding system to encode these audio data and video data elementary streams into audio data and MPEG2 Video compression code. Video data encoded according to a coding scheme is applied. In the QT file, various video data such as Motion JPEG, Motion JPEG2000, MPEG4, and AVC, and various audio data such as Dolby AC3 and ATRAC (Adaptive Transform Acoustic Coding) are applied to these audio data and video data. It is also possible to use linear data that has not been subjected to any compression encoding processing.
[0062]
FIG. 11 shows an example of video data having a frame rate of 30 [frames / second] with respect to data DQ of a QT file in such a media data box and a movie box. 6 is a time chart showing a relationship between a frame, a sample, and a chunk in comparison with an elementary stream DV. In the QT file, as described above, the minimum management unit is set to a sample, and a chunk is created by a set of the samples, so that one GOP (15 video frames) is set to one sample, and two samples are set to one chunk. (FIGS. 11A and 11B), one chunk is set per second, and the actual data of the elementary stream DV of the video data is sequentially managed. In FIG. 11, SH is a sequence header in the elementary stream DV. As a result, in the QT file, the actual data can be decoded by directly accessing the sample unit. In such a setting, it is desirable to apply a so-called closed GOP in which a predicted frame is set in the GOP.
[0063]
On the other hand, FIG. 12 shows an example in which sampling data of 48 [kHz] and two-channel audio data are used to compare frames, samples, and audio data output from the audio encoder 12 with the elementary stream DA. 6 is a time chart showing a relationship between chunks. In this case, in the audio data DA output from the audio encoder 12 (FIG. 12A), an audio decode unit as a decoding unit is set by 1152 samples × 2 channels. When the audio decoding unit is set to one sample for such audio data, and one chunk is set to one second in correspondence with the chunk setting in the video data shown in FIG. Are 41.66... Samples. Thereby, in this case, 41 samples, 42 samples, and 42 samples are allocated to three consecutive chunks, respectively, and the file generator 15 multiplexes video data and audio data in units of three chunks (see FIG. B)). As a result, in the QT file, even for audio data, actual data can be directly accessed and decoded in sample units.
[0064]
FIGS. 13 and 14 are time charts showing the relationship between interleaving and chunks for such video data and audio data. In the example shown in FIG. 13, a video signal DV1 having a frame rate based on a frame period t0 is input to the video encoder 11, and one GOP of video data DV obtained by encoding the video signal DV1 is set to one sample. It is. In this case, four samples are allocated to one chunk with respect to the sample based on one GOP, and interleaved with audio data in chunk units. The head of each chunk is detected by the above-described chunk offset box (chunk offset).
[0065]
On the other hand, as shown in FIG. 14, for the audio signal DA1, one audio decoding unit is assigned to one sample, and one chunk is constituted by a plurality of samples so as to correspond to an interleave unit in the video data. The video data is interleaved.
[0066]
FIGS. 15 to 17 are schematic diagrams for explaining the layout of the chunks set as described above on the optical disc 2. When a QT file having such a configuration is recorded on the optical disk 2 on which no file is recorded, data of the media data box is sequentially recorded in a continuous area first, and when the recording of the media data box is completed, the corresponding data is recorded. The movie box data is sequentially recorded in a continuous area, whereby the QT file is recorded in a continuous area as if by a single stroke.
[0067]
On the other hand, when recording and deletion of a file on the optical disk 2 are repeated, fragments are advanced on the optical disk 2 and it becomes difficult to record a QT file in a continuous area. FIGS. 15 to 17 show the layout of a QT file in such a case. FIG. 15 shows a QT file having one track structure as an example and records the QT file in at least a continuous area in chunk units. To improve accessibility. FIGS. 16 and 17 show an example of a QT file having a track structure of audio and video data, and improve the accessibility by recording the QT file in a continuous area at least in units of corresponding chunks of audio and video data. Things.
[0068]
(1-1-3) QT file processing
Accordingly, in the video disk device 1, the file generator 15 stores the sample as the minimum management unit and the chunk as the upper management unit of the sample in the elementary streams DV and DA based on the video data and the audio data as the actual data. While sequentially setting, multiplexing the elementary streams DV and DA and recording them by the recording means, the management information is sequentially acquired corresponding to the recording of the actual data and held in the memory 15A. According to the management information held in the memory 15A, the data of the movie box, which is a box of the management information, is output to the recording means, and constitutes a data processing means for these processes.
[0069]
The file generator 15 executes such setting of the management unit under the control of the system control microcomputer 19. That is, the file generator 15 sets the length of one sample for the video data and sets the number of samples constituting one chunk and the like according to the instruction of the system control microcomputer 19. The file generator 15 sets the length of one sample for the audio data as described above with reference to FIGS. 11 to 17 corresponding to the setting of one sample and one chunk for the video data. Set the number of samples to be configured.
[0070]
In response to the processing of the file generator 15, the system control microcomputer 19 instructs each circuit block including the file generator 15 to start and end recording of the imaging result in response to the operation of the trigger switch by the user. In this embodiment, the process from the start to the end of recording according to this instruction is recorded on the optical disc 2 as one QT file. In this case, the result of the repeated operation of the trigger switch may be recorded on the optical disc 2 by splicing, and the recording from power-on to power-down may be a single QT file.
[0071]
Thus, in the video disk device 1, the file generator 15 sequentially processes the elementary streams of the video data and the audio data to record the media data box on the optical disk 2, and stores the data necessary for constructing the movie box in the memory 15A. When the recording of the media data box is completed under the control of the system control microcomputer 19, the movie box is recorded on the optical disc 2 by the data accumulated in the memory 15A, and one QT file is recorded on the optical disc 2 by these. It has been made to be.
[0072]
When instructing the start of recording of the imaging result in this way, the system control microcomputer 19 instructs the file generator 15 to set the length of one sample to one GOP. When recording is started, the free space M of the memory 15A held in the file generator 15 is monitored, and the processing procedure of FIGS. 1 and 18 is executed. To be increased step by step. Thus, in this embodiment, even when recording is performed for a long time, the capacity of the memory 15A is not insufficient, and the QT file can be recorded for a long time even when a memory having a small capacity is used.
[0073]
That is, the system control microcomputer 19 moves from step SP1 to step SP2 in response to a recording start instruction from the user, instructs the file generator 15 to set the length of one sample to 1 GOP, and then records the data in each circuit block. Start is instructed, thereby starting recording of the media data box. Thus, in step SP3, the system control microcomputer 19 sequentially stores management information necessary for the movie box in the memory 15A while setting one sample to 1 GOP and recording the media box on the optical disc 2.
[0074]
When the recording is started in this manner, the system control microcomputer 19 determines whether or not the end of the recording is instructed by the operation of the trigger operator by the user in a succeeding step SP4. Moving to SP5, it is determined whether or not the free space M of the memory 15A is equal to or less than 1/2 of the capacity of the memory 15A. If a negative result is obtained here, the system control microcomputer 19 returns to step SP3. Thereby, the system control microcomputer 19 repeats the processing procedure of step SP3-step SP4-step SP5-step SP3 until the free space M of the memory 15A becomes equal to or less than 1/2 of the capacity of the memory 15A, and one sample. Is set to 1 GOP, and the imaging result is recorded on the optical disc 2. On the way, if a positive result is obtained in step SP4 by the operation of the trigger switch by the user, the process moves from step SP4 to step SP6, and instructs the file generator 15 or the like to end the recording, thereby recording the media data box. After completion, a movie box is generated from the management information stored in the memory 15A and recorded on the optical disc 2. When the recording of the movie box is completed, the process moves to step SP7, and the processing procedure ends.
[0075]
Thus, in the video disk device 1, for a file having a relatively short time, one sample is set to one GOP and recorded on the optical disk 2, thereby effectively avoiding deterioration in usability in editing processing and the like. .
[0076]
On the other hand, in this way, one sample is set to 1 GOP and the media data box is recorded. When the free space M of the memory 15A becomes equal to or less than の of the capacity of the memory 15A due to the progress of the recording, step SP5 Is obtained, the system control microcomputer 19 proceeds from step SP5 to step SP8. Here, the system control microcomputer 19 instructs the file generator 15 to set one sample to 2 GOPs, thereby increasing the length of one sample.
[0077]
Subsequently, the system control microcomputer 19 proceeds to step SP9, determines whether or not the end of recording has been instructed by the operation of the trigger operator by the user. If a negative result is obtained here, the system control microcomputer 19 proceeds to step SP10 to store the data in the memory 15A. It is determined whether or not the free space M is equal to or less than 1/4 of the capacity of the memory 15A. Here, if a negative result is obtained, the system control microcomputer 19 returns to step SP8. Thereby, the system control microcomputer 19 repeats the processing procedure of step SP8-step SP9-step SP10-step SP8 when the free space M of the memory 15A is in the range of 1/2 to 1/4 of the capacity of the memory 15A. The sample is set to 2 GOP and the imaging result is recorded on the optical disc 2. If a positive result is obtained in step SP9 by the operation of the trigger switch by the user in the middle, the process proceeds from step SP9 to step SP6, and after the recording of the media data box is completed, a movie box is generated and recorded on the optical disk 2. When the recording of the movie box is completed, the process moves to step SP7, and this processing procedure ends.
[0078]
Thus, in the video disk device 1, one sample is set to one GOP, and after recording on the optical disk 2 is started, the recording time becomes longer than a certain time, and when the capacity of the memory 15A becomes small, one sample becomes two GOPs. The imaging result is set and recorded, and the deterioration of usability in editing processing or the like due to an increase in the length of one sample is avoided as much as possible.
[0079]
On the other hand, in this way, one sample is set to 2 GOPs and the media data box is recorded, and when the free space M of the memory 15A becomes 1/4 or less of the capacity of the memory 15A as the recording progresses, step SP10 Is obtained, the system control microcomputer 19 proceeds from step SP10 to step SP11. Here, the system control microcomputer 19 instructs the file generator 15 to set one sample to 3 GOPs, thereby further increasing the length of one sample.
[0080]
Subsequently, the system control microcomputer 19 proceeds to step SP12, determines whether or not the user has instructed the end of the recording. If a negative result is obtained here, the system control microcomputer 19 proceeds to step SP13, where the free space M of the memory 15A is stored in this memory. It is determined whether or not the capacity of 15A is 1/8 or less. If a negative result is obtained here, the system control microcomputer 19 returns to step SP11. Thereby, the system control microcomputer 19 repeats the processing procedure of step SP11-step SP12-step SP13-step SP11 when the free space M of the memory 15A is in the range of 1/4 to 1/8 of the memory 15A. The sample is set to 3 GOP and the imaging result is recorded on the optical disc 2. If a positive result is obtained in step SP12 by the operation of the trigger switch by the user, the process proceeds from step SP12 to step SP6.
[0081]
Thus, in the video disk device 1, one sample is set to one GOP, and after recording on the optical disk 2 is started, the recording time becomes longer than a certain time, and when the capacity of the memory 15A becomes small, one sample becomes two GOPs. The imaging result is set and recorded, and when the recording further proceeds and the remaining capacity of the memory 15A further decreases, the imaging result is recorded by setting one sample to 3 GOP, and the length of one sample becomes longer. Thus, the deterioration of usability in editing processing or the like due to the above is avoided as much as possible.
[0082]
On the other hand, if one sample is set to 3 GOPs in this way and the free space M of the memory 15A becomes 1/8 or less of the capacity of the memory 15A due to the progress of recording, a positive result is obtained in step SP13. Accordingly, the system control microcomputer 19 proceeds from step SP13 to step SP14. Here, the system control microcomputer 19 instructs the file generator 15 to set one sample to 4 GOPs, thereby further increasing the length of one sample.
[0083]
Subsequently, the system control microcomputer 19 proceeds to step SP15, determines whether or not the user has instructed the end of the recording. If a negative result is obtained here, the system control microcomputer 19 proceeds to step SP16, and the free space M of the memory 15A is stored in the memory 15A. It is determined whether or not the capacity of 15A is 1/16 or less. Here, if a negative result is obtained, the system control microcomputer 19 returns to step SP14. Thus, when the free space M of the memory 15A is in the range of 8 to 1/16 of the capacity of the memory 15A, the system control microcomputer 19 sets one sample to 4 GOP and records the imaging result on the optical disc 2. If a positive result is obtained in step SP15 by the operation of the trigger switch by the user, the process proceeds from step SP15 to step SP6.
[0084]
Thus, in the video disk device 1, one sample is set to 3 GOPs, and when the recording further proceeds and the free space in the memory 15A becomes small, one sample is set to 4 GOPs and the imaging result is recorded. I have.
[0085]
If one sample is set to 4 GOPs in this way and the free space M of the memory 15A becomes equal to or less than 1/16 of the capacity of the memory 15A due to the progress of recording, a positive result is obtained in step SP16. The control microcomputer 19 proceeds from step SP16 to step SP17, and instructs the file generator 15 to set one sample to 5 GOPs.
[0086]
Subsequently, the system control microcomputer 19 proceeds to step SP18, and determines whether or not the user has instructed the end of the recording. If a negative result is obtained here, the system control microcomputer 19 proceeds to step SP19, where the free space M of the memory 15A is stored in this memory. It is determined whether or not the capacity of 15A is 1/32 or less. Here, if a negative result is obtained, the system control microcomputer 19 returns to step SP17. Thus, when the free space M of the memory 15A is in the range of 1/16 to 1/32 of the capacity of the memory 15A, the system control microcomputer 19 sets one sample to 5 GOP and records the imaging result on the optical disc 2. On the way, if a positive result is obtained in step SP18 due to the operation of the trigger by the user, the process proceeds from step SP18 to step SP6.
[0087]
Thus, in the video disk device 1, one sample is set to 4 GOP, and when the recording further proceeds and the free space of the memory 15A becomes small, one sample is set to 5 GOP and the imaging result is recorded. I have.
[0088]
When one sample is set to 5 GOPs in this way, and the free space M of the memory 15A becomes 1/32 or less of the capacity of the memory 15A due to the progress of recording, a positive result is obtained in step SP19. The control microcomputer 19 proceeds from step SP19 to step SP20, and instructs the file generator 15 to set one sample to 6 GOPs.
[0089]
Subsequently, the system control microcomputer 19 proceeds to step SP21, determines whether or not the end of recording has been instructed by the user. If a negative result is obtained here, the system control microcomputer 19 proceeds to step SP22, where the free space M of the memory 15A is stored in this memory. It is determined whether or not the capacity of the 15A becomes 1 [KB] or less. Here, if a negative result is obtained, the system control microcomputer 19 returns to step SP22. Thus, when the free space M of the memory 15A is in the range of 1/32 to 1 [KByte] of the capacity of the memory 15A, the system control microcomputer 19 sets one sample to 6 GOPs and records the imaging result on the optical disc 2. If a positive result is obtained in step SP21 by operating the trigger switch by the user, the process proceeds from step SP21 to step SP6. On the other hand, when the free space of the memory 15A becomes 1 [KByte] or less, a positive result is obtained in step SP22, so that the process proceeds from step SP22 to step SP6, and the recording of the imaging result is forcibly terminated.
[0090]
Thus, the system control microcomputer 19 monitors the progress of the recording based on the free space of the memory 15A, and sequentially increases the length of one sample according to the progress of the recording, thereby effectively avoiding the overflow of the memory 15A. By avoiding this overflow, a QT file is recorded for a long time. The reason why the recording is forcibly ended when the free space of the memory 15A finally becomes 1 [KByte] or less is to allow a margin for the processing of the movie box.
[0091]
FIG. 19 is a characteristic curve diagram showing the relationship between the sample setting in the system control microcomputer 19 and the recording time. As a result, in the video disk device 1, in the memory 15A holding the management information, when the memory capacity decreases due to the progress of recording, the management information increase speed is reduced accordingly, and the speed at which the free space decreases is reduced. Thus, overflow of the management information in the memory 15A can be prevented. Thus, even when a small capacity memory is used, a file or the like in the QT format can be recorded for a long time. In the management information box created in this way, the management unit is initially set to a sufficient length, and the management unit becomes longer due to a decrease in the memory capacity. Can maintain the management unit as originally set. In addition, as the recording time becomes longer, the length of the management unit sequentially becomes longer at the end. As a result, it is possible to avoid as much as possible the deterioration of usability in editing work or the like due to an increase in the length of the management unit.
[0092]
It should be noted that, in such a criterion for determining the free space of the memory 15A, as shown in FIG. 20, in comparison with FIG. Various settings can be made accordingly. Incidentally, the example of FIG. 20 is a case where the determination criteria of the free space M of the memory 15A are set to 3/4, 7/8, 15/16, 31/32, and 63/64, respectively.
[0093]
If the length of one sample is increased stepwise in this way, the length of one chunk becomes relatively long unless the number of samples of one chunk is changed. Accordingly, when video data and audio data are interleaved and multiplexed based on the number of chunks, the interleave cycle is lengthened by an increase in the length of one sample, making continuous reproduction of video data and audio data difficult. Could be.
[0094]
Thus, even if the length of one sample is increased, the number of samples forming one chunk is corrected together within a predetermined range so that the length of one chunk does not change beyond a certain value, and audio data and video data are corrected. Continuous playback may be ensured.
[0095]
(1-2) Operation of First Embodiment
In the above configuration, in the video disk device 1, the video signal DV1 obtained by the imaging means is data-compressed by the video encoder 11 and input to the file generator 15 at a variable rate. The signal DA1 is data-compressed by the audio encoder 12 and input to the file generator 15, where it is converted into a QT file and recorded on the optical disk 2 by a series of subsequent configurations.
[0096]
In the processing in the file generator 15, the video data and the audio data are set as a sample which is a minimum management unit, collected into a chunk by a set of the samples, interleaved for each chunk, and output as data of a media data box. Is recorded on the optical disc 2. While the video data and the audio data are sequentially processed in this manner, information necessary for reproducing each sample and each chunk is acquired and stored in the memory 15A as management information, and the recording of the media data box as the actual data is performed. Upon completion, the data of the movie box according to the management information recorded in the memory 15A is output to the recording means, and the movie box corresponding to the media data box is recorded on the optical disc 2. The video data and the audio data are thereby recorded on the optical disc 2 as QT files.
[0097]
In the QT file recorded in this manner, the management information in the management unit sequentially set in the real data is boxed in a hierarchical structure together with other management information of the real data to form a movie box. Thus, information necessary for reproduction is grasped. That is, with respect to the recording position of the management information unit, the head position is detected by each entry provided in the chunk offset box. Further, each sample is detected by sequentially tracing the top of the file and the top of the chunk based on the recording of the chunk offset box and the data amount of each sample provided in the sample size box.
[0098]
As a result, in the QT file, entries in the chunk offset box and sample size box are provided for each chunk and each sample, and the data amount of these chunk offset boxes and sample size boxes gradually increases as recording progresses. Otherwise, recording in the memory 15A in the file generator 15 will be broken. Similarly, in the composition time-to-sample, the data amount increases as the recording progresses.
[0099]
For this reason, in this embodiment, the length of the sample is gradually increased step by step as the recording progresses under the control of the file generator 15 by the system control microcomputer 19. As a result, in the video disk device 1, the setting speed of chunks and samples can be reduced by the length of one sample, and the data volume increasing speed of the chunk offset box and sample size box is reduced. Can be. As a result, in the video disk device 1, in the memory 15A holding the management information, when the memory capacity decreases due to the progress of the recording, the management information increase speed is reduced accordingly, and the speed at which the free space decreases is reduced. Thus, the failure in the memory 15A can be prevented, and the movie data can be reliably recorded after the recording of the media data is completed. Thus, even when a small capacity memory is used, a file in the QT format can be recorded for a long time.
[0100]
In the movie box created in this way, the sample that is the management unit is initially set to a sufficient length, and the management unit becomes longer due to a decrease in the memory capacity. For, the management unit can be kept as originally set. In addition, as the recording time becomes longer, the length of the management unit sequentially becomes longer at the end. As a result, it is possible to avoid as much as possible the deterioration of usability in editing work or the like due to an increase in the length of the management unit.
[0101]
When the sample length is changed in this way, in the sample description box (sample description), the time sample box (time-to-sample), and the sample chunk box (sample-to-chunk) of the sample table box, On the contrary, the data amount increases. However, the increase in the amount of data in these boxes is increased by registering one entry when the sample length is changed, and is significantly higher than the decrease in the amount of data in the chunk offset box and the sample size box. Small and can be ignored.
[0102]
In this embodiment, however, the progress of the recording is monitored in this manner, and the length of the sample is increased stepwise to prevent a failure in the memory 15A. This is executed by monitoring the free space of a certain memory 15A. As a result, the video disk device 1 can easily and surely record files and the like in the QT format for a long time even when using a small-capacity memory, while avoiding deterioration in usability in editing work and the like as much as possible.
[0103]
Also, while the video data stream of the actual data recorded in this way is an elementary stream related to data compression in GOP units, the sample length gradually increases in GOP units of this elementary stream. When the QT file is reproduced at any position where the length of the sample is switched, the QT file can be reproduced in units of one sample by recording the sample table box. ing.
[0104]
(1-3) Effects of the first embodiment
According to the above configuration, the length of the management unit corresponding to the sample of the QT file is sequentially increased step by step as the actual data is recorded, so that the deterioration of the usability in the editing operation or the like is avoided as much as possible, and the number is reduced. Even when a memory having a large capacity is used, a file in the QT format can be recorded for a long time.
[0105]
In addition, by monitoring the free space of the memory holding the management information and monitoring the progress of the recording of the actual data, it is possible to easily and reliably use a small-capacity memory while minimizing deterioration in usability in editing work and the like. Even in this case, a file or the like in the QT format can be recorded for a long time.
[0106]
Further, when processing video data related to the encoding process in GOP units, the length of the management unit is gradually increased stepwise in GOP units of the video data so that any part is reproduced. However, the recording of the sample table box allows the QT file to be reproduced in units of one sample, and a reduction in random accessibility in the QT file can be effectively avoided.
[0107]
(2) Second embodiment
In this embodiment, JPEG, Motion JPEG, Motion JPEG2000, or the like, which is a compression encoding method that completes data compression processing in units of one frame, is applied to data compression processing of video data. Corresponding to this, as shown in parentheses at the places where the number of GOPs is described in FIGS. In this embodiment, the configuration is the same as that of the first embodiment except that the configuration related to these processes is different.
[0108]
Even in a case where video data is compressed by a compression coding method in which data compression processing is completed in units of one frame as in this embodiment, the same effect as in the first embodiment can be obtained.
[0109]
In this case, the sample length can be sequentially increased step by step in units of frames, so that a decrease in random accessibility in the QT file can be effectively avoided.
[0110]
(3) Third embodiment
In this embodiment, as shown by the broken line in FIG. 2, the remaining battery level is detected by the remaining battery level detection circuit 40, and the characteristic of switching the sample length is changed based on the detection result. In this embodiment, the configuration is the same as that of the first or second embodiment except that the configuration of the system control microcomputer 19 relating to the detection result of the remaining battery level is different.
[0111]
In other words, when the free space of the memory 15A is sufficient, and even when the optical disk 2 has a sufficient free space, the recording time is limited by the remaining amount of the battery when the remaining amount of the battery is small. Eventually, the recording of the QT file must be completed. In this case, as shown by a broken line in FIG. 19, when the recordable time T limited by the battery is short, the recording of the QT file is completed even if one sample is set to 1 GOP by the initial setting. You can do it.
[0112]
Although the memory 15A breaks down when one sample is set to 1 GOP according to the initial setting, recording of the QT file may be completed while the length of one sample is switched to 2 GOP.
[0113]
Thus, in this embodiment, the criterion for judging the free space of the memory 15A is switched according to the recordable time based on the remaining amount of the battery, and the characteristic of increasing the length of one sample is changed according to the remaining amount of the battery. Change adaptively. Further, in the system control microcomputer 19, the recording of the imaging result is forcibly terminated immediately before the battery is exhausted from the result of detection of the remaining battery level.
[0114]
As in this embodiment, if the determination criteria for determining the free space in the memory is switched according to the recordable time based on the remaining amount of the battery, the characteristic of increasing the length of one sample is adaptively changed. Usability is improved as compared with the first and second embodiments, and the same effect as in the first and second embodiments can be obtained.
[0115]
(4) Fourth embodiment
In this embodiment, the characteristic of switching the length of the sample according to the free space of the recording medium is changed. In this embodiment, the configuration is the same as that of the first, second or third embodiment except that the configuration of the system control microcomputer 19 relating to the processing of the free space is different.
[0116]
That is, when the free space of the memory 15A is sufficient, even when the battery is sufficient, when the free space of the optical disk 2 is small, the recording time is limited by the free space of the optical disk 2, and after all, the recording of the QT file is completed. Have to do it.
[0117]
In this case as well, the recording of the QT file is completed even if one sample is set to 1 GOP by the initial setting, as in the case where the recordable time is limited by the remaining amount of the battery described in the third embodiment. If this is possible, the recording of the QT file may be completed while the length of one sample is switched to 2 GOPs, although the memory 15A will fail if one sample is set to 1 GOP.
[0118]
Thus, in this embodiment, the criterion for judging the free space of the memory 15A is switched according to the free space of the optical disk 2 as the recording medium, and the characteristic of increasing the length of one sample is changed to the free space of the recording medium. It changes adaptively according to it. Further, the system control microcomputer 19 monitors the free space of the optical disc 2 and the data amount of the management information recorded in the memory 15A. Exit and record the movie box.
[0119]
If the characteristic of increasing the length of one sample is adaptively changed according to the free space of the recording medium as in this embodiment, the usability is improved as compared with the first to third embodiments. Thus, effects similar to those of the first and second embodiments can be obtained.
[0120]
(4) Other embodiments
In the above-described embodiment, the case where the sample of the audio data is changed in accordance with the change of the sample in the video data has been described. However, the present invention is not limited to this. May correspond to a change in the sample in the video data.
[0121]
Further, in the above-described embodiment, the case where the progress of recording is monitored based on the free space of the memory has been described. Monitoring method can be widely applied.
[0122]
In the above-described embodiment, audio data encoded by the compression encoding method of MPEG1 Audio Layer 2 and video data encoded by the compression encoding method of MPEG2 Video, Motion JPEG, and Motion JPEG2000 are recorded on the optical disc 2. Although the case has been described, the present invention is not limited to this, and can be widely applied to recording of audio data and video data applicable to a QT file.
[0123]
Further, in the above-described embodiment, a case has been described in which the present invention is applied to a video disk device and a QT file is recorded. However, the present invention is not limited to this, and the ISO Base Media file format (MPEG4-part12), Motion JPEG2000 Like the QT file, such as the (MJ2) file format and the AVC (Advanced Video Coding: MPEG4-part10) file format, the management information in the management unit is combined with other management information to record a file that is boxed in a hierarchical structure. Can be widely applied.
[0124]
Further, in the above-described embodiment, the case where the present invention is applied to a video disk device and a file is recorded on an optical disk has been described. It can also be widely applied to recording in
[0125]
Also, in the above-described embodiment, the case where the present invention is applied to a video disk device has been described. However, the present invention is not limited to this, and a mobile phone having an imaging function, a PDA (Personal Digital Assistants), In short, the present invention can be widely applied to various recording devices that record video data, such as a server that records imaging results obtained wirelessly.
[0126]
【The invention's effect】
As described above, according to the present invention, the length of the management unit corresponding to the sample of the QT file is gradually increased step by step as the recording of the actual data progresses, so that the deterioration of the usability in the editing work or the like is avoided as much as possible. Thus, even when a small capacity memory is used, a file or the like in the QT format can be recorded for a long time.
[Brief description of the drawings]
FIG. 1 is a flowchart showing a processing procedure of a system control microcomputer in a video disk device according to a first embodiment of the present invention.
FIG. 2 is a block diagram showing a video disk device according to the first embodiment of the present invention.
FIG. 3 is a schematic diagram illustrating a QT file.
FIG. 4 is a schematic diagram illustrating a box structure of a QT file.
FIG. 5 is a table showing a box structure of a QT file.
FIG. 6 is a table showing a continuation of FIG. 5;
FIG. 7 is a table showing a sample description box.
FIG. 8 is a chart showing a time sample box.
FIG. 9 is a chart showing a sample size box.
FIG. 10 is a chart showing a sample chunk box.
FIG. 11 is a time chart showing a relationship between video data and a QT file.
FIG. 12 is a time chart showing a relationship between audio data and a QT file.
FIG. 13 is a time chart showing a relationship between video data and a QT file when one sample is set to 4 GOPs.
FIG. 14 is a time chart showing a relationship between audio data and a QT file in relation to a chunk offset.
FIG. 15 is a schematic diagram illustrating a layout of a QT file on an optical disc.
FIG. 16 is a schematic diagram illustrating a layout of a QT file on an optical disc in a case where chunks of video data and audio data are arranged in pairs.
FIG. 17 is a schematic diagram illustrating another example of FIG. 16;
FIG. 18 is a flowchart showing a continuation of FIG. 1;
FIG. 19 is a characteristic curve diagram showing sample switching according to the processing procedures of FIGS. 1 and 18.
FIG. 20 is a characteristic curve diagram showing another example of FIG. 19;
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 1 ... Video disk apparatus, 2 ... Optical disk, 11 ... Video encoder, 12 ... Audio encoder, 15 ... File generator, 15A, 17, 20 ... Memory, 19 ... System control microcomputer, 40 …… Battery level detection circuit

Claims (6)

順次入力される実データを所定フォーマットのファイルにより記録媒体に記録するファイル記録装置において、
前記ファイルは、
前記実データを管理する管理情報がまとめられて管理情報のボックスが形成され、
前記管理情報のボックスは、
前記実データに順次設定した管理単位による管理情報を、前記実データの他の管理情報と共に階層構造によりボックス化して形成され、
前記ファイル記録装置は、
前記実データ及び前記管理情報のボックスのデータを前記記録媒体に記録する記録手段と、
前記実データに前記管理単位を順次設定し、前記実データの記録に対応して前記管理情報を順次取得してメモリに保持し、前記実データの記録の終了により、前記メモリに保持した管理情報により前記管理情報のボックスのデータを前記記録手段に出力するデータ処理手段と、
前記実データの記録の進捗を監視する監視手段と、
前記監視手段の監視結果に基づいた前記データ処理手段の制御により、前記実データの記録の進行により前記管理単位の長さを順次段階的に増大させる制御手段と
を備えることを特徴とするファイル記録装置。
In a file recording device that records sequentially input real data on a recording medium using a file of a predetermined format,
The file is
Management information for managing the actual data is put together to form a management information box,
The management information box includes:
The management information based on the management unit sequentially set in the real data is formed as a box with a hierarchical structure together with other management information of the real data,
The file recording device,
Recording means for recording the data of the box of the actual data and the management information on the recording medium,
The management unit is sequentially set in the real data, the management information is sequentially acquired in correspondence with the recording of the real data, and the acquired management information is stored in a memory. Data processing means for outputting the data of the box of the management information to the recording means,
Monitoring means for monitoring the progress of the recording of the actual data,
Control means for controlling the data processing means based on the monitoring result of the monitoring means to sequentially increase the length of the management unit in a stepwise manner as the actual data is recorded; apparatus.
前記監視手段は、
前記メモリの空き容量を監視して前記実データの記録の進捗を監視する
ことを特徴とする請求項1に記載のファイル記録装置。
The monitoring means,
2. The file recording device according to claim 1, wherein the progress of the recording of the actual data is monitored by monitoring the free space of the memory.
前記実データは、
GOPを単位にしてデータ圧縮されたビデオデータであり、
前記制御手段は、
前記管理単位の長さを、前記ビデオデータのGOPを単位にして順次段階的に増大させる
ことを特徴とする請求項1に記載のファイル記録装置。
The actual data is
Video data compressed in GOP units.
The control means,
2. The file recording apparatus according to claim 1, wherein the length of the management unit is sequentially increased stepwise in units of a GOP of the video data.
前記実データは、
1フレーム単位でデータ圧縮処理が完結する方式によりデータ圧縮されたビデオデータであり、
前記制御手段は、
前記管理単位の長さを、前記ビデオデータのフレームを単位にして順次段階的に増大させる
ことを特徴とする請求項1に記載のファイル記録装置。
The actual data is
Video data compressed by a method in which data compression processing is completed in units of one frame.
The control means,
2. The file recording apparatus according to claim 1, wherein the length of the management unit is sequentially increased step by step in units of frames of the video data.
前記実データは、
可変レートによるデータであり、
前記管理単位による管理情報は、
前記管理単位毎の、前記管理単位による前記実データのデータ量である
ことを特徴とする請求項1に記載のファイル記録装置。
The actual data is
Variable rate data,
The management information according to the management unit includes:
2. The file recording apparatus according to claim 1, wherein the data amount is the data amount of the actual data in the management unit for each of the management units.
順次入力される実データを記録媒体に記録した後、前記実データに順次設定した管理単位による管理情報、前記実データの他の管理情報をまとめて階層構造によりボックス化した管理情報のボックスを前記記録媒体に記録するファイル記録方法において、
前記実データの記録の進行により前記管理単位の長さを順次段階的に増大させる
ことを特徴とするファイル記録方法。
After recording the sequentially input real data on a recording medium, the management information in the management unit sequentially set in the real data, the management information box in which the other management information of the real data are collectively boxed into a hierarchical structure, In a file recording method for recording on a recording medium,
A file recording method, wherein the length of the management unit is sequentially increased stepwise as the recording of the actual data progresses.
JP2003133896A 2003-05-13 2003-05-13 File recording apparatus and file recording method Expired - Fee Related JP4292465B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003133896A JP4292465B2 (en) 2003-05-13 2003-05-13 File recording apparatus and file recording method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003133896A JP4292465B2 (en) 2003-05-13 2003-05-13 File recording apparatus and file recording method

Publications (2)

Publication Number Publication Date
JP2004343167A true JP2004343167A (en) 2004-12-02
JP4292465B2 JP4292465B2 (en) 2009-07-08

Family

ID=33524588

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003133896A Expired - Fee Related JP4292465B2 (en) 2003-05-13 2003-05-13 File recording apparatus and file recording method

Country Status (1)

Country Link
JP (1) JP4292465B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007048378A (en) * 2005-08-10 2007-02-22 Sony Corp Device and method for recording, recording method program, and recording medium with the recording method program recorded
JP2009171547A (en) * 2007-12-21 2009-07-30 Canon Inc Recording apparatus
JP2012257078A (en) * 2011-06-09 2012-12-27 Fujitsu Semiconductor Ltd Image and sound data processor and data multiplexing method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007048378A (en) * 2005-08-10 2007-02-22 Sony Corp Device and method for recording, recording method program, and recording medium with the recording method program recorded
JP4552802B2 (en) * 2005-08-10 2010-09-29 ソニー株式会社 Recording apparatus, recording method, recording method program, and recording medium recording the recording method program
JP2009171547A (en) * 2007-12-21 2009-07-30 Canon Inc Recording apparatus
JP2012257078A (en) * 2011-06-09 2012-12-27 Fujitsu Semiconductor Ltd Image and sound data processor and data multiplexing method

Also Published As

Publication number Publication date
JP4292465B2 (en) 2009-07-08

Similar Documents

Publication Publication Date Title
US7668437B1 (en) Recording apparatus, recording method, and record medium
US7313320B2 (en) Recording apparatus, recording method, reproducing apparatus, reproducing method, and record medium
JP4062230B2 (en) File recording / reproducing apparatus, file recording / reproducing method, file recording / reproducing method program, and recording medium recording the file recording / reproducing method program
US8521003B2 (en) Recording apparatus and recording medium
JP4264833B2 (en) Recording apparatus and method, program, and recording medium
EP1569238A1 (en) Reproducing apparatus and reproducing method
JP3858883B2 (en) Recording apparatus and control method thereof
JP4203812B2 (en) FILE RECORDING DEVICE, FILE RECORDING METHOD, FILE RECORDING METHOD PROGRAM, RECORDING MEDIUM CONTAINING FILE RECORDING METHOD PROGRAM, FILE REPRODUCTION DEVICE, FILE REPRODUCTION METHOD, FILE REPRODUCTION METHOD PROGRAM, AND RECORDING MEDIUM RECORDING PROGRAM
EP1569239A1 (en) Reproducing apparatus, reproducing method, driving apparatus and driving method
JP3835554B2 (en) FILE RECORDING DEVICE, FILE REPRODUCTION DEVICE, FILE RECORDING METHOD, FILE RECORDING METHOD PROGRAM, RECORDING MEDIUM RECORDING THE FILE RECORDING METHOD PROGRAM, FILE PLAYING METHOD, FILE PLAYING METHOD PROGRAM, AND RECORDING MEDIUM RECORDING THE PROGRAM
JP4007331B2 (en) Playback apparatus and method
EP1085768A2 (en) Recording apparatus, recording method and record medium
JP4292465B2 (en) File recording apparatus and file recording method
JP4154811B2 (en) Editing method and digital recording or reproducing apparatus
JP2005243064A (en) Data processing apparatus and method, and reproducing apparatus and method
JP4379513B2 (en) Editing method and digital recording or reproducing apparatus
JP2005311923A (en) Editing apparatus, editing method, program for editing method, and recording medium with program for editing method recorded thereon
JP2000324447A (en) Disk-like recording medium, recording device and reproducing device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060414

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090107

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090115

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090216

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090325

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

Free format text: PAYMENT UNTIL: 20120417

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120417

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120417

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130417

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees