JP2014127806A - Information processing apparatus - Google Patents
Information processing apparatus Download PDFInfo
- Publication number
- JP2014127806A JP2014127806A JP2012282427A JP2012282427A JP2014127806A JP 2014127806 A JP2014127806 A JP 2014127806A JP 2012282427 A JP2012282427 A JP 2012282427A JP 2012282427 A JP2012282427 A JP 2012282427A JP 2014127806 A JP2014127806 A JP 2014127806A
- Authority
- JP
- Japan
- Prior art keywords
- replacement
- data
- range
- type
- file
- 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.)
- Granted
Links
- 230000010365 information processing Effects 0.000 title claims abstract description 57
- 238000004458 analytical method Methods 0.000 claims abstract description 181
- 239000000284 extract Substances 0.000 claims description 35
- 238000003672 processing method Methods 0.000 claims description 7
- 239000000463 material Substances 0.000 claims description 3
- 238000000034 method Methods 0.000 description 70
- 238000005192 partition Methods 0.000 description 14
- 238000010586 diagram Methods 0.000 description 6
- 238000004364 calculation method Methods 0.000 description 4
- 230000008676 import Effects 0.000 description 3
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
Images
Landscapes
- Television Signal Processing For Recording (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Management Or Editing Of Information On Record Carriers (AREA)
Abstract
Description
本発明は、情報処理装置にかかり、特に、ファイル内に格納されたデータの編集を行う情報処理装置に関する。 The present invention relates to an information processing apparatus, and more particularly to an information processing apparatus that edits data stored in a file.
映像データと音声データといったファイルに、メタデータ等を格納するMXF(Material Exchange Format)ファイルを用いた技術が知られている(例えば特許文献1参照)。例えば、MXFファイルは、図1に示すように、ヘッダ(Header Partition)とボディ(Body Partition)とフッタ(Footer Partition)とから構成され、ヘッダにメタデータ等を格納し、ボディに映像データと音声データ等の実データを格納する。 A technique using an MXF (Material Exchange Format) file that stores metadata or the like in files such as video data and audio data is known (see, for example, Patent Document 1). For example, as shown in FIG. 1, an MXF file is composed of a header (Header Partition), a body (Body Partition), and a footer (Footer Partition), and metadata is stored in the header, and video data and audio are stored in the body. Stores actual data such as data.
また、MXFファイルに格納される上述した各データは、KLV(Key-Length-Value)構造により表わされる。具体的には、KLV構造は、実データ(Value)と、当該実データのデータ長(Length)と、当該実データの種類を識別する識別情報(例えば識別タグ)(Key)と、により表わされる。 Each of the above-mentioned data stored in the MXF file is represented by a KLV (Key-Length-Value) structure. Specifically, the KLV structure is represented by actual data (Value), data length (Length) of the actual data, and identification information (for example, identification tag) (Key) that identifies the type of the actual data. .
ここで、上記したMXFファイルの技術では、ファイル上でのデータ保持の方法、つまりデータ構造を規定する複数種類のオペレーショナルパターンが存在する。例えば、「OP1a」のオペレーションパターンを有するMXFファイルは、映像データと音声データとを分割して交互に配置した構成を有している。このような構成を有するOP1aのMXFファイルでは、例えばMXFファイル内に格納された映像データだけを、他のMXFファイル内の映像データに差替えることが困難であった。 Here, in the above-described MXF file technology, there are a plurality of types of operational patterns that define the data holding method on the file, that is, the data structure. For example, an MXF file having an operation pattern of “OP1a” has a configuration in which video data and audio data are divided and arranged alternately. In the MX1 file of OP1a having such a configuration, for example, it is difficult to replace only video data stored in an MXF file with video data in another MXF file.
このため、例えばOP1aのMXFファイル内に格納された映像データを、他のMXFファイル内の映像データに差替える場合、編集装置等に映像データを取込み、データの差替えを行っていた。具体的には、編集装置は、差替え元と差替え先のMXFファイルをインポートして映像データに変換し、変換した映像データに基づく差替え処理を行い、差替え処理を行った映像データに基づいて新たにMXFファイルを生成(エクスポート)していた。 For this reason, for example, when video data stored in an MX1 file of OP1a is replaced with video data in another MXF file, the video data is taken into an editing device or the like and the data is replaced. Specifically, the editing device imports the replacement source and replacement destination MXF files, converts them into video data, performs replacement processing based on the converted video data, and newly adds the replacement based on the replaced video data. MXF file was generated (exported).
しかしながら、上記したMXFファイル内のデータの差替え処理では、MXFファイルのインポートとエクスポートとを行う必要があり、差替え処理に時間がかかるという問題があった。 However, in the above-described data replacement process in the MXF file, it is necessary to import and export the MXF file, and there is a problem that the replacement process takes time.
このため、本発明の目的は、MXFファイルの差し替え処理に時間がかかるという問題を解決することができる情報処理装置を提供させることにある。 Therefore, an object of the present invention is to provide an information processing apparatus that can solve the problem that it takes time to replace an MXF file.
上記目的を達成するため本発明の一態様における情報処理装置は、
実データと当該実データの種類とを対応付けた構造により表わされる所定単位のデータを複数含んで構成される差替え元ファイルおよび差替え先ファイルと、前記差替え元ファイルの差替え対象範囲である差替え元範囲および前記差替え先ファイルの差替え対象範囲である差替え先範囲とを含む差替え情報と、の入力を受け付ける入力受付手段と、
前記入力受付手段にて入力を受け付けた前記差替え情報に基づいて、前記差替え元範囲内および前記先替え先範囲内に格納された前記データに含まれる前記実データの種類をそれぞれ取得する解析手段と、
前記解析手段にて取得された前記差替え元範囲内に格納された前記データに含まれる前記実データの種類と前記差替え先範囲内に格納された前記データに含まれる前記実データの種類とが一致する場合に、前記差替え先範囲内に格納された前記データを、前記差替え元範囲内に格納された前記データに差替える差替え手段と、
を備えるという構成を取る。
In order to achieve the above object, an information processing apparatus according to one embodiment of the present invention provides:
Replacement source file and replacement destination file including a plurality of data of a predetermined unit represented by a structure in which actual data and the type of the actual data are associated, and a replacement source range that is a replacement target range of the replacement source file And replacement information including a replacement destination range that is a replacement target range of the replacement destination file;
Analysis means for acquiring the types of the actual data included in the data stored in the replacement source range and the replacement destination range, based on the replacement information received by the input receiving means; ,
The type of the actual data included in the data stored in the replacement source range acquired by the analyzing unit matches the type of the actual data included in the data stored in the replacement destination range. A replacement means for replacing the data stored in the replacement destination range with the data stored in the replacement source range;
It takes the composition of having.
また、本発明の他の形態である情報処理方法は、
実データと当該実データの種類とを対応付けた構造により表わされる所定単位のデータを複数含んで構成される差替え元ファイルおよび差替え先ファイルと、前記差替え元ファイルの差替え対象範囲である差替え元範囲および前記差替え先ファイルの差替え対象範囲である差替え先範囲とを含む差替え情報と、の入力を受け付け、
入力を受け付けた前記差替え情報に基づいて、前記差替え元範囲内および前記先替え先範囲内に格納された前記データに含まれる前記実データの種類をそれぞれ取得し、
取得した前記差替え元範囲内に格納された前記データに含まれる前記実データの種類と前記差替え先範囲内に格納された前記データに含まれる前記実データの種類とが一致する場合に、前記差替え先範囲内に格納された前記データを、前記差替え元範囲内に格納された前記データに差替える、
という構成を取る。
In addition, an information processing method according to another aspect of the present invention includes:
Replacement source file and replacement destination file including a plurality of data of a predetermined unit represented by a structure in which actual data and the type of the actual data are associated, and a replacement source range that is a replacement target range of the replacement source file And replacement information including a replacement destination range that is a replacement target range of the replacement destination file,
Based on the replacement information that has received the input, each of the types of the actual data included in the data stored in the replacement source range and the replacement destination range, respectively,
The replacement is performed when the type of the actual data included in the data stored in the acquired replacement source range matches the type of the actual data included in the data stored in the replacement destination range. Replacing the data stored in the destination range with the data stored in the replacement source range;
Take the configuration.
また、本発明の他の形態であるプログラムは、
情報処理装置に、
実データと当該実データの種類とを対応付けた構造により表わされる所定単位のデータを複数含んで構成される差替え元ファイルおよび差替え先ファイルと、前記差替え元ファイルの差替え対象範囲である差替え元範囲および前記差替え先ファイルの差替え対象範囲である差替え先範囲とを含む差替え情報と、の入力を受け付ける入力受付手段と、
前記入力受付手段にて入力を受け付けた前記差替え情報に基づいて、前記差替え元範囲内および前記先替え先範囲内に格納された前記データに含まれる前記実データの種類をそれぞれ取得する解析手段と、
前記解析手段にて取得された前記差替え元範囲内に格納された前記データに含まれる前記実データの種類と前記差替え先範囲内に格納された前記データに含まれる前記実データの種類とが一致する場合に、前記差替え先範囲内に格納された前記データを、前記差替え元範囲内に格納された前記データに差替える差替え手段と、
を実現させるためのプログラムである。
Moreover, the program which is the other form of this invention is:
In the information processing device,
Replacement source file and replacement destination file including a plurality of data of a predetermined unit represented by a structure in which actual data and the type of the actual data are associated, and a replacement source range that is a replacement target range of the replacement source file And replacement information including a replacement destination range that is a replacement target range of the replacement destination file;
Analysis means for acquiring the types of the actual data included in the data stored in the replacement source range and the replacement destination range, based on the replacement information received by the input receiving means; ,
The type of the actual data included in the data stored in the replacement source range acquired by the analyzing unit matches the type of the actual data included in the data stored in the replacement destination range. A replacement means for replacing the data stored in the replacement destination range with the data stored in the replacement source range;
It is a program for realizing.
本発明によれば、MXFファイルの差し替え処理を迅速に行うことができる。 According to the present invention, MXF file replacement processing can be performed quickly.
<第1実施形態>
まず、本発明の実施形態の理解を容易にするために、本発明に関連するMXFファイルのデータ構造について説明する。図1に示すように、MXFファイルは、Header Partiton(ヘッダ)とBody Partition(ボディ)とFooter Partition(フッタ)との3つのパーティションから構成される。ヘッダは、MXFファイルの最初のパーティションの開始符号であるHeader Partition Packと、MXFファイル内部で必要なメタデータを格納するHeader Metadataとを有している。さらにヘッダは、任意(Optional)にIndex TableとEssenceとを有する。ボディは、ボディのパーティションの開始符号であるBody Partition Packを有し、任意にHeader MetadataとIndex Tableと、MXFファイルに格納されるコンテンツ(映像データや音声データ等の実データ)を格納するEssenceとを有する。そして、フッタは、MXFファイルの最後のパーティションの開始符号であるFooter Partition Packを有し、任意にHeader MetadataとIndex TableとRandom Index Packとを有する。
<First Embodiment>
First, in order to facilitate understanding of the embodiment of the present invention, the data structure of the MXF file related to the present invention will be described. As shown in FIG. 1, the MXF file is composed of three partitions, a header part (header), a body partition (body), and a footer partition (footer). The header includes Header Partition Pack, which is the start code of the first partition of the MXF file, and Header Metadata that stores metadata required in the MXF file. Further, the header optionally has an Index Table and Essence. The body has Body Partition Pack, which is the start code of the partition of the body. Arbitrary header metadata and index table, and Essence to store contents (actual data such as video data and audio data) stored in MXF file Have The footer has a Footer Partition Pack that is the start code of the last partition of the MXF file, and optionally has Header Metadata, Index Table, and Random Index Pack.
Header Metadataは、図2に示すように、Primerと複数のMetadata(メタデータ)とを有する。メタデータは、例えば、構造メタデータと記述メタデータとを有する。構造メタデータは、MXFファイルの内部構造やEssence(エッセンス)に格納される映像(Video)データと音声(Audio)データのフォーマット等、技術的なデータを格納するためのメタデータである。この構造メタデータは、MXFファイルに一つだけ格納できる。また、記述メタデータは、コンテンツのタイトルやキーワードといったコンテンツの映像の内容等を示すメタデータである。 As shown in FIG. 2, Header Metadata includes Primer and a plurality of metadata (metadata). The metadata includes, for example, structure metadata and description metadata. The structural metadata is metadata for storing technical data such as the internal structure of the MXF file and the format of video (Video) data and audio (Audio) data stored in Essence. Only one structure metadata can be stored in the MXF file. The description metadata is metadata indicating the content of the content video such as the content title and keywords.
そして、図1に示すように、MXFファイルに格納される各データは、実データ(Value)と、当該実データのデータ長(Length)と、当該実データの種類を識別する識別情報(Key)と、を対応づけた構造により表わされるKLV構造を有する(以下、KLV構造を有するデータをKLVデータ(所定単位のデータ)と記載する)。つまり、MXFファイルは、複数のKLVデータを含んで構成される。図3は、KLVデータの例を示す図である。「Key」は、SMPTE(Society of Motion Picture and Television Engineers)377M等に準拠した16Byteのデータである。「Length」は、Valueに格納される実データのデータ長を示す4Byteのデータである。そして、「Value」は、映像データ、音声データ、映像データまたは音声データに関するメタデータ等の実データである。MXFファイルでは、Keyを検出し、KeyとValueの種類との対応関係を記載したテーブル等を参照することで、Valueに含まれる実データの種類を特定することができる。 As shown in FIG. 1, each data stored in the MXF file includes actual data (Value), a data length (Length) of the actual data, and identification information (Key) for identifying the type of the actual data. And a KLV structure represented by a structure in which these are associated with each other (hereinafter, data having the KLV structure is described as KLV data (data of a predetermined unit)). That is, the MXF file includes a plurality of KLV data. FIG. 3 is a diagram illustrating an example of KLV data. “Key” is 16-byte data conforming to SMPTE (Society of Motion Picture and Television Engineers) 377M. “Length” is 4-byte data indicating the data length of the actual data stored in Value. “Value” is actual data such as video data, audio data, video data, or metadata related to audio data. In the MXF file, the type of actual data included in Value can be specified by detecting Key and referring to a table or the like that describes the correspondence between Key and Value type.
次に、本発明の第1実施形態を、図4乃至図14を参照して説明する。図4乃至図11は、第1実施形態における情報処理装置の構成を説明するための図である。図12乃至図14は、情報処理装置の動作を説明するための図である。 Next, a first embodiment of the present invention will be described with reference to FIGS. 4 to 11 are diagrams for explaining the configuration of the information processing apparatus according to the first embodiment. 12 to 14 are diagrams for explaining the operation of the information processing apparatus.
[構成]
図4は、本発明の第1実施形態にかかる情報処理装置1の構成を示すブロック図である。図4に示すように、情報処理装置1は、演算部11と、メモリ12と、入力部13と、出力部14と、記憶部15と、を備えている。情報処理装置1は、差替え元になるMXFファイル(差替え元ファイル)に格納された映像データおよび/または音声データを、差替え先になるMXFファイル(差替え先ファイル)に格納された映像データおよび/または音声データにコピー(複製)して、映像データおよび/または音声データの差替え処理を行う。
[Constitution]
FIG. 4 is a block diagram showing the configuration of the
演算部11は、例えば、CPU(Central Processing Unit)により構成される。演算部11は、記憶部15に予め記憶されたプログラムを読み込み、当該プログラムを実行することにより、入力受付部21(入力受付手段)と、解析部22(解析手段)と、差替え部23(差替え手段)と、を有する。以下に、演算部11の各機能について説明する。
The
まず、入力受付部21は、入力部13を介して差替え元ファイルと差替え先ファイルとの入力を受け付ける。なお、入力受付部21は、記憶部15等の記憶装置から差替え元ファイルと差替え先ファイルとの入力を受け付けてもよいし、ネットワーク(図示せず)等を介して送信された差替え元ファイルと差替え先ファイルとの入力を受け付けてもよい。ここでは、図5に示すように、入力受付部21は、30フレーム(例えば1秒)の差替え元ファイル31と、300フレーム(例えば10秒)の差替え先ファイルと、の入力を受け付けたとする。また、差替え元ファイルと差替え先ファイルとの映像データのコーデックは「AVC-Intra 100Mbps」であり、音声データのコーデックは「8ch 16bits」であるとする。
First, the input receiving unit 21 receives input of a replacement source file and a replacement destination file via the
続いて、入力受付部21は、差替え情報の入力を受け付ける。差替え情報は、例えば、差替え元ファイルの差替え対象範囲(差替え元範囲)と、差替え先ファイルの差替え対象範囲(差替え先範囲)と、差替え対象のデータの種類(差替え対象種類情報)と、を含む情報である。差替え対象範囲は、例えば、差替え開始位置と差替えサイズとを示すタイムコード(時:分:秒:フレーム)により指定される。差替え対象のデータの種類は、例えば、映像データ、音声データ、映像データおよび音声データとの両方等である。なお、差替え対象のデータの種類に音声データが含まれる場合、入力受付部21は、差替え対象になる音声データのチャンネル番号(識別情報)の入力を受け付けることができる。ここでは、差替え元ファイル31の差替え対象範囲として、差替え元ファイルの先頭フレーム(0フレーム)から29フレームまでの領域を指定し、差替え先ファイル32の差替え対象範囲として、150フレームから179フレームまでの領域を指定したとする。また、差替え対象のデータの種類として映像データを取得したとする。
Subsequently, the input receiving unit 21 receives input of replacement information. The replacement information includes, for example, the replacement target range (replacement source range) of the replacement source file, the replacement target range (replacement destination range) of the replacement destination file, and the type of replacement target data (replacement target type information). Information. The replacement target range is specified by, for example, a time code (hour: minute: second: frame) indicating a replacement start position and a replacement size. The type of data to be replaced is, for example, video data, audio data, both video data and audio data, and the like. In addition, when audio data is included in the type of data to be replaced, the input receiving unit 21 can receive an input of a channel number (identification information) of audio data to be replaced. Here, the area from the first frame (0 frame) to 29 frames of the replacement source file is specified as the replacement target range of the
次に、解析部22は、メタデータを取得する。例えば、解析部22は、MXFファイル規格SMPTE377Mに従い、差替え元ファイル31のHeader Partitionに格納されたメタデータと、差替え先ファイル32のHeader Partitionに格納されたメタデータと、を取得(抽出)する。続いて、解析部22は、入力を受け付けた差替え情報に含まれる差替え元ファイルの差替え対象範囲が、差替え元ファイル内および差替え先ファイル内に存在するか否かを判定する。また、解析部22は、例えば、差替え対象のデータの種類が映像データを含む場合、メタデータから差替え元ファイルと差替え先ファイルとの映像コーデック情報(例えばAVC-Intra)を取得し、取得した映像コーデック情報が一致するか否かを判定する。さらに、解析部22は、例えば、差替え対象のデータの種類が音声データを含む場合、解析部22は、差替え元ファイルと差替え先ファイルとの音声コーデック情報(例えば、PCM(Pulse Code Modulation)(非圧縮)形式)をメタデータとして取得し、取得した音声コーデック情報が一致するか否かを判定する。つまり、解析部22は、差替え元範囲内および差替え先範囲内に格納されたKLVデータに含まれる「Key」をそれぞれ取得し、「Key」が一致するか否かを判定する。これにより、解析部22は、差替え元ファイル31と差替え先ファイル32とが差替え可能であるか否かを判定する。
Next, the
図5の例では、差替え元ファイル31の差替え対象範囲(0乃至29フレーム)と、差替え先ファイル32の差替え対象範囲(150乃至179フレーム)と、はそれぞれ存在する。また、差替え元ファイルと差替え先ファイルとの映像コーデックと音声コーデックとは共に同じであるとする。従って、解析部22は、差替え可能であると判定する。
In the example of FIG. 5, the replacement target range (0 to 29 frames) of the
差替え可能であると判定した場合(つまり「Key(実データの種類)」が一致する場合)、差替え部23は、差替え先範囲内に格納されたKLVデータを、差替え元範囲内に格納されたKLVデータに差替える差替え処理を行う。この差替え処理は、差替え対象に映像データを含む場合と、映像データを含まない場合と、で異なる処理を行う。これにより、差替え対象に応じて、最適な差替え処理を行うことができる。まず、差替え対象に映像データを含む場合の処理について説明する。
When it is determined that the replacement is possible (that is, when “Key (actual data type)” matches), the
まず、解析部22は、入力受付部21にて入力を受け付けた差替え情報に含まれる差替え元ファイル31の差替え対象範囲(差替え元範囲)と、差替え元ファイル31に含まれるIndexTable(図1)と、を参照して、差替え元ファイル31の差替え開始位置を特定する。差替え対象に映像データを含む場合、情報処理装置1は、少なくとも前記映像データを含む予め設定された差替え処理単位の差替え元範囲内のデータを、差替え処理用の差替え作業領域(メモリ12の所定の領域)に一度にまとめて読出して、差替え処理を行う。そして、解析部22は、上記した作業領域に読み出された差替え元ファイルの映像データの開始位置を差替え元ファイルの差替え開始位置(SP)として特定する。ここでは、差替え開始位置SPは、図6Aの映像データ51a「V0」の格納位置を示す。
First, the
続いて、解析部22は、予め設定された差替え処理単位(例えば5MB)のデータをメモリ12の差替え作業領域に読み出す。例えば、解析部22は、図6Aに示すように、映像データ51aから音声データ52iまでを、予め設定された差替え処理単位のデータとしてメモリ12の差替え作業領域に読み出す。また、この時、解析部22は、差替え開始位置SPを読み出したデータ分(例えば5MB)移動させる(例えば図6AのSP’)。つまり、移動後の差替え開始位置SP’は、音声データ52i「A11」の次に格納された音声データ52j「A12」(差替え作業領域に読み出されたデータの次のデータ)の格納位置を示す。そして、解析部22は、メモリ12に格納された未解析の差替え元ファイル31の先頭を解析開始メモリ位置(SMP)とし、映像データ51a(図7Aの「V0」)のKLVデータを取得(抽出)する。また、この時、解析部22は、解析開始メモリ位置SMPを抽出したKLVデータ分だけ移動させる。つまり、図7Aに示すように、移動後の解析開始メモリ位置SMP’は、音声データ52a「A1」の格納位置を示す。このように、解析部22は、差替え対象のデータの種類(差替え対象種類情報)に応じて予め設定された差替え処理単位ごとに差替え元範囲内に格納されたKLVデータを差替え作業領域に抽出する。
Subsequently, the
続いて、解析部22は、差替え作業領域から抽出した差替え元ファイル31のKLVデータの種類が差替え対象であるか否かを判定する。具体的には、解析部22は、抽出したKLVデータに含まれるデータの種類Keyが、差替え対象を示しているかを判定する。ここでは、差替え対象が「映像データ」であり、KLVデータとして映像データ51aを抽出しているので、KLVデータの種類が差替え対象であると判定する。
Subsequently, the
次に、解析部22は、入力受付部21にて入力を受け付けた差替え情報に含まれる差替え先ファイル32の差替え対象範囲と、差替え先ファイル32に含まれるIndex Tableと、を参照して、差替え先ファイル32の差替え開始位置を特定する。ここでは、図6Bに示すように、解析部22は、差替え先ファイル32の映像データ61a「V’0」の開始位置を差替え先ファイルの差替え開始位置DPとして特定する。
Next, the
次に、解析部22は、予め設定された差替え処理単位のデータをメモリ12の差替え作業領域に読み出す。例えば、解析部22は、図6Bに示すように、映像データ61aから音声データ62gまでを、差替え対象範囲としてメモリ12の差替え作業領域に読み出す(例えば図7A)。また、この時、解析部22は、差替え開始位置DPを読み出したデータ分移動させる。つまり、図6Bに示すように、移動後の差替え開始位置DP’は、音声データ62g「A’7」の次に格納された音声データ62h「A’8」の格納位置を示す。そして、解析部22は、メモリ12の差替え作業領域に格納された未解析の差替え先ファイル32の先頭を解析開始メモリ位置(DMP)とし、映像データ61a(図7Aの「V’0」)のKLVデータを取得(抽出)する。また、この時、解析部22は、解析開始メモリ位置DMPを抽出したKLVデータ分だけ移動させる。つまり、図7Aに示すように、移動後の解析開始メモリ位置DMP’は、音声データ62a「A’1」の格納位置を示す。このように、解析部22は、差替え対象のデータの種類に応じて予め設定された差替え処理単位ごとに差替え先範囲内に格納されたKLVデータを差替え作業領域に抽出する。
Next, the
続いて、解析部22は、差替え作業領域から抽出した差替え先ファイル32のKLVデータの種類(Key)が、差替え作業領域から抽出した差替え元ファイル31のKLVデータの種類と同じか否かを判定する。ここでは、差替え元ファイル31のKLVデータとして映像データ51aを抽出し、差替え先ファイル32のKLVデータとして映像データ61aを抽出するので、解析部22は、KLVデータの種類が同じであると判定する。
Subsequently, the
そして、差替え部23は、メモリ12の差替え作業領域から抽出した差替え先ファイル32の映像データ61a「V’0」(特定した差替え先範囲内に格納されたデータ)を、差替え作業領域から抽出した差替え元ファイル31の映像データ51a「V0」(特定した差替え元範囲内に格納されたデータ)に差替える(例えば図7B参照)。つまり、差替え部23は、差替え作業領域から抽出した差替え元ファイル31のKLVデータ(例えば映像データ51a「V0」)を、差替え作業領域から抽出した差替え先ファイル32のKLVデータ(例えば映像データ61a「V’0」)にコピーする。
Then, the
以上の処理を繰り返し行い、情報処理装置1は、差替え先ファイル32内のデータを、差替え元ファイル31内のデータに差替える。例えば、解析部22は、解析開始メモリ位置SMP(例えば図7AのSMP’)により示される次の差替え元ファイル31のKLVデータとして、音声データ52a「A1」を抽出する。ここでは、差替え対象は映像データであるので、音声データ52a「A1」を抽出した場合、解析部22は、差替え対象でないと判定する。差替え対象でないと判定した場合、解析部22は、次のKLVデータ(例えば音声データ52b「A2」)を抽出し、同様に、差替え対象であるか否かを判定する。この処理を繰り返すと、映像データ51b「V1」を抽出した場合に、解析部22は、差替え対象であると判定する。
By repeatedly performing the above processing, the
次に、解析部22は、解析開始メモリ位置DMP’により示される次の差替え先ファイル32のKLVデータとして、音声データ62a「A’1」を抽出する。ここでは、差替え元ファイル31のKLVデータの種類が映像データであるので、音声データ62a「A’1」を抽出した場合、解析部22は、差替え対象でないと判定する。差替え対象でないと判定した場合、解析部22は、次のKLVデータ(例えば音声データ62b「A’2」)を抽出し、同様に、差替え対象であるか否かを判定する。この処理を繰り返すと、図7の例では、解析部22は、音声データ62g「A’7」までを抽出する。しかし、音声データ62a「A’1」乃至62g「A’7」は、映像データではないので、解析部22は、差替え対象でないと判定する。
Next, the
このように、差替え作業領域に読み出したデータを全て解析した場合、解析部22は、差替え先ファイルの差替え開始位置DPを参照し、再度予め設定された差替え処理単位のデータを差替え作業領域に読み出す。ここでは、解析部22は、差替え開始位置DP’が音声データ62hの格納位置を示すので、例えば音声データ62h「A’8」から音声データ62n「A’16」までのデータを、予め設定された差替え処理単位のデータとしてメモリ12の差替え作業領域に読み出す。また、この時、解析部22は、差替え開始位置DPを音声データ62o「A’17」の格納位置に移動する。
As described above, when all the data read in the replacement work area is analyzed, the
そして、解析部22は、差替え作業領域の未解析の差替え先ファイル32の先頭を解析開始メモリ位置DMPとし、解析開始メモリ位置DMPに格納されたデータの抽出を行う。例えば、解析部22は、音声データ62h「A’8」の抽出を行う(例えば図8A参照)。そして、解析部22は、上述した処理と同様に、音声データ62h「A’8」が、映像データであるか否かを判定する。音声データ62h「A’8」は映像データではないので、解析部22は、次のKLVデータとして、映像データ61b「V’1」を抽出する。映像データ61b「V’1」は映像データであるので、解析部22は、差替え対象であると判定する。
Then, the
そして、差替え部23は、メモリ12の差替え作業領域から抽出した差替え先ファイル32の映像データ61b「V’1」を、差替え作業領域から抽出した差替え元ファイル31の映像データ51b「V1」に差替える(例えば図8B参照)。以上の処理を繰り返すことで、例えばMXFファイルに格納された映像データだけを迅速かつ確実に差替えることができる。
Then, the
また、差替え部23は、予め設定された容量(例えば1フレーム)のデータを差替えたか否かを判定する。図8Bの例では、150フレームと151フレームの映像データと(つまり1フレーム以上のデータ)が差替えられているので、差替え部23は、予め設定された容量(例えば1フレーム)のデータを差替えたと判定する。この場合、差替え部23は、書き出し開始位置WPにより示される領域のデータから順番に、記憶部15へ記憶する。ここでは、差替え作業領域に読み出された差替え先ファイル32の先頭を書き出し開始位置WPとし、先頭に格納された映像データ51a「V0」(図8B参照)から順番に、映像データ51b「V1」までを記憶部15へ記憶する。これにより、差替え処理後の差替え先ファイル32を記憶部15に記憶することができる。
Further, the
なお、演算部11は、差替え処理後のデータを記憶部15に記憶した後に、当該データが格納されたメモリ12の差替え作業領域を解放することができる。例えば、演算部11は、図6Aの差替え元ファイル31から読み出した図8Aの映像データ51a「V0」から音声データ52i「A11」と、図6Bの差替え先ファイル32から読出し、差替え処理を行った図8Bの映像データ51a「V0」から映像データ51b「V1」と、を差替え作業領域から解放する。これにより、メモリ12の使用効率を向上することができる。
The
そして、情報処理装置1は、上述した処理を、差替え元ファイル31の差替え対象範囲(0乃至29フレーム)と、差替え先ファイル32の差替え対象範囲(150乃至179フレーム)と、の間の全ての差替え処理が終了するまで繰り返す。これにより、情報処理装置1は、差替え元ファイルと差替え先ファイルとのインポートとエクスポートとを行う必要がなく、迅速に差替え処理を行うことができる。
Then, the
次に、差替え対象が映像データおよび音声データの両方である場合について説明する。なお、入力を受け付けた差替え元ファイル31(例えば図6A)と差替え先ファイル32(例えば図6B)とのそれぞれから、差替え作業領域に読み出す処理は、差替え対象が映像データである場合の処理と同様の処理であるので説明は省略する。ここでは、図7Aの例と同様に、差替え元ファイル31の映像データ51aから音声データ52iまでを、予め設定された差替え処理単位のデータとしてメモリ12の差替え作業領域に読み出すとともに、差替え先ファイル32の映像データ61aから音声データ62gまでを差替え作業領域に読み出すとする。
Next, a case where the replacement target is both video data and audio data will be described. Note that the process of reading out the replacement work area from each of the replacement source file 31 (for example, FIG. 6A) and the replacement destination file 32 (for example, FIG. 6B) that has received the input is the same as the process when the replacement target is video data. Since this is the process, the description is omitted. Here, as in the example of FIG. 7A, the
この場合、まず、解析部22は、未解析の差替え元ファイル31の先頭を解析開始メモリ位置SMPとし、映像データ51a(図9Aの「V0」)のKLVデータを取得(抽出)する。続いて、解析部22は、差替え作業領域から抽出した差替え元ファイル31のKLVデータの種類が差替え対象であるか否かを判定する。ここでは、差替え対象が「映像データおよび音声データ」であり、KLVデータとして映像データ51aを抽出しているので、KLVデータの種類が差替え対象であると判定する。
In this case, the
次に、解析部22は、未解析の差替え先ファイル32の先頭を解析開始メモリ位置DMPとし、映像データ61a(図9Aの「V’0」)のKLVデータを取得(抽出)する。続いて、解析部22は、差替え作業領域から抽出した差替え先ファイル32のKLVデータの種類が、差替え作業領域から抽出した差替え元ファイル31のKLVデータの種類と同じか否かを判定する。ここでは、差替え元ファイル31のKLVデータとして映像データ51aを抽出し、差替え先ファイル32のKLVデータとして映像データ61aを抽出するので、解析部22は、KLVデータの種類が同じであると判定する。
Next, the
そして、差替え部23は、メモリ12の差替え作業領域から抽出した差替え先ファイル32の映像データ61a「V’0」を、差替え作業領域から抽出した差替え元ファイル31の映像データ51a「V0」に差替える(例えば図9B参照)。
Then, the
次に、解析部22は、解析開始メモリ位置SMPにより示される次の差替え元ファイル31のKLVデータとして、音声データ52a「A1」を抽出する。ここでは、差替え対象が「映像データおよび音声データ」であるので、音声データ52a「A1」を抽出した場合に、解析部22は、差替え対象であると判定する。なお、差替え情報に音声データのチャンネル番号が含まれる場合、解析部22は、抽出した音声データ52が差替え情報に含まれる音声データのチャンネル番号か否かを判定する。
Next, the
次に、解析部22は、解析開始メモリ位置DMPにより示される次の差替え先ファイル32のKLVデータとして、音声データ62a「A’1」を抽出する。続いて、解析部22は、差替え作業領域から抽出した差替え先ファイル32のKLVデータの種類が、差替え作業領域から抽出した差替え元ファイル31のKLVデータの種類と同じか否かを判定する。ここでは、差替え元ファイル31のKLVデータとして音声データ52a「A1」を抽出し、差替え先ファイル32のKLVデータとして音声データ62a「A’1」を抽出するので、解析部22は、KLVデータの種類が同じであると判定する。
Next, the
そして、差替え部23は、メモリ12の差替え作業領域から抽出した差替え先ファイル32の音声データ62a「A’1」を、差替え作業領域から抽出した差替え元ファイル31の音声データ52a「A1」に差替える(例えば図9B参照)。そして、情報処理装置1は、上述した差替え処理を繰り返し、差替え先ファイル32の音声データ62b「A’2」乃至62g「A’7」を、差替え元ファイル31の音声データ52b「A2」乃至52g「A7」に差替える(例えば図9参照)。
Then, the
次に、解析部22は、解析開始メモリ位置SMPにより示される次の差替え元ファイル31のKLVデータとして、音声データ52h「A8」を抽出し、差替え対象であると判定する。続いて、解析部22は、解析開始メモリ位置DMPを参照するが、差替え作業領域に読み出した差替え先ファイル32のデータは全て解析されたので、参照先に格納されたデータが存在しない(次の差替え先ファイル32のKLVデータがない)と判定する。この場合、解析部22は、例えば図6Bの差替え先ファイルの差替え開始位置DPを参照し、再度予め設定された差替え処理単位のデータを差替え作業領域に読み出す。ここでは、解析部22は、差替え開始位置DPが音声データ62hの格納位置を示すので、例えば音声データ62h「A’8」から音声データ62n「A’16」までのデータを、予め設定された差替え処理単位のデータとしてメモリ12の差替え作業領域に読み出す(例えば図10A参照)。また、この時、解析部22は、差替え開始位置DPを音声データ62o「A’17」の格納位置に移動する。
Next, the
そして、解析部22は、差替え作業領域の未解析の差替え先ファイル32の先頭を解析開始メモリ位置DMPとし、解析開始メモリ位置DMPに格納されたデータの抽出を行う。例えば、解析部22は、音声データ62h「A’8」の抽出を行う(例えば図10A参照)。そして、解析部22は、上述した処理と同様に、音声データ62h「A’8」が、差替え作業領域から抽出した差替え元ファイル31のKLVデータ(つまり音声データ52h「A8」)の種類と同じか否かを判定する。ここでは、音声データ52h「A8」と、音声データ62h「A’8」と、は共に音声データであるので、解析部22は、KLVデータの種類が同じであると判定する。
Then, the
そして、差替え部23は、メモリ12の差替え作業領域から抽出した差替え先ファイル32の音声データ62h「A’8」を、差替え作業領域から抽出した差替え元ファイル31の音声データ52h「A8」に差替える(例えば図10B参照)。そして、情報処理装置1は、上述した差替え処理を繰り返し、差替え先ファイル32の映像データ61b「V’1」と音声データ62i「A’11」とのそれぞれを、差替え元ファイル31の映像データ51b「V1」と音声データ52i「A11」に差替える(例えば図10参照)。
Then, the
以降、差替え対象が「映像データ」である場合と同様に、差替え部23は、差替え作業領域に格納されたデータを記憶部15に記憶する。そして、情報処理装置1は、上述した処理を、差替え元ファイル31の差替え対象範囲(0乃至29フレーム)と、差替え先ファイル32の差替え対象範囲(150乃至179フレーム)と、の間の全ての差替え処理が終了するまで繰り返す。
Thereafter, the
次に、音声データだけを差替える場合の処理を説明する。なお、具体的な処理は、上述した映像データだけを差替える場合と、映像データおよび音声データの両方を差替える場合と、同様であるので簡単に説明する。音声データを差替える場合、まず、解析部22は、全フレームの音声データの開始位置を特定する。具体的には、解析部22は、差替え元ファイル31と差替え先ファイル32のそれぞれから、差替えを行うフレーム数分(例えば30フレーム)の音声データの開始位置を特定する。
Next, processing when only audio data is replaced will be described. The specific processing is similar to the case where only the video data described above is replaced and the case where both video data and audio data are replaced. When replacing audio data, first, the
次に、解析部22は、特定した各フレームの音声データの開始位置を参照して、データの種類が音声データであるKLVデータをメモリ12の差替え作業領域に読み出す。なお、差替え情報に音声データのチャンネル番号が含まれる場合、解析部22は、差替え情報に含まれる音声データのチャンネル番号により示される音声データ52(KLVデータ)を差替え作業領域に読み出す。例えば、図11Aに示すように、解析部22は、差替え元ファイル31の0フレームの音声データ52a「A1」のKLVデータを差替え作業領域に読み出す。続いて、解析部22は、差替え先ファイル32の150フレームの音声データ62a「A’1」のKLVデータをメモリ12に読み出す(図11A)。そして、差替え部23は、KLVデータを差替える(図11B)。つまり、差替え部23は、音声データ52a「A1」を、音声データ62a「A’1」にコピーして差替える。
Next, the
続いて、解析部22は、フレーム内の全てのKLVデータを読み出したか否かを判定し、フレーム内の全てのKLVデータを読み出していないと判定した場合に、フレーム内に格納された、データの種類が音声データであるKLVデータを順番に読み出す。例えば、解析部22は、次の音声データとして音声データ52b「A2」と音声データ62b「A’2」とのそれぞれを読み出し(図11C)、KLVデータの差替えを行う。以上の処理を繰り返すことにより、例えば図11Dに示すように、差替え先ファイル32に格納された音声データ62a「A’1」乃至62h「A’8」のそれぞれが、音声データ52a「A1」乃至52h「A8」のそれぞれに差替えられる。
Subsequently, the
そして、解析部22は、フレーム内の全てのKLVデータを読み出したと判定した場合、例えば図11Dのように、解析部22が、差替え先ファイル32に格納された音声データ62a「A’1」乃至62h「A’8」のそれぞれを、音声データ52a「A1」乃至52h「A8」のそれぞれに差替えた場合、差替えたKLVデータを記憶部15に記憶する。つまり、差替え部23は、メモリ12の差替え作業領域に読み出された1フレーム分の差替え先ファイルのデータを差替え後のデータとして記憶部15に記憶する。なお、メモリ12に格納されたデータを記憶部15に記憶する処理は、1フレーム毎に限られない。
If the
そして、解析部22は、全てのフレーム内のKLVデータ(音声データ)を差替え作業領域に読み出したか否かを判定し、全てのフレーム内のKLVデータを読み出していないと判定した場合に、次のフレーム(例えば差替え元ファイルの1フレームと差替え先ファイルの151フレーム)に対して同様の処理を繰り返す。一方、全てのフレーム内のKLVデータを読み出したと判定した場合、音声データの差替え処理は終了する。このように、差替え対象に応じて差替え処理の手法を変更するので、迅速かつ効率的に差替え処理を行うことができる。
Then, the
[動作]
次に、図12乃至図14を参照して、情報処理装置1の動作について説明する。図12は、差替え処理を説明するフローチャートである。図13は、映像データ差替え処理を説明するフローチャートである。図14は、音声データ差替え処理を説明するフローチャートである。
[Operation]
Next, the operation of the
図12の差替え処理では、まず、入力受付部21は、差替え元ファイルと差替え先ファイルとの入力を受け付ける(ステップS1)。例えば、入力受付部21は、入力部13を介して差替え元になるMXFファイルと、差替え先になるMXFファイルと、の入力を受け付ける。ここでは、入力受付部21は、30フレーム(例えば1秒)の差替え元ファイルと、300フレーム(例えば10秒)の差替え先ファイルと、の入力を受け付けたとする。また、差替え元ファイルと差替え先ファイルとの映像データのコーデックは「AVC-Intra 100Mbps」であり、音声データのコーデックは「8ch 16bits」であるとする。
In the replacement process of FIG. 12, first, the input receiving unit 21 receives input of a replacement source file and a replacement destination file (step S1). For example, the input receiving unit 21 receives input of an MXF file that is a replacement source and an MXF file that is a replacement destination via the
続いて、入力受付部21は、差替え情報の入力を受け付ける(ステップS2)。差替え情報は、例えば、差替え元ファイルの差替え対象範囲と、差替え先ファイルの差替え対象範囲と、差替え対象のデータの種類と、を含む情報である。差替え対象範囲は、例えば、差替え開始位置と差替えサイズとを示すタイムコード(時:分:秒:フレーム)により指定される。差替え対象のデータの種類は、例えば、映像データ、音声データ、映像データと音声データ等である。ここでは、差替え元ファイルの差替え対象範囲として、差替え元ファイルの先頭フレーム(0フレーム)から29フレームまでを取得し、差替え先ファイルの差替え対象範囲として、150フレームから179フレームまでを取得したとする。また、差替え対象のデータの種類として映像データを取得したとする。 Subsequently, the input receiving unit 21 receives input of replacement information (step S2). The replacement information is information including, for example, the replacement target range of the replacement source file, the replacement target range of the replacement destination file, and the type of data to be replaced. The replacement target range is specified by, for example, a time code (hour: minute: second: frame) indicating a replacement start position and a replacement size. The types of data to be replaced are, for example, video data, audio data, video data and audio data, and the like. Here, it is assumed that the first frame (0 frame) to 29 frames of the replacement source file are acquired as the replacement target range of the replacement source file, and the 150th frame to 179th frame are acquired as the replacement target range of the replacement destination file. . Also, assume that video data is acquired as the type of data to be replaced.
次に、解析部22は、メタデータを取得する(ステップS3)。例えば、解析部22は、差替え元ファイル31と差替え先ファイル32とのそれぞれからメタデータを取得(抽出)する。続いて、解析部22は、差替え可能か否かを判定する(ステップS4)。例えば、解析部22は、ステップS2の処理にて入力を受け付けた差替え情報に含まれる差替え元ファイルの差替え対象範囲が、ステップS1の処理にて入力を受け付けた差替え元ファイル内に存在するか否かを判定する。また、同様に、解析部22は、差替え先ファイルの差替え対象範囲が、差替え先ファイル内に存在するか否かを判定する。さらに、例えば、差替え対象のデータの種類が映像データを含む場合、解析部22は、差替え元ファイルと差替え先ファイルとの映像コーデック情報(例えばAVC-Intra)をメタデータとして取得し、取得した映像コーデック情報が一致するか否かを判定する。さらにまた、例えば、差替え対象のデータの種類が音声データを含む場合、解析部22は、差替え元ファイルと差替え先ファイルとの音声コーデック情報(例えば、PCM形式)をメタデータとして取得し、取得した音声コーデック情報が一致するか否かを判定する。
Next, the
ステップS4の処理にて差替え可能でないと判定した場合(ステップS4:No)、図12の差替え処理は終了する。一方、差替え可能であると判定した場合(ステップS4:Yes)、処理はステップS5に進む。ここでは、図5に示すように、差替え元ファイルの差替え対象範囲(0乃至29フレーム)と、差替え先ファイルの差替え対象範囲(150乃至179フレーム)と、が存在する。また、上記したように、差替え元ファイルと差替え先ファイルとの映像コーデックと音声コーデックとは共に同じである。従って、解析部22は、ステップS4の処理にて「Yes」と判定する。
If it is determined that the replacement is not possible in the process of step S4 (step S4: No), the replacement process of FIG. On the other hand, if it is determined that the replacement is possible (step S4: Yes), the process proceeds to step S5. Here, as shown in FIG. 5, there are a replacement target range (0 to 29 frames) of the replacement source file and a replacement target range (150 to 179 frames) of the replacement destination file. As described above, the video codec and audio codec of the replacement source file and the replacement destination file are the same. Therefore, the
ステップS4の処理にて差替え可能であると判定した場合(ステップS4:Yes)、解析部22は、差替え対象に映像データが含まれるか否かを判定する(ステップS5)。差替え対象に映像データが含まれていると判定した場合(ステップS5:Yes)、図13の映像データ差替え処理を行う(ステップS6)。一方、差替え対象に映像データが含まれていないと判定した場合(ステップS5:No)、ここでは差替え対象に音声データだけが含まれている場合、図14の音声データ差替え処理を行う(ステップS7)。ここでは、ステップS2の処理にて差替え対象として「映像データ」を取得するので、処理はステップS6に進む。図13を参照して、映像データ差替え処理について説明する。
If it is determined in step S4 that the replacement is possible (step S4: Yes), the
図13は、映像データ差替え処理を説明するためのフローチャートである。映像データ差替え処理では、まず、解析部22は、差替え元ファイルの差替え開始位置を特定する(ステップS21)。例えば、解析部22は、図12のステップS2の処理にて入力を受け付けた差替え情報に含まれる差替え元ファイル31の差替え対象範囲(差替え元範囲)と、ステップS1の処理にて入力を受け付けた差替え元ファイル31に含まれるIndexTable部と、を参照して、差替え元ファイルの差替え開始位置を特定する。映像データを差替える場合、または、映像データと音声データとの両方を差替える場合、情報処理装置1は、差替え元範囲内の予め設定された差替え処理単位のデータを連続的に読出して、差替えを行う。ここでは、解析部22は、差替え元ファイルの映像データ(例えば映像データ51a「V1」)の開始位置(SP)を差替え元ファイルの差替え開始位置として特定する。
FIG. 13 is a flowchart for explaining the video data replacement process. In the video data replacement process, first, the
続いて、解析部22は、予め設定された差替え処理単位(例えば5MB)のデータをメモリ12の差替え作業領域に読み出す(ステップS22)。例えば、解析部22は、映像データ51aから音声データ52iまでのデータを、差替え処理単位のデータとしてメモリ12の差替え作業領域に読み出す。また、この時、解析部22は、開始位置SPを読み出したデータ分(例えば5MB)移動させる。そして、解析部22は、差替え元ファイル31のKLVデータを抽出する(ステップS23)。ここでは、解析部22は、差替え元ファイルの読み出したメモリ12の差替え作業領域の先頭を解析開始メモリ位置(SMP)とし、映像データ51a「V1」を構成するKLVデータを抽出する。また、この時、解析部22は、解析開始メモリ位置SMPを読み出したKLVデータ分だけ移動させる。
Subsequently, the
続いて、解析部22は、ステップS23の処理にて抽出したKLVデータの種類が差替え対象であるか否かを判定する(ステップS24)。具体的には、解析部22は、KLVデータに含まれるデータの種類Keyが、差替え対象(映像データまたは音声データ)を示しているかを判定する。ここでは、差替え対象が「映像データ」であり、KLVデータとして映像データ51a「V1」を抽出しているので、ステップS24の処理にて「Yes」と判定し、処理はステップS26に進む。
Subsequently, the
一方、ステップS24において、差替え対象でないと判定した場合(ステップS24:No)、例えば、KLVデータとして音声データ52a「A1」を抽出した場合、解析部22は、次の差替え元ファイル31のKLVデータがあるか否かを判定する(ステップS25)。次の差替え元ファイル31のKLVデータがあると判定した場合(ステップS25:Yes)、処理はステップS23に戻り、次の差替え元ファイル31のKLVデータ(例えば音声データ52b「A2」のKLVデータ)を抽出し、同様の処理を繰り返す。
On the other hand, when it is determined in step S24 that it is not a replacement target (step S24: No), for example, when the
一方、ステップS25において、次の差替え元ファイル31のKLVデータがないと判定された場合(ステップS25:No)、例えば、ステップS23の処理にて抽出したKLVデータが音声データ52iである場合、処理はステップS22に戻り、次の差替え元範囲が読み出される。例えば、解析部22は、音声データ52jから5MBのデータをメモリ12の差替え作業領域に読み出し、同様の処理を繰り返す。
On the other hand, if it is determined in step S25 that there is no KLV data of the next replacement source file 31 (step S25: No), for example, if the KLV data extracted in the process of step S23 is the
そして、ステップS24において、KLVデータの種類が差替え対象であると判定した場合(ステップS24:Yes)、解析部22は、差替え先ファイルの差替え開始位置を特定する(ステップS26)。例えば、解析部22は、図12のステップS2の処理にて入力を受け付けた差替え情報に含まれる差替え先ファイルの差替え対象範囲と、ステップS1の処理にて入力を受け付けた差替え先ファイルに含まれるIndexTable部と、を参照して、差替え先ファイルの差替え開始位置を特定する。ここでは、解析部22は、差替え先ファイルの映像データ(例えば映像データ61a「V’1」)の開始位置(DP)を差替え先ファイルの差替え開始位置として特定する。
If it is determined in step S24 that the type of KLV data is a replacement target (step S24: Yes), the
次に、解析部22は、予め設定された差替え処理単位のデータをメモリ12の差替え作業領域に読み出す(ステップS27)。例えば、解析部22は、記憶部15に記憶された映像データ61a「V’1」から音声データ62g「A’7」までのデータを、差替え処理単位のデータとしてメモリ12の差替え作業領域に読み出す。また、この時、解析部22は、開始位置DPを読み出したデータ分移動させる。そして、解析部22は、差替え先ファイル32のKLVデータを抽出する(ステップS28)。ここでは、解析部22は、差替え先ファイルの読み出したメモリ12の差替え作業領域の先頭を解析開始メモリ位置(DMP)とし、映像データ61a「V’1」を構成するKLVデータを抽出する。また、この時、解析部22は、解析開始メモリ位置DMPを読み出したKLVデータ分だけ移動させる。
Next, the
続いて、解析部22は、ステップS28の処理にて抽出したKLVデータの種類(Key)が、ステップS23の処理にて抽出したKLVデータの種類と同じか否かを判定する(ステップS29)。ここでは、ステップS28の処理にて抽出した差替え対象が「映像データ」であり、KLVデータとして映像データ51a「V’1」を抽出しているので、ステップS29の処理にて「Yes」と判定し、処理はステップS31に進む。
Subsequently, the
一方、ステップS29において、KLVデータの種類が同じでないと判定した場合(ステップS29:No)、例えば、KLVデータとして音声データ62aを抽出した場合、解析部22は、次の差替え元ファイル31のKLVデータがあるか否かを判定する(ステップS30)。次の差替え元ファイル31のKLVデータがあると判定した場合(ステップS30:Yes)、処理はステップS28に戻り、次の差替え元ファイル31のKLVデータ(例えば音声データ62b「A’2」のKLVデータ)を読み出し、同様の処理を繰り返す。
On the other hand, when it is determined in step S29 that the types of the KLV data are not the same (step S29: No), for example, when the
一方、ステップS30において、次の差替え元ファイル31のKLVデータがないと判定された場合(ステップS30:No)、例えば、ステップS28の処理にて抽出したKLVデータが音声データ52g「A7」である場合、処理はステップS27に戻り、次の差替え元範囲が読み出される。例えば、解析部22は、映像データ61b「V’2」から5MBのデータをメモリ12に読み出し、同様の処理を繰り返す。
On the other hand, if it is determined in step S30 that there is no KLV data of the next replacement source file 31 (step S30: No), for example, the KLV data extracted in the process of step S28 is the
そして、ステップS29において、KLVデータの種類が同じであると判定した場合(ステップS29:Yes)、差替え部23は、KLVデータを差替える(ステップS31)。例えば、差替え部23は、メモリ12の差替え作業領域に抽出された差替え先ファイルのKLVデータである映像データ61a「V’1」を、差替え作業領域に抽出された差替え元ファイルのKLVデータである映像データ51a「V1」に差替える。つまり、差替え部23は、メモリ12に読み出された差替え元ファイルのKLVデータを、メモリ12に読み出された差替え先ファイルのKLVデータにコピーして、差替える。
If it is determined in step S29 that the types of KLV data are the same (step S29: Yes), the
次に、解析部22は、予め設定されたフレームサイズ(例えば1フレーム)のデータを差替えたか否かを判定する(ステップS32)。まだ、予め設定されたフレームサイズのデータを差替えていないと判定した場合(ステップS32:No)、処理はステップS22に戻り、それ以降の処理を繰り返す。
Next, the
一方、予め設定されたフレームサイズのデータを差替えたと判定した場合(ステップS32:Yes)、差替え部23は、差替えたデータを記憶部15に記憶する(ステップS33)。つまり、差替え部23は、メモリ12に格納された差替え先ファイルのデータを差替え後のデータとして記憶部15に記憶する。
On the other hand, when it is determined that the data of the preset frame size has been replaced (step S32: Yes), the
次に、解析部22は、全ての差替え元データを差替えたか否かを判定する(ステップS34)。全ての差替え元データを差替えていないと判定した場合(ステップS34:No)、処理はステップS22に戻り、それ以降の処理が繰り返される。一方、全ての差替え元データを差替えたと判定した場合(ステップS34:Yes)、映像データの差替え処理は終了する。
Next, the
次に、図14を参照して、音声データ差替え処理を説明する。音声データ差替え処理では、まず、解析部22は、全フレームの音声データの開始位置を特定する(ステップS51)。具体的には、解析部22は、差替え元ファイルと差替え先ファイルのそれぞれから、差替えを行うフレーム数分の音声データの開始位置を特定する。
Next, the audio data replacement process will be described with reference to FIG. In the voice data replacement process, first, the
次に、解析部22は、差替え元ファイルの所定のフレームからKLVデータを読み出す(ステップS52)。つまり、解析部22は、ステップS51の処理にて特定した各フレームの音声データの開始位置を参照して、データの種類が音声データであるKLVデータをメモリ12の差替え作業領域に読み出す。例えば、解析部22は、0フレームの音声データ52a「A1」のKLVデータをメモリ12の差替え作業領域に読み出す。
Next, the
続いて、解析部22は、ステップS52の処理と同様に、差替え先ファイルの所定のフレームからKLVデータを読み出す(ステップS53)。例えば、解析部22は、150フレームの音声データ62aのKLVデータをメモリ12の差替え作業領域に読み出す。そして、差替え部23は、KLVデータを差替える(ステップS54)。つまり、差替え部23は、ステップS52の処理にて読み出したKLVデータ(音声データ52a「A1」)を、ステップS53の処理にて読み出したKLVデータ(音声データ62a「A’1」)にコピーする。
Subsequently, the
続いて、解析部22は、フレーム内の全てのKLVデータを読み出したか否かを判定する(ステップS55)。フレーム内の全てのKLVデータを読み出していないと判定した場合(ステップS55:No)、処理はステップS52に戻り、フレーム内に格納された、データの種類が音声データであるKLVデータが順番に差替え作業領域に読み出される。例えば、解析部22は、次の音声データとして音声データ52b「A2」と音声データ62b「A’2」とのそれぞれを読み出し、KLVデータの差替えを行う。
Subsequently, the
一方、フレーム内の全てのKLVデータを読み出したと判定した場合(ステップS55:Yes)、例えば、解析部22が、音声データ52a「A1」乃至52h「A7」のそれぞれと、音声データ62a「A’1」乃至62h「A’7」のそれぞれと、を読み出した場合、処理はステップS56に進む。そして、差替え部23は、差替えたKLVデータを記憶部15に記憶する(ステップS56)。つまり、差替え部23は、メモリ12の差替え作業領域に格納された1フレーム分の差替え先ファイルのデータを差替え後のデータとして記憶部15に記憶する。
On the other hand, when it is determined that all the KLV data in the frame has been read (step S55: Yes), for example, the
そして、解析部22は、全てのフレーム内のKLVデータ(音声データ)を読み出したか否かを判定する(ステップS57)。全てのフレーム内のKLVデータを読み出していないと判定した場合(ステップS57:No)、処理はステップS52に戻り、次のフレーム(例えば差替え元ファイルの1フレームと差替え先ファイルの151フレーム)に対して同様の処理を繰り返す。一方、全てのフレーム内のKLVデータを読み出したと判定した場合(ステップS57:Yes)、音声データの差替え処理は終了する。
Then, the
<第2実施形態>
次に、本発明の第2実施形態にかかる情報処理装置について図15を参照して説明する。
第2実施形態に係る情報処理装置101は、
ファイル内に格納された各データが、実データと当該実データの種類とを対応付けた構造により表わされる差替え元ファイルおよび差替え先ファイルと、差替え元ファイルの差替え対象範囲である差替え元範囲および差替え先ファイルの差替え対象範囲である差替え先範囲とを含む差替え情報と、の入力を受け付ける入力受付部111(入力受付手段)と、
入力受付部111にて入力を受け付けた差替え情報に基づいて、差替え元範囲内および先替え先範囲内に格納された実データに対応付けられた実データの種類を取得する解析部112(解析手段)と、
解析部112にて取得された差替え元範囲内の実データの種類と差替え先範囲内の実データの種類とが一致する場合に、差替え先範囲内に格納されたデータを、当該データと実データの種類が一致する差替え元範囲内に格納されたデータに差替える差替え部113(差替え手段)と、
を備える。
Second Embodiment
Next, an information processing apparatus according to the second embodiment of the present invention will be described with reference to FIG.
The
Each data stored in the file is replaced with the replacement source file and the replacement destination file represented by the structure in which the actual data and the type of the actual data are associated, and the replacement source range and replacement that are the replacement target range of the replacement source file. An input receiving unit 111 (input receiving unit) that receives an input of replacement information including a replacement destination range that is a replacement target range of a destination file;
Based on the replacement information received by the
When the type of actual data in the replacement source range acquired by the
Is provided.
上記構成により、まず入力受付部111は、ファイル内に格納された各データが、実データと当該実データの種類とを対応付けた構造により表わされる差替え元ファイルおよび差替え先ファイルと、差替え元ファイルの差替え対象範囲である差替え元範囲および差替え先ファイルの差替え対象範囲である差替え先範囲とを含む差替え情報の入力を受け付ける。続いて、解析部112は、入力受付手段にて入力を受け付けた差替え情報に基づいて、差替え元範囲内および先替え先範囲内に格納された実データに対応付けられた実データの種類を取得する。そして、差替え部113は、解析手段にて取得された差替え元範囲内の実データの種類と差替え先範囲内の実データの種類とが一致する場合に、差替え先範囲内に格納されたデータを、当該データと実データの種類が一致する差替え元範囲内に格納されたデータに差替える。このように、情報処理装置は、差替え元ファイルに格納されたデータを変換して編集することなく、直接差替え先ファイルに対して差替えを行うことができる。この結果、迅速にファイルに格納されたデータの差替え処理を行うことができる。
With the above configuration, first, the
以上、上記実施形態を参照して本願発明を説明したが、本願発明は、上述した実施形態に限定されるものではない。本願発明の構成及び詳細に、本願発明の範囲内において当業者が理解し得る様々な変更をすることができる。 Although the present invention has been described with reference to the above embodiment, the present invention is not limited to the above-described embodiment. Various changes that can be understood by those skilled in the art can be made to the configuration and details of the present invention within the scope of the present invention.
<付記>
上記実施形態の一部又は全部は、以下の付記のようにも記載されうる。以下、本発明における情報処理装置等の構成の概略を説明する。但し、本発明は、以下の構成に限定されない。
<Appendix>
Part or all of the above-described embodiment can be described as in the following supplementary notes. The outline of the configuration of the information processing apparatus and the like in the present invention will be described below. However, the present invention is not limited to the following configuration.
(付記1)
実データと当該実データの種類とを対応付けた構造により表わされる所定単位のデータを複数含んで構成される差替え元ファイルおよび差替え先ファイルと、前記差替え元ファイルの差替え対象範囲である差替え元範囲および前記差替え先ファイルの差替え対象範囲である差替え先範囲とを含む差替え情報と、の入力を受け付ける入力受付手段と、
前記入力受付手段にて入力を受け付けた前記差替え情報に基づいて、前記差替え元範囲内および前記先替え先範囲内に格納された前記データに含まれる前記実データの種類をそれぞれ取得する解析手段と、
前記解析手段にて取得された前記差替え元範囲内に格納された前記データに含まれる前記実データの種類と前記差替え先範囲内に格納された前記データに含まれる前記実データの種類とが一致する場合に、前記差替え先範囲内に格納された前記データを、前記差替え元範囲内に格納された前記データに差替える差替え手段と、
を備える情報処理装置。
(Appendix 1)
Replacement source file and replacement destination file including a plurality of data of a predetermined unit represented by a structure in which actual data and the type of the actual data are associated, and a replacement source range that is a replacement target range of the replacement source file And replacement information including a replacement destination range that is a replacement target range of the replacement destination file;
Analysis means for acquiring the types of the actual data included in the data stored in the replacement source range and the replacement destination range, based on the replacement information received by the input receiving means; ,
The type of the actual data included in the data stored in the replacement source range acquired by the analyzing unit matches the type of the actual data included in the data stored in the replacement destination range. A replacement means for replacing the data stored in the replacement destination range with the data stored in the replacement source range;
An information processing apparatus comprising:
上記構成により、まず入力受付手段は、実データと当該実データの種類とを対応付けた構造により表わされる所定単位のデータを複数含んで構成される差替え元ファイルおよび差替え先ファイルと、差替え元ファイルの差替え対象範囲である差替え元範囲および差替え先ファイルの差替え対象範囲である差替え先範囲とを含む差替え情報の入力を受け付ける。続いて、解析手段は、入力受付手段にて入力を受け付けた差替え情報に基づいて、差替え元範囲内および先替え先範囲内に格納されたデータに含まれる実データの種類をそれぞれ取得する。そして、差替え手段は、解析手段にて取得された差替え元範囲内に格納された前記データに含まれる実データの種類と差替え先範囲内に格納された前記データに含まれる実データの種類とが一致する場合に、差替え先範囲内に格納されたデータを、差替え元範囲内に格納されたデータに差替える。このように、情報処理装置は、差替え元ファイルに格納されたデータを変換して編集することなく、直接差替え先ファイルに対して差替えを行うことができる。この結果、迅速にファイルに格納されたデータの差替え処理を行うことができる。 With the above configuration, the input receiving unit first includes a replacement source file and a replacement destination file configured to include a plurality of data of a predetermined unit represented by a structure in which actual data and the type of the actual data are associated with each other, and the replacement source file The replacement information including the replacement source range that is the replacement target range and the replacement destination range that is the replacement target range of the replacement destination file is received. Subsequently, the analysis unit obtains the types of actual data included in the data stored in the replacement source range and the replacement destination range based on the replacement information received by the input receiving unit. Then, the replacement means includes a type of actual data included in the data stored in the replacement source range acquired by the analysis means and a type of actual data included in the data stored in the replacement destination range. If they match, the data stored in the replacement destination range is replaced with the data stored in the replacement source range. As described above, the information processing apparatus can directly replace the replacement destination file without converting and editing the data stored in the replacement source file. As a result, it is possible to quickly replace the data stored in the file.
(付記2)
付記1に記載の情報処理装置であって、
前記入力受付手段は、前記差替え情報として差替え対象のデータの種類を表す差替え対象種類情報の入力を受け付け、
前記解析手段は、前記差替え対象種類情報に応じて予め設定された差替え処理単位ごとに前記差替え元範囲内と前記差替え先範囲内とのそれぞれに格納された前記データを差替え用の差替え作業領域に抽出し、
前記差替え手段は、前記解析手段にて抽出した前記差替え元範囲内に格納された前記データに含まれる前記実データの種類と前記差替え先範囲内に格納された前記データに含まれる前記実データの種類とが一致する場合に、抽出した前記差替え先範囲内に格納された前記データを、抽出した前記差替え元範囲内に格納された前記データに差替える、
情報処理装置。
(Appendix 2)
An information processing apparatus according to
The input receiving means receives an input of replacement target type information representing a type of replacement target data as the replacement information,
The analysis unit stores the data stored in the replacement source range and the replacement destination range for each replacement processing unit set in advance according to the replacement target type information in a replacement work area for replacement. Extract and
The replacement means includes a type of the actual data included in the data stored in the replacement source range extracted by the analysis means and the actual data included in the data stored in the replacement destination range. When the type matches, the extracted data stored in the replacement range is replaced with the extracted data stored in the replacement source range.
Information processing device.
上記構成により、入力受付手段は、差替え情報として差替え対象のデータの種類を表す差替え対象種類情報の入力を受け付け、解析手段は、差替え対象種類情報に応じて予め設定された差替え処理単位ごとに差替え元範囲内と差替え先範囲内とのそれぞれに格納されたデータを差替え用の差替え作業領域に抽出し、差替え手段は、抽出した差替え元範囲内に格納された前記データに含まれる実データの種類と差替え先範囲内に格納された前記データに含まれる実データの種類とが一致する場合に、抽出した差替え先範囲内に格納されたデータを、抽出した差替え元範囲内に格納されたデータに差替える。このように、差替え対象の実データの種類に応じて一度に差替え作業領域に読み出すデータの差替え処理単位を変えるので、実データの種類に応じて適切な差替え処理を行うことができる。 With the above configuration, the input accepting unit accepts input of replacement target type information representing the type of data to be replaced as replacement information, and the analyzing unit replaces each replacement processing unit set in advance according to the replacement target type information. The data stored in each of the original range and the replacement destination range is extracted into a replacement work area for replacement, and the replacement means is the type of the actual data included in the data stored in the extracted replacement source range And the actual data type included in the data stored in the replacement destination range match the data stored in the extracted replacement destination range to the data stored in the extracted replacement source range. Replace. As described above, since the replacement processing unit of data to be read into the replacement work area at a time is changed according to the type of real data to be replaced, appropriate replacement processing can be performed according to the type of actual data.
(付記3)
付記2に記載の情報処理装置であって、
前記解析手段は、前記差替え対象種類情報が示すデータの種類に映像データが含まれる場合、少なくとも所定単位の映像データを含む複数の前記データを前記差替え処理単位として、前記差替え元範囲内と前記差替え先範囲内とのそれぞれから前記差替え作業領域に抽出する、
情報処理装置。
(Appendix 3)
An information processing apparatus according to
When the video data is included in the type of data indicated by the replacement target type information, the analysis means uses the plurality of data including at least a predetermined unit of video data as the replacement processing unit and the replacement source range and the replacement Extract into the replacement work area from each of the previous ranges,
Information processing device.
上記構成により、解析手段は、差替え対象種類情報が示すデータの種類に映像データが含まれる場合、少なくとも所定単位の映像データを含む複数のデータを差替え処理単位として、差替え元範囲内と差替え先範囲内とのそれぞれから差替え作業領域に抽出する。これによれば、差替え対象に映像データが含まれる場合には、映像データを含む複数のデータを一度に差替え作業領域に読み出して差替え処理を行うので効率的に差替えることができる。 With the above configuration, when the data type indicated by the replacement target type information includes video data, the analysis means uses a plurality of data including at least a predetermined unit of video data as a replacement processing unit, within the replacement source range and the replacement destination range. Extract into the replacement work area from each of the inside. According to this, when video data is included in the replacement target, a plurality of data including the video data is read into the replacement work area at a time and the replacement process is performed, so that replacement can be performed efficiently.
(付記4)
付記2または3に記載の情報処理装置であって、
前記解析手段は、前記差替え対象種類情報が示すデータの種類が音声データである場合、所定単位の音声データを前記差替え処理単位として、前記差替え元範囲内と前記差替え先範囲内とのそれぞれから前記差替え作業領域に抽出し、
前記差替え手段は、前記解析手段にて抽出した前記差替え先範囲内に格納された前記音声データを、抽出した前記差替え元範囲内に格納された前記音声データに差替える、
情報処理装置。
(Appendix 4)
The information processing apparatus according to
When the type of data indicated by the replacement target type information is audio data, the analysis unit sets the audio data of a predetermined unit as the replacement processing unit, and from each of the replacement source range and the replacement destination range. Extract to the replacement work area,
The replacement unit replaces the audio data stored in the replacement destination range extracted by the analysis unit with the audio data stored in the extracted replacement source range.
Information processing device.
上記構成により、解析手段は、差替え対象種類情報が示すデータの種類が音声データだけである場合、所定単位の音声データを差替え処理単位として、差替え元範囲内と差替え先範囲内とのそれぞれから差替え作業領域に抽出し、差替え手段は、抽出した差替え先範囲内に格納された音声データを、抽出した差替え元範囲内に格納された音声データに差替える。これにより、映像データに比べて小さい音声データを個々に差替えるので、差替え作業領域に一度に読み出すデータ量を小さくすることができ、効率的に差替え処理を行うことができる。 With the above configuration, when the type of data indicated by the replacement target type information is only audio data, the analysis unit replaces the audio data in a predetermined unit as a replacement processing unit from each of the replacement source range and the replacement destination range. Extracting into the work area, the replacement means replaces the voice data stored in the extracted replacement destination range with the voice data stored in the extracted replacement source range. Thus, since audio data smaller than the video data is individually replaced, the amount of data read into the replacement work area at a time can be reduced, and the replacement process can be performed efficiently.
(付記5)
付記1乃至4に記載の情報処理装置であって、
前記差替え元ファイルおよび前記差替え先ファイルは、MXF(Material Exchange Format)ファイルであり、
前記MXFファイル内に格納された所定単位のデータは、前記実データと、当該実データのデータ長と、当該実データの種類を識別する識別情報と、により表わされるKLV構造を有し、
前記解析手段は、前記差替え元範囲内および前記差替え先範囲内に格納された前記KLV構造により表わされる各データに含まれる前記識別情報を、前記実データの種類として取得する、
情報処理装置。
(Appendix 5)
An information processing apparatus according to
The replacement source file and the replacement destination file are MXF (Material Exchange Format) files,
The predetermined unit of data stored in the MXF file has a KLV structure represented by the actual data, the data length of the actual data, and identification information for identifying the type of the actual data,
The analysis means acquires the identification information included in each data represented by the KLV structure stored in the replacement source range and the replacement destination range as a type of the actual data.
Information processing device.
(付記6)
実データと当該実データの種類とを対応付けた構造により表わされる所定単位のデータを複数含んで構成される差替え元ファイルおよび差替え先ファイルと、前記差替え元ファイルの差替え対象範囲である差替え元範囲および前記差替え先ファイルの差替え対象範囲である差替え先範囲とを含む差替え情報と、の入力を受け付け、
入力を受け付けた前記差替え情報に基づいて、前記差替え元範囲内および前記先替え先範囲内に格納された前記データに含まれる前記実データの種類をそれぞれ取得し、
取得した前記差替え元範囲内に格納された前記データに含まれる前記実データの種類と前記差替え先範囲内に格納された前記データに含まれる前記実データの種類とが一致する場合に、前記差替え先範囲内に格納された前記データを、前記差替え元範囲内に格納された前記データに差替える、
情報処理方法。
(Appendix 6)
Replacement source file and replacement destination file including a plurality of data of a predetermined unit represented by a structure in which actual data and the type of the actual data are associated, and a replacement source range that is a replacement target range of the replacement source file And replacement information including a replacement destination range that is a replacement target range of the replacement destination file,
Based on the replacement information that has received the input, each of the types of the actual data included in the data stored in the replacement source range and the replacement destination range, respectively,
The replacement is performed when the type of the actual data included in the data stored in the acquired replacement source range matches the type of the actual data included in the data stored in the replacement destination range. Replacing the data stored in the destination range with the data stored in the replacement source range;
Information processing method.
(付記7)
付記6に記載の情報処理方法であって、
前記差替え情報として差替え対象のデータの種類を表す差替え対象種類情報の入力を受け付け、
前記差替え対象種類情報に応じて予め設定された差替え処理単位ごとに前記差替え元範囲内と前記差替え先範囲内とのそれぞれに格納された前記データを差替え用の差替え作業領域に抽出し、
抽出した前記差替え元範囲内の前記実データの種類と前記差替え先範囲内の前記実データの種類とが一致する場合に、抽出した前記差替え先範囲内に格納された前記データを、当該データと前記実データの種類が一致する、抽出した前記差替え元範囲内に格納された前記データに差替える、
情報処理方法。
(Appendix 7)
The information processing method according to
Accepting input of replacement target type information indicating the type of replacement target data as the replacement information,
Extracting the data stored in each of the replacement source range and the replacement destination range for each replacement processing unit set in advance according to the replacement target type information into a replacement work area for replacement,
When the type of the actual data in the extracted replacement source range matches the type of the actual data in the replacement destination range, the data stored in the extracted replacement destination range is The actual data type matches, and is replaced with the extracted data stored in the replacement source range.
Information processing method.
(付記8)
情報処理装置に、
実データと当該実データの種類とを対応付けた構造により表わされる所定単位のデータを複数含んで構成される差替え元ファイルおよび差替え先ファイルと、前記差替え元ファイルの差替え対象範囲である差替え元範囲および前記差替え先ファイルの差替え対象範囲である差替え先範囲とを含む差替え情報と、の入力を受け付ける入力受付手段と、
前記入力受付手段にて入力を受け付けた前記差替え情報に基づいて、前記差替え元範囲内および前記先替え先範囲内に格納された前記データに含まれる前記実データの種類をそれぞれ取得する解析手段と、
前記解析手段にて取得された前記差替え元範囲内に格納された前記データに含まれる前記実データの種類と前記差替え先範囲内に格納された前記データに含まれる前記実データの種類とが一致する場合に、前記差替え先範囲内に格納された前記データを、前記差替え元範囲内に格納された前記データに差替える差替え手段と、
を実現させるためのプログラム。
(Appendix 8)
In the information processing device,
Replacement source file and replacement destination file including a plurality of data of a predetermined unit represented by a structure in which actual data and the type of the actual data are associated, and a replacement source range that is a replacement target range of the replacement source file And replacement information including a replacement destination range that is a replacement target range of the replacement destination file;
Analysis means for acquiring the types of the actual data included in the data stored in the replacement source range and the replacement destination range, based on the replacement information received by the input receiving means; ,
The type of the actual data included in the data stored in the replacement source range acquired by the analyzing unit matches the type of the actual data included in the data stored in the replacement destination range. A replacement means for replacing the data stored in the replacement destination range with the data stored in the replacement source range;
A program to realize
(付記9)
付記8に記載のプログラムであって、
前記入力受付手段は、前記差替え情報として差替え対象のデータの種類を表す差替え対象種類情報の入力を受け付け、
前記解析手段は、前記差替え対象種類情報に応じて予め設定された差替え処理単位ごとに前記差替え元範囲内と前記差替え先範囲内とのそれぞれに格納された前記データを差替え用の差替え作業領域に抽出し、
前記差替え手段は、前記解析手段にて抽出した前記差替え元範囲内に格納された前記データに含まれる前記実データの種類と前記差替え先範囲内に格納された前記データに含まれる前記実データの種類とが一致する場合に、抽出した前記差替え先範囲内に格納された前記データを、抽出した前記差替え元範囲内に格納された前記データに差替える、
プログラム。
(Appendix 9)
The program according to
The input receiving means receives an input of replacement target type information representing a type of replacement target data as the replacement information,
The analysis unit stores the data stored in the replacement source range and the replacement destination range for each replacement processing unit set in advance according to the replacement target type information in a replacement work area for replacement. Extract and
The replacement means includes a type of the actual data included in the data stored in the replacement source range extracted by the analysis means and the actual data included in the data stored in the replacement destination range. When the type matches, the extracted data stored in the replacement range is replaced with the extracted data stored in the replacement source range.
program.
1 情報処理装置
11 演算部
12 メモリ
13 入力部
14 出力部
15 記憶部
21 入力受付部
22 解析部
23 差替え部
31 差替え元ファイル
32 差替え先ファイル
101 情報処理装置
111 入力受付部
112 解析部
113 差替え部
DESCRIPTION OF
Claims (9)
前記入力受付手段にて入力を受け付けた前記差替え情報に基づいて、前記差替え元範囲内および前記先替え先範囲内に格納された前記データに含まれる前記実データの種類をそれぞれ取得する解析手段と、
前記解析手段にて取得された前記差替え元範囲内に格納された前記データに含まれる前記実データの種類と前記差替え先範囲内に格納された前記データに含まれる前記実データの種類とが一致する場合に、前記差替え先範囲内に格納された前記データを、前記差替え元範囲内に格納された前記データに差替える差替え手段と、
を備える情報処理装置。 Replacement source file and replacement destination file including a plurality of data of a predetermined unit represented by a structure in which actual data and the type of the actual data are associated, and a replacement source range that is a replacement target range of the replacement source file And replacement information including a replacement destination range that is a replacement target range of the replacement destination file;
Analysis means for acquiring the types of the actual data included in the data stored in the replacement source range and the replacement destination range, based on the replacement information received by the input receiving means; ,
The type of the actual data included in the data stored in the replacement source range acquired by the analyzing unit matches the type of the actual data included in the data stored in the replacement destination range. A replacement means for replacing the data stored in the replacement destination range with the data stored in the replacement source range;
An information processing apparatus comprising:
前記入力受付手段は、前記差替え情報として差替え対象のデータの種類を表す差替え対象種類情報の入力を受け付け、
前記解析手段は、前記差替え対象種類情報に応じて予め設定された差替え処理単位ごとに前記差替え元範囲内と前記差替え先範囲内とのそれぞれに格納された前記データを差替え用の差替え作業領域に抽出し、
前記差替え手段は、前記解析手段にて抽出した前記差替え元範囲内に格納された前記データに含まれる前記実データの種類と前記差替え先範囲内に格納された前記データに含まれる前記実データの種類とが一致する場合に、抽出した前記差替え先範囲内に格納された前記データを、抽出した前記差替え元範囲内に格納された前記データに差替える、
情報処理装置。 The information processing apparatus according to claim 1,
The input receiving means receives an input of replacement target type information representing a type of replacement target data as the replacement information,
The analysis unit stores the data stored in the replacement source range and the replacement destination range for each replacement processing unit set in advance according to the replacement target type information in a replacement work area for replacement. Extract and
The replacement means includes a type of the actual data included in the data stored in the replacement source range extracted by the analysis means and the actual data included in the data stored in the replacement destination range. When the type matches, the extracted data stored in the replacement range is replaced with the extracted data stored in the replacement source range.
Information processing device.
前記解析手段は、前記差替え対象種類情報が示すデータの種類に映像データが含まれる場合、少なくとも所定単位の映像データを含む複数の前記データを前記差替え処理単位として、前記差替え元範囲内と前記差替え先範囲内とのそれぞれから前記差替え作業領域に抽出する、
情報処理装置。 An information processing apparatus according to claim 2,
When the video data is included in the type of data indicated by the replacement target type information, the analysis means uses the plurality of data including at least a predetermined unit of video data as the replacement processing unit and the replacement source range and the replacement Extract into the replacement work area from each of the previous ranges,
Information processing device.
前記解析手段は、前記差替え対象種類情報が示すデータの種類が音声データである場合、所定単位の音声データを前記差替え処理単位として、前記差替え元範囲内と前記差替え先範囲内とのそれぞれから前記差替え作業領域に抽出し、
前記差替え手段は、前記解析手段にて抽出した前記差替え先範囲内に格納された前記音声データを、抽出した前記差替え元範囲内に格納された前記音声データに差替える、
情報処理装置。 The information processing apparatus according to claim 2 or 3,
When the type of data indicated by the replacement target type information is audio data, the analysis unit sets the audio data of a predetermined unit as the replacement processing unit, and from each of the replacement source range and the replacement destination range. Extract to the replacement work area,
The replacement unit replaces the audio data stored in the replacement destination range extracted by the analysis unit with the audio data stored in the extracted replacement source range.
Information processing device.
前記差替え元ファイルおよび前記差替え先ファイルは、MXF(Material Exchange Format)ファイルであり、
前記MXFファイル内に格納された所定単位のデータは、前記実データと、当該実データのデータ長と、当該実データの種類を識別する識別情報と、により表わされるKLV構造を有し、
前記解析手段は、前記差替え元範囲内および前記差替え先範囲内に格納された前記KLV構造により表わされる各データに含まれる前記識別情報を、前記実データの種類として取得する、
情報処理装置。 The information processing apparatus according to claim 1, wherein
The replacement source file and the replacement destination file are MXF (Material Exchange Format) files,
The predetermined unit of data stored in the MXF file has a KLV structure represented by the actual data, the data length of the actual data, and identification information for identifying the type of the actual data,
The analysis means acquires the identification information included in each data represented by the KLV structure stored in the replacement source range and the replacement destination range as a type of the actual data.
Information processing device.
入力を受け付けた前記差替え情報に基づいて、前記差替え元範囲内および前記先替え先範囲内に格納された前記データに含まれる前記実データの種類をそれぞれ取得し、
取得した前記差替え元範囲内に格納された前記データに含まれる前記実データの種類と前記差替え先範囲内に格納された前記データに含まれる前記実データの種類とが一致する場合に、前記差替え先範囲内に格納された前記データを、前記差替え元範囲内に格納された前記データに差替える、
情報処理方法。 Replacement source file and replacement destination file including a plurality of data of a predetermined unit represented by a structure in which actual data and the type of the actual data are associated, and a replacement source range that is a replacement target range of the replacement source file And replacement information including a replacement destination range that is a replacement target range of the replacement destination file,
Based on the replacement information that has received the input, each of the types of the actual data included in the data stored in the replacement source range and the replacement destination range, respectively,
The replacement is performed when the type of the actual data included in the data stored in the acquired replacement source range matches the type of the actual data included in the data stored in the replacement destination range. Replacing the data stored in the destination range with the data stored in the replacement source range;
Information processing method.
前記差替え情報として差替え対象のデータの種類を表す差替え対象種類情報の入力を受け付け、
前記差替え対象種類情報に応じて予め設定された差替え処理単位ごとに前記差替え元範囲内と前記差替え先範囲内とのそれぞれに格納された前記データを差替え用の差替え作業領域に抽出し、
抽出した前記差替え元範囲内の前記実データの種類と前記差替え先範囲内の前記実データの種類とが一致する場合に、抽出した前記差替え先範囲内に格納された前記データを、当該データと前記実データの種類が一致する、抽出した前記差替え元範囲内に格納された前記データに差替える、
情報処理方法。 An information processing method according to claim 6,
Accepting input of replacement target type information indicating the type of replacement target data as the replacement information,
Extracting the data stored in each of the replacement source range and the replacement destination range for each replacement processing unit set in advance according to the replacement target type information into a replacement work area for replacement,
When the type of the actual data in the extracted replacement source range matches the type of the actual data in the replacement destination range, the data stored in the extracted replacement destination range is The actual data type matches, and is replaced with the extracted data stored in the replacement source range.
Information processing method.
実データと当該実データの種類とを対応付けた構造により表わされる所定単位のデータを複数含んで構成される差替え元ファイルおよび差替え先ファイルと、前記差替え元ファイルの差替え対象範囲である差替え元範囲および前記差替え先ファイルの差替え対象範囲である差替え先範囲とを含む差替え情報と、の入力を受け付ける入力受付手段と、
前記入力受付手段にて入力を受け付けた前記差替え情報に基づいて、前記差替え元範囲内および前記先替え先範囲内に格納された前記データに含まれる前記実データの種類をそれぞれ取得する解析手段と、
前記解析手段にて取得された前記差替え元範囲内に格納された前記データに含まれる前記実データの種類と前記差替え先範囲内に格納された前記データに含まれる前記実データの種類とが一致する場合に、前記差替え先範囲内に格納された前記データを、前記差替え元範囲内に格納された前記データに差替える差替え手段と、
を実現させるためのプログラム。 In the information processing device,
Replacement source file and replacement destination file including a plurality of data of a predetermined unit represented by a structure in which actual data and the type of the actual data are associated, and a replacement source range that is a replacement target range of the replacement source file And replacement information including a replacement destination range that is a replacement target range of the replacement destination file;
Analysis means for acquiring the types of the actual data included in the data stored in the replacement source range and the replacement destination range, based on the replacement information received by the input receiving means; ,
The type of the actual data included in the data stored in the replacement source range acquired by the analyzing unit matches the type of the actual data included in the data stored in the replacement destination range. A replacement means for replacing the data stored in the replacement destination range with the data stored in the replacement source range;
A program to realize
前記入力受付手段は、前記差替え情報として差替え対象のデータの種類を表す差替え対象種類情報の入力を受け付け、
前記解析手段は、前記差替え対象種類情報に応じて予め設定された差替え処理単位ごとに前記差替え元範囲内と前記差替え先範囲内とのそれぞれに格納された前記データを差替え用の差替え作業領域に抽出し、
前記差替え手段は、前記解析手段にて抽出した前記差替え元範囲内に格納された前記データに含まれる前記実データの種類と前記差替え先範囲内に格納された前記データに含まれる前記実データの種類とが一致する場合に、抽出した前記差替え先範囲内に格納された前記データを、抽出した前記差替え元範囲内に格納された前記データに差替える、
プログラム。
The program according to claim 8, wherein
The input receiving means receives an input of replacement target type information representing a type of replacement target data as the replacement information,
The analysis unit stores the data stored in the replacement source range and the replacement destination range for each replacement processing unit set in advance according to the replacement target type information in a replacement work area for replacement. Extract and
The replacement means includes a type of the actual data included in the data stored in the replacement source range extracted by the analysis means and the actual data included in the data stored in the replacement destination range. When the type matches, the extracted data stored in the replacement range is replaced with the extracted data stored in the replacement source range.
program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012282427A JP6075060B2 (en) | 2012-12-26 | 2012-12-26 | Information processing device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012282427A JP6075060B2 (en) | 2012-12-26 | 2012-12-26 | Information processing device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2014127806A true JP2014127806A (en) | 2014-07-07 |
JP6075060B2 JP6075060B2 (en) | 2017-02-08 |
Family
ID=51407010
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2012282427A Active JP6075060B2 (en) | 2012-12-26 | 2012-12-26 | Information processing device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6075060B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2016111435A (en) * | 2014-12-03 | 2016-06-20 | 株式会社東芝 | Recording apparatus and recording method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006333330A (en) * | 2005-05-30 | 2006-12-07 | Sony Corp | Data processing method, and apparatus and program |
JP2010211572A (en) * | 2009-03-11 | 2010-09-24 | Nec Corp | Mxf data retrieval device, mxf data retrieval method, and mxf data retrieval program |
JP2012195893A (en) * | 2011-03-17 | 2012-10-11 | Toshiba Corp | Video server device and video editing system |
-
2012
- 2012-12-26 JP JP2012282427A patent/JP6075060B2/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006333330A (en) * | 2005-05-30 | 2006-12-07 | Sony Corp | Data processing method, and apparatus and program |
JP2010211572A (en) * | 2009-03-11 | 2010-09-24 | Nec Corp | Mxf data retrieval device, mxf data retrieval method, and mxf data retrieval program |
JP2012195893A (en) * | 2011-03-17 | 2012-10-11 | Toshiba Corp | Video server device and video editing system |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2016111435A (en) * | 2014-12-03 | 2016-06-20 | 株式会社東芝 | Recording apparatus and recording method |
Also Published As
Publication number | Publication date |
---|---|
JP6075060B2 (en) | 2017-02-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107591149B (en) | Audio synthesis method, device and storage medium | |
CN105810211B (en) | A kind of processing method and terminal of audio data | |
CN106688035B (en) | Speech synthesis device and speech synthesis method | |
CN109558479A (en) | Rule matching method, device, equipment and storage medium | |
US9183837B2 (en) | Apparatus and method for determining bit rate for audio content | |
CN110110136A (en) | Text-sound matching method, electronic equipment and storage medium | |
CN112347142B (en) | Data processing method and device | |
US20090045987A1 (en) | Method and apparatus for encoding/decoding metadata | |
US10394763B2 (en) | Method and device for generating pileup file from compressed genomic data | |
CN110716739A (en) | Code change information statistical method, system and readable storage medium | |
CN110019923A (en) | The lookup method and device of speech message | |
JP6075060B2 (en) | Information processing device | |
CN111611788A (en) | Data processing method and device, electronic equipment and storage medium | |
CN110517656B (en) | Lyric rhythm generation method, device, storage medium and apparatus | |
CN110992933A (en) | Audio processing method, device, terminal and computer readable storage medium | |
CN109828764A (en) | Generation, method for burn-recording and its equipment of recordable paper | |
CN108133012B (en) | Label setting method and device | |
KR101165201B1 (en) | Conversion server for a contents providing system | |
JP2008243074A (en) | Device, method, and program for retrieving document | |
US20230197114A1 (en) | Storage apparatus, playback apparatus, storage method, playback method, and medium | |
JP5644244B2 (en) | Document processing apparatus, document processing method, and program | |
US20230153683A1 (en) | Information processing method, information processing apparatus, and information processing program | |
JP2003331309A5 (en) | ||
CN105446950B (en) | A kind of output method of excel file datas | |
CN103873459B (en) | Automatic message generating method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20151106 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20161011 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20161018 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20161128 |
|
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: 20161213 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20161226 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6075060 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |