JP2018195946A - Recording device - Google Patents
Recording device Download PDFInfo
- 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
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).
また、動画の圧縮方式として、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.
しかしながら、特許文献1のように、一部の区間のフレームレートが異なるように撮影された動画を圧縮した場合、フレームレートの切り替え位置がGOP途中となる可能性がある。
However, when a moving image shot so that the frame rates of some sections are different as in
そのため、所望のスローモーション効果、ファストモーション効果の区間のみを簡単に切り出す編集を行うことができないという問題点があった。 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.
以下、本発明の実施形態について図面を参照しながら説明する。図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
図1において、撮像部101は、撮像素子より画像を入力する。本実施形態では、撮像部101は、1フレームが横1920画素×縦1080画素の動画データを出力する。また、撮像部101は、通常の動画記録モードにおいては、30フレーム毎秒(fps)の動画データを出力する。また、後述の区間スロー&ファストモードにおいては、60fpsの動画データを出力する。
In FIG. 1, an
制御部102は、操作部103からの入力に応じて、記録装置100の動作全体を制御する。制御部102はマイクロコンピュータやメモリ等を含み、不図示の不揮発メモリに記録されたコンピュータプログラム(以下ソフトウェア)に従って記録装置100を制御する。
The
また、制御部102は、記録部106との間でデータやコマンドを通信するための記録媒体インターフェースを内蔵している。操作部103は、ユーザにより操作可能な各種のスイッチを含む。そして、操作部103は、電源スイッチや記録の開始、停止および、フレームレート切り替えを指示する為のスイッチ、記録装置100のモードを切り替える為のスイッチ等を含む。
The
第1の符号化処理部104は、記録時においては、撮像部101により得られた動画データをH.264/MPEG4 AVC等の公知の符号化形式に従って符号化して、その情報量を圧縮する。また、画像を記録する為に必要な処理を施す。また、第1の符号化処理部104は、第1の符号化モードと第2の符号化モードの複数の符号化モードを持つ。第1の符号化モードにおいて、第1の符号化処理部104は、動画データの全てのフレームをフレーム内符号化方式により符号化する。つまり、第1の符号化モードにおいては、符号化の単位が1フレームとなる。フレーム内符号化方式は、他のフレームを参照せずに、同じフレーム内のデータだけを用いて符号化する方式である。
At the time of recording, the first
また、第2の符号化モードにおいて、第1の符号化処理部104は、フレーム内符号化と、フレーム間符号化とを共に用いて符号化を行う。本実施形態では、符号化処理の単位となる1GOPを15フレームで構成する。また、1GOPは1フレームのIピクチャを含む。つまり、第2の符号化モードにおいては、15フレームが符号化の単位となる。また、本実施形態では、一つのGOPのフレームが、他のGOPのフレームを参照フレームとして使用しない、ClosedGOPとして符号化する。
In the second coding mode, the first
図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
メモリ105は、画像データを保持する。記録装置100の各ブロックは、メモリ105に対してアクセスすることにより、画像データを処理する。またメモリ105は、画像データの他に、ファイルシステムの情報や、各種情報を記憶し、更に制御部102による制御のためのワークメモリ等の役割を果たす。
The
第1の記録再生部106は、メモリ105に記憶された画像データ、或いは、各種情報を第1の記録媒体108に記録する。第1の記録媒体108はフラッシュメモリカード等のランダムアクセスの記録媒体である。第1の記録媒体108は、不図示の装着・排出機構により撮像装置100に対して容易に排出、装着することができる。
The first recording / reproducing
また、第1の記録再生部106は、第1の記録媒体108に記録する画像データや各種情報をFAT32やexFAT等のファイルシステムに従い、ファイルとして管理する。フレームレート変換部107は、撮像部101から入力された動画データのフレームを間引くことによりフレームレートを変換する。表示部109は、動画や各種の情報を液晶パネル等の表示装置に表示する。データバス110は、記録装置100の各部の間でデータや各種の制御コマンドなどを送受信するために用いられる。
The first recording /
画像処理部114は、記録時においては、撮像部101により得られた動画データに対して現像処理やホワイトバランス、ガンマ補正などの公知の処理を施す。また、表示部109に表示するための表示用の画像も生成する。
The
第2の符号化処理部113は、記録時においては、撮像部101により得られた動画データをH.264/MPEG4 AVC等の公知の符号化形式に従って符号化して、その情報量を圧縮する。また、画像を記録する為に必要な処理を施す。また、第2の符号化処理部104は、第1の符号化処理部104と同様に、第1の符号化モードと第2の符号化モードを持つ。
At the time of recording, the second
第2の記録再生部111は、メモリ105に記憶された画像データ、或いは、各種情報を第2の記録媒体112に記録する。第2の記録媒体112はフラッシュメモリカード等のランダムアクセスの記録媒体である。第2の記録媒体112は、不図示の装着・排出機構により撮像装置100に対して容易に排出、装着することができる。また、第2の記録再生部111は、第2の記録媒体112に記録する画像データや各種情報をFAT32やexFAT等のファイルシステムに従い、ファイルとして管理する。
The second recording / reproducing
また、第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
制御部102は、メモリ105に記憶したファイルシステムデータを解析することでファイルシステムがFAT32なのか、exFATなのかを識別し、制御を切り替える。制御部102は、読み出したファイルシステムデータに従ってファイルの書き込み、読み出しを制御する。制御部102は、第1の記録媒体108、第2の記録媒体112へのファイルの書き込みに応じて、メモリ105に記憶されたファイルシステムデータを更新する。そして、更新したファイルシステムデータを、第1の記録再生部106により記録媒体108に記録し、また、第2の記録再生部111により記録媒体112に記録する。
The
また、ユーザは、操作部103を操作することにより、記録装置100の動作モードの切り替え、あるいは、動画データの記録開始、停止、あるいは、フレームレートの切り替えなどを指示することができる。
Further, the user can instruct to switch the operation mode of the
次に、本実施形態における記録動作について説明する。制御部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
本実施形態では、撮像装置100は、通常の記録モードを持つ。通常の記録モードにおいては、ユーザによる記録開始の指示に応じて動画の記録が開始され、記録停止の指示に応じて動画の記録が停止される。また、通常の記録モードでは、記録開始から記録停止までの間、記録される動画のフレームレートは同じであり、ユーザが変更することができない。また、通常の記録モードで記録される動画データのフレームレートは60fpsである。
In the present embodiment, the
また、ユーザは、記録待機状態において、第1の記録媒体108と第2の記録媒体112のうちの何れかを記録先として選択することができる。更に、記録装置100は、第1の記録媒体108と第2の記録媒体112の両方に動画を記録する同時記録の機能を持つ。ユーザは記録待機状態において操作部103を操作することにより、同時記録の機能を設定することができる。
In addition, the user can select either the
また、ユーザは、記録待機状態において、動画を記録する場合の符号化モードとして、第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
まず、通常の記録モードの処理について説明する。記録待機状態において、操作部112が操作され、動画の記録開始の指示があると、制御部111は、各部を制御して動画の記録を開始する。
First, normal recording mode processing will be described. In the recording standby state, when the
撮像部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
記録先として第1の記録媒体108が選択された場合、記録再生部106は、メモリ105から符号化された動画データを読み出し、第1の記録媒体108に記録する。また、記録先として第2の記録媒体112が選択された場合、記録再生部111は、メモリ105から符号化された動画データを読み出し、第2の記録媒体112に記録する。また、同時記録が設定された場合、第1の記録再生部106と第2の記録再生部111がそれぞれ、符号化された動画データをメモリ105から読みだして第1の記録媒体108、第2の記録媒体112に記録する。このように記録が行われ、ユーザにより記録停止の指示があると、制御部102は、各部を制御して記録を停止する。
When the
また、撮像装置100は、記録開始から記録停止までの間に、記録される動画のフレームレートをユーザの指示により変更することができる、所定の記録モードを持つ。以下、この所定の記録モードを区間スロー&ファストモードと呼ぶ。
Further, the
区間スロー&ファストモードにおいて、ユーザは、動画の記録中に操作部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
区間スロー&ファストモードにおいて、ユーザは、動画の記録中に、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
ユーザは、記録待機状態において操作部103を操作することにより、区間スロー&ファストモードに設定することができる。区間スロー&ファストモードが設定された場合、記録待機状態に遷移し、記録開始指示を待つ。制御部102は、区間スロー&ファストモードに設定された場合、撮像部101に対し、60fpsの動画データを出力する様に指示する。
The user can set the section slow & fast mode by operating the
フレームレート変換部107は、撮像部101からの60fpsの動画データを1フレームおきに間引くことにより、30fpの1倍速の動画データを出力する。このような記録待機状態において、撮像部101から出力されたフレーム画像が表示部109に表示される。
The frame
操作部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
このように動画データの記録開始後、ユーザが操作部103を操作することにより、フレームレートの変更が指示された場合、制御部102は、ユーザの指示に応じて、フレームレート変換部107による動画データの間引き率を変更する。フレームレート変換部107は、制御部102から指定された間引き率に応じて撮像部101からの動画のフレームを間引いて出力する。
As described above, when the user operates the
図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.
図3(b)の302は、1倍速の動画データを示している。1倍速の動画を記録する場合、フレームレート変換部107は撮像部101からの60fpsの動画データを1フレームおきに間引き、30fpsの動画データを出力する。この場合のフレームの間引き率は2フレームに1フレームとなる。また、フレームの更新間隔は1/30秒となる。
図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
図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
以下、図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
記録装置100が起動状態にあり、区間スロー&ファストモードに設定されて、操作部103により記録開始が指示された場合に図4の処理が開始される。制御部103は、符号化モードに応じて動画の記録時の最小記録単位を取得する(S401)。第1の符号化モードでは、符号化された動画の各フレームを1フレームのデータだけで復号できる。そのため、第1の符号化モードが設定されていた場合は最小記録単位を1フレームとする。また、第2の符号化モードでは、動画データの符号化単位が1GOPの15フレームとなる。そのため、第2の符号化モードが設定されていた場合は最小記録単位を15フレームとする。制御部102は、同時記録が設定されていた場合には、各記録媒体に対して設定された符号化モードに基づいて、それぞれの記録媒体への最小の記録単位を取得する。
The processing of FIG. 4 is started when the
次に、制御部102は、同時記録が設定されているか否かを判別する(S402)。同時記録が設定されていた場合、各記録媒体に対する最小記録単位の最小公倍数を記録単位として設定する(S403)。第1の記録媒体108の符号化モードとして第1の符号化モードが設定され、第2の記録媒体112の符号化モードとして第2の符号化モードが設定されていた場合、1フレームと15フレームの最小公倍数である15フレームが記録単位として設定される。同時記録が設定されていない場合、制御部102は、S401で取得された記録最小単位を記録単位として設定する(S404)。
Next, the
制御部102は、記録開始時においては、間引き率を1倍速の間引き率である1/2に設定する(S405)。そのため、フレームレート変換部107は60fpsの動画データを30fpsに変換する。次に、制御部102は、記録先として選択された記録媒体に対して動画ファイルをオープンし、動画の符号化と記録を開始する(S406)。
At the start of recording, the
記録を開始した後、制御部102は操作部103からの記録停止の指示があったか否かを判別する(S407)。ユーザにより記録停止が指示された場合は、記録される動画データのフレームレートを、現在の再生倍速に対応したフレームレートに切り替えてから符号化を行ったフレーム数が記録単位の整数倍となるまで記録を継続する(S412)。そして、記録単位の整数倍のフレームまで符号化を行ったら動画の符号化と記録を停止して、ファイルをクローズする(S413)。
After starting the recording, the
また、記録停止の指示がない場合、制御部102は、操作部103により動画の再生倍速の変更の指示があったか否かを判別する(S408)。変更指示が無い場合には、現在のフレームレートでの動画の記録を続ける。また、変更指示があった場合、制御部102は、現在の再生倍速に対応したフレームレートの動画の符号化を開始してから、符号化を行ったフレーム数が記録単位の整数倍となったか否かを判別する(S409)。記録単位の整数倍のフレーム数を符号化したら、つぎのフレームから、フレームレート変換部107の間引き率を、変更後の再生倍速に応じて変更する(S411)。そして、変更後のフレームレートで動画の記録を続ける。符号化を行ったフレーム数が記録単位の整数倍となるまでに記録停止の指示があると(S410)、符号化を行ったフレーム数が記録単位の整数倍になるまで現在のフレームレートでの動画の記録を継続して記録を停止する。
If there is no instruction to stop recording, the
図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.
等倍速の動画の記録中に、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
図6は、区間スロー&ファストモードにおける表示部109の表示画面を示す図である。図6(a)は、記録設定画面のUI表示である。6101に示すように、通常記録や記録中に倍率を変更できる倍率変更記録で記録するモードを選択することが出来る。操作者が記録するモードを選択すると図6(b)の表示画面に遷移する。
FIG. 6 is a diagram showing a display screen of the
図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
図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
図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
次に、再生時の処理を説明する。ユーザが操作部103を操作して、再生モードを指示すると再生モードとなる。制御部102は、各部を制御し、第1の記録媒体108、或いは、第2の記録媒体112のうち、ユーザが選択した方の記録媒体に記録された各動画ファイルの代表画像(サムネイル画像)を表示部109に表示する。
Next, processing during reproduction will be described. When the user operates the
ユーザは操作部103を操作して、所望の動画ファイルに対応した代表画像を選択して再生を指示する。制御部102は、再生指示があると、指定された動画ファイルを再生するように第1の記録再生部106、或いは第2の記録再生部111に指示する。第1の記録再生部106、或いは第2の記録再生部111は、指定された動画ファイルを記録媒体から読み出し、メモリ105に記憶する。
The user operates the
第1の符号化処理部104は、メモリ105から符号化された動画データを読み出して復号し、再度メモリ105に記憶する。表示部109は、復号された動画データの各フレームをメモリ105から読み出して表示する。この際、区間スロー&ファストモードで記録された動画データを再生した場合には、表示部109は30fpsのフレームレートで表示する。そのため、1倍速以外の再生倍速に対応したフレームレートで記録された動画データは、それぞれの再生倍速で表示される。また、通常の記録モードで記録された動画データは、60fps(1倍速)で表示される。
The first
このように、本実施形態では、動画を符号化し、二つの記録媒体に同時に記録する機能を持つ。また、同時記録中に、動画の再生倍速の変更の指示があると、各記録媒体に記録する動画のフレームレートを、再生倍速に対応したフレームレートに変更する。更に、各記録媒体に記録される動画の符号化モードが異なる場合、各符号化モードにおける符号化単位のフレーム数の最小公倍数を単位として、フレームレートを変更する。 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
更に、画像処理部102がフレームを間引く構成ではなく、複数の前後のフレームを合成することにより、各再生倍速に対応したフレームレートの動画データを生成する構成でもよい。
Furthermore, the
また、記録された動画データの再生時のフレームレートである所定の再生フレームレートを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
次に、第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
以下、図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
図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
次に図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
以上、本発明をその好適な実施形態に基づいて詳述してきたが、本発明はこれら特定の実施形態に限られるものではなく、この発明の要旨を逸脱しない範囲の様々な形態も本発明に含まれる。上述の実施形態の一部を適宜組み合わせてもよい。また、上述の実施形態の機能を実現するソフトウェアのプログラムを、記録媒体から直接、或いは有線/無線通信を用いてプログラムを実行可能なコンピュータを有するシステム又は装置に供給し、そのプログラムを実行する場合も本発明に含む。 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.
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)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2025126805A1 (en) * | 2023-12-13 | 2025-06-19 | 日本電気株式会社 | Data augmentation device, data augmentation method, and program |
-
2017
- 2017-05-16 JP JP2017097403A patent/JP2018195946A/en active Pending
Cited By (1)
| 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 |