JP2012156587A - Video recording device - Google Patents

Video recording device Download PDF

Info

Publication number
JP2012156587A
JP2012156587A JP2011011204A JP2011011204A JP2012156587A JP 2012156587 A JP2012156587 A JP 2012156587A JP 2011011204 A JP2011011204 A JP 2011011204A JP 2011011204 A JP2011011204 A JP 2011011204A JP 2012156587 A JP2012156587 A JP 2012156587A
Authority
JP
Japan
Prior art keywords
moving image
file
recording
image data
video
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
JP2011011204A
Other languages
Japanese (ja)
Other versions
JP2012156587A5 (en
Inventor
Akira Oikawa
亮 及川
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2011011204A priority Critical patent/JP2012156587A/en
Publication of JP2012156587A publication Critical patent/JP2012156587A/en
Publication of JP2012156587A5 publication Critical patent/JP2012156587A5/ja
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a video recording device that, even in an imaging device unable to seamlessly reproduce video data of plural files, immediately after having newly captured video data, can perform preview display reproduction of video data of an existing video file and the newly captured video data seamlessly (in a state where both pieces of video data are combined) to display them.SOLUTION: In a mode for appending video data acquired by acquisition means to a specific video file recorded on a recording medium, according to an input instruction of video capturing, new video data is acquired, an appended video file obtained by appending the new video data to the video file is generated, the appended video file is recorded on the recording medium, and the video data of the appended video file is displayed on a display device.

Description

本発明は、動画記録装置に関し、特に、記録媒体に記録された動画ファイルに動画データを追記することができる動画記録装置に関する。   The present invention relates to a moving image recording apparatus, and more particularly, to a moving image recording apparatus capable of adding moving image data to a moving image file recorded on a recording medium.

従来、動画記録装置として、撮像装置が知られており、撮像装置には、撮像した画像から動画データを生成し、記録媒体に記録する機能が搭載されている。このような撮像装置には、近年、特許文献1のように、記録媒体に記録されている既存の動画ファイルに格納された動画データに対して、新規に撮影して得られた動画データを追加記録することができる撮像装置が登場してきている。また、従来、撮影ボタンを押す毎に所定秒の動画を撮影する機能も撮像装置には搭載されてきている。   2. Description of the Related Art Conventionally, an imaging device is known as a moving image recording device, and the imaging device is equipped with a function of generating moving image data from a captured image and recording it on a recording medium. In recent years, such an image pickup apparatus is added with moving image data obtained by newly photographing moving image data stored in an existing moving image file recorded on a recording medium as disclosed in Patent Document 1. Imaging devices capable of recording have appeared. Conventionally, an imaging apparatus has also been equipped with a function of shooting a moving image for a predetermined second each time the shooting button is pressed.

特開2002−218384号公報JP 2002-218384 A

しかしながら、特許文献1においては、新規に撮影した動画データをそのまま既存の動画ファイルの動画データに連結してしまうことになる。そのため、ユーザは撮影に失敗したと考えた場合には、連結された動画データをすべて破棄するか、後で編集機能を起動させて、失敗撮影箇所を特定し削除するなどの煩雑な作業を行わなければならなかった。   However, in Patent Document 1, the newly captured moving image data is directly connected to the moving image data of the existing moving image file. For this reason, if the user thinks that shooting has failed, the user can perform complicated operations such as discarding all linked video data or activating the editing function later to identify and delete the failed shooting location. I had to.

また、このような煩雑な作業を回避するには、連結する前にユーザに確認をとる必要がある。そのために、既存の動画ファイルの動画データと、新規に撮影した動画データをシームレスに再生した動画をユーザに確認させるのが望ましいと考えられる。すなわち、既存の動画ファイルの動画データから、新規に撮影した動画データに切り替わる時に、動画を停止させたり、ブラックアウトさせたりしないように動画をユーザに見せることが望ましい。   In order to avoid such complicated work, it is necessary to confirm with the user before connection. For this reason, it is desirable that the user confirm the moving image data of the existing moving image file and the moving image in which the newly captured moving image data is seamlessly reproduced. That is, it is desirable to show the moving image to the user so that the moving image is not stopped or blacked out when the moving image data of the existing moving image file is switched to the newly captured moving image data.

しかしながら、従来の撮像装置は、通常は単一のファイルの動画データを再生する程度の回路構成とすることが一般的であり、複数のファイルの動画データをシームレスに再生することができないものがほとんどであった。たとえば、複数のファイルの動画データをシームレスに再生するには、同様の再生処理回路をさらに搭載させたり、高価なマイクロコンピュータや、CPU、メモリを搭載したりする必要があり、製品上コスト高になってしまう。   However, it is common for conventional imaging devices to have a circuit configuration that usually reproduces moving image data of a single file, and most of them cannot reproduce moving image data of a plurality of files seamlessly. Met. For example, in order to seamlessly play back video data of multiple files, it is necessary to install a similar playback processing circuit, or to install an expensive microcomputer, CPU, and memory. turn into.

そこで、本発明は、複数ファイルの動画データをシームレスに再生できないような撮像装置であっても、新規に動画データを撮影した直後に、既存の動画ファイルの動画データと新規に撮影した動画データをシームレス(動画データ同士を結合した状態)にプレビュー再生して表示させた状態で、新規に撮影した動画データを連結するか否かの選択を可能とすることで、コストアップを避けつつ、ユーザに使い勝手の良い動画記録装置を提供することを目的とする。   Therefore, the present invention provides that the video data of an existing video file and the newly captured video data are immediately after the video data is newly captured, even if the imaging device cannot seamlessly reproduce the video data of a plurality of files. It is possible to select whether to link newly captured video data in a state of preview playback and display seamlessly (in a state where video data are combined), thereby avoiding an increase in cost and enabling the user An object of the present invention is to provide an easy-to-use video recording apparatus.

このような目的を達成するために、本発明の動画記録装置は、動画データを取得する取得手段と、前記取得手段により取得された動画データを動画ファイルとして記録媒体に記録する記録手段と、前記記録媒体に記録された動画ファイルの動画データを表示装置に表示する表示制御手段と、前記記録媒体に記録された動画ファイルに、前記取得手段により取得された動画データを追記する編集を行う編集手段と、前記取得手段、前記記録手段、前記表示制御手段、前記編集手段を制御する制御手段と、を有し、前記記録媒体に記録された特定の動画ファイルに、前記取得手段により取得された動画データを追記するモードにおいて、前記制御手段は、入力された動画撮影の指示に応じて、動画データを取得するように前記取得手段を制御し、前記記録媒体に記録された動画ファイルに前記取得した動画データを追記した追記動画ファイルを生成するよう前記編集手段を制御し、前記編集手段により生成された前記追記動画ファイルを前記記録媒体に記録するよう前記記録手段を制御し、前記記録手段により記録された前記追記動画ファイルを前記表示装置に表示するよう前記表示制御手段を制御することを特徴とする。   In order to achieve such an object, the moving image recording apparatus of the present invention includes an acquiring unit that acquires moving image data, a recording unit that records the moving image data acquired by the acquiring unit as a moving image file on a recording medium, Display control means for displaying moving image data of a moving image file recorded on a recording medium on a display device, and editing means for performing editing by adding the moving image data acquired by the acquiring means to the moving image file recorded on the recording medium And a moving image acquired by the acquiring unit in a specific moving image file recorded on the recording medium, the acquiring unit, the recording unit, the display control unit, and a control unit that controls the editing unit. In the mode of appending data, the control means controls the acquisition means to acquire moving image data in response to the input moving image shooting instruction, The editing unit is controlled to generate an additional recording moving image file in which the acquired moving image data is added to the moving image file recorded on the recording medium, and the additional recording moving image file generated by the editing unit is recorded on the recording medium. The recording means is controlled, and the display control means is controlled to display the additional recording moving image file recorded by the recording means on the display device.

本発明は、複数ファイルの動画データをシームレスに再生できないような撮像装置であっても、新規に動画データを撮影した直後に、既存の動画ファイルの動画データと新規に撮影した動画データをシームレス(動画データ同士を結合した状態)にプレビュー表示再生して表示させた状態で、新規に撮影した動画データを追記するか否かの選択を可能とすることで、コストアップを避けつつ、ユーザに使い勝手を向上させることができる。   Even if the imaging apparatus cannot seamlessly reproduce a plurality of files of moving image data, the present invention seamlessly converts the moving image data of the existing moving image file and the newly captured moving image data immediately after shooting the moving image data. It is easy to use for users while avoiding cost increase by enabling selection of whether or not to add newly shot video data in a state where preview data is combined with video data) Can be improved.

実施例1の撮像装置の構成を示す図である。1 is a diagram illustrating a configuration of an imaging apparatus according to a first embodiment. 動画ファイルの構造を示す図である。It is a figure which shows the structure of a moving image file. 通常動画撮影モード時の撮像装置の制御動作を示すフロー図である。It is a flowchart which shows the control operation of the imaging device at the time of normal moving image shooting mode. 記録媒体に記録された動画ファイルのデータ領域とFAT領域の図である。It is a figure of the data area and FAT area | region of the moving image file recorded on the recording medium. 連続動画撮影モード時の撮像装置の制御動作を示すフロー図である。It is a flowchart which shows the control operation of the imaging device at the time of continuous moving image shooting mode. 記録媒体上における動画ファイルの追記を説明するための図である。It is a figure for demonstrating the additional recording of the moving image file on a recording medium. 連続動画撮影モード時の撮影後の確認画面を示す図である。It is a figure which shows the confirmation screen after imaging | photography in continuous moving image imaging | photography mode. 記録媒体上における動画ファイルの分離を説明するための図である。It is a figure for demonstrating isolation | separation of the moving image file on a recording medium. 記録媒体上における動画ファイルの一部削除を説明するための図である。It is a figure for demonstrating the partial deletion of the moving image file on a recording medium. エラー処理による動画ファイルの状態を説明するための図である。It is a figure for demonstrating the state of the moving image file by error processing.

以下、図面を参照して本発明の実施例を詳細に説明するが、この発明は以下の実施の形態に限定されない。   Hereinafter, examples of the present invention will be described in detail with reference to the drawings. However, the present invention is not limited to the following embodiments.

本実施例では、動画撮影可能な撮像装置について説明する。本実施例の撮像装置は、通常の動画撮影モード(第1のモード)においては、1回の動画撮影の開始から終了までに撮影された動画データを1つのファイルとして記録媒体に記録することができる。また、連続動画撮影モード(第2のモード)においては、記録媒体に既に記録されている動画ファイル(既存動画ファイル)に対して、新たに撮影した動画データ(新規動画データ)を追記した動画ファイル(追記動画ファイル)を記録媒体に記録することができる。すなわち、連続動画撮影モードにおいては、既存動画ファイルに追記を行うため記録を行う毎に、新規にファイルが記録媒体に記録されることはない。因みに、連続動画撮影モードで、特定の条件下においては、既存動画ファイルに追記せずに、新たな動画ファイル(新規動画ファイル)として記録媒体に記録することもできる。   In this embodiment, an imaging apparatus capable of shooting a moving image will be described. In the normal moving image shooting mode (first mode), the image pickup apparatus of the present embodiment can record moving image data shot from the start to the end of one moving image shooting as a single file on a recording medium. it can. In the continuous movie shooting mode (second mode), a movie file in which newly recorded movie data (new movie data) is added to a movie file (existing movie file) already recorded on the recording medium. (Additional video file) can be recorded on a recording medium. That is, in the continuous moving image shooting mode, a new file is not recorded on the recording medium every time recording is performed because additional recording is performed on the existing moving image file. Incidentally, in the continuous moving image shooting mode, under a specific condition, it can be recorded on the recording medium as a new moving image file (new moving image file) without adding to the existing moving image file.

特に、本実施例の撮像装置は、連続動画撮影モードにおいて、新たに動画撮影をすると、撮影後に動画を表示画面に表示して、ユーザに確認させることができる。このとき、既存動画ファイルの動画データ(既存動画データ)と、新規動画データとをシームレスに再生して表示することができる。そして、ユーザが連続的に再生した動画を確認し、表示された選択画面(操作画面、ユーザインタフェースとも言う)により、
・追記動画ファイルを記録する
・新規動画データを別のファイルとして記録する
・新規動画データを削除する
等の処理を選択し,実行することができる。また、これらの処理を選択するための物理的なスイッチを設けてもよい。
In particular, in the continuous moving image shooting mode, the image pickup apparatus according to the present embodiment can display a moving image on the display screen after shooting to allow the user to confirm the image. At this time, the moving image data (existing moving image data) of the existing moving image file and the new moving image data can be seamlessly reproduced and displayed. Then, the video that the user has played continuously is confirmed, and the displayed selection screen (also referred to as an operation screen or user interface)
It is possible to select and execute a process such as recording an additional video file, recording new video data as a separate file, deleting new video data, etc. Further, a physical switch for selecting these processes may be provided.

このとき、複数の動画ファイルを並行して再生することができない場合は、上述した追記動画ファイルをあらかじめ記録媒体に記録して、その追記動画ファイルの動画データを順次再生して表示する。そして、選択された処理に従って、動画ファイルの状態を変更する。すなわち、追記動画ファイルを記録する場合は、追記動画ファイルを記録媒体に記録したままとする。   At this time, if a plurality of moving image files cannot be reproduced in parallel, the above-described additional moving image file is recorded in advance on a recording medium, and the moving image data of the additional moving image file is sequentially reproduced and displayed. Then, the state of the moving image file is changed according to the selected process. In other words, when the additional video file is recorded, the additional video file is recorded on the recording medium.

また、新規動画データを追記せずに別のファイルとして記録する場合は、追記動画ファイルから新規動画データを分離し、新たな動画ファイルとするためのヘッダ情報などを付与し、新たな動画ファイル(新規動画ファイル)として記録媒体に記録する。そして、追記動画ファイルに残された、既存動画データからなる動画ファイルを一つの動画ファイルとするため、追記動画ファイルのヘッダ情報を変更して、記録媒体に記録する。すなわち、既存動画ファイルの状態に戻すような編集を行う。   In addition, when recording new video data as a separate file without appending, the new video data is separated from the append video file and header information is added to form a new video file. New video file) on the recording medium. Then, in order to make the moving image file composed of the existing moving image data remaining in the additional recording moving image file into one moving image file, the header information of the additional recording moving image file is changed and recorded on the recording medium. That is, editing is performed to return to the state of the existing moving image file.

また、新規動画データを削除する場合は、追記動画ファイルから新たに撮影した動画データを分離し、その動画データを記録媒体から削除する。また、追記動画ファイルに残された、既存動画データからなる動画ファイルを一つの動画ファイルとするため、追記動画ファイルのヘッダ情報を変更して、記録媒体に記録する。すなわち、既存動画ファイルの状態に戻すような編集を行う。   In addition, when deleting new moving image data, the newly captured moving image data is separated from the additional recording moving image file, and the moving image data is deleted from the recording medium. Further, in order to make a moving image file composed of existing moving image data remaining in the additional recording moving image file into one moving image file, the header information of the additional recording moving image file is changed and recorded on the recording medium. That is, editing is performed to return to the state of the existing moving image file.

本実施例においては、ファイルアロケーションテーブルを用いた記録を行うファイルシステムに対応したフォーマット(本実施例ではファイルシステムとしてFAT32等を例とする)がなされた記録媒体を使用する。そして、前述した追記動画ファイルの生成や、追記動画ファイルを分離する際は、ファイルアロケーションテーブル(FAT)を編集している。従って、動画の追記や分離が容易に行えるのである。   In this embodiment, a recording medium having a format corresponding to a file system for recording using a file allocation table (in this embodiment, FAT32 or the like is taken as an example of the file system) is used. The file allocation table (FAT) is edited when the above-described additional video file is generated or when the additional video file is separated. Therefore, it is possible to easily add and separate moving images.

そして、本実施例の撮像装置によれば、複数ファイルの動画データをシームレスに再生しない撮像装置であっても、新たに動画撮影をした直後に、既存動画データと新規動画データをシームレスに再生して表示することができる。そして、このときにユーザによって選択された処理に従って、追記動画ファイルを記録したり、新規動画データを別のファイルとして記録したり、新規動画データを削除したりすることができる。従って、本実施例の撮像装置は、コストアップを避けつつ、ユーザに使い勝手を向上させることができる。   According to the imaging apparatus of the present embodiment, even if the imaging apparatus does not seamlessly reproduce a plurality of files of moving image data, the existing moving image data and the new moving image data are seamlessly reproduced immediately after a new moving image is captured. Can be displayed. Then, according to the process selected by the user at this time, it is possible to record the additionally recorded moving image file, record the new moving image data as another file, or delete the new moving image data. Therefore, the imaging apparatus of the present embodiment can improve usability for the user while avoiding an increase in cost.

以下、このような撮像装置について、説明する。   Hereinafter, such an imaging apparatus will be described.

本実施例においては、まず、図1を用いて撮像装置の全体構成を説明する。そして、図2を用いて、記録媒体に記録される動画ファイルのファイルフォーマットについて説明する。そして、図3を用いて、通常動画撮影モードにおける撮像装置の制御動作について説明する。そして、図4を用いて、記録媒体に記録された動画ファイルのデータ領域とFAT領域の説明をする。また、図5を用いて、連続動画撮影モード時の撮像装置の制御動作を説明する。また、図6を用いて、連続動画撮影モードにおける記録媒体上における動画ファイルの追記を説明する。また、図7を用いて、連続動画撮影モード時の撮影後の確認画面について説明する。また、図8を用いて、記録媒体上における動画ファイルの分離を説明する。また、図9を用いて、記録媒体上における動画ファイルの一部削除を説明する。また、図10を用いて、連続動画撮影モードで新規動画データ撮影中に動画の記録が停止した場合の追記動画ファイルの状態および、以降の撮影における動画ファイルの記録状態について説明する。   In this embodiment, first, the overall configuration of the imaging apparatus will be described with reference to FIG. The file format of the moving image file recorded on the recording medium will be described with reference to FIG. The control operation of the imaging apparatus in the normal moving image shooting mode will be described with reference to FIG. A data area and a FAT area of the moving image file recorded on the recording medium will be described with reference to FIG. Further, the control operation of the imaging apparatus in the continuous moving image shooting mode will be described with reference to FIG. Further, with reference to FIG. 6, the addition of a moving image file on a recording medium in the continuous moving image shooting mode will be described. A confirmation screen after shooting in the continuous moving image shooting mode will be described with reference to FIG. Further, the separation of the moving image file on the recording medium will be described with reference to FIG. Further, with reference to FIG. 9, a partial deletion of a moving image file on a recording medium will be described. In addition, with reference to FIG. 10, the state of the additionally-recorded moving image file when the recording of the moving image is stopped during the recording of the new moving image data in the continuous moving image shooting mode and the recording state of the moving image file in the subsequent shooting will be described.

まず、図1を用いて本実施例の撮像装置100の全体構成を説明する。
図1において、制御部101は、例えば、CPU(MPU)、メモリ(DRAM、SRAM)等からなり、ユーザからの操作を受け付ける操作部102からの操作信号に応じて、各種処理(プログラム)を実行して撮像装置100の各ブロックを制御したり、各ブロック間でのデータ転送を制御したりする。制御部101は、CPUやメモリからなるマイクロコンピュータであってもよい。
First, the overall configuration of the imaging apparatus 100 of the present embodiment will be described with reference to FIG.
In FIG. 1, the control unit 101 includes, for example, a CPU (MPU), a memory (DRAM, SRAM), and the like, and executes various processes (programs) in response to an operation signal from the operation unit 102 that receives an operation from a user. Thus, each block of the imaging apparatus 100 is controlled, and data transfer between the blocks is controlled. The control unit 101 may be a microcomputer including a CPU and a memory.

操作部102は、例えば、電源ボタン、記録開始ボタン、ズーム調整ボタン、オートフォーカスボタンなどの撮影に関連する各種操作を入力するスイッチ類を有する。また、メニュー表示ボタン、決定ボタン、その他カーソルキー、ポインティングデバイス、タッチパネル等を備え、ユーザによりこれらのキーやボタンが操作されると制御部101に操作信号を送信する。   The operation unit 102 includes switches for inputting various operations related to shooting such as a power button, a recording start button, a zoom adjustment button, and an autofocus button. Further, a menu display button, a determination button, other cursor keys, a pointing device, a touch panel, and the like are provided, and an operation signal is transmitted to the control unit 101 when these keys and buttons are operated by the user.

バス103は、各種データ、制御信号、指示信号などを撮像装置100の各ブロックに送るための汎用バスである。
撮像部110は、レンズにより取り込まれた被写体の光学像を、絞りにより光量を制御して、CCDセンサやCMOSセンサ等の撮像素子により画像信号に変換し、アナログデジタル変換をして、画像処理部111に送信する。
The bus 103 is a general-purpose bus for sending various data, control signals, instruction signals, and the like to each block of the imaging apparatus 100.
The imaging unit 110 controls the light amount of the optical image of the subject captured by the lens using an aperture, converts the optical image into an image signal using an imaging element such as a CCD sensor or a CMOS sensor, performs analog-digital conversion, and performs an image processing unit. 111.

画像処理部111は、画像の記録再生に必要な処理を実行するもので、下記の処理を実行するプログラムを搭載したマイクロコンピュータである。また、制御部101の一部の機能として下記の処理を実行するものであってもよい。画像処理部111は、撮像部110から取得したデジタル画像信号を一時的に不図示のメモリに記憶し、ホワイトバランスや色、明るさなどをユーザに設定された設定値や画像の特性から判定した設定値に基づいて調整する画質調整処理を行う。また、画質調整処理された複数のフレームの画像信号から動画データを生成する処理を行う。ここで、本実施例の画像処理部111は、動画データの各フレームをフレーム内符号化して圧縮符号化された動画データを生成しても良い。また、動画データの複数のフレーム間での差分や動き予測などを利用して圧縮符号化された動画データを生成してもよい。たとえばMotionJPEG、MPEG、H.264(MPEG4−Part10 AVC)、等の様々な公知の圧縮符号化方式の動画データを生成することができる。一般に、フレーム内符号化されたフレーム画像データをIピクチャーと呼び、前方のフレームとの差分を用いてフレーム間符号化された画像データをPピクチャーと呼び、前方後方のフレームとの差分を用いてフレーム間符号化された画像データをBピクチャーと呼ぶ。これらの圧縮方式は、公知の方式を用いており、本発明の特徴とは関係ないので説明を省略する。
そして、画像処理部111で処理された動画データは、制御部101により、メモリ104に送信される。
The image processing unit 111 executes processing necessary for image recording / playback, and is a microcomputer equipped with a program for executing the following processing. Further, the following processing may be executed as a partial function of the control unit 101. The image processing unit 111 temporarily stores a digital image signal acquired from the imaging unit 110 in a memory (not illustrated), and determines white balance, color, brightness, and the like from setting values set by the user and image characteristics. An image quality adjustment process for adjusting based on the set value is performed. In addition, processing for generating moving image data from image signals of a plurality of frames subjected to image quality adjustment processing is performed. Here, the image processing unit 111 according to the present embodiment may generate moving image data that is compression-coded by intra-frame encoding each frame of the moving image data. Moreover, you may produce | generate the moving image data compression-coded using the difference between several flame | frames of moving image data, a motion estimation, etc. For example, Motion JPEG, MPEG, H.264. H.264 (MPEG4-Part10 AVC) and other known compression and encoding video data can be generated. In general, intra-frame-coded frame image data is referred to as an I picture, and inter-frame encoded image data using a difference from the front frame is referred to as a P picture, and the difference between the front and rear frames is used. The inter-frame encoded image data is called a B picture. These compression methods use well-known methods and are not related to the features of the present invention, so the description is omitted.
The moving image data processed by the image processing unit 111 is transmitted to the memory 104 by the control unit 101.

次に、音声入力部120は、例えば、内蔵された無指向性のマイクまたは音声入力端子を介して接続された外部マイク等により、撮像装置100の周囲の音声を集音(収音)し、取得したアナログ音声信号をデジタル信号に変換して音声処理部121に送信する。   Next, the voice input unit 120 collects (collects) sounds around the imaging device 100 using, for example, a built-in omnidirectional microphone or an external microphone connected via a voice input terminal. The acquired analog audio signal is converted into a digital signal and transmitted to the audio processing unit 121.

音声処理部121は、音声の記録再生に必要な処理を実行するもので、下記の処理を実行するプログラムを搭載したマイクロコンピュータである。また、制御部101の一部の機能として下記の処理を実行するものであってもよい。音声処理部121では、音声入力部120から送信されたデジタル音声信号を一時的に不図示のメモリに記憶し、レベルの適正化処理や雑音低減処理等の処理を行う。また、必要に応じて,音声信号を圧縮する処理を行う。そして、音声処理部121で処理された音声データは、制御部101により、メモリ104に記憶される。   The sound processing unit 121 executes a process necessary for recording and reproducing sound, and is a microcomputer equipped with a program for executing the following process. Further, the following processing may be executed as a partial function of the control unit 101. The audio processing unit 121 temporarily stores the digital audio signal transmitted from the audio input unit 120 in a memory (not shown), and performs processing such as level optimization processing and noise reduction processing. Moreover, the process which compresses an audio | voice signal is performed as needed. The audio data processed by the audio processing unit 121 is stored in the memory 104 by the control unit 101.

また、表示制御部131は、表示部130に画像を表示するための表示制御を行うマイコンであって、画像処理部111に一時的に記憶されたデジタル画像信号を読み出して、表示部130に表示させる。表示部130は、たとえば撮像装置100に搭載された液晶パネルや有機ELパネル等であっても良いし、撮像装置100とは別の表示装置(たとえば、テレビ、モニタ、プロジェクタ)である。
メモリ104は、画像処理部111、音声処理部121により得られた、動画データ、音声データ等を一時的に記憶する。
The display control unit 131 is a microcomputer that performs display control for displaying an image on the display unit 130. The display control unit 131 reads a digital image signal temporarily stored in the image processing unit 111 and displays the digital image signal on the display unit 130. Let The display unit 130 may be, for example, a liquid crystal panel or an organic EL panel mounted on the imaging device 100, or a display device (for example, a television, a monitor, or a projector) different from the imaging device 100.
The memory 104 temporarily stores moving image data, audio data, and the like obtained by the image processing unit 111 and the audio processing unit 121.

そして、制御部101は、たとえば、メモリ104より動画データ、音声データ等を読み出して記録再生部140に転送し、記録再生部140は、転送された動画データ、音声データを録媒体141に記録する。記録再生部140は、動画データと音声データを一つの動画ファイルとして記録媒体141に記録する。このとき、撮影時のカメラ設定や、検出データ等を示す各種データを制御部101が生成し、動画データ、音声データとともに記録媒体141に記録しても良い。ここで、記録媒体141は、撮像装置に内蔵された記録媒体でも、取外し可能な記録媒体でもよい。例えば、ハードディスク、光ディスク、光磁気ディスク、CD−R、DVD−R、磁気テープ、不揮発性の半導体メモリ、フラッシュメモリ、などのあらゆる方式の記録媒体を含む。   Then, for example, the control unit 101 reads moving image data, audio data, and the like from the memory 104 and transfers them to the recording / reproducing unit 140, and the recording / reproducing unit 140 records the transferred moving image data, audio data on the recording medium 141. . The recording / playback unit 140 records the moving image data and the audio data on the recording medium 141 as one moving image file. At this time, the control unit 101 may generate various data indicating camera settings at the time of shooting, detection data, and the like, and may record the data together with the moving image data and audio data on the recording medium 141. Here, the recording medium 141 may be a recording medium built in the imaging apparatus or a removable recording medium. For example, the recording medium includes all types of recording media such as a hard disk, an optical disk, a magneto-optical disk, a CD-R, a DVD-R, a magnetic tape, a nonvolatile semiconductor memory, and a flash memory.

また、記録再生部140は、記録媒体141に記録された動画ファイル等を読み出す(再生する)。そして、制御部101は、たとえば読み出した動画ファイルに含まれる動画のヘッダ情報を読み出し、そのヘッダ情報に基づいて、再生すべき動画データ、音声データを記録媒体141から読み出すように記録再生部140を制御する。記録再生部140は、読み出した動画データを画像処理部111へ、再生した音声データを音声処理部121に転送する。画像処理部111は、再生した動画データの1フレームの画像を順次、不図示のメモリに記憶する。そして、表示制御部131は、不図示のメモリに記憶された1フレームの画像を順次読み出して、表示部130に表示する。一方、音声処理部121は、再生した音声データからデジタル音声信号を復号し、アナログ信号へ変換してアナログ音声信号を不図示の音声出力部(スピーカ、イヤホン端子、音声出力端子等)に出力する。   The recording / playback unit 140 reads (plays back) a moving image file or the like recorded on the recording medium 141. Then, the control unit 101 reads, for example, header information of a moving image included in the read moving image file, and based on the header information, the recording / reproducing unit 140 reads the moving image data and audio data to be reproduced from the recording medium 141. Control. The recording / reproducing unit 140 transfers the read moving image data to the image processing unit 111 and the reproduced audio data to the audio processing unit 121. The image processing unit 111 sequentially stores one frame image of the reproduced moving image data in a memory (not shown). Then, the display control unit 131 sequentially reads out one frame image stored in a memory (not shown) and displays it on the display unit 130. On the other hand, the audio processing unit 121 decodes a digital audio signal from the reproduced audio data, converts it into an analog signal, and outputs the analog audio signal to an audio output unit (speaker, earphone terminal, audio output terminal, etc.) not shown. .

本実施例の撮像装置100は、前述したように、通常の動画撮影モード(第1のモード)と、連続動画撮影モード第2のモードとを有する。通常の動画撮影モード(第1のモード)においては、1回の動画撮影の開始から終了までに撮影された動画データを1つのファイルとして記録媒体に記録する。また、連続動画撮影モード(第2のモード)においては、既存動画ファイルに対して、新規動画データを追記した追記動画ファイルを記録媒体に記録することができる。   As described above, the imaging apparatus 100 according to the present embodiment has the normal moving image shooting mode (first mode) and the continuous moving image shooting mode second mode. In the normal moving image shooting mode (first mode), moving image data shot from the start to the end of one moving image shooting is recorded on a recording medium as one file. Further, in the continuous moving image shooting mode (second mode), an additional recording moving image file in which new moving image data is added to an existing moving image file can be recorded on a recording medium.

ここで、本実施例の撮像装置100により、記録媒体141に記録される動画ファイルのファイルフォーマットについて説明する。本実施例では、汎用フォーマットとして、MOVファイルフォーマットを用いている。   Here, the file format of the moving image file recorded on the recording medium 141 by the imaging apparatus 100 of the present embodiment will be described. In this embodiment, the MOV file format is used as the general-purpose format.

MOVファイルフォーマットで記録されたMOVファイルは、図2(a)に示すように、動画データのストリームデータの「mdatアトム」と、動画データのストリームデータに関連する情報の「moovアトム」とから構成されている。   As shown in FIG. 2A, the MOV file recorded in the MOV file format is composed of “mdat atom” of stream data of moving image data and “moov atom” of information related to stream data of moving image data. Has been.

「mdatアトム」の中はさらに、図2(b)に示すように複数のチャンク(chunk cN)で構成され、各チャンクは図2(d)に示すように複数のサンプル(sample sM)から構成される。そして、各サンプルは例えば図2(e)に示すように、それぞれのサンプルに対してI0、B−2、B−1、P3、・・・の符号化された動画データの各フレームが対応する。ここで、I0、I1、I2、・・・、In はイントラ符号化(フレーム内符号化)されたフレーム画像データ(Iピクチャー)である。B0、B1、B2、・・・、Bn は双方向から参照して符号化(フレーム間符号化)されるフレーム画像データ(Bピクチャー)である。P0、P1、P2、・・・、Pnは一方向(順方向)から参照して符号化(フレーム間符号化)されるフレーム画像データ(Pピクチャー)である。本実施例では、フレーム間符号化を用いている例を説明したが、すべてがフレーム内符号化されたフレーム画像データ(Iピクチャー)であっても良い。   The “mdat atom” is further composed of a plurality of chunks (chunk cN) as shown in FIG. 2 (b), and each chunk is composed of a plurality of samples (samplesM) as shown in FIG. 2 (d). Is done. Each sample corresponds to each frame of the encoded moving image data of I0, B-2, B-1, P3,..., For example, as shown in FIG. . Here, I 0, I 1, I 2,..., In are frame image data (I picture) subjected to intra coding (intra-frame coding). B 0, B 1, B 2,..., Bn are frame image data (B picture) that is encoded (inter-frame encoding) with reference from both directions. P 0, P 1, P 2,..., Pn are frame image data (P picture) that is encoded (inter-frame encoded) with reference from one direction (forward direction). In this embodiment, an example in which inter-frame coding is used has been described. However, frame image data (I-picture) that is all intra-frame coded may be used.

「moovアトム」は図2(c)に示すように、作成日時等が記録されるヘッダ情報から成る「mvhdアトム」と「mdatアトム」に格納された動画データのストリームデータに関する情報を入れる「trakアトム」から成る。すなわち「moovアトム」は、動画データの管理情報を記録するものである。「trakアトム」に格納される情報としては、図2(h)に示すように、「mdatアトム」の各チャンクへのオフセット値の情報を格納する「stcoアトム(stcoボックスとも言う)」や、図2(g)に示すように各チャンク内のサンプル数の情報を格納する「stscアトム(stscボックスとも言う)」、図2(f)に示すように各サンプルのサイズの情報を格納する「stszアトム(stszボックスとも言う)」がある。従って上記の「stcoアトム」、「stscアトム」、「stszアトム」に格納されるデータのデータ量は、記録された画像データの量、すなわち記録時間と共に増大していく。例えば1秒間30フレームの画像を15フレーム毎1チャンクに格納するようにしてMOVファイルとして記録していった場合、2時間で1メガバイトほどのデータとなり、1メガバイトの容量を有するmoovアトムが必要となる。MOVファイルフォーマットで記録する場合、動画ストリームデータは時間とともに増大し、そのサイズも非常に大きいため、記録中にもファイルとして動画ストリームデータを外部メモリ407へ書き出す必要がある。しかしながら上述の通り、moovアトムも記録時間に応じてサイズが増加するため、記録が終了するまではMOVヘッダのサイズも不明なため、動画ストリームデータのファイル中への書き出しオフセット位置を決定する事ができない。そのため一般的にはMOVファイルフォーマットの柔軟性を利用し、「mdatアトム」をファイル先頭に配置し、記録終了時に「moovアトム」を「mdatアトム」の後ろに配置した動画ファイルとすることで、上記の問題への対応が可能となる。   As shown in FIG. 2C, the “moov atom” is a “trak” that stores information about the stream data of the moving image data stored in the “mvhd atom” and the “mdat atom” including header information in which the creation date and time is recorded. "Atom". That is, “moov atom” records management information of moving image data. As information stored in the “trak atom”, as shown in FIG. 2 (h), “stco atom (also referred to as stco box)” that stores information on the offset value for each chunk of the “mdat atom”, As shown in FIG. 2G, “stsc atom (also referred to as stsc box)” for storing information on the number of samples in each chunk, and for storing information on the size of each sample as shown in FIG. stsz atom (also called stsz box) ". Therefore, the amount of data stored in the “stco atom”, “stsc atom”, and “stsz atom” increases with the amount of recorded image data, that is, the recording time. For example, when an image of 30 frames per second is recorded as a MOV file so that it is stored in one chunk every 15 frames, the data becomes about 1 megabyte in 2 hours, and a moov atom having a capacity of 1 megabyte is required. Become. When recording in the MOV file format, the moving image stream data increases with time and its size is very large. Therefore, it is necessary to write out the moving image stream data as a file to the external memory 407 even during recording. However, as described above, since the size of the moov atom also increases according to the recording time, the size of the MOV header is unknown until the recording is completed. Therefore, it is possible to determine the offset position for writing the moving image stream data into the file. Can not. Therefore, in general, by using the flexibility of the MOV file format, “mdat atom” is placed at the beginning of the file, and “moov atom” is placed after “mdat atom” at the end of recording. The above problem can be addressed.

しかし、MOVファイルを再生する場合には、記録媒体からMOVファイルの「moovアトム」を読み込み、その「moovアトム」から上記の「stcoアトム」、「stscアトム」、「stszアトム」を解析して、「mdatアトム」内の各チャンクへのアクセスが出来るようにしている。そのため、「moovアトム」を「mdatアトム」後ろに配置するよりも、図2のように「MOVファイル」の先頭に「moovアトム」を配置する方が、「mdatアトム」へのアクセスも早くなる。   However, when playing back an MOV file, the “moov atom” of the MOV file is read from the recording medium, and the above “stco atom”, “stsc atom”, and “stsz atom” are analyzed from the “moov atom”. , Each chunk in the “mdat atom” can be accessed. Therefore, it is faster to access the “mdat atom” when the “moov atom” is arranged at the head of the “MOV file” as shown in FIG. 2 than when the “moov atom” is arranged behind the “mdat atom”. .

そこで、本実施例の撮像装置100では、図3に示す手順で処理を行うことで、図2のように「MOVファイル」の先頭に「moovアトム」を配置した動画ファイルを生成することができるようにしている。   Therefore, the imaging apparatus 100 according to the present exemplary embodiment can generate a moving image file in which “moov atom” is arranged at the head of the “MOV file” as illustrated in FIG. 2 by performing processing according to the procedure illustrated in FIG. I am doing so.

なお、本実施例では記録媒体141のファイル管理システムは組み込み機器で一般的に使用されているFATファイルシステムを使用するものとして説明をする。FATファイルシステムの技術自体は広く公知であるので、本実施例の特徴的な動作でのみその説明をする。ちなみに、記録媒体141のたとえばフラッシュメモリ等は、内蔵されたマイクロコンピュータにより、記録媒体141内の物理的なメモリ領域を管理している。そして、撮像装置100の記録再生部140からのアクセスに対しては、論理的にFATファイルシステムでデータが格納されているように見せている。   In this embodiment, the file management system of the recording medium 141 will be described as using a FAT file system generally used in embedded devices. Since the technology of the FAT file system itself is widely known, only the characteristic operation of this embodiment will be described. Incidentally, for example, a flash memory of the recording medium 141 manages a physical memory area in the recording medium 141 by a built-in microcomputer. For the access from the recording / reproducing unit 140 of the imaging apparatus 100, it is shown that data is logically stored in the FAT file system.

<通常動画撮影モード>
ここで、図3、図4を用いて、図2のように「MOVファイル」の先頭に「moovアトム」を配置した動画ファイルを生成するための動作を説明する。図3は、本実施例の通常動画撮影モード(第1のモード)で動画撮影を行った場合の撮像装置100の動作を説明するためのフロー図である。これらの動作は基本的に撮像装置100の制御部101により制御されている。また、図4は、本実施例の通常動画撮影モード(第1のモード)で動画撮影を行った場合に、記録媒体141の各論理クラスタ内に書き込まれるデータと、FAT(ファイルアロケーションテーブル)の状態を示すものである。
<Normal movie shooting mode>
Here, the operation for generating a moving image file in which “moov atom” is arranged at the head of “MOV file” as shown in FIG. 2 will be described with reference to FIGS. FIG. 3 is a flowchart for explaining the operation of the imaging apparatus 100 when moving image shooting is performed in the normal moving image shooting mode (first mode) of the present embodiment. These operations are basically controlled by the control unit 101 of the imaging apparatus 100. FIG. 4 shows data written in each logical cluster of the recording medium 141 and FAT (file allocation table) when moving image shooting is performed in the normal moving image shooting mode (first mode) of the present embodiment. It shows the state.

まず、撮像装置100の操作部102より通常動画撮影モードが選択された状態で、撮影開始の指示が操作部102から入力されると、制御部101は、撮影開始の指示を、撮像装置の各ブロックに送信し、動画撮影を開始させる(S301でYes)。   First, when a shooting start instruction is input from the operation unit 102 in a state where the normal moving image shooting mode is selected from the operation unit 102 of the imaging device 100, the control unit 101 sends a shooting start instruction to each of the imaging devices. Transmit to the block to start moving image shooting (Yes in S301).

そうすると、撮像部110はデジタル画像信号を取得し、画像処理部111はデジタル画像信号に所定の画像処理を施し、複数フレームの画像信号から動画データを生成する。そして、制御部101は、画像処理部111で生成した動画データを、メモリ104に一時的に記憶する。一方、音声入力部120はデジタル音声信号を取得し、音声処理部121はデジタル音声信号に所定の処理を施し、音声データを生成する。そして、制御部101は、音声処理部121により生成された音声データを、メモリ104に一時的に記憶する。そして、制御部101は、所定のタイミングでメモリ104に記憶された動画データ、音声データをストリームデータ(動画データストリーム)として、記録再生部140に送信する。記録再生部140は、動画データストリームを記録媒体141に書き込んでいく(S302)。この動画データストリームは、図2で説明したMOVファイルのmdatになる部分のデータであり、動画データストリームは、所定のタイミングで順次追記されていくものである(後述のS305)。   Then, the imaging unit 110 acquires a digital image signal, and the image processing unit 111 performs predetermined image processing on the digital image signal, and generates moving image data from a plurality of frames of image signals. Then, the control unit 101 temporarily stores the moving image data generated by the image processing unit 111 in the memory 104. On the other hand, the audio input unit 120 acquires a digital audio signal, and the audio processing unit 121 performs predetermined processing on the digital audio signal to generate audio data. Then, the control unit 101 temporarily stores the audio data generated by the audio processing unit 121 in the memory 104. Then, the control unit 101 transmits the moving image data and audio data stored in the memory 104 at a predetermined timing to the recording / reproducing unit 140 as stream data (moving image data stream). The recording / playback unit 140 writes the moving image data stream to the recording medium 141 (S302). This moving image data stream is the data of the mdat portion of the MOV file described with reference to FIG. 2, and the moving image data stream is sequentially added at a predetermined timing (S305 described later).

次に、制御部101は、moovアトムを新規に作成し、メモリ104に一時的に記憶する処理を行う。このmoovアトムは図2で説明した、MOVファイルのmoovアトムになる部分のデータであり、S302で記録した動画像ストリームデータに対応するようにstcoアトム、stscアトム、stszアトム、その他の必要情報を含む(S303)。   Next, the control unit 101 performs a process of creating a new moov atom and temporarily storing it in the memory 104. This moov atom is the data that becomes the moov atom of the MOV file described with reference to FIG. 2, and the stco atom, stsc atom, stsz atom, and other necessary information corresponding to the moving image stream data recorded in S302 are stored. Included (S303).

そして、制御部101は、撮影終了の指示が操作部102から入力され、撮影終了状態に移行するか否かを判定する(S304)。そして、撮影終了の指示が入力されない場合には(S304でNo)、さらなる動画データストリームを記録媒体141に記録するように、記録再生部140を制御する(S305)。S305では、制御部101は、メモリ104に順次記憶される動画データ、音声データを所定のタイミングで、ストリームデータ(動画データストリーム)として、記録再生部140に送信する。記録再生部140は、S302等で既に記録媒体に記録141に記録した動画データストリームの直後に、新たな動画データストリームを追記していく。   Then, the control unit 101 receives a shooting end instruction from the operation unit 102, and determines whether or not to shift to the shooting end state (S304). Then, if an instruction to end shooting is not input (No in S304), the recording / reproducing unit 140 is controlled to record a further moving image data stream on the recording medium 141 (S305). In S305, the control unit 101 transmits the moving image data and audio data sequentially stored in the memory 104 to the recording / reproducing unit 140 as stream data (moving image data stream) at a predetermined timing. The recording / playback unit 140 adds a new moving image data stream immediately after the moving image data stream already recorded in the recording 141 in the recording medium in S302 or the like.

次に、制御部101は、S305でさらに記録された動画データストリームに対応するように、S303で作成したメモリ104上のmoovアトム内の、stcoアトム、stscアトム、stszアトム、その他の必要情報を更新していく(S306)。   Next, the control unit 101 stores stco atom, stsc atom, stsz atom, and other necessary information in the moov atom created in S303 so as to correspond to the moving image data stream further recorded in S305. It is updated (S306).

以後、撮影を停止しない限りは、制御部101は、S304からS306の処理を実行するように制御する。   Thereafter, as long as shooting is not stopped, the control unit 101 performs control so as to execute the processing from S304 to S306.

次に、操作部102から、撮影停止の指示が入力されると(S304でYes)、制御部101は、メモリ104に残された動画データ、音声データをすべて、ストリームデータ(動画データストリーム)として、記録再生部140に送信する。記録再生部140は、S302、S305等で既に記録媒体に記録141に記録した動画データストリームの直後に、最後の動画データストリームを追記していく(S307)。   Next, when an instruction to stop shooting is input from the operation unit 102 (Yes in S304), the control unit 101 converts all moving image data and audio data remaining in the memory 104 as stream data (moving image data stream). And transmitted to the recording / reproducing unit 140. The recording / reproducing unit 140 appends the last moving image data stream immediately after the moving image data stream recorded in the recording 141 on the recording medium in S302, S305, etc. (S307).

次に、制御部101は、S307で追記された動画データストリームに対応するように、S303で作成したmoovアトム内の、stcoアトム、stscアトム、stszアトム、その他の必要情報を更新していく(S308)。この、S302からS308の処理は、撮影処理S320とする。   Next, the control unit 101 updates stco atom, stsc atom, stsz atom, and other necessary information in the moov atom created in S303 so as to correspond to the moving image data stream added in S307 ( S308). The processing from S302 to S308 is referred to as photographing processing S320.

今回の撮影動作により、ここまでに記録媒体141に記録されているのは動画データストリームのみである。このときの記録媒体141のFATとデータ領域の状態を示した図が図4(a)である。図4(a)のように今回の撮影動作により、動画データストリームは、データ記録領域のクラスタ番号1、2の領域にまたがって記録されている。そして、FATは、クラスタ番号1の領域の次にクラスタ番号2の領域を読み込むようにセットされ、クラスタ番号2の領域でファイルが終端であることを示すようにセットされている。すなわち、クラスタ番号1に対応するFAT領域には「2」が、クラスタ番号2に対応するFAT領域には「FF」がセットされる。   Due to the current shooting operation, only the moving image data stream has been recorded on the recording medium 141 so far. FIG. 4A shows the state of the FAT and data area of the recording medium 141 at this time. As shown in FIG. 4A, the moving image data stream is recorded across the areas of cluster numbers 1 and 2 in the data recording area by the current photographing operation. The FAT is set so as to read the area of cluster number 2 next to the area of cluster number 1, and is set to indicate that the file is the end in the area of cluster number 2. That is, “2” is set in the FAT area corresponding to cluster number 1 and “FF” is set in the FAT area corresponding to cluster number 2.

次に、図3に戻り説明を続ける。制御部101は、moovアトムの更新を終了すると、メモリ104に記憶されたmoovアトムが、記録媒体141のクラスタサイズの整数倍のデータ量になっているかをチェックする(S309)。記録媒体141はFATファイルシステムにおいては、1クラスタのサイズを32キロバイト、16キロバイト、8キロバイトなど設定可能である。S309においては、moovアトムがこれらのサイズの整数倍になっているかをチェックするのである。すなわち、1クラスタのサイズが32キロバイトだとすると、64キロバイト、704キロバイトなどになっているか否かをチェックする。そして、メモリ104に記憶されたmoovアトムが、記録媒体141のクラスタサイズの整数倍になっていない場合には(S309でNo)、クラスタサイズの整数倍の容量になるように、たとえば空白データ(freeアトム)をmoovアトムの後に追加する。たとえば、moovアトムが、17キロバイトであり、クラスタサイズが、32キロバイトであれば、15キロバイトのfreeアトムを生成して、メモリ104のmoovアトムの後に記憶する。そうすると、moovアトムと、freeアトムを合わせた領域(mooovデータと呼ぶ)のサイズは、クラスタサイズの整数倍にすることができる(S310)。   Next, returning to FIG. When the update of the moov atom is completed, the control unit 101 checks whether the moov atom stored in the memory 104 has a data amount that is an integral multiple of the cluster size of the recording medium 141 (S309). In the FAT file system, the recording medium 141 can set the size of one cluster to 32 kilobytes, 16 kilobytes, 8 kilobytes, or the like. In S309, it is checked whether the moov atom is an integral multiple of these sizes. That is, if the size of one cluster is 32 kilobytes, it is checked whether it is 64 kilobytes, 704 kilobytes, or the like. If the moov atom stored in the memory 104 is not an integral multiple of the cluster size of the recording medium 141 (No in S309), for example, blank data ( free atom) is added after the moov atom. For example, if the moov atom is 17 kilobytes and the cluster size is 32 kilobytes, a 15 kilobyte free atom is generated and stored after the moov atom in the memory 104. Then, the size of the area (referred to as moov data) combining the moov atom and the free atom can be made an integral multiple of the cluster size (S310).

次に、制御部101は、メモリ104に記憶されている、moovアトムまたは、moovアトムを含むmoovデータを、記録再生部140に送信し、記録媒体141にファイル(moovファイル)として記録するように制御する。このとき、制御部101は、ファイルの名称を、たとえばMVI_0001.MOV等の動画ファイルの名称としてmoovファイルを記録させる(S311)。   Next, the control unit 101 transmits the moov atom or moov data including the moov atom stored in the memory 104 to the recording / playback unit 140 and records the data on the recording medium 141 as a file (moov file). Control. At this time, the control unit 101 assigns the file name, for example, MVI_0001. A moov file is recorded as the name of a moving image file such as MOV (S311).

ここまでに記録媒体141に記録されているのは動画データストリームと、moovファイルである。このときの記録媒体141のFATとデータ領域の状態を示した図が図4(b)である。図4(b)のように、クラスタ番号3に、moovファイルが記録されている。そして、FATは、クラスタ番号3の領域にのみ記録されたファイルがあることを示すように「FF」がセットされている。   So far, the moving image data stream and the moov file are recorded on the recording medium 141. FIG. 4B shows the state of the FAT and data area of the recording medium 141 at this time. As shown in FIG. 4B, a moov file is recorded in cluster number 3. In the FAT, “FF” is set to indicate that there is a file recorded only in the area of the cluster number 3.

最後に、制御部101は、記録媒体に記録された動画データストリームと、moovファイルとを結合し、動画ファイルを完成させる処理を行う。本実施例では、これまで別々に記録されていた動画データストリームと、moovファイルとを結合するために、FAT領域のみを書き換える処理を行う。つまり、moovファイルに含まれるmoovアトムを最初に読み込み、次に動画データストリームを読み込めるように変更するのである(S312)。この変更状態を示したのが、図4(c)である。本実施例では、クラスタ番号3の次にクラスタ番号1を読み込むようにFATのクラスタ番号3に対応する場所をファイル終端を示す「FF」から、「1」に変更する。   Finally, the control unit 101 performs processing for combining the moving image data stream recorded on the recording medium and the moov file to complete the moving image file. In this embodiment, a process of rewriting only the FAT area is performed in order to combine the moving image data stream that has been separately recorded and the moov file. That is, the moov atom included in the moov file is read first, and then the moving image data stream is read (S312). FIG. 4C shows this changed state. In this embodiment, the location corresponding to the FAT cluster number 3 is changed from “FF” indicating the end of the file to “1” so that the cluster number 1 is read after the cluster number 3.

このようにすることで、動画データとしては、クラスタ番号3のデータが最初にくることになり、図2のように「MOVファイル」の先頭に「moovアトム」を配置した動画ファイルを生成することができるようになるのである。   By doing so, the data of the cluster number 3 comes first as the moving image data, and a moving image file in which “moov atom” is arranged at the head of the “MOV file” as shown in FIG. 2 is generated. Will be able to.

そして、これらS301からS312の処理が終了すると、再び待機状態に戻り、記録処理を終了する。この、S309からS312の処理は、撮影後処理AS330とする。   When the processes from S301 to S312 are finished, the process returns to the standby state, and the recording process is finished. The processing from S309 to S312 is referred to as post-shooting processing AS330.

本実施例の撮像装置100は、通常動画撮影モードにおいては、S301からS312の処理を行うことで、動画ファイル(「MOVファイル」)を生成するのである。
本実施例の説明では、ディレクトリエントリについては言及しなかったが、最終的に完成した「MOVファイル」の先頭クラスタと、ファイル名MVI_0001.MOVを示す情報がディレクトリエントリに書き込まれる。しかし、途中生成した動画データストリームのファイル(クラスタ番号1から2)については、ディレクトリエントリに書き込まなくても良い。また、「moovファイル」(クラスタ番号3)については、ファイル名をつけて記録するためディレクトリエントリに、ファイル名と、先頭クラスタの情報を書き込む。ここで、本実施例においては「moovファイル」のファイル名を、最終的に完成する「MOVファイル」のファイル名と同じものとしており、「MOVファイル」の先頭クラスタは、「moovファイル」の先頭クラスタと同じである。したがって、「MOVファイル」を生成する際には、FAT領域のみを書き換えることで、ファイルを完成させることができるのである。
In the normal moving image shooting mode, the imaging apparatus 100 according to the present embodiment generates a moving image file (“MOV file”) by performing the processing from S301 to S312.
In the description of this embodiment, the directory entry is not mentioned, but the head cluster of the finally completed “MOV file” and the file name MVI — 0001. Information indicating the MOV is written in the directory entry. However, the file (cluster number 1 to 2) of the moving image data stream generated halfway does not have to be written in the directory entry. For the “moov file” (cluster number 3), the file name and the information of the first cluster are written in the directory entry for recording with a file name. In this embodiment, the file name of “moov file” is the same as the file name of “MOV file” to be finally completed, and the first cluster of “MOV file” is the head of “moov file”. Same as cluster. Therefore, when the “MOV file” is generated, the file can be completed by rewriting only the FAT area.

なお、本実施例の動画データストリームのファイルは、「MVI_0001.DAT」というファイル名で、記録媒体141に記録されている。したがって、ファイルを完成させた後に、ディレクトリエントリに書き込まれた「MVI_0001.DAT」を示す情報を削除する。   Note that the file of the moving image data stream of this embodiment is recorded on the recording medium 141 with the file name “MVI — 0001.DAT”. Therefore, after the file is completed, the information indicating “MVI — 0001.DAT” written in the directory entry is deleted.

また、メモリ104に記録されているmoovアトムの情報を、不図示の不揮発性メモリに、順次コピーするようにしても良い。このようにすることで、動画撮影中に、突然電源が落ちても撮像装置の再起動時に、不揮発性メモリに記録されているmoovアトム情報を用いて、記録途中だった動画データの動画ファイルを完成させることができる。   Also, the moov atom information recorded in the memory 104 may be sequentially copied to a non-illustrated nonvolatile memory. By doing this, even when the power is suddenly turned off during movie shooting, the movie file of movie data that was in the process of being recorded is recorded using the moov atom information recorded in the nonvolatile memory when the imaging device is restarted. Can be completed.

<連続動画撮影モード>
続いて、図5から図11を用いて、本実施例の連続動画撮影モード(第2のモード)で動画撮影を行った場合の撮像装置100の動作を説明する。
<Continuous video shooting mode>
Next, the operation of the imaging apparatus 100 when performing moving image shooting in the continuous moving image shooting mode (second mode) of the present embodiment will be described using FIGS. 5 to 11.

図5は、本実施例の連続動画撮影モード(第2のモード)で動画撮影を行った場合の撮像装置100の動作を説明するためのフロー図である。これらの動作は基本的に撮像装置100の制御部101により制御されている。また、図6、図7、図8は、本実施例の連続動画撮影モード(第2のモード)で動画撮影を行った場合に、記録媒体141の各論理クラスタ内に書き込まれるデータと、FAT(ファイルアロケーションテーブル)の状態を示すものである。特に図6は、記録媒体141に既に記録されている動画ファイル(既存動画ファイル)に、新規に撮影した動画データ(新規動画データ)を追記した追記動画ファイルの生成を説明するための図である。また、図7は、動画撮影後の確認画面を示す図である。また、図8は、追記動画ファイルから新規動画データの分離、既存動画ファイルの動画データ(既存動画データ)のみの動画ファイルの生成、新規動画データのみからなる新規動画ファイルの生成を説明するための図である。また、図9は、追記動画ファイルから、新規動画データの分離、既存動画ファイルの動画データ(既存動画データ)のみの動画ファイルの生成、新規動画データの削除を説明するための図である。   FIG. 5 is a flowchart for explaining the operation of the imaging apparatus 100 when moving image shooting is performed in the continuous moving image shooting mode (second mode) of the present embodiment. These operations are basically controlled by the control unit 101 of the imaging apparatus 100. FIGS. 6, 7, and 8 show data written in each logical cluster of the recording medium 141 when the moving image is shot in the continuous moving image shooting mode (second mode) of this embodiment, and FAT. It shows the state of (file allocation table). In particular, FIG. 6 is a diagram for explaining the generation of the additionally-recorded moving image file in which newly captured moving image data (new moving image data) is added to the moving image file already recorded on the recording medium 141 (existing moving image file). . FIG. 7 is a diagram showing a confirmation screen after moving image shooting. FIG. 8 is a diagram for explaining the separation of new video data from the additional video file, generation of a video file only of video data (existing video data) of an existing video file, and generation of a new video file consisting of only new video data. FIG. FIG. 9 is a diagram for explaining separation of new moving image data, generation of a moving image file of only moving image data (existing moving image data) of the existing moving image file, and deletion of new moving image data from the additional moving image file.

本実施例の連続動画撮影モードは、事前に1回の撮影時間を設定「撮影時間設定」して撮影するものとして説明する。たとえば、設定できるのは、2秒、4秒、6秒、8秒、等であるが、任意の秒数としてもよい。また、本発明は、撮影時間を設定した撮影のみに限定されるものではなく、撮影中に撮影延長の指示をすることにより撮影時間を延長できるようにしても良いし、撮影時間を設定しなくても良い。   The continuous moving image shooting mode of the present embodiment will be described on the assumption that one shooting time is set in advance and “shooting time setting” is set for shooting. For example, 2 seconds, 4 seconds, 6 seconds, 8 seconds, etc. can be set, but any number of seconds may be set. In addition, the present invention is not limited to shooting with a shooting time set, and the shooting time may be extended by giving an instruction to extend shooting during shooting, or the shooting time is not set. May be.

まず、撮像装置100の操作部102より連続動画撮影モードが選択されると、制御部101は、撮影する新規動画データを、記録媒体141に記録されている既存動画データに追記可能かどうかを判定する(S501)。この処理は、たとえば、記録媒体141が着脱されたか否か、既存動画ファイルがプロテクトされているか否か、動画記録設定が既存動画ファイルと同一か否か等に応じて、追記するか否かを判定する。また、動画記録に伴う音声の記録設定が既存動画ファイルと同一か否か、現在連続動画撮影モードにおける撮影時間設定と、既存動画ファイルの撮影時間設定と、が同一であるか否かを判定する。そのため、制御部101は、撮像装置100の起動時に、あらかじめ記録媒体141に記録されている動画ファイルのパスを参照し、連続動画撮影モードで撮影された動画ファイルのうち最後に撮影された動画ファイルの名前を不図示のメモリに一時的に記憶している。そして、制御部101は、追記判定結果をメモリに記憶する。ここで、「追記可能」と判定しない場合の条件を整理する。
・追記対象のファイルが無い場合
連続動画撮影モードで撮影された動画には、ファイル名として、「VSN_000X.MOV」という、VSNという識別子と通し番号4桁が付加されるようになっている。しかし、撮像装置100の起動時に、連続動画撮影モードで撮影された動画ファイルのうち最後に撮影された動画ファイルの名前が検出されない場合には、追記不可能とする。
・記録媒体141の挿抜履歴がある場合
撮像装置100の起動時に、制御部101は、最後に連続動画撮影モードにおいて撮影した後に、記録媒体141が挿抜された履歴が、不図示の不揮発性メモリに残っている場合には、追記不可能とする。これは、記録媒体141に記録されている「VSN_000X.MOV」がコンピュータなどにより編集されてしまい、画像サイズなどが変更され、追記により動画ファイル自体が壊れたりする可能性を低減するためである。そのためには、追記対象の「VSN_000X.MOV」のmoovデータを読み出して、moovアトムに記録されている撮影日時情報と、不揮発性メモリに残っている挿抜履歴の時間情報とを比較する。追記動画ファイル「VSN_000X.MOV」は、その動画に記録されている複数のシーンの動画データのうち、最初に撮影された時間情報をmoovアトムに記録されるようになっている。
・追記対象の既存動画ファイルがプロテクトされている場合
記録媒体141に記録されている追記対象の「VSN_000X.MOV」がプロテクトされている場合には、ユーザがファイルの改変を望まないファイルである可能性が高いので、追記不可能とする。
・追記撮影によりファイルサイズが所定のサイズを超える場合
記録媒体141は、前述したようにたとえばFATファイルシステムで管理されている。その場合、たとえば、FAT32では、1ファイルあたり4GB以上になると読み込めなくなってしまう。そのため、次の撮影により「追記動画ファイル」が4GBを超える場合には、追記不可能とする。
・追記撮影により動画再生時間が所定時間を超える場合
撮像装置においては、所定時間(たとえば、30分)を超える撮影を望まない場合を考慮し、連続動画撮影モードにおいて、新たな撮影をすることにより、「追記動画ファイル」の動画データの再生時間が30分を超える場合には、追記不可能とする。そのためには、たとえば、moovアトムに記載されている「追記動画ファイル」の再生時間を読み出して、29分58秒等であれば、追記不可能とするのである。
・動画記録設定が追記元の既存動画ファイルと同一でない場合
本実施例のように、既存動画ファイルに新規動画データを追記する場合には、動画の途中で、フレームレートや画像サイズ、GOP構成、動画符号化方式が変更されてしまうと、シームレスに再生できなくなってしまう可能性がある。そのため、既存動画ファイルの動画データと、新規動画データの動画記録設定が同一でない場合には、追記不可能とする。フレームレートや画像サイズ、GOP構成、動画符号化方式等の情報は、既存動画ファイルのmoovアトムやファイルヘッダ等に記録されている。
・音声記録設定が追記元の既存動画ファイルと同一でない場合
本実施例のように、既存動画ファイルに新規動画データを追記する場合には、動画の途中で、音声のサンプリングレートや、音声符号化方式等が変更されてしまうと、再生できなくなってしまう可能性がある。そのため、既存動画ファイルの動画データと、新規動画データファイルの音声記録設定が同一でない場合には、追記不可能とする。音声のサンプリングレートや、音声符号化方式等の情報は、既存動画ファイルのmoovアトムやファイルヘッダ等に記録されている。
・「撮影時間設定」が追記元の既存動画ファイルと同一でない場合
本実施例の撮像装置は、前述のように、2秒、4秒、6秒、8秒等の固定時間撮影した動画データを追記していく方式をとっている。後述するが、そのため、4秒の動画データのみを追記した追記動画ファイルを生成し、そのファイルの早送り、巻戻しについては、4秒ずつ早送り、巻戻しを行うようにしている。そのため、設定された「撮影時間設定」が追記元の既存動画ファイルと同一でない場合には、追記不可能とする。この「撮影時間設定」に関する情報も、moovアトムやファイルヘッダ等に記載されている。
First, when the continuous moving image shooting mode is selected from the operation unit 102 of the imaging apparatus 100, the control unit 101 determines whether or not new moving image data to be shot can be added to the existing moving image data recorded on the recording medium 141. (S501). In this process, for example, whether or not additional recording is performed depending on whether or not the recording medium 141 is detached, whether or not the existing moving image file is protected, whether or not the moving image recording setting is the same as that of the existing moving image file, and the like. judge. Also, it is determined whether or not the sound recording setting associated with the moving image recording is the same as that of the existing moving image file, and whether or not the shooting time setting in the current continuous moving image shooting mode is the same as the shooting time setting of the existing moving image file. . Therefore, the control unit 101 refers to the path of the moving image file recorded in advance on the recording medium 141 when the imaging apparatus 100 is started up, and the moving image file captured last in the moving image file captured in the continuous moving image capturing mode. Is temporarily stored in a memory (not shown). And the control part 101 memorize | stores a write-once determination result in memory. Here, the conditions when it is not determined that “additional writing is possible” are organized.
When there is no additional recording target file A moving image shot in the continuous moving image shooting mode is added with an identifier of VSN called “VSN — 000X.MOV” and a 4-digit serial number as a file name. However, when the image capturing apparatus 100 is started up, if the name of the moving image file that was shot last among the moving image files shot in the continuous moving image shooting mode is not detected, additional recording is impossible.
When there is an insertion / extraction history of the recording medium 141 When the imaging apparatus 100 is activated, the control unit 101 records the history of the insertion / extraction of the recording medium 141 in the non-illustrated nonvolatile memory after the last shooting in the continuous moving image shooting mode. If it remains, appending is impossible. This is to reduce the possibility that “VSN — 000X.MOV” recorded on the recording medium 141 is edited by a computer or the like, the image size or the like is changed, and the moving image file itself is broken due to additional writing. For this purpose, the moov data of “VSN — 000X.MOV” to be added is read, and the shooting date / time information recorded in the moov atom is compared with the time information of the insertion / removal history remaining in the nonvolatile memory. The appending moving image file “VSN — 000X.MOV” is configured to record the first shooting time information in the moov atom among moving image data of a plurality of scenes recorded in the moving image.
When the existing video file to be added is protected When the “VSN_000X.MOV” to be added recorded on the recording medium 141 is protected, the file may not be modified by the user. Due to its high nature, no additional writing is possible.
When the file size exceeds a predetermined size due to additional recording The recording medium 141 is managed by, for example, the FAT file system as described above. In that case, for example, in FAT32, when it becomes 4 GB or more per file, it cannot be read. For this reason, if the “additional video file” exceeds 4 GB in the next shooting, the additional recording is impossible.
When the video playback time exceeds a predetermined time due to additional recording, the imaging device takes into account the case where it is not desired to take a video that exceeds a predetermined time (for example, 30 minutes). When the reproduction time of the moving image data of the “additional moving image file” exceeds 30 minutes, the additional writing is impossible. For this purpose, for example, if the playback time of the “additional video file” described in the moov atom is read out and 29 minutes 58 seconds or the like, the additional recording is impossible.
-When the video recording settings are not the same as the existing video file of the append source When adding new video data to the existing video file as in this embodiment, the frame rate, image size, GOP configuration, If the moving image encoding method is changed, there is a possibility that seamless playback cannot be performed. For this reason, when the moving image data of the existing moving image file and the moving image recording setting of the new moving image data are not the same, additional recording is impossible. Information such as a frame rate, an image size, a GOP configuration, and a moving image encoding method is recorded in a moov atom or a file header of an existing moving image file.
-When the audio recording settings are not the same as the existing video file of the original recording source When adding new video data to the existing video file as in this example, the audio sampling rate or audio encoding is performed in the middle of the video. If the method or the like is changed, reproduction may not be possible. Therefore, when the moving image data of the existing moving image file and the audio recording setting of the new moving image data file are not the same, additional recording is impossible. Information such as an audio sampling rate and an audio encoding method is recorded in a moov atom or a file header of an existing moving image file.
When the “shooting time setting” is not the same as the existing moving image file of the appending source As described above, the image pickup apparatus of the present embodiment captures moving image data shot for a fixed time of 2 seconds, 4 seconds, 6 seconds, 8 seconds, etc. The method of appending is taken. As will be described later, for this reason, an additional recording moving image file in which only moving image data of 4 seconds is added is generated, and fast forwarding and rewinding of the file are performed by fast forwarding and rewinding every 4 seconds. For this reason, when the set “shooting time setting” is not the same as the existing moving image file of the additional recording source, the additional recording is impossible. Information regarding this “shooting time setting” is also described in a moov atom, a file header, or the like.

以上が、追記不可能とする条件である。   The above is the condition that makes additional writing impossible.

次に、制御部101は、撮影開始の指示が操作部102から入力されると(S502でYes)、撮影開始の指示を撮像装置の各ブロックに送信し、動画撮影を開始させる。そして、図3のS320の処理を撮影終了の指示があるまで継続する。すなわち、制御部101は、記録媒体141に動画データストリームを順次記録し、その動画データストリームに対応するmoovアトムを生成してメモリ104に記憶する処理を、撮影終了の指示が入力されるまで継続する。そして、撮影終了の指示が入力されると、最後に撮影された動画データと音声データとを動画データストリームとして、さらに記録媒体141に記録していく。そして、メモリ104に記憶されているその動画データストリームに対応するmoovアトムを更新する。   Next, when a shooting start instruction is input from the operation unit 102 (Yes in S502), the control unit 101 transmits a shooting start instruction to each block of the imaging apparatus to start moving image shooting. Then, the process of S320 in FIG. 3 is continued until an instruction to end photographing is given. That is, the control unit 101 sequentially records a moving image data stream on the recording medium 141, generates a moov atom corresponding to the moving image data stream, and stores it in the memory 104 until a shooting end instruction is input. To do. When an instruction to end shooting is input, the last shot moving image data and audio data are further recorded on the recording medium 141 as a moving image data stream. Then, the moov atom corresponding to the moving image data stream stored in the memory 104 is updated.

撮影処理S320が終了すると、制御部101は、次に、撮影前にS501で判定した追記判定処理の結果を制御部101のメモリから読み出す。制御部101は、追記可能な場合には、S510に処理を移す(S503で追記)。一方、追記可能でない場合には、新規撮影として、撮影後処理AS330に処理を移す(S503で新規)。S330の説明は、図3の説明と同様であるので省略する。この連続動画撮影モードで撮影される動画ファイルには、「VSN_000X.MOV」というファイル名が付与される。   When the shooting process S320 ends, the control unit 101 next reads out the result of the additional recording determination process determined in S501 before shooting from the memory of the control unit 101. If additional writing is possible, the control unit 101 moves the process to S510 (addition in S503). On the other hand, if additional recording is not possible, the process moves to post-shooting processing AS330 as new shooting (new in S503). The description of S330 is the same as the description of FIG. A file name “VSN — 000X.MOV” is assigned to a moving image file shot in the continuous moving image shooting mode.

次に、追記可能な場合(S503で追記)について説明する。追記可能な場合には、制御部101は、図6(b)に示すように、追記対象の既存動画ファイル「VSN_000X.MOV」の記録されていない、空きクラスタに新規動画データのストリームが記録するように記録再生部140を制御する。本実施例では、記録媒体141のクラスタ番号4のデータ領域に記録される例を示したが、空き領域であれば、どのクラスタでも良い。このとき、新規動画データのストリームのファイルには、「VSN_000X+1.DAT」という、「既存動画ファイル」のファイル名の4桁の通し番号をインクリメントしたファイル名を使用する。   Next, a case where additional writing is possible (addition in S503) will be described. When additional recording is possible, the control unit 101 records a stream of new video data in an empty cluster where the existing video file “VSN — 000X.MOV” to be additionally recorded is not recorded, as shown in FIG. In this manner, the recording / reproducing unit 140 is controlled. In the present embodiment, an example in which data is recorded in the data area of cluster number 4 on the recording medium 141 is shown, but any cluster may be used as long as it is a free area. At this time, a file name obtained by incrementing the 4-digit serial number of the file name of “existing moving image file”, “VSN — 000X + 1.DAT”, is used for the file of the new moving image data stream.

追記可能な場合、制御部101は、追記対象となる既存動画ファイルのmoovデータを記録媒体141から読み出すように記録再生部140を制御して、既存動画ファイルのmoovアトムをメモリ104に記憶する(S510)。そして、今回の撮影処理S320によりメモリ104に記憶されている新規動画データのmoovアトムとの結合処理を行う(S511)。moovアトムは、図2で説明したように、動画の作成日時、各動画のフレームを示すチャンクへのオフセット情報を格納している。そこで、制御部101は、既存動画データの最後のチャンクの次のチャンクが、新規動画データの最初のチャンクになるように、2つのmoovアトムを用いて結合されたmoovアトムを生成する。具体的には、新規動画データの「stcoアトム」のオフセット値に、既存動画データの「stcoアトム」のオフセット値を足す処理を行う等の処理を行う。このようにすることで、既存動画ファイルに新規動画データを追記した動画ファイルの再生に必要なmoovアトムを生成することができるのである。このとき、新たに生成したmoovアトムには、動画撮影を行った時刻を記録することができるが、追記された動画のmoovアトムには、既存動画ファイルの動画データの撮影時刻の情報が記録されることになる。   When the additional recording is possible, the control unit 101 controls the recording / reproducing unit 140 to read the moov data of the existing moving image file to be added from the recording medium 141 and stores the moov atom of the existing moving image file in the memory 104 ( S510). Then, the process of combining the new moving image data stored in the memory 104 with the moov atom is performed by the current photographing process S320 (S511). As described with reference to FIG. 2, the moov atom stores the creation date and time of the moving image and offset information to the chunk indicating the frame of each moving image. Therefore, the control unit 101 generates a moov atom that is combined using two moov atoms so that the next chunk after the last chunk of the existing moving image data becomes the first chunk of the new moving image data. Specifically, processing such as adding the offset value of “stco atom” of the existing moving image data to the offset value of “stco atom” of the new moving image data is performed. By doing so, it is possible to generate a moov atom necessary for reproducing a moving image file in which new moving image data is added to an existing moving image file. At this time, the time of moving image shooting can be recorded in the newly generated moov atom, but the shooting time information of the moving image data of the existing moving image file is recorded in the moov atom of the added moving image. Will be.

次に、制御部101は、図3のS309からS310と同様の処理により、moovアトムを含むmoovデータを作成する。   Next, the control unit 101 creates moov data including a moov atom by the same processing as S309 to S310 in FIG.

そして、制御部101は、メモリ104に記憶されている、結合されたmoovアトムまたは、結合されたmoovアトムを含むmoovデータを、記録再生部140に送信し、記録媒体141にファイル(moovファイル)として記録するように制御する(S512)。このとき、制御部101は、記録媒体141に、既に記録されている既存動画ファイルのmoovデータを上書きするように記録再生部140を制御する。また、既存動画ファイルのmoovデータを削除し、その上から新たなmoovデータを別のクラスタに記録しても良い。   Then, the control unit 101 transmits the combined moov atom or moov data including the combined moov atom stored in the memory 104 to the recording / playback unit 140, and stores the file (moov file) in the recording medium 141. (S512). At this time, the control unit 101 controls the recording / reproducing unit 140 so that the recording medium 141 overwrites the moov data of the already recorded moving image file. Alternatively, the moov data of the existing moving image file may be deleted, and new moov data may be recorded in another cluster.

ここまでに記録媒体141に記録されているのは動画データストリームと、moovファイルである。このときの記録媒体141のFATとデータ領域の状態を示した図が図6(b)である。ちなみに、図6(a)は、記録媒体141に既に記録されている既存動画ファイルのデータ領域の状態と、FAT領域の状態を示している。図6(a)では、既存動画ファイル「VSN_000X.MOV」が、クラスタ番号1から3のデータ領域に記録されている。そして、FATは、クラスタ番号3>1>2の順番でファイルを読み込むようにセットされている。   So far, the moving image data stream and the moov file are recorded on the recording medium 141. FIG. 6B shows the state of the FAT and data area of the recording medium 141 at this time. Incidentally, FIG. 6A shows the state of the data area of the existing moving image file already recorded on the recording medium 141 and the state of the FAT area. In FIG. 6A, the existing moving image file “VSN — 000X.MOV” is recorded in the data area of cluster numbers 1 to 3. The FAT is set to read the files in the order of cluster number 3> 1> 2.

図6(b)では、図6(a)の状態から、まず、新たに撮影された新規動画データストリームがクラスタ番号4、5の領域に記録されており、FATは、クラスタ番号4の領域に続けてクラスタ番号5の領域を読み込むようにセットされている。この新規動画データストリームのファイル名は、前述したように「VSN_000X+1.DAT」という、「既存動画ファイル」のファイル名の4桁の通し番号をインクリメントしたファイル名である。また、moovアトムの領域が、図6(a)よりも大きな領域を使用するようになっている。   In FIG. 6B, from the state of FIG. 6A, first, a newly captured new video data stream is recorded in the areas of cluster numbers 4 and 5, and FAT is stored in the area of cluster number 4. Subsequently, it is set so that the area of cluster number 5 is read. The file name of this new moving image data stream is a file name obtained by incrementing the 4-digit serial number of the file name of “existing moving image file”, “VSN — 000X + 1.DAT” as described above. Further, the moov atom area is larger than that shown in FIG.

次に、制御部101は、記録媒体に記録された既存動画データのストリームと、新規動画データのストリーム、そしてmoovファイルとを結合し、動画ファイルを完成させる処理を行う(S513)。本実施例では、新たに記録された新規動画データのストリームのファイルと、既存動画ファイルの既存動画データとを結合するために、FAT領域のみを書き換える処理を行う。つまり、既存動画ファイルの既存動画データのストリームの次に、新規動画データのストリームを読み込めるように変更するのである。この変更状態を示したのが、図6(c)である。本実施例では、既存動画データストリームの終端であるクラスタ番号2の次に、新規動画データストリームの最初であるクラスタ番号4を読み込むようにFATのクラスタ番号2に対応する場所をファイル終端を示す「FF」から、「4」に変更する。そうすると、「追記動画ファイル」は、FATに従って、3>1>2>4>5の順で読み出すことになる。そして、「追記動画ファイル」には、「既存動画ファイル」と同様に「VSN_000X.MOV」というファイル名を使用する。   Next, the control unit 101 combines the existing moving image data stream recorded on the recording medium, the new moving image data stream, and the moov file, and completes the moving image file (S513). In this embodiment, a process of rewriting only the FAT area is performed in order to combine the newly recorded new moving image data stream file and the existing moving image data of the existing moving image file. That is, a change is made so that the stream of the new moving image data can be read after the stream of the existing moving image data of the existing moving image file. FIG. 6C shows this changed state. In the present embodiment, after the cluster number 2 which is the end of the existing moving image data stream, the location corresponding to the FAT cluster number 2 is indicated at the end of the file so that the cluster number 4 which is the first of the new moving image data stream is read. “FF” is changed to “4”. Then, the “additional video file” is read in the order of 3> 1> 2> 4> 5 according to the FAT. The file name “VSN — 000X.MOV” is used for the “additional video file” in the same manner as the “existing video file”.

このようにすることで、本実施例の撮像装置100は、新規動画データの記録が終わってからFATを書き換えることで、既存動画ファイルに追記された動画(追記動画ファイル)を生成することができる。このような追記動画ファイルを生成することで、複数ファイルの動画データをシームレスに再生できないような撮像装置であっても、既存動画ファイルの動画データと、新規撮影により得られた動画データとをシームレスに再生することができる。   By doing in this way, the imaging apparatus 100 of a present Example can produce | generate the moving image (additional moving image file) added to the existing moving image file by rewriting FAT after recording of new moving image data is completed. . By creating such an additional video file, even an imaging device that cannot seamlessly reproduce multiple files of video data can seamlessly combine the video data of an existing video file and the video data obtained by new shooting. Can be played.

本実施例の撮像装置100は、これらの動画ファイルを生成する際には、最初に設定した「撮影時間設定」の時間情報を、moovアトムやmoovデータとして記録している。すなわち、たとえば、追記動画ファイルのmoovアトムを確認することで、4秒の動画データ画次々に追記された動画ファイルであること等が検出できるようになっている。同様に、2秒、6秒、8秒であることも検出できる。   When generating these moving image files, the imaging apparatus 100 according to the present embodiment records time information of “shooting time setting” that is initially set as a moov atom or moov data. That is, for example, by confirming the moov atom of the additionally recorded moving image file, it can be detected that the moving image file has been additionally recorded every 4 seconds of moving image data images. Similarly, 2 seconds, 6 seconds, and 8 seconds can also be detected.

次に、制御部101は、記録媒体141に記録された追記動画ファイルの動画データを表示部130に表示する(S520)。そのために、制御部101は、記録媒体141に記録された追記動画ファイルを記録媒体141から読み出すように記録再生部140を制御する。制御部101は、読み出した追記動画ファイルのmoovアトム等を読み出す。そして、制御部101は、S511でmoovアトムを結合した時のオフセット値を用いて、最後に撮影された新規動画データの先頭フレームに対応するチャンクを特定し、そのフレームの画像信号を画像処理部111に復号させる。そして、画像処理部111は復号した新規動画データの先頭フレームの画像信号を不図示のメモリに記憶し、制御部101は、メモリから画像信号を読み出すよう表示制御部131を制御し、表示制御部131は、表示部130に画像を表示する(S520)。   Next, the control unit 101 displays the moving image data of the additional recording moving image file recorded on the recording medium 141 on the display unit 130 (S520). For this purpose, the control unit 101 controls the recording / reproducing unit 140 so as to read the additionally-recorded moving image file recorded on the recording medium 141 from the recording medium 141. The control unit 101 reads a moov atom or the like of the read additional movie file. Then, the control unit 101 uses the offset value when the moov atom is combined in S511 to identify the chunk corresponding to the first frame of the new moving image data that was captured last, and the image processing unit determines the image signal of that frame. 111 to decrypt. Then, the image processing unit 111 stores the image signal of the first frame of the decoded new moving image data in a memory (not shown), and the control unit 101 controls the display control unit 131 to read out the image signal from the memory, and the display control unit 131 displays an image on the display unit 130 (S520).

この確認画面を示したのが図7(a)である。この画面においては、ユーザがこの画面を見ながら操作をすることができるように、制御部101は、「再生」、「保存」、「新規」、「削除」の項目を表示部130に表示するように、表示制御部131を制御している。ユーザが、操作部102を操作して、「再生」を選ぶと、S513までの処理で、結合された追記動画ファイルの画像を再生することができる。制御部101は、「再生」が選択されると、図7(b)のような表示を表示部130に表示するように表示制御部131を制御する。この画面においては、表示画面上には、「追記動画ファイル」のうち、最後に撮影された新規動画データストリームに当たる部分の再生が開始される。そのために制御部101は、moovアトムを参照して、順次読み出すべきフレーム画像のチャンクのオフセットを特定し、記録媒体141からそのチャンクを読み出すように記録再生部140を制御する。ここで、画面上に表示された「前スキップ」、「後スキップ」が選択されると、制御部101は、追記動画ファイルのmoovアトムに記録された「撮影時間設定」の時間分、動画データを前または後にスキップさせる。つまり、「撮影時間設定」が4秒であって、追記動画ファイルの動画データが4秒の動画データで構成されている場合には、4秒ずつ動画データをスキップできるようにするのである。また、「撮影時間設定」が2秒であって、追記動画ファイルの動画データが2秒の動画データで構成されている場合には、2秒ずつ動画データをスキップできるようにするのである。たとえば、4秒ずつのシーンを5個つなぎ合わせた「追記動画ファイル」であって、最後に撮影された新規動画データの2秒のシーン(動画全体では18秒時点のシーン)を再生しているときに「前スキップ」が操作されると以下のような動作を行う。すなわち、図7(c)に示すように、制御部101は、再生中の「追記動画ファイル」を4秒分前にスキップさせ、14秒時点のシーンを表示する。図7(c)は、最後に撮影された新規動画データではなく、それよりも1回前に撮影された動画データである。つまり、各シーンの先頭フレームに移動するのではなく、追記動画ファイルの動画データ上で、撮影前に設定された各シーンの秒数単位でスキップを行うことができるのである。制御部101は、このとき、moovアトムを解析し、14秒時点のフレーム画像のチャンクの記録位置を特定し、その位置から動画を再生するように制御する。   This confirmation screen is shown in FIG. In this screen, the control unit 101 displays items of “play”, “save”, “new”, and “delete” on the display unit 130 so that the user can operate while viewing this screen. In this way, the display control unit 131 is controlled. When the user operates the operation unit 102 to select “play”, the combined video image file can be played by the processing up to S513. When “playback” is selected, the control unit 101 controls the display control unit 131 to display a display as shown in FIG. 7B on the display unit 130. In this screen, on the display screen, the playback of the portion of the “additional video file” that corresponds to the newly captured new video data stream is started. For this purpose, the control unit 101 refers to the moov atom, specifies the offset of the chunk of the frame image to be sequentially read, and controls the recording / reproducing unit 140 to read the chunk from the recording medium 141. Here, when “previous skip” and “post skip” displayed on the screen are selected, the control unit 101 stores the video data corresponding to the time of “shooting time setting” recorded in the moov atom of the additional video file. To skip before or after. That is, when the “shooting time setting” is 4 seconds and the moving image data of the additional recording moving image file is composed of moving image data of 4 seconds, the moving image data can be skipped every 4 seconds. Further, when the “shooting time setting” is 2 seconds and the moving image data of the additional recording moving image file is composed of moving image data of 2 seconds, the moving image data can be skipped every 2 seconds. For example, it is an “additional video file” in which 5 scenes of 4 seconds are joined together, and a 2-second scene (the scene at the time of 18 seconds in the entire video) of the newly captured new video data is played back. When “Skip Previous” is operated, the following operations are performed. That is, as shown in FIG. 7C, the control unit 101 skips the “additional video file” being played back by 4 seconds before, and displays the scene at the time of 14 seconds. FIG. 7C is not the latest moving image data photographed last, but the moving image data photographed one time before that. That is, instead of moving to the first frame of each scene, skipping can be performed in units of seconds of each scene set before shooting on the moving image data of the additional recording moving image file. At this time, the control unit 101 analyzes the moov atom, specifies the recording position of the chunk of the frame image at the time of 14 seconds, and performs control so that the moving image is reproduced from that position.

図7(a)に戻り、説明を続ける。制御部101は、「保存」が選択されると(S530で保存)、S513までの処理で記録媒体141に記録された「追記動画ファイル」を記録したままとして、図7の表示を消すように表示制御部131を制御する(S540)。そして、撮像装置100の各部を再び待機状態に戻すように制御する。   Returning to FIG. 7A, the description will be continued. When “save” is selected (save in step S530), the control unit 101 keeps the “additional video file” recorded on the recording medium 141 in the process up to step S513, and erases the display of FIG. The display control unit 131 is controlled (S540). And it controls to return each part of the imaging device 100 to a standby state again.

また、制御部101は、「新規」が選択されると(S530で新規)、S513までの処理で記録媒体141に記録された「追記動画ファイル」を二つに分離する処理を行う(S550)。そのために、まず、制御部101は、メモリ104に展開されているmoovアトムの結合した時のオフセット値を用いて、最後に撮影された新規動画データの先頭フレームに対応するチャンクの記録位置を特定する(S551)。すなわち、図8(a)のような状態で、記録媒体141に記録されている「追記動画ファイル」の新規動画データストリームに対応する位置(クラスタ番号4、5)を特定する。   Further, when “new” is selected (new in S530), the control unit 101 performs a process of separating the “additional video file” recorded on the recording medium 141 in the processes up to S513 into two (S550). . For this purpose, first, the control unit 101 uses the offset value when the moov atom developed in the memory 104 is combined to specify the recording position of the chunk corresponding to the first frame of the newly captured video data. (S551). That is, the position (cluster number 4, 5) corresponding to the new moving image data stream of the “additional moving image file” recorded on the recording medium 141 in the state shown in FIG.

そして、制御部101は、「追記動画ファイル」から、新規動画データストリームに対応するデータ領域を分離するように、記録媒体141のFAT領域を書き換えるように記録再生部140を制御する(S552)。そして、分離した新規動画データストリームのファイル名を「VSN_000X+1.DAT」とする。この様子を図8を用いて説明すると、図8(a)のような状態で、記録媒体141に記録されている「追記動画ファイル」は、クラスタ番号2の次に、新規動画データストリームに対応するクラスタ番号4を読むようにしている。ここで、S552の処理により、図8(b)のように、クラスタ番号2をファイルの終端とするためにFAT領域のクラスタ番号2に対応するテーブルを「4」から「FF」に書き換える。   Then, the control unit 101 controls the recording / reproducing unit 140 to rewrite the FAT area of the recording medium 141 so as to separate the data area corresponding to the new moving image data stream from the “additional moving image file” (S552). The file name of the separated new moving image data stream is assumed to be “VSN — 000X + 1.DAT”. This situation will be described with reference to FIG. 8. In the state shown in FIG. 8A, the “additional video file” recorded on the recording medium 141 corresponds to the new video data stream after the cluster number 2. The cluster number 4 to be read is read. Here, by the processing in S552, as shown in FIG. 8B, the table corresponding to the cluster number 2 in the FAT area is rewritten from “4” to “FF” in order to set the cluster number 2 to the end of the file.

そして、制御部101は、元々記録媒体141に記録されていた既存動画データストリームに対応するmoovアトムを生成し直し、S309、S310のようにサイズ調整しmoovデータとしてから、記録媒体141に記録する。このとき、「追記動画ファイル」のmoovデータを削除してから、作成し直した既存動画データストリームに対応するmoovアトムを含むmoovデータを記録媒体141に記録する(S553)。本実施例では、図8(b)のように、クラスタ番号3のデータ領域に記録する。このmoovデータのファイルは、「VSN_000X.MOV」というファイル名を使用する。このようにすることで、元々記録媒体141に記録されていた「既存動画ファイル」と実質的に同じ動画ファイルを生成する準備を整える。   Then, the control unit 101 regenerates the moov atom corresponding to the existing moving image data stream originally recorded on the recording medium 141, adjusts the size as in S309 and S310, and records the moov data on the recording medium 141. . At this time, after the moov data of the “additional video file” is deleted, the moov data including the moov atom corresponding to the recreated existing video data stream is recorded on the recording medium 141 (S553). In this embodiment, the data is recorded in the data area of cluster number 3 as shown in FIG. The file name “VSN — 000X.MOV” is used as the moov data file. In this way, preparation is made for generating a moving image file that is substantially the same as the “existing moving image file” originally recorded on the recording medium 141.

また、制御部101は、分離した新規動画データに対応するmoovアトムを生成し直し、生成したmoovアトムをS309、S310のようにサイズ調整しmoovデータとしてから、記録媒体141の新規なデータ領域に記録する(S554)。本実施例では、図8(b)のように、クラスタ番号6のデータ領域に記録する。このmoovデータのファイル名は、「VSN_000X+1.MOV」というファイル名とする。このようにすることで、「新規動画ファイル」の動画ファイルを生成する準備を整える。   In addition, the control unit 101 regenerates a moov atom corresponding to the separated new moving image data, adjusts the size of the generated moov atom as in S309 and S310, and creates moov data in a new data area of the recording medium 141. Recording is performed (S554). In this embodiment, the data is recorded in the data area of cluster number 6 as shown in FIG. The file name of the moov data is assumed to be “VSN — 000X + 1.MOV”. In this way, preparations for generating a moving image file of “new moving image file” are made.

このときの記録媒体141の状態を示した図が、図8(b)である。図8(b)では、既存動画データストリームは、データ記録領域のクラスタ番号1、2の領域にまたがって記録されている。そして、FATは、クラスタ番号1>2の順で読み込むようにセットされ、クラスタ番号2の領域でファイルが終端であることを示すようにセットされている。すなわち、クラスタ番号1に対応するFAT領域には「2」が、クラスタ番号2に対応するFAT領域には「FF」がセットされる。また、新規動画データストリームは、データ記録領域のクラスタ番号4、5の領域にまたがって記録されている。そして、FATは、クラスタ番号4>5の順で読み込むようにセットされ、クラスタ番号5の領域でファイルが終端であることを示すようにセットされている。すなわち、クラスタ番号4に対応するFAT領域には「5」が、クラスタ番号5に対応するFAT領域には「FF」がセットされる。また、既存動画データストリームに対応するmoovアトムは、クラスタ番号3のデータ領域に記録されており、新規動画データストリームに対応するmoovアトムは、クラスタ番号6のデータ領域に記録されている。   FIG. 8B shows the state of the recording medium 141 at this time. In FIG. 8B, the existing moving image data stream is recorded across the areas of cluster numbers 1 and 2 in the data recording area. The FAT is set to read in the order of cluster number 1> 2, and is set to indicate that the file is the end in the area of cluster number 2. That is, “2” is set in the FAT area corresponding to cluster number 1 and “FF” is set in the FAT area corresponding to cluster number 2. Further, the new moving image data stream is recorded across the areas of cluster numbers 4 and 5 in the data recording area. The FAT is set to read in the order of cluster number 4> 5, and is set to indicate that the file is the end in the area of cluster number 5. That is, “5” is set in the FAT area corresponding to the cluster number 4, and “FF” is set in the FAT area corresponding to the cluster number 5. The moov atom corresponding to the existing moving image data stream is recorded in the data area of cluster number 3, and the moov atom corresponding to the new moving image data stream is recorded in the data area of cluster number 6.

次に、「既存動画ファイル」と「新規動画データファイル」を完成させる処理を行う(S555)(S556)。そのために、制御部101は、S312、S513のごとく、記録再生部140を制御して、記録媒体141のFAT領域を書き換える。この変更状態を示したのが、図8(c)である。本実施例では、クラスタ番号3の次にクラスタ番号1を読み込むようにFATのクラスタ番号3に対応する場所をファイル終端を示す「FF」から、「1」に変更する。これにより、「既存動画ファイル」は、クラスタ番号3>1>2の順で読み出すことになる。また、クラスタ番号6の次にクラスタ番号4を読み込むようにFATのクラスタ番号6に対応する場所をファイル終端を示す「FF」から、「4」に変更する。これにより、「新規動画ファイル」は、クラスタ番号6>4>5の順で読み出すことになる。   Next, a process of completing the “existing moving image file” and the “new moving image data file” is performed (S555) (S556). For this purpose, the control unit 101 rewrites the FAT area of the recording medium 141 by controlling the recording / reproducing unit 140 as in S312 and S513. FIG. 8C shows this changed state. In this embodiment, the location corresponding to the FAT cluster number 3 is changed from “FF” indicating the end of the file to “1” so that the cluster number 1 is read after the cluster number 3. As a result, the “existing moving image file” is read in the order of cluster number 3> 1> 2. Further, the location corresponding to the FAT cluster number 6 is changed from “FF” indicating the end of the file to “4” so that the cluster number 4 is read after the cluster number 6. As a result, the “new moving image file” is read in the order of cluster number 6> 4> 5.

このように、制御部101は、記録媒体141に記録された動画ファイルのmoovアトムを読み出し、変更および新規作成して、再び記録媒体141に書き込み、FAT領域のデータを書き換えることができる。これにより「追記動画ファイル」(VSN_000X.MOV)から「新規動画ファイル」(VSN_000X+1.MOV)を生成し、元々記録媒体141に記録されていた「既存動画ファイル」(VSN_000X.MOV)と実質的に同じ動画ファイルを生成することができるのである。   As described above, the control unit 101 can read the moov atom of the moving image file recorded on the recording medium 141, change and newly create it, write it again on the recording medium 141, and rewrite the data in the FAT area. As a result, a “new movie file” (VSN_000X + 1.MOV) is generated from the “additional movie file” (VSN_000X.MOV), and is substantially the same as the “existing movie file” (VSN_000X.MOV) originally recorded on the recording medium 141. The same movie file can be generated.

また、制御部101は、「削除」が選択されると(S530で削除)、S513までの処理で記録媒体141に記録された「追記動画ファイル」を二つに分離し、新規動画データを削除(無効)にする処理を行う(S560)。そのために、まず、制御部101は、S551からS553の処理を行う。   In addition, when “delete” is selected (deleted in S530), the control unit 101 separates the “additional video file” recorded in the recording medium 141 in the process up to S513 into two, and deletes the new video data A process of (invalid) is performed (S560). For this purpose, first, the control unit 101 performs the processing from S551 to S553.

次に、制御部101は、新規動画データストリームのファイルを削除する処理を行う(S561)。そのために、制御部101は、分離した新規動画データに対応する動画データストリームを無効とするために、記録媒体141のデータ領域のクラスタ番号4、5に対応するFATに、ファイルが記録されていないことを示す情報をセットする。これにより、新規動画データストリームのファイルがFAT上削除された扱いとなる。   Next, the control unit 101 performs processing for deleting a file of the new moving image data stream (S561). Therefore, in order to invalidate the moving image data stream corresponding to the separated new moving image data, the control unit 101 has no file recorded in the FAT corresponding to the cluster numbers 4 and 5 in the data area of the recording medium 141. Set the information indicating that. As a result, the new moving image data stream file is handled as deleted in the FAT.

このときの記録媒体141の状態を示した図が、図9(b)である。図9(b)では、既存動画データストリームは、データ記録領域のクラスタ番号1、2の領域にまたがって記録されている。そして、FATは、クラスタ番号1の領域の次にクラスタ番号2の領域を読み込むようにセットされ、クラスタ番号2の領域でファイルが終端であることを示すようにセットされている。すなわち、クラスタ番号1に対応するFAT領域には「2」が、クラスタ番号2に対応するFAT領域には「FF」がセットされる。また、新規動画データストリームは、データ記録領域のクラスタ番号4、5の領域にまたがって記録されていたが、無効なものとされている。そのため、FATは、クラスタ番号4、5の領域にデータ画記録されていないことを示すようにセットされる。つまりクラスタ番号4、5に対応するFAT領域には「0」がセットされる。また、既存動画データストリームに対応するmoovアトムは、クラスタ番号3のデータ領域に記録されている。   FIG. 9B shows the state of the recording medium 141 at this time. In FIG. 9B, the existing moving image data stream is recorded across the areas of cluster numbers 1 and 2 in the data recording area. The FAT is set so as to read the area of cluster number 2 next to the area of cluster number 1, and is set to indicate that the file is the end in the area of cluster number 2. That is, “2” is set in the FAT area corresponding to cluster number 1 and “FF” is set in the FAT area corresponding to cluster number 2. In addition, the new moving image data stream is recorded over the areas of cluster numbers 4 and 5 in the data recording area, but is invalid. Therefore, FAT is set to indicate that no data image is recorded in the areas of cluster numbers 4 and 5. That is, “0” is set in the FAT area corresponding to the cluster numbers 4 and 5. The moov atom corresponding to the existing moving image data stream is recorded in the data area of cluster number 3.

次に、「既存動画ファイル」を完成させる処理S555を行う。この状態を示したのが、図8(c)である。本実施例では、クラスタ番号3の次にクラスタ番号1を読み込むようにFATのクラスタ番号3に対応する場所をファイル終端を示す「FF」から、「1」に変更する。これにより、「既存動画ファイル」は、クラスタ番号3>1>2の順で読み出すことになる。   Next, the process S555 for completing the “existing video file” is performed. FIG. 8C shows this state. In this embodiment, the location corresponding to the FAT cluster number 3 is changed from “FF” indicating the end of the file to “1” so that the cluster number 1 is read after the cluster number 3. As a result, the “existing moving image file” is read in the order of cluster number 3> 1> 2.

このように、制御部101は、記録媒体141に記録された動画ファイルのmoovアトムを読み出し、変更して、再び記録媒体141に書き込み、FAT領域のデータを書き換えることができる。これにより「追記動画ファイル」(VSN_000X.MOV)から元々記録媒体141に記録されていた「既存動画ファイル」(VSN_000X.MOV)と実質的に同じ動画ファイルを生成することができるのである。   As described above, the control unit 101 can read the moov atom of the moving image file recorded on the recording medium 141, change it, write it again on the recording medium 141, and rewrite the data in the FAT area. As a result, it is possible to generate substantially the same moving image file as the “existing moving image file” (VSN_000X.MOV) originally recorded on the recording medium 141 from the “additional moving image file” (VSN_000X.MOV).

S550からS556、S560からS555の処理を終えると、制御部101は、S540へ処理を移し、図7の表示を消すように表示制御部131を制御する(S540)。そして、撮像装置100の各部を再び待機状態に戻すように制御する。   When the processes from S550 to S556 and S560 to S555 are completed, the control unit 101 moves the process to S540 and controls the display control unit 131 to turn off the display of FIG. 7 (S540). And it controls to return each part of the imaging device 100 to a standby state again.

以上のように、本実施例の撮像装置によれば、通常の動画撮影モード(第1のモード)においては、1回の動画撮影の開始から終了までに撮影された動画データを1つのファイルとして記録媒体に記録することができる。また、連続動画撮影モード(第2のモード)においては、記録媒体に既に記録されている動画ファイル(既存動画ファイル)に対して、新たに撮影した動画データ(新規動画データ)を追記した動画ファイル(追記動画ファイル)を記録媒体に記録することができる。特に、本実施例の撮像装置は、連続動画撮影モードにおいて、新たに動画撮影をすると、撮影後に動画を表示画面に表示して、ユーザに確認させることができる。このとき、本実施例の撮像装置は、既存動画ファイルの動画データ(既存動画データ)と、新規動画データとをシームレスに再生して表示することができる。そして、ユーザが連続的に再生した動画を確認してから、追記動画ファイルを記録する、新規動画データを別のファイルとして記録する、新規動画データを削除する等の処理を選択することができる。   As described above, according to the imaging apparatus of the present embodiment, in the normal moving image shooting mode (first mode), moving image data shot from the start to the end of one moving image shooting is used as one file. It can be recorded on a recording medium. In the continuous movie shooting mode (second mode), a movie file in which newly recorded movie data (new movie data) is added to a movie file (existing movie file) already recorded on the recording medium. (Additional video file) can be recorded on a recording medium. In particular, in the continuous moving image shooting mode, the image pickup apparatus according to the present embodiment can display a moving image on the display screen after shooting to allow the user to confirm the image. At this time, the imaging apparatus of the present embodiment can seamlessly reproduce and display the moving image data (existing moving image data) of the existing moving image file and the new moving image data. Then, after confirming the video continuously played by the user, it is possible to select a process such as recording the additional video file, recording the new video data as another file, or deleting the new video data.

そして、本実施例の撮像装置によれば、複数ファイルの動画データをシームレスに再生できないような撮像装置であっても、新たに動画撮影をした直後に、既存動画データと新規動画データをシームレスに再生して表示することができる。そして、このときにユーザによって選択された処理に従って、追記動画ファイルを記録したり、新規動画データを別のファイルとして記録したり、新規動画データを削除したりすることができる。従って、本実施例の撮像装置は、コストアップを避けつつ、ユーザに使い勝手を向上させることができる。   According to the imaging apparatus of the present embodiment, even if the imaging apparatus cannot seamlessly reproduce a plurality of files of moving image data, the existing moving image data and the new moving image data are seamlessly added immediately after a new moving image is captured. Can be played and displayed. Then, according to the process selected by the user at this time, it is possible to record the additionally recorded moving image file, record the new moving image data as another file, or delete the new moving image data. Therefore, the imaging apparatus of the present embodiment can improve usability for the user while avoiding an increase in cost.

ここで、連続動画撮影モードで、「既存動画ファイル」に新規動画データを追記する場合、イレギュラーなエラーにより、撮影前に設定した1シーンの時間の撮影が行えなかった場合の処理(「エラー処理」)について説明する。
ここでいう1シーンの時間とは、前述した「撮影時間設定」で設定してある、1シーンの撮影時間であり、前述のように、たとえば2、4、6、8秒などが設定可能である。
Here, when adding new movie data to the “existing movie file” in the continuous movie shooting mode, the processing (“error”) is not possible due to an irregular error. Process ") will be described.
The time of one scene here is the shooting time of one scene set in the above-mentioned “shooting time setting”, and as described above, for example, 2, 4, 6, 8 seconds or the like can be set. is there.

本実施例の撮像装置100は、連続動画撮影モードにおいて、撮影終了時に、新たに撮影した新規動画データを既存動画ファイルに追記した「追記動画ファイル」を再生して表示することができる(図5のS520、図7)。このとき、前述したように、「追記動画ファイル」のmoovアトムに格納された「撮影時間設定」の時間分、動画データを前または後にスキップさせている。つまり、「撮影時間設定」が4秒であって、追記動画ファイルの動画データが4秒の動画データで構成されている場合には、4秒ずつ動画データをスキップできるようしている。   In the continuous moving image shooting mode, the imaging apparatus 100 according to the present embodiment can reproduce and display an “additional moving image file” in which newly captured new moving image data is added to an existing moving image file at the end of shooting (FIG. 5). S520, FIG. 7). At this time, as described above, the moving image data is skipped forward or backward by the amount of “shooting time setting” stored in the moov atom of the “additional moving image file”. That is, when the “shooting time setting” is 4 seconds and the moving image data of the additional recording moving image file is composed of moving image data of 4 seconds, the moving image data can be skipped every 4 seconds.

このようなスキップを行うにもかかわらず、途中に、「撮影時間設定」以外の長さのシーンが含まれていると、各シーンの先頭の画像のみをスキップ操作で確認したくても、ずれてしまうことになる。   If a scene with a length other than “Shooting time setting” is included in the middle despite such skipping, even if you want to check only the first image of each scene with the skip operation, It will end up.

そこで、本実施例の撮像装置100は、一つの「追記動画ファイル」の途中のシーンに、「撮影時間設定」以外の長さのシーンが含まれないような撮影を行うことができるようにしている。ここで、途中のシーンとしたのは、たとえば「追記動画ファイル」の最後のシーンについては、「撮影時間設定」以外の長さのシーンでもよいからである。これは、最後の撮影をした直後であれば、各シーンの先頭の画像のみをスキップ操作で確認するのに支障がないからである。   Therefore, the imaging apparatus 100 according to the present embodiment can perform shooting so that a scene in the middle of one “additional video file” does not include a scene having a length other than “shooting time setting”. Yes. Here, the reason for the intermediate scene is that, for example, the last scene of the “additional video file” may have a length other than “shooting time setting”. This is because there is no problem in confirming only the top image of each scene by the skip operation immediately after the last shooting.

また、ここでいうイレギュラーなエラーとは、たとえば、動画撮影中に、記録媒体141の収納部のふたが開いた場合、撮影停止スイッチが押された場合等がある。ここで説明する「エラー処理」は、図5のS320の撮影処理中に、イレギュラーなエラーにより撮影が停止した場合の処理である。図10は、各エラー処理によって生成される動画の状態をしめすものであって、各ブロックは、1シーンの動画に対応する。なお、斜線のブロックは、イレギュラーなエラーにより、撮影された動画を示すものである。   Further, the irregular error referred to here includes, for example, a case where the cover of the storage portion of the recording medium 141 is opened or a shooting stop switch is pressed during moving image shooting. The “error processing” described here is processing when shooting is stopped due to an irregular error during the shooting processing of S320 in FIG. FIG. 10 shows the state of a moving image generated by each error processing, and each block corresponds to a moving image of one scene. The shaded blocks indicate moving images that have been shot due to irregular errors.

「エラー処理」については、複数の処理が考えられるので、それぞれについて説明するが、どの方式の「エラー処理」を用いても良い。
・「エラー処理A」追記処理を実行する場合
ここでは、図5のS502からS513までの処理と同様に、「既存動画ファイル」に途中で撮影が停止した新規動画データを追記して「追記動画ファイル」を作成する。しかし、図5と異なり、図7(a)のような確認画面を表示しない。したがって、図10(a)に示すように、「既存動画ファイル」に新規動画データを追記して、「追記動画ファイル」(VSN_000X.MOV)を生成する。
Since a plurality of processes can be considered for “error processing”, each will be described, but any type of “error processing” may be used.
In the case where “error processing A” additional recording processing is executed Here, as in the processing from S502 to S513 in FIG. File ". However, unlike FIG. 5, the confirmation screen as shown in FIG. 7A is not displayed. Therefore, as shown in FIG. 10A, new movie data is added to the “existing movie file” to generate an “additional movie file” (VSN — 000X.MOV).

しかし、そのさらに後に撮影するシーンの動画データを追記すると、前述したように、途中に、「撮影時間設定」以外の長さのシーンが含まれてしまうことになり、各シーンの先頭の画像のみをスキップ操作で確認したくても、ずれてしまうことになる。そこで、制御部101は、エラー処理Aにおいては、このような状況を避けるために、次に撮影される動画データについては、(VSN_000X.MOV)に追記せずに、新たな動画ファイルとして記録媒体141に記録するようにする。
・「エラー処理B」分離処理を実行する場合
ここでは、図5のS502からS320までの処理と同様に、新規動画データを記録媒体に記録する処理を行う。しかし、「既存動画ファイル」に途中で撮影が停止した新規動画データを追記せずに、「新規動画ファイル」を作成する。すなわち、制御部101は、撮影がイレギュラーなエラーで停止した場合には、図5のS320につづいてS330の処理を行う。また、この時も図7(a)のような確認画面を表示しない。したがって、図10(b)に示すように「既存動画ファイル」(VSN_000X.MOV)と、「新規動画ファイル」(VSN_000X+1.MOV)とを記録媒体141に記録する。
However, if you add the movie data of the scene to be shot after that, a scene with a length other than the “shooting time setting” will be included in the middle as described above, and only the first image of each scene will be included. Even if you want to confirm by skip operation, it will be shifted. Therefore, in order to avoid such a situation in the error processing A, the control unit 101 does not add the video data to be photographed next to (VSN_000X.MOV) as a new video file as a recording medium. 141 is recorded.
In the case where “error processing B” separation processing is executed Here, processing for recording new moving image data on a recording medium is performed in the same manner as the processing from S502 to S320 in FIG. However, the “new movie file” is created without adding the new movie data whose shooting has been stopped midway to the “existing movie file”. That is, when the photographing stops due to an irregular error, the control unit 101 performs the process of S330 following S320 of FIG. Also at this time, the confirmation screen as shown in FIG. Therefore, as shown in FIG. 10B, the “existing moving image file” (VSN_000X.MOV) and the “new moving image file” (VSN_000X + 1.MOV) are recorded on the recording medium 141.

しかし、そのさらに後に撮影するシーンの動画データを追記すると、前述したように、途中に、「撮影時間設定」以外の長さのシーンが含まれてしまうことになり、各シーンの先頭の画像のみをスキップ操作で確認したくても、ずれてしまうことになる。そこで、制御部101は、エラー処理Bにおいては、このような状況を避けるために、次に撮影される動画データについては、(VSN_000X+1.MOV)に追記せずに、新たな動画ファイルとして記録媒体141に記録するようにする。   However, if you add the movie data of the scene to be shot after that, a scene with a length other than the “shooting time setting” will be included in the middle as described above, and only the first image of each scene will be included. Even if you want to confirm by skip operation, it will be shifted. Therefore, in order to avoid such a situation in the error processing B, the control unit 101 does not add the video data to be captured next to (VSN — 000X + 1.MOV) as a new video file as a recording medium. 141 is recorded.

別の場合には、元の「既存動画ファイル」(VSN_000X.MOV)に、次に撮影される動画データを追記するようにしても良い。
別の場合には、先頭には、「撮影時間設定」以外の長さのシーンが含まれても良い場合には、次に撮影される動画データについては、今回作成した動画ファイル(VSN_000X+1.MOV)に追記するようにしても良い。
・「エラー処理B」削除処理を実行する場合
ここでは、図5のS502からS320までの処理と同様に、新規動画データを記録媒体に記録する処理を行う。しかし、「既存動画ファイル」に途中で撮影が停止した新規動画データを追記せずに、新規動画データは削除してしまう。すなわち、制御部101は、撮影がイレギュラーなエラーで停止した場合には、図5のS320につづいて、S561等と同様の処理を実施し、FAT領域の情報を用いて、新規動画データを記録したクラスタ領域の動画データを削除する処理を実行する。
In another case, the moving image data to be photographed next may be added to the original “existing moving image file” (VSN — 000X.MOV).
In another case, if it is possible to include a scene of a length other than “shooting time setting” at the beginning, the movie data (VSN — 000X + 1.MOV) created this time is used for the movie data to be shot next. ) May be added.
In the case where the “error process B” deletion process is executed Here, the process of recording the new moving image data on the recording medium is performed as in the processes from S502 to S320 of FIG. However, the new moving image data is deleted without adding the new moving image data whose shooting has been stopped halfway to the “existing moving image file”. That is, when the shooting is stopped due to an irregular error, the control unit 101 performs the same processing as S561 etc. following S320 in FIG. 5, and uses the FAT area information to create new moving image data. A process of deleting the recorded moving image data of the cluster area is executed.

また、この時も図7(a)のような確認画面を表示しない。したがって、図10(b)に示すように「既存動画ファイル」(VSN_000X.MOV)が記録媒体141に残り、新規動画データに関するファイルは記録されない。
この場合、そのさらに後に撮影するシーンの動画データは、「既存動画ファイル」(VSN_000X.MOV)に追記しても、途中に、「撮影時間設定」以外の長さのシーンが含まれない。そこで、「既存動画ファイル」(VSN_000X.MOV)に、次に撮影される動画データを追記するようにする。
別の場合には、制御部101は、次に撮影される動画データを、新たな動画ファイル(VSN_000X+1.MOV)として記録媒体141に記録してもよい。
Also at this time, the confirmation screen as shown in FIG. Therefore, as shown in FIG. 10B, the “existing moving image file” (VSN — 000X.MOV) remains on the recording medium 141, and the file relating to the new moving image data is not recorded.
In this case, even if the moving image data of a scene to be captured later is added to the “existing moving image file” (VSN — 000X.MOV), a scene having a length other than “shooting time setting” is not included in the middle. Therefore, the moving image data to be photographed next is added to the “existing moving image file” (VSN_000X.MOV).
In another case, the control unit 101 may record the moving image data to be photographed next on the recording medium 141 as a new moving image file (VSN_000X + 1.MOV).

以上が、「エラー処理」の説明である。   The above is the description of “error processing”.

また、「エラー処理」により、次に撮影される動画データを新たな動画ファイルとして記録する場合には、図5のS501の処理において、動画データのmoovアトム等のヘッダに、追記不可能と判定されるフラグを記録しておけばよい。   Further, when the moving image data to be photographed next is recorded as a new moving image file by “error processing”, it is determined in the processing of S501 of FIG. It is sufficient to record the flag to be used.

以上説明したように、連続動画撮影モードで、所定時間のシーンの撮影を繰り返して撮影し、追記していく場合、イレギュラーなエラーにより、撮影前に設定した1シーンの時間の撮影が行えなかった場合には、エラー処理を行う。このエラー処理により、所定時間に満たないシーンが、複数のシーンで構成されている「追記動画ファイル」の途中に含まれないようにすることができる。すなわち、「追記動画ファイル」に所定時間に満たないシーンを含めないようにすることができる。または、「追記動画ファイル」に所定時間に満たないシーンが含まれていても、先頭シーンまたは最終シーンとすることができる。   As described above, in the continuous video shooting mode, when a scene is repeatedly shot for a predetermined time and then appended, it is not possible to shoot for one scene time set before shooting due to an irregular error. If it does, error processing is performed. By this error processing, it is possible to prevent a scene that is less than the predetermined time from being included in the “additional video file” composed of a plurality of scenes. That is, it is possible not to include a scene that is less than the predetermined time in the “additional video file”. Alternatively, even if the “additional video file” includes a scene that is less than the predetermined time, it can be the first scene or the last scene.

このようなエラー処理によれば、所定時間のシーンの複数シーンからなる「追記動画ファイル」を前記所定時間ごとにスキップサーチするときに、ユーザが違和感少なくスキップ動作を行うことができる。   According to such error processing, the user can perform a skip operation with a little uncomfortable feeling when performing a skip search for the “additional video file” composed of a plurality of scenes of a predetermined time.

本実施例では、撮像装置について説明した。撮像装置としては、一般的なコンパクトデジタルカメラ、デジタル一眼カメラ、ビデオカメラ、携帯電話が含まれる。また、本発明の技術を適用可能な装置は、撮像装置に限らず、たとえば、カメラを接続したパーソナルコンピュータであっても良い。   In this embodiment, the imaging apparatus has been described. Examples of the imaging device include a general compact digital camera, a digital single-lens camera, a video camera, and a mobile phone. An apparatus to which the technology of the present invention can be applied is not limited to an imaging apparatus, and may be, for example, a personal computer connected with a camera.

(他の実施形態)
上述の実施形態は、システム或は装置のコンピュータ(或いはCPU、MPU等)によりソフトウェア的に実現することも可能である。従って、上述の実施形態をコンピュータで実現するために、該コンピュータに供給されるコンピュータプログラム自体も本発明を実現するものである。つまり、上述の実施形態の機能を実現するためのコンピュータプログラム自体も本発明の一つである。
(Other embodiments)
The above-described embodiment can also be realized in software by a computer of a system or apparatus (or CPU, MPU, etc.). Therefore, the computer program itself supplied to the computer in order to implement the above-described embodiment by the computer also realizes the present invention. That is, the computer program itself for realizing the functions of the above-described embodiments is also one aspect of the present invention.

なお、上述の実施形態を実現するためのコンピュータプログラムは、コンピュータで読み取り可能であれば、どのような形態であってもよい。例えば、オブジェクトコード、インタプリタにより実行されるプログラム、OSに供給するスクリプトデータ等で構成することができるが、これらに限るものではない。上述の実施形態を実現するためのコンピュータプログラムは、記憶媒体又は有線/無線通信によりコンピュータに供給される。プログラムを供給するための記憶媒体としては、例えば、フレキシブルディスク、ハードディスク、磁気テープ等の磁気記憶媒体、MO、CD、DVD等の光/光磁気記憶媒体、不揮発性の半導体メモリなどがある。   The computer program for realizing the above-described embodiment may be in any form as long as it can be read by a computer. For example, it can be composed of object code, a program executed by an interpreter, script data supplied to the OS, but is not limited thereto. A computer program for realizing the above-described embodiment is supplied to a computer via a storage medium or wired / wireless communication. Examples of the storage medium for supplying the program include a magnetic storage medium such as a flexible disk, a hard disk, and a magnetic tape, an optical / magneto-optical storage medium such as an MO, CD, and DVD, and a nonvolatile semiconductor memory.

有線/無線通信を用いたコンピュータプログラムの供給方法としては、コンピュータネットワーク上のサーバを利用する方法がある。この場合、本発明を形成するコンピュータプログラムとなりうるデータファイル(プログラムファイル)をサーバに記憶しておく。プログラムファイルとしては、実行形式のものであっても、ソースコードであっても良い。そして、このサーバにアクセスしたクライアントコンピュータに、プログラムファイルをダウンロードすることによって供給する。この場合、プログラムファイルを複数のセグメントファイルに分割し、セグメントファイルを異なるサーバに分散して配置することも可能である。つまり、上述の実施形態を実現するためのプログラムファイルをクライアントコンピュータに提供するサーバ装置も本発明の一つである。   As a computer program supply method using wired / wireless communication, there is a method of using a server on a computer network. In this case, a data file (program file) that can be a computer program forming the present invention is stored in the server. The program file may be an executable format or a source code. Then, the program file is supplied by downloading to a client computer that has accessed the server. In this case, the program file can be divided into a plurality of segment files, and the segment files can be distributed and arranged on different servers. That is, a server apparatus that provides a client computer with a program file for realizing the above-described embodiment is also one aspect of the present invention.

また、上述の実施形態を実現するためのコンピュータプログラムを暗号化して格納した記憶媒体を配布し、所定の条件を満たしたユーザに、暗号化を解く鍵情報を供給し、ユーザの有するコンピュータへのインストールを許可してもよい。鍵情報は、例えばインターネットを介してホームページからダウンロードさせることによって供給することができる。また、上述の実施形態を実現するためのコンピュータプログラムは、すでにコンピュータ上で稼働するOSの機能を利用するものであってもよい。さらに、上述の実施形態を実現するためのコンピュータプログラムは、その一部をコンピュータに装着される拡張ボード等のファームウェアで構成してもよいし、拡張ボード等が備えるCPUで実行するようにしてもよい。   In addition, a storage medium in which the computer program for realizing the above-described embodiment is encrypted and distributed is distributed, and key information for decrypting is supplied to a user who satisfies a predetermined condition, and the user's computer Installation may be allowed. The key information can be supplied by being downloaded from a homepage via the Internet, for example. Further, the computer program for realizing the above-described embodiment may use an OS function already running on the computer. Further, a part of the computer program for realizing the above-described embodiment may be configured by firmware such as an expansion board attached to the computer, or may be executed by a CPU provided in the expansion board. Good.

Claims (12)

動画データを取得する取得手段と、
前記取得手段により取得された動画データを動画ファイルとして記録媒体に記録する記録手段と、
前記記録媒体に記録された動画ファイルの動画データを表示装置に表示する表示制御手段と、
前記記録媒体に記録された動画ファイルに、前記取得手段により取得された動画データを追記する編集を行う編集手段と、
前記取得手段、前記記録手段、前記表示制御手段、前記編集手段を制御する制御手段と、を有し、
前記記録媒体に記録された特定の動画ファイルに、前記取得手段により取得された動画データを追記するモードにおいて、
前記制御手段は、入力された動画撮影の指示に応じて、
動画データを新規動画データとして取得するように前記取得手段を制御し、
前記記録媒体に記録された動画ファイルに前記新規動画データを追記した追記動画ファイルを生成するよう前記編集手段を制御し、
前記編集手段により生成された前記追記動画ファイルを前記記録媒体に記録するよう前記記録手段を制御し、
前記記録手段により記録された前記追記動画ファイルの動画データを前記表示装置に表示するよう前記表示制御手段を制御することを特徴とする動画記録装置。
An acquisition means for acquiring video data;
Recording means for recording the moving image data acquired by the acquiring means as a moving image file on a recording medium;
Display control means for displaying moving image data of a moving image file recorded on the recording medium on a display device;
Editing means for performing editing to add the moving picture data acquired by the acquiring means to the moving picture file recorded on the recording medium;
The acquisition means, the recording means, the display control means, and a control means for controlling the editing means,
In the mode of adding the moving image data acquired by the acquisition unit to the specific moving image file recorded on the recording medium,
In response to the input video shooting instruction, the control means
Controlling the acquisition means to acquire video data as new video data;
Controlling the editing means to generate an additional video file in which the new video data is added to the video file recorded on the recording medium;
Controlling the recording means to record the additional video file generated by the editing means on the recording medium;
The moving image recording apparatus, wherein the display control means is controlled to display the moving image data of the additional recording moving image file recorded by the recording means on the display device.
前記制御手段は、前記記録手段により記録された前記追記動画ファイルの動画データを前記表示装置に表示しているときに、
前記追記動画ファイルから前記新規動画データに対応する動画データを分離する指示に応じて、前記追記動画ファイルから前記新規動画データに対応する動画データを分離するよう前記編集手段を制御することを特徴とする請求項1記載の動画記録装置。
When the control means is displaying the video data of the additional video file recorded by the recording means on the display device,
The editing means is controlled to separate the moving image data corresponding to the new moving image data from the additional moving image file in response to an instruction to separate moving image data corresponding to the new moving image data from the additional moving image file. The moving image recording apparatus according to claim 1.
前記制御手段は、
前記追記動画ファイルから前記新規動画データに対応する動画データを分離する指示に応じて、
前記追記動画ファイルから前記新規動画データに対応する動画データを分離し、前記新規動画データに対応する新規動画ファイルを作成するよう前記編集手段を制御し、
前記編集手段により生成された前記新規動画ファイルを前記記録媒体に記録するよう前記記録手段を制御することを特徴とする請求項2記載の動画記録装置。
The control means includes
In response to an instruction to separate video data corresponding to the new video data from the additional video file,
Separating the video data corresponding to the new video data from the additional video file and controlling the editing means to create a new video file corresponding to the new video data;
3. The moving image recording apparatus according to claim 2, wherein the recording unit is controlled to record the new moving image file generated by the editing unit on the recording medium.
前記制御手段は、
前記追記動画ファイルから前記新規動画データに対応する動画データを分離する指示に応じて、
前記追記動画ファイルから前記新規動画データに対応する動画データを分離し、前記新規動画データを削除するよう前記編集手段を制御することを特徴とする請求項2記載の動画記録装置。
The control means includes
In response to an instruction to separate video data corresponding to the new video data from the additional video file,
3. The moving image recording apparatus according to claim 2, wherein the editing unit is controlled to separate moving image data corresponding to the new moving image data from the additional moving image file and to delete the new moving image data.
前記制御手段は、
前記記録手段により記録された前記追記動画ファイルの動画データを前記表示装置に表示するとともに、前記追記動画ファイルから前記新規動画データに対応する動画データを分離するか否かを選択させるための画面を前記表示装置に表示することを特徴とする請求項1から4のいずれか1項記載の動画記録装置。
The control means includes
A screen for displaying the video data of the additional video file recorded by the recording means on the display device and for selecting whether to separate the video data corresponding to the new video data from the additional video file. The moving image recording apparatus according to claim 1, wherein the moving image recording apparatus displays on the display device.
前記取得手段は、入力された動画データからあらかじめ決められた時間の動画データを取得することを特徴とする請求項1から5のいずれか1項記載の動画記録装置。   The moving image recording apparatus according to claim 1, wherein the acquisition unit acquires moving image data for a predetermined time from the input moving image data. 前記制御手段は、前記記録手段により記録された前記追記動画ファイルの動画データを前記表示装置に表示しているときに、
動画データのスキップの指示があると、前記あらかじめ決められた時間ごとに追記動画ファイルの動画データをスキップさせることを特徴とする請求項6記載の動画記録装置。
When the control means is displaying the video data of the additional video file recorded by the recording means on the display device,
7. The moving image recording apparatus according to claim 6, wherein when there is an instruction to skip moving image data, the moving image data of the additional moving image file is skipped at each predetermined time.
前記制御手段は、特定の条件においては、前記記録媒体に記録された動画ファイルに前記新規動画データを追記しないよう前記編集手段を制御し、
前記特定の条件は、
・追記対象の既存動画ファイルが無い場合
・前記記録媒体の挿抜履歴がある場合
・追記対象の既存動画ファイルがプロテクトされている場合
・追記撮影により生成される追記動画ファイルのファイルサイズが所定のサイズを超える場合
・追記撮影により生成される追記動画ファイルの再生時間が所定時間を超える場合
・動画記録設定が追記対象の既存動画ファイルと同一でない場合
・音声記録設定が追記対象の既存動画ファイルと同一でない場合
のいずれかの条件であることを特徴とする請求項1から7のいずれか1項記載の動画記録装置。
The control means controls the editing means not to add the new moving image data to the moving image file recorded on the recording medium under a specific condition,
The specific condition is:
・ When there is no existing movie file to be added ・ When there is an insertion / extraction history of the recording medium ・ When the existing movie file to be added is protected ・ The file size of the added movie file generated by append shooting is a predetermined size・ When the playback time of the additional video file generated by additional recording is over the specified time ・ When the video recording setting is not the same as the existing video file to be added ・ The audio recording setting is the same as the existing video file to be added The moving picture recording apparatus according to claim 1, wherein any of the conditions is not satisfied.
前記既存動画ファイルが所定の時間長の動画データからなり、
前記制御手段は、特定の条件においては、前記記録媒体に記録された動画ファイルに前記新規動画データを追記しないよう前記編集手段を制御し、
前記特定の条件は、
・前記入力された動画撮影の指示に対応して取得される動画データの前記あらかじめ決められた時間が、前記既存動画ファイルに含まれる複数の動画データ各々の時間長と異なる場合
であることを特徴とする請求項7記載の動画記録装置。
The existing video file consists of video data of a predetermined time length,
The control means controls the editing means not to add the new moving image data to the moving image file recorded on the recording medium under a specific condition,
The specific condition is:
The predetermined time of the moving image data acquired in response to the input moving image shooting instruction is different from the time length of each of the plurality of moving image data included in the existing moving image file. The moving picture recording apparatus according to claim 7.
入力された動画データを取得する取得手段と、前記取得手段により取得された動画データを動画ファイルとして記録媒体に記録する記録手段と、前記記録媒体に記録された動画ファイルの動画データを表示装置に表示する表示制御手段と、前記記録媒体に記録された動画ファイルに、前記取得手段により取得された動画データを追記する編集を行う編集手段とを有する動画記録装置の制御方法であって、
入力された動画撮影の指示に応じて、
動画データを新規動画データとして取得するように前記取得手段を制御し、
前記記録媒体に記録された動画ファイルに前記新規動画データを追記した追記動画ファイルを生成するよう前記編集手段を制御し、
前記編集手段により生成された前記追記動画ファイルを前記記録媒体に記録するよう前記記録手段を制御し、
前記記録手段により記録された前記追記動画ファイルの動画データを前記表示装置に表示するよう前記表示制御手段を制御することを特徴とする制御方法。
Acquisition means for acquiring input moving image data, recording means for recording the moving image data acquired by the acquisition means as a moving image file on a recording medium, and moving image data of the moving image file recorded on the recording medium on a display device A control method for a moving picture recording apparatus, comprising: a display control means for displaying; and an editing means for performing editing to add the moving picture data acquired by the acquiring means to a moving picture file recorded on the recording medium,
In response to the input video shooting instruction,
Controlling the acquisition means to acquire video data as new video data;
Controlling the editing means to generate an additional video file in which the new video data is added to the video file recorded on the recording medium;
Controlling the recording means to record the additional video file generated by the editing means on the recording medium;
A control method comprising: controlling the display control means to display the moving image data of the additional video file recorded by the recording means on the display device.
前記記録手段により記録された前記追記動画ファイルの動画データを前記表示装置に表示しているときに、
前記追記動画ファイルから前記新規動画データに対応する動画データを分離する指示に応じて、前記追記動画ファイルから前記新規動画データに対応する動画データを分離するよう前記編集手段を制御することを特徴とする請求項10記載の制御方法。
When displaying the moving image data of the additional recording moving image file recorded by the recording means on the display device,
The editing means is controlled to separate the moving image data corresponding to the new moving image data from the additional moving image file in response to an instruction to separate moving image data corresponding to the new moving image data from the additional moving image file. The control method according to claim 10.
コンピュータを、
動画データを取得する取得手段と、
前記取得手段により取得された動画データを動画ファイルとして記録媒体に記録する記録手段と、
前記記録媒体に記録された動画ファイルの動画データを表示装置に表示する表示制御手段と、
前記記録媒体に記録された動画ファイルに、前記取得手段により取得された動画データを追記する編集を行う編集手段と、
前記取得手段、前記記録手段、前記表示制御手段、前記編集手段を制御する制御手段として機能させるためのプログラムであって、
前記記録媒体に記録された特定の動画ファイルに、前記取得手段により取得された動画データを追記するモードにおいて、
前記制御手段は、入力された動画撮影の指示に応じて、
動画データを新規動画データとして取得するように前記取得手段を制御し、
前記記録媒体に記録された動画ファイルに前記新規動画データを追記した追記動画ファイルを生成するよう前記編集手段を制御し、
前記編集手段により生成された前記追記動画ファイルを前記記録媒体に記録するよう前記記録手段を制御し、
前記記録手段により記録された前記追記動画ファイルの動画データを前記表示装置に表示するよう前記表示制御手段を制御するプログラム。
Computer
An acquisition means for acquiring video data;
Recording means for recording the moving image data acquired by the acquiring means as a moving image file on a recording medium;
Display control means for displaying moving image data of a moving image file recorded on the recording medium on a display device;
Editing means for performing editing to add the moving picture data acquired by the acquiring means to the moving picture file recorded on the recording medium;
A program for causing the acquisition unit, the recording unit, the display control unit, and the control unit to control the editing unit,
In the mode of adding the moving image data acquired by the acquisition unit to the specific moving image file recorded on the recording medium,
In response to the input video shooting instruction, the control means
Controlling the acquisition means to acquire video data as new video data;
Controlling the editing means to generate an additional video file in which the new video data is added to the video file recorded on the recording medium;
Controlling the recording means to record the additional video file generated by the editing means on the recording medium;
A program for controlling the display control means to display the moving image data of the additional recording moving image file recorded by the recording means on the display device.
JP2011011204A 2011-01-21 2011-01-21 Video recording device Pending JP2012156587A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011011204A JP2012156587A (en) 2011-01-21 2011-01-21 Video recording device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011011204A JP2012156587A (en) 2011-01-21 2011-01-21 Video recording device

Publications (2)

Publication Number Publication Date
JP2012156587A true JP2012156587A (en) 2012-08-16
JP2012156587A5 JP2012156587A5 (en) 2014-03-06

Family

ID=46837914

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011011204A Pending JP2012156587A (en) 2011-01-21 2011-01-21 Video recording device

Country Status (1)

Country Link
JP (1) JP2012156587A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014060498A (en) * 2012-09-14 2014-04-03 Canon Inc Image processing device, image processing method, and program
JP2014075730A (en) * 2012-10-05 2014-04-24 Canon Inc Image processor, image processing method, and program
JP2014192755A (en) * 2013-03-27 2014-10-06 Olympus Corp Image recording device, method for controlling image recording processing and program therefor
US10498950B2 (en) 2017-12-26 2019-12-03 Canon Kabushiki Kaisha Recording control apparatus and control method of recording control apparatus
US11539879B2 (en) 2019-07-30 2022-12-27 Canon Kabushiki Kaisha Image capture control apparatus and image capture control method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11297050A (en) * 1998-04-14 1999-10-29 Nikon Corp Apparatus and method for processing information, and recording medium
JP2006186411A (en) * 2004-12-24 2006-07-13 Canon Inc Multimedia data processing apparatus and method thereof
JP2010136191A (en) * 2008-12-05 2010-06-17 Canon Inc Imaging apparatus, recording device, and recording method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11297050A (en) * 1998-04-14 1999-10-29 Nikon Corp Apparatus and method for processing information, and recording medium
JP2006186411A (en) * 2004-12-24 2006-07-13 Canon Inc Multimedia data processing apparatus and method thereof
JP2010136191A (en) * 2008-12-05 2010-06-17 Canon Inc Imaging apparatus, recording device, and recording method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014060498A (en) * 2012-09-14 2014-04-03 Canon Inc Image processing device, image processing method, and program
JP2014075730A (en) * 2012-10-05 2014-04-24 Canon Inc Image processor, image processing method, and program
JP2014192755A (en) * 2013-03-27 2014-10-06 Olympus Corp Image recording device, method for controlling image recording processing and program therefor
US10498950B2 (en) 2017-12-26 2019-12-03 Canon Kabushiki Kaisha Recording control apparatus and control method of recording control apparatus
US11539879B2 (en) 2019-07-30 2022-12-27 Canon Kabushiki Kaisha Image capture control apparatus and image capture control method

Similar Documents

Publication Publication Date Title
JP5783737B2 (en) Image pickup apparatus and moving image recording apparatus control method
JP2012156587A (en) Video recording device
US9350935B2 (en) Moving image data recording apparatus
US9565360B2 (en) Image data recording apparatus capable of recording still and moving images simultaneously
JP5082973B2 (en) Video recording system and imaging apparatus
JP5713701B2 (en) Movie recording device
JP5818599B2 (en) Movie recording device
JP2010147798A (en) Image processing apparatus and image processing method
JP5769434B2 (en) Movie recording device, information processing device
JP5773855B2 (en) Image processing device
JP2011147119A (en) Image processing apparatus and image processing program
JP5889459B2 (en) Recording device
JP6278353B2 (en) RECORDING DEVICE, RECORDING METHOD, PROGRAM, AND IMAGING DEVICE
JP6071358B2 (en) Image processing apparatus, image processing method, and program
JP6071357B2 (en) Image processing apparatus, image processing method, and program
JP6049369B2 (en) Image processing apparatus and image processing apparatus control method
JP6566826B2 (en) Image processing apparatus, control method thereof, and control program
JP6218489B2 (en) Image processing device
JP6071399B2 (en) Image processing apparatus and image processing apparatus control method
JP2017011630A (en) Image processor and imaging system
JP2015035752A (en) Image processing device

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140121

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140121

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140930

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20141014

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20141215

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20150217