JP5624658B2 - Data processing apparatus, method, and control program - Google Patents
Data processing apparatus, method, and control program Download PDFInfo
- Publication number
- JP5624658B2 JP5624658B2 JP2013172145A JP2013172145A JP5624658B2 JP 5624658 B2 JP5624658 B2 JP 5624658B2 JP 2013172145 A JP2013172145 A JP 2013172145A JP 2013172145 A JP2013172145 A JP 2013172145A JP 5624658 B2 JP5624658 B2 JP 5624658B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- information
- moving image
- storage unit
- recording
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
- H04N5/91—Television signal processing therefor
Landscapes
- Television Signal Processing For Recording (AREA)
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
Description
本発明はデータ処理装置、特に情報データを符号化して外部への出力を行なうデータ処理装置、方法および制御プログラムに関する。 The present invention relates to a data processing apparatus, and more particularly to a data processing apparatus, method and control program for encoding information data and outputting the data to the outside.
従来、動画信号や音声信号を記録媒体に記録するためのファイル形式として、MP4ファイル形式が知られている(特許文献1参照)。MP4形式では、符号化された動画信号や音声信号を格納する領域の他に、動画や音声を再生、復号するために必要な管理情報を格納する領域が設けられている。 Conventionally, an MP4 file format is known as a file format for recording moving image signals and audio signals on a recording medium (see Patent Document 1). In the MP4 format, an area for storing management information necessary for reproducing and decoding moving pictures and audio is provided in addition to an area for storing encoded moving picture signals and audio signals.
管理情報はデータのサイズの情報を含んでいる。データのサイズは、実際に動画や音声の記録が停止するまで確定されない。そのため、例えば、動画の記録中に管理情報を作成し、装置内部のバッファメモリなどに記憶しておき、動画の記録停止後、管理情報を記録媒体に記録することが考えられる。 The management information includes data size information. The size of the data is not fixed until the recording of the moving image or sound is actually stopped. Therefore, for example, it is conceivable to create management information during recording of a moving image, store it in a buffer memory or the like inside the apparatus, and record the management information on a recording medium after stopping the recording of the moving image.
動画や音声を符号化しながらMP4ファイルの形式に変換し、ネットワークなどを介して外部に送信することも可能である。そして、この様に送信されたMP4ファイルを受信した装置が、順次MP4ファイルのデータを復号する構成が考えられる。 It is also possible to convert a moving image or sound into an MP4 file format while encoding it and send it to the outside via a network or the like. A configuration in which the apparatus that receives the MP4 file transmitted in this way sequentially decodes the data of the MP4 file is conceivable.
しかしながら、前記の様に、動画の記録(符号化)停止の指示の後に管理情報を作成して送信する構成では、受信側の装置は、管理情報を受け取るまで、先に受信した動画や音声を復号することができないという問題があった。 However, as described above, in the configuration in which the management information is generated and transmitted after the instruction to stop recording (encoding) the moving image, the receiving device receives the previously received moving image or sound until the management information is received. There was a problem that it could not be decrypted.
本発明は前述の問題点に鑑み、管理情報を含む情報データファイルを外部に送信する際に、受信側が情報データを迅速に再生できるようにすることを目的とする。 The present invention has been made in view of the above-described problems, and an object of the present invention is to enable a receiving side to quickly reproduce information data when an information data file including management information is transmitted to the outside.
上記従来技術の問題を解決するため、本発明のデータ処理装置は、それぞれがサイズ情報を含む複数の格納単位を有し、複数の格納単位が、符号化された情報データを格納するための一つ以上の第1の格納単位と、第1の格納単位に格納された情報データに関する管理情報を格納するための一つ以上の第2の格納単位である情報ファイルを生成し、生成された情報ファイルを送信手段により送信する送信モードにおいて、符号化された情報データの所定量毎に第1の格納単位を生成すると共に、生成した第1の格納単位に対応した第2の格納単位を生成して一つの情報ファイルを生成する。
In order to solve the above-described problems of the prior art, the data processing apparatus of the present invention has a plurality of storage units each including size information, and the plurality of storage units are used to store encoded information data. Information generated by generating one or more first storage units and one or more second storage units for storing management information related to information data stored in the first storage units In a transmission mode in which a file is transmitted by a transmission unit, a first storage unit is generated for each predetermined amount of encoded information data, and a second storage unit corresponding to the generated first storage unit is generated. Create one information file.
本発明によれば、管理情報を含む情報データファイルを外部に送信したときに、受信した情報データを迅速に復号することが可能となる。 According to the present invention, when an information data file including management information is transmitted to the outside, the received information data can be quickly decoded.
以下、本発明の実施形態について図面を参照しながら説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings.
第1の実施形態
図1は、本発明の実施形態に係るデータ処理装置100の構成例を示すブロック図である。
図1において、入力部101は、動画データや音声データを取得して出力する。本実施形態では、入力部101はデータ処理装置100の外部から供給された動画データや音声データを入力している。しかし、入力部101を撮像部やマイクロフォンを含む構成とし、撮像部で撮影された動画やマイクで収集された音声をそれぞれデータとして取得する構成としてもよい。
First Embodiment FIG. 1 is a block diagram illustrating a configuration example of a data processing apparatus 100 according to an embodiment of the present invention.
In FIG. 1, an
信号処理部102は、記録時においては、入力部101により入力された動画データや音声データをH.264(MPEG4 AVC)等の公知の符号化形式に従って符号化して、その情報量を圧縮する。また、動画データや音声データを記録するために必要な処理も行なう。また、信号処理部102は、再生時においては、再生された動画データや音声データを復号し、その情報量を伸張する。また、信号処理部102は、記録時において、符号化された動画データや音声データの符号量(データ量)の情報を制御部102に出力する。
At the time of recording, the
メモリ103は、動画データや音声データを記憶する。データ処理装置100の各ブロックは、メモリ103に対してアクセスすることにより、必要な動画データや音声データを処理する。また、メモリ103は、動画データや音声データの他に、ファイルシステムの情報や、動画ファイルの管理情報など、各種の情報を記憶し、更に、制御部106による制御のためのワークメモリ等の役割を果たす。
The
ファイルデータ処理部104は、記録時においては、後述の様に、MP4ファイルにて規定された各種の管理情報を生成し、再生時には、再生された管理情報を処理し、その内容を制御部106に知らせる。表示部105は、入力または再生された動画、或いは、メニュー情報などの各種の情報を表示する。
As will be described later, the file
制御部106は、操作入力部107からの入力に応じてデータ処理装置100の動作全体を制御する。制御部106はマイクロコンピュータやメモリ等を含み、不図示のメモリに記憶されたプログラムに従ってデータ処理装置100を制御する。操作入力部107は、ユーザにより操作可能な各種のスイッチを含み、ユーザによる各種の指示などを受け付けて制御部106へ通知する。また、操作入力部107は、電源スイッチや記録の開始、停止を指示するためのスイッチ、データ処理装置100のモードを切り替えるためのスイッチ等を含む。
The
記録再生部108は、記録媒体109に動画データや音声データ、或いは、各種の情報を記録すると共に、記録媒体109からこれらのデータを再生する。記録再生部108は、記録時においては、メモリ103に蓄積された管理情報や動画データ、或いは音声データを、後述するようにファイル形式で記録媒体109に記録する。また、記録再生部106は、再生時においては、記録媒体109から動画ファイルの管理情報や動画データ、音声データを再生し、メモリ103に記憶する。本実施形態では、記録媒体109はハードディスク(HDD)、フラッシュメモリカード等、ランダムアクセス可能な記録媒体である。
The recording / reproducing
また、記録再生部108は、記録媒体109に記録する動画ファイルや、各種の情報を、FAT(File Allocation Table)等のファイルシステムに従い、ファイルとして管理する。また、不図示の装着、排出機構により、データ処理装置100に対して記録媒体109を容易に装着、排出することができるように構成するが、データ処理装置100に記録媒体109が内蔵される構成でもよい。
The recording /
制御部106は、記録媒体109に動画ファイルの書き込み、読み出しを行う場合、記録再生部108を制御して、記録媒体109からファイルシステムデータ(管理データ)を再生してメモリ103に記憶する。このファイルシステムデータは、記録媒体109に記録されたデータのファイル名やファイルのサイズ、データの記録アドレスなどを示すデータであり、ファイルを管理するための管理情報である。そして、制御部106は、読み出したファイルシステムデータに従ってファイルの書き込み、読み出しを制御する。制御部106は、記録媒体109へのファイルの書き込みに応じて、メモリ103に記憶されたファイルシステムデータを更新する。そして、更新したファイルシステムデータを、記録再生部108により記録媒体109に記録する。
When writing and reading a moving image file to / from the
外部インターフェイス(IF)110は、データ処理装置100が外部送信モードに設定されている場合に、ユーザの記録指示により生成された動画ファイルを受け取り、ネットワーク112を介して外部装置113に動画ファイルを送信する。
The external interface (IF) 110 receives a moving image file generated by a user's recording instruction and transmits the moving image file to the
次に、本実施形態で扱う情報ファイルについて説明する。本実施形態では、動画データや音声データを、MP4ファイル形式に従って記録、或いは、送信する。MP4ファイルはボックス(box)と呼ばれる単位で構成される。図2に一つのボックス201の構成を示す。一つのボックス201は、box-size、box-type、box-dataの領域を含む。box-sizeにはこのボックスのデータ長(バイト)の情報(サイズ情報)が格納される。box-typeにはbox-dataに格納されるデータ種別を示す情報が格納され、box-dataには実データが格納される。box-typeは32ビットの固定長のデータ領域であり、box-dataは可変長の領域である。box-sizeが32ビットであるため、一つのボックスのサイズは通常0xFFFFFFFFバイト以下である。
Next, information files handled in this embodiment will be described. In the present embodiment, moving image data and audio data are recorded or transmitted according to the MP4 file format. An MP4 file is composed of units called boxes. FIG. 2 shows the configuration of one
図2の202、203は本実施形態において扱うMP4ファイル(情報ファイル)の構成例を示す図である。ファイル202、203は、複数のボックス201から構成される。ファイル202は、FileTypeBox(ftyp-box)、MovieBox(moov-box)、MediaDataBox(mdat-box)の三つの格納単位から構成される。
202 and 203 in FIG. 2 are diagrams showing an example of the configuration of an MP4 file (information file) handled in this embodiment. The
ftypは、box-typeがftypであり、ファイルの互換性に関する情報が格納されるボックスである。ftypに記述されたbox-dataに基づいて、MP4ファイルに格納された動画データや音声データの符号化方式等を判別することができる。 ftyp is a box in which box-type is ftyp and information on file compatibility is stored. Based on the box-data described in ftyp, it is possible to determine the encoding method of moving image data and audio data stored in the MP4 file.
moovは、box-typeがmoovであり、動画データや音声データに関する管理情報が格納されるボックスである。moovのbox-dataには、動画データや音声データのチャンクのファイル先頭からのオフセットを示すチャンクオフセット、各チャンクのサンプル数、サンプルサイズなどの情報が格納される。moovボックスの様子を図2の204に示す。moovは、mvhdと1以上のtrakを含む。trakボックスは、1以上のビデオトラック、ビデオ、オーディオトラックを定義する情報である。trakは、tkhdとmdiaを含む。mdiaは各トラックのメディアタイプなどを記述した情報である。mdiaはmdhdとstblを含む。stblには、動画データや音声データのチャンクのファイル先頭からのオフセットを示すチャンクオフセット、各チャンクのサンプル数、サンプルの表示時間、サンプルサイズなどの情報が格納される。ここで、動画データの1サンプルはフレームに対応し、音声データの1サンプルは音声フレームに対応する。 moov is a box in which box-type is moov and management information regarding moving image data and audio data is stored. The moov box-data stores information such as a chunk offset indicating an offset from the beginning of a chunk of moving image data or audio data, the number of samples of each chunk, and the sample size. The state of the moov box is shown at 204 in FIG. moov contains mvhd and one or more traks. The trak box is information that defines one or more video tracks, video, and audio tracks. trak includes tkhd and mdia. mdia is information describing the media type of each track. mdia includes mdhd and stbl. stbl stores information such as a chunk offset indicating an offset from the beginning of a chunk of moving image data or audio data, the number of samples of each chunk, the display time of the sample, and the sample size. Here, one sample of moving image data corresponds to a frame, and one sample of audio data corresponds to an audio frame.
mdatは、box-typeがmdatであり、動画データや音声データの各サンプルが格納されるボックスである。符号化された動画データや音声データは、それぞれチャンクという単位に分割されて格納される。本実施形態では、動画データの1チャンクを、H.264方式で規定された1GOPの動画データとする。また、音声データの1チャンクを、この1GOPに対応したフレーム数の音声データとする。 mdat is a box whose box-type is mdat and each sample of moving image data and audio data is stored. The encoded moving image data and audio data are divided and stored in units of chunks. In the present embodiment, one chunk of moving image data is assigned to H.264. The video data is 1 GOP defined by the H.264 system. Further, one chunk of audio data is set as audio data of the number of frames corresponding to this 1 GOP.
また、ファイル203に示すように、mdatボックスを複数に分割して配置するためのMovieFragmentBox(moof-box)を使うことも可能である。moofは、box-typeがmoofであり、moovと後に続くmdatボックスの管理情報がbox-dataに格納される。ファイル203では、一つのmoovボックスとn個のmoofボックスを含む。moofボックスの構成を図2の205に示す。moofのbox-dataには、mfhdと1以上のtrafを含む。mfhdには、fragment sequence numberが格納される。trafボックスは、1以上のビデオトラック、或いは、ビデオ、オーディオトラックを定義する情報である。各trafは、tfhdとtrunを含む。tfhdは、後に続くmdatに格納された各チャンクの長さ(duration)とサイズのデフォルト値を格納する。trunは、後に続くmdatに格納された各チャンクに格納されるサンプルの表示時間、サイズがサンプル単位で変化する場合に、これらの値を格納する。また、mdatに格納された各チャンクのサイズが異なる場合には、mdatの先頭からの各チャンク先頭までのオフセット値の情報もtrunに格納される。
As shown in the
なお、moovのmdia,stblは、各トラックを構成する複数のチャンクに関するサイズやオフセットなどの情報が一つのbox-dataに格納される。一方、moofのtrunには、一つのチャンクに関するサイズやオフセットなどの情報が格納される。そのため、moofには、後にmdatに格納されたチャンクの数と同じ数のtrunボックスが格納される。 In addition, in movia and stbl of moov, information such as size and offset regarding a plurality of chunks constituting each track is stored in one box-data. On the other hand, trun of moof stores information such as size and offset related to one chunk. Therefore, the same number of trun boxes as the number of chunks stored in mdat later is stored in moof.
この様に、一つのmoovボックスと、1以上のmdatボックス(複数の第1の格納単位)、及び1以上のmoofボックス(複数の第2の格納単位)により一つのMP4形式のファイル203を構成することができる。また、moov、mdat、moofの各サイズは、動画や音声のサンプルデータ数、つまり記録時間や、圧縮後の動画、音声データのデータ量によって変わる。
In this way, one
次に、動画の記録処理、及び、外部への送信処理について説明する。本実施形態において図のフローチャートを用いて説明する処理は、制御部106が図示しないメモリに記憶されたプログラムをロードして実行することで各部を制御することにより実現される。
Next, a moving image recording process and an external transmission process will be described. In the present embodiment, the processing described using the flowchart of the drawing is realized by the
図3は、記録時の処理を示すフローチャートである。ユーザは、操作入力部107を操作することにより、入力された動画や音声を記録媒体108に記録する記録モードと、入力された動画や音声を記録するのではなく、外部に送信する送信モードの何れかを選択することができる。制御部106は、この様に記録モードと送信モードの何れかが選択された状態で、操作入力部107より記録開始の指示を受けると、設定されているモードを判別する(S301)。
FIG. 3 is a flowchart showing processing during recording. The user operates the
制御部106は、記録モードが設定されていた場合、第1のモード処理を実行し(S302)、送信モードが設定されていた場合には、第2のモード処理を実行する(S303)。各モード処理により、出力先に適した形式の情報ファイルが生成される。
The
第1のモード処理を説明する。図4は第1のモード処理のフローチャートを示す図である。また、図5は、第1のモード処理において、メモリ102に格納されるデータと、記録媒体108に記録されるデータの状態を示す図である。
The first mode process will be described. FIG. 4 is a flowchart of the first mode process. FIG. 5 is a diagram showing the state of data stored in the
記録開始の指示を受けると、制御部106は、ファイルデータ処理部104に対し、ftyp、moov、mdatのデータを生成するように指示する。ファイルデータ処理部104は、ftypを生成してメモリ103に記憶する(S401)。また、ファイルデータ処理部104は、box-sizeとbox-dataに無効値(ダミーデータ)を格納したmoovボックスを生成してメモリ103に記憶する(S402)。更に、ファイルデータ処理部104は、box-sizeに無効値(ダミーデータ)を格納したmdatボックスを生成し、メモリ103に記憶する(S403)。このときメモリ103に記憶されているデータの構成を図5の501に示す。図5において、(d)で示した領域は無効値(ダミーデータ)が格納されている。
Upon receiving an instruction to start recording, the
次に、制御部106は、信号処理部102に動画データと音声データの符号化を開始させる。信号処理部102は、メモリ103に順次記憶された動画データと音声データを符号化し、符号化した動画データと音声データを、メモリ103に記憶する(S404)。この際、信号処理部102は、動画データと音声データを、moovボックスにおけるbox-data領域に格納する。また、信号処理部102は、符号化された動画データと音声データのサンプルデータサイズなどの情報を、ファイルデータ処理部104と制御部107に出力する。このときメモリ103に記憶されているデータの構成を図5の502に示す。
Next, the
この様に、動画データと音声データの符号化を継続し、メモリ103に記憶された未記録データのデータ量が所定量に達したことに応じて、制御部107は、記録再生部108に対してデータを記録する様に指示する。記録再生部108は、メモリ103より未記録のデータをftyp、moov、mdatの順に読み出して、記録媒体109に記録する(S405)。
In this way, encoding of moving image data and audio data is continued, and in response to the amount of unrecorded data stored in the
そして、制御部106は、記録停止の指示があるまで、符号化された動画データと音声データをメモリ103に続けて記憶させ、更に、記録媒体109への記録処理を継続する。このときメモリ103に記憶されているデータと記録媒体109に記録されているデータの構成を図5の503に示す。
Then, the
操作入力部107より記録停止の指示を受けた場合(S406)、制御部106は、信号処理部102に対して動画と音声の符号化処理を停止するよう指示すると共に、記録再生部108に対し、記録媒体109への記録停止を指示する。記録再生部108は、メモリ103に記憶された未記録のmdatのデータを読み出して記録媒体109に記録すると、記録を停止する(S407)。このときメモリ103に記憶されているデータと記録媒体109に記録されているデータの様子を図5の504に示す。
When receiving an instruction to stop recording from the operation input unit 107 (S406), the
次に、制御部106は、記録再生部108に対し、記録媒体109に記録済のMP4ファイルから、moovボックスのデータと、mdatボックスにおけるbox-sizeのデータを読み出すように指示する(S408)。記録再生部108は、記録媒体109に記録済のMP4ファイルから、moovボックスのデータと、mdatボックスにおけるbox-sizeのデータを読み出し、メモリ103に記憶する。このときメモリ103に記憶されているデータと記録媒体109に記録されているデータの様子を図5の505に示す。505に示す様に、メモリ103に記憶されたmoovボックスのデータと、mdatボックスにおけるbox-sizeのデータはそれぞれ無効値を含んでいる。
Next, the
次に、制御部106は、ファイルデータ処理部104に対し、メモリ103に記憶されたmoovボックスのデータと、mdatボックスにおけるbox-sizeのデータの無効値を正しい値に変更する様に指示する。ファイルデータ処理部104は、動画と音声の記録中に信号処理部102から出力されたサンプルデータサイズなどの情報に基づいて、moovボックスのサイズとmdatボックスのサイズを算出する。また、ファイルデータ処理部104は、記録中に信号処理部102から出力されたサンプルデータサイズなどの情報に基づいて、moovボックスのデータを生成し、moovのbox-dataを変更する(S409)。このときメモリ103に記憶されているデータと記録媒体109に記録されているデータの様子を図5の506に示す。
Next, the
この様に、ファイルデータ処理部104により、メモリ103に記憶された無効値が変更されると、制御部106は、更新されたデータを記録するように記録再生部108に指示する。記録再生部108は、メモリ103から、moovボックスのデータと、mdatボックスにおけるbox-sizeのデータを読み出し、読み出したデータにより、元のMP4ファイルに記録されていたデータを更新する(S410)。このときメモリ103に記憶されているデータと記録媒体109に記録されているデータの様子を図5の507に示す。
As described above, when the invalid value stored in the
この結果、最終的に記録媒体109に記録されているMP4ファイルのデータは、図2の202の形式となる。
As a result, the data of the MP4 file finally recorded on the
次に、第2のモード処理を説明する。図6は第2のモード処理のフローチャートを示す図である。また、図7は、第2のモード処理において、メモリ102に格納されるデータと、外部IF110により送信済みのデータの構成を示す図である。
Next, the second mode process will be described. FIG. 6 is a flowchart of the second mode process. FIG. 7 is a diagram illustrating a configuration of data stored in the
送信開始の指示を受けると、制御部106は、ファイルデータ処理部104に対し、ftyp、moov、mdatのデータを生成するように指示する。ファイルデータ処理部104は、ftypを生成してメモリ103に記憶する(S601)。また、ファイルデータ処理部104は、box-sizeとbox-dataに無効値(ダミーデータ)を格納したmoovボックスを生成してメモリ103に記憶する(S602)。更に、ファイルデータ処理部104は、box-sizeに無効値(ダミーデータ)を格納したmdatボックスを生成し、メモリ103に記憶する(S603)。このときメモリ103に記憶されているデータの様子を図7の701に示す。図7において、(d)で示した領域は無効値(ダミーデータ)が格納されている。
Upon receiving an instruction to start transmission, the
次に、制御部106は、信号処理部102により動画データと音声データの符号化を開始させる。信号処理部102は、メモリ103に順次記憶された動画データと音声データを符号化し、符号化した動画データと音声データを、メモリ103に記憶する(S604)。即ち、信号処理部102は、動画データと音声データを、mdatボックスにおけるbox-data領域に格納する。また、信号処理部102は、符号化された動画データと音声データのサンプルデータサイズなどの情報を、ファイルデータ処理部104と制御部107に出力する。このときメモリ103に記憶されているデータの構成を図7の702に示す。
Next, the
この様に、操作入力部107より送信停止の指示があるまで動画データと音声データの符号化を継続する。送信停止の指示が無い場合(S605)、制御部106は、信号処理部102からの符号化済みの動画データと音声データのデータ量の情報に基づいて、メモリ103に記憶された未送信の符号化データのデータ量が所定量Lに達したか否かを判別する(S609)。
In this way, encoding of moving image data and audio data is continued until an instruction to stop transmission is received from the
メモリ103に記憶された未送信の符合化データのデータ量がLに達していない場合には、そのまま動画データと音声データの符号化を継続する。ここで、所定値Lは、例えば、メモリ103に対して記憶可能な符号化動画データと音声データのデータ量に基づいて決めることができる。即ち、符号化された動画データと音声データの平均データレートに基づいて、メモリ103に記憶可能な動画データのフレーム数に基づいて決めることも可能である。
When the data amount of the untransmitted encoded data stored in the
また、メモリ103に記憶された未送信の符号化データのデータ量が所定値Lに達した場合、制御部106は、その時点でメモリ103に記憶されている圧縮動画データのうち、所定値に達する直前のフレームを検出する。更に、制御部106は、メモリ103に記憶されている圧縮音声データのうち、この所定値に達する直前のフレームに対応した音声データのフレームを検出する。そして、送信開始の指示から、この所定値に達する直前のフレームまでの動画データと、それに対応した音声フレームまでの音声データにより一つのmdatボックスを生成して、mdatボックスを分割する。本実施形態では、符号化された動画データのデータ量がフレーム毎に異なる。そのため、所定値Lに対応した符号化動画データのフレーム数は一定にならない。そして、本実施形態では、メモリ103に記憶された未送信の符号化データのデータ量が所定値Lに達した場合、フレーム単位で動画データを分割する。また、分割された動画データのフレームに対応する音声データを音声フレーム単位で分割する。
When the data amount of the untransmitted encoded data stored in the
制御部106は、ファイルデータ処理部104に対して、メモリ103に記憶されたmoovボックスのデータと、mdatボックスにおけるbox-sizeのデータの無効値を正しい値に変更する様に指示する。
The
ファイルデータ処理部104は、動画と音声の記録中に信号処理部102から出力されたサンプルデータサイズなどの情報に基づいて、moovボックスのサイズとmdatボックスのサイズを算出し、box-sizeのデータを変更する。また、ファイルデータ処理部104は、記録中に信号処理部102から出力されたサンプルデータサイズなどの情報に基づいて、moovボックスのデータを生成し、moovのbox-dataを変更する(S610)。また、ファイルデータ処理部104は、動画データや音声データのトラック情報(圧縮形式など、動画や音声の再生互換に関するデータ)をmoovのdata-boxに格納する。この処理により、一つのmoovボックスが生成される。このときメモリ103に記憶されているデータの構成を図7の702に示す。
The file
そして、制御部106は、ftypボックスと、この様に更新された一つのmoovボックスと一つのmdatボックスを含む未送信のデータを外部に送信するように外部IF110に指示する。外部IF110は、メモリ103より未送信のデータを読み出してネットワーク112に送信する(S611)。このとき、外部IF110は、最初にftypボックスを送信し、続いてmoovボックス、mdatボックスの順に送信する。そして、外部IF110は、指定された未送信のデータの送信が完了すると、送信を停止する。
Then, the
次に、制御部106は、ファイルデータ処理部104に対し、新たにmoofボックスとmdatボックスを生成するように指示する。ファイルデータ処理部104は、box-sizeとbox-dataに無効値(ダミーデータ)を格納したmoofボックスを新たに生成してメモリ103に記憶する(S612)。ファイルデータ処理部104は、box-sizeに無効値(ダミーデータ)を格納したmdatボックスを生成し、メモリ103に記憶する(S603)。このときメモリ103に記憶されているデータと送信済みのデータの様子を図7の703に示す。
Next, the
そして、動画データと音声データの符号化を継続する。送信停止の指示が無く、メモリ103に記憶された未送信の符号化動画データと音声データのデータ量がLに達した場合、制御部106は、その時点でメモリ103に記憶されている動画データと、対応する音声データにより一つのmdatボックスを生成する。
Then, encoding of moving image data and audio data is continued. When there is no instruction to stop transmission and the data amounts of untransmitted encoded moving image data and audio data stored in the
そして、制御部106は、ファイルデータ処理部104に対して、メモリ103に記憶されたmoofボックスのデータと、mdatボックスにおけるbox-sizeのデータの無効値をMP4のファイル形式に従って正しい値に変更する様に指示する。ファイルデータ処理部104は、動画と音声の記録中に信号処理部102から出力されたサンプルデータサイズなどの情報に基づいて、moofボックスのサイズとmdatボックスのサイズを算出し、box-sizeのデータを変更する。また、ファイルデータ処理部104は、記録中に信号処理部102から出力されたサンプルデータサイズなどの情報に基づいて、moofボックスのデータを生成し、moofのbox-dataを変更する(S610)。このときメモリ103に記憶されているデータと送信済みのデータの構成を図7の704に示す。ここで、moofには、前述の様に、このmoofの後に続いて送信されるmdatに格納された動画データの管理情報が格納される。
Then, the
そして、制御部106は、この様に更新されたmoofボックスとmdatボックスを含む、未送信のデータを外部に送信するように外部IF110に指示する。外部IF110は、メモリ103より未送信のデータを読み出してネットワーク112に送信する(S611)。そして、外部IF110は、指定された未送信のデータの送信が完了すると、送信を停止する。
Then, the
次に、制御部106は、ファイルデータ処理部104に対し、新たにmoofボックスとmdatボックスを生成するように指示する。ファイルデータ処理部104は、box-sizeとbox-dataに無効値(ダミーデータ)を格納したmoofボックスデータを新たに生成してメモリ103に記憶する(S612)。ファイルデータ処理部104は、box-sizeに無効値(ダミーデータ)を格納したmdatボックスを生成し、メモリ103に記憶する(S603)。このときメモリ103に記憶されているデータと送信済みのデータの構成を図7の705に示す。
Next, the
以下、同様に送信停止の指示を受けるまで処理を繰り返す。そして、操作入力部107より送信停止の指示を受けると(S605)、制御部106は、信号処理部102に対し、動画と音声の符号化を停止する様に指示する。また、制御部106は、送信停止の指示があった時点でメモリ103に記憶されている動画データと音声データにより一つのmdatボックスを生成する。
Thereafter, the same process is repeated until an instruction to stop transmission is received. When receiving an instruction to stop transmission from the operation input unit 107 (S605), the
そして、制御部106は、ファイルデータ処理部104に対して、メモリ103に記憶されたmoofボックスのデータと、mdatボックスにおけるbox-sizeのデータの無効値を正しい値に変更する様に指示する。ファイルデータ処理部104は、動画と音声の記録中に信号処理部102から出力されたサンプルデータサイズなどの情報に基づいて、moofボックスのサイズとmdatボックスのサイズを算出し、box-sizeのデータを変更する。また、ファイルデータ処理部104は、記録中に信号処理部102から出力されたサンプルデータサイズなどの情報に基づいて、moofボックスのデータを生成し、moofのbox-dataを変更する(S606)。このときメモリ103に記憶されているデータと送信済みのデータの構成を図7の706に示す。
Then, the
そして、制御部106は、この様に更新されたmoofボックスとmdatボックスを含む、未送信のデータを外部に送信するように外部IF110に指示する。外部IF110は、メモリ103より未送信のデータを読み出してネットワーク112に送信する(S607)。そして、外部IF110は、指定された未送信のデータの送信が完了すると、送信を停止する(S608)。このときメモリ103に記憶されているデータと送信済みのデータの構成を図7の707に示す。この結果、送信される動画ファイルの形式は図2の203に示す形式となる。
Then, the
この様に、本実施形態では、動画や音声などの情報データを符号化しながら、符号化されたデータをMP4ファイル形式に従って記録媒体に記録する場合には、管理情報に無効値を格納して記録媒体に記録する。そして、記録停止後に、記録媒体に記録された管理情報の値を更新する。そのため、記録中に管理情報を記憶するため、大容量のメモリを用意する必要がない。 As described above, in the present embodiment, in the case where the encoded data is recorded on the recording medium in accordance with the MP4 file format while the information data such as the moving image or the audio is encoded, the invalid value is stored in the management information and recorded. Record on media. Then, after the recording is stopped, the value of the management information recorded on the recording medium is updated. Therefore, since management information is stored during recording, it is not necessary to prepare a large-capacity memory.
また、本実施形態では、動画と音声を符号化しながら、符号化されたデータをMP4ファイル形式に従って外部に送信する場合には、符号化された動画と音声のデータ量が所定値に達したことに応じて、mdatボックスを一つずつ複数生成する。そして、各mdatボックスと共にmoov(moof)データを送信する。この際、ftyp→moov(moof)→mdatボックスの順にデータを送信する。そのため、受信側の装置では、受信したデータを順次復号して出力することができる。 In the present embodiment, when the encoded data is transmitted to the outside in accordance with the MP4 file format while encoding the moving image and the sound, the amount of data of the encoded moving image and the sound has reached a predetermined value. Depending on, multiple mdat boxes are created one by one. Then, moov (moof) data is transmitted together with each mdat box. At this time, data is transmitted in the order of ftyp → moov (moof) → mdat box. Therefore, the receiving device can sequentially decode and output the received data.
なお、本実施形態では、動画と音声を符号化し、MP4ファイル形式に従って記録、或いは送信する構成だったが、他の形式を用いることも可能である。例えば、動画データと音声データの前に、データサイズなどの管理情報を設ける構成であれば、同様に本発明を適用可能である。 In this embodiment, the moving image and the sound are encoded and recorded or transmitted according to the MP4 file format. However, other formats can be used. For example, the present invention can be similarly applied to any configuration in which management information such as data size is provided before moving image data and audio data.
また、本実施形態では、記録モードと送信モードのうち、選択されたモードに応じて第1のモード処理と第2のモード処理を切り替えていた。しかし、本実施形態はこれに限られるものではない。例えば、書き替え可能な記録媒体にデータを記録するためのファイルの生成では第1のモード処理を実行し、記録データの書き替えができないライトワンスの記録媒体にデータを記録するためのファイルの生成では第2のモード処理を実行する様にしてもよい。即ち、生成したファイルの出力先によって、ファイルの形式を、図2のファイル202に示すタイプと、ファイル203に示すタイプの何れかに決定する構成としてもよい。
In the present embodiment, the first mode process and the second mode process are switched according to the selected mode among the recording mode and the transmission mode. However, the present embodiment is not limited to this. For example, when generating a file for recording data on a rewritable recording medium, the first mode process is executed, and a file for recording data on a write-once recording medium in which the recording data cannot be rewritten is generated. Then, the second mode process may be executed. In other words, the format of the file may be determined as either the type shown in the
また、本実施形態では、メモリ103に記憶された未送信の符号化動画、音声データのデータ量が所定値Lに達したことに応じて(所定量毎に)mdatを分割していたが、moofのデータ量が所定値Mに達したことに応じてmdatを分割する構成としてもよい。
Further, in the present embodiment, the mdat is divided (for each predetermined amount) according to the fact that the data amount of the untransmitted encoded moving image and audio data stored in the
例えば、メモリ103において、moof用の記憶領域とmdat用の記憶領域を予め割り当てておく。そして、moofの記憶領域に記憶されたデータが所定値M(M<L)に達したことに応じて、mdatを分割し、送信する構成とする。この場合、mdatの記憶領域に記憶された未送信の符合化動画、音声データのデータ量が所定値Lに達していなくても、その時点でmdatを分割する。
For example, in the
第2の実施形態
次に、第2の実施形態を説明する。本実施形態では、記録されたMP4形式のデータを再生して、外部に送信する処理について説明する。本実施形態においても、図のフローチャートを用いて説明する処理は、制御部106が図示しないメモリに記憶されたプログラムをロードして実行することで各部を制御することにより実現される。
Second Embodiment Next, a second embodiment will be described. In the present embodiment, a process of reproducing recorded MP4 format data and transmitting it to the outside will be described. Also in the present embodiment, the processing described using the flowchart in the drawing is realized by the
図8は、第2の実施形態におけるデータ処理装置100の構成を示す図である。図8の装置では、図1の構成に対して変換部114が追加されている。そして、本実施形態では、記録媒体109から再生された動画データの1画面の画素数を変更し、変更された動画データを外部に送信することができる。図8の装置においても、第1の実施形態と同様に、図3、図4、図6の処理を実行することができる。以下、図8の装置において、記録媒体109に記録された動画ファイルの送信処理について説明する。
FIG. 8 is a diagram illustrating a configuration of the data processing device 100 according to the second embodiment. In the apparatus of FIG. 8, a conversion unit 114 is added to the configuration of FIG. In this embodiment, the number of pixels on one screen of the moving image data reproduced from the
ユーザは、記録媒体109に記録された動画ファイルを送信する前に、操作入力部107より、送信する動画の画素数を変更するか否かを設定することができる。本実施形態では、図4の処理により記録媒体109に記録される動画データの1画面あたりの画素数を第1の画素数とする。そして、ユーザは、記録媒体109に記録された動画の画素数を、第1の画素数よりも少ない第2の画素数に変換して外部に送信するように指示することができる。
The user can set whether or not to change the number of pixels of the moving image to be transmitted from the
図9は記録媒体109に記録された動画ファイルの装置外部への送信処理を示すフローチャートである。図9の処理は制御部106が各部を制御することにより実行される。
FIG. 9 is a flowchart showing processing for transmitting a moving image file recorded on the
ユーザにより送信する動画の画素数が設定され、動画ファイルの送信が指示されると処理が開始される。制御部106は、まず、送信する動画の画素数を判別する(S901)。送信する動画の画素数が、記録された動画と同じ第1の画素数であった場合、制御部106は、記録再生部108に対し、指定された動画ファイルを再生するように指示する。記録再生部108は、指定された動画ファイルを記録媒体109より順次読み出してメモリ103に記憶する。そして、制御部106は、外部IF110に対し、メモリ103に記憶された動画ファイルのデータを外部に送信するように指示する。外部IF110は、メモリ103に記憶された動画ファイルのデータを読み出して、順次ネットワーク112を介して外部装置113に送信する(S902)。
When the number of pixels of the moving image to be transmitted is set by the user and the transmission of the moving image file is instructed, the process is started. First, the
そして、操作入力部107より送信停止の指示を受けた場合、或いは再生中の動画ファイルの最後まで再生が完了した場合(S903)、制御部106は、記録再生部108による動画ファイルの再生を停止させる。同時に、外部IF110によるMP4ファイルの送信も停止させる(S904)。
When receiving an instruction to stop transmission from the
一方、S901において、送信する動画の画素数が第2の画素数であった場合、制御部106は、記録再生部108に対し、指定された動画ファイルを再生するように指示する。記録再生部108は、指定された動画ファイルを記録媒体109より順次読み出してメモリ103に記憶する(S905)。次に、ファイルデータ処理部104は、メモリ103に記憶されたMP4ファイルのデータをパース(parse(構文解析))しながら、再生された動画ファイルに含まれるmoovボックスのデータを検出する。そして、このmoov内のサンプルデータサイズなどの必要なデータを取得して制御部106に送る。制御部106は、ファイルデータ処理部104より送られたデータに基づいて、動画ファイルのデータを記録媒体109より順次読み出すように記録再生部108に指示する。また、制御部106は、mdatボックスの動画データと音声データを復号するように信号処理部102に指示する。信号処理部102は、メモリ103より符号化された動画データと音声データを読み出して復号し、メモリ103に記憶する(S906)。
On the other hand, when the number of pixels of the moving image to be transmitted is the second number of pixels in S901, the
制御部106は、変換部114に対し、復号された動画データの画素数を第2の画素数に変更するように指示する。変換部114は、メモリ103より復号された動画データの各フレームを順次読み出して、各フレームの画素数を第1の画素数から第2の画素数に変更する。そして、変換部114は、第2の画素数の動画データをメモリ103に記憶する(S907)。
The
次に、制御部106は、前述の第2のモード処理を実行し、メモリ103に記憶された第2の画素数の動画データと音声データをMP4ファイル形式に変換して、外部IF110より送信する(S908)。なお、第1の実施形態では、入力部101により得られた動画データと音声データを符号化して、MP4ファイル形式に変換して送信した。本実施形態では、入力部101からの動画データと音声データではなく、前述の様に、記録媒体109より再生され、変換部114により第2の画素数に変換された動画データと、再生された音声データを符号化する。そして、符号化された動画データと音声データとを、図6の処理によりMP4ファイル形式に変換し、外部IF110よりネットワーク112を介して外部装置113に送信する。
Next, the
この様に、記録媒体から再生された動画の画素数を変換し、再び符号化して送信する場合、送信対象のファイルの動画を全て符号化するまで、動画データのサイズが確定されない。 In this way, when the number of pixels of a moving image reproduced from a recording medium is converted, encoded and transmitted again, the size of the moving image data is not determined until all the moving images of the transmission target file are encoded.
そのため、本実施形態では、再生された動画の画素数を変換した後、再び符号化して外部に送信する場合には、所定量の動画と音声が符号化されたことに応じて、一つのmdatボックスを生成する。そして、このmdatボックスと共にmoov(moof)データを送信する。そのため、受信側の装置では、受信したデータを順次復号して出力することができる。 Therefore, in the present embodiment, when the number of pixels of the reproduced moving image is converted and then encoded again and transmitted to the outside, one mdat is determined according to the predetermined amount of moving image and audio being encoded. Create a box. And moov (moof) data is transmitted with this mdat box. Therefore, the receiving device can sequentially decode and output the received data.
本実施形態では、再生された符号化動画データに画素数の変換を行なって外部に送信することを例にして本件発明を説明したが、これに限るものではない。例えば、画素数の変換に代えて、またはそれに追加してフレームレートの変換(例えばフレームの間引き)を行なって送信する場合にも、再生データの復号、再符号化において本件発明を適用できるのは明らかである。 In the present embodiment, the present invention has been described by taking the example of converting the number of pixels of the reproduced encoded moving image data and transmitting it to the outside. However, the present invention is not limited to this. For example, the present invention can be applied to decoding and re-encoding of reproduced data even when frame rate conversion (for example, frame decimation) is performed instead of or in addition to the conversion of the number of pixels. it is obvious.
第3の実施形態
次に、第3の実施形態を説明する。第3の実施形態におけるデータ処理装置100は、図8と同様である。第3の実施形態においても、第1、第2の実施形態と同様に、図3、図4、図6、図9の処理を実行することができる。第3の実施形態では、動画ファイルを外部機器に送信する際に、外部機器が受信した動画ファイルを一時記憶するためのバッファメモリのサイズに基づいて、所定値Lを設定する。
Third Embodiment Next, a third embodiment will be described. The data processing apparatus 100 in the third embodiment is the same as that in FIG. Also in the third embodiment, similarly to the first and second embodiments, the processes of FIGS. 3, 4, 6, and 9 can be executed. In the third embodiment, when the moving image file is transmitted to the external device, the predetermined value L is set based on the size of the buffer memory for temporarily storing the moving image file received by the external device.
以下、第3の実施形態における動画ファイルの送信処理について説明する。本実施形態においても、図のフローチャートを用いて説明する処理は、制御部106が図示しないメモリに記憶されたプログラムをロードして実行することで各部を制御することにより実現される。
Hereinafter, the moving image file transmission processing in the third embodiment will be described. Also in the present embodiment, the processing described using the flowchart in the drawing is realized by the
図10は、第3の実施形態における、記録時の処理のフローチャートを示す図である。なお、図3と同様の処理については同一の番号を付加し、詳細な説明は省略する。記録開始の指示を受けたときに、送信モードが設定されていた場合、制御部106は、外部IF110により、外部装置113が受信した動画ファイルを一時記憶するためのバッファメモリのサイズを外部機器113に問い合わせる。外部IF110は、外部装置113より、バッファメモリのサイズに関する情報を受信し、制御部106に知らせる(S1001)。制御部106は、外部IF110により受信されたバッファメモリのサイズに基づき、送信モードで用いる所定値Lを、このバッファメモリのサイズよりも小さく設定する(S1002)。その後、前述の様に、第2のモード処理を実行する(S303)。
FIG. 10 is a diagram illustrating a flowchart of processing during recording in the third embodiment. Note that the same processes as those in FIG. 3 are denoted by the same reference numerals, and detailed description thereof is omitted. When the transmission mode is set when the recording start instruction is received, the
この様に、本実施形態においては、送信モードにおいて、動画ファイルの送信先の外部機器におけるバッファメモリのサイズを取得する。そして、このバッファメモリのサイズを超えない様に、所定値Lを設定する。 As described above, in the present embodiment, the size of the buffer memory in the external device to which the moving image file is transmitted is acquired in the transmission mode. A predetermined value L is set so as not to exceed the size of the buffer memory.
そのため、送信モードにおいて送信される動画ファイルの各mdatボックスのサイズが、受信側の外部装置113のバッファメモリのサイズよりも小さくなる。従って、外部114は、データ処理装置100から送信された動画ファイルを良好に受信し、デコードすることが可能となる。
Therefore, the size of each mdat box of the moving image file transmitted in the transmission mode is smaller than the size of the buffer memory of the
なお、本実施形態では、動画データや音声データを記録する装置について説明したが、入力された他の情報データを記録する装置に対しても同様に本発明を適用可能である。 In the present embodiment, an apparatus for recording moving image data and audio data has been described. However, the present invention is also applicable to an apparatus for recording other input information data.
その他の実施形態
前述した本発明の実施形態における記録装置を構成する各手段、並びに記録方法の各工程は、コンピュータのRAMやROMなどに記憶されたプログラムが動作することによって実現できる。このプログラム及び前記プログラムを記憶したコンピュータ読み取り可能な記憶媒体は本発明に含まれる。
Other Embodiments Each unit constituting the recording apparatus and each step of the recording method in 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 storage medium storing the program are included in the present invention.
また、本発明は、例えば、システム、装置、方法、プログラムもしくは記憶媒体等としての実施形態も可能であり、具体的には、複数の機器から構成されるシステムに適用してもよいし、また、一つの機器からなる装置に適用してもよい。 In addition, the present invention can be implemented as, for example, a system, apparatus, method, program, storage medium, or the like. Specifically, the present invention may be applied to a system including a plurality of devices. The present invention may be applied to an apparatus composed of a single device.
なお、本発明は、前述した実施形態の機能を実現するソフトウェアのプログラム(実施形態では図2、図5及び図7に示すフローチャートに対応したプログラム)を、システムまたは装置に直接、または遠隔から供給する場合も含む。そして、そのシステムまたは装置のコンピュータが前記供給されたプログラムコードを読み出して実行することによっても達成される場合を含む。 In the present invention, a software program (in the embodiment, a program corresponding to the flowcharts shown in FIGS. 2, 5 and 7) for realizing the functions of the above-described embodiments is directly or remotely supplied to the system or apparatus. This includes cases where This includes the case where the system or the computer of the apparatus is also achieved by reading and executing the supplied program code.
したがって、本発明の機能処理をコンピュータで実現するために、前記コンピュータにインストールされるプログラムコード自体も本発明を実現するものである。つまり、本発明は、本発明の機能処理を実現するためのコンピュータプログラム自体も含まれる。その場合、プログラムの機能を有していれば、オブジェクトコード、インタプリタにより実行されるプログラム、OSに供給するスクリプトデータ等の形態であってもよい。 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. 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)などもある。 Examples of the storage medium for supplying the program include a flexible disk, a hard disk, an optical disk, and a magneto-optical disk. Further, there are MO, CD-ROM, CD-R, CD-RW, magnetic tape, nonvolatile memory card, ROM, DVD (DVD-ROM, DVD-R) and the like.
その他、プログラムの供給方法としては、クライアントコンピュータのブラウザを用いてインターネットのホームページに接続する方法がある。そして、前記ホームページから本発明のコンピュータプログラムそのもの、もしくは圧縮され自動インストール機能を含むファイルをハードディスク等の記憶媒体にダウンロードすることによっても供給できる。 As another program supply method, there is a method of connecting to a homepage on the Internet using a browser of a client computer. It can also be supplied by downloading the computer program itself of the present invention or a compressed file including an automatic installation function from a homepage to a storage 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等の記憶媒体に格納してユーザに配布し、所定の条件をクリアしたユーザに対し、インターネットを介してホームページから暗号化を解く鍵情報をダウンロードさせる。そして、その鍵情報を使用することにより暗号化されたプログラムを実行してコンピュータにインストールさせて実現することも可能である。 As another method, the program of the present invention is encrypted, stored in a storage medium such as a CD-ROM, distributed to users, and encrypted from a homepage via the Internet to users who have cleared predetermined conditions. Download the key information to be solved. It is also possible to execute the encrypted program by using the key information and install the program on a computer.
また、コンピュータが、読み出したプログラムを実行することによって、前述した実施形態の機能が実現される。さらに、そのプログラムの指示に基づき、コンピュータ上で稼動しているOSなどが、実際の処理の一部または全部を行い、その処理によっても前述した実施形態の機能が実現され得る。 Further, the functions of the above-described embodiments are realized by the computer executing the read program. Furthermore, based on the instructions of the program, an OS or the like running on the computer performs part or all of the actual processing, and the functions of the above-described embodiments can be realized by the processing.
さらに、その他の方法として、まず記憶媒体から読み出されたプログラムが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれる。そして、そのプログラムの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によっても前述した実施形態の機能が実現される。 As another method, a program read from a storage medium is first written in a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer. Then, based on the instructions of the program, the CPU or the like provided in the function expansion board or function expansion unit performs part or all of the actual processing, and the functions of the above-described embodiments are realized by the processing.
Claims (4)
前記入力手段により入力された情報データを符号化する符号化手段と、
それぞれがサイズ情報を含む複数の格納単位を有する情報ファイルであって、前記複数の格納単位が、前記符号化手段により符号化された情報データを格納するための一つ以上の第1の格納単位と、前記第1の格納単位に格納された情報データに関する管理情報を格納するための一つ以上の第2の格納単位とを含む情報ファイルを生成する生成手段と、
前記生成手段により生成された情報ファイルを記録媒体に記録する記録手段と、
前記生成手段により生成された情報ファイルを外部装置に送信する送信手段と、
前記生成手段により生成された情報ファイルを前記記録手段により記録する記録モードと、前記生成手段により生成された情報ファイルを前記送信手段により送信する送信モードとを含む複数のモードの何れか一つを設定する設定手段と、
前記記録モードにおいて、前記第1の格納単位と前記第2の格納単位をそれぞれ一つだけ含む一つの前記情報ファイルを生成するように前記生成手段を制御し、前記送信モードにおいて、複数の前記第1の格納単位と複数の前記第2の格納単位とを含む前記情報ファイルを生成するように前記生成手段を制御する制御手段とを備え、
前記制御手段は、前記送信モードにおいて、前記入力された情報データを符号化しながら、前記符号化された情報データのデータ量が所定量となる毎に、前記符号化された情報データが格納された前記第1の格納単位を生成すると共に、生成した前記第1の格納単位に格納された情報データに対応した前記管理情報が格納された前記第2の格納単位を生成するように、前記符号化手段と前記生成手段とを制御し、前記生成された第1の格納単位に対応した前記第2の格納単位を送信し、次いで前記生成された第1の格納単位を送信するように前記送信手段を制御することを特徴とするデータ処理装置。 An input means for inputting information data;
Encoding means for encoding the information data input by the input means;
An information file having a plurality of storage units each including size information, wherein the plurality of storage units store one or more first storage units for storing information data encoded by the encoding means Generating means for generating an information file including management information relating to information data stored in the first storage unit, and one or more second storage units;
Recording means for recording the information file generated by the generating means on a recording medium;
Transmitting means for transmitting the information file generated by the generating means to an external device;
One of a plurality of modes including a recording mode in which the information file generated by the generating unit is recorded by the recording unit, and a transmission mode in which the information file generated by the generating unit is transmitted by the transmitting unit. Setting means for setting;
In the recording mode, the generation means is controlled to generate one information file that includes only one each of the first storage unit and the second storage unit. Control means for controlling the generation means so as to generate the information file including one storage unit and a plurality of the second storage units;
In the transmission mode, the control means stores the encoded information data each time the data amount of the encoded information data reaches a predetermined amount while encoding the input information data. Generating the first storage unit and generating the second storage unit in which the management information corresponding to the information data stored in the generated first storage unit is stored. And transmitting means for controlling the means and the generating means, transmitting the second storage unit corresponding to the generated first storage unit, and then transmitting the generated first storage unit. A data processing apparatus characterized by controlling the above.
前記入力手段により入力された情報データを符号化する符号化ステップと、
それぞれがサイズ情報を含む複数の格納単位を有する情報ファイルであって、前記複数の格納単位が、前記符号化ステップで符号化された情報データを格納するための一つ以上の第1の格納単位と、前記第1の格納単位に格納された情報データに関する管理情報を格納するための一つ以上の第2の格納単位とを含む情報ファイルを生成する生成ステップと、
前記生成ステップで生成された情報ファイルを記録媒体に記録する記録ステップと、
前記生成ステップで生成された情報ファイルを外部装置に送信する送信ステップと、
前記生成ステップで生成された情報ファイルを前記記録ステップにより記録する記録モードと、前記生成ステップで生成された情報ファイルを前記送信ステップにより送信する送信モードとを含む複数のモードの何れか一つを設定する設定ステップと、
前記記録モードにおいて、前記第1の格納単位と前記第2の格納単位をそれぞれ一つだけ含む一つの前記情報ファイルを生成するように前記生成ステップを制御し、前記送信モードにおいて、複数の前記第1の格納単位と複数の前記第2の格納単位とを含む前記情報ファイルを生成するように前記生成ステップを制御する制御ステップとを備え、
前記制御ステップは、前記送信モードにおいて、前記入力された情報データを符号化しながら、前記符号化された情報データのデータ量が所定量となる毎に、前記符号化された情報データが格納された前記第1の格納単位を生成すると共に、生成した前記第1の格納単位に格納された情報データに対応した前記管理情報が格納された前記第2の格納単位を生成するように、前記符号化ステップと前記生成ステップとを制御し、前記生成された第1の格納単位に対応した前記第2の格納単位を送信し、次いで前記生成された第1の格納単位を送信するように前記送信ステップを制御することを特徴とする制御方法。 In a control method of a data processing apparatus having an input means for inputting information data,
An encoding step of encoding the information data input by the input means;
An information file having a plurality of storage units each including size information, wherein the plurality of storage units store one or more first storage units for storing the information data encoded in the encoding step Generating an information file including one or more second storage units for storing management information related to information data stored in the first storage unit;
A recording step of recording the information file generated in the generating step on a recording medium;
A transmission step of transmitting the information file generated in the generation step to an external device;
One of a plurality of modes including a recording mode in which the information file generated in the generation step is recorded in the recording step, and a transmission mode in which the information file generated in the generation step is transmitted in the transmission step. A setting step to set;
In the recording mode, the generation step is controlled so as to generate one information file that includes only one each of the first storage unit and the second storage unit, and in the transmission mode, a plurality of the first storage units are controlled. A control step for controlling the generation step so as to generate the information file including one storage unit and a plurality of the second storage units;
In the transmission step, the encoded information data is stored each time the amount of the encoded information data reaches a predetermined amount while the input information data is encoded in the transmission mode . Generating the first storage unit and generating the second storage unit in which the management information corresponding to the information data stored in the generated first storage unit is stored. And transmitting the second storage unit corresponding to the generated first storage unit, and then transmitting the generated first storage unit. The control method characterized by controlling.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2013172145A JP5624658B2 (en) | 2013-08-22 | 2013-08-22 | Data processing apparatus, method, and control program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2013172145A JP5624658B2 (en) | 2013-08-22 | 2013-08-22 | Data processing apparatus, method, and control program |
Related Parent Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2011189397A Division JP2013051607A (en) | 2011-08-31 | 2011-08-31 | Data processing apparatus, method and control program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2013240111A JP2013240111A (en) | 2013-11-28 |
| JP5624658B2 true JP5624658B2 (en) | 2014-11-12 |
Family
ID=49764701
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2013172145A Expired - Fee Related JP5624658B2 (en) | 2013-08-22 | 2013-08-22 | Data processing apparatus, method, and control program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP5624658B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106463148B (en) * | 2014-05-30 | 2019-10-01 | 索尼公司 | Information processing device and information processing method |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP3891295B2 (en) * | 2003-07-09 | 2007-03-14 | ソニー株式会社 | Information processing apparatus and method, program recording medium, and program |
| JP2005348078A (en) * | 2004-06-02 | 2005-12-15 | Toshiba Corp | Recording device |
| JP4701021B2 (en) * | 2005-06-23 | 2011-06-15 | キヤノン株式会社 | Data processing apparatus and data processing method |
-
2013
- 2013-08-22 JP JP2013172145A patent/JP5624658B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2013240111A (en) | 2013-11-28 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR101868281B1 (en) | Information processing apparatus, information processing method, and computer-readable recording medium | |
| JP5189640B2 (en) | Video data playback system | |
| JP2012054788A (en) | Data file transfer device, control method therefor, program, and storage medium | |
| KR101515551B1 (en) | Data processing apparatus and control method thereof, and storage medium | |
| JP5930748B2 (en) | Recording apparatus, recording method, and recording system | |
| JP4737003B2 (en) | Editing apparatus, editing method, editing program, and editing system | |
| JP5624658B2 (en) | Data processing apparatus, method, and control program | |
| KR101544365B1 (en) | Recording apparatus | |
| JP4211818B2 (en) | Recording apparatus, recording method, and recording program | |
| JP2014036402A (en) | Recording device and recording method | |
| JP5848594B2 (en) | Recording device | |
| JP6066712B2 (en) | Recording apparatus, recording method, and program | |
| JP6112852B2 (en) | Recording apparatus, recording method, and program | |
| US9263090B2 (en) | Image processing apparatus, image processing method, and program | |
| JP2022095374A (en) | Video file generator, its generation method, and program | |
| JP2015159484A (en) | Recording device, recording method, program and imaging apparatus | |
| JP2020170998A (en) | Image processing apparatus, imaging apparatus, image processing method, and program | |
| JP7059436B2 (en) | Editing system | |
| JP2014060499A (en) | Image processing device, image processing method, and program | |
| JP6218489B2 (en) | Image processing device | |
| JP2009088739A (en) | Data transfer device | |
| JP5511739B2 (en) | Recording apparatus and recording method | |
| JP2014127747A (en) | Image processing apparatus | |
| JP5925020B2 (en) | Playback device | |
| JP2015035752A (en) | Image processing device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20140527 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20140529 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20140723 |
|
| 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: 20140828 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20140926 |
|
| R151 | Written notification of patent or utility model registration |
Ref document number: 5624658 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
| LAPS | Cancellation because of no payment of annual fees |