JP2014060497A - Image processing device, image processing method, and program - Google Patents

Image processing device, image processing method, and program Download PDF

Info

Publication number
JP2014060497A
JP2014060497A JP2012203009A JP2012203009A JP2014060497A JP 2014060497 A JP2014060497 A JP 2014060497A JP 2012203009 A JP2012203009 A JP 2012203009A JP 2012203009 A JP2012203009 A JP 2012203009A JP 2014060497 A JP2014060497 A JP 2014060497A
Authority
JP
Japan
Prior art keywords
moving image
chapter
file
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.)
Granted
Application number
JP2012203009A
Other languages
Japanese (ja)
Other versions
JP6071357B2 (en
JP2014060497A5 (en
Inventor
Taira Ikeda
平 池田
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 JP2012203009A priority Critical patent/JP6071357B2/en
Publication of JP2014060497A publication Critical patent/JP2014060497A/en
Publication of JP2014060497A5 publication Critical patent/JP2014060497A5/ja
Application granted granted Critical
Publication of JP6071357B2 publication Critical patent/JP6071357B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Television Signal Processing For Recording (AREA)
  • Studio Devices (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an image processing device that, for example, when video data of a video file is partially deleted, is capable of reducing the possibility that a large part of the video data is erroneously deleted.SOLUTION: When a specified section is equal to or greater than a predetermined proportion with respect to video data of a video file, deletion means is controlled not to delete video data in the specified section, and when the specified section is smaller than the predetermined proportion with respect to the video data of the video file, the deletion means is controlled to delete video data in the specified section.

Description

本発明は、画像処理装置、画像処理方法、プログラムに関する。   The present invention relates to an image processing apparatus, an image processing method, and a program.

従来、画像処理装置として、動画の記録や再生、編集が可能な編集装置が知られている。これらの編集装置には、たとえば特許文献1のように、動画の任意のシーンを削除する編集を行うことができるものが知られている。   Conventionally, as an image processing apparatus, an editing apparatus capable of recording, reproducing, and editing a moving image is known. As these editing apparatuses, for example, as disclosed in Patent Document 1, an apparatus capable of performing editing to delete an arbitrary scene of a moving image is known.

特開2000−165802号公報JP 2000-165802 A

しかし、特許文献1に開示された編集装置においては、動画の不要区間を削除する編集を行う際、誤って動画の大部分が削除されてしまうおそれがあった。   However, in the editing apparatus disclosed in Patent Literature 1, when editing is performed to delete an unnecessary section of a moving image, most of the moving image may be deleted by mistake.

そこで、本発明は、例えば動画ファイルの動画データを部分的に消去する場合に、誤って動画データの大部分が消去されてしまう可能性を低減することができる画像処理装置を提供することを目的とする。   Accordingly, an object of the present invention is to provide an image processing apparatus capable of reducing the possibility that most of moving image data is mistakenly deleted when, for example, moving image data of a moving image file is partially deleted. And

このような目的を達成するために、本発明の画像処理装置は、記録媒体に記録された動画ファイルを再生する再生手段と、前記動画ファイルの指定された区間の動画データを消去する消去手段と、前記指定された区間が前記動画ファイルの動画データに対して所定の割合以上である場合に、前記指定された区間の動画データの消去をしないように前記消去手段を制御し、前記指定された区間が前記動画ファイルの動画データに対して所定の割合より小さい場合に、前記指定された区間の動画データの消去をするように前記消去手段を制御する制御手段とを有することを特徴とする。   In order to achieve such an object, the image processing apparatus of the present invention includes a reproducing unit that reproduces a moving image file recorded on a recording medium, and an erasing unit that erases moving image data in a specified section of the moving image file. When the specified section is equal to or greater than a predetermined ratio with respect to the moving image data of the moving image file, the erasing unit is controlled so as not to delete the moving image data of the specified section. And control means for controlling the erasing means so as to erase the moving image data in the designated section when the section is smaller than a predetermined ratio with respect to the moving image data of the moving image file.

本発明によれば、例えば動画ファイルの動画データを部分的に消去する場合に、誤って動画データの大部分が消去されてしまう可能性を低減することができる。   According to the present invention, for example, when moving image data of a moving image file is partially deleted, the possibility that most of moving image data is accidentally deleted can be reduced.

本実施例の撮像装置の構成を示す図である。It is a figure which shows the structure of the imaging device of a present Example. ダイジェストムービーモードの撮像装置の制御を示すフロー図である。It is a flowchart which shows control of the imaging device of digest movie mode. ダイジェストムービーモードで記録される静止画ファイル、動画ファイルの状態を説明するための図である。It is a figure for demonstrating the state of the still image file recorded by digest movie mode, and a moving image file. 本実施例のチャプタ情報の例を示す図である。It is a figure which shows the example of the chapter information of a present Example. 本実施例の動画ファイル選択時の動作フローを示す図である。It is a figure which shows the operation | movement flow at the time of the moving image file selection of a present Example. 本実施例の動画ファイル選択時の動作フローを示す図である。It is a figure which shows the operation | movement flow at the time of the moving image file selection of a present Example. 本実施例の動画ファイルのフォーマットを示す図である。It is a figure which shows the format of the moving image file of a present Example.

以下、図面を参照して本発明の実施例を詳細に説明するが、この発明は以下の実施の形態に限定されない。なお、以下の実施の形態は特許請求の範囲に係る発明を限定するものでなく、また実施の形態で説明されている特徴の組み合わせの全てが発明の解決手段に必須のものとは限らない。   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. The following embodiments do not limit the invention according to the claims, and all combinations of features described in the embodiments are not necessarily essential to the solution means of the invention.

なお、本実施例において説明される各機能ブロックは必ずしも個別のハードウェアである必要はない。すなわち、例えばいくつかの機能ブロックの機能は、1つのハードウェアにより実行されても良い。また、いくつかのハードウェアの連係動作により1つの機能ブロックの機能または、複数の機能ブロックの機能が実行されても良い。   Note that each functional block described in the present embodiment is not necessarily separate hardware. That is, for example, the functions of some functional blocks may be executed by one piece of hardware. In addition, the function of one functional block or the functions of a plurality of functional blocks may be executed by some hardware linked operations.

本実施例では、画像処理装置として撮像装置を例にとって説明する。   In this embodiment, an image pickup apparatus will be described as an example of the image processing apparatus.

本実施例の撮像装置100は、記録媒体に記録されている動画ファイルの指定された区間の動画データを削除する編集機能を有する。なお、本実施例において、動画ファイルは複数のチャプタに対応する動画データを含み、撮像装置100は、指定されたチャプタに対応する区間の動画データを削除することができる。本実施例において、動画データは、動画の各フレームを構成する複数の画像データを少なくとも含み、所定数の画像データに対応する音声データや、各チャプタのタイトルなどを示すテキストデータをさらに含んでも良い。   The imaging apparatus 100 according to the present embodiment has an editing function for deleting moving image data in a specified section of a moving image file recorded on a recording medium. In the present embodiment, the moving image file includes moving image data corresponding to a plurality of chapters, and the imaging apparatus 100 can delete the moving image data of the section corresponding to the designated chapter. In the present embodiment, the moving image data includes at least a plurality of pieces of image data constituting each frame of the moving image, and may further include audio data corresponding to a predetermined number of image data, text data indicating the title of each chapter, and the like. .

そして、本実施例の撮像装置100の編集機能では、指定されたチャプタに対応する画像データを消去する指示が入力された場合、動画ファイルの総チャプタ数が1つより多ければ、指定されたチャプタに対応する画像データを消去する。一方、指定されたチャプタに対応する画像データを消去する指示が入力された場合、動画ファイルの総チャプタ数が1つ以下であれば、指定されたチャプタに対応する画像データの消去をしないようにする。   In the editing function of the imaging apparatus 100 according to the present embodiment, when an instruction to delete image data corresponding to a specified chapter is input, if the total number of chapters in the moving image file is greater than one, the specified chapter is specified. Delete the image data corresponding to. On the other hand, when an instruction to erase the image data corresponding to the designated chapter is input, if the total number of chapters in the moving image file is one or less, the image data corresponding to the designated chapter is not erased. To do.

また、チャプタごとの消去を行わずに、ユーザにより指定された区間の動画データを消去する場合には、指定された区間の動画データの動画ファイル全体の動画データに対する割合が所定の閾値以上である場合に、動画データの消去をしないようにする。一方、ユーザにより指定された区間の動画データを消去する場合には、指定された区間の動画データの動画ファイル全体の動画データに対する割合が所定の閾値より小さい場合に、動画データの消去をする。   In addition, when deleting the moving image data of the section specified by the user without deleting each chapter, the ratio of the moving image data of the specified section to the moving image data of the entire moving image file is equal to or greater than a predetermined threshold value. In this case, do not delete the video data. On the other hand, when deleting the moving image data of the section specified by the user, the moving image data is deleted when the ratio of the moving image data of the specified section to the moving image data of the entire moving image file is smaller than a predetermined threshold.

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

まず、図1を用いて本実施例の撮像装置100の全体構成を説明する。   First, the overall configuration of the imaging apparatus 100 of the present embodiment will be described with reference to FIG.

本実施例の撮像装置100は、図1に示すように、CPU101と、RAM102と、ROM103と、操作部104とを有する。また、撮像装置100は、撮像部110と、画像処理部111と、マイクユニット120と、音声処理部121と、スピーカユニット122とを有する。また、撮像装置100は、符号化復号化処理部130と、表示部140と、表示制御部141と、記録再生部150と、記録媒体151と、通信部160とを有する。   As illustrated in FIG. 1, the imaging apparatus 100 according to the present exemplary embodiment includes a CPU 101, a RAM 102, a ROM 103, and an operation unit 104. The imaging apparatus 100 includes an imaging unit 110, an image processing unit 111, a microphone unit 120, an audio processing unit 121, and a speaker unit 122. In addition, the imaging apparatus 100 includes an encoding / decoding processing unit 130, a display unit 140, a display control unit 141, a recording / playback unit 150, a recording medium 151, and a communication unit 160.

なお、CPUは、Central Processing Unitの略称である。RAMは、Random Access Memoryの略称である。   CPU is an abbreviation for Central Processing Unit. RAM is an abbreviation for Random Access Memory.

本実施例の撮像装置100において、CPU101は、RAM102をワークメモリとしてROM103に記録された各種プログラムをRAM102に展開し、プログラムに応じて撮像装置100の各ブロックを制御する。操作部104は、例えば、電源ボタン、記録ボタン、ズーム調整ボタン、オートフォーカスボタン、メニュー表示ボタン、モード切替スイッチ、決定ボタン等の各種操作を入力するスイッチ類を有する。また、カーソルキー、ポインティングデバイス、タッチパネル、ダイヤル等のどのようなタイプの操作子であってもよい。タッチパネルは、抵抗膜方式や静電容量方式、表面弾性波方式、赤外線方式、電磁誘導方式、画像認識方式、光センサ方式等、様々な方式のタッチパネルのうちいずれの方式のものを用いても良い。操作部104は、ユーザによりこれらのキーやボタン、タッチパネルが操作されるとCPU101に操作信号を送信され、CPU101は、実行中のプログラムに応じて操作信号に対応した制御を行う。たとえば、表示部140に表示されたアイコンの選択、選択されたアイコンに対応した制御の開始などがある。アイコンとしては、例えば終了ボタン、戻るボタン、再生、一時停止、停止、早送り、巻き戻し、スロー再生、消去等がある。   In the imaging apparatus 100 according to the present exemplary embodiment, the CPU 101 develops various programs recorded in the ROM 103 using the RAM 102 as a work memory, and controls each block of the imaging apparatus 100 according to the program. The operation unit 104 includes switches for inputting various operations such as a power button, a record button, a zoom adjustment button, an autofocus button, a menu display button, a mode switch, and a determination button. Further, any type of operation element such as a cursor key, a pointing device, a touch panel, and a dial may be used. The touch panel may be any of various types of touch panels such as a resistive film method, a capacitance method, a surface acoustic wave method, an infrared method, an electromagnetic induction method, an image recognition method, and an optical sensor method. . When the user operates these keys, buttons, and touch panel, the operation unit 104 transmits an operation signal to the CPU 101, and the CPU 101 performs control corresponding to the operation signal according to the program being executed. For example, there are selection of an icon displayed on the display unit 140, start of control corresponding to the selected icon, and the like. Examples of the icon include an end button, a return button, playback, pause, stop, fast forward, rewind, slow playback, and erase.

撮像部110は、レンズにより取り込まれた被写体の光学像を、絞りにより光量を制御して、CCDセンサやCMOSセンサ等の撮像素子により画像信号に変換し、得られたアナログ画像信号をデジタル画像信号に変換して一時的にRAM102に記憶する。RAM102に記憶されたデジタル画像信号は、その後、画像処理部111に送信される。画像処理部111は、デジタル画像信号のホワイトバランスや色、明るさなどをユーザに設定された設定値や画像の特性から自動的に判定した設定値に基づいて調整する画質調整処理を行い、処理をしたデジタル画像信号を再びRAM102に記憶する。また、画質調整処理済みまたは未処理のデジタル画像信号を、後述の表示制御部141に送信し、表示部140に撮像中の画像として表示することもできる。また、再生時においては、画像処理部111は、記録媒体151から記録再生部150によって読出され、符号化復号化処理部130において復号化された静止画ファイルや動画ファイルに含まれる画像データの画質調整等を行う。そして、画質調整済みまたは未処理のデジタル画像信号を、後述の表示制御部141に送信し、表示部140に画像として表示することもできる。   The imaging unit 110 converts an optical image of a subject captured by a lens into an image signal using an imaging element such as a CCD sensor or a CMOS sensor by controlling a light amount by a diaphragm, and converts the obtained analog image signal into a digital image signal. And temporarily stored in the RAM 102. The digital image signal stored in the RAM 102 is then transmitted to the image processing unit 111. The image processing unit 111 performs an image quality adjustment process for adjusting the white balance, color, brightness, and the like of the digital image signal based on a setting value set by the user or a setting value automatically determined from the characteristics of the image. The digital image signal that has been processed is stored in the RAM 102 again. In addition, a digital image signal that has undergone image quality adjustment processing or an unprocessed digital image signal can be transmitted to a display control unit 141 described later and displayed on the display unit 140 as an image being captured. At the time of reproduction, the image processing unit 111 reads the image quality of the image data included in the still image file or the moving image file read from the recording medium 151 by the recording / reproducing unit 150 and decoded by the encoding / decoding processing unit 130. Make adjustments. Then, an image quality adjusted or unprocessed digital image signal can be transmitted to a display control unit 141 described later and displayed on the display unit 140 as an image.

符号化復号化処理部130では、記録時においては、画像処理部111により処理されRAM102に記憶されたデジタル画像信号に対して、画像圧縮処理を行い、圧縮された動画データや静止画データを生成し、RAM102に一時的に記憶する処理を行う。また、再生時においては、記録媒体151から読出された画像ファイルの圧縮された動画データや静止画データを復号してデジタル画像信号を抽出し、RAM102に記憶していく処理を行う。   At the time of recording, the encoding / decoding processing unit 130 performs image compression processing on the digital image signal processed by the image processing unit 111 and stored in the RAM 102 to generate compressed moving image data and still image data. Then, a process of temporarily storing in the RAM 102 is performed. Further, at the time of reproduction, a process is performed in which the compressed moving image data and still image data of the image file read from the recording medium 151 is decoded to extract a digital image signal and stored in the RAM 102.

たとえば、動画データを生成する際は、動画データの各フレームをフレーム内符号化して圧縮符号化された動画データを生成する。また、動画データの複数のフレーム間での差分や動き予測などを利用して圧縮符号化された動画データを生成してもよい。たとえばMotionJPEG、MPEG、H.264(MPEG4−Part10 AVC)、H.265/HEVC等の様々な圧縮符号化方式の動画データを生成することができる。一般に、フレーム内符号化されたフレーム画像データをIピクチャと呼び、前方のフレームとの差分を用いてフレーム間符号化された画像データをPピクチャと呼び、前方後方のフレームとの差分を用いてフレーム間符号化された画像データをBピクチャと呼ぶ。これらの圧縮方式は、公知の方式を用いており、本発明の特徴とは関係ないので説明を省略する。また、静止画データを生成する際には、JPEG等の一般的な圧縮符号化方式を用いるが、これらの圧縮符号化方式は、公知の方式を用いており、本発明の特徴とは関係ないので説明を省略する。なお、静止画データについては、撮像部110により得られたデジタル画像信号をそのまま記録する、いわゆるRAW画像データとしてもよい。   For example, when generating moving image data, each frame of the moving image data is intra-frame encoded to generate compression-encoded 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), H.264. It is possible to generate moving image data of various compression encoding schemes such as H.265 / HEVC. In general, intra-frame encoded 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 from 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. Further, when generating still image data, a general compression encoding method such as JPEG is used, but these compression encoding methods use known methods and are not related to the features of the present invention. Therefore, explanation is omitted. The still image data may be so-called RAW image data in which the digital image signal obtained by the imaging unit 110 is recorded as it is.

マイクユニット120は、たとえば、撮像装置100のハウジング内に内蔵された無指向性のマイクとAD変換部を有する。マイクユニット120では、マイクにより周囲の音声を集音(収音)し、取得したアナログ音声信号をAD変換部で、デジタル信号に変換してRAM102に一時的に記憶させる。RAM102に記憶されたデジタル音声信号は、その後、音声処理部121に送信される。音声処理部121では、記録時においては、RAM102に記憶されたデジタル音声信号の、レベルの適正化処理や雑音低減処理等の処理を行い、処理をしたデジタル音声信号を再びRAM102に記憶する。また、必要に応じて、音声信号を圧縮する処理を行う。音声圧縮方式については、AC3、AAC等の一般的な音声圧縮方式を用いているため説明を省略する。また、再生時においては、記録媒体151から記録再生部150によって読出された音声ファイルや動画ファイルに含まれる圧縮音声データ復号する処理や音声レベルの適正化処理、なども行い、順次RAM102に記憶する処理も行う。スピーカユニット122は、スピーカとDA変換部とを有する。スピーカユニット122では、音声処理部121によりRAM102に記憶されたデジタル音声信号を読出してアナログ音声信号に変換し、アナログ音声信号によりスピーカから音声を出力する。   The microphone unit 120 includes, for example, an omnidirectional microphone built in the housing of the imaging apparatus 100 and an AD conversion unit. In the microphone unit 120, ambient sound is collected (collected) by the microphone, and the acquired analog sound signal is converted into a digital signal by the AD converter and temporarily stored in the RAM 102. The digital audio signal stored in the RAM 102 is then transmitted to the audio processing unit 121. At the time of recording, the audio processing unit 121 performs processing such as level optimization processing and noise reduction processing on the digital audio signal stored in the RAM 102, and stores the processed digital audio signal in the RAM 102 again. Moreover, the process which compresses an audio | voice signal is performed as needed. As for the audio compression method, a general audio compression method such as AC3 or AAC is used, and the description thereof will be omitted. Further, at the time of reproduction, a process for decoding the compressed audio data included in the audio file or the moving image file read from the recording medium 151 by the recording / reproducing unit 150, a process for optimizing the audio level, and the like are performed and sequentially stored in the RAM 102. Processing is also performed. The speaker unit 122 includes a speaker and a DA converter. In the speaker unit 122, the digital audio signal stored in the RAM 102 is read out by the audio processing unit 121 and converted into an analog audio signal, and audio is output from the speaker using the analog audio signal.

表示部140は、例えば、液晶パネルとバックライトとからなり、表示制御部141の制御により画像を表示する。表示部140は液晶表示装置に限られず、例えば有機ELディスプレイ、LEDディスプレイなど、ユーザに画像を提供することができればどのようなものであっても良い。表示制御部141では、画像処理部111により処理され、RAM102に記憶されたデジタル画像信号に基づいて、表示部140に画像を表示する。   The display unit 140 includes, for example, a liquid crystal panel and a backlight, and displays an image under the control of the display control unit 141. The display unit 140 is not limited to a liquid crystal display device, and may be any device that can provide an image to a user, such as an organic EL display or an LED display. The display control unit 141 displays an image on the display unit 140 based on the digital image signal processed by the image processing unit 111 and stored in the RAM 102.

記録再生部150では、動画記録時においては、RAM102に記憶されている、符号化復号化処理部130により生成された圧縮動画データ及び、音声処理部121で生成された音声データ、撮影日等の各種情報とともに、動画ファイルとして記録媒体151に書き込む。また静止画記録時においては、RAM102に記憶されている静止画データを撮影日等の各種情報とともに静止画ファイルとして記録媒体151に記録する。動画ファイルを記録媒体151に記録する際は、圧縮動画データと音声データとからなるデータストリームを形成し、順次記録媒体151に記録していき、ファイルヘッダ等を付加してFATやexFAT等のファイルフォーマットに適合した形で動画ファイルを記録媒体に記録する。また、再生時においては、記録媒体151に記録された動画ファイルや静止画ファイルを前述のファイルフォーマットに従って読出す。読出された動画ファイルや静止画ファイルは、CPU101によりヘッダが解析され、圧縮された動画データ、静止画データが抽出される。抽出された圧縮動画データ、静止画データは、RAM102に記憶されて、符号化復号化処理部130により復号される。   In the recording / reproducing unit 150, when recording a moving image, the compressed moving image data generated by the encoding / decoding processing unit 130, the audio data generated by the audio processing unit 121, the shooting date, and the like stored in the RAM 102 are stored. Along with various information, it is written in the recording medium 151 as a moving image file. At the time of recording a still image, the still image data stored in the RAM 102 is recorded on the recording medium 151 as a still image file together with various information such as the shooting date. When recording a moving image file on the recording medium 151, a data stream composed of compressed moving image data and audio data is formed and sequentially recorded on the recording medium 151, and a file header or the like is added to a file such as FAT or exFAT. Record a video file on a recording medium in a form that conforms to the format. Further, at the time of reproduction, a moving image file or a still image file recorded on the recording medium 151 is read according to the aforementioned file format. The read moving image file and still image file are analyzed for headers by the CPU 101, and compressed moving image data and still image data are extracted. The extracted compressed moving image data and still image data are stored in the RAM 102 and decoded by the encoding / decoding processing unit 130.

また、記録媒体151は、撮像装置に内蔵された記録媒体でも、取外し可能な記録媒体でもよい。例えば、ハードディスク、光ディスク、光磁気ディスク、CD−R、DVD−R、磁気テープ、不揮発性の半導体メモリ、フラッシュメモリ、などのあらゆる方式の記録媒体を含む。取り外し可能な記録媒体を用いる場合には、記録再生部150は、それらの取り外し可能な記録媒体を装着、排出するための機構を含む。   Further, the recording medium 151 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. When using removable recording media, the recording / reproducing unit 150 includes a mechanism for loading and unloading the removable recording media.

また、通信部160は、撮像装置100とは異なる外部装置との間で、制御信号や動画ファイル、静止画ファイル、各種データ等を送受信するものであり、有線接続、無線接続を問わず接続可能である。なお、通信方式はどのような方式であっても良い。   The communication unit 160 transmits and receives control signals, moving image files, still image files, various data, and the like to and from an external device different from the imaging device 100, and can be connected regardless of wired connection or wireless connection. It is. Note that any communication method may be used.

ここで、前述の画像処理部111、音声処理部121、符号化復号化処理部130、表示し制御部141、記録再生部150は、それぞれ、前述の各機能を実行するプログラムを搭載したマイクロコンピュータであってもよい。また、CPU101がROM103に記録された前述の処理を実行する為のプログラムをRAM102に展開して実行するようにしてもよい。   Here, each of the image processing unit 111, the audio processing unit 121, the encoding / decoding processing unit 130, the display control unit 141, and the recording / reproducing unit 150 described above is a microcomputer in which a program for executing each of the functions described above is installed. It may be. Further, the program for executing the above-described processing recorded in the ROM 103 by the CPU 101 may be loaded into the RAM 102 and executed.

なお、本実施例の撮像装置100は、一例として、「QuickTime(登録商標)フォーマット」で動画ファイルを記録するものとするが、どのようなフォーマットであっても良い。   Note that the imaging apparatus 100 according to the present exemplary embodiment records a moving image file in the “QuickTime (registered trademark) format” as an example, but any format may be used.

なお、本実施例では記録媒体151のファイル管理システムは組み込み機器で一般的に使用されているFATファイルシステムを使用するものとして説明をする。FATファイルシステムの技術自体は広く公知であるので、本実施例の特徴的な動作でのみその説明をする。また、FATファイルフォーマットであるNTFSフォーマットやexFATフォーマットなどを用いても良い。   In this embodiment, the file management system of the recording medium 151 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. Further, the NTFS format or the exFAT format which is a FAT file format may be used.

次に、本実施例の撮像装置100の動作について説明する。   Next, the operation of the imaging apparatus 100 according to the present embodiment will be described.

本実施例の撮像装置100は、ユーザによって操作部104を操作して電源を投入する指示が出されたことに応じて、不図示の電源供給部から、撮像装置の各ブロックに電源を供給する。   The imaging apparatus 100 according to the present exemplary embodiment supplies power to each block of the imaging apparatus from a power supply unit (not illustrated) in response to an instruction to turn on the power by operating the operation unit 104 by the user. .

電源が供給されると、CPU101は、操作部104により設定されたカメラのモードが、再生モードであるか、「ダイジェストムービーモード」、静止画記録モード、動画記録モードであるかを判定する。なお、本実施例において、静止画記録モード、動画記録モードは、特徴的な構成に関わらないので説明を割愛する。   When power is supplied, the CPU 101 determines whether the camera mode set by the operation unit 104 is a playback mode, a “digest movie mode”, a still image recording mode, or a moving image recording mode. In the present embodiment, the still image recording mode and the moving image recording mode are not related to the characteristic configuration, and thus description thereof is omitted.

次に、「ダイジェストムービーモード」について、図2のフロー図を用いて説明する。図2のフロー図は、ダイジェストムービーモードに設定されたときをスタートとするフロー図であり、CPU101がRAM102に展開したプログラムに基づいて、撮像装置100の各部を制御することにより、実行される処理である。なお、本実施形態において、動画データを順次追記していくか否かは、静止画記録の指示があった後で、動画データを記録媒体151に記録する前に行うものとする。すなわち、CPU101が、記録再生部150より、最後にダイジェストムービーモードで撮影された動画ファイルを読み出して撮影された日付の情報を確認する。そして、読み出された動画ファイルが当日に撮影されたものであれば、追記するものとし、異なる日に撮影されたものであれば、追記しないものとする。ダイジェストムービーモードにおいて撮影された動画は、たとえばダイジェストムービーモードで撮影された動画であることを示すための識別子「MDG」に4桁の整数を順次数字をインクリメントしたファイル名とする。このようにすることで、記録媒体151に記録されている識別子MDGを含む数字のもっとも大きい動画が最後に撮影されたものであることが容易に識別可能である。また、ダイジェストムービーモードで静止画撮影の指示応じて、撮影された動画データを追記した場合には、動画ファイル内において新しいチャプタとして記録する。すなわち、動画データの連結がなされるごとに、新しいチャプタとして動画データが記録されることになる。   Next, the “digest movie mode” will be described with reference to the flowchart of FIG. The flowchart in FIG. 2 is a flowchart that starts when the digest movie mode is set, and is executed by the CPU 101 controlling each unit of the imaging apparatus 100 based on a program developed in the RAM 102. It is. In the present embodiment, whether or not to add the moving image data sequentially is determined after recording the still image and before recording the moving image data on the recording medium 151. That is, the CPU 101 reads out the moving image file that was last shot in the digest movie mode from the recording / playback unit 150 and confirms the information on the date when the movie was shot. If the read moving image file is taken on the same day, it is added. If it is taken on a different day, it is not added. The moving image shot in the digest movie mode is, for example, a file name obtained by sequentially incrementing a 4-digit integer in an identifier “MDG” for indicating that the moving image was shot in the digest movie mode. By doing in this way, it can be easily identified that the moving image having the largest number including the identifier MDG recorded on the recording medium 151 was taken last. In addition, when the captured moving image data is additionally written in response to the still image shooting instruction in the digest movie mode, it is recorded as a new chapter in the moving image file. That is, each time moving image data is linked, moving image data is recorded as a new chapter.

また、本実施形態においては、サムネイル画像の生成は、静止画撮影の指示が入力される毎に生成されるものとして説明する。この場合、追記した動画ファイルには複数のサムネイル画像が関連づけられることになる。しかし、追記する場合にはサムネイル画像を生成せずに、新規に動画ファイルを生成する場合にのみ、サムネイル画像を生成するようにしても良い。   In the present embodiment, the description will be made assuming that the thumbnail image is generated every time a still image shooting instruction is input. In this case, a plurality of thumbnail images are associated with the added moving image file. However, in the case of additional recording, a thumbnail image may be generated only when a moving image file is newly generated without generating a thumbnail image.

操作部104によりダイジェストムービーモードが設定されると、CPU101は、撮像装置100の各ブロックを制御し、以下の動作を実行させる。   When the digest movie mode is set by the operation unit 104, the CPU 101 controls each block of the imaging apparatus 100 and causes the following operations to be executed.

まず、撮像部110は、得られたデジタル画像信号をRAM102に送信し、一時的に記憶させる。そうすると、表示制御部141は、RAM102に記憶されたデジタル画像信号を読み出して表示部140に表示させる。また、画像処理部111は、RAM102に記憶されたデジタル画像信号を順次読み出して、前述の各種画質調整処理を行い、処理をしたデジタル画像信号を再びRAM102に記憶する。画像処理部111は、撮像部110で画像が撮像される度にこの処理を繰り返す。   First, the imaging unit 110 transmits the obtained digital image signal to the RAM 102 and temporarily stores it. Then, the display control unit 141 reads the digital image signal stored in the RAM 102 and causes the display unit 140 to display the digital image signal. The image processing unit 111 sequentially reads out the digital image signals stored in the RAM 102, performs the above-described various image quality adjustment processes, and stores the processed digital image signals in the RAM 102 again. The image processing unit 111 repeats this process every time an image is captured by the imaging unit 110.

また、符号化復号化処理部130は、画像処理部111によって処理されたデジタル画像信号を動画データとして符号化するための符号化処理を行う(S201)。例えば、符号化処理としては、MotionJPEG、MPEG、H.264(MPEG4−Part10 AVC)、等の様々な公知の圧縮符号化方式処理がある。本実施例においては、例えば、H.264におけるフレーム内予測符号化画像を含む動画データとなるように符号化処理を行うものとする。   The encoding / decoding processing unit 130 performs an encoding process for encoding the digital image signal processed by the image processing unit 111 as moving image data (S201). For example, the encoding process includes Motion JPEG, MPEG, H.264, and so on. There are various well-known compression encoding system processes such as H.264 (MPEG4-Part10 AVC). In the present embodiment, for example, H.264. It is assumed that the encoding process is performed so that the moving image data includes an intra-frame predictive encoded image in H.264.

また、このときCPU101は音声処理部121に、マイクユニット入力されたデジタル音声信号に対して種々の調整処理を適用した後、予め設定された音声用の符号化方式に従って符号化処理を実行し、得られた符号化された音声信号をRAM102に記憶させる。   At this time, the CPU 101 applies various adjustment processes to the digital audio signal input to the microphone unit in the audio processing unit 121, and then executes the encoding process according to a preset audio encoding method. The encoded audio signal obtained is stored in the RAM 102.

そして、符号化復号化処理部130、音声処理部121は、符号化された動画データと音声データをRAM102記憶していく(S202)。以後の説明では、音声データについては説明を省略するが、動画データとともに処理されるものとする。   Then, the encoding / decoding processing unit 130 and the audio processing unit 121 store the encoded moving image data and audio data in the RAM 102 (S202). In the following description, although explanation of audio data is omitted, it is assumed that it is processed together with moving image data.

本実施形態の撮像装置100においては、RAM102には、常に直前の予め定められた時間分の動画データが記憶されるようにRAM102に記憶されている動画データのうち、予め定められた時間より前に撮像された動画データを削除するようにしている。そのため、CPU101は、所定時間分以上の動画データがRAM102に記憶されたか否かを判定し(S203)、所定時間以上記憶されている場合(S203で、Yes)、所定時間よりも過去の時点で撮影された画像を示す動画データを破棄するようにしている。削除するデータのサイズは符号化単位で規定されるため、符号化方式によっては当該削除するデータのサイズをフレームまたは再生時間として決定することもできる。また、所定時間以上記憶されていない場合(S203で、No)、動画データの破棄を行わない。本実施例では所定時間は任意の時間であってよいが、例えば4秒、6秒、8秒など、ユーザが選択できるようにしても良い。そして、CPU101は、静止画撮影の指示が操作入力部112から入力されたか否かを判定し(S205)、静止画撮影の指示が入力されていない場合(S205でNo)、再びS201に戻り、動画データの生成処理、一時記憶を継続する。   In the imaging apparatus 100 according to the present embodiment, the RAM 102 always stores the moving image data for the predetermined time immediately before the predetermined time among the moving image data stored in the RAM 102 so that the moving image data for the predetermined time is stored. The moving image data picked up at the time is deleted. For this reason, the CPU 101 determines whether or not moving image data for a predetermined time or more has been stored in the RAM 102 (S203), and if it has been stored for a predetermined time or longer (Yes in S203), at a point in time that is earlier than the predetermined time. The moving image data indicating the photographed image is discarded. Since the size of the data to be deleted is defined in encoding units, the size of the data to be deleted can be determined as a frame or a reproduction time depending on the encoding method. In addition, when it is not stored for a predetermined time or longer (No in S203), the moving image data is not discarded. In the present embodiment, the predetermined time may be any time, but may be selected by the user, for example, 4 seconds, 6 seconds, 8 seconds, or the like. Then, the CPU 101 determines whether or not a still image shooting instruction is input from the operation input unit 112 (S205). If a still image shooting instruction is not input (No in S205), the process returns to S201 again. The generation processing and temporary storage of moving image data are continued.

なお、本実施形態では常に直前の予め定められた時間分の動画データがRAM102には記憶されるものとして説明するが、本発明の実施はこれに限らない。即ち、RAM102に記憶される動画データのサイズは定量可能なものであればよく、例えばフレーム数、GOP数(Group Of Pictures)、データサイズ等で規定される、予め定められた量であってよい。つまり、RAM102に記憶されている動画データは、当該動画データのサイズが予め定められたサイズ以上となった場合に、当該予め定められたサイズ未満のサイズとなるまで、動画データのフレームのうちの撮影時刻が古いフレームから順に削除されるようにしてもよい。   In the present embodiment, it is assumed that moving image data for a predetermined time immediately before is always stored in the RAM 102, but the present invention is not limited to this. That is, the size of the moving image data stored in the RAM 102 may be anything that can be quantified, and may be a predetermined amount defined by, for example, the number of frames, the number of GOPs (Group Of Pictures), the data size, and the like. . In other words, when the moving image data stored in the RAM 102 is larger than the predetermined size, the moving image data is stored in the frames of the moving image data until the size becomes less than the predetermined size. The shooting time may be deleted in order from the oldest frame.

ここで、静止画撮影の指示が入力された場合(S205でYes)、CPU101は、記録媒体151の記録可能容量をチェックするように記録再生部150を制御し、RAM102に一時的に記憶されている動画データの記録が可能であるか否かを判定しても良い。この判定は、RAM102に一時的に記憶されている動画データのサイズと、記録する静止画データの見込みサイズとの和が、記録媒体151の記録可能容量よりも小さいか否かを比較することにより判定される。静止画データの見込みサイズはたとえば4MBとしても良いし、記録サイズや画質等に応じて変更してもよい。   When a still image shooting instruction is input (Yes in S205), the CPU 101 controls the recording / playback unit 150 to check the recordable capacity of the recording medium 151, and is temporarily stored in the RAM 102. It may be determined whether or not the moving image data can be recorded. This determination is made by comparing whether the sum of the size of the moving image data temporarily stored in the RAM 102 and the expected size of the still image data to be recorded is smaller than the recordable capacity of the recording medium 151. Determined. The expected size of the still image data may be 4 MB, for example, or may be changed according to the recording size, image quality, or the like.

この判定により、動画データと、静止画データとを記録媒体151に記録できない場合には、静止画撮影のみを行い、動画データを記録しないようにしても良い。   If it is determined that the moving image data and the still image data cannot be recorded on the recording medium 151, only the still image shooting may be performed and the moving image data may not be recorded.

また、S205で静止画撮影の指示が入力されたときに、RAM102に例えば1秒未満や2秒未満等の短い時間分の動画データしか記憶されていない場合には、静止画撮影の指示を無効とするようにしても良い。この時間もユーザ画設定できるようにしても良い。   Also, when a still image shooting instruction is input in S205, if only a short amount of moving image data such as less than 1 second or less than 2 seconds is stored in the RAM 102, the still image shooting instruction is invalidated. You may make it. You may enable it to set a user image also during this time.

次に、静止画撮影の指示が入力された場合(S205でYes)、CPU101は、撮像部110に静止画データ用の撮影を実行させる(S210)。CPU101は、このとき並行して符号化復号化処理部130に、RAM102に記憶されている動画データの先頭フレームの画像を復号させ、サムネイル画像生成処理を実行させる(S211)。なお、本実施形態では記録される動画データのサムネイル画像は先頭フレームの画像から生成されるものとして説明するが、本発明の実施はこれに限らず、記録される動画データのフレームのうちのいずれかのフレームの画像から生成されればよい。すなわち、静止画撮影の指示があったときに、RAM102に記憶されている動画データのいずれかのフレームを用いたサムネイル画像が生成されればよい。このようにすることで、一度動画データの記録媒体へのファイル記録が終了してから、記録媒体から動画ファイルを読み出したりすることなく、動画データのサムネイルを生成することができるので、処理が早くなる。なお、静止画の撮影指示がなされたと判断した場合、CPU101は更なる静止画の撮影指示がなされても、指示を受け付けないよう制御する。   Next, when a still image shooting instruction is input (Yes in S205), the CPU 101 causes the imaging unit 110 to perform shooting for still image data (S210). At this time, the CPU 101 causes the encoding / decoding processing unit 130 to decode the image of the first frame of the moving image data stored in the RAM 102 and execute the thumbnail image generation processing (S211). In this embodiment, the thumbnail image of the moving image data to be recorded is described as being generated from the image of the first frame. However, the present invention is not limited to this, and any of the frames of the moving image data to be recorded is used. It may be generated from an image of such a frame. That is, a thumbnail image using any frame of the moving image data stored in the RAM 102 may be generated when a still image shooting instruction is given. In this way, it is possible to generate a thumbnail of the moving image data without reading the moving image file from the recording medium after the file recording of the moving image data to the recording medium is finished once, so that the processing is quick. Become. If it is determined that a still image shooting instruction has been issued, the CPU 101 performs control so that the instruction is not accepted even if a still image shooting instruction is issued.

次に、CPU101は、符号化復号化処理部130によるサムネイル画像生成処理が完了したか否かを判定し(S212)、処理が完了している場合には、次に、S210で撮影されたデジタル画像信号を静止画データとするべく、画像処理部111に現像処理を、符号化復号化処理部130に符号化処理を順次実行させる(S220)。このとき、CPU101は並行して、サムネイル生成処理で生成されたサムネイル画像をRAM102に一時記憶されている符号化済みの動画データのヘッダ情報に含めて、記録媒体151に記録するように記録再生部150を制御する(S221)。ここで、静止画の現像処理(S220)とは、撮影時に各画素に対してその周辺画素から足りない色情報を集め与えることで色情報を補完し、フルカラー画像を作り出す「デモザイク」処理等を含む処理で、このほかに、ガンマ補正、ホワイトバランス調整などの処理を含んでも良い。   Next, the CPU 101 determines whether or not the thumbnail image generation processing by the encoding / decoding processing unit 130 has been completed (S212). If the processing has been completed, next, the digital image captured in S210 is determined. In order to convert the image signal into still image data, the image processing unit 111 sequentially executes development processing and the encoding / decoding processing unit 130 sequentially executes encoding processing (S220). At this time, in parallel, the CPU 101 includes the thumbnail image generated by the thumbnail generation process in the header information of the encoded moving image data temporarily stored in the RAM 102 and records it on the recording medium 151 so as to record it. 150 is controlled (S221). Here, the still image development process (S220) is a “demosaic” process for creating a full-color image by complementing color information by collecting and giving missing color information from its surrounding pixels to each pixel during shooting. In addition to this, processing such as gamma correction and white balance adjustment may be included.

CPU101は、前述した現像処理が終了すると、現像したデジタル画像データを再びRAM102に記憶させ、表示制御部141に読み出させて、表示部140に表示させる。これは、一般にデジタルカメラで撮影を行った直後に表示部140に、撮影画像を表示させる、所謂「レックレビュー」表示である。ちなみに、静止画撮影の指示がなされてから静止画の現像処理が終了するまでの間、表示部140には、何の画像も表示されておらず、黒画像が表示されている。また、代わりに「処理中」などの状態をユーザに提示するための表示をさせても良い。   When the above-described development processing is completed, the CPU 101 stores the developed digital image data in the RAM 102 again, causes the display control unit 141 to read it, and causes the display unit 140 to display it. This is a so-called “rec review” display in which a photographed image is displayed on the display unit 140 immediately after photographing with a digital camera. Incidentally, no image is displayed on the display unit 140 and a black image is displayed until the still image development process is completed after an instruction to shoot a still image is given. Alternatively, a display for presenting a status such as “processing” to the user may be displayed.

また、現像処理が終了すると、CPU101は、予め設定された静止画記録用の符号化方式に従って符号化復号化処理部130に符号化処理を実行させる。次にCPU101は、静止画の現像処理、符号化処理が終了したか否かを判定する(S222)。静止画の符号化処理が終了したと判定すると、(S222でYes)、CPU101は、生成された静止画データを記録再生部150に送り、記録媒体151に記録させる(S223)。そして、ユーザが操作入力部102を操作してダイジェストムービーモードを抜ける指示をしていないかぎり(S224でNo)、CPU101は、静止画の記録と並行して、動画の撮影、符号化処理(S201)を開始する。このとき、CPU101は、表示制御部141に、RAM102に記憶されたデジタル画像信号を読み出させ、再びスルー画像を表示部140に表示させる。   When the development process is completed, the CPU 101 causes the encoding / decoding processing unit 130 to execute the encoding process according to a preset encoding method for still image recording. Next, the CPU 101 determines whether or not the still image development process and the encoding process have been completed (S222). If it is determined that the still image encoding process has been completed (Yes in S222), the CPU 101 sends the generated still image data to the recording / playback unit 150 to be recorded on the recording medium 151 (S223). Then, unless the user operates the operation input unit 102 to give an instruction to exit the digest movie mode (No in S224), the CPU 101 captures and encodes a moving image in parallel with recording a still image (S201). ). At this time, the CPU 101 causes the display control unit 141 to read out the digital image signal stored in the RAM 102 and displays the through image on the display unit 140 again.

以上のように、本実施例の撮像装置100は、「ダイジェストムービーモード」において、動画ファイルと、静止画ファイルを記録する。   As described above, the imaging apparatus 100 according to the present exemplary embodiment records a moving image file and a still image file in the “digest movie mode”.

ここで、本実施例の「ダイジェストムービーモード」において、記録媒体151に既に記録されている動画ファイル(既存動画ファイル)の動画データに対して、新たに撮影された動画データ(新規動画データ)を連結(追記)する場合の例について説明する。たとえば、既存動画ファイルの記録された日付と、新規動画データの取得した日付(撮影時点でのカメラの日付設定でも良い)とが同じ場合には、動画データを連結するものとすると、図3に示すように記録される。図3は、撮影タイミングと、動画ファイル、静止画ファイルの記録状態を示すものである。   Here, in the “digest movie mode” of the present embodiment, the newly captured video data (new video data) is added to the video data of the video file (existing video file) already recorded on the recording medium 151. An example of connection (additional writing) will be described. For example, if the date when the existing video file was recorded and the date when the new video data was acquired (the camera date setting at the time of shooting may be the same), the video data should be concatenated as shown in FIG. Recorded as shown. FIG. 3 shows the shooting timing and the recording state of the moving image file and the still image file.

同一の撮影日を有する静止画ファイルP1、P2、及びP3は記録媒体151の1つのフォルダ(同一フォルダ内)に記録され、各静止画の撮影直前にRAM102に記憶された動画データは同じフォルダに1つの連結された動画ファイルとして記録される。また、静止画ファイルP1からP3とは異なる撮影日を有するP4及びP5は、静止画ファイルP1が記録されたフォルダとは異なるフォルダに記録されるものとする。このとき、静止画ファイルP4の撮影直前にRAM102に記憶された動画データが、当該動画データの途中で撮影日が変更された場合であっても、静止画ファイルP4の撮影日と同一のフォルダに記録されるように制御するものとする。すなわち、撮影指示の入力されたタイミングの日付情報によって、動画データを連結するか新規に保存するかのいずれかを決定することにもなる。   Still image files P1, P2, and P3 having the same shooting date are recorded in one folder (in the same folder) of the recording medium 151, and the moving image data stored in the RAM 102 immediately before shooting each still image is stored in the same folder. It is recorded as one linked moving image file. Further, P4 and P5 having shooting dates different from those of the still image files P1 to P3 are recorded in a folder different from the folder in which the still image file P1 is recorded. At this time, the moving image data stored in the RAM 102 immediately before shooting the still image file P4 is stored in the same folder as the shooting date of the still image file P4 even if the shooting date is changed in the middle of the moving image data. It shall be controlled to be recorded. That is, it is determined whether to link the moving image data or to newly save the moving image data, based on the date information at the timing when the shooting instruction is input.

また、本実施形態では、静止画撮影の指示が入力される毎に、動画データに対応するサムネイル画像を生成するものとして説明したが、たとえばP1の静止画データの撮影時に生成される動画データM1に対応するサムネイルは生成し、追記されるM2、M3の動画データのサムネイル画像を生成しないようにしても良い。このようにすると、動画ファイル1つについて、サムネイル画像を1つとすることができる。   Further, in the present embodiment, it has been described that a thumbnail image corresponding to moving image data is generated every time a still image shooting instruction is input. However, for example, moving image data M1 generated at the time of shooting P1 still image data. The thumbnails corresponding to may be generated, and the thumbnail images of the M2 and M3 moving image data to be added may not be generated. In this way, it is possible to have one thumbnail image for each moving image file.

本実施例においては、このように「ダイジェストムービーモード」で記録を行った場合、追記を行うたびに、動画ファイルに動画データが連結されてゆく。本実施例の撮像装置100は、追記される度に別のチャプタとして動画ファイル動画データを連結していく。CPU101は、動画データを連結するときに、記録媒体151に記録される動画ファイルのファイルヘッダに各チャプタの管理情報(チャプタ管理情報)を格納する。図4は、チャプタ管理情報の例を示したもので、たとえば各チャプタの開始フレーム、終了フレーム、開始時間、終了時間、タイトル、撮影位置の情報が関連付けて記録されている。すなわち、少なくとも各チャプタに対応する動画データを判別可能なものであればよい。   In this embodiment, when recording is performed in the “digest movie mode” as described above, the moving image data is linked to the moving image file each time additional recording is performed. The image capturing apparatus 100 according to the present embodiment connects moving image file moving image data as another chapter each time an additional recording is performed. When connecting the moving image data, the CPU 101 stores management information (chapter management information) of each chapter in the file header of the moving image file recorded on the recording medium 151. FIG. 4 shows an example of chapter management information. For example, information on the start frame, end frame, start time, end time, title, and shooting position of each chapter is recorded in association with each other. That is, it is sufficient that at least moving image data corresponding to each chapter can be discriminated.

次に、記録媒体151に記録される動画ファイルのファイルフォーマットについて説明する。図7は、本実施例の動画のファイルフォーマットを説明するための図である。   Next, the file format of the moving image file recorded on the recording medium 151 will be described. FIG. 7 is a diagram for explaining the file format of the moving image according to the present embodiment.

本実施例において、動画ファイルはMOVフォーマットで記録されている。なおMOVフォーマットでは、ファイルに記録されるデータは「アトム」と呼ばれるデータ構造の内部に記述され、アトムを単位としてファイルに記録される。各アトムはそれぞれ、「Sizeフィールド」、「Typeフィールド」を有する。「Sizeフィールド」は、Sizeフィールドを含む、アトム全体のデータサイズを表す4バイトのフィールドである。「Typeフィールド」は、アトムの種類を表す4バイトのタイプ識別子のフィールドである。なお、各アトムにおいて「Typeフィールド」以降のフィールドはアトムによってはオプションであるため、ここでは説明を省略する。また、アトム内に他のアトムを包含することが可能であり、それにより入れ子構造を実現している。MOVフォーマットで記録された動画ファイルは、図6に示すような構造で各アトムを格納している。   In this embodiment, the moving image file is recorded in the MOV format. In the MOV format, data recorded in a file is described in a data structure called “Atom” and recorded in the file in units of atoms. Each atom has a “Size field” and a “Type field”. The “Size field” is a 4-byte field that represents the data size of the entire atom including the Size field. The “Type field” is a 4-byte type identifier field indicating the kind of atom. In each atom, the fields after the “Type field” are optional depending on the atom, and the description thereof is omitted here. Further, it is possible to include other atoms in the atom, thereby realizing a nested structure. The moving image file recorded in the MOV format stores each atom in a structure as shown in FIG.

図4に示すように、MOVフォーマットの動画ファイルは、以下のアトムを有する。   As shown in FIG. 4, a moving image file in the MOV format has the following atoms.

ファイルの種別を表す、ftyp(ファイルタイプアトム)701。後述のmvhd(ムービーヘッダアトム)706やtrak(トラックアトム)707、708、709などを含む、音声や映像に関する情報を格納した、moov(ムービーアトム)702。音声や映像、テキストなどの実データが格納した、mdat(ムービーデータアトム)703。   Ftyp (file type atom) 701 representing the type of file. A moov (movie atom) 702 that stores information about audio and video, including mvhd (movie header atom) 706 and trak (track atom) 707, 708, 709, which will be described later. Mdat (movie data atom) 703 that stores actual data such as voice, video, and text.

また、moov(ムービーアトム)702には、以下のアトムが格納される。   The moov (movie atom) 702 stores the following atoms.

任意のデータが格納された、udta(ユーザーデータアトム)704。撮像装置100のモデル名や通信部152で受信した撮像装置100の位置情報やUTC時刻などのメタデータが格納された、meta(メタデータアトム)705。動画の作成日時や修正日時、タイムスケール、Duraionなどが格納された、mvhd(ムービーヘッダアトム)706。映像用のtrak(トラックアトム)707。音声用のtrak(トラックアトム)708。テキスト用のtrak(トラックアトム)709。   Udta (user data atom) 704 in which arbitrary data is stored. A meta (metadata atom) 705 in which metadata such as the model name of the image capturing apparatus 100, position information of the image capturing apparatus 100 received by the communication unit 152, and UTC time are stored. An mvhd (movie header atom) 706 that stores the creation date / time, modification date / time, time scale, duration, etc. of the movie. Trak (track atom) 707 for video. An audio trak (track atom) 708. A trak (track atom) 709 for text.

なお、本実施例におけるチャプタ管理情報は、moovアトム内に格納される。   Note that the chapter management information in this embodiment is stored in the moov atom.

さらに、各trak(トラックアトム)707〜709には、以下のアトムが格納される。   Further, the following atoms are stored in each trak (track atom) 707 to 709.

そのトラックの作成日時やDuration(後述のチャンク内の各サンプルの間の時間的間隔)、そしてIDなどが格納した、tkhd(トラックヘッダアトム)710。なお、本実施例では、映像トラックのIDは1、音声トラックのIDは2、テキストトラックのIDは3、とする。トラック間の参照情報を格納したtref711。本実施例では、映像トラックがテキストトラックをチャプタとして参照するため、映像用のtref711には、テキストトラックのIDである3が記載され、それをチャプタとして参照するため、識別子として‘chap’と記載されている。音声トラックにおいても、も同様である。本実施例では、テキストトラックにはtrefは存在しなくて良い。   A tkhd (track header atom) 710 in which the creation date and time of the track, Duration (time interval between samples in a chunk to be described later), ID, and the like are stored. In this embodiment, the video track ID is 1, the audio track ID is 2, and the text track ID is 3. Tref 711 storing reference information between tracks. In the present embodiment, since the video track refers to the text track as a chapter, the video tref 711 describes 3 as the ID of the text track, and in order to refer to it as a chapter, describes “chap” as an identifier. Has been. The same applies to the audio track. In this embodiment, tref does not have to exist in the text track.

また、各trak(トラックアトム)707〜709には、以下のアトムも格納される。   Further, the following atoms are also stored in each trak (track atom) 707 to 709.

1チャンクがいくつのサンプル(映像の場合はフレーム)数で構成されているかを示すstsc(サンプルチャンクアトム)712。本実施例では全ての映像チャンクが1チャンク=1サンプル(フレーム)から構成されるものとする。サンプル数と各サンプル間の時間的間隔(Duration)を格納した、stts(同期サンプルアトム)713。各サンプルのデータサイズを格納した、stsz(サンプルサイズアトム)714。各チャンクのファイルオフセットを格納したstco(チャンクオフセット)715。   A stsc (sample chunk atom) 712 that indicates how many samples (frames in the case of video) each chunk is composed of. In this embodiment, it is assumed that all video chunks are composed of 1 chunk = 1 sample (frame). A stts (synchronous sample atom) 713 storing the number of samples and the time interval (Duration) between each sample. Stsz (sample size atom) 714 storing the data size of each sample. Stco (chunk offset) 715 storing the file offset of each chunk.

音声や映像、テキストなどの実データが格納した、mdat(ムービーデータアトム)703には、以下のアトムが格納される。   The following atoms are stored in mdat (movie data atom) 703 in which actual data such as audio, video, and text is stored.

各チャプタのタイトルをテキストデータとして格納したテキストチャンク716、717。テキストチャンク716、717は、最初の領域には、後に続くテキストデータのデータサイズ(16進数)を示すデータが格納される。テキストデータ領域にはテキストデータがASCIIコードで格納される。本実施例では、「ダイジェストムービーモード」において静止画の撮影された撮影時刻をテキストデータとして記載する。すなわち、「ダイジェストムービーモード」で、12時34分56秒に静止画撮影の指示があった場合、記録媒体に記録される動画は、12時34分52秒〜12時34分56秒に対応する動画である。しかし、この動画のチャプタのタイトルを示すテキストチャンクのテキストデータとして、静止画撮影の指示があった12時34分56秒に対応するテキストデータが書き込まれる。   Text chunks 716 and 717 storing the title of each chapter as text data. In the text chunks 716 and 717, data indicating the data size (hexadecimal number) of the text data that follows is stored in the first area. Text data is stored in the text data area in ASCII code. In this embodiment, the shooting time when a still image was shot in the “digest movie mode” is described as text data. In other words, in the “digest movie mode”, when there is an instruction to shoot a still image at 12:34:56, the moving image recorded on the recording medium corresponds to 12:34:52 to 12:34:56. It is a video to be. However, text data corresponding to 12:34:56 when a still image shooting instruction is given is written as text data of a text chunk indicating the title of the chapter of the moving image.

また、音声や映像、テキストなどの実データが格納した、mdat(ムービーデータアトム)703には、以下のアトムも格納される。   In addition, the following atoms are also stored in mdat (movie data atom) 703 in which actual data such as voice, video, and text is stored.

音声データチャンク718、719。映像データチャンク720、721、722等。図7において、アルファベットはピクチャの種類を示す。すなわち、フレーム内予測符号化されたIピクチャであるか、前方予測のフレーム間予測符号化されたPピクチャ、双方向予測のフレーム間予測符号化されたBピクチャのいずれかを示す。本実施例では、フレーム内予測符号化されたIピクチャであるためIが付されている。さらに、アルファベットの添え字の数字は先頭からのフレーム番号を表している。つまり、映像データチャンク720は、1番目のフレームがIピクチャ(フレーム内予測符号化ピクチャ)であることを表している。   Audio data chunks 718, 719. Video data chunks 720, 721, 722, etc. In FIG. 7, alphabets indicate the types of pictures. That is, it indicates either an I picture that has been subjected to intraframe prediction encoding, a P picture that has been subjected to interframe prediction encoding for forward prediction, or a B picture that has been subjected to interframe prediction encoding for bidirectional prediction. In the present embodiment, I is added because it is an I picture that has been intra-frame prediction encoded. Further, the alphabetic subscript number represents the frame number from the beginning. That is, the video data chunk 720 indicates that the first frame is an I picture (intra-frame predictive coded picture).

ここで、mdatアトム703のデータの格納状態について説明する。   Here, the data storage state of the mdat atom 703 will be described.

前述したようにmdatアトム703には、テキストチャンク、音声チャンク、映像チャンクが格納されている。なお、本実施例においては、音声チャンク1個と、映像チャンクを15個とを組として格納している。これは、音声データ0.5秒と、映像の15フレームが対応するようにするためにこのように記録している。しかし、格納方法この方式に限られない。さらに、本実施例のようにチャプタごとに、テキストチャンク716、717が格納される。これは、チャプタ1つにつき一つのテキストチャンクが対応する。すなわち、本実施例のように「ダイジェストムービーモード」で撮影を繰り返すと、撮影される度にテキストチャンクがmdatアトムに格納されることになる。テキストチャンクは、チャプタ一つに対応するものとなる。また、テキスト用のtrakアトムのテキスト用のsttsアトムにも、テキストチャンクのサンプルの再生間隔(Duration)が格納されている。   As described above, the mdat atom 703 stores text chunks, audio chunks, and video chunks. In the present embodiment, one audio chunk and 15 video chunks are stored as a set. This is recorded in this way so that 0.5 seconds of audio data corresponds to 15 frames of video. However, the storage method is not limited to this method. Furthermore, text chunks 716 and 717 are stored for each chapter as in this embodiment. This corresponds to one text chunk per chapter. That is, when shooting is repeated in the “digest movie mode” as in this embodiment, a text chunk is stored in the mdat atom every time shooting is performed. A text chunk corresponds to one chapter. In addition, a text chunk sample playback interval (Duration) is also stored in the text stts atom of the text trak atom.

動画ファイルはこのようなフォーマットで記録されている。   Movie files are recorded in this format.

そのため、たとえば、mdat内の任意の映像フレームや音声データ、またはチャプタにアクセスする場合には、moov702のstsz714およびstco715に格納されている情報を用いればよい。   Therefore, for example, when accessing an arbitrary video frame, audio data, or chapter in mdat, information stored in stsz 714 and stco 715 of moov 702 may be used.

次に、再生モードについて、説明する。本実施例の撮像装置100は、再生モードにおいて、動画ファイルのチャプタに対応する動画データを削除することができる。なお、本実施例においては「ダイジェストムービーモード」において、動画ファイルにチャプタを付加するものとして説明した。しかし、以降の説明におけるチャプタについては、「ダイジェストムービーモード」において付加されたチャプタに限らず、動画記録モードや他の装置によって付加されたチャプタであっても構わない。   Next, the playback mode will be described. The imaging apparatus 100 according to the present embodiment can delete moving image data corresponding to a chapter of a moving image file in the reproduction mode. In the present embodiment, the “digest movie mode” has been described as adding a chapter to a moving image file. However, chapters in the following description are not limited to chapters added in the “digest movie mode”, but may be chapters added by the moving image recording mode or other devices.

本実施例の撮像装置100は、再生モードにおいて、静止画ファイルや動画ファイルの一覧画面を表示部140に表示する。なお、一覧画面は、静止画ファイルのみの一覧画面、動画ファイルのみの一覧画面、静止画ファイルと動画ファイル乃混在した一覧画面などを表示する。そして、指定された静止画ファイルを再生して、静止画ファイルの画像を表示部140に表示する。   The imaging apparatus 100 according to the present embodiment displays a list screen of still image files and moving image files on the display unit 140 in the reproduction mode. The list screen displays a list screen of only still image files, a list screen of only moving image files, a list screen in which still image files and moving image files are mixed, and the like. Then, the designated still image file is reproduced, and the image of the still image file is displayed on the display unit 140.

そして、CPU101は、ユーザによる操作部104への操作に応じて、選択された動画ファイルまたは静止画ファイルを記録媒体より再生して、対応する画像を表示部140に表示する。   Then, the CPU 101 reproduces the selected moving image file or still image file from the recording medium in accordance with an operation on the operation unit 104 by the user, and displays a corresponding image on the display unit 140.

静止画ファイルが選択された場合には、CPU101は、静止画ファイルの画像データを記録媒体151から読み出すように記録再生部150を制御する。そして、再生された画像データを復号するように符号化復号化処理部130を制御すると共に、表示部140に表示するように表示制御部141を制御する。   When the still image file is selected, the CPU 101 controls the recording / reproducing unit 150 to read out the image data of the still image file from the recording medium 151. Then, the encoding / decoding processing unit 130 is controlled so as to decode the reproduced image data, and the display control unit 141 is controlled so as to be displayed on the display unit 140.

動画ファイルが選択された場合には、CPU101は、静止画ファイルの画像データのうち初期フレームに対応する画像データを記録媒体151から読出すように記録再生部150を制御する。そして、再生された画像データを復号するように符号化復号化処理部130を制御するとともに、表示部140に表示するように表示制御部141を制御する。初期フレームは動画ファイルの動画データの最初のフレームであっても、前回再生を終了したときに表示していたフレームであってもよい。そして、再生開始の指示が操作部104より入力されると、CPU101は、初期フレームから順にフレームに対応する画像データを記録媒体151から読み出して表示部140に表示させてゆく。   When a moving image file is selected, the CPU 101 controls the recording / reproducing unit 150 so as to read image data corresponding to the initial frame from the image data of the still image file from the recording medium 151. Then, the encoding / decoding processing unit 130 is controlled so as to decode the reproduced image data, and the display control unit 141 is controlled so as to be displayed on the display unit 140. The initial frame may be the first frame of the moving image data of the moving image file or the frame that was displayed when the previous reproduction was finished. When an instruction to start reproduction is input from the operation unit 104, the CPU 101 reads image data corresponding to the frames from the recording medium 151 in order from the initial frame and displays them on the display unit 140.

また、動画ファイルが選択され、所望のフレーム画像が表示部140に表示されているときに、CPU101は、表示部140に操作パネルを表示するように表示制御部141を制御する。この操作パネルには、表示されたフレーム画像の属するチャプタの消去を示すアイコンが含まれており、このアイコンが選択されたことに応じて、CPU101は、フレーム画像の属するチャプタに対応する動画データを消去する。すなわち、消去対象のチャプタに属するフレーム画像を表示することでフレーム画像の指定またはチャプタの指定がされることになる。   Further, when a moving image file is selected and a desired frame image is displayed on the display unit 140, the CPU 101 controls the display control unit 141 to display an operation panel on the display unit 140. This operation panel includes an icon indicating deletion of a chapter to which the displayed frame image belongs. In response to selection of this icon, the CPU 101 displays moving image data corresponding to the chapter to which the frame image belongs. to erase. That is, a frame image or a chapter is designated by displaying a frame image belonging to the chapter to be erased.

次に、図5を用いて、再生モードにおいて所望の動画ファイルが選択された場合の動作について説明する。なお、図5のフロー図に示す処理は、CPU101がRAM102に展開したプログラムに基づいて、撮像装置100の各部を制御することにより、実行される処理である。また、ユーザによる操作は、ユーザが操作部104を操作することにより入力された操作である。   Next, the operation when a desired moving image file is selected in the playback mode will be described with reference to FIG. Note that the processing shown in the flowchart of FIG. 5 is processing that is executed by the CPU 101 controlling each unit of the imaging apparatus 100 based on a program developed in the RAM 102. Further, the operation by the user is an operation input by the user operating the operation unit 104.

(S501)
CPU101は、選択された動画ファイルのファイルヘッダを記録媒体151から読出すように記録再生部150を制御し、読出されたファイルヘッダをRAM102に一時的に記憶する。
(S501)
The CPU 101 controls the recording / playback unit 150 to read the file header of the selected moving image file from the recording medium 151, and temporarily stores the read file header in the RAM 102.

(S502)
次に、CPU101は、選択された動画ファイルの初期フレームの画像を表示部140に表示させる。そのために、CPU101は、初期フレームに対応する画像データのファイルオフセットとデータサイズをRAM102に記憶したファイルヘッダから特定し、特定された画像データを記録媒体151から読出すように記録再生部150を制御する。そして、CPU101は、読出された画像データを復号するように符号化復号化処理部130を制御し、復号された画像データを表示部140に表示するように表示制御部141を制御する。
(S502)
Next, the CPU 101 causes the display unit 140 to display an image of an initial frame of the selected moving image file. For this purpose, the CPU 101 specifies the file offset and data size of the image data corresponding to the initial frame from the file header stored in the RAM 102, and controls the recording / reproducing unit 150 to read the specified image data from the recording medium 151. To do. Then, the CPU 101 controls the encoding / decoding processing unit 130 to decode the read image data, and controls the display control unit 141 to display the decoded image data on the display unit 140.

(S503)
次に、CPU101は、選択された動画ファイルに対する操作を示すアイコンを含む操作パネルを表示部140に表示するように表示制御部141を制御する。動画ファイルに対する操作を示すアイコンには、「再生」、「ファイル削除」、「チャプタ消去」等を示すアイコンがある。「再生」は、動画ファイルのフレーム画像を順次再生させる操作である。「ファイル削除」は、選択中の動画ファイルを削除させる操作である。「チャプタ消去」は動画ファイルの各チャプタに対応する動画データを削除させる操作である。CPU101は、各操作に対応する制御を実行する。なお、操作パネルには、これ以外に「早送り」、「巻き戻し」、「スロー再生」などの操作を示すアイコンなどがあるが、これらの操作は、特徴的な構成に関わらないので説明を割愛する。なお、操作パネルに「戻る」アイコンを表示させてもよく、「戻る」アイコンが選択された場合には、CPU101は、再度、動画ファイルの一覧画面を表示するように表示制御部141を制御する。すなわち、動画再生処理を終了する。
(S503)
Next, the CPU 101 controls the display control unit 141 to display an operation panel including an icon indicating an operation on the selected moving image file on the display unit 140. Icons indicating operations on the moving image file include icons indicating “play”, “file deletion”, “chapter deletion”, and the like. “Playback” is an operation for sequentially playing back frame images of a moving image file. “Delete file” is an operation for deleting a selected moving image file. “Chapter deletion” is an operation of deleting moving image data corresponding to each chapter of the moving image file. The CPU 101 executes control corresponding to each operation. In addition, the operation panel also has icons indicating operations such as “fast forward”, “rewind”, “slow playback”, etc., but these operations are not related to the characteristic configuration, so the explanation is omitted. To do. Note that a “return” icon may be displayed on the operation panel. When the “return” icon is selected, the CPU 101 controls the display control unit 141 to display the moving image file list screen again. . That is, the moving image playback process ends.

(S511)
次に、CPU101は、操作パネルの「再生」を示すアイコンが操作されたか判定する。操作パネルの「再生」を示すアイコンが操作された場合は、処理をS512に移行する。一方、操作パネルの「再生」を示すアイコンが操作されていない場合は、処理をS521に移行する。
(S511)
Next, the CPU 101 determines whether the icon indicating “play” on the operation panel has been operated. If the icon indicating “play” on the operation panel is operated, the process proceeds to S512. On the other hand, when the icon indicating “play” on the operation panel is not operated, the process proceeds to S521.

(S512)
操作パネルの「再生」を示すアイコンが操作された場合(S511でYes)、CPU101は、初期フレームから順番にフレーム画像を表示部140に表示させる。すなわち、CPU101は、各フレームに対応する画像データを順次、記録媒体151から読出すように記録再生部150を制御し、読出した画像データを順次復号するように符号化復号化処理部130を制御する。そして、CPU101は、復号した画像データを表示部140に順次表示するように表示制御部141を制御する。読出し、復号、表示の間隔は、前述のtrakアトムのsttsアトムに記載された1サンプルあたりの時間である。すなわち、30フレーム毎秒であれば、0.033秒間隔でこの制御を行う。
(S512)
When the icon indicating “play” on the operation panel is operated (Yes in S511), the CPU 101 causes the display unit 140 to display frame images in order from the initial frame. That is, the CPU 101 controls the recording / reproducing unit 150 to sequentially read image data corresponding to each frame from the recording medium 151, and controls the encoding / decoding processing unit 130 to sequentially decode the read image data. To do. Then, the CPU 101 controls the display control unit 141 so that the decoded image data is sequentially displayed on the display unit 140. The interval between reading, decoding and display is the time per sample described in the stts atom of the trak atom. That is, if it is 30 frames per second, this control is performed at intervals of 0.033 seconds.

(S513)
次に、CPU101は、再生中の動画ファイルの一時停止操作が操作部104から入力されたか否かを判定する。一時停止操作がされた場合は、一時停止操作がされたときに表示されていたフレーム画像を表示部140に表示した状態で、処理をS503に移行する。また、一時停止操作がされていない場合は、処理をS514に移行する。
(S513)
Next, the CPU 101 determines whether or not a pause operation for the moving image file being played is input from the operation unit 104. If a pause operation has been performed, the process proceeds to S503 with the frame image displayed when the pause operation was performed displayed on the display unit 140. If the pause operation has not been performed, the process proceeds to S514.

(S514)
動画再生中に一時停止操作がされていない場合(S513でNo)、CPU101は、選択された動画ファイルの動画データを最後まで再生し終えたり、再生終了操作が操作部104から入力されたりしたかを判定する。再生終了である場合は、動画再生処理を終了し、再度、動画ファイルの一覧画面を表示するように表示制御部141を制御する。再生終了でない場合は、処理をS512に移行する。
(S514)
If the pause operation has not been performed during the video playback (No in S513), has the CPU 101 completed playback of the video data of the selected video file to the end or whether a playback end operation has been input from the operation unit 104? Determine. If the reproduction is finished, the moving image reproduction process is terminated, and the display control unit 141 is controlled to display the moving image file list screen again. If the reproduction has not ended, the process proceeds to S512.

(S521)
一方、操作パネルの「再生」を示すアイコンが操作されていない場合(S511でNo)、CPU101は、操作パネルの「ファイル削除」を示すアイコンが操作されたか判定する。「ファイル削除」を示すアイコンが操作された場合、処理をS522に移行する。「ファイル削除」を示すアイコンが操作されていない場合、処理をS531に移行する。
(S521)
On the other hand, when the icon indicating “play” on the operation panel is not operated (No in S511), the CPU 101 determines whether the icon indicating “delete file” on the operation panel is operated. If the icon indicating “delete file” is operated, the process proceeds to S522. If the icon indicating “delete file” is not operated, the process proceeds to S531.

(S522)
操作パネルの「ファイル削除」を示すアイコンが操作された場合(S521でYes)、CPU101は、表示部140に削除を実行してよいか問い合わせる画面を表示するように表示制御部141を制御する。そして、CPU101は、削除の実行が指示されたかを判定する。削除の実行が指示された場合、処理をS523に移行する。削除の実行が指示されなかった場合は処理をS503に移行する。
(S522)
When the icon indicating “delete file” on the operation panel is operated (Yes in S521), the CPU 101 controls the display control unit 141 to display a screen for inquiring whether the deletion can be executed on the display unit 140. Then, the CPU 101 determines whether execution of deletion is instructed. If deletion is instructed, the process proceeds to S523. If deletion is not instructed, the process proceeds to S503.

(S523)
削除の実行が指示された場合(S522でYes)、CPU101は、選択された動画ファイルを記録媒体151から削除するように記録再生部150を制御する。そして、動画再生処理を終了し、再度、動画ファイルの一覧画面を表示するように表示制御部141を制御する。
(S523)
When execution of deletion is instructed (Yes in S522), the CPU 101 controls the recording / playback unit 150 to delete the selected moving image file from the recording medium 151. Then, the moving image reproduction process is terminated, and the display control unit 141 is controlled to display the moving image file list screen again.

(S531)
一方、操作パネルの「ファイル削除」を示すアイコンが操作されていない場合(S521でNo)、CPU101は、操作パネルの「チャプタ消去」を示すアイコンが操作されたか判定する。「チャプタ消去」を示すアイコンが操作された場合、処理をS532に移行する。「チャプタ消去」を示すアイコンが操作されていない場合、処理をS503に移行する。
(S531)
On the other hand, when the icon indicating “file deletion” on the operation panel is not operated (No in S521), the CPU 101 determines whether the icon indicating “chapter deletion” on the operation panel is operated. When the icon indicating “Erase chapter” is operated, the process proceeds to S532. If the icon indicating “chapter deletion” is not operated, the process proceeds to S503.

(S532)
「チャプタ消去」を示すアイコンが操作された場合(S531でYes)、CPU101は、RAM102に記憶された動画ファイルのファイルヘッダに格納されたチャプタ管理情報を読み出す。図4に示すように、チャプタ管理情報には、各チャプタの開始フレーム、終了フレーム、開始時間、終了時間などの情報と共に、チャプタ番号なども記録されている。CPU101は、チャプタ管理情報に基づいて、動画ファイルの総チャプタ数を確認する。そして、CPU101は、総チャプタ数が1より大きいか否かを判定し、総チャプタ数が1より大きい場合、処理をS533に移行し、総チャプタ数が1以下である場合、処理をS536に移行する。なお、本実施例では総チャプタ数が1より大きいかどうかを判定するものとしたが、1以外の所定の閾値であっても良い。たとえば、総チャプタ数が4より大きい場合、処理をS533に移行し、総チャプタ数が4以下である場合、処理をS536に移行してもよい。
(S532)
When the icon indicating “chapter deletion” is operated (Yes in S531), the CPU 101 reads the chapter management information stored in the file header of the moving image file stored in the RAM 102. As shown in FIG. 4, the chapter management information includes information such as the start frame, end frame, start time, and end time of each chapter, as well as chapter numbers and the like. The CPU 101 confirms the total number of chapters of the moving image file based on the chapter management information. Then, the CPU 101 determines whether or not the total number of chapters is greater than 1. If the total number of chapters is greater than 1, the process proceeds to S533. If the total number of chapters is 1 or less, the process proceeds to S536. To do. In this embodiment, it is determined whether or not the total number of chapters is greater than 1. However, a predetermined threshold other than 1 may be used. For example, when the total number of chapters is greater than 4, the process may proceed to S533, and when the total number of chapters is 4 or less, the process may proceed to S536.

(S533)
総チャプタ数が1より大きい場合(S532でYes)、CPU101は、表示部140に現在表示されているフレームの属するチャプタの消去を実行してよいか問い合わせる画面を表示するように表示制御部141を制御する。そして、CPU101は、消去の実行が指示されたかを判定する。消去の実行が指示された場合、処理をS534に移行する。削除の実行が指示されなかった場合は処理をS503に移行する。
(S533)
When the total number of chapters is larger than 1 (Yes in S532), the CPU 101 causes the display control unit 141 to display a screen for inquiring whether to erase the chapter to which the frame currently displayed on the display unit 140 belongs. Control. Then, the CPU 101 determines whether execution of erasure has been instructed. If execution of erasure is instructed, the process proceeds to S534. If deletion is not instructed, the process proceeds to S503.

(S534)
消去の実行が指示された場合(S533でYes)、CPU101は、現在表示されているフレームの属するチャプタに対応する動画データの消去を実行する。この処理は以下の手順で実行される。まず、現在表示されているフレームと動画ファイルのファイルヘッダに格納されたチャプタ管理情報とに基づいて、現在表示されているフレームの属するチャプタを特定する。すなわち、ユーザにより一時停止されたフレームが指定されたフレームであり、指定されたフレームの属すると特定されたチャプタは指定されたチャプタである。そして、指定されたチャプタに対応する区間の動画データ(図7のテキストチャンク、音声チャンク、映像チャンク)を記録媒体151から消去する。チャプタに対応する区間の動画データは、図7に示すように、テキストチャンクが各チャプタに対応して一つずつ存在する。そのため、まず、映像用のtrakアトムのstcoアトムからテキストチャンクの先頭のファイルオフセットを取得する。そして、動画ファイルのファイルヘッダに格納されたチャプタ管理情報から消去対象のチャプタの最終フレーム番号を特定する。そして、映像用のtrakアトムのstcoアトムから消去対象のチャプタの最終フレームの画像データを格納した映像チャンクのファイルオフセットを、そして、stszアトムから最終フレームのデータサイズを取得し、映像チャンクの終端のファイルオフセットを取得する。これにより、チャプタに対応する動画データの先頭のファイルオフセットと終端のファイルオフセットを取得する。このようにして、消去対象のチャプタの動画データ(テキストチャンク、音声チャンク、映像チャンク)の先頭ファイルオフセットと、終端ファイルオフセットとを求めることができる。そして、その間のデータを読み飛ばすようにファイルシステムのクラスタチェーンを更新し、moovアトムの各データへのファイルオフセット等の情報を消去したデータ量に応じて更新する。
(S534)
When the execution of erasure is instructed (Yes in S533), the CPU 101 executes erasure of the moving image data corresponding to the chapter to which the currently displayed frame belongs. This process is executed according to the following procedure. First, the chapter to which the currently displayed frame belongs is specified based on the currently displayed frame and the chapter management information stored in the file header of the moving image file. That is, the frame temporarily suspended by the user is the designated frame, and the chapter specified to belong to the designated frame is the designated chapter. Then, the moving image data (text chunk, audio chunk, video chunk in FIG. 7) corresponding to the designated chapter is erased from the recording medium 151. As shown in FIG. 7, the moving image data in the section corresponding to the chapter includes one text chunk corresponding to each chapter. Therefore, first, the file offset at the beginning of the text chunk is acquired from the stco atom of the trak atom for video. Then, the last frame number of the chapter to be erased is specified from the chapter management information stored in the file header of the moving image file. Then, the file offset of the video chunk storing the image data of the final frame of the chapter to be erased is acquired from the stco atom of the video trak atom, and the data size of the final frame is acquired from the stsz atom. Get file offset. As a result, the first file offset and the last file offset of the moving image data corresponding to the chapter are acquired. In this way, it is possible to obtain the start file offset and end file offset of the moving image data (text chunk, audio chunk, video chunk) of the chapter to be erased. Then, the cluster chain of the file system is updated so as to skip the data in the meantime, and the information such as the file offset to each data of the moov atom is updated according to the deleted data amount.

(S535)
次に、CPU101は、消去したチャプタの次のチャプタの先頭のフレームに対応する画像データを記録媒体151から読みだすように記録再生部150を制御し、読みだされた画像データを復号するように符号化復号化処理部130を制御する。そして、復号された画像データを表示部140に表示するように表示制御部141を制御する。なお、消去対象のチャプタが最終チャプタであった場合には、動画ファイルの先頭のフレームに対応する画像データを表示部140に表示させる。そして、CPU101は、処理をS503に移行する。
(S535)
Next, the CPU 101 controls the recording / reproducing unit 150 so as to read the image data corresponding to the first frame of the chapter next to the erased chapter from the recording medium 151 so as to decode the read image data. The encoding / decoding processing unit 130 is controlled. Then, the display control unit 141 is controlled to display the decoded image data on the display unit 140. When the chapter to be erased is the last chapter, the display unit 140 displays image data corresponding to the first frame of the moving image file. Then, the CPU 101 shifts the process to S503.

(S536)
一方、S532の処理において、総チャプタ数が1以下である場合(S532でNo)、CPU101は、消去が実行できない旨を示す画像を表示部140に表示するように表示制御部141を制御する。すなわち、CPU101は、指定されたフレームの属するチャプタ(指定されたチャプタ)の消去の指示を受けたとしても、総チャプタ数が1以下である場合には、消去をしないように制御する(消去を禁止するように制御する)。
(S536)
On the other hand, when the total number of chapters is 1 or less in the processing of S532 (No in S532), the CPU 101 controls the display control unit 141 to display an image indicating that erasing cannot be performed on the display unit 140. That is, even if the CPU 101 receives an instruction to erase a chapter (designated chapter) to which the designated frame belongs, if the total number of chapters is 1 or less, the CPU 101 performs control so as not to erase (deletion is performed). Control to prohibit).

このように、本実施例の撮像装置100は、動画ファイルの総チャプタ数が所定の閾値以下である場合は、指定されたチャプタに対応する区間の動画データを消去しないように制御し。動画ファイルの総チャプタ数が所定の閾値を超える場合には、指定されたチャプタに対応する区間の動画データを消去するように制御する。   As described above, when the total number of chapters of the moving image file is equal to or smaller than the predetermined threshold, the imaging apparatus 100 according to the present embodiment performs control so as not to delete the moving image data in the section corresponding to the specified chapter. When the total number of chapters of the moving image file exceeds a predetermined threshold, control is performed so as to delete the moving image data in the section corresponding to the designated chapter.

このようにすることで、動画ファイルの動画データの大部分を消去する指示を受けた場合、動画ファイルの動画データの消去をしないように制御するので、動画の一部を消去するつもりの操作により動画データの大部分が消去されてしまう可能性を低減できる。また、特に、本実施例のように、「ダイジェストムービーモード」で記録を行う場合には、追記元の動画ファイルが意図せずに消去されてしまい、追記できなくなってしまうことが防止できる。   In this way, when receiving an instruction to erase most of the video data in the video file, control is performed so that the video data in the video file is not erased. The possibility that most of the moving image data is erased can be reduced. In particular, as in this embodiment, when recording is performed in the “digest movie mode”, it is possible to prevent the additional moving image file from being erased unintentionally and being unable to be additionally written.

なお、本実施例では、表示部140に表示されたフレームに対応するチャプタを消去する指示が入力された場合について説明した。しかし、動画ファイルを選択後、ファンクションキーなどの操作に応じて、チャプタ一覧を表示し、消去する対象のチャプタを指定するようにしても良い。   In the present embodiment, a case has been described in which an instruction to delete a chapter corresponding to a frame displayed on the display unit 140 is input. However, after selecting a moving image file, a chapter list may be displayed and a chapter to be erased may be designated in accordance with an operation such as a function key.

また、複数のチャプタを指定して消去対象にするようにしても良い。この場合にも、動画ファイルの総チャプタ数が所定の閾値以下である場合には動画データの消去を禁止しても良い。また、複数のチャプタを消去対象に指定できる場合、指定されたチャプタ数が動画ファイルの総チャプタ数に対して所定の割合以上である場合に消去を禁止しても良い。すなわち、(総チャプタ数)÷(消去対象のチャプタ数)が所定の閾値より大きい場合に消去を禁止する。たとえば所定の閾値は100%としてもよいし、50%としてもよく、ユーザが任意に指定できるようにしても良い。また、複数のチャプタを消去対象に指定できる場合、指定されたチャプタに対応する区間の動画データの再生時間またはフレーム数を算出し、動画ファイルの総再生時間または総フレーム数に対して所定の割合以上である場合に消去を禁止しても良い。すなわち、(総再生時間)÷(消去対象のチャプタの再生時間)が所定の閾値より大きい場合に消去を禁止する。または(総フレーム数)÷(消去対象のチャプタのフレーム数)が所定の閾値より大きい場合に消去を禁止する。たとえば所定の閾値は100%としても良いし、50%としてよく、ユーザが任意に指定できるようにしても良い。   In addition, a plurality of chapters may be designated as deletion targets. Also in this case, deletion of moving image data may be prohibited when the total number of chapters of the moving image file is equal to or less than a predetermined threshold. Further, when a plurality of chapters can be designated as erasure targets, erasure may be prohibited when the designated number of chapters is equal to or greater than a predetermined ratio with respect to the total number of chapters of the moving image file. That is, erasure is prohibited when (total number of chapters) / (number of chapters to be erased) is larger than a predetermined threshold. For example, the predetermined threshold value may be 100% or 50%, and may be arbitrarily designated by the user. In addition, when multiple chapters can be specified as erasure targets, the playback time or number of frames of the video data in the section corresponding to the specified chapter is calculated, and a predetermined ratio to the total playback time or total number of frames of the video file If this is the case, erasure may be prohibited. That is, erasure is prohibited when (total reproduction time) / (reproduction time of chapter to be erased) is greater than a predetermined threshold. Alternatively, erasure is prohibited when (total number of frames) / (number of chapter frames to be erased) is larger than a predetermined threshold. For example, the predetermined threshold may be 100% or 50%, and may be arbitrarily designated by the user.

また、本実施例においては、指定されたチャプタに対応する動画データの消去について説明したが、ユーザの操作により指定された区間の動画データを消去してもよい。この場合には、CPU101は、チャプタ数ではなく、消去対象の動画データの再生時間の動画ファイル全体の動画データの再生時間に対する割合が所定の閾値以上である場合には、動画データを消去しないように制御する。たとえば、動画ファイル全体の動画データの再生時間が、10分であって、消去対象の動画データの再生時間が8分である場合は、80%が削除されることになる。所定の閾値を50%としていた場合には、これを超えているので、CPU101は、消去対象の動画データの消去を行わないようにする。所定の閾値を100%に設定することもできる。また、所定の閾値よりも割合が小さい場合は、動画データの消去をする。なお、再生時間で無く、動画データのデータ量の動画ファイル全体のデータ量に対する割合に基づいて、消去対象の動画データを消去しないようにしても良い。すなわち、消去対象の動画データが、動画ファイルに対して占める割合に応じて、消去対象の動画データを消去しないようにしても良い。   In this embodiment, the deletion of the moving image data corresponding to the designated chapter has been described. However, the moving image data in the section specified by the user's operation may be deleted. In this case, the CPU 101 does not erase the moving image data when the ratio of the reproduction time of the moving image data to be deleted to the reproduction time of the moving image data of the entire moving image file is equal to or greater than a predetermined threshold instead of the number of chapters. To control. For example, when the reproduction time of the moving image data of the entire moving image file is 10 minutes and the reproduction time of the moving image data to be erased is 8 minutes, 80% is deleted. If the predetermined threshold value is 50%, it exceeds this value, so the CPU 101 does not erase the moving image data to be erased. The predetermined threshold can also be set to 100%. If the ratio is smaller than the predetermined threshold, the moving image data is deleted. Note that the moving image data to be deleted may not be deleted based on the ratio of the data amount of the moving image data to the data amount of the entire moving image file, not the reproduction time. That is, the deletion target moving image data may not be deleted in accordance with the ratio of the deletion target moving image data to the moving image file.

なお、本実施例においては、動画ファイルの総チャプタ数が所定数以下である場合には、動画データの消去をしないように制御したが、消去を実行してよいか問い合わせる画面を表示したうえで、消去が指示された場合には消去するようにしてもよい。   In this embodiment, when the total number of chapters in the video file is less than or equal to the predetermined number, the video data is controlled not to be erased. However, after displaying a screen for inquiring whether the video data can be erased. If deletion is instructed, the deletion may be performed.

また、総チャプタ数に基づいて消去対象の動画データを消去しないように制御するか、消去対象の動画データの動画ファイルに対する割合に基づいて消去対象の動画データを消去しないように制御するかを、切り替えられるようにしても良い。   Also, it is controlled not to delete the video data to be deleted based on the total number of chapters, or to control not to delete the video data to be deleted based on the ratio of the video data to be deleted to the video file, You may make it switch.

本実施例では、撮像装置を例にとって説明した。しかし、本実施例のように動画ファイルの一部の動画データを消去する編集処理を実行することができるものであれば、本発明を適用することができる。例えば、コンピュータ、タブレット型端末、スマートフォン、携帯電話、テレビ、等であっても良い。また、本実施例の削除処理をコンピュータに実行させる為のプログラムも本発明の思想に含まれる。   In this embodiment, the image pickup apparatus has been described as an example. However, the present invention can be applied as long as the editing process for deleting a part of the moving image data of the moving image file can be executed as in the present embodiment. For example, it may be a computer, a tablet terminal, a smartphone, a mobile phone, a television, or the like. A program for causing a computer to execute the deletion process of this embodiment is also included in the concept of the present invention.

本実施例においても、画像処理装置として、撮像装置を例に取って説明する。   Also in this embodiment, an image pickup apparatus will be described as an example of the image processing apparatus.

本実施例の撮像装置は、指定されたチャプタに対応する動画データを消去するときに、関連性の高いチャプタが存在する場合には消去を実行し、関連性の高いチャプタが存在しない場合には消去を禁止する。関連性の高いチャプタとは、本実施例においては、指定されたチャプタの動画データの撮影時刻から所定時間内または撮影位置から所定範囲において撮影された動画データに対応するチャプタである。   When erasing moving image data corresponding to a specified chapter, the image pickup apparatus according to the present embodiment performs erasure if a highly relevant chapter exists, and if no highly relevant chapter exists. Prohibit erasure. In this embodiment, highly relevant chapters are chapters corresponding to moving image data shot within a predetermined time from a shooting time of moving image data of a specified chapter or within a predetermined range from a shooting position.

本実施例の撮像装置は、再生モードの動作以外は、実施例1の撮像装置100と同様の動作を行い、ブロック構成は図1と同様である。そのため、図1のブロック構成を用いて、説明を行う。   The image pickup apparatus of the present embodiment performs the same operation as that of the image pickup apparatus 100 of the first embodiment except for the operation in the reproduction mode, and the block configuration is the same as FIG. Therefore, description will be made using the block configuration of FIG.

なお、ブロック構成の説明、「ダイジェストムービーモード」の説明は実施例1と同様であるため、説明を省略する。   The description of the block configuration and the description of the “digest movie mode” are the same as those in the first embodiment, and thus the description thereof is omitted.

次に、図6を用いて、本実施例の再生モードにおいて所望の動画ファイルが選択された場合の動作について説明する。なお、図6のフロー図に示す処理は、CPU101がRAM102に展開したプログラムに基づいて、撮像装置100の各部を制御することにより、実行される処理である。また、ユーザによる操作は、ユーザが操作部104を操作することにより入力された操作である。   Next, the operation when a desired moving image file is selected in the playback mode of this embodiment will be described with reference to FIG. Note that the process shown in the flowchart of FIG. 6 is a process executed by the CPU 101 controlling each unit of the imaging apparatus 100 based on a program developed in the RAM 102. Further, the operation by the user is an operation input by the user operating the operation unit 104.

(S601)
CPU101は、選択された動画ファイルのファイルヘッダを記録媒体151から読出すように記録再生部150を制御し、読出されたファイルヘッダをRAM102に一時的に記憶する。
(S601)
The CPU 101 controls the recording / playback unit 150 to read the file header of the selected moving image file from the recording medium 151, and temporarily stores the read file header in the RAM 102.

(S602)
次に、CPU101は、選択された動画ファイルの初期フレームの画像を表示部140に表示させる。そのために、CPU101は、初期フレームに対応する画像データのファイルオフセットとデータサイズをRAM102に記憶したファイルヘッダから特定し、特定された画像データを記録媒体151から読出すように記録再生部150を制御する。そして、CPU101は、読出された画像データを復号するように符号化復号化処理部130を制御し、復号された画像データを表示部140に表示するように表示制御部141を制御する。
(S602)
Next, the CPU 101 causes the display unit 140 to display an image of an initial frame of the selected moving image file. For this purpose, the CPU 101 specifies the file offset and data size of the image data corresponding to the initial frame from the file header stored in the RAM 102, and controls the recording / reproducing unit 150 to read the specified image data from the recording medium 151. To do. Then, the CPU 101 controls the encoding / decoding processing unit 130 to decode the read image data, and controls the display control unit 141 to display the decoded image data on the display unit 140.

(S603)
次に、CPU101は、選択された動画ファイルに対する操作を示すアイコンを含む操作パネルを表示部140に表示するように表示制御部141を制御する。動画ファイルに対する操作を示すアイコンには、「再生」、「ファイル削除」、「チャプタ消去」等を示すアイコンがある。「再生」は、動画ファイルのフレーム画像を順次再生させる操作である。「ファイル削除」は、選択中の動画ファイルを削除させる操作である。「チャプタ消去」は動画ファイルの各チャプタに対応する動画データを削除させる操作である。CPU101は、各操作に対応する制御を実行する。なお、操作パネルには、これ以外に「早送り」、「巻き戻し」、「スロー再生」などの操作を示すアイコンなどがあるが、これらの操作は、特徴的な構成に関わらないので説明を割愛する。なお、操作パネルに「戻る」アイコンを表示させてもよく、「戻る」アイコンが選択された場合には、CPU101は、再度、動画ファイルの一覧画面を表示するように表示制御部141を制御する。すなわち、動画再生処理を終了する。
(S603)
Next, the CPU 101 controls the display control unit 141 to display an operation panel including an icon indicating an operation on the selected moving image file on the display unit 140. Icons indicating operations on the moving image file include icons indicating “play”, “file deletion”, “chapter deletion”, and the like. “Playback” is an operation for sequentially playing back frame images of a moving image file. “Delete file” is an operation for deleting a selected moving image file. “Chapter deletion” is an operation of deleting moving image data corresponding to each chapter of the moving image file. The CPU 101 executes control corresponding to each operation. In addition, the operation panel also has icons indicating operations such as “fast forward”, “rewind”, “slow playback”, etc., but these operations are not related to the characteristic configuration, so the explanation is omitted. To do. Note that a “return” icon may be displayed on the operation panel. When the “return” icon is selected, the CPU 101 controls the display control unit 141 to display the moving image file list screen again. . That is, the moving image playback process ends.

(S611)
次に、CPU101は、操作パネルの「再生」を示すアイコンが操作されたか判定する。操作パネルの「再生」を示すアイコンが操作された場合は、処理をS612に移行する。一方、操作パネルの「再生」を示すアイコンが操作されていない場合は、処理をS621に移行する。
(S611)
Next, the CPU 101 determines whether the icon indicating “play” on the operation panel has been operated. If the icon indicating “play” on the operation panel is operated, the process proceeds to S612. On the other hand, if the icon indicating “play” on the operation panel is not operated, the process proceeds to S621.

(S612)
操作パネルの「再生」を示すアイコンが操作された場合(S611でYes)、CPU101は、初期フレームから順番にフレーム画像を表示部140に表示させる。すなわち、CPU101は、各フレームに対応する画像データを順次、記録媒体151から読出すように記録再生部150を制御し、読出した画像データを順次復号するように符号化復号化処理部130を制御する。そして、CPU101は、復号した画像データを表示部140に順次表示するように表示制御部141を制御する。読出し、復号、表示の間隔は、前述のtrakアトムのsttsアトムに記載された1サンプルあたりの時間である。すなわち、30フレーム毎秒であれば、0.033秒間隔でこの制御を行う。
(S612)
When the icon indicating “play” on the operation panel is operated (Yes in S611), the CPU 101 causes the display unit 140 to display frame images in order from the initial frame. That is, the CPU 101 controls the recording / reproducing unit 150 to sequentially read image data corresponding to each frame from the recording medium 151, and controls the encoding / decoding processing unit 130 to sequentially decode the read image data. To do. Then, the CPU 101 controls the display control unit 141 so that the decoded image data is sequentially displayed on the display unit 140. The interval between reading, decoding and display is the time per sample described in the stts atom of the trak atom. That is, if it is 30 frames per second, this control is performed at intervals of 0.033 seconds.

(S613)
次に、CPU101は、再生中の動画ファイルの一時停止操作が操作部104から入力されたか否かを判定する。一時停止操作がされた場合は、一時停止操作がされたときに表示されていたフレーム画像を表示部140に表示した状態で、処理をS603に移行する。また、一時停止操作がされていない場合は、処理をS614に移行する。
(S613)
Next, the CPU 101 determines whether or not a pause operation for the moving image file being played is input from the operation unit 104. When the pause operation is performed, the process proceeds to S603 with the frame image displayed when the pause operation is performed displayed on the display unit 140. If the pause operation has not been performed, the process proceeds to S614.

(S614)
動画再生中に一時停止操作がされていない場合(S613でNo)、CPU101は、選択された動画ファイルの動画データを最後まで再生し終えたり、再生終了操作が操作部104から入力されたりしたかを判定する。再生終了である場合は、動画再生処理を終了し、再度、動画ファイルの一覧画面を表示するように表示制御部141を制御する。再生終了でない場合は、処理をS612に移行する。
(S614)
If the pause operation has not been performed during the playback of the video (No in S613), has the CPU 101 completed playback of the video data of the selected video file, or has the playback end operation been input from the operation unit 104? Determine. If the reproduction is finished, the moving image reproduction process is terminated, and the display control unit 141 is controlled to display the moving image file list screen again. If it is not the end of reproduction, the process proceeds to S612.

(S621)
一方、操作パネルの「再生」を示すアイコンが操作されていない場合(S611でNo)、CPU101は、操作パネルの「ファイル削除」を示すアイコンが操作されたか判定する。「ファイル削除」を示すアイコンが操作された場合、処理をS622に移行する。「ファイル削除」を示すアイコンが操作されていない場合、処理をS631に移行する。
(S621)
On the other hand, when the icon indicating “play” on the operation panel is not operated (No in S611), the CPU 101 determines whether the icon indicating “delete file” on the operation panel is operated. If the icon indicating “delete file” is operated, the process proceeds to S622. If the icon indicating “delete file” is not operated, the process proceeds to S631.

(S622)
操作パネルの「ファイル削除」を示すアイコンが操作された場合(S621でYes)、CPU101は、表示部140に削除を実行してよいか問い合わせる画面を表示するように表示制御部141を制御する。そして、CPU101は、削除の実行が指示されたかを判定する。削除の実行が指示された場合、処理をS623に移行する。削除の実行が指示されなかった場合は処理をS603に移行する。
(S622)
When the icon indicating “delete file” on the operation panel is operated (Yes in S621), the CPU 101 controls the display control unit 141 to display a screen for inquiring whether the deletion can be executed on the display unit 140. Then, the CPU 101 determines whether execution of deletion is instructed. If deletion is instructed, the process proceeds to S623. If deletion is not instructed, the process proceeds to S603.

(S623)
削除の実行が指示された場合(S622でYes)、CPU101は、選択された動画ファイルを記録媒体151から削除するように記録再生部150を制御する。そして、動画再生処理を終了し、再度、動画ファイルの一覧画面を表示するように表示制御部141を制御する。
(S623)
When execution of deletion is instructed (Yes in S622), the CPU 101 controls the recording / playback unit 150 to delete the selected moving image file from the recording medium 151. Then, the moving image reproduction process is terminated, and the display control unit 141 is controlled to display the moving image file list screen again.

(S631)
一方、操作パネルの「ファイル削除」を示すアイコンが操作されていない場合(S621でNo)、CPU101は、操作パネルの「チャプタ消去」を示すアイコンが操作されたか判定する。「チャプタ消去」を示すアイコンが操作された場合、処理をS632に移行する。「チャプタ消去」を示すアイコンが操作されていない場合、処理をS603に移行する。
(S631)
On the other hand, when the icon indicating “file deletion” on the operation panel has not been operated (No in S621), the CPU 101 determines whether the icon indicating “chapter deletion” on the operation panel has been operated. If the icon indicating “chapter deletion” is operated, the process proceeds to S632. If the icon indicating “chapter deletion” is not operated, the process proceeds to S603.

(S632)
「チャプタ消去」を示すアイコンが操作された場合(S631でYes)、CPU101は、RAM102に記憶された動画ファイルのファイルヘッダに格納されたチャプタ管理情報を読み出す。図4に示すように、チャプタ管理情報には、各チャプタの開始フレーム、終了フレーム、開始時間、終了時間などの情報と共に、チャプタ番号なども記録されている。CPU101は、チャプタ管理情報に基づいて、現在表示されているフレームの属するチャプタを特定する。この特定されたチャプタは、本実施例の消去対象のチャプタとなる。CPU101は、チャプタ管理情報またはチャプタに対応する動画データのテキストチャンクに記載された撮影時刻情報から、消去対象のチャプタの動画データの撮影時刻を取得する。
(S632)
When the icon indicating “chapter deletion” is operated (Yes in S631), the CPU 101 reads the chapter management information stored in the file header of the moving image file stored in the RAM 102. As shown in FIG. 4, the chapter management information includes information such as the start frame, end frame, start time, and end time of each chapter, as well as chapter numbers and the like. The CPU 101 identifies the chapter to which the currently displayed frame belongs based on the chapter management information. This identified chapter is a chapter to be erased in the present embodiment. The CPU 101 acquires the shooting time of the moving image data of the chapter to be erased from the shooting time information described in the chapter management information or the text chunk of the moving image data corresponding to the chapter.

(S633)
次に、CPU101は、チャプタ管理情報または各チャプタに対応する動画データのテキストチャンクに記載された撮影時刻情報から、他のチャプタの撮影時刻を取得して、指定されたチャプタの動画データの撮影時刻と比較する。そして、指定されたチャプタの動画データの撮影時刻から所定時間内に撮影された動画データに対応するチャプタを関連するチャプタであると判定する。本実施例では例えば、所定時間内を1分以内とする。本実施例においては、「ダイジェストムービーモード」での撮影間隔が1分以内であれば撮影間隔も1分以内となる。たとえば、図4においては、チャプタ番号2と3のチャプタタイトルに記載された情報から、撮影された間隔が41秒であることがわかる。そのためチャプタ2が指定された場合は、チャプタ2の動画データに対して、チャプタ3は関連するチャプタであると判定される。なお、本実施例では、チャプタタイトルとして、撮影時刻から生成された情報を用いている例を示している。
(S633)
Next, the CPU 101 acquires the shooting time of another chapter from the shooting time information described in the chapter management information or the text chunk of the moving image data corresponding to each chapter, and the shooting time of the moving image data of the designated chapter. Compare with And it determines with the chapter corresponding to the moving image data image | photographed within the predetermined time from the imaging | photography time of the moving image data of the designated chapter being a relevant chapter. In this embodiment, for example, the predetermined time is within 1 minute. In this embodiment, if the shooting interval in the “digest movie mode” is within one minute, the shooting interval is also within one minute. For example, in FIG. 4, it can be seen from the information described in the chapter titles of chapter numbers 2 and 3 that the shooting interval is 41 seconds. Therefore, when chapter 2 is designated, it is determined that chapter 3 is a related chapter with respect to moving image data of chapter 2. In the present embodiment, an example is shown in which information generated from the shooting time is used as the chapter title.

(S634)
次に、CPU101は、指定されたチャプタに関連すると判定されたチャプタ(撮影時刻が所定時間内のチャプタ)があるか否かを判定する。そして、CPU101は、指定されたチャプタに関連すると判定されたチャプタがある場合は、処理をS635に移行し、関連すると判定されたチャプタがない場合には処理をS638に移行する。なお、本実施例では関連すると判定されたチャプタが「ある」か「ない」かを判定したが、関連すると判定されたチャプタの数が所定数より「多い」か「少ない」かに応じて、S635の処理を行うか、S638の処理を行うかを判定しても良い。
(S634)
Next, the CPU 101 determines whether there is a chapter determined to be related to the specified chapter (a chapter whose shooting time is within a predetermined time). If there is a chapter determined to be related to the designated chapter, the CPU 101 proceeds to S635, and if there is no chapter determined to be related, the process proceeds to S638. In this embodiment, it is determined whether the chapter determined to be related is `` present '' or `` not '', but depending on whether the number of chapters determined to be related is `` more '' or `` less '' than a predetermined number, It may be determined whether the process of S635 is performed or the process of S638 is performed.

(S635)
CPU101は、関連すると判定されたチャプタがある場合(S634でYes)、CPU101は、表示部140に現在表示されているフレームの属するチャプタの消去を実行してよいか問い合わせる画面を表示するように表示制御部141を制御する。そして、CPU101は、消去の実行が指示されたかを判定する。消去の実行が指示された場合、処理をS636に移行する。削除の実行が指示されなかった場合は処理をS603に移行する。
(S635)
When there is a chapter determined to be related (Yes in S634), the CPU 101 displays a screen asking whether to delete the chapter to which the frame currently displayed on the display unit 140 belongs. The controller 141 is controlled. Then, the CPU 101 determines whether execution of erasure has been instructed. If execution of erasure is instructed, the process proceeds to S636. If deletion is not instructed, the process proceeds to S603.

(S636)
消去の実行が指示された場合(S635でYes)、CPU101は、現在表示されているフレームの属するチャプタ(指定されたチャプタ)に対応する動画データの消去を実行する。この処理は以下の手順で実行される。まず、現在表示されているフレームのフレーム番号と、各チャプタとフレームの関係を示すチャプタ情報とに基づいて、現在表示されているフレームの属するチャプタを特定する。そして、特定されたチャプタに対応する動画データ(図7のテキストチャンク、音声チャンク、映像チャンク)を記録媒体151から消去する。チャプタに対応する動画データは、図7に示すように、テキストチャンクが各チャプタに対応して一つずつ存在する。そのため、まず、映像用のtrakアトムのstcoアトムからテキストチャンクのファイルオフセットを取得する。そして、映像用のtrakアトムのstcoアトムから消去対象のチャプタの最終フレームの画像データを格納した映像チャンクのファイルオフセットを、そして、stszアトムから最終フレームのデータサイズを取得し、映像チャンクの終端のファイルオフセットを取得する。これにより、チャプタに対応する動画データの先頭のファイルオフセットと終端のファイルオフセットを取得する。そして、その間のデータを読み飛ばすようにファイルシステムのクラスタチェーンを更新し、moovアトムの各データへのファイルオフセット等の情報を消去したデータ量に応じて更新する。
(S636)
When execution of erasure is instructed (Yes in S635), the CPU 101 executes erasure of moving image data corresponding to the chapter to which the currently displayed frame belongs (designated chapter). This process is executed according to the following procedure. First, the chapter to which the currently displayed frame belongs is specified based on the frame number of the currently displayed frame and the chapter information indicating the relationship between each chapter and the frame. Then, the moving image data (text chunk, audio chunk, video chunk in FIG. 7) corresponding to the specified chapter is erased from the recording medium 151. As shown in FIG. 7, moving image data corresponding to chapters includes one text chunk corresponding to each chapter. Therefore, first, the file offset of the text chunk is acquired from the stco atom of the trak atom for video. Then, the file offset of the video chunk storing the image data of the last frame of the chapter to be erased is acquired from the stco atom of the video trak atom, and the data size of the final frame is acquired from the stsz atom, and the end of the video chunk is acquired. Get file offset. As a result, the first file offset and the last file offset of the moving image data corresponding to the chapter are acquired. Then, the cluster chain of the file system is updated so as to skip the data in the meantime, and the information such as the file offset to each data of the moov atom is updated according to the deleted data amount.

(S637)
次に、CPU101は、消去対象のチャプタの次のチャプタの先頭のフレームに対応する画像データを記録媒体151から読みだすように記録再生部150を制御し、読みだされた画像データを復号するように符号化復号化処理部130を制御する。そして、復号された画像データを表示部140に表示するように表示制御部141を制御する。なお、消去対象のチャプタが最終チャプタであった場合には、動画ファイルの先頭のフレームに対応する画像データを表示部140に表示させる。そして、CPU101は、処理をS603に移行する。
(S637)
Next, the CPU 101 controls the recording / reproducing unit 150 so as to read the image data corresponding to the first frame of the next chapter of the chapter to be erased from the recording medium 151, and decodes the read image data. The encoding / decoding processing unit 130 is controlled. Then, the display control unit 141 is controlled to display the decoded image data on the display unit 140. When the chapter to be erased is the last chapter, the display unit 140 displays image data corresponding to the first frame of the moving image file. Then, the CPU 101 shifts the process to S603.

(S638)
一方、S634の処理において、関連すると判定されたチャプタがない場合(S634でNo)、CPU101は、消去が実行できない旨を示す画像を表示部140に表示するように表示制御部141を制御する。
(S638)
On the other hand, when there is no chapter determined to be related in the process of S634 (No in S634), the CPU 101 controls the display control unit 141 to display an image indicating that erasure cannot be performed on the display unit 140.

このように、本実施例の撮像装置100は、指定されたチャプタの撮影時刻から所定時間内に撮影された動画データに対応するチャプタがない場合は、指定されたチャプタに対応する動画データの消去しないように制御し。指定されたチャプタの撮影時刻から所定時間内に撮影された動画データに対応するチャプタがある場合は、指定されたチャプタに対応する動画データの消去するように制御している。   As described above, when there is no chapter corresponding to the moving image data shot within a predetermined time from the shooting time of the designated chapter, the imaging apparatus 100 according to the present embodiment deletes the moving image data corresponding to the designated chapter. Control not to. When there is a chapter corresponding to the moving image data shot within a predetermined time from the shooting time of the specified chapter, the moving image data corresponding to the specified chapter is controlled to be deleted.

このようにすることで、消去対象の動画データと類似する可能性のある動画データが所定数存在する場合には、消去対象の動画データを消去する。また、消去対象の動画データと類似する可能性のある動画データが所定数存在しない場合には、消去対象の動画データを消去しない。ようにすることができる。すなわち、必要なシーンの大部分を削除してしまうような場合に、動画ファイルの動画データの消去をしないように制御するので、動画の一部を削除するつもりの操作により動画データの大部分が消去されてしまう可能性を低減できる。また、特に、本実施例のように、「ダイジェストムービーモード」で記録を行う場合には、特に、追記元の動画ファイルが意図せずに削除されてしまい、追記できなくなってしまうことが防止できる。   In this way, when there is a predetermined number of moving image data that may be similar to the moving image data to be deleted, the moving image data to be deleted is deleted. If there is no predetermined number of moving image data that may be similar to the moving image data to be deleted, the moving image data to be deleted is not deleted. Can be. In other words, when most of the necessary scenes are deleted, the video data in the video file is controlled not to be erased, so most of the video data is deleted by the operation intended to delete a part of the video. The possibility of being erased can be reduced. Further, in particular, when recording is performed in the “digest movie mode” as in the present embodiment, it is possible to prevent that the original video file is deleted unintentionally and cannot be additionally recorded. .

なお、本実施例の撮像装置100は、指定されたチャプタの撮影時刻から所定時間内に撮影された動画データに対応するチャプタがない場合は、指定されたチャプタに対応する動画データの消去しないように制御し。指定されたチャプタの撮影時刻から所定時間内に撮影された動画データに対応するチャプタがある場合は、指定されたチャプタに対応する動画データの消去するように制御している。しかし、たとえば、指定されたチャプタの撮影時刻から所定時間内に撮影された動画データに対応するチャプタの数が所定数以下の場合は、指定されたチャプタに対応する動画データの消去しないように制御し。指定されたチャプタの撮影時刻から所定時間内に撮影された動画データに対応するチャプタ数が所定数より多い場合は、指定されたチャプタに対応する動画データの消去するように制御してもよい。また、所定時間は任意の値に指定可能であって、ユーザが選択できるようにしてもよい。また、所定数はン任意の値に指定可能であって、ユーザが選択できるようにしても良い。   Note that the imaging apparatus 100 according to the present embodiment does not delete the moving image data corresponding to the specified chapter when there is no chapter corresponding to the moving image data captured within a predetermined time from the shooting time of the specified chapter. To control. When there is a chapter corresponding to the moving image data shot within a predetermined time from the shooting time of the specified chapter, the moving image data corresponding to the specified chapter is controlled to be deleted. However, for example, when the number of chapters corresponding to moving image data shot within a predetermined time from the shooting time of a specified chapter is less than or equal to a predetermined number, control is performed so that the moving image data corresponding to the specified chapter is not deleted. Yes. When the number of chapters corresponding to the moving image data shot within a predetermined time from the shooting time of the specified chapter is larger than the predetermined number, the moving image data corresponding to the specified chapter may be controlled to be deleted. Further, the predetermined time can be designated as an arbitrary value and may be selected by the user. Further, the predetermined number can be designated as an arbitrary value and can be selected by the user.

なお、本実施例の撮像装置100は、指定されたチャプタの撮影時刻から所定時間内に撮影された動画データに対応するチャプタを指定されたチャプタに関連するチャプタであると判定し。指定されたチャプタに関連するチャプタがない場合は、指定されたチャプタに対応する動画データの消去しないように制御し。指定されたチャプタに関連するチャプタがある場合は、指定されたチャプタに対応する動画データの消去するように制御している。しかし、指定されたチャプタに関連するチャプタを、指定されたチャプタの撮影位置から所定範囲内で撮影された動画データに対応するチャプタとしてもよい。また、指定されたチャプタに関連するチャプタを、指定されたチャプタの撮影位置から所定範囲内で撮影され、かつ、指定されたチャプタの撮影時刻から所定時間内に撮影された動画データに対応するチャプタとしてもよい。   Note that the imaging apparatus 100 according to the present embodiment determines that the chapter corresponding to the moving image data shot within a predetermined time from the shooting time of the specified chapter is a chapter related to the specified chapter. When there is no chapter related to the specified chapter, control is performed so as not to delete the moving image data corresponding to the specified chapter. When there is a chapter related to the designated chapter, the moving image data corresponding to the designated chapter is controlled to be deleted. However, the chapter associated with the designated chapter may be a chapter corresponding to moving image data photographed within a predetermined range from the photographing position of the designated chapter. In addition, a chapter associated with the specified chapter is captured within a predetermined range from the shooting position of the specified chapter, and a chapter corresponding to moving image data shot within a predetermined time from the shooting time of the specified chapter. It is good.

また、実施例2においてさらに、実施例1のように、選択された動画ファイルのチャプタ数が所定数以下である場合には、消去対象のチャプタに対応する動画データの消去しないように制御してもよい。すなわち、実施例2の条件及び実施例1の条件に基づいて、消去対象のチャプタに対応する動画データの消去しないように制御してもよい。また、実施例1の条件に基づいて、消去対象のチャプタに対応する動画データの消去しないように制御するか、実施例2の条件に基づいて、消去対象のチャプタに対応する動画データの消去しないように制御するかを切り替えるようにしても良い。   Further, in the second embodiment, as in the first embodiment, when the number of chapters of the selected moving image file is equal to or less than a predetermined number, control is performed so as not to delete moving image data corresponding to the chapter to be deleted. Also good. That is, based on the conditions of the second embodiment and the first embodiment, it may be controlled not to delete the moving image data corresponding to the chapter to be deleted. Further, based on the condition of the first embodiment, control is performed so as not to delete the moving image data corresponding to the chapter to be deleted, or the moving image data corresponding to the chapter to be deleted is not deleted based on the condition of the second embodiment. You may make it switch whether it controls.

本実施例では、撮像装置を例にとって説明した。しかし、本実施例のように動画ファイルの一部の動画データを消去する編集処理を実行することができるものであれば、本発明を適用することができる。例えば、コンピュータ、タブレット型端末、スマートフォン、携帯電話、テレビ、等であっても良い。また、本実施例の削除処理をコンピュータに実行させる為のプログラムも本発明の思想に含まれる。   In this embodiment, the image pickup apparatus has been described as an example. However, the present invention can be applied as long as the editing process for deleting a part of the moving image data of the moving image file can be executed as in the present embodiment. For example, it may be a computer, a tablet terminal, a smartphone, a mobile phone, a television, or the like. A program for causing a computer to execute the deletion process of this embodiment is also included in the concept of the present invention.

(他の実施形態)
上述の実施形態は、システム或は装置のコンピュータ(或いは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 (15)

記録媒体に記録された動画ファイルを再生する再生手段と、
前記動画ファイルの指定された区間の動画データを消去する消去手段と、
前記指定された区間が前記動画ファイルの動画データに対して所定の割合以上である場合に、前記指定された区間の動画データの消去をしないように前記消去手段を制御し、前記指定された区間が前記動画ファイルの動画データに対して所定の割合より小さい場合に、前記指定された区間の動画データの消去をするように前記消去手段を制御する制御手段とを有することを特徴とする画像処理装置。
Playback means for playing back a moving image file recorded on a recording medium;
Erasing means for erasing the video data of a specified section of the video file;
When the specified section is equal to or greater than a predetermined ratio with respect to the moving image data of the moving image file, the erasure unit is controlled not to delete the moving image data of the specified section, and the specified section Control means for controlling the erasing means to erase the moving picture data in the designated section when the video data is smaller than a predetermined ratio with respect to the moving picture data of the moving picture file. apparatus.
前記指定された区間が前記動画ファイルの動画データに対して100%である場合に、前記指定された区間の動画データの消去をしないように前記消去手段を制御する制御手段とを有することを特徴とする画像処理装置。   Control means for controlling the erasing means so as not to erase the moving picture data of the designated section when the designated section is 100% of the moving picture data of the moving picture file. An image processing apparatus. 記録媒体に記録された複数のチャプタに対応する動画データを含む動画ファイルを再生する再生手段と、
前記動画ファイルの指定されたチャプタに対応する動画データを消去する消去手段と、
前記動画ファイルの総チャプタ数が所定数以下である場合に、前記動画ファイルの指定されたチャプタに対応する動画データを消去しないように前記消去手段を制御し、前記動画ファイルの総チャプタ数が所定数より多い場合に、前記動画ファイルの指定されたチャプタに対応する動画データを消去するように前記消去手段を制御する制御手段とを有することを特徴とする画像処理装置。
Reproducing means for reproducing a moving image file including moving image data corresponding to a plurality of chapters recorded on a recording medium;
Erasing means for erasing the video data corresponding to the specified chapter of the video file;
When the total number of chapters of the video file is equal to or less than a predetermined number, the erasure unit is controlled not to delete the video data corresponding to the specified chapter of the video file, and the total number of chapters of the video file is predetermined. An image processing apparatus comprising: a control unit that controls the erasing unit so as to erase moving image data corresponding to a specified chapter of the moving image file when the number is larger than the number.
記録媒体に記録された複数のチャプタに対応する動画データを含む動画ファイルを再生する再生手段と、
前記動画ファイルの指定されたチャプタに対応する動画データを消去する消去手段と、
前記動画ファイルの総チャプタ数が所定数以下である場合に、前記動画ファイルの指定されたチャプタに対応する動画データを消去しないように前記消去手段を制御し、前記動画ファイルの総チャプタ数が所定数より多い場合に、前記動画ファイルの指定されたチャプタに対応する動画データを消去するように前記消去手段を制御する制御手段とを有することを特徴とする画像処理装置。
Reproducing means for reproducing a moving image file including moving image data corresponding to a plurality of chapters recorded on a recording medium;
Erasing means for erasing the video data corresponding to the specified chapter of the video file;
When the total number of chapters of the video file is equal to or less than a predetermined number, the erasure unit is controlled not to delete the video data corresponding to the specified chapter of the video file, and the total number of chapters of the video file is predetermined. An image processing apparatus comprising: a control unit that controls the erasing unit so as to erase moving image data corresponding to a specified chapter of the moving image file when the number is larger than the number.
記録媒体に記録された複数のチャプタに対応する動画データを含む動画ファイルを再生する再生手段と、
前記動画ファイルの指定されたチャプタに対応する動画データを消去する消去手段と、
前記指定されたチャプタに関連するチャプタの数が所定数以下である場合には、前記動画ファイルの指定されたチャプタに対応する動画データを消去しないように前記消去手段を制御し、前記動画ファイルの指定されたチャプタに関連するチャプタの数が所定数より多い場合に、前記動画ファイルの指定されたチャプタに対応する動画データを消去するように前記消去手段を制御する制御手段とを有することを特徴とする画像処理装置。
Reproducing means for reproducing a moving image file including moving image data corresponding to a plurality of chapters recorded on a recording medium;
Erasing means for erasing the video data corresponding to the specified chapter of the video file;
When the number of chapters related to the specified chapter is equal to or less than a predetermined number, the erasure unit is controlled so as not to delete the moving image data corresponding to the specified chapter of the moving image file. Control means for controlling the erasure means so as to erase the moving image data corresponding to the specified chapter of the moving image file when the number of chapters related to the specified chapter is larger than a predetermined number. An image processing apparatus.
前記指定されたチャプタに関連するチャプタとは、前記指定されたチャプタの撮影時刻から所定時間内に撮影された動画データのチャプタであることを特徴とする請求項5記載の画像処理装置。   6. The image processing apparatus according to claim 5, wherein the chapter related to the designated chapter is a chapter of moving image data photographed within a predetermined time from the photographing time of the designated chapter. 前記指定されたチャプタに関連するチャプタとは、前記指定されたチャプタの撮影位置から所定範囲内で撮影された動画データのチャプタであることを特徴とする請求項5記載の画像処理装置。   6. The image processing apparatus according to claim 5, wherein the chapter associated with the designated chapter is a chapter of moving image data photographed within a predetermined range from the photographing position of the designated chapter. 記録媒体に記録された動画ファイルを再生する再生ステップと、
前記動画ファイルの指定された区間が前記動画ファイルの動画データに対して所定の割合以上である場合に、前記指定された区間の動画データの消去をしないように制御し、前記指定された区間が前記動画ファイルの動画データに対して所定の割合より小さい場合に、前記指定された区間の動画データの消去をするように制御する制御ステップとを有することを特徴とする画像処理方法。
A playback step of playing back a video file recorded on the recording medium;
When the specified section of the video file is equal to or greater than a predetermined ratio with respect to the video data of the video file, control is performed so as not to delete the video data of the specified section. And a control step of controlling to delete the moving image data in the designated section when the moving image data is smaller than a predetermined ratio with respect to the moving image data of the moving image file.
前記制御ステップにおいて、前記指定された区間が前記動画ファイルの動画データに対して100%である場合に、前記指定された区間の動画データの消去をしないように制御する制御ステップとを有することを特徴とする請求項8記載の画像処理方法。   And a control step for controlling the video data in the designated section not to be deleted when the designated section is 100% of the video data of the video file. 9. The image processing method according to claim 8, wherein: 記録媒体に記録された複数のチャプタに対応する動画データを含む動画ファイルを再生する再生ステップと、
前記動画ファイルの総チャプタ数が所定数以下である場合に、前記動画ファイルの指定されたチャプタに対応する動画データを消去しないように制御し、前記動画ファイルの総チャプタ数が所定数より多い場合に、前記動画ファイルの指定されたチャプタに対応する動画データを消去するように制御する制御ステップとを有することを特徴とする画像処理方法。
A reproduction step of reproducing a moving image file including moving image data corresponding to a plurality of chapters recorded on the recording medium;
When the total number of chapters of the video file is less than a predetermined number, the video data corresponding to the specified chapter of the video file is controlled not to be deleted, and the total number of chapters of the video file is larger than the predetermined number And a control step of controlling to delete moving image data corresponding to a specified chapter of the moving image file.
記録媒体に記録された複数のチャプタに対応する動画データを含む動画ファイルを再生する再生ステップと、
前記動画ファイルの総チャプタ数が所定数以下である場合に、前記動画ファイルの指定されたチャプタに対応する動画データを消去しないように制御し、前記動画ファイルの総チャプタ数が所定数より多い場合に、前記動画ファイルの指定されたチャプタに対応する動画データを消去するように制御する制御ステップとを有することを特徴とする画像処理方法。
A reproduction step of reproducing a moving image file including moving image data corresponding to a plurality of chapters recorded on the recording medium;
When the total number of chapters of the video file is less than a predetermined number, the video data corresponding to the specified chapter of the video file is controlled not to be deleted, and the total number of chapters of the video file is larger than the predetermined number And a control step of controlling to delete moving image data corresponding to a specified chapter of the moving image file.
記録媒体に記録された複数のチャプタに対応する動画データを含む動画ファイルを再生する再生ステップと、
前記動画ファイルの指定されたチャプタに関連するチャプタの数が所定数以下である場合には、前記動画ファイルの指定されたチャプタに対応する動画データを消去しないように制御し、前記動画ファイルの指定されたチャプタに関連するチャプタの数が所定数より多い場合に、前記動画ファイルの指定されたチャプタに対応する動画データを消去するように制御する制御ステップとを有することを特徴とする画像処理方法。
A reproduction step of reproducing a moving image file including moving image data corresponding to a plurality of chapters recorded on the recording medium;
When the number of chapters related to the specified chapter of the video file is equal to or less than a predetermined number, control is performed so as not to delete the video data corresponding to the specified chapter of the video file, and the specification of the video file And a control step for controlling to delete moving image data corresponding to a specified chapter of the moving image file when the number of chapters related to the specified chapter is greater than a predetermined number. .
前記指定されたチャプタに関連するチャプタとは、前記指定されたチャプタの撮影時刻から所定時間内に撮影された動画データのチャプタであることを特徴とする請求項12記載の画像処理方法。   13. The image processing method according to claim 12, wherein the chapter related to the designated chapter is a chapter of moving image data photographed within a predetermined time from the photographing time of the designated chapter. 前記指定されたチャプタに関連するチャプタとは、前記指定されたチャプタの撮影位置から所定範囲内で撮影された動画データのチャプタであることを特徴とする請求項12記載の画像処理方法。   13. The image processing method according to claim 12, wherein the chapter related to the designated chapter is a chapter of moving image data photographed within a predetermined range from the photographing position of the designated chapter. 請求項1から7のいずれか1項に記載の画像処理装置の各手段としてコンピュータを機能させるプログラム。   A program that causes a computer to function as each unit of the image processing apparatus according to claim 1.
JP2012203009A 2012-09-14 2012-09-14 Image processing apparatus, image processing method, and program Active JP6071357B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012203009A JP6071357B2 (en) 2012-09-14 2012-09-14 Image processing apparatus, image processing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012203009A JP6071357B2 (en) 2012-09-14 2012-09-14 Image processing apparatus, image processing method, and program

Publications (3)

Publication Number Publication Date
JP2014060497A true JP2014060497A (en) 2014-04-03
JP2014060497A5 JP2014060497A5 (en) 2015-11-05
JP6071357B2 JP6071357B2 (en) 2017-02-01

Family

ID=50616618

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012203009A Active JP6071357B2 (en) 2012-09-14 2012-09-14 Image processing apparatus, image processing method, and program

Country Status (1)

Country Link
JP (1) JP6071357B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113747159A (en) * 2021-09-06 2021-12-03 深圳软牛科技有限公司 Method, device and related assembly for generating variable frame rate video media file

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004303368A (en) * 2003-03-31 2004-10-28 Sharp Corp Recording and reproducing device, control method for recording and reproducing device, control program of recording and reproducing device, and recording medium in which control program of recording and reproducing device is recorded
JP2005328122A (en) * 2004-05-12 2005-11-24 Konica Minolta Photo Imaging Inc Management program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004303368A (en) * 2003-03-31 2004-10-28 Sharp Corp Recording and reproducing device, control method for recording and reproducing device, control program of recording and reproducing device, and recording medium in which control program of recording and reproducing device is recorded
JP2005328122A (en) * 2004-05-12 2005-11-24 Konica Minolta Photo Imaging Inc Management program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113747159A (en) * 2021-09-06 2021-12-03 深圳软牛科技有限公司 Method, device and related assembly for generating variable frame rate video media file
CN113747159B (en) * 2021-09-06 2023-10-13 深圳软牛科技有限公司 Method, device and related components for generating variable frame rate video media file

Also Published As

Publication number Publication date
JP6071357B2 (en) 2017-02-01

Similar Documents

Publication Publication Date Title
US9124860B2 (en) Storing a video summary as metadata
US8432965B2 (en) Efficient method for assembling key video snippets to form a video summary
US20110292245A1 (en) Video capture system producing a video summary
JP5783737B2 (en) Image pickup apparatus and moving image recording apparatus control method
JP2012161012A (en) Moving picture recorder
US9565360B2 (en) Image data recording apparatus capable of recording still and moving images simultaneously
JP2012156587A (en) Video recording device
JP5818599B2 (en) Movie recording device
JP5713701B2 (en) Movie recording device
JP6071357B2 (en) Image processing apparatus, image processing method, and program
JP5773855B2 (en) Image processing device
JP5769434B2 (en) Movie recording device, information processing device
JP6410483B2 (en) Image processing device
JP6071358B2 (en) Image processing apparatus, image processing method, and program
JP2019075638A (en) Image processing device
JP6071399B2 (en) Image processing apparatus and image processing apparatus control method
JP6049369B2 (en) Image processing apparatus and image processing apparatus control method
JP5889459B2 (en) Recording device
JP2019075629A (en) Image processing system
JP6218489B2 (en) Image processing device
JP2015126516A (en) Image processing apparatus, image processing method, program
US8391621B2 (en) Image processing device and image reproducing device

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150914

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150914

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160808

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160823

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20161020

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20161206

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20161227

R151 Written notification of patent or utility model registration

Ref document number: 6071357

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151