[go: up one dir, main page]

JP5004706B2 - Recording apparatus and recording method - Google Patents

Recording apparatus and recording method Download PDF

Info

Publication number
JP5004706B2
JP5004706B2 JP2007192270A JP2007192270A JP5004706B2 JP 5004706 B2 JP5004706 B2 JP 5004706B2 JP 2007192270 A JP2007192270 A JP 2007192270A JP 2007192270 A JP2007192270 A JP 2007192270A JP 5004706 B2 JP5004706 B2 JP 5004706B2
Authority
JP
Japan
Prior art keywords
recording
file
packets
invalid
information
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.)
Expired - Fee Related
Application number
JP2007192270A
Other languages
Japanese (ja)
Other versions
JP2009033246A5 (en
JP2009033246A (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.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2007192270A priority Critical patent/JP5004706B2/en
Publication of JP2009033246A publication Critical patent/JP2009033246A/en
Publication of JP2009033246A5 publication Critical patent/JP2009033246A5/ja
Application granted granted Critical
Publication of JP5004706B2 publication Critical patent/JP5004706B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Description

本発明は記録装置及び記録方法に関し、特に、撮像装置を使用して動画を記録している際に、記録時にファイルサイズ制限が発生する場合の記録制御と再生表示制御を行なうために用いて好適な技術に関する。   The present invention relates to a recording apparatus and a recording method, and particularly suitable for performing recording control and reproduction display control when a file size restriction occurs during recording when a moving image is recorded using an imaging apparatus. Technology.

従来の電子カメラ、及びカメラ一体型ビデオレコーダ等の撮像装置では、動画撮影において記録される動画は、一つの記録ファイルに収容される。具体的には、動画データの記録を開始すると、記録規格に準じたファイル名で新規ファイルを生成し、動画像と音声とを圧縮処理した後、前記記録ファイルに順次書き込む。そして、動画記録停止要求があった場合は記録を終了して記録ファイルをクローズするようにした、「ビデオカメラ装置の情報記録方法」が特許文献1で提案されている。   In an imaging apparatus such as a conventional electronic camera and camera-integrated video recorder, a moving image recorded in moving image shooting is stored in one recording file. Specifically, when recording of moving image data is started, a new file is generated with a file name conforming to the recording standard, the moving image and sound are compressed, and then sequentially written into the recording file. Patent Document 1 proposes an “information recording method for a video camera device” in which when a moving image recording stop request is made, recording is ended and the recording file is closed.

また、別の従来例では、動画撮影において動画像を所定時間ごと、または所定データ量ごとに分割した記録ファイルを生成するようにした、「動画像記録装置」が特許文献2により提案されている。さらに、動画撮影におけるシーンの切り替わりの変化を操作者が意識することなく検出し、それを基に動画の記録ファイルを適正な箇所で複数のファイルに分割するようにした、「撮像装置」が特許文献3で提案されている。   In another conventional example, Patent Document 2 proposes a “moving image recording apparatus” that generates a recording file in which a moving image is divided every predetermined time or every predetermined amount of data in moving image shooting. . Furthermore, the “imaging device” is a patent that detects changes in scene switching during video shooting without the operator being aware of it, and based on this, the video recording file is divided into multiple files at appropriate locations. It is proposed in Document 3.

前記切り替わりの変化とは、「1.明るさの変化」、「2.光源の変化」、「3.被写体距離の変化」、「4.指定測距枠の位置の変化」、「5.複数の測距枠における合焦測距枠の変化」、「6.ズーム倍率の変化」、「7.撮像装置の向きの変化」等である。そして、これらの変化の1つまたは複数としている。   The change in switching includes “1. Change in brightness”, “2. Change in light source”, “3. Change in subject distance”, “4. Change in position of designated range-finding frame”, “5. And “6. Change in zoom magnification”, “7. Change in orientation of imaging device”, and the like. One or more of these changes are used.

従来の記憶媒体の容量は、数GB程度の光ディスクまたは、メモリカードであったが、近年大容量のハードディスクを記憶媒体として、長時間記録が可能なカメラ一体型ビデオレコーダが開発されている。   The capacity of a conventional storage medium is an optical disk or a memory card of about several GB. Recently, a camera-integrated video recorder capable of recording for a long time using a large-capacity hard disk as a storage medium has been developed.

特開平8−294080号公報JP-A-8-294080 特開平11−341434号公報JP 11-341434 A 特開2006−93956号公報JP 2006-93956 A

動画撮影を行なう状況は、短いカット撮影や、長い行事の長時間撮影等、記録シーンによってまちまちである。長時間撮影の場合に、長いシーンが1つの記録ファイルになっていると、撮影後に編集作業をやりづらいという問題がある。そのため、前記特許文献2によって提案されているカメラでは、動画を一つの記録ファイルとして記録するか、または、一定時間ごとまたは所定データ量ごとに分割された複数の記録ファイルに記録するようにしている。   The situation where movie shooting is performed varies depending on the recording scene, such as short cut shooting or long shooting of a long event. When shooting for a long time, if a long scene is a single recording file, there is a problem that it is difficult to perform editing after shooting. For this reason, in the camera proposed in Patent Document 2, a moving image is recorded as one recording file, or is recorded in a plurality of recording files divided every predetermined time or every predetermined amount of data. .

しかし、特許文献2に記載の技術ではシーンの切り替わりに依存せずに動画を別ファイルに分割記録するので、操作者が見たいシーンを再生しようとした場合、他のシーンを含む記録ファイルを読み込む必要がある。このため、見たいシーンを素早く表示できないという問題がある。したがって、見たいシーンを素早く表示できる点においては、前記特許文献3のように、画像の変化点でファイルを自動的に分割する方法が優れている。   However, in the technique described in Patent Document 2, a moving image is divided and recorded in a separate file without depending on scene switching. Therefore, when an operator tries to reproduce a scene that the user wants to view, a recording file including another scene is read. There is a need. For this reason, there is a problem that a desired scene cannot be displayed quickly. Therefore, in the point that a scene to be viewed can be quickly displayed, a method of automatically dividing a file at a change point of an image as in Patent Document 3 is excellent.

一方、動画記録規格によって連続記録データの制限がある場合が存在する。例えば、ファイルシステムのファイル長の制限や、ディスク記録媒体の層切換での制限などがある場合である。このような場合には、記録を停止するか、または記録ファイルを分割する必要がある。   On the other hand, there are cases where continuous recording data is limited depending on the moving image recording standard. For example, there are restrictions on the file length of the file system and restrictions on layer switching of the disk recording medium. In such a case, it is necessary to stop recording or divide the recording file.

しかし、MPEG−TS(トランスポートストリーム)を記録する際に、前記記録制限に従って記録ファイルを単純に分割したとする。この場合には、前記分割した記録ファイルを連続再生する時に、ファイル分割部分で、シームレスに画像が再生できない問題がある。また、ファイル分割を容易に可能にするため、GOP等の所定単位に無効データを挿入する手法を採用すると、無効データを定期的に挿入する必要があるため、圧縮画像に割り当てられる符号量が低下して、画質劣化となってしまう問題があった。   However, when recording MPEG-TS (transport stream), it is assumed that the recording file is simply divided according to the recording restriction. In this case, when the divided recording files are continuously reproduced, there is a problem that images cannot be reproduced seamlessly at the file division portion. In addition, in order to facilitate file division, if a method of inserting invalid data in a predetermined unit such as GOP is employed, invalid data needs to be periodically inserted, so the amount of code allocated to the compressed image is reduced. As a result, there is a problem that the image quality deteriorates.

本発明は前述の問題点に鑑み、スムースな連続再生を行なうことが可能なファイル分割を行なうこと、及び画質劣化を可能な限り抑えることを実現できるようにすることを目的とする。   SUMMARY OF THE INVENTION In view of the above-described problems, an object of the present invention is to realize file division that can perform smooth continuous reproduction and to suppress image quality deterioration as much as possible.

本発明の記録装置は、動画データを入力する入力手段と、前記入力手段により入力された動画データを符号化し、それぞれ所定量の前記符号化された動画データを有する複数の情報パケットを生成し、複数の前記情報パケットを出力する処理手段と、前記処理手段から出力された複数の前記情報パケットをファイルとして記録媒体に記録する記録手段と、前記記録媒体に記録されている第1のファイルのサイズが所定値に達した場合に、前記処理手段から出力される連続した二つの情報パケットの間に所定数の無効パケットを挿入すると共に、前記所定数の無効パケットのうち所定の無効パケットにおいて前記第1のファイルをクローズし、新たに第2のファイルをオープンして前記情報パケットの記録を続けるように、前記記録手段を制御する制御手段とを備え、前記制御手段は、前記処理手段から出力される連続した二つの情報パケットの間に前記所定量の無効パケットが挿入できない場合、前記処理手段により符号化される動画データの符号量を下げることにより、前記処理手段から出力される連続した二つの情報パケットの間に前記所定量の無効パケットが挿入できるようにすることを特徴とする。   The recording apparatus of the present invention encodes the moving image data input by the input means for inputting moving image data and the input means, and generates a plurality of information packets each having a predetermined amount of the encoded moving image data, Processing means for outputting a plurality of the information packets, recording means for recording the plurality of information packets output from the processing means as a file on a recording medium, and the size of the first file recorded on the recording medium When a predetermined value is reached, a predetermined number of invalid packets are inserted between two consecutive information packets output from the processing means, and the predetermined invalid packet among the predetermined number of invalid packets is Control the recording means to close one file, open a second file and continue recording the information packet And when the predetermined amount of invalid packets cannot be inserted between two consecutive information packets output from the processing unit, the control unit is configured to store video data encoded by the processing unit. By reducing the code amount, the predetermined amount of invalid packets can be inserted between two consecutive information packets output from the processing means.

本発明の記録方法は、動画データを入力する入力工程と、前記入力工程により入力された動画データを符号化し、それぞれ所定量の前記符号化された動画データを有する複数の情報パケットを生成し、複数の前記情報パケットを出力する処理工程と、前記処理工程から出力された複数の前記情報パケットをファイルとして記録媒体に記録する記録工程と、前記記録媒体に記録されている第1のファイルのサイズが所定値に達した場合に、前記処理工程から出力される連続した二つの情報パケットの間に所定数の無効パケットを挿入すると共に、前記所定数の無効パケットのうち所定の無効パケットにおいて前記第1のファイルをクローズし、新たに第2のファイルをオープンして前記情報パケットの記録を続けるように、前記記録工程を制御する制御工程とを備え、前記制御工程は、前記処理工程から出力される連続した二つの情報パケットの間に前記所定量の無効パケットが挿入できない場合、前記処理工程において符号化される動画データの符号量を下げることにより、前記処理工程から出力される連続した二つの情報パケットの間に前記所定量の無効パケットが挿入できるようにすることを特徴とする。   In the recording method of the present invention, an input step of inputting moving image data, the moving image data input by the input step are encoded, and a plurality of information packets each having a predetermined amount of the encoded moving image data are generated, A processing step of outputting a plurality of the information packets, a recording step of recording the plurality of information packets output from the processing step as a file on a recording medium, and a size of the first file recorded on the recording medium When a predetermined value is reached, a predetermined number of invalid packets are inserted between two consecutive information packets output from the processing step, and the predetermined invalid packet among the predetermined number of invalid packets is Control the recording process to close one file and open a new second file to continue recording the information packet And when the predetermined amount of invalid packets cannot be inserted between two consecutive information packets output from the processing step, the control step is configured to store video data encoded in the processing step. By reducing the code amount, the predetermined amount of invalid packets can be inserted between two consecutive information packets output from the processing step.

本発明によれば、動画記録中に記録ファイルの上限が近づいた場合には、処理手段から出力される連続した二つの情報パケットの間に前記所定量の無効パケットが挿入できない場合、前記処理手段により符号化される動画データの符号量を下げることにより、前記処理手段から出力される連続した二つの情報パケットの間に前記所定量の無効パケットが挿入できるようにする。これにより、ファイルのサイズが所定量に達した後、動画の符号量が多すぎて二つの情報パケットの間に所定量の無効パケットを挿入できない場合でも、動画の符号量を下げることにより二つの情報パケットの間に所定量の無効パケットを挿入でき、スムースな連続再生を行なうことが可能なファイル分割を行なうことを実現できるとともに、画質劣化を可能な限り抑えることを実現することができる。 According to the present invention, when the upper limit of the recording file is approaching during moving image recording, the processing means is used when the predetermined amount of invalid packets cannot be inserted between two consecutive information packets output from the processing means. By reducing the code amount of the moving image data encoded by the above, the predetermined amount of invalid packets can be inserted between two consecutive information packets output from the processing means. As a result, even after the file size reaches a predetermined amount, even if the code amount of the moving image is too large and a predetermined amount of invalid packets cannot be inserted between the two information packets, A predetermined amount of invalid packets can be inserted between the information packets, and it is possible to realize file division capable of performing smooth continuous reproduction and to suppress image quality deterioration as much as possible.

(第1の実施形態)
図1は、本発明を適用したデジタルカメラ、デジタルビデオカメラ、携帯電話などの撮像機能を有する撮像装置の概略構成を説明するブロック図である。なお、本実施形態においては、所定の動画記録規格に準じて音声情報、映像情報、付帯情報を記録ファイルとして記録媒体に記録する撮像装置として説明する。
(First embodiment)
FIG. 1 is a block diagram illustrating a schematic configuration of an imaging apparatus having an imaging function such as a digital camera, a digital video camera, and a mobile phone to which the present invention is applied. In the present embodiment, description will be made as an imaging apparatus that records audio information, video information, and incidental information as a recording file on a recording medium in accordance with a predetermined moving image recording standard.

図1において、200は撮像装置の全体構成を示している。201は光学像を撮像装置200内に取り込むためのレンズ。202はレンズ201により取り込まれた光学像を電気信号に変換する固体センサー。203は固体センサー202により変換された電気信号をデジタルデータに変換するA/Dコンバータ。204はレンズ201を合焦点に駆動するモータである。   In FIG. 1, reference numeral 200 denotes the overall configuration of the imaging apparatus. Reference numeral 201 denotes a lens for taking an optical image into the imaging apparatus 200. Reference numeral 202 denotes a solid state sensor that converts an optical image captured by the lens 201 into an electrical signal. An A / D converter 203 converts the electrical signal converted by the solid state sensor 202 into digital data. Reference numeral 204 denotes a motor that drives the lens 201 to a focal point.

209は音声を取り込んで音声信号を生成するマイクである。210はマイク209により取り込まれた音声信号を増幅するマイクアンプ。211はマイクアンプ210により増幅された音声信号をデジタルデータに変換するA/Dコンバータ。212は撮像装置200に種々の動作を行なわせるように操作する操作キー。213は映像信号を表示形式に変換する表示ドライバである。また、214は映像を表示するための表示部であり、例えば、LCD、EVF等により構成される。215は音声信号をスピーカ216から出力するためのスピーカドライバ。217は諸情報を入出力する外部入出力端子である。   Reference numeral 209 denotes a microphone that captures sound and generates a sound signal. Reference numeral 210 denotes a microphone amplifier that amplifies an audio signal captured by the microphone 209. An A / D converter 211 converts the audio signal amplified by the microphone amplifier 210 into digital data. An operation key 212 is operated to cause the imaging apparatus 200 to perform various operations. Reference numeral 213 denotes a display driver that converts a video signal into a display format. Reference numeral 214 denotes a display unit for displaying an image, which includes, for example, an LCD, an EVF, or the like. Reference numeral 215 denotes a speaker driver for outputting an audio signal from the speaker 216. Reference numeral 217 denotes an external input / output terminal for inputting / outputting various information.

更に、224は機器振動、結露など周囲環境を検出する各種センサー回路。226はストロボ発光部。250は記録媒体。225は記録媒体250を収納するソケット。230はシステム全体を制御するCPU。222は前記CPUとシステムのためのプログラム、データ用のメモリ。221は撮像装置のための電源装置である。   Further, reference numeral 224 denotes various sensor circuits that detect the surrounding environment such as device vibration and condensation. 226 is a strobe light emitting unit. 250 is a recording medium. A socket 225 stores the recording medium 250. A CPU 230 controls the entire system. 222 is a memory for programs and data for the CPU and system. Reference numeral 221 denotes a power supply device for the imaging apparatus.

次に、図1を参照しながら本実施形態の記録装置の基本記録動作について説明する。
撮影が行なわれると、レンズ201を通って入射した被写体からの光学像が、固体センサー202で電気信号に変換される。
Next, the basic recording operation of the recording apparatus of this embodiment will be described with reference to FIG.
When shooting is performed, an optical image from a subject incident through the lens 201 is converted into an electrical signal by the solid state sensor 202.

そして、固体センサー202によって変換された電気信号がA/Dコンバータ203によってサンプリングされてデジタルデータに変換される。A/Dコンバータ203によって変換されたデジタルデータは、輝度Y、色差Cr、Cb、またはRGBなどのデジタル映像信号としてCPU230に入力される。   Then, the electric signal converted by the solid state sensor 202 is sampled by the A / D converter 203 and converted into digital data. The digital data converted by the A / D converter 203 is input to the CPU 230 as a digital video signal such as luminance Y, color difference Cr, Cb, or RGB.

CPU230の制御命令でモータ204を駆動してレンズ201を移動させることにより、オートフォーカス機能とズーム機能が構成される。固体センサー202からデータを引き出すためのタイミング信号は、CPU230により生成される。   By moving the lens 201 by driving the motor 204 in accordance with a control command from the CPU 230, an autofocus function and a zoom function are configured. A timing signal for extracting data from the solid state sensor 202 is generated by the CPU 230.

レンズ201が、防振機能(加速度センサー、防振アクチュエータなど)を備えている場合の動作は、加速度センサー及び防振アクチュエータの位置センサーから出力される信号がCPU230に入力される。すると、CPU230は防振制御出力信号をモータ204に出力して、防振アクチュエータをモータ204で駆動制御する。   In the case where the lens 201 has an anti-vibration function (acceleration sensor, anti-vibration actuator, etc.), signals output from the position sensor of the acceleration sensor and the anti-vibration actuator are input to the CPU 230. Then, the CPU 230 outputs an image stabilization control output signal to the motor 204, and controls the drive of the image stabilization actuator with the motor 204.

マイク209より得られた音声信号は、マイクアンプ210で増幅されてからA/Dコンバータ211により、一定時間ごとに音の強度を採取するサンプリングが行われ、デジタルデータに変換され、CPU230に入力される。   The audio signal obtained from the microphone 209 is amplified by the microphone amplifier 210 and then sampled by the A / D converter 211 to collect the sound intensity at regular intervals, converted into digital data, and input to the CPU 230. The

CPU230に与えられたデジタル映像信号に対しては、色分離、白バランス、ガンマ補正、アパーチャ補正などの基本処理が行われる。また、撮像装置200の操作キー212で設定された画像サイズ、画質調整、位置調整などの付加処理が行われる。さらに、CPU230はエンコーダとして機能し、予め設定された圧縮方法と圧縮パラメータによってMPEG2の画像圧縮処理を行ない、所定量の圧縮画像情報を生成する。   Basic processing such as color separation, white balance, gamma correction, and aperture correction is performed on the digital video signal supplied to the CPU 230. In addition, additional processing such as image size, image quality adjustment, and position adjustment set with the operation key 212 of the imaging apparatus 200 is performed. Further, the CPU 230 functions as an encoder, performs MPEG2 image compression processing with a preset compression method and compression parameters, and generates a predetermined amount of compressed image information.

CPU230に与えられた音声データに対しては、オートゲインコントロール、風切り音防止処理などの処理と、撮像装置200の操作キー212で設定された音質調整などの付加処理が行われる。これにより、予め設定された圧縮方法と圧縮パラメータによって音声圧縮データが生成される。本実施形態では、画像圧縮データと音声圧縮データはMPEG規格を採用し、ストリーム形式は、制御データと共にMPEG規格で定められる、トランスファーストリーム(TS)としてデータストリームを形成する。すなわち、CPU230は圧縮画像情報、音声情報、付帯情報に、転送時間情報をそれぞれ付加したパケット群を合成する。   The audio data given to the CPU 230 is subjected to processing such as auto gain control and wind noise prevention processing, and additional processing such as sound quality adjustment set with the operation key 212 of the imaging apparatus 200. As a result, audio compression data is generated using a preset compression method and compression parameters. In the present embodiment, the image compression data and the audio compression data adopt the MPEG standard, and the stream format forms a data stream as a transfer stream (TS) defined by the MPEG standard together with the control data. That is, the CPU 230 synthesizes a packet group in which transfer time information is added to compressed image information, audio information, and incidental information.

図2は、記録するデータストリームの説明をするための図であり、192バイトごとのパケット(TSパケット)で構成される。図2中A部は、到着時間情報を示すタイムスタンプ(4バイト)、H部はパケット情報を示すヘッダ、P部はデータのペイロード(本来転送したいデータ本体部分)である。   FIG. 2 is a diagram for explaining a data stream to be recorded, and is composed of 192-byte packets (TS packets). In FIG. 2, A part is a time stamp (4 bytes) indicating arrival time information, H part is a header indicating packet information, and P part is a data payload (data body part to be originally transferred).

ヘッダ部Hは、同期をとるシンクバイト、エラー情報を示すトランスポートエラーインジケータ、ペイロードの情報を示すペイロードユニットスタートインジケータ、優先順位を示すトランスポートプライオリティ、ペイロードの属性を示すPID(パケットID)を有する。また、スクランブル情報を示すトランスポートスクランブルコントロール、付属情報を示すアダプテーションフィールドコントロール、連続性を示すコンティニティコントロール、付帯情報のアダプテーションフィールドで構成される。各ヘッダ内の情報は必要に応じて、出現する場合としない場合がある。   The header portion H has a sync byte for synchronization, a transport error indicator indicating error information, a payload unit start indicator indicating payload information, a transport priority indicating priority, and a PID (packet ID) indicating payload attributes. . Further, it includes transport scramble control indicating scramble information, an adaptation field control indicating attached information, a continuity control indicating continuity, and an adaptation field of supplementary information. Information in each header may or may not appear as needed.

MPEG2方式ではPESパケットと呼ばれる、映像や音声などの個別のストリームを分割したパケットに、PESパケットヘッダが付加されている構造になっている。PESパケットヘッダには個別のストリームを識別するコード(ストリームID)やパケットのサイズ、PTSやDTSといった同期再生のための時間情報、その他の制御情報などが記述される。   The MPEG2 system has a structure in which a PES packet header is added to a packet obtained by dividing individual streams such as video and audio, called a PES packet. In the PES packet header, a code (stream ID) for identifying an individual stream, a packet size, time information for synchronous reproduction such as PTS and DTS, and other control information are described.

映像や音声などの個別ストリームが収められたPESパケットは、同じPID番号を持つ複数のTSパケットのペイロードに分割して伝送される。トランスポートストリームは複数のプログラムを伝送することが可能なため、データストリームに含まれているプログラムとそのプログラムを構成している映像や音声ストリームなどのプログラムの要素との関係を表すテーブル情報が存在する。   A PES packet containing individual streams such as video and audio is divided into a plurality of TS packet payloads having the same PID number and transmitted. Since the transport stream can transmit multiple programs, there is table information that indicates the relationship between the program included in the data stream and program elements such as video and audio streams that make up the program. To do.

このテーブル情報は、プログラム仕様情報(PSI:プログラムスペシフィックインフォメーション)と呼ばれ、PAT(プログラムアソシエーションンテーブル)、PMT(プログラムマップテーブル)などの種類のテーブルがある。PAT、PMTなどのPSIはセクションと呼ばれる単位でTSパケットの中のペイロードに埋め込まれて記録される。   This table information is called program specification information (PSI: Program Specific Information), and there are types of tables such as PAT (Program Association Table) and PMT (Program Map Table). PSI such as PAT and PMT is recorded by being embedded in a payload in a TS packet in units called sections.

MPEG規格でのトランスポートパケット(MPEG−TSパケット)は188バイトで構成されている。しかしながら、本実施形態のTSパケットは、前記MPEG−TSパケットに、到着時間情報のタイムスタンプ4バイトを付加した192バイトをTSパケットとして記録する。到着時間情報のタイムスタンプ4バイトは、27MHzのシステムクロックから生成されたカウンタ値を記録する。   A transport packet (MPEG-TS packet) in the MPEG standard is composed of 188 bytes. However, in the TS packet of this embodiment, 192 bytes obtained by adding a time stamp of 4 bytes of arrival time information to the MPEG-TS packet is recorded as a TS packet. The time stamp 4 bytes of arrival time information records a counter value generated from a 27 MHz system clock.

動画記録規格はSD−Video、DVD−VR、DVD−Video規格など所定の規格で記録し、静止画はDCF(Design rule for Camera File system)規格などの静止画規格で記録する。撮像装置の電源は、電源221より供給され各回路ブロックに供給される。   The moving image recording standard is recorded according to a predetermined standard such as SD-Video, DVD-VR, or DVD-Video standard, and the still picture is recorded according to a still picture standard such as a DCF (Design Rule for Camera File system) standard. The power supply of the imaging apparatus is supplied from the power supply 221 and is supplied to each circuit block.

記録媒体250としては、実施形態ではSDカード、MMC、SSFDC、コンパクトフラッシュ(登録商標)、PCカードなどのメモリカードを考慮する。あるいはハードディスク、CD−RW、FD、MD、DVD−R、DVD−RW、DVD−RAMなどの磁気、光(あるいは光磁気)記録メディアなどの一つ、または複数とする。   As the recording medium 250, a memory card such as an SD card, MMC, SSFDC, compact flash (registered trademark), or PC card is considered in the embodiment. Alternatively, one or a plurality of magnetic and optical (or magneto-optical) recording media such as a hard disk, CD-RW, FD, MD, DVD-R, DVD-RW, and DVD-RAM are used.

記録媒体のファイル管理のファイルシステムは、FAT32ファイルシステムを使用する。FAT32ファイルシステムでは、扱えるファイル長が4GB、または2GB未満とする管理上の制限がある。そのため、同一ファイルで記録できるファイル長に制限をしない場合、記録されたファイルの機器互換が確保できなくなる。   The file system for file management of the recording medium uses the FAT32 file system. The FAT32 file system has a management limitation that the file length that can be handled is 4 GB or less than 2 GB. For this reason, if the file length that can be recorded in the same file is not limited, device compatibility of the recorded file cannot be ensured.

図3は、TSパケットが時間軸方向に並んでいる様子を示したものである。MPEG符号化の単位としてのグループオブピクチャー(GOP)は、一つのフレーム内符号化画像(Iピクチャー)と、複数のフレーム間符号化画像(B、P、Dピクチャー)から構成される。また、1GOPは複数のTSパケットに分割されて記録される。1GOP分のTSパケット毎の先頭に前記PSI情報等を含むTSパケットが付加される。GOPの先頭は、記録規格によって、PSIパケットからの記録制限や、Iピクチャーからの記録制限が必要な場合がある。なお、Dピクチャーは、早送り、早送り逆転再生のときに使うDC成分だけの画像である。   FIG. 3 shows a state in which TS packets are arranged in the time axis direction. A group of picture (GOP) as a unit of MPEG encoding is composed of one intra-frame encoded image (I picture) and a plurality of inter-frame encoded images (B, P, D pictures). One GOP is divided into a plurality of TS packets and recorded. A TS packet including the PSI information and the like is added to the head of each TS packet for 1 GOP. Depending on the recording standard, the beginning of a GOP may require a recording restriction from a PSI packet or a recording restriction from an I picture. Note that the D picture is an image of only a DC component used for fast forward and fast forward reverse playback.

前記データストリームを分割する場合、記録規格の制限として、分割位置をGOP境界にする。また、バイトアライメントを規定値にする条件が伴う場合がある。ここで、バイトアライメントとは、TSパケットは192バイト毎に生成されるが、記録ファイルシステムの記録単位が、一般的にUDFファイルシステムの場合2キロバイト、FATファイルシステムの場合32キロバイト毎になっている。このため、TSパケットとファイルシステムの最小公倍数、6キロまたは32キロごとのアライメントをあわせることを意味する。   When the data stream is divided, the division position is set as a GOP boundary as a limitation of the recording standard. In addition, there may be a condition that the byte alignment is set to a specified value. Here, byte alignment means that TS packets are generated every 192 bytes, but the recording unit of the recording file system is generally 2 kilobytes for the UDF file system and 32 kilobytes for the FAT file system. Yes. For this reason, it means that the least common multiple of the TS packet and the file system, the alignment of every 6 km or 32 km.

次に、本発明の特徴となる規定ファイルサイズのファイル分割記録動作について、詳細動作を説明する。
図4は、図3と同様に、TSパケットが時間軸方向に並んでいる様子を示したものである。図4中、101から142は到着タイムスタンプを擬似的に示した数値である。時間軸方向にFile1にデータを記録している際に、ファイル1のサイズが規定サイズを超えると、CPU230は、内部のエンコーダに対し、記録再生制御回路に出力するTSパケットのタイムスタンプ間隔を広げる。CPU230は、図4中において矢印で示したタイミングでTSパケットの到着タイムスタンプの間隔を広げる。エンコーダは、p106からp138までのTSパケット間隔をあける。そして、p138の前に、エンコーダに定常動作の指示を発行する。
Next, the detailed operation of the file division recording operation with the specified file size, which is a feature of the present invention, will be described.
FIG. 4 shows a state in which TS packets are arranged in the time axis direction as in FIG. In FIG. 4, reference numerals 101 to 142 are numerical values showing the arrival time stamps in a pseudo manner. When recording data in File 1 in the time axis direction, if the size of file 1 exceeds the specified size, CPU 230 widens the time stamp interval of TS packets output to the recording / playback control circuit to the internal encoder. . The CPU 230 widens the arrival time stamp interval of TS packets at the timing indicated by the arrows in FIG. The encoder leaves a TS packet interval from p106 to p138. Then, before p138, an instruction for steady operation is issued to the encoder.

前記TSパケット間隔が広がったp107からp137に、CPU230の処理で、メモリ222内に、p107からp137の30個の無効TSパケットNULLを生成する。各パケットの到着タイムスタンプは、TSパケットの先行するp106の数値106と、継続するp138の数値138に連続したタイムスタンプを計算して付加する。その後、P106からp137の間で、ファイルシステムとTSパケットの最小公倍数となる前記説明したバイトアライメント位置で、File1をクローズする。   From p107 to p137 where the TS packet interval is widened, 30 invalid TS packets NULL from p107 to p137 are generated in the memory 222 by the processing of the CPU 230. The arrival time stamp of each packet is calculated by adding a time stamp continuous to the numerical value 106 of the preceding p106 of the TS packet and the numerical value 138 of the continuing p138. After that, between P106 and p137, File1 is closed at the byte alignment position described above, which is the least common multiple of the file system and TS packet.

次に、File2を新規に作成して、その後のTSパケットを記録していく。そして、File2の先頭で、データストリームのPSI情報が必要な場合は、前記置き換えた無効TSパケットNULLをPSI情報等に置き換える処理を行なう。また、File2の先頭が、前記説明したGOPの先頭の必要がある場合は、GOP先頭の前で、ファイル分割の処理を行なう。図4では、p138はGOPの先頭のTSパケットを示しており、前記分割処理をGOPの先頭で行なう様子を示している。   Next, File2 is newly created and subsequent TS packets are recorded. When the PSI information of the data stream is necessary at the head of File 2, processing for replacing the replaced invalid TS packet NULL with PSI information or the like is performed. If the head of File2 needs to be the head of the GOP described above, file division processing is performed before the head of the GOP. In FIG. 4, p138 indicates the TS packet at the head of the GOP, and shows how the division processing is performed at the head of the GOP.

図5は、図4の説明をファイルイメージで説明した図である。
図5において、p133−p140は、図4で説明したTSパケットと同じである。File1ではp134、p135、p136で無効TSパケットNULLを挿入してファイルクローズする。そして、File2の先頭のp137で挿入した無効TSパケットNULLをPSI情報に書き換え、p138、p139・・・と記録していく状態を説明している。
FIG. 5 is a diagram illustrating the description of FIG. 4 with a file image.
In FIG. 5, p133-p140 is the same as the TS packet described in FIG. In File1, an invalid TS packet NULL is inserted in p134, p135, and p136, and the file is closed. The invalid TS packet NULL inserted at the top p137 of File 2 is rewritten with PSI information and recorded as p138, p139...

図4及び図5ともに、ファイル分割はp136の後としているが、p106−p138の間でファイルシステムのバイトアライメントにあわせた位置で適時に分割を行なう。また、無効TSパケットNULLをPSI情報の書き換えは、ファイル先頭のTSパケットにPAT、PMTなどの情報が必要な場合に記録規格に準じて置き換える。   In both FIG. 4 and FIG. 5, the file division is performed after p136, but the division is performed in a timely manner at a position in accordance with the byte alignment of the file system between p106 and p138. Further, the invalid TS packet NULL is rewritten in accordance with the recording standard when information such as PAT and PMT is necessary for the TS packet at the head of the file.

また、前記分割操作は、撮像装置200の設定機能で、有効、無効とする機能を実装することも可能である。前記機能を無効にした場合、規定ファイルサイズを超えたTSパケットで即時に分割を行なう。   In addition, a function for enabling and disabling the division operation by a setting function of the imaging apparatus 200 can be implemented. When the function is disabled, the TS packet that exceeds the specified file size is immediately divided.

また、規定ファイルサイズを超え、エンコーダ制御の変更指示が与えられた場合、エンコーダは、無効TSパケットNULLを挿入できるだけのTSパケット間隔を広げる制御を開始する。しかし、入力画像によっては出力符号量が多く、TSパケット間隔があけられない場合がある。その場合の対応として、(イ)TSパケット間隔があけられるだけの符号量となる入力画像が到達するまで、ファイル分割処理を保留にする。(ロ)エンコーダの符号量調節を行ない、出力符号量を下げる処理を実行し、TSパケット間隔をあける処理を行なう、等が考えられる。   Also, when the specified file size is exceeded and an instruction to change encoder control is given, the encoder starts control to widen the TS packet interval enough to insert an invalid TS packet NULL. However, depending on the input image, the output code amount is large, and the TS packet interval may not be kept. As a countermeasure in this case, (a) the file division process is suspended until an input image having a code amount sufficient to leave a TS packet interval arrives. (B) It is conceivable to adjust the code amount of the encoder, execute a process of reducing the output code amount, and perform a process of increasing the TS packet interval.

図8は、本実施形態の記録方法の一例を説明するフローチャートである。
図8において、ステップS101で動画記録モードのタスクを起動する。そして、ステップS102において、記録開始か否かを判定する。
FIG. 8 is a flowchart for explaining an example of the recording method of the present embodiment.
In FIG. 8, the task of the moving image recording mode is activated in step S101. In step S102, it is determined whether or not recording is started.

ステップS102の判定の結果、記録開始でなければステップS102で待機する。また、ステップS102の判定の結果、記録開始ならばステップS103に進む。ステップS103においては、記録規格のファイル作成規約に従ったファイルネームFile1でファイルを新規作成して記録を開始する。   If the result of determination in step S102 is that recording has not started, the process waits in step S102. If the result of determination in step S102 is that recording has started, processing proceeds to step S103. In step S103, a new file is created with the file name File1 in accordance with the file creation rules of the recording standard, and recording is started.

次に、ステップS104において、記録ファイルサイズの比較を行なう。この比較は、ファイルシステムの管理制限容量LS(GB)から所定の容量TS(GB)を減算した値との比較である。ステップS104の比較の結果が前記減算した値以下ならば、ステップS120に移行する。   Next, in step S104, the recording file sizes are compared. This comparison is a comparison with a value obtained by subtracting a predetermined capacity TS (GB) from the file system management limit capacity LS (GB). If the comparison result in step S104 is equal to or smaller than the subtracted value, the process proceeds to step S120.

また、ステップS104の比較結果が前記減算した値以上であれば、ステップS105において、操作者設定での、分割制御動作を実行するか否かを判定する。ステップS105の判定の結果、分割制御動作を実行しなければ、ステップS120に移行する。また、ステップS105の判定の結果、分割制御動作を実行する場合にはステップS106において、エンコーダに制御変更動作指示を発行しステップS107に移行する。   If the comparison result in step S104 is equal to or larger than the subtracted value, it is determined in step S105 whether or not to execute the division control operation in the operator setting. As a result of the determination in step S105, if the division control operation is not executed, the process proceeds to step S120. As a result of the determination in step S105, if a split control operation is to be executed, a control change operation instruction is issued to the encoder in step S106, and the process proceeds to step S107.

ステップS107においては、パケット間隔を広げることができる入力画像か否かをエンコーダが判定する。この判定の結果、画像圧縮後の符号量が多すぎて、パケット間隔を広げることが不可能な場合などの条件では、制御可能な入力画像までステップS107で待機する。   In step S107, the encoder determines whether the input image can increase the packet interval. As a result of this determination, if the code amount after image compression is too large and the packet interval cannot be increased, the process waits at step S107 until an input image that can be controlled.

また、ステップS107の判定の結果、パケット間隔を広げる制御を行なうことが可能な入力画像の場合にはステップS108に進み、圧縮符号化後のパケット間隔を広げる処理を行なう。   As a result of the determination in step S107, if the input image can be subjected to control for increasing the packet interval, the process proceeds to step S108, and processing for increasing the packet interval after compression encoding is performed.

次に、ステップS109において、パケット間隔を広げた部分に、先行したパケットの到着タイムスタンプに継続するパケットと、後続するパケットの到着タイムスタンプが連続するような、到着タイムスタンプを付けた無効パケットを所定数挿入する。そして、前記無効パケットとファイルシステムのアライメントが合致する位置でFile1をクローズする。   Next, in step S109, an invalid packet with an arrival time stamp such that the packet that continues the arrival time stamp of the preceding packet and the arrival time stamp of the subsequent packet are continued in the part where the packet interval is widened. Insert a predetermined number. Then, File 1 is closed at a position where the alignment of the invalid packet matches the file system.

次に、ステップS110において、前記転送パケットの間隔を通常制御に戻す指示をエンコーダに発行する。
次に、ステップS111において、新規ファイルFile2を生成し、前記File1の最終無効パケットの次からのパケットを記録する。
Next, in step S110, an instruction for returning the interval of the transfer packet to normal control is issued to the encoder.
Next, in step S111, a new file File2 is generated, and the next packet after the last invalid packet of File1 is recorded.

次に、ステップS120において、記録停止要求があるか判定する。この判定の結果、記録停止要求が無ければ、すなわち、記録中である場合にはステップS105に戻って前述した処理を繰り返し行なう。また、ステップS120の判定の結果、記録停止要求がある場合にはステップS121に進んでFile2をクローズして、管理ファイル群を更新記録する。この時、File1とFile2の分割処理状態を管理ファイルに登録記録する。その後、ステップS150において本タスクを終了する。   Next, in step S120, it is determined whether there is a recording stop request. If the result of this determination is that there is no recording stop request, that is, recording is in progress, processing returns to step S105 and the above-described processing is repeated. If the result of determination in step S120 is that there is a recording stop request, processing proceeds to step S121, File 2 is closed, and the management file group is updated and recorded. At this time, the division processing state of File1 and File2 is registered and recorded in the management file. Thereafter, the task is terminated in step S150.

次に、前記制御において記録された動画像の代表画表示と、指定画像の再生動作の一例を説明する。
図1のブロック図を参照しながら、記録された動画像の代表画表示について説明する。
まず、CPU230は、記録再生制御回路223の制御のもとに、記録媒体を管理するファイルシステムの情報を記録媒体250から読み出す。
Next, an example of the representative image display of the moving image recorded in the control and the reproduction operation of the designated image will be described.
The representative image display of the recorded moving image will be described with reference to the block diagram of FIG.
First, under the control of the recording / playback control circuit 223, the CPU 230 reads information on a file system that manages the recording medium from the recording medium 250.

そして、記録媒体250から読み出した情報から、記録されているディレクトリとファイルを検索し、動画規格に準じた音声、映像、付加情報のファイル群をリストする。また、前述した記録動作で説明した管理ファイルの内容から、ファイル群の付帯情報を読み込む。そして、これらの情報から、代表画像とする動画ファイルを選択する。   Then, the recorded directory and file are searched from the information read from the recording medium 250, and a file group of audio, video, and additional information according to the moving image standard is listed. Further, the supplementary information of the file group is read from the contents of the management file described in the recording operation described above. Then, a moving image file as a representative image is selected from these pieces of information.

例えば、5シーンの画像ファイルがある場合、ファイル毎の実体データをファイルシステムから算出される論理アドレスで、記録再生制御回路223の制御のもとに実体データを記録媒体250から読み出す。そして、CPU230で画像複合処理、リサイズ処理をして表示ドライバ213経由で表示部214の指定位置に表示をする。   For example, when there are five scene image files, the entity data for each file is read from the recording medium 250 under the control of the recording / playback control circuit 223 using the logical address calculated from the file system. Then, the CPU 230 performs image composition processing and resizing processing, and displays the image at a designated position on the display unit 214 via the display driver 213.

前記の動作を5回繰り返し行なう。図6を参照しながら、その場合の表示例を説明する。図6は、表示部214にファイル1から5までの代表画像が表示される様子を示している。図6に記載の符号300は、ファイル2とファイル3が、前記ファイル分割処理が行なわれた関連ファイルであることを示唆する表示である。前記関連ファイルであることは、前記管理ファイルからの情報を利用している。   The above operation is repeated five times. A display example in that case will be described with reference to FIG. FIG. 6 shows a state in which representative images from files 1 to 5 are displayed on the display unit 214. Reference numeral 300 shown in FIG. 6 is a display that suggests that the files 2 and 3 are related files on which the file division processing has been performed. The related file uses information from the management file.

また、図7のように、関連ファイル2とファイル3は、ファイル2のみ表示して、図7の符号301のように、関連ファイルが存在することを示唆する表示をすることも可能である。また、図6または図7の表示のうち、どちらの表示を行なうのかを操作者が選択する機能を持つことも可能である。
さらに、本実施形態においては、管理ファイルの情報から、記録ファイルと新規ファイルとが連続記録であると知らせる情報を表示する。
Further, as shown in FIG. 7, the related file 2 and the file 3 can be displayed by displaying only the file 2 and indicating that the related file exists, as indicated by reference numeral 301 in FIG. Further, it is possible to have a function for the operator to select which one of the displays shown in FIG. 6 or FIG.
Further, in the present embodiment, information indicating that the recording file and the new file are continuous recording is displayed from the management file information.

以上のように、本実施形態の記録装置によれば、記録ファイルのファイルサイズが所定値に達した場合、圧縮制御と転送制御(エンコーダ制御)を変更して、転送パケットの間隔を広げる。そして、前記広げた領域に、無効パケットを所定数だけ挿入し、前記ファイルのバイトアライメント位置でファイルをクローズする。その後、前記指示手段で、圧縮制御と転送制御を変更して、転送パケットの間隔を通常の間隔に変更するように制御して、新規ファイルを作成し、この作成した新規ファイルに対してパケット群の記録を継続するようにする。   As described above, according to the recording apparatus of the present embodiment, when the file size of the recording file reaches a predetermined value, the compression control and the transfer control (encoder control) are changed to widen the interval between the transfer packets. Then, a predetermined number of invalid packets are inserted into the expanded area, and the file is closed at the byte alignment position of the file. Thereafter, the instruction means changes the compression control and the transfer control to change the transfer packet interval to a normal interval, creates a new file, and creates a packet group for the created new file. To continue recording.

このような処理を行なうことによって、可能な限りスムースな連続再生を行なうことが可能なファイル分割を行なうことができる。また、必要な場合に限ってファイル分割を行なうことで、分割操作が行なわれることによる画質劣化を可能な限り抑えることができる。   By performing such processing, it is possible to perform file division capable of performing continuous reproduction as smoothly as possible. Further, by performing file division only when necessary, image quality deterioration due to division operation can be suppressed as much as possible.

さらに、MPEG規格のトランスポートストリーム規格に準じて合成するようにしたので、広く使用されている規格に準じて本発明を適用することができる。さらに、ファイルサイズの所定値は、ファイルシステムの最大管理容量であるので、パソコンなどの汎用の機器と互換性を確保することができる。   Furthermore, since the synthesis is performed according to the transport stream standard of the MPEG standard, the present invention can be applied according to a widely used standard. Furthermore, since the predetermined value of the file size is the maximum management capacity of the file system, compatibility with general-purpose devices such as personal computers can be ensured.

さらに、記録ファイルと新規作成ファイルとの関連情報を、付加情報または管理ファイルに記録するようにすることによって、記録コンテンツの再生制御時に有効な情報を提供することができる。   Furthermore, by recording the related information between the recording file and the newly created file in the additional information or the management file, it is possible to provide information that is effective when controlling playback of the recorded content.

さらに、記録媒体に記録された動画ファイルの代表画像を再生する手段と、前記再生画像一覧を表示する表示手段とを備える。そして、前記管理ファイルの情報から、前記記録ファイルと前記新規作成ファイルとがサイズ制限で分割処理された情報を保持しておいて利用するようにする。これにより、機器制限でファイル分割が行なわれていることを操作者に意識させない機能を提供することができる。   Furthermore, a unit for reproducing the representative image of the moving image file recorded on the recording medium and a display unit for displaying the reproduction image list are provided. Then, from the information of the management file, information obtained by dividing the recording file and the newly created file by size restriction is held and used. As a result, it is possible to provide a function that does not make the operator aware that file division is performed due to device restrictions.

(本発明に係る他の実施の形態)
前述した本発明の実施の形態における記録装置を構成する各手段は、コンピュータのRAMやROMなどに記憶されたプログラムが動作することによって実現できる。このプログラム及び前記プログラムを記録したコンピュータ読み取り可能な記録媒体は本発明に含まれる。
(Another embodiment according to the present invention)
Each means constituting the recording apparatus according to the embodiment of the present invention described above can be realized by operating a program stored in a RAM or ROM of a computer. This program and a computer-readable recording medium recording the program are included in the present invention.

また、本発明は、例えば、システム、装置、方法、プログラムもしくは記憶媒体等としての実施の形態も可能であり、具体的には、複数の機器から構成されるシステムに適用してもよいし、また、一つの機器からなる装置に適用してもよい。   In addition, the present invention can be implemented as a system, apparatus, method, program, storage medium, or the like, and can be applied to a system composed of a plurality of devices. Moreover, you may apply to the apparatus which consists of one apparatus.

なお、本発明は、前述した記録方法における各工程を実行するソフトウェアのプログラム(実施の形態では図8に示すフローチャートに対応したプログラム)を、システムあるいは装置に直接、あるいは遠隔から供給する。そして、そのシステムあるいは装置のコンピュータが前記供給されたプログラムコードを読み出して実行することによっても達成される場合を含む。   In the present invention, a software program (in the embodiment, a program corresponding to the flowchart shown in FIG. 8) for executing each step in the recording method described above is directly or remotely supplied to the system or apparatus. In addition, this includes a case where the system or the computer of the apparatus is also achieved by reading and executing the supplied program code.

したがって、本発明の機能処理をコンピュータで実現するために、前記コンピュータにインストールされるプログラムコード自体も本発明を実現するものである。つまり、本発明は、本発明の機能処理を実現するためのコンピュータプログラム自体も含まれる。   Accordingly, since the functions of the present invention are implemented by computer, the program code installed in the computer also implements the present invention. In other words, the present invention includes a computer program itself for realizing the functional processing of the present invention.

その場合、プログラムの機能を有していれば、オブジェクトコード、インタプリタにより実行されるプログラム、OSに供給するスクリプトデータ等の形態であってもよい。   In that case, as long as it has the function of a program, it may be in the form of object code, a program executed by an interpreter, script data supplied to the OS, and the like.

プログラムを供給するための記録媒体としては種々の記録媒体を使用することができる。例えば、フロッピー(登録商標)ディスク、ハードディスク、光ディスク、光磁気ディスク、MO、CD−ROM、CD−R、CD−RW、磁気テープ、不揮発性のメモリカード、ROM、DVD(DVD−ROM,DVD−R)などがある。   Various recording media can be used as a recording medium for supplying the program. For example, floppy (registered trademark) disk, hard disk, optical disk, magneto-optical disk, MO, CD-ROM, CD-R, CD-RW, magnetic tape, nonvolatile memory card, ROM, DVD (DVD-ROM, DVD- R).

その他、プログラムの供給方法としては、クライアントコンピュータのブラウザを用いてインターネットのホームページに接続する。そして、前記ホームページから本発明のコンピュータプログラムそのもの、もしくは圧縮され自動インストール機能を含むファイルをハードディスク等の記録媒体にダウンロードすることによっても供給できる。   As another program supply method, a browser on a client computer is used to connect to an Internet home page. The computer program itself of the present invention or a compressed file including an automatic installation function can be downloaded from the homepage by downloading it to a recording medium such as a hard disk.

また、本発明のプログラムを構成するプログラムコードを複数のファイルに分割し、それぞれのファイルを異なるホームページからダウンロードすることによっても実現可能である。つまり、本発明の機能処理をコンピュータで実現するためのプログラムファイルを複数のユーザに対してダウンロードさせるWWWサーバも、本発明に含まれるものである。   It can also be realized by dividing the program code constituting the program of the present invention into a plurality of files and downloading each file from a different homepage. That is, a WWW server that allows a plurality of users to download a program file for realizing the functional processing of the present invention on a computer is also included in the present invention.

また、本発明のプログラムを暗号化してCD−ROM等の記憶媒体に格納してユーザに配布し、所定の条件をクリアしたユーザに対し、インターネットを介してホームページから暗号化を解く鍵情報をダウンロードさせる。そして、その鍵情報を使用することにより暗号化されたプログラムを実行してコンピュータにインストールさせて実現することも可能である。   In addition, the program of the present invention is encrypted, stored in a storage medium such as a CD-ROM, distributed to users, and key information for decryption is downloaded from a homepage via the Internet to users who have cleared predetermined conditions. Let It is also possible to execute the encrypted program by using the key information and install the program on a computer.

また、コンピュータが、読み出したプログラムを実行することによって、前述した実施の形態の機能が実現される他、コンピュータ上で稼動しているOSなどが、実際の処理の一部または全部を行なうことによっても前述した実施の形態の機能が実現され得る。   In addition to the functions of the above-described embodiments being realized by the computer executing the read program, the OS running on the computer performs part or all of the actual processing. Also, the functions of the above-described embodiments can be realized.

さらに、記録媒体から読み出されたプログラムが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれる。その後、そのプログラムの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行ない、その処理によっても前述した実施の形態の機能が実現される。   Further, the program read from the recording medium is written in a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer. Thereafter, the CPU of the function expansion board or function expansion unit performs part or all of the actual processing based on the instructions of the program, and the functions of the above-described embodiment are realized by the processing.

本発明の実施形態を示し、撮像機能を有する撮像装置の概略構成を説明するブロック図である。1 is a block diagram illustrating a schematic configuration of an imaging apparatus having an imaging function according to an embodiment of the present invention. 本発明の実施形態を示し、記録データストリームを説明する図である。It is a figure which shows embodiment of this invention and demonstrates a recording data stream. 本発明の実施形態を示し、TSパケットが時間軸方向に並んでいる様子を示した図である。It is the figure which showed embodiment of this invention and showed a mode that TS packet was located in a line with the time-axis direction. 本発明の実施形態を示し、TSパケットが時間軸方向に並んでいる様子を示した図であり、到着タイムスタンプを擬似的に説明する図である。FIG. 4 is a diagram illustrating an embodiment of the present invention, illustrating a state in which TS packets are arranged in a time axis direction, and a diagram for explaining an arrival time stamp in a pseudo manner. 本発明の実施形態を示し、ファイル分割をファイルイメージで説明する図である。It is a figure which shows embodiment of this invention and demonstrates file division by a file image. 本発明の実施形態の表示例を示し、表示部にファイル1から5までの代表画像が表示される様子を示している図である。It is a figure which shows the example of a display of embodiment of this invention, and shows a mode that the representative image of the files 1-5 is displayed on a display part. 本発明の実施形態を示し、ファイル2に関連ファイルが存在することを示唆する表示例を示す図である。It is a figure which shows embodiment of this invention and shows the example of a display which suggests that a related file exists in the file. 本発明の実施形態を示し、記録方法の一例を説明するフローチャートである。5 is a flowchart illustrating an example of a recording method according to an exemplary embodiment of the present invention.

符号の説明Explanation of symbols

200 撮像装置
201 レンズ
202 固体センサー
203 A/Dコンバータ
204 モータ
209 マイク
210 マイクアンプ
211 A/Dコンバータ
212 操作キー
213 表示ドライバ
214 表示部
215 スピーカドライバ
216 スピーカ
217 外部入出力端子
221 電源
222 メモリ
223 記録再生制御回路
224 各種センサー回路
225 ソケット
226 ストロボ発光部
230 CPU250 記録媒体
200 Imaging Device 201 Lens 202 Solid Sensor 203 A / D Converter 204 Motor 209 Microphone 210 Microphone Amplifier 211 A / D Converter 212 Operation Key 213 Display Driver 214 Display Unit 215 Speaker Driver 216 Speaker 217 External Input / Output Terminal 221 Power Supply 222 Memory 223 Recording Reproduction control circuit 224 Various sensor circuits 225 Socket 226 Strobe light emitting unit 230 CPU250 Recording medium

Claims (4)

動画データを入力する入力手段と、
前記入力手段により入力された動画データを符号化し、それぞれ所定量の前記符号化された動画データを有する複数の情報パケットを生成し、複数の前記情報パケットを出力する処理手段と、
前記処理手段から出力された複数の前記情報パケットをファイルとして記録媒体に記録する記録手段と、
前記記録媒体に記録されている第1のファイルのサイズが所定値に達した場合に、前記処理手段から出力される連続した二つの情報パケットの間に所定数の無効パケットを挿入すると共に、前記所定数の無効パケットのうち所定の無効パケットにおいて前記第1のファイルをクローズし、新たに第2のファイルをオープンして前記情報パケットの記録を続けるように、前記記録手段を制御する制御手段とを備え、
前記制御手段は、前記処理手段から出力される連続した二つの情報パケットの間に前記所定量の無効パケットが挿入できない場合、前記処理手段により符号化される動画データの符号量を下げることにより、前記処理手段から出力される連続した二つの情報パケットの間に前記所定量の無効パケットが挿入できるようにすることを特徴とする記録装置。
An input means for inputting video data;
Processing means for encoding moving image data input by the input means, generating a plurality of information packets each having a predetermined amount of the encoded moving image data, and outputting a plurality of the information packets;
Recording means for recording the plurality of information packets output from the processing means as files on a recording medium;
When the size of the first file recorded on the recording medium reaches a predetermined value, a predetermined number of invalid packets are inserted between two consecutive information packets output from the processing means, and Control means for controlling the recording means to close the first file in a predetermined invalid packet among a predetermined number of invalid packets, open a new second file and continue recording the information packet; With
When the predetermined amount of invalid packets cannot be inserted between two consecutive information packets output from the processing unit, the control unit reduces the code amount of the video data encoded by the processing unit, The recording apparatus, wherein the predetermined amount of invalid packets can be inserted between two consecutive information packets output from the processing means.
前記記録手段は所定のファイルシステムに従って前記ファイルを記録し、前記制御手段は、前記無効パケットの境界と前記ファイルシステムの記録単位とが合致する位置において前記第1のファイルをクローズするように前記記録手段を制御することを特徴とする請求項1に記載の記録装置。   The recording unit records the file according to a predetermined file system, and the control unit closes the first file at a position where a boundary of the invalid packet matches a recording unit of the file system. The recording apparatus according to claim 1, wherein the means is controlled. 前記所定値は前記ファイルシステムにより制限されたファイル長から所定量を減算した値であることを特徴とする請求項2に記載の記録装置。   The recording apparatus according to claim 2, wherein the predetermined value is a value obtained by subtracting a predetermined amount from a file length limited by the file system. 動画データを入力する入力工程と、
前記入力工程により入力された動画データを符号化し、それぞれ所定量の前記符号化された動画データを有する複数の情報パケットを生成し、複数の前記情報パケットを出力する処理工程と、
前記処理工程から出力された複数の前記情報パケットをファイルとして記録媒体に記録する記録工程と、
前記記録媒体に記録されている第1のファイルのサイズが所定値に達した場合に、前記処理工程から出力される連続した二つの情報パケットの間に所定数の無効パケットを挿入すると共に、前記所定数の無効パケットのうち所定の無効パケットにおいて前記第1のファイルをクローズし、新たに第2のファイルをオープンして前記情報パケットの記録を続けるように、前記記録工程を制御する制御工程とを備え、
前記制御工程は、前記処理工程から出力される連続した二つの情報パケットの間に前記所定量の無効パケットが挿入できない場合、前記処理工程において符号化される動画データの符号量を下げることにより、前記処理工程から出力される連続した二つの情報パケットの間に前記所定量の無効パケットが挿入できるようにすることを特徴とする記録方法。
An input process for inputting video data;
A process of encoding the moving image data input by the input step, generating a plurality of information packets each having a predetermined amount of the encoded moving image data, and outputting a plurality of the information packets;
A recording step of recording a plurality of the information packets output from the processing step as a file on a recording medium;
When the size of the first file recorded on the recording medium reaches a predetermined value, a predetermined number of invalid packets are inserted between two consecutive information packets output from the processing step, and A control step for controlling the recording step so that the first file is closed in a predetermined invalid packet among a predetermined number of invalid packets, a second file is newly opened, and recording of the information packet is continued. With
When the predetermined amount of invalid packets cannot be inserted between two consecutive information packets output from the processing step, the control step reduces the code amount of the video data encoded in the processing step, A recording method, wherein the predetermined amount of invalid packets can be inserted between two consecutive information packets output from the processing step.
JP2007192270A 2007-07-24 2007-07-24 Recording apparatus and recording method Expired - Fee Related JP5004706B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007192270A JP5004706B2 (en) 2007-07-24 2007-07-24 Recording apparatus and recording method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007192270A JP5004706B2 (en) 2007-07-24 2007-07-24 Recording apparatus and recording method

Publications (3)

Publication Number Publication Date
JP2009033246A JP2009033246A (en) 2009-02-12
JP2009033246A5 JP2009033246A5 (en) 2010-09-09
JP5004706B2 true JP5004706B2 (en) 2012-08-22

Family

ID=40403306

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007192270A Expired - Fee Related JP5004706B2 (en) 2007-07-24 2007-07-24 Recording apparatus and recording method

Country Status (1)

Country Link
JP (1) JP5004706B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6501676B2 (en) * 2015-08-24 2019-04-17 キヤノン株式会社 Image recording apparatus, control method thereof and program

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1950962B1 (en) * 2005-10-27 2017-03-29 Panasonic Corporation Transport stream generating apparatus, recording apparatus having the same, and transport stream generating method

Also Published As

Publication number Publication date
JP2009033246A (en) 2009-02-12

Similar Documents

Publication Publication Date Title
CN100334642C (en) Recording method and device, reproduction method and device, and imaging device
JP4416606B2 (en) Display control apparatus, display control method, program, and storage medium
JP3988079B2 (en) Information processing apparatus and method, and program
JP4715633B2 (en) RECORDING DEVICE, RECORDING METHOD, RECORDING PROGRAM, EDITING DEVICE, EDITING METHOD, AND EDITING PROGRAM
US8165455B2 (en) Data processing apparatus and data processing method, and computer program
KR20100067115A (en) Video reproduction device and video reproduction method
KR20050111722A (en) Recording method, recording device, recording medium, reproduction method, reproduction device, and image pickup device
US20090047002A1 (en) Data processing apparatus and data processing method, and computer program
US8818165B2 (en) Data processing apparatus, data processing method, and computer program
US8082257B2 (en) Recording and reproducing apparatus
JP4737003B2 (en) Editing apparatus, editing method, editing program, and editing system
JP5004706B2 (en) Recording apparatus and recording method
WO2008018312A1 (en) Data processing device, data processing method, and computer program
JP2003189228A (en) Picture recorder
JP2008310901A (en) Recording / reproducing apparatus and recording / reproducing method
US8134607B2 (en) Recording apparatus
US8301015B2 (en) Recording control apparatus, recording control method, and program
JP5072636B2 (en) Playback apparatus and playback method
JP4164696B2 (en) Imaging apparatus and imaging method
JP2008067117A (en) Video recording method, apparatus, and medium
JP4958738B2 (en) Recording / reproducing apparatus and recording / reproducing method
JP4366609B2 (en) Recording method, recording apparatus, reproducing method, reproducing apparatus, recording / reproducing apparatus, and recording / reproducing method
JP2007295070A (en) Recording apparatus and method, program, and recording medium
JP2008113111A (en) Recording device
JP2010109482A (en) Imaging apparatus and imaging method

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100722

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100722

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20111124

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20111129

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120126

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: 20120424

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120522

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150601

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150601

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees