JP5803814B2 - Recording apparatus and recording control method - Google Patents

Recording apparatus and recording control method Download PDF

Info

Publication number
JP5803814B2
JP5803814B2 JP2012123630A JP2012123630A JP5803814B2 JP 5803814 B2 JP5803814 B2 JP 5803814B2 JP 2012123630 A JP2012123630 A JP 2012123630A JP 2012123630 A JP2012123630 A JP 2012123630A JP 5803814 B2 JP5803814 B2 JP 5803814B2
Authority
JP
Japan
Prior art keywords
recording
recording medium
video data
multiplexing
data group
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.)
Active
Application number
JP2012123630A
Other languages
Japanese (ja)
Other versions
JP2013251644A (en
Inventor
義弘 松永
義弘 松永
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.)
JVCKenwood Corp
Original Assignee
JVCKenwood Corp
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 JVCKenwood Corp filed Critical JVCKenwood Corp
Priority to JP2012123630A priority Critical patent/JP5803814B2/en
Priority to BR112014029637A priority patent/BR112014029637A2/en
Publication of JP2013251644A publication Critical patent/JP2013251644A/en
Application granted granted Critical
Publication of JP5803814B2 publication Critical patent/JP5803814B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Management Or Editing Of Information On Record Carriers (AREA)
  • Television Signal Processing For Recording (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Addition Polymer Or Copolymer, Post-Treatments, Or Chemical Modifications (AREA)

Description

本発明は、記録装置および記録制御方法に関し、特に複数の記録媒体に同時にデータを記録するための記録装置および記録制御方法に関する。   The present invention relates to a recording apparatus and a recording control method, and more particularly to a recording apparatus and a recording control method for simultaneously recording data on a plurality of recording media.

近年、複数の記録媒体に同時記録可能なカメラレコーダが実用化されている。このようなカメラレコーダでは、撮影者の操作による任意のタイミングのシーンを一つの記録媒体に記録しつつ、撮り逃し防止のためのバックアップとして撮影画像を継続的に別の記録媒体に記録し続けることもできる。特に業務用用途(例えばイベント撮影)では、撮影者の意図しないタイミングでのスクープシーンの撮り逃し防止のため、同時記録は有効な機能である。   In recent years, camera recorders capable of simultaneous recording on a plurality of recording media have been put into practical use. In such a camera recorder, a scene at an arbitrary timing by a photographer's operation is recorded on one recording medium, and a photographed image is continuously recorded on another recording medium as a backup to prevent shooting omission. You can also. In particular, in business use (for example, event shooting), simultaneous recording is an effective function for preventing a scoop scene from being missed at a timing unintended by the photographer.

特開2010−273327号公報JP 2010-273327 A

同時記録可能なカメラレコーダにおいて、記録媒体の数に対応したチャネル数の符号化器、多重化器をそれぞれ別途に設けるのは回路規模、消費電力、コストの増大を招く。また、同時記録する際、一方の記録媒体に対して単純に記録開始処理および停止処理をするだけでは、先頭の数フレームが再生できなかったり、シーンカット前後の不要な音声や映像が混じりがちである。   In a camera recorder capable of simultaneous recording, separately providing an encoder and a multiplexer having the number of channels corresponding to the number of recording media causes an increase in circuit scale, power consumption, and cost. Also, when recording simultaneously, simply starting and stopping the recording on one recording medium will not allow the first few frames to be played back, or unnecessary audio and video before and after the scene cut will tend to be mixed. is there.

本発明はこうした状況に鑑みなされたものであり、その目的は、符号化された映像データと音声データとを多重化した多重化データを複数の記録媒体に同時記録する際に、回路規模を抑制しつつ、個々の記録媒体への記録開始直後および停止直前の映像データと音声データとの品質を損なわずに記録する技術を提供することにある。   The present invention has been made in view of such circumstances, and its purpose is to suppress the circuit scale when simultaneously recording multiplexed data obtained by multiplexing encoded video data and audio data on a plurality of recording media. However, it is an object of the present invention to provide a technique for recording without impairing the quality of video data and audio data immediately after starting recording and immediately before stopping recording on each recording medium.

上記課題を解決するために、本発明のある態様の記録装置は、符号化映像データおよび符号化音声データをそれぞれ分割して多重化する多重化部と、多重化部により多重化されて生成される多重化データを、操作指示にもとづき第1記録媒体、第2記録媒体、またはその両方に記録する記録制御部と、を備える。記録制御部は、多重化データを第1記録媒体に記録中に、多重化データの第2記録媒体への記録開始指示を受け付けると、多重化データの同時記録制御を開始し、その際、前の映像データ群を参照せずに復号可能な映像データ群を先頭に、第2記録媒体への記録を開始する。   In order to solve the above problems, a recording apparatus according to an aspect of the present invention is generated by a multiplexing unit that divides and multiplexes encoded video data and encoded audio data, and is multiplexed by the multiplexing unit. And a recording control unit that records the multiplexed data on the first recording medium, the second recording medium, or both based on the operation instruction. When receiving a recording start instruction for the multiplexed data to the second recording medium while the multiplexed data is being recorded on the first recording medium, the recording control unit starts the simultaneous recording control of the multiplexed data. Recording on the second recording medium is started with a video data group that can be decoded without referring to the video data group.

本発明の別の態様もまた、記録装置である。この装置は、符号化映像データおよび符号化音声データをそれぞれ分割して多重化する多重化部と、多重化部により多重化されて生成される多重化データを、操作指示にもとづき第1記録媒体、第2記録媒体、またはその両方に記録する記録制御部と、を備える。多重化部は、符号化映像データと符号化音声データとの復号タイミングを対応させるべく、符号化音声データを符号化映像データに対して遅延させて多重化し、記録制御部は、多重化データの第1記録媒体および第2記録媒体への同時記録中に、第1記録媒体または第2記録媒体への記録停止指示を受け付けると、その時点で記録している多重化データの映像データ群とそれに対応する音声データ群の記録終了をもって、記録停止指示に係る記録媒体への記録を停止し、その際、記録停止指示に係る記録媒体に最後に記録する映像データ群に対応する音声データ群の後半と、当該映像データ群の次の映像データ群の前半とが重複する重複期間において、その重複期間に格納されるべき当該次の映像データ群の格納を無効にする。   Another embodiment of the present invention is also a recording apparatus. The apparatus includes a multiplexing unit that divides and multiplexes the encoded video data and the encoded audio data, and the multiplexed data generated by multiplexing by the multiplexing unit in accordance with an operation instruction. And a recording control unit for recording on the second recording medium or both. The multiplexing unit multiplexes the encoded audio data with delay with respect to the encoded video data so as to correspond to the decoding timings of the encoded video data and the encoded audio data, and the recording control unit When a recording stop instruction to the first recording medium or the second recording medium is received during simultaneous recording on the first recording medium and the second recording medium, the video data group of multiplexed data recorded at that time and When recording of the corresponding audio data group ends, recording on the recording medium related to the recording stop instruction is stopped, and at that time, the latter half of the audio data group corresponding to the video data group recorded last on the recording medium related to the recording stop instruction In the overlap period in which the first half of the next video data group of the video data group overlaps, the storage of the next video data group to be stored in the overlap period is invalidated.

本発明のさらに別の態様は、記録制御方法である。この方法は、符号化映像データおよび符号化音声データをそれぞれ分割して多重化する多重化ステップと、多重化されて生成される多重化データを、操作指示にもとづき第1記録媒体、第2記録媒体、またはその両方に記録する記録制御ステップと、を備える。記録制御ステップは、多重化データを第1記録媒体に記録中に、多重化データの第2記録媒体への記録開始指示を受け付けると、多重化データの同時記録制御を開始し、その際、前の映像データ群を参照せずに復号可能な映像データ群を先頭に、第2記録媒体への記録を開始する。   Yet another embodiment of the present invention is a recording control method. The method includes a multiplexing step for dividing and multiplexing the encoded video data and the encoded audio data, and the multiplexed data generated by multiplexing the first recording medium and the second recording based on an operation instruction. A recording control step of recording on a medium or both. The recording control step starts simultaneous recording control of multiplexed data when receiving an instruction to start recording multiplexed data onto the second recording medium while recording the multiplexed data on the first recording medium. Recording on the second recording medium is started with a video data group that can be decoded without referring to the video data group.

本発明のさらに別の態様もまた、記録制御方法である。この方法は、符号化映像データおよび符号化音声データをそれぞれ分割して多重化する多重化ステップと、多重化されて生成される多重化データを、操作指示にもとづき第1記録媒体、第2記録媒体、またはその両方に記録する記録制御ステップと、を備える。多重化ステップは、符号化映像データと符号化音声データとの復号タイミングを対応させるべく、符号化音声データを符号化映像データに対して遅延させて多重化し、記録制御ステップは、多重化データの第1記録媒体および第2記録媒体への同時記録中に、第1記録媒体または第2記録媒体への記録停止指示を受け付けると、その時点で記録している多重化データの映像データ群とそれに対応する音声データ群の記録終了をもって、記録停止指示に係る記録媒体への記録を停止し、その際、記録停止指示に係る記録媒体に最後に記録する映像データ群に対応する音声データ群の後半と、当該映像データ群の次の映像データ群の前半とが重複する重複期間において、その重複期間に格納されるべき当該次の映像データ群の格納を無効にする。   Yet another embodiment of the present invention is also a recording control method. The method includes a multiplexing step for dividing and multiplexing the encoded video data and the encoded audio data, and the multiplexed data generated by multiplexing the first recording medium and the second recording based on an operation instruction. A recording control step of recording on a medium or both. The multiplexing step multiplexes the encoded audio data with delay with respect to the encoded video data so as to correspond the decoding timing of the encoded video data and the encoded audio data, and the recording control step When a recording stop instruction to the first recording medium or the second recording medium is received during simultaneous recording on the first recording medium and the second recording medium, the video data group of multiplexed data recorded at that time and When recording of the corresponding audio data group ends, recording on the recording medium related to the recording stop instruction is stopped, and at that time, the latter half of the audio data group corresponding to the video data group recorded last on the recording medium related to the recording stop instruction In the overlap period in which the first half of the next video data group of the video data group overlaps, the storage of the next video data group to be stored in the overlap period is invalidated.

本発明によれば、符号化された映像データと音声データの多重化データを複数の記録媒体に同時記録をする際に、回路規模を抑制しつつ、高品質なデータファイルで記録できる。   According to the present invention, when the multiplexed data of encoded video data and audio data is simultaneously recorded on a plurality of recording media, it can be recorded as a high-quality data file while suppressing the circuit scale.

本発明の実施の形態に係る撮像装置の構成を示す図である。It is a figure which shows the structure of the imaging device which concerns on embodiment of this invention. MPEG2−TSに準拠して生成されるデータファイルのデータ構造例を示す図である。It is a figure which shows the example of a data structure of the data file produced | generated based on MPEG2-TS. MPEG2−TSに準拠して生成されるデータストリームの多重化例を示す図である。It is a figure which shows the multiplexing example of the data stream produced | generated based on MPEG2-TS. 図3のデータストリームからGOP2を抜き出す場合を説明するための図である。FIG. 4 is a diagram for explaining a case where GOP2 is extracted from the data stream of FIG. 3; 図5(a)−(b)は、GOPの種類を説明するための図である。FIGS. 5A to 5B are diagrams for explaining the types of GOPs. 多重化バッファに記憶される蓄積データの一例を示す図である。It is a figure which shows an example of the accumulation | storage data memorize | stored in a multiplexing buffer. 独立記録モードにおける第1記録媒体および第2記録媒体の記録操作例を示す図である。It is a figure which shows the example of recording operation of the 1st recording medium and 2nd recording medium in independent recording mode. 第2記録媒体への記録開始処理を説明するための図である。It is a figure for demonstrating the recording start process to a 2nd recording medium. 第2記録媒体への記録開始処理を説明するためのフローチャートである。It is a flowchart for demonstrating the recording start process to a 2nd recording medium. 第2記録媒体への記録停止処理を説明するための図である。It is a figure for demonstrating the recording stop process to the 2nd recording medium. 第2記録媒体への記録停止処理を説明するためのフローチャートである。It is a flowchart for demonstrating the recording stop process to a 2nd recording medium. 多重化データの第1記録媒体および第2記録媒体への記録終了後に第1記録媒体および第2記録媒体に保存されるデータを説明するための図である。It is a figure for demonstrating the data preserve | saved at the 1st recording medium and the 2nd recording medium after completion | finish of recording to the 1st recording medium and 2nd recording medium of multiplexed data.

図1は、本発明の実施の形態に係る撮像装置500の構成を示す図である。撮像装置500は、撮像部200、音声取得部300、記録装置100、第1記録媒体410、第2記録媒体420を備える。撮像装置500には、例えば業務用カメラレコーダなどが該当する。   FIG. 1 is a diagram illustrating a configuration of an imaging apparatus 500 according to an embodiment of the present invention. The imaging device 500 includes an imaging unit 200, an audio acquisition unit 300, a recording device 100, a first recording medium 410, and a second recording medium 420. The imaging apparatus 500 corresponds to, for example, a business camera recorder.

撮像部200は、CCD(Charge Coupled Device Image Sensor) イメージセンサ、CMOS(Complementary Metal Oxide Semiconductor)イメージセンサなどの固体撮像素子を備える。撮像部200は、固体撮像素子により光から電気に変換された信号に所定の信号処理を施し、映像信号として記録装置100に出力する。音声取得部300はマイクを備える。音声取得部300は、マイクにより音から電気に変換された信号に所定の信号処理を施し、音声信号として記録装置100に出力する。   The imaging unit 200 includes a solid-state imaging device such as a charge coupled device image sensor (CCD) image sensor or a complementary metal oxide semiconductor (CMOS) image sensor. The imaging unit 200 performs predetermined signal processing on the signal converted from light to electricity by the solid-state imaging device, and outputs the signal to the recording apparatus 100 as a video signal. The voice acquisition unit 300 includes a microphone. The sound acquisition unit 300 performs predetermined signal processing on a signal converted from sound to electricity by a microphone, and outputs the signal to the recording apparatus 100 as a sound signal.

記録装置100は、映像符号化部10、映像バッファ20、音声符号化部30、音声バッファ40、多重化部50、多重化バッファ60、記録媒体インタフェース部70、ユーザインタフェース部80、制御部90を備える。映像符号化部10、音声符号化部30、多重化部50はそれぞれの専用のハードウェアで構成される。映像バッファ20、音声バッファ40、多重化バッファ60はそれぞれ、FIFO(first-in first-out)形式またはリングバッファ形式のRAM(Random Access Memory)で構築される。制御部90はマイクロコンピュータで構成される。なお、これらの構成方法は一例である。例えば映像符号化部10、音声符号化部30、多重化部50の少なくとも一部の機能を、マイクロコンピュータによるソフトウェア処理で実現してもよい。   The recording apparatus 100 includes a video encoding unit 10, a video buffer 20, an audio encoding unit 30, an audio buffer 40, a multiplexing unit 50, a multiplexing buffer 60, a recording medium interface unit 70, a user interface unit 80, and a control unit 90. Prepare. The video encoding unit 10, the audio encoding unit 30, and the multiplexing unit 50 are configured by dedicated hardware. Each of the video buffer 20, the audio buffer 40, and the multiplexing buffer 60 is constructed by a RAM (Random Access Memory) in a FIFO (first-in first-out) format or a ring buffer format. The control unit 90 is configured by a microcomputer. Note that these configuration methods are examples. For example, at least some of the functions of the video encoding unit 10, the audio encoding unit 30, and the multiplexing unit 50 may be realized by software processing using a microcomputer.

映像符号化部10は、撮像部200から入力される映像信号を所定のフォーマットで符号化する。当該フォーマットとして例えば、MPEG−2、MPEG−4 AVC/H.264などを採用できる。映像符号化部10は、符号化した映像信号(以下、符号化映像データという)を映像バッファ20に出力する。映像バッファ20は、映像符号化部10から入力される符号化映像データを一時記憶する。   The video encoding unit 10 encodes the video signal input from the imaging unit 200 in a predetermined format. For example, MPEG-2, MPEG-4 AVC / H. H.264 or the like can be employed. The video encoding unit 10 outputs an encoded video signal (hereinafter referred to as encoded video data) to the video buffer 20. The video buffer 20 temporarily stores the encoded video data input from the video encoding unit 10.

音声符号化部30は、音声取得部300から入力される音声信号を所定のフォーマットで符号化する。当該フォーマットとして例えば、MP3、AAC、AC3などを採用できる。音声符号化部30は、符号化した音声信号(以下、符号化音声データという)を音声バッファ40に出力する。音声バッファ40は、音声符号化部30から入力される符号化音声データを一時記憶する。   The voice encoding unit 30 encodes the voice signal input from the voice acquisition unit 300 in a predetermined format. For example, MP3, AAC, AC3, etc. can be adopted as the format. The audio encoding unit 30 outputs an encoded audio signal (hereinafter referred to as encoded audio data) to the audio buffer 40. The audio buffer 40 temporarily stores the encoded audio data input from the audio encoding unit 30.

多重化部50は、映像バッファ20に記憶されている符号化映像データと、音声バッファ40に記憶されている符号化音声データを所定のフォーマットで多重化する。当該フォーマットとして例えば、MPEG2−TS(Transport Stream)、MPEG2−PS(Program Stream)などを採用できる。これらのフォーマットでは、多重化部50は、エレメントストリームである、符号化映像データおよび符号化音声データをそれぞれパケットに分割して多重化する。   The multiplexing unit 50 multiplexes the encoded video data stored in the video buffer 20 and the encoded audio data stored in the audio buffer 40 in a predetermined format. For example, MPEG2-TS (Transport Stream), MPEG2-PS (Program Stream), etc. can be adopted as the format. In these formats, the multiplexing unit 50 divides and multiplexes the encoded video data and the encoded audio data, which are element streams, into respective packets.

また多重化部50は、符号化映像データと符号化音声データとの復号タイミングを対応させるべく、符号化音声データを符号化映像データに対して遅延させて多重化する。一般的に符号化映像データの復号のほうが符号化音声データの復号より時間がかかる。したがって符号化音声データの多重化位置を後ろにずらすことにより、各シーンにおける両者の復号完了時刻が一致しやすくなる。   In addition, the multiplexing unit 50 multiplexes the encoded audio data with a delay with respect to the encoded video data in order to correspond the decoding timings of the encoded video data and the encoded audio data. In general, decoding of encoded video data takes longer than decoding of encoded audio data. Therefore, by shifting the multiplexing position of the encoded audio data backward, the decoding completion times of both scenes are easily matched.

多重化部50は、生成した多重化データを多重化バッファ60に出力する。多重化バッファ60は、多重化部50により生成された多重化データを一時記憶する。   The multiplexing unit 50 outputs the generated multiplexed data to the multiplexing buffer 60. The multiplexing buffer 60 temporarily stores the multiplexed data generated by the multiplexing unit 50.

記録媒体インタフェース部70は、多重化バッファ60に記憶された多重化データを第1記録媒体410または第2記録媒体420に記録するためのインタフェースである。第1記録媒体410および第2記録媒体420は、半導体メモリカード、光ディスク、ハードディスクなどのランダムアクセス可能な記録媒体である。例えば第1記録媒体410および第2記録媒体420は、二つのスロットにそれぞれ装着された二つの半導体メモリカードであってもよい。   The recording medium interface unit 70 is an interface for recording the multiplexed data stored in the multiplexing buffer 60 on the first recording medium 410 or the second recording medium 420. The first recording medium 410 and the second recording medium 420 are randomly accessible recording media such as a semiconductor memory card, an optical disk, and a hard disk. For example, the first recording medium 410 and the second recording medium 420 may be two semiconductor memory cards respectively mounted in two slots.

記録装置100は、多重化バッファ60に記憶されている多重化データを、第1記録媒体410と第2記録媒体420に直列的に順番に記録するモード(以下、通常記録モードという)と、第1記録媒体410と第2記録媒体420への記録開始/停止を個々に制御して記録するモード(以下、独立記録モードという)との二種類の記録モードを持つ。通常記録モードでは一方の記録媒体への記録の途中で、他方の記録媒体を交換できるため長時間の連続記録が可能である。独立記録モードでは後述する同時記録が可能である。   The recording apparatus 100 includes a mode (hereinafter referred to as a normal recording mode) in which multiplexed data stored in the multiplexing buffer 60 is sequentially recorded in series on the first recording medium 410 and the second recording medium 420, and There are two types of recording modes: a recording medium 410 and a recording mode (hereinafter referred to as an independent recording mode) in which recording is started and stopped individually. In the normal recording mode, since the other recording medium can be replaced during recording on one recording medium, continuous recording for a long time is possible. In the independent recording mode, simultaneous recording described later is possible.

ユーザインタフェース部80は、ユーザからの操作指示を受け付けるとともに、撮影映像、メニュー画面、ステータスなどを表示する。ユーザインタフェース部80はボタン、モニタ、タッチパネルなどの既知のデバイスを用いて実現できる。ユーザインタフェース部80は例えば、ユーザからモード選択のための操作指示を受け付ける。ユーザインタフェース部80は、操作指示を受け付けるとその操作指示を制御部90に通知する。   The user interface unit 80 receives an operation instruction from the user and displays a captured video, a menu screen, a status, and the like. The user interface unit 80 can be realized using a known device such as a button, a monitor, or a touch panel. For example, the user interface unit 80 receives an operation instruction for mode selection from the user. When receiving an operation instruction, the user interface unit 80 notifies the control unit 90 of the operation instruction.

本実施の形態ではユーザインタフェース部80は、第1記録操作部81および第2記録操作部82を含む。第1記録操作部81は、ユーザがメインで使用する記録開始/停止ボタンである。第1記録操作部81は、通常記録モードおよび独立記録モードのどちらのモードでも第1記録媒体410への記録開始/停止に使用される。第2記録操作部82は、ユーザがサブで使用する記録開始/停止ボタンである。第2記録操作部82は、独立記録モードにおいて第2記録媒体420への記録開始/停止に使用される。第1記録操作部81および第2記録操作部82は、ユーザから記録開始/停止の操作指示を受け付けると、その操作指示を制御部90に通知する。   In the present embodiment, the user interface unit 80 includes a first recording operation unit 81 and a second recording operation unit 82. The first recording operation unit 81 is a recording start / stop button used mainly by the user. The first recording operation unit 81 is used to start / stop recording on the first recording medium 410 in both the normal recording mode and the independent recording mode. The second recording operation unit 82 is a recording start / stop button used by the user as a sub. The second recording operation unit 82 is used to start / stop recording on the second recording medium 420 in the independent recording mode. When receiving a recording start / stop operation instruction from the user, the first recording operation unit 81 and the second recording operation unit 82 notify the control unit 90 of the operation instruction.

なお第1記録操作部81をメインボタン、第2記録操作部82をサブボタンにするのではなく、第1記録操作部81を第1記録媒体410への記録開始/停止専用ボタンに、第2記録操作部82を第2記録媒体420への記録開始/停止専用ボタンにしてもよい。   Instead of using the first recording operation unit 81 as a main button and the second recording operation unit 82 as a sub button, the first recording operation unit 81 is used as a dedicated button for starting / stopping recording on the first recording medium 410. The recording operation unit 82 may be a dedicated button for starting / stopping recording on the second recording medium 420.

制御部90は記録装置100の各構成要素を統括的に制御する。本実施の形態では映像符号化部10、音声符号化部30、多重化部50、記録媒体インタフェース部70に動作指示および動作タイミングを与える。なお本実施の形態では多重化バッファ60に記憶されている多重化データの第1記録媒体410および/または第2記録媒体420への記録制御に注目するため、制御部90のその他の機能の説明は省略する。   The control unit 90 comprehensively controls each component of the recording apparatus 100. In this embodiment, an operation instruction and an operation timing are given to the video encoding unit 10, the audio encoding unit 30, the multiplexing unit 50, and the recording medium interface unit 70. In the present embodiment, other functions of the control unit 90 will be described in order to focus on recording control of the multiplexed data stored in the multiplexing buffer 60 on the first recording medium 410 and / or the second recording medium 420. Is omitted.

制御部90は、記録操作受付部91および記録制御部92を含む。記録操作受付部91は、第1記録操作部81または第2記録操作部82からの記録開始/停止の操作指示を受け付ける。記録操作受付部91は、受け付けた操作指示に応じて、第1記録媒体410または第2記録媒体420への記録開始/停止指示を記録制御部92に通知する。   The control unit 90 includes a recording operation receiving unit 91 and a recording control unit 92. The recording operation accepting unit 91 accepts a recording start / stop operation instruction from the first recording operation unit 81 or the second recording operation unit 82. The recording operation reception unit 91 notifies the recording control unit 92 of a recording start / stop instruction to the first recording medium 410 or the second recording medium 420 according to the received operation instruction.

記録制御部92は、記録操作受付部91からの指示にもとづき多重化バッファ60に記憶されている多重化データを、第1記録媒体410、第2記録媒体420、またはその両方に記録する。両方に記録する場合(即ち同時記録する場合)、記録制御部92は、多重化バッファ60に記憶されている多重化データを時分割に、第1記録媒体410および第2記録媒体420に記録する。   The recording control unit 92 records the multiplexed data stored in the multiplexing buffer 60 on the first recording medium 410, the second recording medium 420, or both based on an instruction from the recording operation receiving unit 91. When recording on both (ie, simultaneously recording), the recording control unit 92 records the multiplexed data stored in the multiplexing buffer 60 on the first recording medium 410 and the second recording medium 420 in a time division manner. .

図2は、MPEG2−TSに準拠して生成されるデータファイルのデータ構造例を示す図である。以下、多重化部50がMPEG2−TSに準拠した多重化ストリームを生成する例を説明する。MPEG2−TSでは映像データおよび音声データがそれぞれ最大184バイト単位で分割される。分割された各データにはTSヘッダが付加され、188バイトのTSパケットが生成される。なお、TSパケットの先頭に、4バイトのATS(Arrival Time Stamp)情報を追加して192バイト単位でパケット構成されるものもある。各TSヘッダにはパケット識別子(PID;PacketIdentification)と呼ばれる13ビットの情報が含められる。   FIG. 2 is a diagram showing an example of the data structure of a data file generated in conformity with MPEG2-TS. Hereinafter, an example in which the multiplexing unit 50 generates a multiplexed stream compliant with MPEG2-TS will be described. In MPEG2-TS, video data and audio data are each divided in units of a maximum of 184 bytes. A TS header is added to each divided data, and a 188-byte TS packet is generated. Note that there are also packets configured in units of 192 bytes by adding 4-byte ATS (Arrival Time Stamp) information to the head of the TS packet. Each TS header includes 13-bit information called a packet identifier (PID).

図2に示すMPEG2−TSストリームには、PAT(Program Association Table)パケット、PMT(Program Map Table)パケット、SIT(Selection Information Table)パケット、PCR(Program Clock Reference)パケット、NULLパケット、Videoパケット、Audioパケットを含む。なお図2ではVideoパケットを単に”V”、Audioパケットを単に”A”と表記している。   The MPEG2-TS stream shown in FIG. 2 includes a PAT (Program Association Table) packet, a PMT (Program Map Table) packet, a SIT (Selection Information Table) packet, a PCR (Program Clock Reference) packet, a NULL packet, a Video packet, and an Audio. Contains packets. In FIG. 2, the video packet is simply expressed as “V”, and the audio packet is simply expressed as “A”.

PATパケットは、MPEG2−TSストリームに含まれる映像/音声などを含んで構成されるプログラム(コンテンツ)の一覧を、それぞれのプログラムに対応するPMTパケットを示すPIDの一覧として格納したパケットである。PMTパケットは、対応する一つのプログラムに含まれる映像/音声などのデータを格納するVideoパケット/Audioパケットなどを示す各PIDを格納したパケットである。SITパケットは、パーシャルトランスポートストリームに含まれるプログラムに関する情報を格納したパケットである。PCRパケットは、同期に使用される基準クロックを含むパケットである。MPEG2−TSではPCRパケットが100ms間隔で挿入されることが推奨されている。NULLパケットは、データを含まないダミーパケットである。ビットレート調整、後述する不要なデータのマスクに使用される。再生側は、PATパケット、PMTパケット、SITパケット、PCRパケットなどの管理パケットを参照することにより、指定されたプログラムを的確に再生できる。   The PAT packet is a packet in which a list of programs (contents) including video / audio included in the MPEG2-TS stream is stored as a list of PIDs indicating PMT packets corresponding to the respective programs. The PMT packet is a packet storing each PID indicating a Video packet / Audio packet for storing data such as video / audio included in one corresponding program. The SIT packet is a packet that stores information related to a program included in the partial transport stream. The PCR packet is a packet including a reference clock used for synchronization. In MPEG2-TS, it is recommended that PCR packets be inserted at 100 ms intervals. A NULL packet is a dummy packet that does not contain data. It is used for bit rate adjustment and unnecessary data masking described later. The reproduction side can accurately reproduce the designated program by referring to the management packet such as the PAT packet, the PMT packet, the SIT packet, and the PCR packet.

図3は、MPEG2−TSに準拠して生成されるデータストリームの多重化例を示す図である。図3において空白のボックスはVideoパケットを示し、斜線のボックスはAudioパケットを示している。なおPATパケットなどの管理パケットは省略している。MPEGシリーズの圧縮符号化方式では映像データは、一般的に、複数のピクチャを含むGOP(Group Of Pictures)単位で符号化される。GOPn(Audio)は、GOPn(Video)のシーンに対応する音声データ群を示している。上述したように復号側での復号タイミングを合わせるため、符号化音声データが符号化映像データに遅延して多重化される。即ち、符号化音声データの多重化位置が、符号化映像データに対して後ろにずれる。   FIG. 3 is a diagram illustrating an example of multiplexing data streams generated in conformity with MPEG2-TS. In FIG. 3, a blank box indicates a Video packet, and a hatched box indicates an Audio packet. Note that management packets such as PAT packets are omitted. In the MPEG series compression encoding method, video data is generally encoded in GOP (Group Of Pictures) units including a plurality of pictures. GOPn (Audio) indicates an audio data group corresponding to a GOPn (Video) scene. As described above, in order to match the decoding timing on the decoding side, the encoded audio data is delayed and multiplexed with the encoded video data. That is, the multiplexed position of the encoded audio data is shifted backward with respect to the encoded video data.

図4は、図3のデータストリームからGOP2を抜き出す場合を説明するための図である。多重化バッファ60に記憶されている多重化データストリームから、必要な時間軸分の映像データと音声データをそのまま抜き出すと、余分なデータの混入または必要なデータの欠落が発生する。当該データストリームから、GOP2(Video)の先頭からGOP2(Audio)の後尾までのデータを抜き出すと、GOP1(Audio)の後方の一部データと、GOP3(Video)の前方の一部データが混入してしまう。またGOP2(Video)の先頭からGOP2(Video)の後尾までのデータを抜き出すと、GOP1(Audio)の後方の一部データが混入するとともに、GOP2(Audio)の後方の一部データが欠落する。この解決方法については後述する。   FIG. 4 is a diagram for explaining a case where GOP2 is extracted from the data stream of FIG. If video data and audio data for a necessary time axis are extracted as they are from the multiplexed data stream stored in the multiplexing buffer 60, extra data is mixed in or necessary data is missing. When data from the head of GOP2 (Video) to the tail of GOP2 (Audio) is extracted from the data stream, partial data behind GOP1 (Audio) and partial data ahead of GOP3 (Video) are mixed. End up. When data from the beginning of GOP2 (Video) to the tail of GOP2 (Video) is extracted, partial data behind GOP1 (Audio) is mixed and partial data behind GOP2 (Audio) is lost. This solution will be described later.

図5(a)−(b)は、GOPの種類を説明するための図である。図5(a)はOpenGOPの一例を示し、図5(b)はClosedGOPの一例を示す。MPEGシリーズでは、Iピクチャ、Pピクチャ、Bピクチャの三種類のピクチャが使用される。Iピクチャは他のピクチャを参照せずに単独で復号できるピクチャである。ピクチャ内予測を用いて符号化される。Pピクチャは順方向予測のみを用いて符号化されるピクチャである。過去の一枚のピクチャを参照ピクチャとするピクチャ間予測を用いて符号化される。Bピクチャは双方向予測を用いて符号化されるピクチャである。過去および未来の二枚のピクチャを参照ピクチャとするピクチャ間予測を用いて符号化される。なおH.264/AVCでは過去の二枚のピクチャ、または未来の二枚のピクチャを参照ピクチャとすることもできる。   FIGS. 5A to 5B are diagrams for explaining the types of GOPs. FIG. 5A shows an example of an OpenGOP, and FIG. 5B shows an example of a Closed GOP. In the MPEG series, three types of pictures are used: an I picture, a P picture, and a B picture. An I picture is a picture that can be decoded independently without referring to other pictures. Encoded using intra-picture prediction. A P picture is a picture that is encoded using only forward prediction. Encoding is performed using inter-picture prediction using a single past picture as a reference picture. A B picture is a picture that is encoded using bi-directional prediction. Encoding is performed using inter-picture prediction using two past and future pictures as reference pictures. H. In H.264 / AVC, two past pictures or two future pictures can be used as reference pictures.

一般的に、Iピクチャが最もデータ量が多く、Pピクチャが次にデータ量が多く、Bピクチャが最もデータ量が少なくなる。したがってBピクチャを増やすほど圧縮効率が向上する。ただしIピクチャが減るため再生開始ポイントが少なくなる。   In general, the I picture has the largest amount of data, the P picture has the next largest amount of data, and the B picture has the smallest amount of data. Therefore, the compression efficiency improves as the number of B pictures increases. However, since the number of I pictures is reduced, the number of playback start points is reduced.

図5(a)に示すGOPは、Bピクチャ、Bピクチャ、Iピクチャ、Bピクチャ、Bピクチャ、Pピクチャの順に六枚のピクチャを含む。このGOPの先頭の二枚のBピクチャは、当該GOPの一つ前のGOPの最後のPピクチャを参照する必要がある。このように前のGOPに含まれるピクチャを参照する必要があるBピクチャを含むGOPをOpenGOPという。多重化ストリームの先頭がOpenGOPの場合、この先頭の二枚のBピクチャが復号できないため、再生時にフレーム落ちが発生する。   The GOP shown in FIG. 5A includes six pictures in the order of B picture, B picture, I picture, B picture, B picture, and P picture. The first two B pictures of this GOP need to refer to the last P picture of the previous GOP of the GOP. A GOP including a B picture that needs to refer to a picture included in the previous GOP is referred to as an OpenGOP. When the head of the multiplexed stream is OpenGOP, the two B pictures at the head cannot be decoded, so that a frame drop occurs during reproduction.

図5(b)に示すGOPは、ピクチャの並びは図5(a)と同じだが、先頭の2枚のBピクチャは、その後に続くIピクチャのみを参照する。このように前のGOPのピクチャを参照するピクチャを含まないGOPをClosedGOPという。多重化ストリームの先頭がClosedGOPの場合、再生時に先頭でのフレーム落ちが発生しない。   The GOP shown in FIG. 5B has the same picture arrangement as that in FIG. 5A, but the first two B pictures refer only to the subsequent I picture. A GOP that does not include a picture that refers to a picture of the previous GOP is called a Closed GOP. When the head of the multiplexed stream is a Closed GOP, a frame drop at the head does not occur during playback.

なおH.264/AVCでは、Pピクチャの参照ピクチャが直前のIピクチャまたはPピクチャに限定されない。またBピクチャの過去方向の参照ピクチャも直前のIピクチャまたはPピクチャに限定されない。このようにH.264/AVCでは、PピクチャまたはBピクチャが過去方向にIピクチャを跨いで当該Iピクチャより過去のピクチャを参照することがある。即ちIピクチャがアンカーにならない場合がある。そこでH.264/AVCでは、アンカーとなるIピクチャを特にIDRピクチャに指定する。H.264/AVCでは、IDRピクチャから始まるGOPがClosedGOPとなる。   H. In H.264 / AVC, the reference picture of the P picture is not limited to the immediately preceding I picture or P picture. Also, the reference picture in the past direction of the B picture is not limited to the immediately preceding I picture or P picture. H. In H.264 / AVC, a P picture or a B picture may straddle an I picture in the past direction and refer to a past picture from the I picture. That is, the I picture may not be an anchor. So H. In H.264 / AVC, an I picture serving as an anchor is designated as an IDR picture. H. In H.264 / AVC, a GOP starting from an IDR picture is a Closed GOP.

映像符号化部10は、フレームまたはスライス毎のピクチャタイプの指定、GOPの境界を周期的または規則的に設定する。または、それらを処理負荷、データ量もしくは外部命令に応じて適応的に変化させる。   The video encoding unit 10 periodically or regularly sets the picture type designation and GOP boundary for each frame or slice. Alternatively, they are adaptively changed according to the processing load, data amount, or external command.

図6は、多重化バッファ60に記憶される蓄積データの一例を示す図である。図6に示す多重化バッファ60は一定数のGOPを記憶できるリングバッファで構成される。図6では多重化バッファ60に七つのGOP(GOPm+1〜GOPm+7)が記憶されている。まだ空き領域が存在する。空き領域がなくなると、最も先に入力されたGOP(図6ではGOPm+1)から新しく入力されるGOPに上書きされる。このように多重化ストリームを構成する各GOPは、多重化バッファ60に有限時間保存される。   FIG. 6 is a diagram illustrating an example of accumulated data stored in the multiplexing buffer 60. The multiplexing buffer 60 shown in FIG. 6 is composed of a ring buffer capable of storing a certain number of GOPs. In FIG. 6, seven GOPs (GOPm + 1 to GOPm + 7) are stored in the multiplexing buffer 60. Free space still exists. When there is no free space, the newly input GOP is overwritten from the first input GOP (GOPm + 1 in FIG. 6). Thus, each GOP constituting the multiplexed stream is stored in the multiplexing buffer 60 for a finite time.

図6では横線のブロックを含むGOPがClosedGOPを示している。即ち、GOPm+1、GOPm+3、GOPm+5、GOPm+7がClosedGOPであり、GOPm+2、GOPm+4、GOPm+6がOpenGOPである。このように図6に示す多重化バッファ60に一時記憶される多重化ストリームは、二つのGOPに一つ、周期的にClosedGOPが挿入されるストリームである。なおこの周期は一例であり、例えば四つのGOPに一つClosedGOPが挿入されるストリームであってもよい。   In FIG. 6, a GOP including a horizontal block indicates a Closed GOP. That is, GOPm + 1, GOPm + 3, GOPm + 5, and GOPm + 7 are Closed GOPs, and GOPm + 2, GOPm + 4, and GOPm + 6 are OpenGOPs. As described above, the multiplexed stream temporarily stored in the multiplexing buffer 60 shown in FIG. 6 is a stream in which one closed GOP is periodically inserted into two GOPs. This period is an example, and for example, a stream in which one Closed GOP is inserted into four GOPs may be used.

図7は、独立記録モードにおける第1記録媒体410および第2記録媒体420の記録操作例を示す図である。この記録操作例において、第1記録媒体410および第2記録媒体420への記録停止時に、記録制御部92は、多重化バッファ60に一時記憶されている第1記録媒体410への記録開始指示を受け付ける。その指示を受け付けると、記録制御部92はデータファイル1をオープンして、当該多重化データの第1記録媒体410への記録を開始する。   FIG. 7 is a diagram illustrating a recording operation example of the first recording medium 410 and the second recording medium 420 in the independent recording mode. In this recording operation example, when recording on the first recording medium 410 and the second recording medium 420 is stopped, the recording control unit 92 issues a recording start instruction to the first recording medium 410 temporarily stored in the multiplexing buffer 60. Accept. When receiving the instruction, the recording control unit 92 opens the data file 1 and starts recording the multiplexed data on the first recording medium 410.

その後、記録制御部92は当該多重化データの第2記録媒体420への記録開始指示を受け付ける。その指示を受け付けると、記録制御部92はデータファイル2をオープンして、当該多重化データの第2記録媒体420への記録を開始する。この時点で第1記録媒体410および第2記録媒体420への同時記録状態となる。その後、記録制御部92は当該多重化データの第2記録媒体420への記録停止指示を受け付ける。その指示を受け付けると、当該多重化データの第2記録媒体420への記録を停止し、データファイル2をクローズする。この時点で同時記録状態が終了する。   Thereafter, the recording control unit 92 receives an instruction to start recording the multiplexed data on the second recording medium 420. When receiving the instruction, the recording control unit 92 opens the data file 2 and starts recording the multiplexed data on the second recording medium 420. At this point, a simultaneous recording state on the first recording medium 410 and the second recording medium 420 is entered. Thereafter, the recording control unit 92 receives an instruction to stop recording the multiplexed data on the second recording medium 420. When the instruction is accepted, recording of the multiplexed data on the second recording medium 420 is stopped, and the data file 2 is closed. At this point, the simultaneous recording state ends.

その後、記録制御部92は当該多重化データの第1記録媒体410への記録停止指示を受け付ける。その指示を受け付けると、当該多重化データの第1記録媒体410への記録を停止し、データファイル1をクローズする。このような記録操作は、撮影中の映像は全て第1記録媒体410にバックアップしつつ、所望のシーンの映像を第2記録媒体420に記録する場合に用いられる。   Thereafter, the recording control unit 92 receives an instruction to stop recording the multiplexed data on the first recording medium 410. When the instruction is accepted, recording of the multiplexed data on the first recording medium 410 is stopped, and the data file 1 is closed. Such a recording operation is used when recording a video of a desired scene on the second recording medium 420 while backing up all of the video being shot on the first recording medium 410.

以下、図7に示す第2記録媒体420への記録開始時の記録制御部92の処理について説明する。記録制御部92は、多重化バッファ60に記憶されている多重化データを第1記録媒体410に記録中に、当該多重化データの第2記録媒体420への記録開始指示を受け付けると、当該多重化データの同時記録制御を開始する。その際、前の映像データ群を参照せずに復号可能な第2タイプの映像データ群ではなく、前の映像データ群を参照せずに復号可能な第1タイプの映像データ群を先頭に、当該多重化データの第2記録媒体420への記録を開始する。当該第1タイプの映像データ群が上述のClosedGOPに、当該第2タイプの映像データ群が上述のOpenGOPにそれぞれ対応する。   Hereinafter, the processing of the recording control unit 92 at the start of recording on the second recording medium 420 illustrated in FIG. 7 will be described. When the recording control unit 92 receives an instruction to start recording the multiplexed data on the second recording medium 420 while recording the multiplexed data stored in the multiplexing buffer 60 on the first recording medium 410, the recording control unit 92 receives the multiplexing data. Start simultaneous recording control of digitized data. At that time, not the second type video data group that can be decoded without referring to the previous video data group, but the first type video data group that can be decoded without referring to the previous video data group, Recording of the multiplexed data on the second recording medium 420 is started. The first type of video data group corresponds to the above-mentioned Closed GOP, and the second type of video data group corresponds to the above-mentioned Open GOP.

第1タイプの映像データ群を先頭にした多重化ストリームを第2記録媒体420へ記録するため、記録制御部92は以下の三つの方法を採用できる。第1の方法は、第2記録媒体420への記録開始指示を受け付けた時点を基準として、次に記録すべき多重化データの映像データ群を第1タイプで生成するよう映像符号化部10に指示する方法である。この方法を採用する場合、映像符号化部10が外部命令に応じて、任意のフレームに任意のピクチャタイプを指定する機能を備えている必要があるが、記録開始指示を受け付けたタイミングに近い位置から記録を開始できる。   In order to record the multiplexed stream starting with the first type of video data group on the second recording medium 420, the recording control unit 92 can employ the following three methods. The first method uses the video encoding unit 10 to generate a video data group of multiplexed data to be recorded next in the first type with reference to a time point when a recording start instruction to the second recording medium 420 is received. It is a method of instructing. When this method is adopted, the video encoding unit 10 needs to have a function of specifying an arbitrary picture type in an arbitrary frame in accordance with an external command, but a position close to the timing at which the recording start instruction is received. You can start recording from

第2、第3の方法では、映像符号化部10が第1タイプの映像データ群と第2タイプの映像群が周期的に混在する符号化映像データを生成することを前提とする。第2の方法は、第2記録媒体420への記録開始指示を受け付けた時点を基準として、次に記録すべき、多重化バッファ60に記憶されている多重化データの映像データ群が第2タイプの映像データ群である場合、第1タイプの映像データ群が出現するまで、当該多重化データの第2記録媒体420への記録開始を保留する。この方法を採用する場合、映像符号化部10が上述の機能を備えている必要がない。   In the second and third methods, it is assumed that the video encoding unit 10 generates encoded video data in which the first type video data group and the second type video group are periodically mixed. In the second method, the video data group of the multiplexed data stored in the multiplexing buffer 60 to be recorded next is the second type to be recorded next with reference to the time point when the recording start instruction to the second recording medium 420 is received. In the case of the video data group, the recording start of the multiplexed data on the second recording medium 420 is suspended until the first type of video data group appears. When this method is employed, the video encoding unit 10 does not need to have the above-described function.

第3の方法は、第2記録媒体420への記録開始指示を受け付けた時点を基準として、次に記録すべき多重化データの映像データ群が第2タイプの映像データ群である場合、多重化バッファ60に記憶されている複数の映像データ群のうち第1タイプの映像データ群が存在する位置まで遡って、当該多重化データの第2記録媒体420への記録を開始する。この方法を採用する場合、映像符号化部10が上述の機能を備えている必要がないとともに、記録開始指示を受け付けたタイミングの映像データおよび音声データを確実に記録できる。この場合、プリレコード機能を伴う記録となる。   The third method is to multiplex when the video data group of the multiplexed data to be recorded next is the second type video data group with reference to the time point when the recording start instruction to the second recording medium 420 is received. The recording of the multiplexed data onto the second recording medium 420 is started retroactively to the position where the first type video data group exists among the plurality of video data groups stored in the buffer 60. When this method is employed, it is not necessary for the video encoding unit 10 to have the above-described function, and video data and audio data at a timing when a recording start instruction is accepted can be reliably recorded. In this case, the recording is accompanied by a pre-record function.

また記録制御部92は、上述の同時記録制御を開始後、第2記録媒体420に記録すべき多重化データの各パケットを識別するための管理情報を、第2記録媒体420へ記録すべき多重化データの先頭に付加する。当該管理情報には、上述のPATパケット、PMTパケット、PCRパケットなどの管理パケットが該当する。   In addition, the recording control unit 92 multiplexes the management information for identifying each packet of multiplexed data to be recorded on the second recording medium 420 after the simultaneous recording control described above is started, on the second recording medium 420. Append to the beginning of digitized data. The management information corresponds to management packets such as the above-described PAT packet, PMT packet, and PCR packet.

さらに記録制御部92は、上述の同時記録制御を開始後、第2記録媒体420に最初に記録する映像データ群の前半と、その前の映像データ群に対応する音声データ群の後半とが重複する重複期間において、その重複期間に格納されるべき当該音声データ群の格納を無効にする。以下、具体例を挙げながら、記録制御部92による第2記録媒体420への記録開始処理をより詳細に説明する。   Further, after starting the above-described simultaneous recording control, the recording control unit 92 overlaps the first half of the video data group first recorded on the second recording medium 420 and the second half of the audio data group corresponding to the previous video data group. In the overlap period, the storage of the audio data group to be stored in the overlap period is invalidated. Hereinafter, the recording start process to the second recording medium 420 by the recording control unit 92 will be described in more detail with specific examples.

図8は、第2記録媒体420への記録開始処理を説明するための図である。上段の多重化ストリームは、多重化バッファ60から第1記録媒体410へ記録されているストリームを示している。下段の多重化ストリームは、多重化バッファ60から第2記録媒体420へ記録されるストリームを示している。図において空白のボックスはVideoパケットを示し、斜線のボックスはAudioパケットを示し、黒塗りのボックスはClosedGOP処理されたパケットを示す。ClosedGOP処理されたパケットは、Iピクチャ(H.264/AVCの場合はIDRピクチャ)のパケットになる。   FIG. 8 is a diagram for explaining a recording start process on the second recording medium 420. The upper multiplexed stream indicates a stream recorded from the multiplexing buffer 60 to the first recording medium 410. The lower multiplexed stream indicates a stream recorded from the multiplexing buffer 60 to the second recording medium 420. In the figure, a blank box indicates a Video packet, a hatched box indicates an Audio packet, and a black box indicates a packet subjected to Closed GOP processing. The Closed GOP-processed packet is an I picture packet (IDR picture in the case of H.264 / AVC).

図8に示す例では、多重化ストリームのGOPm+2の途中まで第1記録媒体410に記録された時点で、第2記録媒体420への記録開始指示が発行されている。図6に示す多重化バッファ60の状態を前提とすると、GOPm+2の次のGOPm+3がClosedGOPであるため、GOPm+3の先頭ピクチャのピクチャタイプを変更せずにGOPm+3の先頭から第2記録媒体420への記録を開始できる。   In the example shown in FIG. 8, a recording start instruction to the second recording medium 420 is issued when the multiplexed stream is recorded on the first recording medium 410 to the middle of GOPm + 2. Assuming the state of the multiplexing buffer 60 shown in FIG. 6, since GOPm + 3 next to GOPm + 2 is a Closed GOP, recording from the head of GOPm + 3 to the second recording medium 420 without changing the picture type of the head picture of GOPm + 3 Can start.

仮に第2記録媒体420への記録開始指示が発行された時点が、多重化ストリームのGOPm+3の途中まで第1記録媒体410に記録された時点であれば、その次のGOPm+4はOpenGOPである。この場合、記録制御部92は次のGOPm+4をClosedGOPにするよう映像符号化部10に指示する。なおタイミング的に無理であれば、さらに次のGOPをClosedGOPにするよう指示する。また、GOPm+4をClosedGOPにするよう映像符号化部10に指示するのではなく、GOPm+4の第2記録媒体420への記録をスキップして、ClosedGOPであるGOPm+5から記録を開始してもよい。またClosedGOPであるGOPm+1に一つ遡って、GOPm+1から記録を開始してもよい。   If the time point when the recording start instruction to the second recording medium 420 is issued is the time point when it is recorded on the first recording medium 410 to the middle of GOPm + 3 of the multiplexed stream, the next GOPm + 4 is OpenGOP. In this case, the recording control unit 92 instructs the video encoding unit 10 to change the next GOPm + 4 to the Closed GOP. If the timing is impossible, the next GOP is instructed to be a Closed GOP. Further, instead of instructing the video encoding unit 10 to change GOPm + 4 to Closed GOP, recording of GOPm + 4 on the second recording medium 420 may be skipped and recording may be started from GOPm + 5 which is a Closed GOP. Further, recording may be started from GOPm + 1 one step back from GOPm + 1 which is a Closed GOP.

図8において、GOPm+2(Audio)のデータ区間とGOPm+3(Video)のデータ区間とが重複する区間が上書処理エリアとなる。記録制御部92は当該上書処理エリアのデータについて、そのデータを第1記録媒体410への記録済み後、直ちにそのデータを第2記録媒体420用のデータに上書き変更する。即ち、記録制御部92は時系列処理する。具体的には記録制御部92はGOPm+3の先頭の前にPATパケット(図8中、パケット「0」と表記)、PMTパケット(図8中、パケット「1」と表記)、SITパケット(図7中、パケット「2」と表記)、PCRパケット(図8中、パケット「3」と表記)を挿入する。より厳密にはPATパケット、PMTパケット、SITパケット、PCRパケットをGOPm+3の一つ前のGOPm+2の対応パケットに上書きする。さらに記録制御部92はGOPm+2のAudioパケットをNullパケット(図8中、パケット「4」と表記)に書き換える。またGOPm+3がClosedGOPでない場合、GOPm+3(Video)の先頭ピクチャがIピクチャ(H.264/AVCの場合はIDRピクチャ)になるようClosedGOP処理する。   In FIG. 8, a section in which a data section of GOPm + 2 (Audio) and a data section of GOPm + 3 (Video) overlap is an overwriting processing area. The recording control unit 92 overwrites the data for the second recording medium 420 immediately after the data in the overwriting processing area has been recorded on the first recording medium 410. That is, the recording control unit 92 performs time series processing. Specifically, the recording control unit 92 has a PAT packet (indicated as packet “0” in FIG. 8), a PMT packet (indicated as packet “1” in FIG. 8), an SIT packet (in FIG. 7) before the head of GOPm + 3. The packet “2”) and the PCR packet (shown as packet “3” in FIG. 8) are inserted. More precisely, the PAT packet, the PMT packet, the SIT packet, and the PCR packet are overwritten on the corresponding packet of GOPm + 2 immediately before GOPm + 3. Further, the recording control unit 92 rewrites the GOPm + 2 Audio packet into a Null packet (denoted as packet “4” in FIG. 8). If GOPm + 3 is not a ClosedGOP, ClosedGOP processing is performed so that the first picture of GOPm + 3 (Video) becomes an I picture (IDR picture in the case of H.264 / AVC).

ファイルサイズのアライメント規定がある場合、記録制御部92は適宜、NULLパケット化してファイルサイズを調整する。そして、上書処理エリアから第1記録媒体410へ記録済み分までのデータを、データファイル2をオープンさせてから第2記録媒体420へ記録する。なお、FAT32などのファイルシステムによる最大ファイルサイズの規定により、データファイルをある周期にてファイル分割処理する必要がある場合、第1記録媒体410に準拠したタイミングにて第2記録媒体420も第1記録媒体410と同様にファイル分割処理する。   When there is a file size alignment rule, the recording control unit 92 appropriately adjusts the file size by forming a NULL packet. Then, the data from the overwrite processing area to the portion recorded on the first recording medium 410 is recorded on the second recording medium 420 after the data file 2 is opened. Note that when the data file needs to be divided at a certain cycle according to the maximum file size defined by a file system such as FAT32, the second recording medium 420 is also the first recording medium at a timing compliant with the first recording medium 410. File division processing is performed in the same manner as the recording medium 410.

なお図8では上段の多重化ストリームに定期的に挿入されるPATパケット、PMTパケット、PCRパケットを省略して描いている。   In FIG. 8, the PAT packet, the PMT packet, and the PCR packet that are periodically inserted in the upper multiplexed stream are omitted.

図9は、第2記録媒体420への記録開始処理を説明するためのフローチャートである。記録制御部92は、多重化ストリームの第1記録媒体410への記録中に、当該多重化ストリームの第2記録媒体420への記録開始指示を受け付ける(S10)。記録制御部92は、その時点で第1記録媒体410に記録しているGOPの次のGOPをClosedGOP処理するよう映像符号化部10に指示する(S12)。記録制御部92は、ClosedGOP処理された次のGOPから第2記録媒体420への記録を開始する(S14)。その際、その記録開始すべきGOPの前にPATパケット、PMTパケット、SITパケット、PCRパケットを付加し(S16)、その記録開始すべきGOPの一つ前のGOPのAudioパケットをNULLパケットに置換する(S18)。以下、第1記録媒体410への記録と同様に、多重化バッファ60に記憶されているGOPを順番に記録していく。   FIG. 9 is a flowchart for explaining a recording start process on the second recording medium 420. The recording control unit 92 receives an instruction to start recording the multiplexed stream on the second recording medium 420 during recording of the multiplexed stream on the first recording medium 410 (S10). The recording control unit 92 instructs the video encoding unit 10 to perform the Closed GOP process on the GOP next to the GOP recorded on the first recording medium 410 at that time (S12). The recording control unit 92 starts recording on the second recording medium 420 from the next GOP subjected to the Closed GOP process (S14). At that time, a PAT packet, a PMT packet, an SIT packet, and a PCR packet are added before the GOP to start recording (S16), and the audio packet of the GOP immediately before the GOP to start recording is replaced with a NULL packet. (S18). Thereafter, similarly to the recording on the first recording medium 410, the GOPs stored in the multiplexing buffer 60 are recorded in order.

以下、図7に示す第2記録媒体420への記録停止時の記録制御部92の処理について説明する。記録制御部92は、多重化バッファ60に記憶されている多重化データの第1記録媒体410および第2記録媒体420への同時記録中に、第2記録媒体420への記録停止指示を受け付けると、その時点で記録している多重化データの映像データ群とそれに対応する音声データ群の記録終了をもって、第2記録媒体420への記録を停止する。その際、第2記録媒体420に最後に記録する映像データ群に対応する音声データ群の後半と、当該映像データ群の次の映像データ群の前半とが重複する重複期間において、その重複期間に格納されるべき当該次の映像データ群の格納を無効にする。以下、具体例を挙げながら、記録制御部92による第2記録媒体420への記録停止処理をより詳細に説明する。   Hereinafter, processing of the recording control unit 92 when recording on the second recording medium 420 illustrated in FIG. 7 is stopped will be described. When the recording control unit 92 receives a recording stop instruction to the second recording medium 420 during simultaneous recording of the multiplexed data stored in the multiplexing buffer 60 to the first recording medium 410 and the second recording medium 420, The recording on the second recording medium 420 is stopped when the video data group of the multiplexed data recorded at that time and the recording of the corresponding audio data group are completed. At that time, in the overlap period in which the second half of the audio data group corresponding to the video data group recorded last on the second recording medium 420 overlaps the first half of the next video data group of the video data group, The storage of the next video data group to be stored is invalidated. Hereinafter, the recording stop process to the second recording medium 420 by the recording control unit 92 will be described in more detail with specific examples.

図10は、第2記録媒体420への記録停止処理を説明するための図である。図8と同様に上段の多重化ストリームは、多重化バッファ60から第1記録媒体410へ記録されているストリームを示している。下段の多重化ストリームは、多重化バッファ60から第2記録媒体420へ記録されるストリームを示している。   FIG. 10 is a diagram for explaining a recording stop process for the second recording medium 420. As in FIG. 8, the upper multiplexed stream indicates a stream recorded from the multiplexing buffer 60 to the first recording medium 410. The lower multiplexed stream indicates a stream recorded from the multiplexing buffer 60 to the second recording medium 420.

図10に示す例では、多重化ストリームのGOPk+2の途中まで第1記録媒体410および第2記録媒体420に記録された時点で、第2記録媒体420への記録停止指示が発行されている。   In the example shown in FIG. 10, a recording stop instruction to the second recording medium 420 is issued when the multiplexed stream is recorded on the first recording medium 410 and the second recording medium 420 to the middle of GOPk + 2.

図10において、GOPk+2(Audio)のデータ区間とGOPk+3(Video)のデータ区間とが重複する区間が上書処理エリアとなる。記録制御部92は当該上書処理エリアのデータについて、そのデータを第1記録媒体410への記録済み後、直ちにそのデータを第2記録媒体420用のデータに上書き変更する。即ち、記録制御部92は時系列処理する。記録制御部92はGOPk+2のVideoパケットをNullパケット(図10中、パケット「5」、パケット「6」、パケット「7」、パケット「8」、パケット「9」と表記)に書き換える。なおNullパケットに置換するのではなく、記録制御部92は当該上書処理エリアにおいてGOPk+2のVideoパケットを除く他のパケットをシークして、そのパケットのみを抜き出して第2記録媒体420に記録してもよい。   In FIG. 10, a section where a data section of GOPk + 2 (Audio) and a data section of GOPk + 3 (Video) overlap is an overwriting processing area. The recording control unit 92 overwrites the data for the second recording medium 420 immediately after the data in the overwriting processing area has been recorded on the first recording medium 410. That is, the recording control unit 92 performs time series processing. The recording control unit 92 rewrites the GOPk + 2 Video packet into a Null packet (indicated as packet “5”, packet “6”, packet “7”, packet “8”, packet “9” in FIG. 10). Instead of replacing with the Null packet, the recording control unit 92 seeks other packets except the GOPk + 2 Video packet in the overwriting processing area, extracts only the packet, and records it on the second recording medium 420. Also good.

ファイルサイズのアライメント規定がある場合、記録制御部92は適宜、NULLパケット化してファイルサイズを調整する。そして、上書処理エリアまでのデータを第2記録媒体420へ記録し、データファイル2をクローズする。   When there is a file size alignment rule, the recording control unit 92 appropriately adjusts the file size by forming a NULL packet. Then, the data up to the overwrite processing area is recorded on the second recording medium 420, and the data file 2 is closed.

なお図10も図8と同様に上段の多重化ストリームに定期的に挿入されるPATパケット、PMTパケット、PCRパケットを省略して描いている。   Note that FIG. 10 is also illustrated by omitting the PAT packet, the PMT packet, and the PCR packet that are periodically inserted into the upper multiplexed stream as in FIG.

図11は、第2記録媒体420への記録停止処理を説明するためのフローチャートである。記録制御部92は、多重化ストリームの第1記録媒体410および第2記録媒体420への記録中に、当該多重化ストリームの第2記録媒体420への記録停止指示を受け付ける(S20)。記録制御部92は、記録停止すべきGOPの次のGOPのVideoパケットをNULLパケットに置換する(S22)。記録制御部92は、記録停止すべきGOPのAudioパケットの記録が完了すると第2記録媒体420への記録を停止する(S24)。   FIG. 11 is a flowchart for explaining a recording stop process for the second recording medium 420. The recording control unit 92 receives an instruction to stop recording the multiplexed stream to the second recording medium 420 during recording of the multiplexed stream to the first recording medium 410 and the second recording medium 420 (S20). The recording control unit 92 replaces the video packet of the GOP next to the GOP to be stopped with a NULL packet (S22). The recording control unit 92 stops recording on the second recording medium 420 when the recording of the GOP Audio packet to be stopped is completed (S24).

図12は、多重化データの第1記録媒体410および第2記録媒体420への記録終了後に第1記録媒体410および第2記録媒体420に保存されるデータを説明するための図である。図12(a)は記録終了後に第1記録媒体410に保存されるデータを示し、図12(b)は記録終了後に第2記録媒体420に保存されるデータを示す。図12(a)に示すように第1記録媒体410には、データファイル1と、その管理バイナリファイルが保存される。管理バイナリファイルは、データファイル1に含まれるパケットのインデックス情報を含む。インデックス情報には、例えばパケットの番号、PTS (Presentation Time Stamp)、DTS(Decode Time Stamp)などが含まれる。図12(b)に示すように第2記録媒体420には、データファイル2と、その管理バイナリファイルが保存される。   FIG. 12 is a diagram for explaining data stored in the first recording medium 410 and the second recording medium 420 after the multiplexed data has been recorded in the first recording medium 410 and the second recording medium 420. FIG. 12A shows data stored in the first recording medium 410 after the end of recording, and FIG. 12B shows data stored in the second recording medium 420 after the end of recording. As shown in FIG. 12A, the first recording medium 410 stores the data file 1 and its management binary file. The management binary file includes index information of packets included in the data file 1. The index information includes, for example, a packet number, PTS (Presentation Time Stamp), DTS (Decode Time Stamp), and the like. As shown in FIG. 12B, the second recording medium 420 stores the data file 2 and its management binary file.

記録制御部92は第2記録媒体420への記録停止後、データファイル2をクローズして、その管理バイナリファイルを第2記録媒体420に記録する。同様に記録制御部92は第1記録媒体410への記録停止後、データファイル1をクローズして、その管理バイナリファイルを第1記録媒体410に記録する。再生側は、第1記録媒体410に記録されたデータファイル1を、その管理バイナリファイルを参照することにより的確に復号再生できる。第2記録媒体420に記録されたデータファイル2についても同様である。   After the recording to the second recording medium 420 is stopped, the recording control unit 92 closes the data file 2 and records the management binary file on the second recording medium 420. Similarly, the recording control unit 92 closes the data file 1 after recording to the first recording medium 410 and records the management binary file on the first recording medium 410. The reproduction side can accurately decode and reproduce the data file 1 recorded on the first recording medium 410 by referring to the management binary file. The same applies to the data file 2 recorded on the second recording medium 420.

以上説明したように本実施の形態によれば、符号化された映像データと音声データとを多重化した多重化データを複数の記録媒体に同時記録する際に、回路規模を抑制しつつ、個々の記録媒体への記録開始直後および停止直前の映像データと音声データとの品質を損なわずに記録できる。即ち本実施の形態では、映像信号、音声信号をそれぞれ単一の符号化器で符号化後、単一の多重化器で多重化する。記録制御部はその多重化データを複数の記録媒体にそれぞれ異なるデータファイルとして時分割に記録する。符号化器、多重化器をマルチチャネル化せずに単一チャネルで構成することにより、回路規模、消費電力、コストの増大を抑制できる。特にカメラレコーダは携帯性、低消費電力が要求されるため符号化器、多重化器の単一チャネル設計の要求が強い。また記録制御部が時分割処理することにより、符号化器、多重化器の単一チャネル設計を採用しても複数の記録媒体へのデータファイルの記録開始/停止を個々に独立して制御できる。   As described above, according to the present embodiment, when simultaneously recording multiplexed data obtained by multiplexing encoded video data and audio data on a plurality of recording media, the circuit scale is suppressed and the individual data is suppressed. It is possible to record without impairing the quality of video data and audio data immediately after the start of recording on the recording medium and immediately before the stop. That is, in this embodiment, the video signal and the audio signal are each encoded by a single encoder and then multiplexed by a single multiplexer. The recording control unit records the multiplexed data on a plurality of recording media as different data files in a time division manner. By configuring the encoder and multiplexer with a single channel without using multichannels, it is possible to suppress an increase in circuit scale, power consumption, and cost. In particular, since a camera recorder is required to have portability and low power consumption, there is a strong demand for a single channel design of an encoder and a multiplexer. The recording control unit performs time-division processing, so that recording start / stop of data files on a plurality of recording media can be controlled independently even when a single channel design of an encoder and a multiplexer is adopted. .

また、ある記録媒体への多重化データの記録を継続しつつ、別の記録媒体への記録を開始する際、記録制御部は、その別の記録媒体へ記録開始される多重化データの先頭をClosedGOPとする。これにより、再生時に先頭から少なくとも一枚のBフレームがコマ落ちすることを抑制できる。   In addition, when recording on another recording medium is started while continuing to record multiplexed data on a certain recording medium, the recording control unit sets the head of the multiplexed data to be recorded on the other recording medium. Let it be ClosedGOP. Thereby, it is possible to prevent at least one B frame from dropping from the top during playback.

また記録制御部は、別の記録媒体へ記録開始される多重化データの先頭に管理パケットを挿入する。これにより先頭部分の映像データおよび音声データの再生不能を抑制できる。MPEG−TSでは一般に、データファイルの先頭にPATパケット、PMTパケットが付加されていないと、先頭部分の映像データおよび音声データを再生することができない。再生側ではPATパケット、PMTパケットに格納されているPID情報により、再生すべき映像データおよび音声データが格納されているパケットを特定する必要があるためである。   In addition, the recording control unit inserts a management packet at the head of the multiplexed data to be recorded on another recording medium. As a result, it is possible to suppress the inability to reproduce the video data and audio data at the beginning. In general, in MPEG-TS, video data and audio data at the head portion cannot be reproduced unless a PAT packet or PMT packet is added to the head of the data file. This is because it is necessary on the playback side to specify a packet storing video data and audio data to be played back based on PID information stored in the PAT packet and the PMT packet.

また記録制御部は、別の記録媒体に記録開始するGOPの映像データの前半と、一つ前のGOPの音声データの後半とが重複する区間において、その一つ前のGOPのAudioパケットをNULLパケットに置換する。これにより再生開始時に映像に合わない音声ノイズが再生されることを抑制できる。   In addition, the recording control unit nullifies the audio packet of the previous GOP in a section where the first half of the video data of the GOP that starts recording on another recording medium overlaps the second half of the audio data of the previous GOP. Replace with a packet. Thereby, it is possible to suppress the reproduction of audio noise that does not match the video at the start of reproduction.

また別の記録媒体に記録していた多重化データの記録を停止する際、記録制御部は、記録停止すべきGOPの音声データの後半と、その次のGOPの映像データの前半とが重複する区間において、その次のGOPのVideoパケットをNULLパケットに置換する。これにより再生終了時に音声に合わない画像ノイズが再生されることを抑制できる。   When stopping the recording of the multiplexed data recorded on another recording medium, the recording control unit overlaps the second half of the audio data of the GOP to be stopped and the first half of the video data of the next GOP. In the interval, the video packet of the next GOP is replaced with a NULL packet. As a result, it is possible to suppress the reproduction of image noise that does not match the sound when the reproduction ends.

以上、本発明を実施の形態をもとに説明した。実施の形態は例示であり、それらの各構成要素や各処理プロセスの組み合わせにいろいろな変形例が可能なこと、またそうした変形例も本発明の範囲にあることは当業者に理解されるところである。   The present invention has been described based on the embodiments. The embodiments are exemplifications, and it will be understood by those skilled in the art that various modifications can be made to combinations of the respective constituent elements and processing processes, and such modifications are within the scope of the present invention. .

上述の実施の形態ではMPEG2−TSに準拠した多重化データを生成する例を説明した。この多重化データのフォーマットは、MPEG2−TSに限定されるものではない。例えば、MPEG2−PSに準拠して多重化データを生成してもよい。MPEG2−PSではMPEG2−TSと比較して一つのパケットのサイズが大きくなるが、基本的に上述の実施の形態に係る記録制御方法を適用できる。   In the above-described embodiment, an example in which multiplexed data compliant with MPEG2-TS has been described. The format of this multiplexed data is not limited to MPEG2-TS. For example, multiplexed data may be generated according to MPEG2-PS. Although the size of one packet is larger in MPEG2-PS than in MPEG2-TS, basically the recording control method according to the above-described embodiment can be applied.

また上述の実施の形態では二つの記録媒体に同時記録する例を説明したが、記録媒体の数は二つに限定されることなく三つ以上であってもよい。その場合も、上述の実施の形態に係る記録制御方法による同時記録が可能である。   In the above-described embodiment, an example of simultaneous recording on two recording media has been described. However, the number of recording media is not limited to two, and may be three or more. Even in that case, simultaneous recording by the recording control method according to the above-described embodiment is possible.

また上述の実施の形態では同時記録可能な記録装置をカメラレコーダに適用する例を説明したがそれに限るものではない。例えば、映像データおよび音声データが外部入力される記録再生装置にも適用できる。この記録再生装置はTVチューナを備え、放送されるテレビ番号を録画する機能を備えるものであってもよい。また、光ディスクドライブを備え、光ディスクドライブに装着された光ディスクに記録されたパッケージコンテンツを再生する機能を備えるものであってもよい。また、その両方の機能を備えるものであってもよい。   In the above-described embodiment, an example in which a recording device capable of simultaneous recording is applied to a camera recorder has been described. However, the present invention is not limited to this. For example, the present invention can be applied to a recording / reproducing apparatus to which video data and audio data are input externally. The recording / reproducing apparatus may include a TV tuner and a function of recording a broadcast TV number. Further, it may be provided with an optical disk drive and a function of reproducing the package content recorded on the optical disk loaded in the optical disk drive. Further, both of the functions may be provided.

また本発明は上述した記録装置の機能をコンピュータに実現させるためのプログラムを含むものである。これらのプログラムは、記録媒体から読み取られてコンピュータに取り込まれてもよいし、通信ネットワークを介して伝送されてコンピュータに取り込まれてもよい。   The present invention also includes a program for causing a computer to realize the functions of the recording apparatus described above. These programs may be read from a recording medium and loaded into a computer, or may be transmitted via a communication network and loaded into a computer.

100 記録装置、 10 映像符号化部、 20 映像バッファ、 30 音声符号化部、 40 音声バッファ、 50 多重化部、 60 多重化バッファ、 70 記録媒体インタフェース部、 80 ユーザインタフェース部、 81 第1記録操作部、 82 第2記録操作部、 90 制御部、 91 記録操作受付部、 92 記録制御部、 200 撮像部、 300 音声取得部、 410 第1記録媒体、 420 第2記録媒体、 500 撮像装置。   DESCRIPTION OF SYMBOLS 100 Recording device, 10 Video encoding part, 20 Video buffer, 30 Audio encoding part, 40 Audio buffer, 50 Multiplexing part, 60 Multiplexing buffer, 70 Recording medium interface part, 80 User interface part, 81 1st recording operation Unit, 82 second recording operation unit, 90 control unit, 91 recording operation receiving unit, 92 recording control unit, 200 imaging unit, 300 sound acquisition unit, 410 first recording medium, 420 second recording medium, 500 imaging device.

Claims (6)

符号化映像データおよび符号化音声データをそれぞれ分割して多重化する多重化部と、
前記多重化部により多重化されて生成される多重化データを、操作指示にもとづき第1記録媒体、第2記録媒体、またはその両方に記録する記録制御部と、を備え、
前記符号化映像データには、前の映像データ群を参照せずに復号可能な第1タイプの映像データ群と、前の映像データ群を参照して復号する第2タイプの映像データ群が含まれ
前記記録制御部は、前記多重化データを前記第1記録媒体に記録中に、前記多重化データの前記第2記録媒体への記録開始指示を受け付けると、前記記録開始指示を受け付けた時点の前記多重化データの映像データ群の直後の映像データ群を前記第1タイプで生成するよう、前記符号化映像データを生成している映像符号化部に指示し、前記生成された第1タイプの映像データ群を先頭に、前記第2記録媒体への記録を開始することを特徴とする記録装置。
A multiplexing unit for dividing and multiplexing each of the encoded video data and the encoded audio data;
A recording control unit that records multiplexed data generated by multiplexing by the multiplexing unit on a first recording medium, a second recording medium, or both based on an operation instruction;
The encoded video data includes a first type video data group that can be decoded without referring to the previous video data group, and a second type video data group that is decoded with reference to the previous video data group. And
The recording control unit, the multiplexed data into recording on the first recording medium, when receiving a recording start instruction to the second recording medium of the multiplexed data, wherein at the time of receiving the recording start instruction The video encoding unit generating the encoded video data is instructed to generate the video data group immediately after the video data group of the multiplexed data with the first type, and the generated first type video is generated. A recording apparatus, wherein recording on the second recording medium is started with a data group at the head.
符号化映像データおよび符号化音声データをそれぞれ分割して多重化する多重化部と、
前記多重化部により多重化されて生成される多重化データを、操作指示にもとづき第1記録媒体、第2記録媒体、またはその両方に記録する記録制御部と、を備え、
前記多重化部は、符号化映像データおよび符号化音声データをそれぞれパケットに分割して、分割したパケットを多重化し、
前記記録制御部は、前記多重化データを前記第1記録媒体に記録中に、前記多重化データの前記第2記録媒体への記録開始指示を受け付けると、前記多重化データの同時記録制御を開始し、その際、前の映像データ群を参照せずに復号可能な映像データ群を先頭に、前記第2記録媒体への記録を開始し、前記多重化データの同時記録制御を開始後、前記第2記録媒体に記録すべき多重化データの各パケットを識別するための管理情報を、前記第2記録媒体へ記録すべき多重化データの先頭に付加することを特徴とする記録装置。
A multiplexing unit for dividing and multiplexing each of the encoded video data and the encoded audio data;
A recording control unit that records multiplexed data generated by multiplexing by the multiplexing unit on a first recording medium, a second recording medium, or both based on an operation instruction;
The multiplexing unit divides the encoded video data and the encoded audio data into packets, multiplexes the divided packets,
When the recording control unit receives an instruction to start recording the multiplexed data onto the second recording medium while recording the multiplexed data onto the first recording medium, the recording control unit starts simultaneous recording control of the multiplexed data. At that time, the video data group that can be decoded without referring to the previous video data group is started, recording to the second recording medium is started, and simultaneous recording control of the multiplexed data is started, the management information for identifying each packet of the multiplexed data to be recorded on the second recording medium, record device you characterized in that added to the beginning of the multiplexed data to be recorded into the second recording medium.
符号化映像データおよび符号化音声データをそれぞれ分割して多重化する多重化部と、
前記多重化部により多重化されて生成される多重化データを、操作指示にもとづき第1記録媒体、第2記録媒体、またはその両方に記録する記録制御部と、を備え、
前記多重化部は、前記符号化映像データと前記符号化音声データとの復号タイミングを対応させるべく、前記符号化音声データを前記符号化映像データに対して遅延させて多重化し、
前記記録制御部は、前記多重化データを前記第1記録媒体に記録中に、前記多重化データの前記第2記録媒体への記録開始指示を受け付けると、前記多重化データの同時記録制御を開始し、その際、前の映像データ群を参照せずに復号可能な映像データ群を先頭に、前記第2記録媒体への記録を開始し、前記同時記録制御を開始後、前記第2記録媒体に最初に記録する映像データ群の前半と、その前の映像データ群に対応する音声データ群の後半とが重複する重複期間において、その重複期間に格納されるべき当該音声データ群の格納を無効にすることを特徴とする記録装置。
A multiplexing unit for dividing and multiplexing each of the encoded video data and the encoded audio data;
A recording control unit that records multiplexed data generated by multiplexing by the multiplexing unit on a first recording medium, a second recording medium, or both based on an operation instruction;
The multiplexing unit multiplexes the encoded audio data with a delay with respect to the encoded video data so as to correspond to the decoding timing of the encoded video data and the encoded audio data,
When the recording control unit receives an instruction to start recording the multiplexed data onto the second recording medium while recording the multiplexed data onto the first recording medium, the recording control unit starts simultaneous recording control of the multiplexed data. At that time, recording on the second recording medium is started with a video data group that can be decoded without referring to the previous video data group, and after the simultaneous recording control is started, the second recording medium is started. In the overlap period in which the first half of the video data group to be recorded first and the second half of the audio data group corresponding to the previous video data group overlap, the storage of the audio data group to be stored in the overlap period is invalidated record apparatus shall be the features that you.
符号化映像データおよび符号化音声データをそれぞれ分割して多重化する多重化部と、
前記多重化部により多重化されて生成される多重化データを、操作指示にもとづき第1記録媒体、第2記録媒体、またはその両方に記録する記録制御部と、を備え、
前記多重化部は、前記符号化映像データと前記符号化音声データとの復号タイミングを対応させるべく、前記符号化音声データを前記符号化映像データに対して遅延させて多重化し、
前記記録制御部は、前記多重化データの前記第1記録媒体および前記第2記録媒体への同時記録中に、前記第1記録媒体または前記第2記録媒体への記録停止指示を受け付けると、その時点で記録している前記多重化データの映像データ群とそれに対応する音声データ群の記録終了をもって、前記記録停止指示に係る記録媒体への記録を停止し、その際、前記記録停止指示に係る記録媒体に最後に記録する映像データ群に対応する音声データ群の後半と、当該映像データ群の次の映像データ群の前半とが重複する重複期間において、その重複期間に格納されるべき当該次の映像データ群の格納を無効にすることを特徴とする記録装置。
A multiplexing unit for dividing and multiplexing each of the encoded video data and the encoded audio data;
A recording control unit that records multiplexed data generated by multiplexing by the multiplexing unit on a first recording medium, a second recording medium, or both based on an operation instruction;
The multiplexing unit multiplexes the encoded audio data with a delay with respect to the encoded video data so as to correspond to the decoding timing of the encoded video data and the encoded audio data,
When the recording control unit receives a recording stop instruction to the first recording medium or the second recording medium during simultaneous recording of the multiplexed data to the first recording medium and the second recording medium, When recording of the video data group of the multiplexed data recorded at the time and the recording of the audio data group corresponding thereto is stopped, recording on the recording medium according to the recording stop instruction is stopped, and at that time, the recording stop instruction In the overlap period in which the second half of the audio data group corresponding to the video data group recorded last on the recording medium and the first half of the next video data group of the video data group overlap, the next to be stored in the overlap period A recording apparatus characterized by invalidating storage of the video data group.
符号化映像データおよび符号化音声データをそれぞれ分割して多重化する多重化ステップと、
多重化されて生成される多重化データを、操作指示にもとづき第1記録媒体、第2記録媒体、またはその両方に記録する記録制御ステップと、を備え、
前記符号化映像データには、前の映像データ群を参照せずに復号可能な第1タイプの映像データ群と、前の映像データ群を参照して復号する第2タイプの映像データ群が含まれ
前記記録制御ステップは、前記多重化データを前記第1記録媒体に記録中に、前記多重化データの前記第2記録媒体への記録開始指示を受け付けると、前記記録開始指示を受け付けた時点の前記多重化データの映像データ群の直後の映像データ群を前記第1タイプで生成し、前記生成された第1タイプの映像データ群を先頭に、前記第2記録媒体への記録を開始することを特徴とする記録制御方法。
A multiplexing step of dividing and multiplexing each of the encoded video data and the encoded audio data;
A recording control step of recording multiplexed data generated by multiplexing on the first recording medium, the second recording medium, or both based on an operation instruction,
The encoded video data includes a first type video data group that can be decoded without referring to the previous video data group, and a second type video data group that is decoded with reference to the previous video data group. And
The recording control step, the multiplexed data into recording on the first recording medium, when receiving a recording start instruction to the second recording medium of the multiplexed data, wherein at the time of receiving the recording start instruction A video data group immediately after the video data group of the multiplexed data is generated with the first type, and recording on the second recording medium is started with the generated first type video data group as the head. A characteristic recording control method.
符号化映像データおよび符号化音声データをそれぞれ分割して多重化する多重化ステップと、
多重化されて生成される多重化データを、操作指示にもとづき第1記録媒体、第2記録媒体、またはその両方に記録する記録制御ステップと、を備え、
前記多重化ステップは、前記符号化映像データと前記符号化音声データとの復号タイミングを対応させるべく、前記符号化音声データを前記符号化映像データに対して遅延させて多重化し、
前記記録制御ステップは、前記多重化データの前記第1記録媒体および前記第2記録媒体への同時記録中に、前記第1記録媒体または前記第2記録媒体への記録停止指示を受け付けると、その時点で記録している前記多重化データの映像データ群とそれに対応する音声データ群の記録終了をもって、前記記録停止指示に係る記録媒体への記録を停止し、その際、前記記録停止指示に係る記録媒体に最後に記録する映像データ群に対応する音声データ群の後半と、当該映像データ群の次の映像データ群の前半とが重複する重複期間において、その重複期間に格納されるべき当該次の映像データ群の格納を無効にすることを特徴とする記録制御方法。
A multiplexing step of dividing and multiplexing each of the encoded video data and the encoded audio data;
A recording control step of recording multiplexed data generated by multiplexing on the first recording medium, the second recording medium, or both based on an operation instruction,
The multiplexing step multiplexes the encoded audio data with a delay with respect to the encoded video data so as to correspond to the decoding timing of the encoded video data and the encoded audio data,
When the recording control step accepts a recording stop instruction to the first recording medium or the second recording medium during simultaneous recording of the multiplexed data to the first recording medium and the second recording medium, When recording of the video data group of the multiplexed data recorded at the time and the recording of the audio data group corresponding thereto is stopped, recording on the recording medium according to the recording stop instruction is stopped, and at that time, the recording stop instruction In the overlap period in which the second half of the audio data group corresponding to the video data group recorded last on the recording medium and the first half of the next video data group of the video data group overlap, the next to be stored in the overlap period A recording control method characterized by invalidating storage of a video data group.
JP2012123630A 2012-05-30 2012-05-30 Recording apparatus and recording control method Active JP5803814B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2012123630A JP5803814B2 (en) 2012-05-30 2012-05-30 Recording apparatus and recording control method
BR112014029637A BR112014029637A2 (en) 2012-05-30 2013-05-28 polymerization catalyst composition, synthetic polyisoprene and synthetic polyisoprene production method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012123630A JP5803814B2 (en) 2012-05-30 2012-05-30 Recording apparatus and recording control method

Publications (2)

Publication Number Publication Date
JP2013251644A JP2013251644A (en) 2013-12-12
JP5803814B2 true JP5803814B2 (en) 2015-11-04

Family

ID=49849951

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012123630A Active JP5803814B2 (en) 2012-05-30 2012-05-30 Recording apparatus and recording control method

Country Status (2)

Country Link
JP (1) JP5803814B2 (en)
BR (1) BR112014029637A2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11356671B2 (en) 2019-05-16 2022-06-07 Canon Kabushiki Kaisha Image capturing apparatus, control method thereof, and non-transitory computer-readable storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4385987B2 (en) * 2005-04-15 2009-12-16 ソニー株式会社 Video processing apparatus, video processing method, and computer program
JPWO2009072276A1 (en) * 2007-12-06 2011-04-21 パナソニック株式会社 Image encoding apparatus, video camera, integrated circuit, and image encoding method
JP4548493B2 (en) * 2008-02-19 2010-09-22 カシオ計算機株式会社 Imaging apparatus, moving image generation method, and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11356671B2 (en) 2019-05-16 2022-06-07 Canon Kabushiki Kaisha Image capturing apparatus, control method thereof, and non-transitory computer-readable storage medium

Also Published As

Publication number Publication date
BR112014029637A2 (en) 2017-06-27
JP2013251644A (en) 2013-12-12

Similar Documents

Publication Publication Date Title
JP5047607B2 (en) Stream recording apparatus, stream recording method, recording system, and recording / reproducing system
JP4731083B2 (en) Data stream conversion method and apparatus
JP4358081B2 (en) Video recording device
JP5258885B2 (en) Encoded stream reproduction apparatus and encoded stream reproduction method
US8195024B2 (en) Stream generating apparatus, imaging apparatus, data processing apparatus and stream generating method
US8676038B2 (en) Recording/reproducing apparatus, recording apparatus, reproducing apparatus, recording method, reproducing method and computer program
JP4669902B2 (en) Video recording apparatus, multiplexing method, program, and recording medium
JP2008160748A5 (en)
JPWO2009072276A1 (en) Image encoding apparatus, video camera, integrated circuit, and image encoding method
US20070201819A1 (en) Apparatus and method for variable speed playback of digital broadcasting stream
JP2006319956A (en) Mpeg coded stream decoding device
JP5803814B2 (en) Recording apparatus and recording control method
US9420278B2 (en) Audiovisual content generation method for multistage high-speed reproduction
JP2007158432A (en) Video recording device
JP2006148275A (en) Video signal multiplexer, video signal multiplexing method, and video reproducing device
JP5811037B2 (en) Recording apparatus and recording control method
Jung et al. Design and implementation of an enhanced personal video recorder for DTV
JP6742515B2 (en) CODED VIDEO REPRODUCTION DEVICE AND CODED VIDEO REPRODUCTION METHOD
CN1993762A (en) Improving the accessibility of graphics during and after trick play
JP4725675B2 (en) Recording / reproducing apparatus, recording apparatus, reproducing apparatus, recording method, reproducing method, and computer program
JP4967402B2 (en) Multiplexed stream conversion apparatus and method
US8571392B2 (en) Apparatus for video recording and reproducing, and method for trick play of video
JP2006345548A (en) Information processing apparatus
JP2008153955A (en) Video recording and reproducing device, and its method for special reproduction
JP3897753B2 (en) Memory output device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140930

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150423

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150428

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150616

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20150804

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150817

R150 Certificate of patent or registration of utility model

Ref document number: 5803814

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150