JP2011135393A - Recorder and recording method - Google Patents

Recorder and recording method Download PDF

Info

Publication number
JP2011135393A
JP2011135393A JP2009293690A JP2009293690A JP2011135393A JP 2011135393 A JP2011135393 A JP 2011135393A JP 2009293690 A JP2009293690 A JP 2009293690A JP 2009293690 A JP2009293690 A JP 2009293690A JP 2011135393 A JP2011135393 A JP 2011135393A
Authority
JP
Japan
Prior art keywords
recording
content
area
capacity
recorded
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2009293690A
Other languages
Japanese (ja)
Inventor
Hisayoshi Motojima
久義 本島
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.)
Hitachi Consumer Electronics Co Ltd
Original Assignee
Hitachi Consumer Electronics Co Ltd
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 Hitachi Consumer Electronics Co Ltd filed Critical Hitachi Consumer Electronics Co Ltd
Priority to JP2009293690A priority Critical patent/JP2011135393A/en
Publication of JP2011135393A publication Critical patent/JP2011135393A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To prevent data fragmentation even when a plurality of contents including content whose volume cannot be estimated are simultaneously recorded in one recording medium. <P>SOLUTION: The contents are classified according to whether the volume thereof can be estimated or not. Proper recording areas are secured according to the type of the contents which is being recorded and is to be recorded. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

技術分野は、コンテンツを記録媒体に記録する装置及び方法に関する。   The technical field relates to an apparatus and method for recording content on a recording medium.

近年、放送番組の記録、撮像した動画や静止画の記録(動画撮影および静止画撮影)、インターネットに接続しインターネット上のコンテンツのダウンロード(ネットワークダウンロード)等が可能な携帯電話が登場している。   In recent years, mobile phones that can record broadcast programs, record captured moving images and still images (moving image shooting and still image shooting), download contents on the Internet (network download), and the like have appeared.

また、放送番組の記録、自機器内にある一方の記録媒体から他方の記録媒体への移動または複製(ダビング)、ネットワークダウンロード、LANで接続した他機器のコンテンツを自機器の記録媒体に移動または複製(ネットワークダビング)等が可能なHDD内蔵テレビやHDDレコーダも登場している。   Also, recording broadcast programs, moving or copying (dubbing) from one recording medium in the own device to the other recording medium, network download, moving contents of other devices connected via LAN to the recording medium of the own device or TVs with built-in HDDs and HDD recorders that can be duplicated (network dubbing) have also appeared.

特許文献1には、「複数の放送信号を同時録画する際の、記録媒体上での各々の放送信号の断片化の比率を低減できるとともに、記録媒体にできる未使用の領域を低減して記録媒体の利用効率を高めることのできる放送受信録画装置およびその同時記録方法を提供」(特許文献1[0005]参照)することを課題とし、その解決手段として「複数の放送信号を同時に受信可能な受信部と、受信部にて受信された放送信号を記録媒体に記録可能な記録部と、複数の放送信号を同時に録画するとき、記録媒体の先頭アドレスに最も近い空き領域の先頭から個々の前記放送信号を記録するための領域を交互に確保し、記録媒体にしきい値以上の空き領域が存在する場合には、予め決められた第1のサイズとこれより小さい第2のサイズとの範囲でとり得る最大限の空き領域を放送信号を記録するための領域として確保し、しきい値以上の空き領域が存在しないとき、第2のサイズで放送信号を記録するための領域を確保する制御部とを具備すること」(特許文献1[0006]参照)等が記載されている。   Japanese Patent Laid-Open No. 2004-133867 describes that “the ratio of fragmentation of each broadcast signal on the recording medium when simultaneously recording a plurality of broadcast signals can be reduced, and the unused area that can be formed on the recording medium is reduced and recorded. “Providing a broadcast receiving and recording apparatus and its simultaneous recording method capable of improving the utilization efficiency of the medium” (see Patent Document 1 [0005]), and as a means for solving the problem, “a plurality of broadcast signals can be received simultaneously” A receiving unit, a recording unit capable of recording a broadcast signal received by the receiving unit, and a plurality of broadcast signals, when recording a plurality of broadcast signals at the same time. When areas for recording broadcast signals are alternately secured, and there is an empty area equal to or larger than the threshold value on the recording medium, a range between a predetermined first size and a smaller second size is used. A control unit that secures a maximum possible free area as an area for recording a broadcast signal and secures an area for recording a broadcast signal in the second size when there is no free area equal to or greater than the threshold value (Refer to Patent Document 1 [0006]) and the like.

また、特許文献2には「リアルタイム再生を行うコンテンツを格納するディスクにおいて、ディスクのフラグメントの発生が多いことで、データ再生の際にディスクのシーク回数が増加する」(特許文献2[0016]参照)ことを課題とし、その解決手段として「(1)ディスクに記録されるコンテンツの記録領域を指定するリストと、ディスクの持つ連続した空き領域を指定するリストとによって、ディスクの領域を管理する管理手段と、(2)新たなコンテンツをディスクに書き込む際に、管理手段の管理する空き領域リストを検索して、そのコンテンツのデータ全体を格納するのに十分な大きさの空き領域があった場合には、その中で最も小さな空き領域にコンテンツの記録領域を割り当てる第1の割当手段と、(3)第1の割当手段による空き領域リストの検索処理において、コンテンツのデータ全部を格納するのに十分な大きさの空き領域が見つからなかった場合には、コンテンツのデータを分割し、サイズの大きな空き領域からコンテンツの記録領域を割り当てる第2の割当手段と、(4)新たなコンテンツをディスクに書き込む際にあって、コンテンツのデータサイズと予測保持時間とが与えられた場合に、コンテンツをデータサイズと保持時間とによって分類し、その分類に基づいて管理手段の管理する空き領域リストを検索して、分類されたコンテンツの記録領域がディスク領域内において混在しないように、空き領域にコンテンツの記録領域を割り当てる第3の割当手段と、(5)記録領域が分割されているコンテンツについて、一方の記録領域のサイズが一定以下であり、かつ、その記録領域を空き領域に移動することによりそのコンテンツの記録領域が連続した状態に変更可能な場合に、その移動を行う第1の移動手段と、(6)記録領域が分割されているコンテンツについて、一方の記録領域のサイズが一定以上で、かつ、その記録領域に隣接する領域にサイズが一定以下のコンテンツの記録領域が確保されている場合にあって、その隣接する領域に記録されているコンテンツのデータを移動するのに十分な大きさの空き領域がある場合に、その移動を行う第2の移動手段と、(7)サイズが一定以下であり、かつ、両側に一定サイズ以上の空き領域があるコンテンツの記録領域について、その記録領域に記録されているコンテンツのデータを移動するのに十分な大きさの空き領域がある場合に、その移動を行う第3の移動手段とを備える」(特許文献2[0019]参照)ことが記載されている。   Further, Patent Document 2 states that “the number of disk fragments increases in the disk storing content to be played back in real time, so that the number of seek times of the disk increases during data playback” (see Patent Document 2 [0016]). As a means for solving the problem, “(1) Management for managing the area of the disc by the list for specifying the recording area of the content recorded on the disc and the list for specifying the continuous free area of the disc” (2) When new content is written to the disc, there is a free space that is large enough to search the free space list managed by the management device and store the entire data of the content. The first allocating means for allocating the recording area of the content to the smallest free area among them, and (3) the first allocator In the search process of the free space list, if a free space large enough to store all the content data is not found, the content data is divided and the content recording region is divided from the large free space (4) when new content is written to the disc, and content data size and predicted retention time are given, the content is classified by data size and retention time The third allocation for allocating the content recording area to the free area so as to search the free area list managed by the management means based on the classification and prevent the classified content recording areas from being mixed in the disk area. Means, and (5) for content in which the recording area is divided, the size of one recording area is And (6) a recording area that moves the recording area when the recording area can be changed to a continuous state by moving the recording area to an empty area. If the size of one recording area is greater than or equal to a certain size and a recording area for content of a certain size is secured in an area adjacent to that recording area, A second moving means for moving the content data recorded when the content data recorded in the area to be moved is large, and (7) the size is equal to or less than a certain value, and For content recording areas that have free areas of a certain size or more on both sides, there is enough free area to move the content data recorded in the recording areas And 3rd moving means for performing the movement ”(see Patent Document 2 [0019]).

特開2007−74452JP2007-74452 特開2009−076170JP2009-076170

上述の通り、近年異なる手段を使って様々な種類のコンテンツを記録できる装置が広がってきている。この傾向は、例えばデジタルカメラやデジタルビデオカメラ、カーナビゲーション等のような装置にも広がってくることは容易に想像できる。   As described above, in recent years, apparatuses that can record various types of content using different means have spread. It can be easily imagined that this tendency spreads to devices such as digital cameras, digital video cameras, car navigation systems, and the like.

また、コンテンツのハイビジョン化の進展により、それぞれのコンテンツの容量やビットレートも大きなものとなってきており、この傾向は今後も継続していくことは容易に想像できる。   Also, with the advancement of high-definition content, the capacity and bit rate of each content has become large, and it is easy to imagine that this trend will continue in the future.

よって、リアルタイム再生が要求されるコンテンツを再生する際、コンテンツデータが記録媒体中で断片化していると、再生速度が落ち円滑な再生が困難になる。すなわち、コンテンツの記録時にデータの断片化を極力少なくすることが求められる。   Therefore, when content that requires real-time playback is played back, if the content data is fragmented in the recording medium, the playback speed decreases and smooth playback becomes difficult. That is, it is required to minimize data fragmentation when recording content.

ここで、記録するコンテンツには、記録を行う際に容量が予想(「予測」ともいう。)できるコンテンツ(以下、「容量予想可コンテンツ」とする。)と、記録を行う際に容量が予想できないコンテンツ(以下、「容量予想不可コンテンツ」とする。)に分けることができる。   Here, the content to be recorded is a content whose capacity can be predicted (also referred to as “prediction”) at the time of recording (hereinafter referred to as “capacity predictable content”) and the capacity at the time of recording. The contents can not be classified (hereinafter referred to as “capacity unpredictable contents”).

より具体的に説明すると、容量予想可コンテンツとは、コンテンツ記録前にそのコンテンツの容量がある程度予想できるコンテンツであり、記録開始時刻と記録終了時刻とを予め指定して放送番組を記録するいわゆる予約録画や、元コンテンツの容量を取得できるダビングや、撮像した静止画等の記録が該当する。   More specifically, the capacity predictable content is a content whose content capacity can be predicted to some extent before recording the content, and so-called reservation for recording a broadcast program by designating a recording start time and a recording end time in advance. This includes recording, dubbing that can acquire the capacity of the original content, and recording of captured still images.

容量予想不可コンテンツとは、コンテンツ記録前にそのコンテンツの容量が予想できないコンテンツであり、記録終了がユーザ操作に依存する撮像した動画、記録の終了時間が指定されていないコンテンツの記録、コンテンツ容量を取得できないネットワークダウンロード等の記録が該当する。   Capacity unpredictable content is content for which the content capacity cannot be predicted before recording the content. Recorded video whose recording end depends on user operation, recording of content for which recording end time is not specified, content capacity This applies to network download records that cannot be obtained.

先に示した特許文献1および特許文献2の方法は、容量予想可コンテンツの記録を前提としており、容量予想不可コンテンツの記録や、容量予想不可コンテンツを含めて同一記録媒体に同時記録したときの断片化回避方法については述べられていない。そのため、それらのコンテンツを記録する際に、データが断片化してしまうおそれがある。   The methods disclosed in Patent Document 1 and Patent Document 2 described above are based on the assumption that capacity predictable content is recorded. When the capacity unpredictable content is recorded or the capacity unpredictable content is simultaneously recorded on the same recording medium, There is no mention of how to avoid fragmentation. Therefore, there is a possibility that data is fragmented when recording those contents.

上記課題を解決するために、本発明の一実施の態様は、例えばコンテンツの記録において、記録媒体の記録領域のうち、連続した空領域が最も大きい記録領域にコンテンツを記録する。   In order to solve the above-described problem, according to an embodiment of the present invention, for example, in recording content, the content is recorded in a recording area having the largest continuous empty area among the recording areas of the recording medium.

上記手段によれば、コンテンツを記録媒体に効率良く記録することができる。   According to the above means, the content can be efficiently recorded on the recording medium.

本実施例の記録装置についての構成例を示すブロック図である。It is a block diagram which shows the structural example about the recording device of a present Example. 記録媒体の論理アドレスと既存データの配置例を示す図である。It is a figure which shows the example of arrangement | positioning of the logical address of a recording medium, and the existing data. 開始アドレス、空サイズ、状態フラグからなる連続空領域テーブルの例である。It is an example of a continuous empty area table including a start address, an empty size, and a status flag. 記録領域を確保する前後の、記録媒体のデータの配置例を示す図である。It is a figure which shows the example of arrangement | positioning of the data of a recording medium before and behind ensuring a recording area. 記録実行中ではない記録媒体に、容量予想可コンテンツを記録する際の、記録制御フローの例である。It is an example of a recording control flow when recording capacity-predictable content on a recording medium that is not being recorded. 記録実行中ではない記録媒体に、容量予想不可コンテンツを記録する際の、記録制御フローの例である。It is an example of a recording control flow when recording capacity-predictable content on a recording medium that is not being recorded. 容量予想不可コンテンツの記録領域確保と記録を行なっている際の、記録媒体のデータの配置例を示す図である。It is a figure which shows the example of arrangement | positioning of the data of a recording medium at the time of performing the recording area reservation and recording of a capacity | capacitance impossible content. 記録実行中ではない記録媒体に、容量予想不可コンテンツを記録する際の処理における、記録媒体のデータの配置例を示す図である。It is a figure which shows the example of arrangement | positioning of the data of a recording medium in the process at the time of recording a capacity | capacitance unpredictable content to the recording medium which is not recording. 記録実行中ではない記録媒体に、容量予想不可コンテンツを記録する際の処理における、記録媒体のデータの配置例を示す図である。It is a figure which shows the example of arrangement | positioning of the data of a recording medium in the process at the time of recording a capacity | capacitance unpredictable content to the recording medium which is not recording. 記録実行中ではない記録媒体に、容量予想不可コンテンツを記録する際の処理における、記録媒体のデータの配置例を示す図である。It is a figure which shows the example of arrangement | positioning of the data of a recording medium in the process at the time of recording a capacity | capacitance unpredictable content to the recording medium which is not recording. 容量予想不可コンテンツ記録中に容量予想可コンテンツを記録する際の、記録制御フローの例である。It is an example of a recording control flow when a capacity predictable content is recorded during a capacity unpredictable content recording. 容量予想不可コンテンツ記録中に容量予想不可コンテンツを記録する際の、記録制御フローの例である。It is an example of a recording control flow when recording capacity unpredictable content during capacity unpredictable content recording. 容量予想不可コンテンツ記録中に容量予想可コンテンツを記録する際の処理における、記録媒体のデータの配置例を示す図である。It is a figure which shows the example of arrangement | positioning of the data of a recording medium in the process at the time of recording capacity | capacitance predictable content during capacity | capacitance prediction impossible content recording. 容量予想不可コンテンツ記録中に容量予想可コンテンツを記録する際の処理における、記録媒体のデータの配置例を示す図である。It is a figure which shows the example of arrangement | positioning of the data of a recording medium in the process at the time of recording capacity | capacitance predictable content during capacity | capacitance prediction impossible content recording.

以下、実施例について図面を用いて説明する。   Hereinafter, embodiments will be described with reference to the drawings.

図1は本実施例の記録装置についての構成例を示すブロック図である。同図に示すように、この実施形態に関わる記録装置100は、コンテンツ取得部101、CPU102、操作部103、ROM(Read Only Memory)104、RAM(Random Access Memory)105、メディアコントローラ106、記録媒体郡107、バス108等を備えている。   FIG. 1 is a block diagram showing a configuration example of the recording apparatus of the present embodiment. As shown in the figure, a recording apparatus 100 according to this embodiment includes a content acquisition unit 101, a CPU 102, an operation unit 103, a ROM (Read Only Memory) 104, a RAM (Random Access Memory) 105, a media controller 106, and a recording medium. It has a county 107, a bus 108, and the like.

コンテンツ取得部101は、CPU102によって制御され、記録装置100の外部の信号に基づくコンテンツを取得する手段を備えている。CPU102は、ROM104に格納されたファームウェアに基づいて各ブロックを統括的に制御したり、各種の演算処理を実行したりする。   The content acquisition unit 101 is controlled by the CPU 102 and includes means for acquiring content based on a signal external to the recording apparatus 100. The CPU 102 comprehensively controls each block based on the firmware stored in the ROM 104 and executes various arithmetic processes.

操作部103は、ボタン、スイッチ、キー、操作確認用の表示器などで構成され、ユーザによる各種設定値や指令を入力してCPU102に出力する。ROM104は、CPU102に実行させるプログラムや各種パラメータなどのファームウェアが固定的に記憶されているメモリである。   The operation unit 103 includes buttons, switches, keys, an operation confirmation display, and the like. The operation unit 103 inputs various setting values and commands from the user and outputs them to the CPU 102. The ROM 104 is a memory in which firmware such as programs to be executed by the CPU 102 and various parameters is fixedly stored.

RAM105は、CPU102の作業用量領域等として用いられ、処理データを一時的に保持するメモリである。メディアコントローラは、CPU102によって制御され、記録媒体郡107の記録媒体に対して、データの書き込みや読み込みを行なう。   A RAM 105 is used as a work dose area of the CPU 102 and is a memory that temporarily holds processing data. The media controller is controlled by the CPU 102 and writes / reads data to / from the recording medium of the recording medium group 107.

記録媒体郡107は、少なくとも1つ以上の記録媒体から構成され、メディアコントローラ106によってデータの読み込みや書き込みが行なわれる。記録媒体は例えば、ハードディスク、DVD(Digital Versatile Disc)、BD(Blu-lay Disc)、メモリカードおよび内蔵フラッシュメモリ等である。バス108は、各ブロック間での各種情報の入出力を行なうための通信路である。   The recording medium group 107 includes at least one recording medium, and data is read and written by the media controller 106. Examples of the recording medium include a hard disk, a DVD (Digital Versatile Disc), a BD (Blu-lay Disc), a memory card, and a built-in flash memory. The bus 108 is a communication path for inputting / outputting various information between the blocks.

次に、コンテンツ取得部101によって、コンテンツを取得する手段の例を説明する。コンテンツ取得部101は、例えば、TV放送用アンテナ、チューナ、復調器等を備え、放送番組のコンテンツを取得できる手段である。必要に応じて、コーデック処理部を備え、コンテンツのビットレート変換(トランスコード)もできる手段を加えてもよい。また必要に応じて、電子番組表取得部を備え、電子番組表の取得もできる手段を加えてもよい。   Next, an example of means for acquiring content by the content acquisition unit 101 will be described. The content acquisition unit 101 includes, for example, a TV broadcast antenna, a tuner, a demodulator, and the like, and is a unit that can acquire content of a broadcast program. If necessary, a means for providing a codec processing unit and capable of bit rate conversion (transcoding) of content may be added. If necessary, an electronic program guide acquisition unit may be provided and means for acquiring the electronic program guide may be added.

また例えば、レンズ、撮像素子、撮像信号処理部、音声検出部、撮像信号/音声信号のコーデック処理部等を備え、動画撮影および静止画撮影のコンテンツを取得できる手段である。必要に応じて、コンテンツの画素数の変更やコーデック処理部による圧縮率の変更もできる手段を加えてもよい。   Further, for example, it is a means that includes a lens, an imaging device, an imaging signal processing unit, an audio detection unit, an imaging signal / audio signal codec processing unit, and the like, and can acquire contents of moving image shooting and still image shooting. If necessary, means for changing the number of pixels of the content or changing the compression rate by the codec processing unit may be added.

また例えば、ネットワークインターフェース等を備え、インターネットや外部機器からコンテンツを取得できる手段である。   Further, for example, it is a means that includes a network interface or the like and can acquire content from the Internet or an external device.

コンテンツを取得する手段は、上記に挙げた手段に限らず、少なくとも1つ以上のコンテンツを取得することができる手段であればよい。また、複数のコンテンツを取得することができる手段でもよい。また、同時間帯の別番組のように、同種のコンテンツを同時に取得することもできる手段でもよい。   The means for acquiring content is not limited to the above-described means, and any means that can acquire at least one content may be used. Further, a means capable of acquiring a plurality of contents may be used. Moreover, the means which can also acquire the same kind of content simultaneously like another program of the same time slot | zone may be sufficient.

容量予想可コンテンツの容量予想手段について、コンテンツの種類により以下順次説明する。   The capacity predicting means for capacity predictable contents will be sequentially described below according to the type of contents.

放送番組のコンテンツの容量予想手段について説明する。コンテンツ取得部101に電子番組表取得部を備えた場合、放送番組のコンテンツの記録開始時刻、記録終了時刻、ビットレートを予め設定できる、いわゆる予約録画が可能となる。予約録画により放送番組のコンテンツを記録する場合、記録開始時刻と記録終了時刻から求められる番組時間と、ビットレートを乗算することで、予約録画したコンテンツの容量を予想することができる。   The capacity predicting means for broadcast program contents will be described. When the content acquisition unit 101 includes an electronic program guide acquisition unit, so-called reservation recording is possible in which the recording start time, recording end time, and bit rate of the content of the broadcast program can be set in advance. When recording broadcast program content by reserved recording, the program time required from the recording start time and recording end time is multiplied by the bit rate to estimate the capacity of the reserved recorded content.

ビットレートは、固定ビットレートと可変ビットレートが存在する可能性があるが、可変ビットレートの場合はコンテンツの内容により平均ビットレートが変動する可能性がある。よって、予想する容量は多少多めに算出することが望ましい。操作部103を使用して、リアルタイムに記録開始と記録終了を制御する場合、番組ごとにコンテンツを分ければ、番組の終了がすなわち記録終了を意味する。   There is a possibility that a fixed bit rate and a variable bit rate exist as the bit rate. In the case of a variable bit rate, the average bit rate may vary depending on the content. Therefore, it is desirable to calculate the expected capacity somewhat larger. When controlling the recording start and recording end in real time using the operation unit 103, if content is divided for each program, the end of the program means the end of recording.

電子番組表取得部を利用して番組の終了時刻を取得することで、コンテンツの容量を予想することができる。しかし、番組ごとにコンテンツを分けずに、操作部103を使用してのみコンテンツの記録終了をリアルタイムに制御する場合は、コンテンツの容量を予想することが困難なため、そのコンテンツは容量予想不可コンテンツとする。   By acquiring the end time of the program using the electronic program guide acquisition unit, the capacity of the content can be predicted. However, if the recording end of content is controlled in real time only by using the operation unit 103 without dividing the content for each program, it is difficult to predict the capacity of the content. And

次に、ダビングするコンテンツの容量予想手段について説明する。記録媒体郡107の記録媒体Aに記録されている元コンテンツを、他方の記録媒体Bまたは同一の記録媒体Aにダビングすることとする。元コンテンツを加工することなくダビングする場合、元コンテンツの容量を記録媒体Aから取得し、それを予想容量とすればよい。   Next, capacity predicting means for contents to be dubbed will be described. The original content recorded on the recording medium A of the recording medium group 107 is dubbed to the other recording medium B or the same recording medium A. When dubbing the original content without processing it, the capacity of the original content may be acquired from the recording medium A and used as the expected capacity.

元コンテンツをトランスコードしたりメタ情報を付け加えたりする等して加工し、ダビングする場合、元コンテンツのビットレート、トランスコード後のビットレート、付け加えるメタ情報のサイズから、予想容量を算出する。トランスコード後のビットレートが可変ビットレートの場合、予想容量を多少多めに算出することが望ましい。   When the original content is processed and dubbed by transcoding or adding meta information, the expected capacity is calculated from the bit rate of the original content, the bit rate after transcoding, and the size of the added meta information. When the bit rate after transcoding is a variable bit rate, it is desirable to calculate the expected capacity somewhat larger.

次に、静止画撮影のコンテンツの容量予想手段について説明する。予め設定したコンテンツの画素数とコーデック処理部の圧縮率により、予想容量を算出する。ただし圧縮率はコンテンツの内容により上下する場合があるので、予想容量を多少多めに算出することが望ましい。   Next, capacity estimation means for content of still image shooting will be described. The expected capacity is calculated based on the preset number of pixels of the content and the compression rate of the codec processing unit. However, since the compression rate may vary depending on the content, it is desirable to calculate the expected capacity somewhat larger.

次に、動画撮影のコンテンツの容量予想手段について説明する。コンテンツの記録の開始と終了は通常、操作部103を使用してリアルタイムに制御することが多い。その場合、コンテンツの容量を予想することが困難なため、容量予想不可コンテンツとする。   Next, capacity estimation means for moving image shooting content will be described. In general, the start and end of content recording are often controlled in real time using the operation unit 103. In that case, since it is difficult to predict the capacity of the content, the content cannot be predicted.

次に、ネットワークダウンロードおよびネットワークダビングのコンテンツの容量予想手段について説明する。ネットワークプロトコルによりコンテンツの容量を取得できる場合がある。例えばHTTP(Hypertext Transfer Protocol)を使用してコンテンツを取得する場合、コンテンツ取得部101のネットワークインターフェースを通して、コンテンツが格納されているサーバへGET要求を出すと、サーバからHTTPレスポンスが返ってくる。そのHTTPレスポンスのヘッダのContent-Lengthエンティティヘッダが、有効となっている場合がある。その場合、Content-Lengthエンティティヘッダには、要求したコンテンツの容量が格納されているので、その値を予想容量とする。   Next, the capacity predicting means for network download and network dubbing contents will be described. In some cases, the capacity of content can be acquired by a network protocol. For example, when content is acquired using HTTP (Hypertext Transfer Protocol), when a GET request is issued to the server storing the content through the network interface of the content acquisition unit 101, an HTTP response is returned from the server. The Content-Length entity header of the HTTP response header may be valid. In that case, since the capacity of the requested content is stored in the Content-Length entity header, the value is set as the expected capacity.

HTTPレスポンスのヘッダのContent-Lengthエンティティヘッダが有効でない場合、コンテンツの容量を予想することが困難なため、容量予想不可コンテンツとする。また、HTTPを利用したコンテンツ取得の例を示したが、この例に限らず、コンテンツの容量を取得できる手段があれば容量予想可コンテンツとし、手段がなければ容量予想不可コンテンツとする。   If the Content-Length entity header of the header of the HTTP response is not valid, it is difficult to predict the capacity of the content. Further, although an example of content acquisition using HTTP has been shown, the present invention is not limited to this example. If there is a means that can acquire the capacity of the content, the capacity is predictable content, and if there is no means, the capacity is predictable content.

以上の処理により、容量予想可コンテンツの容量予想処理を行なうことができる。ただし容量予想処理は上記に挙げた処理に限ることは無く、あらゆる手段によりコンテンツ容量がある程度予想できる場合は、そのコンテンツは容量予想可コンテンツとする。   Through the above processing, capacity prediction processing of capacity predictable content can be performed. However, the capacity prediction process is not limited to the above-described processes, and if the content capacity can be predicted to some extent by any means, the content is determined as a capacity predictable content.

いかなる手段を使っても、容量が予想できないコンテンツは容量予想不可コンテンツとする。また、本来は容量が予想できるコンテンツであるにもかかわらず、何らかの理由(装置の機能等)で容量の予想が困難である場合、そのコンテンツは容量予想不可コンテンツとしてもよい。   Content whose capacity cannot be predicted by any means is regarded as content whose capacity cannot be predicted. Further, when it is difficult to predict the capacity for some reason (function of the device, etc.) although the content is originally a capacity that can be predicted, the content may be a content that cannot be predicted.

次に、連続空領域テーブルについて説明する。装置電源投入時や記録媒体挿入時等の記録媒体のマウント処理直後に、記録媒体のデータ記録領域の使用状況情報(例えば、ファイルシステムにFAT(File Allocation Table)を使用している記録媒体の場合、FATテーブル)を記録媒体から読み込む。読み込んだデータ記録領域の使用状況情報から、連続した空領域の開始アドレスと空サイズを順次算出する。   Next, the continuous empty area table will be described. Immediately after mounting the recording medium such as when the apparatus is turned on or when the recording medium is inserted, the usage status information of the data recording area of the recording medium (for example, a recording medium that uses FAT (File Allocation Table) for the file system) , FAT table) is read from the recording medium. From the read status information of the data recording area, the start address and empty size of consecutive empty areas are sequentially calculated.

例えば図2のように、既存データ201と既存データ202に挟まれた連続空領域Up(203)が、論理アドレスapから開始して、サイズSpである領域だとすると、「開始アドレスap、空サイズSp、状態フラグfp」を要素とするテーブルを作成する。その要素を順次テーブルに追加し、図3のような連続空領域テーブルを作成し管理する。   For example, as shown in FIG. 2, if the continuous empty area Up (203) sandwiched between the existing data 201 and the existing data 202 is an area starting from the logical address ap and having a size Sp, then “start address ap, empty size Sp , A table having the state flag fp ”as an element is created. The elements are sequentially added to the table, and a continuous empty area table as shown in FIG. 3 is created and managed.

状態フラグとは、該当連続空領域に容量予想不可コンテンツを記録中か否かを表すフラグであり、例えば0のとき容量予想不可コンテンツを記録していない連続空領域を表し、1のとき容量予想不可コンテンツを記録している連続空領域を表す。状態フラグの初期値は全て0とする。   The status flag is a flag indicating whether or not capacity-predictable content is being recorded in the corresponding continuous empty area. For example, when the flag is 0, it indicates a continuous empty area where no capacity-predictable content is recorded. Represents a continuous empty area where impossible content is recorded. The initial values of the status flags are all 0.

また、容量予想不可コンテンツを記録中の領域に、容量予想不可コンテンツの記録を中止した時点で状態フラグを0にクリアする。また記録媒体にデータが書き込まれたり、記録媒体のデータが削除されたり、といった記録媒体のデータ記録領域の使用状況が変わる度に、連続空領域テーブルを更新する。   In addition, the status flag is cleared to 0 when recording of the capacity unpredictable content is stopped in the area where the capacity unpredictable content is being recorded. The continuous empty area table is updated every time the usage status of the data recording area of the recording medium changes, such as when data is written to the recording medium or when data on the recording medium is deleted.

この連続空領域テーブルを使用して、所望の値または所望の範囲の、開始アドレス、空サイズ、状態フラグ、である領域を検索することができる。以下、開始アドレスap、空サイズSp、状態フラグfpに該当する領域を、領域Upといったように、それぞれの対応関係を添字で表す。   Using this continuous empty area table, an area having a desired value or a desired range and having a start address, an empty size, and a status flag can be searched. Hereinafter, each corresponding relationship is represented by a subscript such that a region corresponding to the start address ap, the empty size Sp, and the state flag fp is a region Up.

次に、連続空領域テーブルを使用した記録領域確保方法について図4を用いて説明する。例として、既存データ401と既存データ402に囲まれた領域Up403中に、領域404(開始アドレスax, サイズSx)を確保する方法について説明する。   Next, a recording area securing method using the continuous empty area table will be described with reference to FIG. As an example, a method for securing the area 404 (start address ax, size Sx) in the area Up403 surrounded by the existing data 401 and the existing data 402 will be described.

ap≠axの場合、領域404により、領域Upに2つの空領域(405と406)ができることになる。領域406は、開始アドレス(ax+Sx)、空サイズ(Sp-(ax-ap)-Sx)となるため、「開始アドレスaq=(ax+Sx)、空サイズSq=(Sp-(ax-ap)-Sx)、状態フラグfq」の要素を連続空領域テーブルに新たに追加しこれを領域Uqとする。状態フラグfqは、容量予想可コンテンツの記録のために領域を確保する場合0に、容量予想不可コンテンツの記録のために領域を確保する場合1にする。領域405は、空サイズ(ax-ap)となるため、空サイズSpを(ax-ap)に置き換えて連続空領域テーブルを更新し新たな領域Upとする。   When ap ≠ ax, the region 404 creates two empty regions (405 and 406) in the region Up. Since the area 406 has a start address (ax + Sx) and an empty size (Sp− (ax−ap) −Sx), “start address aq = (ax + Sx), empty size Sq = (Sp− (ax−ap) −Sx ), An element of the status flag fq ”is newly added to the continuous empty area table, and this is set as the area Uq. The status flag fq is set to 0 when an area is reserved for recording capacity-predictable content, and is set to 1 when an area is reserved for recording capacity-unpredictable content. Since the area 405 has an empty size (ax-ap), the empty size Sp is replaced with (ax-ap), and the continuous empty area table is updated to be a new area Up.

またap=axの場合、領域Upに空領域は領域406のみとなる。よって、Upの開始アドレスapを(ap+Sx)に、空サイズSpを(Sp-Sx)にして、連続空領域テーブルを更新し新たな領域Upとする。   When ap = ax, only the area 406 is the empty area in the area Up. Therefore, the start address ap of Up is set to (ap + Sx), the empty size Sp is set to (Sp-Sx), and the continuous empty area table is updated to be a new area Up.

以上の処理により、連続空領域テーブルでは、アドレスaxからサイズSxの領域は既存データが存在していることになり、すなわち記録領域を確保したことを意味することができる。以降「領域を確保する」とは、以上のように連続空領域テーブルを更新する処理を表す。   By the above processing, in the continuous empty area table, the existing data exists in the area from the address ax to the size Sx, that is, it can mean that the recording area is secured. Hereinafter, “reserving an area” represents a process of updating the continuous empty area table as described above.

コンテンツ記録の際の記録領域確保方法について、容量予想可コンテンツと容量予想不可コンテンツに分け、順次説明する。   The recording area securing method at the time of content recording will be described in order, divided into capacity predictable contents and capacity unpredictable contents.

記録実行中ではない記録媒体に、容量予想可コンテンツを記録する際の記録領域確保方法について、図5を用いて説明する。   A recording area securing method when recording capacity-predictable content on a recording medium that is not being recorded will be described with reference to FIG.

容量予想可コンテンツ記録開始(S501)するとS502に移行し、容量予想可コンテンツの予想容量Pを算出する。そしてS503に移行し、予想容量Pと記録媒体の総空サイズとを比べる。   When capacity predictable content recording starts (S501), the process proceeds to S502, and an estimated capacity P of capacity predictable content is calculated. In step S503, the estimated capacity P is compared with the total empty size of the recording medium.

S503が偽の場合、コンテンツの全てを記録媒体に記録することができないのでS509に移行し、記録媒体に記録を行なわず終了する。S503が真の場合、S504に移行し、予想容量Pと最大連続空サイズとを比べる。   If S503 is false, all of the content cannot be recorded on the recording medium. Therefore, the process proceeds to S509, and the process ends without recording on the recording medium. When S503 is true, the process proceeds to S504, and the predicted capacity P is compared with the maximum continuous empty size.

S504が真の場合、S505に移行し。予想容量P以上で、かつ予想容量Pに最も近い空サイズの領域の先頭に、予想容量Pの領域を確保する。S505の処理後、S506に移行し、確保した領域に容量予想可コンテンツの記録を行なう。   If S504 is true, the process proceeds to S505. An area of the expected capacity P is secured at the head of the empty size area that is equal to or larger than the expected capacity P and closest to the expected capacity P. After the processing of S505, the process proceeds to S506, and the capacity predictable content is recorded in the secured area.

全ての記録が終了したら、S509に移行し、容量予想可コンテンツの記録を終了する。   When all the recording is completed, the process proceeds to S509, and the recording of the capacity predictable content is ended.

S504が偽の場合、S507に移行し、予想容量Pの一部の領域確保処理(S507とS508)を行なう。S507で、(P - 最大連続空サイズ) を新たな予想容量Pとし、S508で最大連続空サイズの領域に最大連続空サイズ分の記録領域を確保する。そして再度S504の処理に移行し、同様にフローを継続する。   When S504 is false, the process proceeds to S507, and a partial area securing process (S507 and S508) of the expected capacity P is performed. In S507, (P-maximum continuous empty size) is set as a new expected capacity P, and in S508, a recording area for the maximum continuous empty size is secured in the area of the maximum continuous empty size. And it transfers to the process of S504 again and continues a flow similarly.

以上のように構成することで、記録しようとするコンテンツの断片化の数を極力抑えることができる。かつ、空サイズの大きい領域を極力使用しないので、今後予想容量の大きなコンテンツの記録領域を確保する必要が出てきても、そのコンテンツに対しても極力断片化することなく記録領域を確保できる。   By configuring as described above, the number of fragmented contents to be recorded can be suppressed as much as possible. In addition, since an area having a large empty size is not used as much as possible, even if it becomes necessary to secure a recording area for content with a large expected capacity in the future, the recording area can be secured without fragmenting the content as much as possible.

次に、記録実行中ではない記録媒体に、容量予想不可コンテンツを記録する際の記録領域確保方法について図6を用いて説明する。容量予想不可コンテンツ記録開始(S601)するとS602に移行し、連続空領域テーブルから空サイズが最も大きい領域(以下、「最大連続空サイズの領域」とする。)を検索し領域Upとする。そしてS603に移行し、空サイズSpと確保量Aとを比べる。   Next, a recording area securing method when recording capacity-predictable content on a recording medium not being recorded will be described with reference to FIG. When the capacity unpredictable content recording is started (S601), the process proceeds to S602, and the area having the largest empty size (hereinafter referred to as “the area having the maximum continuous empty size”) is searched from the continuous empty area table and set as the area Up. Then, the process proceeds to S603, where the empty size Sp is compared with the secured amount A.

ここで確保量Aとは、容量予想不可コンテンツを記録する際に、一度に確保する記録領域のサイズであり、例えば4MB程度の比較的小さい値である。S603が真の場合、領域UpにサイズAの領域を確保できることになり、S604に移行し、領域Upの開始アドレスapからサイズAの領域を確保する。   Here, the secured amount A is a size of a recording area secured at a time when content whose capacity cannot be predicted is recorded, and is a relatively small value of about 4 MB, for example. When S603 is true, the area of size A can be secured in the area Up, and the process proceeds to S604, where the area of size A is secured from the start address ap of the area Up.

ここで、領域Upの状態フラグfpを1にする。そしてS605に移行し、確保した領域に容量予想不可コンテンツの記録を行う。S606で記録が継続するか判定する。S606が真の場合、S607で状態フラグfpを0にクリアし、S608に移行し容量予想不可コンテンツの記録を終了する。   Here, the state flag fp of the region Up is set to 1. Then, the process proceeds to S605, and the capacity unpredictable content is recorded in the secured area. In step S606, it is determined whether the recording is continued. If S606 is true, the status flag fp is cleared to 0 in S607, the process proceeds to S608, and the recording of the capacity unpredictable content is terminated.

S606が偽の場合、再びS603に移行する。S603,S604,S605,S606をループさせることで、図7のように同じ領域に連続して容量予想不可コンテンツの記録を行うことができる。   If S606 is false, the process proceeds to S603 again. By looping S603, S604, S605, and S606, it is possible to record content whose capacity cannot be predicted continuously in the same area as shown in FIG.

S603が偽の場合、領域Upにはそれ以上記録領域の確保ができないので、S608で状態フラグfpを0にクリアし、S609に移行する。S609でSpが最大連続空サイズの領域か判定する。   If S603 is false, no more recording areas can be secured in the area Up, so the status flag fp is cleared to 0 in S608, and the process proceeds to S609. In S609, it is determined whether Sp is the maximum continuous empty area.

S609が真の場合、記録領域の確保ができる連続空領域がないためS610に移行し、容量予想不可コンテンツの記録を終了する。   If S609 is true, there is no continuous empty area in which a recording area can be secured, so the process moves to S610, and the recording of the capacity unpredictable content ends.

S609が偽の場合、S602に移行し、その時点での最大連続空サイズの領域を検索し、新たな領域Upとし、同様にフローを継続する。   When S609 is false, the process proceeds to S602, the area having the maximum continuous empty size at that time is searched for as a new area Up, and the flow is similarly continued.

以上のように構成することで、空サイズの大きい領域から順次記録領域確保と記録を行い、容量予想不可コンテンツの断片化を極力避けることができる。また例えば、低ビットレートの撮像した動画コンテンツの記録のように、容量予想不可だがコンテンツの容量が比較的大きくならないことが予想される場合、記録領域を確保する空領域をある閾値以下の連続空サイズの領域に制限し、制限した領域のうちで最大連続空サイズの領域の先頭から記録領域を確保することとしてもよい。   By configuring as described above, it is possible to sequentially secure and record the recording area from the large empty area, and to avoid fragmentation of contents whose capacity cannot be predicted as much as possible. Also, for example, when recording video content captured at a low bit rate, the capacity cannot be predicted, but it is expected that the content capacity will not be relatively large. The recording area may be limited to the size area, and the recording area may be secured from the top of the area having the maximum continuous empty size among the limited areas.

その場合、S602、S609の「最大連続空サイズ」の部分を「ある閾値以下の連続空サイズのうち最大連続空サイズ」と読み替えればよい。そのように構成することで、空サイズの大きい領域を極力使用しないようにすることができる。   In this case, the “maximum continuous empty size” portion of S602 and S609 may be read as “maximum continuous empty size among continuous empty sizes below a certain threshold”. With such a configuration, it is possible to avoid using a region having a large empty size as much as possible.

次に、容量予想可コンテンツを記録実行中の記録媒体に、容量予想可コンテンツを記録する際の記録領域確保方法について説明する。容量予想可コンテンツを記録実行中の時点では、容量予想可コンテンツの予想容量は確保されている。よって「記録実行中ではない記録媒体に、容量予想可コンテンツを記録する際の記録領域確保方法」と同様の方法で記録領域確保を行なえばよい。   Next, a recording area securing method for recording capacity predictable content on a recording medium in which capacity predictable content is being recorded will be described. At the time when the capacity-predictable content is being recorded, the expected capacity of the capacity-predictable content is secured. Therefore, the recording area may be secured by a method similar to the “recording area securing method for recording capacity-predictable content on a recording medium not being recorded”.

次に、容量予想可コンテンツを記録実行中の記録媒体に、容量予想不可コンテンツを記録する際の記録領域確保方法について説明する。容量予想可コンテンツを記録実行中の時点では、容量予想可コンテンツの予想容量は確保されている。よって「記録実行中ではない記録媒体に、容量予想不可コンテンツを記録する際の記録領域確保方法」と同様の方法で記録領域確保を行なえばよい。   Next, a description will be given of a method for securing a recording area when recording capacity-unpredictable content on a recording medium in which capacity-predictable content is being recorded. At the time when the capacity-predictable content is being recorded, the expected capacity of the capacity-predictable content is secured. Therefore, the recording area may be secured by a method similar to the “recording area securing method when recording capacity-predictable content on a recording medium not being recorded”.

次に、容量予想不可コンテンツを記録実行中の記録媒体に、容量予想可コンテンツを記録する際の記録領域確保方法について、図7〜図11を用いて説明する。なお、容量予想不可コンテンツを記録実行中の状態とは、状態フラグfpが1である領域Upが存在している状態とする。   Next, a method for securing a recording area when capacity predictable content is recorded on a recording medium in which capacity unpredictable content is being recorded will be described with reference to FIGS. Note that the state in which the capacity-predictable content is being recorded is a state in which there is an area Up in which the state flag fp is 1.

図7のように容量予想不可コンテンツ記録中に、容量予想可コンテンツの予想容量確保を「記録実行中ではない記録媒体に、容量予想可コンテンツを記録する際の記録領域確保方法」と同様の方法で行なうと、容量予想不可コンテンツ記録中の領域の直後に、容量予想可コンテンツの記録領域を確保する可能性があり、容量予想不可コンテンツが断片化してしまう。   As shown in FIG. 7, during the recording of unpredictable content, a method for securing the expected capacity of the predictable content is similar to the “method for securing a recording area when recording predictable content on a recording medium that is not being recorded”. In this case, there is a possibility that a capacity-predictable content recording area may be secured immediately after the area where capacity-predictable content is being recorded, and the capacity-predictable content is fragmented.

よって容量予想不可コンテンツの断片化回避と、容量予想可コンテンツの断片化回避を、極力両立できる処理が必要となる。それを実現する処理として、図8のように容量予想不可コンテンツ記録中の領域Up以外の領域に容量予想可コンテンツの記録領域を確保する方法、図9のように容量予想不可コンテンツ記録中の領域Upの下部に容量予想可コンテンツの記録領域を確保する方法、図10のように容量予想不可コンテンツ記録中の領域Upの下部を含む複数の領域に容量予想可コンテンツの記録領域を確保する方法がある。   Therefore, it is necessary to perform processing that can avoid fragmentation of capacity-predictable content and avoid fragmentation of capacity-predictable content as much as possible. As a process for realizing this, a method of securing a capacity-predictable content recording area in an area other than the area Up during capacity-predictable content recording as shown in FIG. 8, an area during capacity-predictable content recording as shown in FIG. A method of securing a capacity predictable content recording area below the Up, and a method of securing a capacity predictable content recording area in a plurality of areas including the bottom of the area Up during the capacity unpredictable content recording as shown in FIG. is there.

いずれの方法を使用するかを、図11を用いて説明する。容量予想不可コンテンツ記録中に容量予想可コンテンツ記録開始(S1101)するとS1102に移行し、容量予想可コンテンツの予想容量Pを算出する。そしてS1103に移行し、予想容量Pと(総空サイズ − 許容残容量E) とを比べる。   Which method is used will be described with reference to FIG. When capacity-predictable content recording starts during capacity-predictable content recording (S1101), the process proceeds to S1102, and the predicted capacity P of capacity-predictable content is calculated. Then, the process proceeds to S1103, and the predicted capacity P is compared with (total empty size−allowable remaining capacity E).

ここで許容残容量Eとは、記録中の容量予想不可コンテンツの記録のために残しておくべき最低限の容量である。許容残容量Eは、記録中の容量予想不可コンテンツの種類、ビットレートおよび記録済み容量等によって決まる。例えば、記録中の容量予想不可コンテンツが撮像した動画の場合、定数E1、E2、記録済みの時間tとして、E=|(ビットレート)×(E1−E2×t)|のように、ビットレートに比例し記録済みの時間とともに減少する、といった値である。   Here, the allowable remaining capacity E is a minimum capacity that should be left for recording of a capacity-predictable content being recorded. The allowable remaining capacity E is determined by the type of content whose capacity cannot be predicted during recording, the bit rate, the recorded capacity, and the like. For example, in the case of a moving image in which a capacity-predictable content being recorded is imaged, the bit rates of E = | (bit rate) × (E1−E2 × t) | It is a value that decreases in proportion to the recorded time.

S1103が偽の場合S1111に移行し、容量予想可コンテンツの記録をせずに終了する。S1103が真の場合、S1104に移行し、予想容量Pと、状態フラグ0(つまり容量予想不可コンテンツ記録中ではない領域)の最大連続空サイズとを比較する。   If S1103 is false, the process proceeds to S1111 and ends without recording capacity-predictable content. When S1103 is true, the process proceeds to S1104, and the predicted capacity P is compared with the maximum continuous empty size of the status flag 0 (that is, the area where capacity cannot be predicted is not recorded).

S1104が真の場合、容量予想不可コンテンツ記録中でない領域に、容量予想可コンテンツを断片化することなく記録できる空領域が存在することになり、S1105に移行する。S1105で、図8のように、領域Upを除き、予想容量P以上でかつ予想容量Pに最も近い空サイズの領域の先頭に容量予想可コンテンツの記録領域を確保する。   When S1104 is true, there is an empty area in which capacity predictable content can be recorded without fragmentation in an area where capacity predictable content is not being recorded, and the process proceeds to S1105. In S1105, as shown in FIG. 8, a capacity-predictable content recording area is secured at the head of an empty size area that is equal to or larger than the expected capacity P and closest to the expected capacity P, except for the area Up.

S1105の処理後、S1106に移行し、確保した領域に容量予想可コンテンツの記録を行なう。全ての記録が終了したら、S1111に移行し、容量予想可コンテンツの記録を終了する。   After the processing of S1105, the process proceeds to S1106, and the capacity predictable content is recorded in the secured area. When all the recording is completed, the process proceeds to S1111 and the recording of the capacity predictable content is ended.

S1104が偽の場合、領域Upにも容量予想可コンテンツの記録領域の確保をしないと容量予想可コンテンツが断片化してしまうが、領域Upに多くの記録領域を確保すると記録中の容量予想不可コンテンツが断片化する可能性が高くなる。これらを極力両立するために、S1107で、(空サイズSp − 予想容量P) と、許容連続残容量Fとを比較する。   When S1104 is false, the capacity predictable content is fragmented unless the recording area for the capacity predictable content is also secured in the area Up. However, if a large number of recording areas are secured in the area Up, the capacity unpredictable content being recorded is recorded. Is more likely to be fragmented. In order to achieve both as much as possible, in S1107, (empty size Sp−expected capacity P) is compared with the allowable continuous remaining capacity F.

ここで許容連続残容量Fとは、図9のように領域Upの下部に予想容量P全てを確保した際に残る空サイズ(Sp - P)が、容量予想不可コンテンツを断片化しないで記録するための連続空サイズとして十分か否かを表すパラメータである。許容連続残容量Fは、許容残容量Eのように、記録中の容量予想不可コンテンツの種類、ビットレートおよび記録済み容量等によって決まる。   Here, the allowable continuous remaining capacity F is the empty size (Sp-P) remaining when the entire expected capacity P is secured below the area Up as shown in FIG. 9, and the capacity unpredictable content is recorded without being fragmented. This is a parameter indicating whether or not the continuous empty size is sufficient. The allowable continuous remaining capacity F, like the allowable remaining capacity E, is determined by the type of content that cannot be predicted during recording, the bit rate, the recorded capacity, and the like.

S1107が真の場合、S1108に移行し、図9のようにUpの下部に容量予想可コンテンツの記録領域を確保する。S1108の処理後、S1106に移行し、確保した領域に容量予想可コンテンツの記録を行なう。   If S1107 is true, the process proceeds to S1108, and a capacity-predictable content recording area is secured below the Up as shown in FIG. After the processing of S1108, the process proceeds to S1106, and the capacity predictable content is recorded in the secured area.

全ての記録が終了したら、S1111に移行し、容量予想可コンテンツの記録を終了する。S1107が偽の場合、S1109に移行し、予想容量Pのうち一部の領域確保処理(S1109とS1110)を行なう。S1109で、(P - 状態フラグ0の最大連続空サイズ) を新たな予想容量Pとし、S1110で状態フラグ0の最大連続空サイズの領域に記録領域確保を行なう。そして再度S1104移行しフローを継続する。   When all the recording is completed, the process proceeds to S1111 and the recording of the capacity predictable content is ended. When S1107 is false, the process proceeds to S1109, and a part of the area of the expected capacity P is secured (S1109 and S1110). In S1109, (P-maximum continuous empty size of status flag 0) is set as a new expected capacity P, and in S1110, a recording area is secured in an area of maximum continuous empty size of status flag 0. Then, the process proceeds to S1104 again to continue the flow.

以上のように構成することで、例えば、容量予想不可コンテンツである撮像した動画のコンテンツ記録中に、非常に大きな予想容量である容量予想可コンテンツの記録領域を確保したときに、動画のコンテンツを記録できる容量が急激に減少し、ユーザの動画撮影の続行を妨げるといった不利益を避けることができる。   By configuring as described above, for example, when recording a content area of a capacity-predictable content that is a very large expected capacity during recording of a content of a captured video that is a capacity-predictable content, It is possible to avoid the disadvantage that the capacity that can be recorded is drastically reduced and the user's continuation of video shooting is prevented.

また、容量予想不可コンテンツ記録中の領域には極力領域を確保しないようにし、容量予想不可コンテンツの断片化を極力避けることができる。   In addition, it is possible to avoid as much as possible the area in which the capacity unpredictable content is recorded, and to avoid fragmenting the capacity unpredictable content as much as possible.

また、容量予想不可コンテンツ記録中の領域に、容量予想可コンテンツの記録領域を確保したとしても、容量予想不可コンテンツの断片化を極力避けることができ、かつ容量予想不可コンテンツの断片化を極力避けることができる。   In addition, even if a capacity-predictable content recording area is secured in the area where capacity-predictable content is recorded, fragmentation of capacity-predictable content can be avoided as much as possible, and fragmentation of capacity-predictable content can be avoided as much as possible. be able to.

次に、容量予想不可コンテンツを記録実行中の記録媒体に、容量予想不可コンテンツを記録する際の記録領域確保方法について図12、図13、図14を用いて説明する。記録中の容量予想不可コンテンツをコンテンツI、記録しようとしている容量予想不可コンテンツをコンテンツJとする。   Next, a method for securing a recording area when recording capacity-unpredictable content on a recording medium on which capacity-predictable content is being recorded will be described with reference to FIGS. 12, 13, and 14. FIG. The content that cannot be predicted for capacity being recorded is content I, and the content that cannot be predicted for capacity is content J.

またコンテンツIの許容残容量および許容連続残容量を、それぞれE(I)、F(I)とする。またコンテンツJの許容残容量、確保量および許容連続残容量を、それぞれE(J)、A(J)、F(J)とする。   Further, the allowable remaining capacity and the allowable continuous residual capacity of the content I are assumed to be E (I) and F (I), respectively. In addition, the allowable remaining capacity, the secured amount, and the allowable continuous remaining capacity of the content J are respectively E (J), A (J), and F (J).

容量予想不可コンテンツI記録中に容量予想不可コンテンツJ記録開始(S1201)するとS1202に移行し、総空サイズと(E(I)+E(J))を比べる。S1202が偽の場合、コンテンツIとコンテンツJを同時に記録するのに十分な残容量がないと判断し、S1219に移行し容量予想不可コンテンツJの記録をせずに終了する。   When capacity unpredictable content J recording starts during capacity unpredictable content I recording (S1201), the process proceeds to S1202, and the total empty size is compared with (E (I) + E (J)). If S1202 is false, it is determined that there is not enough remaining capacity to record the contents I and J at the same time, and the process proceeds to S1219, and the process ends without recording the contents J whose capacity cannot be predicted.

S1202が真の場合S1203に移行し、状態フラグ0の領域のうち最大連続空サイズである領域を検索し、その領域を領域Uqとする。S1204に移行し、SqとF(J)を比較する。S1204が真の場合、領域UqはコンテンツJを記録するのに十分な連続空容量であると判断し、S1205、S1206、S1207、S1208をループさせることで、図13のようにUqの先頭から順次記録領域確保と記録を行なう。   If S1202 is true, the process proceeds to S1203, where an area having the maximum continuous empty size is searched from the areas of the status flag 0, and the area is set as an area Uq. The process proceeds to S1204, and Sq and F (J) are compared. When S1204 is true, it is determined that the area Uq has a continuous free space sufficient for recording the content J, and S1205, S1206, S1207, and S1208 are looped to sequentially start from the top of Uq as shown in FIG. Secure recording area and record.

S1208が真になった場合、S1209で状態フラグfqを0にクリアし、S1219に移行し容量予想不可コンテンツJの記録を終了する。S1205が偽になった場合、領域Uqにはそれ以上記録ができないことになり、S1210で状態フラグfqを0にクリアしS1203に移行する。   If S1208 becomes true, the status flag fq is cleared to 0 in S1209, the process proceeds to S1219, and the recording of the capacity unpredictable content J is finished. If S1205 is false, no more data can be recorded in the area Uq, the status flag fq is cleared to 0 in S1210, and the process proceeds to S1203.

S1203で新たな領域Uqを検索し、S1204に移行し同様にフローを継続する。S1204が偽の場合、S1211に移行する。ここで、Spと(F(I)+F(J))を比較する。S1211が真の場合、コンテンツIを記録中の領域Upが、コンテンツIとコンテンツJを同時に記録するのに十分な連続空容量であると判断し、S1212に移行する。   In step S1203, a new area Uq is searched, and the process proceeds to step S1204 to continue the flow. If S1204 is false, the process proceeds to S1211. Here, Sp is compared with (F (I) + F (J)). If S1211 is true, it is determined that the area Up in which the content I is being recorded has a sufficient continuous free space for simultaneously recording the content I and the content J, and the process proceeds to S1212.

S1212で、図14のように領域Upの途中からコンテンツJを記録開始できるように、領域Ur(ar=ap+F(I),Sr=Sp−F(I),fr=0)を連続空領域テーブルに追加する。   In S1212, the area Ur (ar = ap + F (I), Sr = Sp−F (I), fr = 0) is stored in the continuous empty area table so that the content J can be started from the middle of the area Up as shown in FIG. Add to

領域Urの追加に合わせて、領域Upのテーブルも更新する。そして、S1213、S1214、S1215、S1216をループさせることで、図14のようにUrの先頭から順次記録領域確保と記録を行なう。   As the area Ur is added, the area Up table is also updated. Then, by looping S1213, S1214, S1215, and S1216, the recording area is secured and recorded sequentially from the beginning of Ur as shown in FIG.

S1216が真になった場合、S1217で状態フラグfrを0にクリアし、S1219に移行し容量予想不可コンテンツJの記録を終了する。S1213が偽になった場合、領域Urにはそれ以上記録ができないことになり、S1218で状態フラグfrを0にクリアし、S1203に移行し、同様にフローを継続する。   If S1216 becomes true, the status flag fr is cleared to 0 in S1217, the process proceeds to S1219, and the recording of the capacity unpredictable content J is finished. If S1213 becomes false, no more recordings can be made in the area Ur. In S1218, the status flag fr is cleared to 0, and the process proceeds to S1203.

図12は、コンテンツJの処理フローを示したが、コンテンツIも同様な処理フローとなる。つまり、コンテンツJ記録前の状態では、コンテンツIは図6のように処理を行なっているが、S602の処理に移行したときにコンテンツJの記録が開始(S1201)していた場合、コンテンツIの処理はS1202に移行し、IをJに、JをIに読み替えた処理を行なえばよい。   FIG. 12 shows the processing flow of the content J, but the content I also has a similar processing flow. That is, in the state before the content J recording, the content I is processed as shown in FIG. 6, but when the recording of the content J is started (S1201) when the process proceeds to S602, the content I The process proceeds to S1202, and the process may be performed by replacing I with J and J with I.

また、コンテンツIとコンテンツJを同時に記録していて、どちらかの記録が終了した場合、記録が継続中のコンテンツの処理は、S1203からS602に移行し、単一の容量予想不可コンテンツ記録の処理を行なえばよい。   If content I and content J are recorded at the same time and one of the recordings is completed, the processing of the content that is being recorded moves from S1203 to S602, and processing for recording a single unpredictable content Should be done.

以上のように構成することで、記録中の容量予想不可コンテンツと記録しようとする容量予想不可コンテンツともに、記録の続行を妨げることを避けることができる。   With the configuration as described above, it is possible to prevent the continuation of the recording from being disturbed for both the capacity unpredictable content being recorded and the capacity unpredictable content to be recorded.

また、容量予想不可コンテンツ記録中の領域には極力領域を確保しないようにし、記録中の容量予想不可コンテンツの断片化を極力避けることができる。   In addition, it is possible to avoid as much as possible the area in which the capacity is unpredictable content is recorded, and to avoid fragmentation of the capacity unpredictable content being recorded as much as possible.

また、容量予想不可コンテンツ記録中の領域に、別の容量予想不可コンテンツの記録領域を確保したとしても、記録中の容量予想不可コンテンツの断片化を極力避けることができ、かつ記録しようとする容量予想不可コンテンツの断片化を極力避けることができる。   In addition, even if another capacity unpredictable content recording area is secured in the area where capacity unpredictable content is being recorded, fragmentation of capacity unpredictable content being recorded can be avoided as much as possible, and the capacity to be recorded Avoid fragmenting unpredictable content as much as possible.

なお、容量予想可コンテンツを記録する際に、記録領域確保した直後に確保した領域に記録を行なう必要はない。例えば、放送番組のコンテンツを予約録画により記録する場合、予約を実行したときに記録領域の確保を行うようにして、記録は予約した記録開始時刻に行なってもよいし、予約した記録開始時刻の直前に記録領域の確保を行なってもよい。   When recording capacity-predictable content, it is not necessary to record in the area secured immediately after securing the recording area. For example, when recording the contents of a broadcast program by reserved recording, the recording area may be secured when the reservation is executed, and the recording may be performed at the reserved recording start time. The recording area may be secured immediately before.

また、記録領域の確保順序と記録順序を一致させる必要は無い。例えば、図11でS1104,S1107,S1109,S1110,S1104,S1105と移行した場合、図10のように容量予想不可コンテンツを記録していない領域に第1の記録領域を確保した後、容量予想不可コンテンツ記録中の領域の下部に第2の記録領域を確保することになる。S1106で記録する際に、確保領域1に記録してから確保領域2に記録してもよいし、確保領域2に記録してから確保領域1に記録してもよい。   Further, it is not necessary to match the recording area securing order and the recording order. For example, in the case of shifting to S1104, S1107, S1109, S1110, S1104, and S1105 in FIG. 11, the capacity cannot be predicted after the first recording area is secured in the area in which the capacity unpredictable content is not recorded as shown in FIG. The second recording area is secured below the area where content is being recorded. When recording is performed in S1106, the data may be recorded in the secured area 1 after being recorded in the secured area 1, or may be recorded in the secured area 1 after being recorded in the secured area 2.

100 記録装置
101 コンテンツ取得部
102 CPU
103 操作部
104 ROM
105 RAM
106 メディアコントローラ
107 記録媒体郡
108 バス
201 既存データ
202 既存データ
203 領域Up
401 既存データ
402 既存データ
403 領域Up
404 確保領域
405 記録領域確保後の領域Up
406 記録領域確保後の新領域Uq
100 Recording Device 101 Content Acquisition Unit 102 CPU
103 Operation unit 104 ROM
105 RAM
106 Media controller 107 Recording medium group 108 Bus 201 Existing data 202 Existing data 203 Area Up
401 Existing data 402 Existing data 403 Area Up
404 Secured area 405 Area Up after securing the recording area
406 New area Uq after securing recording area

Claims (10)

コンテンツを取得するコンテンツ取得部と、
前記コンテンツ取得部で取得したコンテンツを記録する記録媒体とを有し、
前記コンテンツ取得部で取得するコンテンツを前記記録媒体に記録する場合、前記記録媒体の記録領域のうち、連続した空領域が最も大きい記録領域にコンテンツを記録することを特徴とする記録装置。
A content acquisition unit for acquiring content;
A recording medium for recording the content acquired by the content acquisition unit,
When recording the content acquired by the content acquisition unit on the recording medium, the recording apparatus records the content in a recording area having the largest continuous empty area among the recording areas of the recording medium.
請求項1の記録装置であって、
前記コンテンツ取得部で取得するコンテンツは、当該コンテンツの大きさを予測することができないコンテンツであることを特徴とする記録装置。
The recording apparatus according to claim 1,
The content acquired by the content acquisition unit is a content whose size cannot be predicted.
請求項1の記録装置であって、
前記記録媒体に大きさを予測することができないコンテンツを記録している際に大きさを予測することができるコンテンツの記録を開始する場合、前記記録媒体の記録領域のうち前記大きさを予測することができないコンテンツを記録している領域以外の記録領域であって、前記大きさを予測することができるコンテンツの大きさに最も近い連続した空き容量を有する記録領域に当該大きさを予測することができるコンテンツを記録することを特徴とする記録装置。
The recording apparatus according to claim 1,
When recording a content whose size can be predicted while recording content whose size cannot be predicted on the recording medium, the size of the recording area of the recording medium is predicted. Predicting the size in a recording area other than the area where content that cannot be recorded is recorded and having a continuous free space closest to the size of the content for which the size can be predicted A recording apparatus for recording content that can be recorded.
請求項1の記録装置であって、
前記記録媒体に大きさを予測することができない第1のコンテンツを記録している際に大きさを予測することができない第2のコンテンツの記録を開始する場合、前記記録媒体の記録領域のうち前記大きさを予測することができない第1のコンテンツを記録している領域以外の記録領域であって、最も大きい連続した空き容量を有する記録領域に当該大きさを予測することができない第2のコンテンツを記録することを特徴とする記録装置
The recording apparatus according to claim 1,
When recording the second content whose size cannot be predicted when the first content whose size cannot be predicted is recorded on the recording medium, of the recording area of the recording medium A second recording area other than the first content recording area where the size cannot be predicted, and the second recording capacity cannot be predicted in a recording area having the largest continuous free space. Recording apparatus characterized by recording content
請求項1の記録装置であって、
前記記録装置は前記記録媒体の空領域の開始アドレスと、当該空領域のサイズと、当該空領域にコンテンツの大きさを予測することができないコンテンツを記録しているか否かを示す状態フラグとを対応付けて管理することを特徴とする記録装置。
The recording apparatus according to claim 1,
The recording device includes a start address of an empty area of the recording medium, a size of the empty area, and a status flag indicating whether or not content whose size cannot be predicted is recorded in the empty area. A recording apparatus characterized by being associated and managed.
コンテンツを記録媒体に記録する記録方法であって、
前記記録媒体の記録領域のうち、連続した空領域が最も大きい記録領域にコンテンツを記録することを特徴とする記録方法。
A recording method for recording content on a recording medium,
A recording method comprising: recording content in a recording area having the largest continuous empty area among the recording areas of the recording medium.
請求項6の記録方法であって、
前記記録媒体に記録するコンテンツは、当該コンテンツの大きさを予測することができないコンテンツであることを特徴とする記録方法。
The recording method according to claim 6, comprising:
The recording method according to claim 1, wherein the content to be recorded on the recording medium is content whose size cannot be predicted.
請求項6の記録方法であって、
前記記録媒体に大きさを予測することができないコンテンツを記録している際に大きさを予測することができるコンテンツの記録を開始する場合、前記記録媒体の記録領域のうち前記大きさを予測することができないコンテンツを記録している領域以外の記録領域であって、前記大きさを予測することができるコンテンツの大きさに最も近い連続した空き容量を有する記録領域に当該大きさを予測することができるコンテンツを記録することを特徴とする記録方法。
The recording method according to claim 6, comprising:
When recording a content whose size can be predicted while recording content whose size cannot be predicted on the recording medium, the size of the recording area of the recording medium is predicted. Predicting the size in a recording area other than the area where content that cannot be recorded is recorded and having a continuous free space closest to the size of the content for which the size can be predicted A recording method characterized by recording content that can be recorded.
請求項6の記録方法であって、
前記記録媒体に大きさを予測することができない第1のコンテンツを記録している際に大きさを予測することができない第2のコンテンツの記録を開始する場合、前記記録媒体の記録領域のうち前記大きさを予測することができない第1のコンテンツを記録している領域以外の記録領域であって、最も大きい連続した空き容量を有する記録領域に当該大きさを予測することができない第2のコンテンツを記録することを特徴とする記録方法
The recording method according to claim 6, comprising:
When recording the second content whose size cannot be predicted when the first content whose size cannot be predicted is recorded on the recording medium, of the recording area of the recording medium A second recording area other than the first content recording area where the size cannot be predicted, and the second recording capacity cannot be predicted in a recording area having the largest continuous free space. Recording method characterized by recording content
請求項6の記録方法であって、
前記記録媒体の空領域の開始アドレスと、当該空領域のサイズと、当該空領域にコンテンツの大きさを予測することができないコンテンツを記録しているか否かを示す状態フラグとを対応付けて管理することを特徴とする記録方法。
The recording method according to claim 6, comprising:
Managing the start address of the empty area of the recording medium, the size of the empty area, and a status flag indicating whether or not content whose size cannot be predicted is recorded in the empty area And a recording method.
JP2009293690A 2009-12-25 2009-12-25 Recorder and recording method Pending JP2011135393A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009293690A JP2011135393A (en) 2009-12-25 2009-12-25 Recorder and recording method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009293690A JP2011135393A (en) 2009-12-25 2009-12-25 Recorder and recording method

Publications (1)

Publication Number Publication Date
JP2011135393A true JP2011135393A (en) 2011-07-07

Family

ID=44347640

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009293690A Pending JP2011135393A (en) 2009-12-25 2009-12-25 Recorder and recording method

Country Status (1)

Country Link
JP (1) JP2011135393A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004171670A (en) * 2002-11-20 2004-06-17 Sony Corp Recording and reproducing device and recording and reproducing method
JP2005135489A (en) * 2003-10-29 2005-05-26 Toshiba Corp Disk recording device and disk recording method
JP2009266292A (en) * 2008-04-24 2009-11-12 Toshiba Corp Recording/reproducing device and recording method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004171670A (en) * 2002-11-20 2004-06-17 Sony Corp Recording and reproducing device and recording and reproducing method
JP2005135489A (en) * 2003-10-29 2005-05-26 Toshiba Corp Disk recording device and disk recording method
JP2009266292A (en) * 2008-04-24 2009-11-12 Toshiba Corp Recording/reproducing device and recording method

Similar Documents

Publication Publication Date Title
JP4734887B2 (en) Video coding system, method and apparatus
US11570415B2 (en) Methods, systems, and media for generating a summarized video using frame rate modification
JP4697953B2 (en) Image display device and image display method
JP5135733B2 (en) Information recording apparatus, information recording method, and computer program
JP4915208B2 (en) Stream data playback system
CN102833480A (en) Reproduction apparatus and reproduction method
JP4241839B2 (en) Data and file system information recording apparatus and recording method
JP4251219B2 (en) Editing apparatus and editing method
JP5762145B2 (en) REPRODUCTION SYSTEM, ITS PROCESSING METHOD, AND PROGRAM
JP4327221B2 (en) Data recording device
JP4585589B2 (en) Video data processing apparatus and video data processing method
US8655139B2 (en) Video recording and reproducing system and reading method of video data
JP2011135393A (en) Recorder and recording method
EP1362290A1 (en) Device and method for managing the access to a storage medium
JP4116604B2 (en) Data recording device
JP4257504B2 (en) 3D image data processing device, 3D image data transmission device, 3D image data recording device
JP2014236344A (en) Playback device, control method therefor, program and storage medium
US7359623B2 (en) File reproducing apparatus and file reproducing method
JP2005064997A (en) Method for managing video image and video image recorder
JP2006114985A (en) Image recording system, control method thereof, program and recording medium
US20110194837A1 (en) Recording apparatus, imaging and recording apparatus, recording method, and program
US20050207344A1 (en) Data transfer apparatus and image server
JP5697463B2 (en) Movie editing apparatus and method of controlling movie editing apparatus
US8509597B2 (en) Recording apparatus, imaging and recording apparatus, recording method, and program
JP4289403B2 (en) Editing apparatus and editing method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120326

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120326

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130415

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130507

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20130910