[go: up one dir, main page]

JP2018195946A - Recording device - Google Patents

Recording device Download PDF

Info

Publication number
JP2018195946A
JP2018195946A JP2017097403A JP2017097403A JP2018195946A JP 2018195946 A JP2018195946 A JP 2018195946A JP 2017097403 A JP2017097403 A JP 2017097403A JP 2017097403 A JP2017097403 A JP 2017097403A JP 2018195946 A JP2018195946 A JP 2018195946A
Authority
JP
Japan
Prior art keywords
recording
moving image
encoding
image data
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2017097403A
Other languages
Japanese (ja)
Inventor
俊雄 簑島
Toshio Minoshima
俊雄 簑島
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 JP2017097403A priority Critical patent/JP2018195946A/en
Publication of JP2018195946A publication Critical patent/JP2018195946A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Television Signal Processing For Recording (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

【課題】 所望のフレームレートの区間を簡単に切り出す。【解決手段】 符号化された動画を第1、第2の記録媒体に同時に記録するように制御する。第1、第2の記録媒体への動画の同時記録中に、記録中の動画を再生したときの再生倍速を所定の再生倍速に変更するための指示があった場合、第1、第2の符号化手段によりそれぞれ符号化される動画のフレームレートを所定の再生倍速に対応した所定のフレームレートに変更し、所定のフレームレートの動画を記録するように制御を行う。第1、第2の記録媒体に同時に記録されている動画の符号化モードのフレーム数の最小公倍数となるフレーム数を単位として、同時記録中の動画データのフレームレートを変更する。【選択図】 図1PROBLEM TO BE SOLVED: To easily cut out a section of a desired frame rate. Control is performed so that encoded moving images are simultaneously recorded on first and second recording media. When there is an instruction to change the playback speed when the moving picture being recorded is played back to the predetermined playback speed during simultaneous recording of the moving pictures on the first and second recording media, the first and second Control is performed so as to change the frame rate of the moving image encoded by the encoding means to a predetermined frame rate corresponding to a predetermined reproduction speed, and to record a moving image having a predetermined frame rate. The frame rate of the moving image data being recorded simultaneously is changed in units of the number of frames that is the least common multiple of the number of frames of the moving image encoding mode recorded simultaneously on the first and second recording media. [Selection] Figure 1

Description

本発明は記録装置に関する。   The present invention relates to a recording apparatus.

従来、撮影時のフレームレートを切り替えることにより、撮影された動画のファストモーション、或いはスローモーションの効果を実現する撮像装置が知られている(特許文献1参照)。特許文献1では、動画の撮影中にフレームレートを任意に切り替える装置が開示されている。   2. Description of the Related Art Conventionally, there has been known an imaging device that realizes a fast motion effect or a slow motion effect of a captured moving image by switching a frame rate at the time of shooting (see Patent Document 1). Patent Document 1 discloses a device that arbitrarily switches the frame rate during shooting of a moving image.

また、動画の圧縮方式として、MPEGなどのフレーム内圧縮方式とフレーム間圧縮方式とを選択的に使用する方式が知られている。フレーム内圧縮方式とフレーム間圧縮方式とを組み合わせて圧縮することにより、効率よく動画を圧縮することができる。   As a moving image compression method, a method that selectively uses an intra-frame compression method such as MPEG or an inter-frame compression method is known. By compressing a combination of the intra-frame compression method and the inter-frame compression method, the moving image can be efficiently compressed.

このように圧縮された動画を編集する場合、一旦復号した後に必要な処理を施し、再度圧縮する必要がある。しかし、このような方法では編集処理に時間がかかるため、動画の一部を削除するなど、簡単な編集を行う場合は、復号せずに、GOPを単位として編集が行われる。この場合、編集が可能な単位はGOPの単位となる。1GOPは15フレームで構成されることが多いため、編集の単位も15フレーム単位となる。   When editing a moving image compressed in this way, it is necessary to perform necessary processing after decoding it and then compress it again. However, in such a method, since the editing process takes time, when performing simple editing such as deleting a part of a moving image, editing is performed in units of GOP without decoding. In this case, the editable unit is a GOP unit. Since 1 GOP is often composed of 15 frames, the editing unit is also 15 frames.

特開2015−122734JP2015-122734

しかしながら、特許文献1のように、一部の区間のフレームレートが異なるように撮影された動画を圧縮した場合、フレームレートの切り替え位置がGOP途中となる可能性がある。   However, when a moving image shot so that the frame rates of some sections are different as in Patent Document 1, the frame rate switching position may be in the middle of the GOP.

そのため、所望のスローモーション効果、ファストモーション効果の区間のみを簡単に切り出す編集を行うことができないという問題点があった。   For this reason, there is a problem that it is not possible to perform editing in which only a desired slow motion effect or fast motion effect section is easily cut out.

本発明はこのような問題を解決することができる装置を提供する。   The present invention provides an apparatus that can solve such problems.

撮像手段と、前記撮像手段により得られた動画データを符号化する手段であって、符号化の単位となるフレーム数が異なる複数の符号化モードを有する第1の符号化手段と、前記撮像手段により得られた動画データを符号化する手段であって、前記複数の符号化モードを有する第2の符号化手段と、前記第1の符号化手段により符号化された動画データを第1の記録媒体に記録する第1の記録手段と、前記第2の符号化手段により符号化された動画データを第2の記録媒体に記録する第2の記録手段と、ユーザの指示に応じて、前記複数の符号化モードの何れかを前記第1の符号化手段の符号化モードとして設定し、前記複数の符号化モードの何れかを前記第2の符号化手段の符号化モードとして設定し、前記設定された符号化モードで前記第1の符号化手段と前記第2の符号化手段により符号化された動画データを、前記第1の記録媒体と前記第2の記録媒体に同時に記録するように制御を行うとともに、前記第1の記録媒体と前記第2の記録媒体への前記動画データの同時記録中に、記録中の動画データを再生したときの再生倍速を所定の再生倍速に変更するための指示があった場合、前記第1の符号化手段と前記第2の符号化手段によりそれぞれ符号化される動画データのフレームレートを前記所定の再生倍速に対応した所定のフレームレートに変更し、前記所定のフレームレートの動画データを記録するように制御を行う制御手段とを備え、前記制御手段は、前記第1の記録媒体と前記第2の記録媒体に同時に記録されている動画データの符号化モードのフレーム数の最小公倍数となるフレーム数を単位として、前記同時記録中の動画データのフレームレートを変更するように制御を行う。   An imaging unit; a unit for encoding moving image data obtained by the imaging unit; a first encoding unit having a plurality of encoding modes having different number of frames as a unit of encoding; and the imaging unit Means for encoding the moving image data obtained by the second encoding means having the plurality of encoding modes, and the moving image data encoded by the first encoding means in the first recording. A first recording means for recording on the medium; a second recording means for recording the moving image data encoded by the second encoding means on the second recording medium; Any one of the encoding modes is set as the encoding mode of the first encoding means, and any one of the plurality of encoding modes is set as the encoding mode of the second encoding means, and the setting Said coding mode The moving image data encoded by the first encoding unit and the second encoding unit is controlled to be recorded simultaneously on the first recording medium and the second recording medium, and the first When there is an instruction to change the reproduction speed when reproducing the moving image data being recorded to a predetermined reproduction speed during the simultaneous recording of the moving image data on the recording medium and the second recording medium, The frame rate of the moving image data encoded by each of the first encoding unit and the second encoding unit is changed to a predetermined frame rate corresponding to the predetermined reproduction double speed, and the moving image data having the predetermined frame rate is changed. Control means for performing control so as to record, wherein the control means has a minimum number of frames in an encoding mode of moving image data simultaneously recorded on the first recording medium and the second recording medium. The number of frames comprising a multiple units, performs control to change the frame rate of the moving image data in the simultaneous recording.

本発明によれば、符号化された動画のうち、所望のフレームレートの区間を簡単に切り出すことができる。   According to the present invention, a section of a desired frame rate can be easily cut out from an encoded moving image.

記録装置を示すブロック図である。It is a block diagram which shows a recording device. 符号化モードを説明する図である。It is a figure explaining encoding mode. 区間スロー&ファストモードで符号化されるフレームを示す図である。It is a figure which shows the flame | frame encoded by section slow & fast mode. 記録処理を示すフローチャートである。It is a flowchart which shows a recording process. 区間スロー&ファストモードで符号化されるフレームを示す図である。It is a figure which shows the flame | frame encoded by section slow & fast mode. 区間スロー&ファストモードでの表示画面を示す図である。It is a figure which shows the display screen in area slow & fast mode. 記録装置を示すブロック図である。It is a block diagram which shows a recording device. 記録処理を示すフローチャートである。It is a flowchart which shows a recording process. 区間スロー&ファストモードで符号化されるフレームを示す図である。It is a figure which shows the flame | frame encoded by section slow & fast mode. 区間スロー&ファストモードでの表示画面を示す図である。It is a figure which shows the display screen in area slow & fast mode.

以下、本発明の実施形態について図面を参照しながら説明する。図1は、本実施形態に係る記録装置100の構成例を示すブロック図である。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram illustrating a configuration example of a recording apparatus 100 according to the present embodiment.

図1において、撮像部101は、撮像素子より画像を入力する。本実施形態では、撮像部101は、1フレームが横1920画素×縦1080画素の動画データを出力する。また、撮像部101は、通常の動画記録モードにおいては、30フレーム毎秒(fps)の動画データを出力する。また、後述の区間スロー&ファストモードにおいては、60fpsの動画データを出力する。   In FIG. 1, an imaging unit 101 inputs an image from an imaging element. In the present embodiment, the imaging unit 101 outputs moving image data in which one frame is 1920 horizontal pixels × 1080 vertical pixels. The imaging unit 101 outputs moving image data at 30 frames per second (fps) in the normal moving image recording mode. In the section slow & fast mode, which will be described later, 60 fps video data is output.

制御部102は、操作部103からの入力に応じて、記録装置100の動作全体を制御する。制御部102はマイクロコンピュータやメモリ等を含み、不図示の不揮発メモリに記録されたコンピュータプログラム(以下ソフトウェア)に従って記録装置100を制御する。   The control unit 102 controls the entire operation of the recording apparatus 100 in response to an input from the operation unit 103. The control unit 102 includes a microcomputer, a memory, and the like, and controls the recording device 100 according to a computer program (hereinafter, software) recorded in a non-illustrated nonvolatile memory.

また、制御部102は、記録部106との間でデータやコマンドを通信するための記録媒体インターフェースを内蔵している。操作部103は、ユーザにより操作可能な各種のスイッチを含む。そして、操作部103は、電源スイッチや記録の開始、停止および、フレームレート切り替えを指示する為のスイッチ、記録装置100のモードを切り替える為のスイッチ等を含む。   The control unit 102 has a built-in recording medium interface for communicating data and commands with the recording unit 106. The operation unit 103 includes various switches that can be operated by the user. The operation unit 103 includes a power switch, a switch for instructing start and stop of recording, and a frame rate switching, a switch for switching the mode of the recording apparatus 100, and the like.

第1の符号化処理部104は、記録時においては、撮像部101により得られた動画データをH.264/MPEG4 AVC等の公知の符号化形式に従って符号化して、その情報量を圧縮する。また、画像を記録する為に必要な処理を施す。また、第1の符号化処理部104は、第1の符号化モードと第2の符号化モードの複数の符号化モードを持つ。第1の符号化モードにおいて、第1の符号化処理部104は、動画データの全てのフレームをフレーム内符号化方式により符号化する。つまり、第1の符号化モードにおいては、符号化の単位が1フレームとなる。フレーム内符号化方式は、他のフレームを参照せずに、同じフレーム内のデータだけを用いて符号化する方式である。   At the time of recording, the first encoding processing unit 104 converts the moving image data obtained by the imaging unit 101 to H.264. It is encoded according to a known encoding format such as H.264 / MPEG4 AVC, and the amount of information is compressed. Further, processing necessary for recording an image is performed. In addition, the first encoding processing unit 104 has a plurality of encoding modes of a first encoding mode and a second encoding mode. In the first encoding mode, the first encoding processing unit 104 encodes all the frames of the moving image data by the intra-frame encoding method. That is, in the first encoding mode, the encoding unit is one frame. The intraframe coding method is a method of performing coding using only data in the same frame without referring to other frames.

また、第2の符号化モードにおいて、第1の符号化処理部104は、フレーム内符号化と、フレーム間符号化とを共に用いて符号化を行う。本実施形態では、符号化処理の単位となる1GOPを15フレームで構成する。また、1GOPは1フレームのIピクチャを含む。つまり、第2の符号化モードにおいては、15フレームが符号化の単位となる。また、本実施形態では、一つのGOPのフレームが、他のGOPのフレームを参照フレームとして使用しない、ClosedGOPとして符号化する。   In the second coding mode, the first coding processing unit 104 performs coding using both intraframe coding and interframe coding. In this embodiment, one GOP that is a unit of the encoding process is composed of 15 frames. One GOP includes one frame of I picture. That is, in the second encoding mode, 15 frames are the encoding unit. In this embodiment, a frame of one GOP is encoded as a Closed GOP that does not use a frame of another GOP as a reference frame.

図2の(a)は第1の符号化モードで符号化された動画データの各フレームを示し、図2(b)は第2の符号化モードで符号化された動画データの各フレームを示す。図2(b)においては、表示順に各フレームを表示している。図2において、Iと表示されたフレームがフレーム内符号化により符号化されるフレームである。また、Bと表示されたフレームは、双方向予測のフレーム間符号化により符号化されるフレームで、Pと表示されたフレームは前方予測のフレーム間符号化により符号化されるフレームである。また、第1の符号化処理部104は、再生時においては再生された動画データを復号して出力する。   2A shows each frame of moving image data encoded in the first encoding mode, and FIG. 2B shows each frame of moving image data encoded in the second encoding mode. . In FIG. 2B, the frames are displayed in the display order. In FIG. 2, a frame labeled I is a frame that is encoded by intraframe encoding. A frame indicated by B is a frame encoded by inter-frame encoding of bidirectional prediction, and a frame indicated by P is a frame encoded by inter-frame encoding of forward prediction. The first encoding processing unit 104 decodes and outputs the reproduced moving image data during reproduction.

メモリ105は、画像データを保持する。記録装置100の各ブロックは、メモリ105に対してアクセスすることにより、画像データを処理する。またメモリ105は、画像データの他に、ファイルシステムの情報や、各種情報を記憶し、更に制御部102による制御のためのワークメモリ等の役割を果たす。   The memory 105 holds image data. Each block of the recording apparatus 100 processes the image data by accessing the memory 105. The memory 105 stores file system information and various types of information in addition to image data, and further serves as a work memory for control by the control unit 102.

第1の記録再生部106は、メモリ105に記憶された画像データ、或いは、各種情報を第1の記録媒体108に記録する。第1の記録媒体108はフラッシュメモリカード等のランダムアクセスの記録媒体である。第1の記録媒体108は、不図示の装着・排出機構により撮像装置100に対して容易に排出、装着することができる。   The first recording / reproducing unit 106 records the image data stored in the memory 105 or various information on the first recording medium 108. The first recording medium 108 is a random access recording medium such as a flash memory card. The first recording medium 108 can be easily discharged and mounted on the imaging apparatus 100 by a mounting / discharging mechanism (not shown).

また、第1の記録再生部106は、第1の記録媒体108に記録する画像データや各種情報をFAT32やexFAT等のファイルシステムに従い、ファイルとして管理する。フレームレート変換部107は、撮像部101から入力された動画データのフレームを間引くことによりフレームレートを変換する。表示部109は、動画や各種の情報を液晶パネル等の表示装置に表示する。データバス110は、記録装置100の各部の間でデータや各種の制御コマンドなどを送受信するために用いられる。   The first recording / playback unit 106 manages the image data and various information recorded on the first recording medium 108 as files according to a file system such as FAT32 or exFAT. The frame rate conversion unit 107 converts the frame rate by thinning out frames of moving image data input from the imaging unit 101. The display unit 109 displays moving images and various types of information on a display device such as a liquid crystal panel. The data bus 110 is used to transmit and receive data and various control commands between the units of the recording apparatus 100.

画像処理部114は、記録時においては、撮像部101により得られた動画データに対して現像処理やホワイトバランス、ガンマ補正などの公知の処理を施す。また、表示部109に表示するための表示用の画像も生成する。   The image processing unit 114 performs known processing such as development processing, white balance, and gamma correction on the moving image data obtained by the imaging unit 101 during recording. In addition, a display image to be displayed on the display unit 109 is also generated.

第2の符号化処理部113は、記録時においては、撮像部101により得られた動画データをH.264/MPEG4 AVC等の公知の符号化形式に従って符号化して、その情報量を圧縮する。また、画像を記録する為に必要な処理を施す。また、第2の符号化処理部104は、第1の符号化処理部104と同様に、第1の符号化モードと第2の符号化モードを持つ。   At the time of recording, the second encoding processing unit 113 converts the moving image data obtained by the imaging unit 101 to H.264. It is encoded according to a known encoding format such as H.264 / MPEG4 AVC, and the amount of information is compressed. Further, processing necessary for recording an image is performed. Similarly to the first encoding processing unit 104, the second encoding processing unit 104 has a first encoding mode and a second encoding mode.

第2の記録再生部111は、メモリ105に記憶された画像データ、或いは、各種情報を第2の記録媒体112に記録する。第2の記録媒体112はフラッシュメモリカード等のランダムアクセスの記録媒体である。第2の記録媒体112は、不図示の装着・排出機構により撮像装置100に対して容易に排出、装着することができる。また、第2の記録再生部111は、第2の記録媒体112に記録する画像データや各種情報をFAT32やexFAT等のファイルシステムに従い、ファイルとして管理する。   The second recording / reproducing unit 111 records image data or various information stored in the memory 105 on the second recording medium 112. The second recording medium 112 is a random access recording medium such as a flash memory card. The second recording medium 112 can be easily discharged and mounted on the imaging apparatus 100 by a mounting / discharging mechanism (not shown). The second recording / playback unit 111 manages image data and various information recorded on the second recording medium 112 as a file according to a file system such as FAT32 or exFAT.

また、第1の記録再生記録部106及び第2の記録再生部111は、AT Attachment)等の公知のインターフェース(IF)を有する。制御部102は、第1の記録媒体108に対して動画ファイルの書き込みを行う場合、第1の記録部106を制御して、第1の記録媒体108からファイルシステムデータ(管理データ)を再生してメモリ105に記憶する。このファイルシステムデータは、第1の記録媒体108に記録されたデータのファイル名やファイルサイズ、データの記録アドレスを表示するデータであり、ファイルを管理するための情報である。また、制御部102は、第2の記録媒体112に対して動画ファイルの書き込みを行う場合、第2の記録再生部111を制御して、第2の記録媒体112からファイルシステムデータ(管理データ)を再生してメモリ105に記憶する。   In addition, the first recording / reproducing recording unit 106 and the second recording / reproducing unit 111 have a known interface (IF) such as AT Attachment. When writing a moving image file to the first recording medium 108, the control unit 102 controls the first recording unit 106 to reproduce file system data (management data) from the first recording medium 108. And stored in the memory 105. This file system data is data for displaying the file name, file size, and data recording address of data recorded on the first recording medium 108, and is information for managing the file. In addition, when writing a moving image file to the second recording medium 112, the control unit 102 controls the second recording / reproducing unit 111 so that file system data (management data) is transmitted from the second recording medium 112. Is stored in the memory 105.

制御部102は、メモリ105に記憶したファイルシステムデータを解析することでファイルシステムがFAT32なのか、exFATなのかを識別し、制御を切り替える。制御部102は、読み出したファイルシステムデータに従ってファイルの書き込み、読み出しを制御する。制御部102は、第1の記録媒体108、第2の記録媒体112へのファイルの書き込みに応じて、メモリ105に記憶されたファイルシステムデータを更新する。そして、更新したファイルシステムデータを、第1の記録再生部106により記録媒体108に記録し、また、第2の記録再生部111により記録媒体112に記録する。   The control unit 102 analyzes the file system data stored in the memory 105 to identify whether the file system is FAT32 or exFAT, and switches control. The control unit 102 controls file writing and reading according to the read file system data. The control unit 102 updates the file system data stored in the memory 105 in accordance with the writing of the file to the first recording medium 108 and the second recording medium 112. The updated file system data is recorded on the recording medium 108 by the first recording / reproducing unit 106 and recorded on the recording medium 112 by the second recording / reproducing unit 111.

また、ユーザは、操作部103を操作することにより、記録装置100の動作モードの切り替え、あるいは、動画データの記録開始、停止、あるいは、フレームレートの切り替えなどを指示することができる。   Further, the user can instruct to switch the operation mode of the recording apparatus 100, start or stop recording of moving image data, or switch the frame rate by operating the operation unit 103.

次に、本実施形態における記録動作について説明する。制御部102から動画データの通常記録モードへ移行する指示を受けると、記録装置100を記録待機状態へ遷移する。記録待機状態において、撮像部101は動画データを出力し、画像処理部114は出力された動画データを処理してメモリ105に記憶する。表示部109は、メモリ105より動画データを読み出して表示する。このように、記録待機状態では、撮像部101により得られた動画がライブビュー画像として表示部109に表示される。ユーザは、記録待機状態において、撮像装置100の記録モードなどを設定することができる。   Next, the recording operation in this embodiment will be described. When receiving an instruction to shift to the normal recording mode of moving image data from the control unit 102, the recording apparatus 100 is shifted to a recording standby state. In the recording standby state, the imaging unit 101 outputs moving image data, and the image processing unit 114 processes the output moving image data and stores it in the memory 105. The display unit 109 reads the moving image data from the memory 105 and displays it. Thus, in the recording standby state, the moving image obtained by the imaging unit 101 is displayed on the display unit 109 as a live view image. The user can set the recording mode of the imaging apparatus 100 in the recording standby state.

本実施形態では、撮像装置100は、通常の記録モードを持つ。通常の記録モードにおいては、ユーザによる記録開始の指示に応じて動画の記録が開始され、記録停止の指示に応じて動画の記録が停止される。また、通常の記録モードでは、記録開始から記録停止までの間、記録される動画のフレームレートは同じであり、ユーザが変更することができない。また、通常の記録モードで記録される動画データのフレームレートは60fpsである。   In the present embodiment, the imaging apparatus 100 has a normal recording mode. In the normal recording mode, moving image recording is started in response to a recording start instruction from the user, and moving image recording is stopped in response to a recording stop instruction. In the normal recording mode, the frame rate of the moving image to be recorded is the same from the start of recording to the stop of recording, and cannot be changed by the user. The frame rate of moving image data recorded in the normal recording mode is 60 fps.

また、ユーザは、記録待機状態において、第1の記録媒体108と第2の記録媒体112のうちの何れかを記録先として選択することができる。更に、記録装置100は、第1の記録媒体108と第2の記録媒体112の両方に動画を記録する同時記録の機能を持つ。ユーザは記録待機状態において操作部103を操作することにより、同時記録の機能を設定することができる。   In addition, the user can select either the first recording medium 108 or the second recording medium 112 as a recording destination in the recording standby state. Further, the recording apparatus 100 has a simultaneous recording function of recording a moving image on both the first recording medium 108 and the second recording medium 112. The user can set the simultaneous recording function by operating the operation unit 103 in the recording standby state.

また、ユーザは、記録待機状態において、動画を記録する場合の符号化モードとして、第1の符号化モードと第2の符号化モードの何れかを設定することができる。更に、同時記録の機能を有効に設定した場合、ユーザは、第1の記録媒体108に記録する動画の符号化モードと、第2の記録媒体112に記録する動画の符号化モードを、独立に設定することができる。制御部102は、ユーザにより設定された、これらの設定状態をメモリ105に記憶しておく。   Also, the user can set either the first encoding mode or the second encoding mode as the encoding mode when recording a moving image in the recording standby state. Further, when the simultaneous recording function is set to be effective, the user can independently set the encoding mode of the moving image to be recorded on the first recording medium 108 and the encoding mode of the moving image to be recorded on the second recording medium 112. Can be set. The control unit 102 stores these setting states set by the user in the memory 105.

まず、通常の記録モードの処理について説明する。記録待機状態において、操作部112が操作され、動画の記録開始の指示があると、制御部111は、各部を制御して動画の記録を開始する。   First, normal recording mode processing will be described. In the recording standby state, when the operation unit 112 is operated and there is an instruction to start recording a moving image, the control unit 111 controls each unit to start recording the moving image.

撮像部101は、60fpsの動画データを出力する。撮像部101からの動画データは画像処理部114により処理され、一旦メモリ105に記憶される。第1の符号化処理部104、及び、第2の符号化処理部113は、前述のように設定された符号化モードに従い、メモリ105に記憶された動画データを符号化し、メモリ105に記憶する。例えば、記録先として第1の記録媒体108が選択された場合は第1の符号化処理部104が動画を符号化するが、第2の符号化処理部113は符号化処理を行わない。また、記録先として第2の記録媒体112が選択された場合は第2の符号化処理部113が動画を符号化するが、第1の符号化処理部104は符号化処理を行わない。同時記録が設定された場合は、第1の符号化処理部104と第2の符号化処理部113はそれぞれ、設定された符号化モードに従い動画データを符号化する。   The imaging unit 101 outputs moving image data of 60 fps. The moving image data from the imaging unit 101 is processed by the image processing unit 114 and temporarily stored in the memory 105. The first encoding processing unit 104 and the second encoding processing unit 113 encode the moving image data stored in the memory 105 according to the encoding mode set as described above, and store the encoded video data in the memory 105. . For example, when the first recording medium 108 is selected as the recording destination, the first encoding processing unit 104 encodes the moving image, but the second encoding processing unit 113 does not perform the encoding process. When the second recording medium 112 is selected as the recording destination, the second encoding processing unit 113 encodes the moving image, but the first encoding processing unit 104 does not perform the encoding process. When simultaneous recording is set, the first encoding processing unit 104 and the second encoding processing unit 113 each encode moving image data according to the set encoding mode.

記録先として第1の記録媒体108が選択された場合、記録再生部106は、メモリ105から符号化された動画データを読み出し、第1の記録媒体108に記録する。また、記録先として第2の記録媒体112が選択された場合、記録再生部111は、メモリ105から符号化された動画データを読み出し、第2の記録媒体112に記録する。また、同時記録が設定された場合、第1の記録再生部106と第2の記録再生部111がそれぞれ、符号化された動画データをメモリ105から読みだして第1の記録媒体108、第2の記録媒体112に記録する。このように記録が行われ、ユーザにより記録停止の指示があると、制御部102は、各部を制御して記録を停止する。   When the first recording medium 108 is selected as the recording destination, the recording / playback unit 106 reads the encoded moving image data from the memory 105 and records it on the first recording medium 108. When the second recording medium 112 is selected as the recording destination, the recording / reproducing unit 111 reads the encoded moving image data from the memory 105 and records it on the second recording medium 112. When simultaneous recording is set, the first recording / playback unit 106 and the second recording / playback unit 111 read the encoded moving image data from the memory 105, respectively, To the recording medium 112. When recording is performed in this way and the user instructs to stop recording, the control unit 102 controls each unit to stop recording.

また、撮像装置100は、記録開始から記録停止までの間に、記録される動画のフレームレートをユーザの指示により変更することができる、所定の記録モードを持つ。以下、この所定の記録モードを区間スロー&ファストモードと呼ぶ。   Further, the imaging apparatus 100 has a predetermined recording mode in which the frame rate of a moving image to be recorded can be changed according to a user instruction between the start of recording and the stop of recording. Hereinafter, this predetermined recording mode is referred to as a section slow & fast mode.

区間スロー&ファストモードにおいて、ユーザは、動画の記録中に操作部103を操作することにより、記録される動画の再生時の再生倍速の変更を指示することができる。本実施形態では、区間スロー&ファストで記録された動画データを再生する際には、再生された動画データを所定の再生フレームレートで表示する。所定の再生フレームレートを30fpsとする。そのため、再生フレームレートと同じ30fpsの動画を1倍速の動画とする。   In the section slow & fast mode, the user can instruct to change the playback double speed during playback of the recorded moving image by operating the operation unit 103 during recording of the moving image. In the present embodiment, when reproducing moving image data recorded in the section slow & fast, the reproduced moving image data is displayed at a predetermined reproduction frame rate. The predetermined playback frame rate is 30 fps. For this reason, a moving image of 30 fps that is the same as the playback frame rate is set to a 1 × speed moving image.

区間スロー&ファストモードにおいて、ユーザは、動画の記録中に、1/2倍速のスロー、1倍速、2倍速のファスト、の何れかの再生倍速を指定することにより、記録される動画の再生倍速の変更を指示することができる。   In the segment slow & fast mode, the user can specify the playback speed of one of ½ speed slow, 1 × speed, and 2 × speed while recording the video, thereby reproducing the playback speed of the recorded video. Can be instructed to change.

記録された動画のフレームレートが60fpsの場合、1/2倍速のスロー再生(低速)画像として表示部109に表示される。また、記録された動画のフレームレートが15fpsの場合、2倍速のファスト再生(高速)画像として表示部109に表示される。即ち、1/2倍速に対応したフレームレートは60fpsであり、2倍速に対応したフレームレートは15fpsである。   When the frame rate of the recorded moving image is 60 fps, it is displayed on the display unit 109 as a slow playback (low speed) image of 1/2 times speed. In addition, when the frame rate of the recorded moving image is 15 fps, it is displayed on the display unit 109 as a double-speed fast playback (high-speed) image. That is, the frame rate corresponding to 1/2 speed is 60 fps, and the frame rate corresponding to 2 times speed is 15 fps.

ユーザは、記録待機状態において操作部103を操作することにより、区間スロー&ファストモードに設定することができる。区間スロー&ファストモードが設定された場合、記録待機状態に遷移し、記録開始指示を待つ。制御部102は、区間スロー&ファストモードに設定された場合、撮像部101に対し、60fpsの動画データを出力する様に指示する。   The user can set the section slow & fast mode by operating the operation unit 103 in the recording standby state. When the section slow & fast mode is set, the state transits to the recording standby state and waits for a recording start instruction. When the section slow & fast mode is set, the control unit 102 instructs the imaging unit 101 to output moving image data of 60 fps.

フレームレート変換部107は、撮像部101からの60fpsの動画データを1フレームおきに間引くことにより、30fpの1倍速の動画データを出力する。このような記録待機状態において、撮像部101から出力されたフレーム画像が表示部109に表示される。   The frame rate conversion unit 107 outputs 30fps single-speed moving image data by thinning out 60fps moving image data from the imaging unit 101 every other frame. In such a recording standby state, the frame image output from the imaging unit 101 is displayed on the display unit 109.

操作部103から記録開始指示が入力されると、撮像部101からの動画データはフレームレート変換部107によりフレームレートの変換処理が施され、メモリ105に記憶される。記録開始時において、フレームレート変換部107は、60fpsで入力されたフレームを2回に1回フレームを間引いて30fpsとしてメモリ105に記憶する。第1の符号化処理部104、第2の符号化処理部113は前述のように動画データを符号化し、メモリ105に記憶する。第1の記録再生部106、第2の記録再生部111はメモリ105から符号化データを読み出し、30fpsの動画として第1の記録媒体108、第2の記録媒体112に動画ファイルとして記録する。   When a recording start instruction is input from the operation unit 103, the moving image data from the imaging unit 101 is subjected to frame rate conversion processing by the frame rate conversion unit 107 and stored in the memory 105. At the start of recording, the frame rate conversion unit 107 thins out a frame input at 60 fps once every two times and stores it in the memory 105 as 30 fps. The first encoding processing unit 104 and the second encoding processing unit 113 encode moving image data as described above and store the encoded data in the memory 105. The first recording / playback unit 106 and the second recording / playback unit 111 read the encoded data from the memory 105 and record them as a moving image file on the first recording medium 108 and the second recording medium 112 as a moving image of 30 fps.

このように動画データの記録開始後、ユーザが操作部103を操作することにより、フレームレートの変更が指示された場合、制御部102は、ユーザの指示に応じて、フレームレート変換部107による動画データの間引き率を変更する。フレームレート変換部107は、制御部102から指定された間引き率に応じて撮像部101からの動画のフレームを間引いて出力する。   As described above, when the user operates the operation unit 103 to start changing the frame rate after starting the recording of the moving image data, the control unit 102 performs the moving image by the frame rate conversion unit 107 according to the user instruction. Change the data thinning rate. The frame rate conversion unit 107 thins out and outputs the frames of the moving image from the imaging unit 101 according to the thinning rate specified by the control unit 102.

図3は、区間スロー&ファストモードにおいて記録される動画を示す図である。図3(a)の301は区間スロー&ファストモードにおいて撮像部101から出力される動画データを示している。前述のように、区間スロー&ファストモードでは、撮像部101は60fpsの動画データを出力する。フレームの間隔は1/60秒となる。   FIG. 3 is a diagram showing a moving image recorded in the section slow & fast mode. Reference numeral 301 in FIG. 3A indicates moving image data output from the imaging unit 101 in the section slow & fast mode. As described above, in the section slow & fast mode, the imaging unit 101 outputs moving image data of 60 fps. The frame interval is 1/60 second.

図3(b)の302は、1倍速の動画データを示している。1倍速の動画を記録する場合、フレームレート変換部107は撮像部101からの60fpsの動画データを1フレームおきに間引き、30fpsの動画データを出力する。この場合のフレームの間引き率は2フレームに1フレームとなる。また、フレームの更新間隔は1/30秒となる。   Reference numeral 302 in FIG. 3B indicates 1 × speed moving image data. When recording a 1 × speed moving image, the frame rate conversion unit 107 thins out 60 fps moving image data from the imaging unit 101 every other frame, and outputs 30 fps moving image data. In this case, the frame decimation rate is 1 frame per 2 frames. The frame update interval is 1/30 second.

図3(c)の303は、1倍速の記録中に1/2倍速のスローの指示があった場合に記録される動画を示している。1倍速の期間では、フレームレート変換部107は撮像部101からの60fpsの動画データを1フレームおきに間引き、30fpsの動画データを出力する。そして、1/2倍速のスロー動画の指示があると、フレームレート変換部107は、フレームA5からはフレームを間引くことなく出力することにより、60fpsの動画が出力される。フレームの更新間隔は1/60秒となる。その後、1倍速の変更指示があると、フレームレート変換部107は、フレームA101から1フレームおきに間引いて出力する。   Reference numeral 303 in FIG. 3C denotes a moving image that is recorded when a 1 / 2-speed slow instruction is given during 1-speed recording. During the 1 × speed period, the frame rate conversion unit 107 thins out 60 fps moving image data from the image capturing unit 101 every other frame, and outputs 30 fps moving image data. Then, when there is an instruction of a half-speed slow moving image, the frame rate conversion unit 107 outputs a 60 fps moving image by outputting the frame A5 without thinning out the frame. The frame update interval is 1/60 seconds. Thereafter, when there is a change instruction for 1 × speed, the frame rate conversion unit 107 thins out every other frame from the frame A101 and outputs it.

図3(d)の304は、1倍速の記録中に2倍速のファストの指示があった場合に記録される動画を示している。1倍速の期間では、フレームレート変換部107は撮像部101からの60fpsの動画データを1フレームおきに間引き、30fpsの動画データを出力する。そして、2倍速のファスト動画の指示があると、フレームレート変換部107は、フレームA5から、4フレームのうち3フレームを間引いて出力することにより、15fpsの動画が出力される。フレームの更新間隔は1/15秒となる。その後、1倍速の変更指示があると、フレームレート変換部107は、フレームA101から1フレームおきに間引いて出力する。   Reference numeral 304 in FIG. 3D indicates a moving image that is recorded when there is a double-speed fast instruction during single-speed recording. During the 1 × speed period, the frame rate conversion unit 107 thins out 60 fps moving image data from the image capturing unit 101 every other frame, and outputs 30 fps moving image data. Then, when there is an instruction for a double-speed fast moving image, the frame rate conversion unit 107 outputs a moving image of 15 fps by thinning out 3 frames out of 4 frames from the frame A5. The frame update interval is 1/15 seconds. Thereafter, when there is a change instruction for 1 × speed, the frame rate conversion unit 107 thins out every other frame from the frame A101 and outputs it.

以下、図4のフローチャートを用いて、区間スロー&ファストモードの処理について説明する。なお、図4の処理は、制御部102が各部を制御することにより実行される。   Hereinafter, the processing in the section slow & fast mode will be described using the flowchart of FIG. Note that the processing in FIG. 4 is executed by the control unit 102 controlling each unit.

記録装置100が起動状態にあり、区間スロー&ファストモードに設定されて、操作部103により記録開始が指示された場合に図4の処理が開始される。制御部103は、符号化モードに応じて動画の記録時の最小記録単位を取得する(S401)。第1の符号化モードでは、符号化された動画の各フレームを1フレームのデータだけで復号できる。そのため、第1の符号化モードが設定されていた場合は最小記録単位を1フレームとする。また、第2の符号化モードでは、動画データの符号化単位が1GOPの15フレームとなる。そのため、第2の符号化モードが設定されていた場合は最小記録単位を15フレームとする。制御部102は、同時記録が設定されていた場合には、各記録媒体に対して設定された符号化モードに基づいて、それぞれの記録媒体への最小の記録単位を取得する。   The processing of FIG. 4 is started when the recording apparatus 100 is in the activated state, set to the section slow & fast mode, and instructed to start recording by the operation unit 103. The control unit 103 acquires the minimum recording unit at the time of recording a moving image according to the encoding mode (S401). In the first encoding mode, each frame of the encoded moving image can be decoded with only one frame of data. Therefore, when the first encoding mode is set, the minimum recording unit is one frame. In the second encoding mode, the encoding unit of moving image data is 15 frames of 1 GOP. Therefore, when the second encoding mode is set, the minimum recording unit is set to 15 frames. When the simultaneous recording is set, the control unit 102 acquires the minimum recording unit for each recording medium based on the encoding mode set for each recording medium.

次に、制御部102は、同時記録が設定されているか否かを判別する(S402)。同時記録が設定されていた場合、各記録媒体に対する最小記録単位の最小公倍数を記録単位として設定する(S403)。第1の記録媒体108の符号化モードとして第1の符号化モードが設定され、第2の記録媒体112の符号化モードとして第2の符号化モードが設定されていた場合、1フレームと15フレームの最小公倍数である15フレームが記録単位として設定される。同時記録が設定されていない場合、制御部102は、S401で取得された記録最小単位を記録単位として設定する(S404)。   Next, the control unit 102 determines whether or not simultaneous recording is set (S402). If simultaneous recording is set, the least common multiple of the minimum recording unit for each recording medium is set as the recording unit (S403). When the first encoding mode is set as the encoding mode of the first recording medium 108 and the second encoding mode is set as the encoding mode of the second recording medium 112, 1 frame and 15 frames 15 frames which are the least common multiple of are set as recording units. If simultaneous recording is not set, the control unit 102 sets the minimum recording unit acquired in S401 as a recording unit (S404).

制御部102は、記録開始時においては、間引き率を1倍速の間引き率である1/2に設定する(S405)。そのため、フレームレート変換部107は60fpsの動画データを30fpsに変換する。次に、制御部102は、記録先として選択された記録媒体に対して動画ファイルをオープンし、動画の符号化と記録を開始する(S406)。   At the start of recording, the control unit 102 sets the thinning rate to ½, which is the thinning rate of 1 × speed (S405). Therefore, the frame rate conversion unit 107 converts 60 fps moving image data to 30 fps. Next, the control unit 102 opens a moving image file for the recording medium selected as the recording destination, and starts encoding and recording of the moving image (S406).

記録を開始した後、制御部102は操作部103からの記録停止の指示があったか否かを判別する(S407)。ユーザにより記録停止が指示された場合は、記録される動画データのフレームレートを、現在の再生倍速に対応したフレームレートに切り替えてから符号化を行ったフレーム数が記録単位の整数倍となるまで記録を継続する(S412)。そして、記録単位の整数倍のフレームまで符号化を行ったら動画の符号化と記録を停止して、ファイルをクローズする(S413)。   After starting the recording, the control unit 102 determines whether or not there is an instruction to stop the recording from the operation unit 103 (S407). When recording stop is instructed by the user, the frame rate of the moving image data to be recorded is switched to the frame rate corresponding to the current playback double speed until the number of encoded frames becomes an integral multiple of the recording unit. Recording is continued (S412). When encoding is performed up to a frame that is an integral multiple of the recording unit, the encoding and recording of the moving image are stopped, and the file is closed (S413).

また、記録停止の指示がない場合、制御部102は、操作部103により動画の再生倍速の変更の指示があったか否かを判別する(S408)。変更指示が無い場合には、現在のフレームレートでの動画の記録を続ける。また、変更指示があった場合、制御部102は、現在の再生倍速に対応したフレームレートの動画の符号化を開始してから、符号化を行ったフレーム数が記録単位の整数倍となったか否かを判別する(S409)。記録単位の整数倍のフレーム数を符号化したら、つぎのフレームから、フレームレート変換部107の間引き率を、変更後の再生倍速に応じて変更する(S411)。そして、変更後のフレームレートで動画の記録を続ける。符号化を行ったフレーム数が記録単位の整数倍となるまでに記録停止の指示があると(S410)、符号化を行ったフレーム数が記録単位の整数倍になるまで現在のフレームレートでの動画の記録を継続して記録を停止する。   If there is no instruction to stop recording, the control unit 102 determines whether or not there is an instruction to change the playback double speed of the moving image by the operation unit 103 (S408). If there is no change instruction, recording of the moving image at the current frame rate is continued. Also, if there is a change instruction, the control unit 102 has started encoding a moving image at a frame rate corresponding to the current playback double speed, and then whether the number of encoded frames has become an integral multiple of the recording unit. It is determined whether or not (S409). When the number of frames that is an integral multiple of the recording unit is encoded, the decimation rate of the frame rate conversion unit 107 is changed from the next frame in accordance with the changed reproduction speed (S411). Then, the moving image recording is continued at the changed frame rate. If there is an instruction to stop recording until the number of encoded frames becomes an integral multiple of the recording unit (S410), the current frame rate is maintained until the number of encoded frames reaches an integral multiple of the recording unit. Continue recording the video and stop recording.

図5は区間スロー&ファストモードにおいて、同時記録を行っているときに記録される動画を示す図である。図5の501が第1の記録媒体106に記録される動画で、第1に符号化モードで符号化される。502が第2の記録媒体112に記録される動画で、第2の符号化モードで符号化される。   FIG. 5 is a diagram showing a moving image that is recorded when simultaneous recording is performed in the section slow & fast mode. Reference numeral 501 in FIG. 5 denotes a moving image recorded on the first recording medium 106, which is first encoded in the encoding mode. Reference numeral 502 denotes a moving image recorded on the second recording medium 112, which is encoded in the second encoding mode.

等倍速の動画の記録中に、503の時点で1/2倍速のスロー動画への変更指示があると、記録単位であるフレームA33まで1倍速の動画を記録し、フレームA34より1/2倍速のスロー動画に変更する。   If there is an instruction to change to a half-speed slow movie at the time of 503 while recording a normal-speed movie, the movie is recorded at a single-speed up to frame A33, which is a recording unit, and is half-speed from frame A34. Change to slow video.

ここで、同時記録が設定されておらず、第1の記録媒体106に対して第1の符号化モードで符号化した動画の記録が行われている場合、記録単位が1フレームとなるので、再生倍速の変更指示の直後のフレームA31から1/2倍速のスロー動画になる。一方、前述のように同時記録が設定されていた場合は、フレームA31からではなく、記録単位である15フレームの整数倍となるまで1倍速の動画の記録が継続される。   Here, when the simultaneous recording is not set and the moving image encoded in the first encoding mode is recorded on the first recording medium 106, the recording unit is one frame. From the frame A31 immediately after the instruction to change the playback double speed, the slow motion video becomes 1/2 speed. On the other hand, when the simultaneous recording is set as described above, the recording of the moving image at 1 × speed is continued until it becomes an integral multiple of 15 frames as a recording unit, not from the frame A31.

図6は、区間スロー&ファストモードにおける表示部109の表示画面を示す図である。図6(a)は、記録設定画面のUI表示である。6101に示すように、通常記録や記録中に倍率を変更できる倍率変更記録で記録するモードを選択することが出来る。操作者が記録するモードを選択すると図6(b)の表示画面に遷移する。   FIG. 6 is a diagram showing a display screen of the display unit 109 in the section slow & fast mode. FIG. 6A shows a UI display of the recording setting screen. As indicated by reference numeral 6101, it is possible to select a recording mode in normal recording or magnification change recording in which the magnification can be changed during recording. When the operator selects a recording mode, the screen transitions to the display screen of FIG.

図6(b)は、記録待機状態の表示画面である。第1の記録媒体108(カード1)、第2の記録媒体112(カード2)の残記録時間6201、記録装置100の動作状況6202(●は記録中、●が表示されてなければ非記録中)、タイムコード6203などが表示される。また、6204は各再生倍速を指定するためのボタンである。ユーザは操操作部103を操作していずれかのボタンを指定することにより、再生倍速の変更を指示することが可能である。   FIG. 6B is a display screen in a recording standby state. The remaining recording time 6201 of the first recording medium 108 (card 1) and the second recording medium 112 (card 2), the operation status 6202 of the recording apparatus 100 (● is recording, and if ● is not displayed, it is not recording. ), The time code 6203 and the like are displayed. Reference numeral 6204 denotes a button for designating each reproduction double speed. The user can instruct to change the playback double speed by operating the operation unit 103 and designating any button.

図6(c)は記録中に等倍から1/2スローに変更した状態の表示画面である。6301に示すように、1/2倍スローが選択されている。また6302に示すように、記録装置100が記録中である表示が追加表示される。また、6303に示すようにタイムコードは記録時間に応じて加算されていく。   FIG. 6C shows a display screen in a state where the same magnification is changed to 1/2 slow during recording. As shown in 6301, the half-throw is selected. Further, as indicated by reference numeral 6302, a display indicating that the recording apparatus 100 is recording is additionally displayed. Further, as indicated by reference numeral 6303, the time code is added in accordance with the recording time.

図6(d)は記録を停止した状態(図6(c)から1分記録を行った後に記録の停止を行った状態)の表示である。6401に示すように、残時間は図6(c)から1分減っている。また6402に示すように、記録装置100は非記録中である旨が表示される。また、6303に示すようにタイムコードは記録時間に応じて加算されていく。   FIG. 6D shows a display in a state where recording is stopped (a state where recording is stopped after recording is performed for one minute from FIG. 6C). As indicated by 6401, the remaining time is reduced by 1 minute from FIG. Further, as indicated by reference numeral 6402, a message indicating that the recording apparatus 100 is not recording is displayed. Further, as indicated by reference numeral 6303, the time code is added in accordance with the recording time.

次に、再生時の処理を説明する。ユーザが操作部103を操作して、再生モードを指示すると再生モードとなる。制御部102は、各部を制御し、第1の記録媒体108、或いは、第2の記録媒体112のうち、ユーザが選択した方の記録媒体に記録された各動画ファイルの代表画像(サムネイル画像)を表示部109に表示する。   Next, processing during reproduction will be described. When the user operates the operation unit 103 to instruct a playback mode, the playback mode is set. The control unit 102 controls each unit, and a representative image (thumbnail image) of each moving image file recorded on the recording medium selected by the user among the first recording medium 108 or the second recording medium 112. Is displayed on the display unit 109.

ユーザは操作部103を操作して、所望の動画ファイルに対応した代表画像を選択して再生を指示する。制御部102は、再生指示があると、指定された動画ファイルを再生するように第1の記録再生部106、或いは第2の記録再生部111に指示する。第1の記録再生部106、或いは第2の記録再生部111は、指定された動画ファイルを記録媒体から読み出し、メモリ105に記憶する。   The user operates the operation unit 103 to select a representative image corresponding to a desired moving image file and instruct reproduction. When there is a reproduction instruction, the control unit 102 instructs the first recording / reproducing unit 106 or the second recording / reproducing unit 111 to reproduce the designated moving image file. The first recording / reproducing unit 106 or the second recording / reproducing unit 111 reads the designated moving image file from the recording medium and stores it in the memory 105.

第1の符号化処理部104は、メモリ105から符号化された動画データを読み出して復号し、再度メモリ105に記憶する。表示部109は、復号された動画データの各フレームをメモリ105から読み出して表示する。この際、区間スロー&ファストモードで記録された動画データを再生した場合には、表示部109は30fpsのフレームレートで表示する。そのため、1倍速以外の再生倍速に対応したフレームレートで記録された動画データは、それぞれの再生倍速で表示される。また、通常の記録モードで記録された動画データは、60fps(1倍速)で表示される。   The first encoding processing unit 104 reads the encoded moving image data from the memory 105, decodes it, and stores it in the memory 105 again. The display unit 109 reads out each frame of the decoded moving image data from the memory 105 and displays it. At this time, when the moving image data recorded in the section slow & fast mode is reproduced, the display unit 109 displays it at a frame rate of 30 fps. For this reason, moving image data recorded at a frame rate corresponding to a playback speed other than 1 × speed is displayed at each playback speed. The moving image data recorded in the normal recording mode is displayed at 60 fps (1 × speed).

このように、本実施形態では、動画を符号化し、二つの記録媒体に同時に記録する機能を持つ。また、同時記録中に、動画の再生倍速の変更の指示があると、各記録媒体に記録する動画のフレームレートを、再生倍速に対応したフレームレートに変更する。更に、各記録媒体に記録される動画の符号化モードが異なる場合、各符号化モードにおける符号化単位のフレーム数の最小公倍数を単位として、フレームレートを変更する。   As described above, the present embodiment has a function of encoding a moving image and simultaneously recording it on two recording media. In addition, if there is an instruction to change the playback speed of a moving image during simultaneous recording, the frame rate of the moving image recorded on each recording medium is changed to a frame rate corresponding to the playback speed. Further, when the encoding modes of moving images recorded on the respective recording media are different, the frame rate is changed with the least common multiple of the number of frames of the encoding unit in each encoding mode as a unit.

このような構成により、各記録媒体に同時に記録された動画から、各再生倍速に対応したフレームレートの部分を簡単に切り出すことが可能となる。   With such a configuration, it is possible to easily cut out a frame rate portion corresponding to each reproduction double speed from moving images simultaneously recorded on each recording medium.

なお、本実施形態では、区間スロー&ファストモードにおいて、再生倍速に応じて、撮像部101から出力される動画のフレームを間引く構成としたが、他の構成でもよい。例えば、撮像部101が適切に撮像素子からの画像の読み出し速度を変更可能であれば、撮像部101が出力する動画データのフレームレートを、各再生倍速に応じて変更する構成でもよい。   In the present embodiment, in the section slow & fast mode, the moving image frames output from the imaging unit 101 are thinned out according to the playback double speed. However, other configurations may be used. For example, if the image capturing unit 101 can appropriately change the image reading speed from the image sensor, the frame rate of the moving image data output from the image capturing unit 101 may be changed according to each reproduction speed.

更に、画像処理部102がフレームを間引く構成ではなく、複数の前後のフレームを合成することにより、各再生倍速に対応したフレームレートの動画データを生成する構成でもよい。   Furthermore, the image processing unit 102 may not be configured to thin out frames, but may be configured to generate moving image data having a frame rate corresponding to each reproduction speed by combining a plurality of previous and subsequent frames.

また、記録された動画データの再生時のフレームレートである所定の再生フレームレートを60fpsとしたが、これ以外のフレームレートとしてもよい。また、再生倍速を1倍速、2倍速、或いは、1/2倍速以外としてもよく、更に四つ以上の再生倍速に変更できるようにしてもよい。   In addition, the predetermined playback frame rate that is the frame rate at the time of playback of the recorded moving image data is set to 60 fps, but other frame rates may be used. Also, the playback double speed may be other than 1 × speed, 2 × speed, or 1/2 speed, and may be changed to four or more playback speeds.

また、第1の符号化処理部104、第2の符号化処理部113における符号化モードとして、符号化の単位となるフレーム数が異なる符号化モードを備える構成としてもよい。例えば、1GOPが12フレームで構成される第3の符号化モードを有する構成としてもよい。そして、区間スロー&ファストモードにおいて、同時記録を行う場合に、第1の符号化処理部104が第2の符号化モード、第2の符号化処理部113が第3の符号化モードに設定される。この場合は、15フレームと12フレームの最小公倍数である60フレームを単位として、再生倍速に対応したフレームレートの変更処理が行われる。   In addition, the encoding mode in the first encoding processing unit 104 and the second encoding processing unit 113 may be configured to include encoding modes having different numbers of frames serving as encoding units. For example, it may be configured to have a third encoding mode in which 1 GOP is composed of 12 frames. When simultaneous recording is performed in the section slow & fast mode, the first encoding processing unit 104 is set to the second encoding mode, and the second encoding processing unit 113 is set to the third encoding mode. The In this case, the frame rate changing process corresponding to the reproduction double speed is performed in units of 60 frames which is the least common multiple of 15 frames and 12 frames.

次に、第2の実施形態を説明する。図7は第2の実施形態の記録装置700を示す図である。図7において、図1と同様の構成については同一番号を付加して詳細な説明は省略する。記録装置700では、第3の符号化処理部115、第3の記録再生部116、第3の記録媒体117が追加されている。第3の符号化処理部115は、第1の符号化処理部104、第2の符号化処理部113と同じく、動画データを所定の符号化方式により符号化する。また、第3の記録再生部116は、第3の記録媒体117に対して動画データや各種のデータを記録する。記録蔵置700は、第1の記録媒体108、第2の記録媒体112に対する動画の記録中に、記録残量(空き容量)が無くなった場合、第3の記録媒体117に記録先を切り替えて動画の記録を続ける機能を持つ。   Next, a second embodiment will be described. FIG. 7 is a diagram illustrating a recording apparatus 700 according to the second embodiment. In FIG. 7, the same components as those in FIG. 1 are denoted by the same reference numerals and detailed description thereof is omitted. In the recording apparatus 700, a third encoding processing unit 115, a third recording / reproducing unit 116, and a third recording medium 117 are added. Similar to the first encoding processing unit 104 and the second encoding processing unit 113, the third encoding processing unit 115 encodes moving image data by a predetermined encoding method. The third recording / reproducing unit 116 records moving image data and various data on the third recording medium 117. The recording storage 700 switches the recording destination to the third recording medium 117 when there is no remaining recording capacity (free space) during recording of moving images on the first recording medium 108 and the second recording medium 112. With the ability to continue recording.

以下、図8のフローチャートを用いて、本実施例における記録処理について説明する。なお、図8の処理は、制御部704が各部を制御することにより実行される。S401〜S413の処理は図4と同じであるため、説明を省略する。S801において、制御部104の指示により、記録再生部108、112、117が各記録媒体の記録残量を取得する。取得した記録残量しに基づいて、記録を継続可能な記録媒体が存在し(S802)、記録媒体を切り替える必要がある場合(S803)、残量が無くなった記録媒体(ここでは第2の記録媒体112とする)に記録中のファイルをクローズする(S804)。そして、記録先の記録媒体を第2の記録媒体112から第3の記録媒体117に切り替え(S805)、動画ファイルをオープンして記録を継続する(S806)。また、記録を継続可能な記録媒体が存在しない場合(S802)は記録停止処理と同様の制御に遷移する。   Hereinafter, the recording process in this embodiment will be described with reference to the flowchart of FIG. Note that the processing in FIG. 8 is executed by the control unit 704 controlling each unit. Since the process of S401-S413 is the same as FIG. 4, description is abbreviate | omitted. In step S <b> 801, the recording / reproducing units 108, 112, and 117 acquire the remaining recording capacity of each recording medium according to an instruction from the control unit 104. If there is a recording medium that can continue recording based on the acquired recording remaining amount (S802), and it is necessary to switch the recording medium (S803), the recording medium that has run out of remaining amount (here, the second recording) The file being recorded on the medium 112 is closed (S804). Then, the recording medium of the recording destination is switched from the second recording medium 112 to the third recording medium 117 (S805), the moving image file is opened, and recording is continued (S806). If there is no recording medium that can continue recording (S802), the process proceeds to the same control as the recording stop process.

図9は第1の記録媒体108と第2の記録媒体112に記録していた場合に倍率を等倍から1/2倍に切り替えが発生し、さらに第2の記録媒体112から第3の記録媒体117に記録媒体が切り替わる際のタイミングチャートである。図5と同様、記録最小単位の最小公倍数は15であり、第2の記録媒体112の記録残量がなくなってしまったため、第3の記録媒体117にA34フレームから切り替える。記録媒体を跨がずに簡易編集する場合にスロー区間、ファスト区間のみを切り出すことが可能になる。   In FIG. 9, when recording is performed on the first recording medium 108 and the second recording medium 112, the magnification is switched from the same magnification to ½ times, and further, the second recording medium 112 performs the third recording. 12 is a timing chart when the recording medium is switched to the medium 117. As in FIG. 5, the least common multiple of the minimum recording unit is 15, and the remaining recording capacity of the second recording medium 112 has been exhausted, so the A3 frame is switched to the third recording medium 117. In the case of simple editing without straddling the recording medium, only the slow section and the fast section can be cut out.

次に図10を用いて、操作者が操作部103を操作して、記録装置700に対して1/2記録中に記録媒体が切り替わった場合のUI表示について説明していく。図10(a)は、1001に示すようにカード1を示す第1の記録媒体108、カード2を示す第2の記録媒体112に記録中であることを表している。図10(b)は、1002に示すようにカード2を示す第1の記録媒体112は記録残量がなくなったため、END表示になり、カード3を示す第3の記録媒体117に切り替わって記録が継続していることを表示する。また、カード1を示す第1の記録媒体108は記録残量が残っているため記録を継続していることを表している。   Next, with reference to FIG. 10, UI display when the operator operates the operation unit 103 and the recording medium is switched to the recording apparatus 700 during 1/2 recording will be described. FIG. 10A shows that recording is being performed on the first recording medium 108 indicating the card 1 and the second recording medium 112 indicating the card 2 as indicated by 1001. In FIG. 10B, as shown in 1002, the first recording medium 112 indicating the card 2 has no remaining recording capacity, so the END display is displayed, and the recording is switched to the third recording medium 117 indicating the card 3. Display that it is continuing. Further, the first recording medium 108 indicating the card 1 indicates that recording is continued because the remaining recording capacity remains.

以上、本発明をその好適な実施形態に基づいて詳述してきたが、本発明はこれら特定の実施形態に限られるものではなく、この発明の要旨を逸脱しない範囲の様々な形態も本発明に含まれる。上述の実施形態の一部を適宜組み合わせてもよい。また、上述の実施形態の機能を実現するソフトウェアのプログラムを、記録媒体から直接、或いは有線/無線通信を用いてプログラムを実行可能なコンピュータを有するシステム又は装置に供給し、そのプログラムを実行する場合も本発明に含む。   Although the present invention has been described in detail based on preferred embodiments thereof, the present invention is not limited to these specific embodiments, and various forms within the scope of the present invention are also included in the present invention. included. A part of the above-described embodiments may be appropriately combined. Also, when a software program that realizes the functions of the above-described embodiments is supplied from a recording medium directly to a system or apparatus having a computer that can execute the program using wired / wireless communication, and the program is executed Are also included in the present invention.

従って、本発明の機能処理をコンピュータで実現するために、該コンピュータに供給、インストールされるプログラムコード自体も本発明を実現するものである。つまり、本発明の機能処理を実現するためのコンピュータプログラム自体も本発明に含まれる。
その場合、プログラムの機能を有していれば、オブジェクトコード、インタプリタにより実行されるプログラム、OSに供給するスクリプトデータ等、プログラムの形態を問わない。
Accordingly, the program code itself supplied and installed in the computer in order to implement the functional processing of the present invention by the computer also realizes the present invention. That is, the computer program itself for realizing the functional processing of the present invention is also included in the present invention.
In this case, the program may be in any form as long as it has a program function, such as an object code, a program executed by an interpreter, or script data supplied to the OS.

プログラムを供給するための記録媒体としては、例えば、ハードディスク、磁気テープ等の磁気記録媒体、光/光磁気記憶媒体、不揮発性の半導体メモリでもよい。また、プログラムの供給方法としては、コンピュータネットワーク上のサーバに本発明を形成するコンピュータプログラムを記憶し、接続のあったクライアントコンピュータはがコンピュータプログラムをダウンロードしてプログラムするような方法も考えられる。   As a recording medium for supplying the program, for example, a magnetic recording medium such as a hard disk or a magnetic tape, an optical / magneto-optical storage medium, or a nonvolatile semiconductor memory may be used. As a program supply method, a computer program that forms the present invention is stored in a server on a computer network, and a connected client computer downloads and programs the computer program.

Claims (6)

撮像手段と、
前記撮像手段により得られた動画データを符号化する手段であって、符号化の単位となるフレーム数が異なる複数の符号化モードを有する第1の符号化手段と、
前記撮像手段により得られた動画データを符号化する手段であって、前記複数の符号化モードを有する第2の符号化手段と、
前記第1の符号化手段により符号化された動画データを第1の記録媒体に記録する第1の記録手段と、
前記第2の符号化手段により符号化された動画データを第2の記録媒体に記録する第2の記録手段と、
ユーザの指示に応じて、前記複数の符号化モードの何れかを前記第1の符号化手段の符号化モードとして設定し、前記複数の符号化モードの何れかを前記第2の符号化手段の符号化モードとして設定し、前記設定された符号化モードで前記第1の符号化手段と前記第2の符号化手段により符号化された動画データを、前記第1の記録媒体と前記第2の記録媒体に同時に記録するように制御を行うとともに、前記第1の記録媒体と前記第2の記録媒体への前記動画データの同時記録中に、記録中の動画データを再生したときの再生倍速を所定の再生倍速に変更するための指示があった場合、前記第1の符号化手段と前記第2の符号化手段によりそれぞれ符号化される動画データのフレームレートを前記所定の再生倍速に対応した所定のフレームレートに変更し、前記所定のフレームレートの動画データを記録するように制御を行う制御手段とを備え、
前記制御手段は、前記第1の記録媒体と前記第2の記録媒体に同時に記録されている動画データの符号化モードのフレーム数の最小公倍数となるフレーム数を単位として、前記同時記録中の動画データのフレームレートを変更するように制御を行うことを特徴とする記録装置。
Imaging means;
Means for encoding moving image data obtained by the imaging means, the first encoding means having a plurality of encoding modes with different number of frames as a unit of encoding;
Means for encoding moving image data obtained by the imaging means, the second encoding means having the plurality of encoding modes;
First recording means for recording the moving image data encoded by the first encoding means on a first recording medium;
Second recording means for recording the moving image data encoded by the second encoding means on a second recording medium;
In response to a user instruction, any one of the plurality of encoding modes is set as an encoding mode of the first encoding unit, and any one of the plurality of encoding modes is set by the second encoding unit. The encoding mode is set, and the moving image data encoded by the first encoding unit and the second encoding unit in the set encoding mode is converted into the first recording medium and the second recording medium. Control is performed so that recording is simultaneously performed on a recording medium, and the reproduction speed when the moving image data being recorded is reproduced during the simultaneous recording of the moving image data on the first recording medium and the second recording medium. When there is an instruction to change to a predetermined reproduction speed, the frame rate of the moving image data encoded by the first encoding means and the second encoding means corresponds to the predetermined reproduction speed. Predetermined frame Change in over preparative, and a control means for controlling so as to record the moving image data of the predetermined frame rate,
The control means includes the moving image being simultaneously recorded in units of a frame number that is the least common multiple of the number of frames in the encoding mode of the moving image data recorded simultaneously on the first recording medium and the second recording medium. A recording apparatus that performs control so as to change a frame rate of data.
前記制御手段は、前記変更するための指示があったときのフレームレートの動画データの符号化を開始してから符号化されたフレーム数が、前記最小公倍数の整数倍となったフレームのつぎのフレームから、符号化される動画データのフレームレートを前記所定の再生倍速に対応した所定のフレームレートに変更することを特徴とする請求項1に記載の記録装置。   The control means, after starting the encoding of the video data of the frame rate when the instruction to change, the number of frames encoded after the frame that is an integral multiple of the least common multiple 2. The recording apparatus according to claim 1, wherein a frame rate of moving image data to be encoded is changed from a frame to a predetermined frame rate corresponding to the predetermined reproduction speed. 前記所定の再生倍速は1倍速以外の再生倍速であることを特徴とする請求項1に記載の記録装置。   The recording apparatus according to claim 1, wherein the predetermined reproduction speed is a reproduction speed other than a normal speed. 前記制御手段は、1倍速に対応したフレームレートの動画データの記録中に、前記変更するための指示があった場合、記録される動画データのフレームレートを前記所定の再生倍速に対応したフレームレートに変更することを特徴とする請求項1に記載の記録装置。   When the control unit is instructed to change the moving image data at the frame rate corresponding to 1 × speed, the control means sets the frame rate of the moving image data to be recorded at the frame rate corresponding to the predetermined reproduction speed. The recording apparatus according to claim 1, wherein the recording apparatus is changed to: 前記第1の符号化手段と前記第2の符号化手段はそれぞれ、フレーム内符号化とフレーム間符号化とを用いて符号化を行うことを特徴とする請求項1に記載の記録装置。   2. The recording apparatus according to claim 1, wherein each of the first encoding unit and the second encoding unit performs encoding using intra-frame encoding and inter-frame encoding. 前記撮像手段から出力された動画データのフレームを間引くことにより、前記第1の符号化手段と前記第2の符号化手段により符号化される動画データのフレームレートを変更する手段を備えることを特徴とする請求項1に記載の記録装置。   And a means for changing a frame rate of the moving image data encoded by the first encoding unit and the second encoding unit by thinning out the frames of the moving image data output from the imaging unit. The recording apparatus according to claim 1.
JP2017097403A 2017-05-16 2017-05-16 Recording device Pending JP2018195946A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017097403A JP2018195946A (en) 2017-05-16 2017-05-16 Recording device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017097403A JP2018195946A (en) 2017-05-16 2017-05-16 Recording device

Publications (1)

Publication Number Publication Date
JP2018195946A true JP2018195946A (en) 2018-12-06

Family

ID=64571912

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017097403A Pending JP2018195946A (en) 2017-05-16 2017-05-16 Recording device

Country Status (1)

Country Link
JP (1) JP2018195946A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2025126805A1 (en) * 2023-12-13 2025-06-19 日本電気株式会社 Data augmentation device, data augmentation method, and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2025126805A1 (en) * 2023-12-13 2025-06-19 日本電気株式会社 Data augmentation device, data augmentation method, and program

Similar Documents

Publication Publication Date Title
US8577161B2 (en) Reproduction apparatus
JP2018098664A (en) Recording apparatus, control method therefor, computer program, and recording medium
JP6137980B2 (en) Recording apparatus and control method thereof
JP2015029231A (en) Recording apparatus and control method thereof
JPWO2009072276A1 (en) Image encoding apparatus, video camera, integrated circuit, and image encoding method
JP5930748B2 (en) Recording apparatus, recording method, and recording system
JP4343765B2 (en) Recording apparatus and reproducing apparatus
JP2018195946A (en) Recording device
JP5567858B2 (en) Recording apparatus and control method thereof
US9225931B2 (en) Moving image data recording apparatus
JP2014127774A (en) Imaging device
KR100883119B1 (en) How to edit video file list
JP2014036402A (en) Recording device and recording method
JP2004343553A (en) Image decoding display device
JP7214538B2 (en) Imaging device and recording control method
JP5076457B2 (en) Video signal processing apparatus and video signal processing method
JP2018195923A (en) Recording device
JP2004254053A (en) Image reproducing device
JP5925020B2 (en) Playback device
JP5930807B2 (en) Imaging device
JP6082269B2 (en) Recording apparatus and control method thereof
JP2016082266A (en) Recording/reproducing apparatus
JP2019062427A (en) Imaging device, control method for imaging device and program
JP2016167787A (en) Recording apparatus and method
JP2007109329A (en) Image data recording apparatus, image data reproducing apparatus, image data recording method, program, and recording medium