JP5171270B2 - Multiplexing method and apparatus for moving picture, and program and computer-readable recording medium - Google Patents

Multiplexing method and apparatus for moving picture, and program and computer-readable recording medium Download PDF

Info

Publication number
JP5171270B2
JP5171270B2 JP2008001009A JP2008001009A JP5171270B2 JP 5171270 B2 JP5171270 B2 JP 5171270B2 JP 2008001009 A JP2008001009 A JP 2008001009A JP 2008001009 A JP2008001009 A JP 2008001009A JP 5171270 B2 JP5171270 B2 JP 5171270B2
Authority
JP
Japan
Prior art keywords
moving image
frame
encoded data
file
multiplexing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2008001009A
Other languages
Japanese (ja)
Other versions
JP2009164936A (en
Inventor
英明 木全
信哉 志水
一人 上倉
由幸 八島
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP2008001009A priority Critical patent/JP5171270B2/en
Publication of JP2009164936A publication Critical patent/JP2009164936A/en
Application granted granted Critical
Publication of JP5171270B2 publication Critical patent/JP5171270B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Description

本発明は,フレーム間予測符号化方式を使った画像符号化データの多重化に関する技術である。   The present invention is a technique related to multiplexing of encoded image data using an inter-frame predictive encoding method.

映像符号化には,スケーラブル符号化や多視点映像符号化といった,レイヤ符号化を適用する符号化方式がある。スケーラブル符号化では,SNRスケーラビリティや空間スケーラビリティ等の機能を実現できる。SNRスケーラビリティとは,ベースレイヤの符号化データに対して符号化データを追加することで画像の画品質を向上する機能であり,空間スケーラビリティとは,ベースレイヤの符号化データに対して符号化データを追加することで画像の空間解像度を向上する機能である。   Video coding includes coding methods that apply layer coding, such as scalable coding and multi-view video coding. In scalable coding, functions such as SNR scalability and spatial scalability can be realized. The SNR scalability is a function that improves the image quality of an image by adding the encoded data to the base layer encoded data. The spatial scalability is the encoded data for the base layer encoded data. This is a function that improves the spatial resolution of an image by adding.

スケーラブル符号化の概念図を図11に示す。スケーラブル符号化では,図11に示すように,復号画像あるいは符号化情報をレイヤ間で再利用することにより,符号量の削減が図られている。   FIG. 11 shows a conceptual diagram of scalable coding. In scalable encoding, as shown in FIG. 11, the amount of code is reduced by reusing a decoded image or encoded information between layers.

近年では,映像符号化方式H.264の拡張方式としてSVCと呼ぶ方式がAnnexGとして標準化されている(非特許文献1参照)。   In recent years, the video encoding system As a H.264 extension method, a method called SVC is standardized as Annex G (see Non-Patent Document 1).

また,多視点映像符号化においてもレイヤ符号化が適用される。近年では,やはり映像符号化方式H.264の拡張方式としてMVCと呼ぶ方式が標準化されようとしている。MVCでは,複数の視点映像をまとめて符号化する仕組みが採用されている。動画像の符号化では動き補償符号化が利用されるが,多視点映像の場合には,動き補償に加えて,視点映像間でフレーム間予測符号化を適用する視差補償符号化を利用する。MVCでは視差補償を利用することで,個別に視点映像を符号化するよりも圧縮効率を向上できる。また,MVCでは,アプリケーションとして自由視点映像といった,視聴者が自由に視点位置を選択できる映像表現を想定している(非特許文献2,非特許文献3参照)。   Layer coding is also applied in multi-view video coding. In recent years, the video encoding system H.264 A method called MVC is being standardized as an H.264 extension method. In MVC, a mechanism for collectively encoding a plurality of viewpoint videos is employed. In motion picture encoding, motion compensation encoding is used. In the case of multi-view video, in addition to motion compensation, disparity compensation encoding that applies inter-frame prediction encoding between viewpoint videos is used. In MVC, by using parallax compensation, the compression efficiency can be improved as compared to encoding the viewpoint video individually. In addition, MVC assumes a video expression that allows a viewer to freely select a viewpoint position, such as a free viewpoint video as an application (see Non-Patent Document 2 and Non-Patent Document 3).

このため,映像シーンを非常に多くのカメラで撮影しておき,視聴者が見たい視点位置の映像を選択するような利用方法が想定されている。すなわち,撮影した多くの視点映像データのうち,いくつかを選択して復号して再生することが想定されている。このように非常に多くの視点映像からいくつかの視点映像を選択して復号する機能を視点映像スケーラビリティと呼ぶ。MVCは多視点映像を想定した符号化方式ではあるが,まとめて符号化する対象はカメラ映像に限定されない。すなわち,一般的に複数の動画像をまとめて圧縮する符号化方式と考えることができる。   For this reason, it is assumed that the video scene is photographed by a large number of cameras and the video at the viewpoint position that the viewer wants to view is selected. That is, it is assumed that some of the captured viewpoint video data are selected, decoded, and reproduced. Such a function of selecting and decoding several viewpoint videos from a very large number of viewpoint videos is called viewpoint video scalability. MVC is an encoding method that assumes multi-view video, but the target to be encoded together is not limited to camera video. That is, it can be considered as a coding method that generally compresses a plurality of moving images together.

このMVCでは,前述のとおり,非常に多くの動画像からいくつかの動画像を選択して復号することを実現するため,スケーラブル符号化のように1つのベースレイヤに対してレイヤ構造を持つのではなく,複数のベースレイヤに対してレイヤ構造を持つような構成となる。   As described above, this MVC has a layer structure for one base layer as in scalable coding in order to select and decode several moving images from a large number of moving images. Instead, the configuration is such that a plurality of base layers have a layer structure.

図12はMVCの参照関係の例,図13はMVCの符号化データの構成例を示す図である。例えば,図12に示すような参照関係がある場合には,MVCの符号化データは同じ時刻のフレームについて図13に示すような構成になる。この同じ時刻のフレームの固まりをアクセスユニットと呼ぶ。MVCではベースレイヤに相当するレイヤが複数存在する。MVCでは動画像間の参照関係をサブセットSPS(subset_seq _parameter _set )の中のMVC拡張部分で記述する。サブセットSPSは符号化データ中に含まれ,複数設定できる。各フレームでは,利用するサブセットSPSを指定することができる。   FIG. 12 is a diagram illustrating an example of a reference relationship of MVC, and FIG. 13 is a diagram illustrating a configuration example of encoded data of MVC. For example, if there is a reference relationship as shown in FIG. 12, the encoded data of MVC has a configuration as shown in FIG. 13 for frames at the same time. This group of frames at the same time is called an access unit. In MVC, there are a plurality of layers corresponding to the base layer. In MVC, a reference relationship between moving images is described by an MVC extension in a subset SPS (subset_seq_parameter_set). The subset SPS is included in the encoded data, and a plurality of subsets can be set. In each frame, a subset SPS to be used can be designated.

一方,このような映像符号化データをファイル化して保存するために,ファイルフォーマット技術が利用される。ファイルフォーマットとは,符号化データを多重化するための技術でもあり,符号化データストリームを構造化しておくことで,特定の情報に関する符号化データを低遅延で取り出す機能を有する。一般的にファイルフォーマットでは,各種のデータストリームをトラックに格納して,トラックの情報を特定の時刻を単位に分割して多重化する。各トラックには,映像または音声の符号化データの他に,CGデータや著作権情報などのメタデータが格納される。   On the other hand, a file format technique is used to store such encoded video data as a file. The file format is also a technique for multiplexing encoded data, and has a function of extracting encoded data related to specific information with low delay by structuring the encoded data stream. Generally, in a file format, various data streams are stored in a track, and track information is divided and multiplexed in units of specific times. Each track stores metadata such as CG data and copyright information in addition to video or audio encoded data.

もっとも簡単なファイルフォーマットとしては,AVIフォーマットが挙げられる。AVIフォーマットは,映像データと音声データを1フレーム単位に多重化する。そのほかにも国際標準化されているフォーマットとして,ISOメディアファイルフォーマットが挙げられる。ISOフォーマットでは,フレームに相当するものとしてサンプルを定義し,サンプルを単位にトラックを分割して多重化する。   The simplest file format is the AVI format. In the AVI format, video data and audio data are multiplexed in units of one frame. Another ISO standard file format is an international standardized format. In the ISO format, a sample is defined as being equivalent to a frame, and a track is divided and multiplexed in units of samples.

ISOメディアファイルフォーマットでは,符号化データの他に,フレーム番号等の時刻情報とフレーム先頭のファイル中の位置情報を管理情報として別のトラックとして構成することができる。ファイルを再生する場合には,この管理情報を記録したトラックを調べることで,フレームの先頭位置情報を知ることができ,所望のフレームの先頭に低遅延でアクセスすることが可能となる。   In the ISO media file format, in addition to encoded data, time information such as a frame number and position information in the file at the head of the frame can be configured as separate tracks as management information. When playing back a file, by checking the track in which this management information is recorded, it is possible to know the start position information of the frame, and to access the start of the desired frame with low delay.

ファイル中におけるトラックや管理情報の関係の例を図14に示す。符号化データトラックには,各動画像の符号化データが格納され,管理情報トラックには,各時刻におけるフレームの位置情報等が格納される。前述したSVC用にもファイルフォーマットが提案されている。SVCもトラックを単位にファイルを構成する(非特許文献4参照)。
Heiko Schwarz, Detlev Marpe, and Thomas Wiegand,“Overview of the Scalable Video Coding Extension of the H.264/AVC Standard ”, IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS FOR VIDEO TECHNOLOGY, VOL.17, NO.9, SEPTEMBER 2007, pp.1103-1120. 木全英明,“MPEG 3DAV 国際標準化の動向, ”映像情報メディア学会誌 60, 2, pp.143-149, (2006). 木全英明,“多視点映像符号化MVCの国際標準化動向," 映像情報メディア学会誌 61, 4, pp.426-430, (April 2007). Peter Amon, Thomas Rathgen, and David Singer, “File Format for Scalable Video Coding ”, IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS FOR VIDEO TECHNOLOGY, VOL.17, NO.9, SEPTEMBER 2007, pp.1174-1185.
An example of the relationship between tracks and management information in a file is shown in FIG. The encoded data track stores encoded data of each moving image, and the management information track stores frame position information at each time. A file format has also been proposed for the SVC described above. The SVC also forms a file in units of tracks (see Non-Patent Document 4).
Heiko Schwarz, Detlev Marpe, and Thomas Wiegand, “Overview of the Scalable Video Coding Extension of the H.264 / AVC Standard”, IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS FOR VIDEO TECHNOLOGY, VOL.17, NO.9, SEPTEMBER 2007, pp .1103-1120. Hideaki Kizen, “Trends in MPEG 3DAV international standardization,” Journal of the Institute of Image Information and Television Engineers 60, 2, pp.143-149, (2006). Hideaki Kizen, “International Standardization Trend of Multi-View Video Coding MVC,” Journal of the Institute of Image Information and Television Engineers 61, 4, pp.426-430, (April 2007). Peter Amon, Thomas Rathgen, and David Singer, “File Format for Scalable Video Coding”, IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS FOR VIDEO TECHNOLOGY, VOL.17, NO.9, SEPTEMBER 2007, pp.1174-1185.

例えばSVCのように,従来のレイヤ符号化を用いて符号化された符号化データを復号する場合,必ず下位レイヤを復号して上位レイヤの復号を行っていた。一方で,MVCのように複数のベースレイヤがある場合には,必ずしも下位レイヤを復号する必要はない。したがって,所望の動画像を復号するにあたっては,復号に必要な動画像のみを選択して復号すればよい。MVCにおける,このような動画像の参照関係はSPSに記述されているため,デコーダはSPSを復号することで参照関係を導いていた。   For example, when decoding encoded data encoded using conventional layer encoding, such as SVC, the lower layer is always decoded and the upper layer is decoded. On the other hand, when there are a plurality of base layers as in MVC, it is not always necessary to decode lower layers. Therefore, when decoding a desired moving image, only a moving image necessary for decoding may be selected and decoded. Since such a moving image reference relationship in MVC is described in SPS, the decoder has derived the reference relationship by decoding SPS.

しかしながら,SPSを復号するためには,そのSPSを符号化データ中から探し出す必要がある。このため,特にファイルに蓄積されている場合には,ファイルの先頭からSPSを順次探して復号する必要があり,大きな負荷がかかっていた。この負荷を低減することが本発明の課題である。   However, in order to decode the SPS, it is necessary to find the SPS from the encoded data. For this reason, in particular, when it is stored in a file, it is necessary to sequentially search and decode the SPS from the beginning of the file, which is a heavy load. It is an object of the present invention to reduce this load.

本発明の技術的背景を踏まえて,さらに詳しく本発明の課題について説明する。複数の動画像をまとめて符号化する場合に,動画像間でフレーム間予測符号化を適用する。必ずしもすべての動画像が他の動画像を参照する必要はなく,自分の画像のみ参照する動画像が存在する。このような動画像は,逆に単独で復号できるメリットがある。多視点動画像符号化では,このような単独で復号できる動画像をベースレイヤとして,その他の動画像を拡張レイヤとして符号化する。多視点動画像符号化の場合には,多くの動画像をまとめて符号化するため,ベースレイヤを符号化データ中に複数持つことができるという特徴がある。   Based on the technical background of the present invention, the problem of the present invention will be described in more detail. When encoding a plurality of moving images collectively, inter-frame prediction encoding is applied between the moving images. It is not always necessary for all moving images to refer to other moving images, and there exists a moving image that refers only to its own image. Conversely, such a moving image has an advantage that it can be decoded independently. In multi-view video encoding, a video that can be decoded independently is used as a base layer, and other video is encoded as an enhancement layer. In the case of multi-view video encoding, since many video are encoded together, there is a feature that a plurality of base layers can be included in encoded data.

符号化データ中に複数のベースレイヤがある場合に,そのベースレイヤのみを取り出すことができると,部分的な動画像を復号することができため,大変有効である。符号化データ中に,どの動画像がベースレイヤなのかといった情報を含めることができる。   When there are a plurality of base layers in the encoded data, if only the base layer can be extracted, a partial moving image can be decoded, which is very effective. Information such as which moving image is the base layer can be included in the encoded data.

しかしながら,従来の符号化データの構成では,ファイル中の各ベースレイヤの位置を知るためには,符号化データを復号する必要があった。このため,ベースレイヤの符号化データのみを取り出すために,大きな負荷がかかるという問題があった。   However, in the configuration of the conventional encoded data, it is necessary to decode the encoded data in order to know the position of each base layer in the file. For this reason, there is a problem that a large load is applied to extract only the encoded data of the base layer.

本発明は,このようなベースレイヤ(単独で復号できる動画像)の符号化データを取り出すときの負荷を低減する新しい技術手段を提供することを目的とする。   It is an object of the present invention to provide a new technical means for reducing the load when taking out encoded data of such a base layer (moving image that can be decoded independently).

本発明は,以上の課題を次のように解決する。符号化データを多重化するファイルフォーマット技術がある。このファイルフォーマット技術では,符号化データと管理情報に分けて,管理情報に各フレーム先頭位置情報を格納することが行われている。本発明では,このような管理情報に,フレーム先頭位置情報のほかに,他の動画像に関係なく単独で復号できるかどうかの情報を含める。これにより,管理情報を読み取るだけで,単独で復号できるフレームの先頭位置を知ることができ,そのようなフレームの符号化データを低負荷で取り出すことができる。   The present invention solves the above problems as follows. There is a file format technique for multiplexing encoded data. In this file format technology, each frame head position information is stored in management information separately into encoded data and management information. In the present invention, such management information includes, in addition to the frame head position information, information indicating whether or not independent decoding is possible regardless of other moving images. Thereby, it is possible to know the head position of a frame that can be decoded independently only by reading the management information, and the encoded data of such a frame can be taken out with a low load.

具体的には,本発明は,n個(n≧2)の動画像の間で予測符号化して作成された符号化データを多重化してファイルを構成する多重化方法であって,動画像のフレームの時刻ごとに,動画像のフレーム先頭のファイル中の位置情報と,動画像を区別する動画像番号と,該フレームを復号する際に他の動画像のフレームの復号画像情報が必要かどうかを示す独立復号識別情報とを含むn個の動画像分の管理情報を多重化し,符号化データの特定の位置に設定することを特徴とする。 Specifically, the present invention is a multiplexing method in which encoded data created by predictive encoding among n (n ≧ 2) moving images is multiplexed to form a file . For each frame time , the position information in the file at the head of the moving image, the moving image number for distinguishing the moving image, and whether the decoded image information of another moving image frame is necessary when decoding the frame The management information for n moving images including the independent decoding identification information indicating the above is multiplexed and set at a specific position of the encoded data.

この多重化方法によれば,符号化データ中の特定の位置にある管理情報を復号することで,すべての符号化データを復号することなく,ファイルからベースレイヤとなる動画像のフレームの先頭位置を求めて,そのフレームの符号化データを取り出すことができる。同時に,符号化データを復号することなく,その動画像の動画像番号も求めることができる。これにより,ベースレイヤとなる動画像の動画像番号が予め分かっている場合に,符号化データ中に含まれる動画像間の参照関係の情報を探索して復号することなく,低演算負荷かつ低遅延で,所望の動画像の符号化データを復号して再生することができる。   According to this multiplexing method, by decoding the management information at a specific position in the encoded data, the start position of the frame of the moving image frame that becomes the base layer from the file without decoding all the encoded data And the encoded data of the frame can be extracted. At the same time, the moving image number of the moving image can be obtained without decoding the encoded data. As a result, when the moving image number of the moving image serving as the base layer is known in advance, the information of the reference relationship between the moving images included in the encoded data is not searched and decoded, and the calculation load is low. The encoded data of the desired moving image can be decoded and reproduced with a delay.

この発明において,独立復号識別情報等の管理情報を符号化データに多重化する位置については,すべての符号化データの最後,すべての符号化データの前などの,予め定められたファイル中の位置や,符号化データを含むトラックの前や後などでもよい。   In this invention, with respect to the position where management information such as independent decoding identification information is multiplexed in the encoded data, the position in the predetermined file such as the end of all encoded data, before all encoded data, etc. Or before or after the track including the encoded data.

また,本発明は,n個(n≧2)の動画像の間で予測符号化して作成された符号化データを多重化してファイルを構成する多重化方法であって,動画像のフレーム先頭のファイル中の位置情報と,動画像を区別する動画像番号と,該フレームを復号する際に他の動画像のフレームの復号画像情報が必要かどうかを示す独立復号識別情報とを含むn個の動画像分の管理情報を第一のトラックとし,符号化データと動画像間の予測符号化における参照関係情報を第二のトラックとして,第一のトラックと第二のトラックとをそれぞれ独立に多重化することを特徴とする。 Further, the present invention is a multiplexing method for forming a file by multiplexing encoded data created by predictive encoding between n (n ≧ 2) moving images, and comprising a file at the head of a frame of the moving image. N pieces of information including position information in the file, a moving image number for distinguishing moving images, and independent decoding identification information indicating whether or not decoded image information of a frame of another moving image is necessary when decoding the frame The management information for the moving image is the first track, the reference relationship information in the predictive coding between the encoded data and the moving image is the second track, and the first track and the second track are multiplexed independently. It is characterized by becoming.

この多重化方法によれば,第一のトラックに含まれる独立復号識別情報を復号することで,第二のトラックの符号化データを復号することなく,ファイルからベースレイヤとなる動画像のフレームの先頭位置を求めて,そのフレームの符号化データを取り出すことができる。同時に,符号化データを復号することなく,その動画像の動画像番号も求めることができる。これにより,ベースレイヤとなる動画像の動画像番号が予め分かっている場合に,符号化データ中に含まれる動画像間の参照関係の情報を復号することなく,低演算負荷かつ低遅延で,所望の動画像の符号化データを復号して再生することができる。   According to this multiplexing method, by decoding the independent decoding identification information included in the first track, it is possible to decode the frame of the moving image frame serving as the base layer without decoding the encoded data of the second track. The head position can be obtained and the encoded data of the frame can be extracted. At the same time, the moving image number of the moving image can be obtained without decoding the encoded data. Thereby, when the moving image number of the moving image serving as the base layer is known in advance, the information on the reference relationship between the moving images included in the encoded data is not decoded, and with low calculation load and low delay, It is possible to decode and reproduce encoded data of a desired moving image.

さらに,動画像間の参照関係を示す情報のファイル中の位置情報を,符号化データの位置情報と一緒に多重化しておいてもよい。この場合には,この位置情報を参照することで,動画像間の参照関係を示す情報を符号化データから読み出すことができる。読み出して得られる参照関係から,その動画像を参照する動画像番号を求めることができる。これにより,ベースレイヤとなる動画像の動画像番号が予め分かっている場合に,ベースレイヤの符号化データと,それを参照する動画像の符号化データを取り出して,低演算負荷かつ低遅延で,所望の動画像の符号化データを復号して再生することができる。   Furthermore, the position information in the information file indicating the reference relationship between the moving images may be multiplexed together with the position information of the encoded data. In this case, by referring to this position information, information indicating the reference relationship between moving images can be read from the encoded data. From the reference relationship obtained by reading, a moving image number referring to the moving image can be obtained. As a result, when the moving image number of the moving image serving as the base layer is known in advance, the encoded data of the base layer and the encoded data of the moving image that refers to the extracted data are extracted, and the calculation load is low and the delay is low. , The encoded data of the desired moving image can be decoded and reproduced.

また,本発明の関連発明は,複数の動画像の間で予測符号化して作成された符号化データを多重化してファイルを構成する多重化方法であって,動画像のフレーム先頭のファイル中の位置情報と,動画像を区別する動画像番号と,該フレームを復号する際に必要な動画像の動画像番号である参照動画像番号を多重化し,符号化データの特定の位置に設定することを特徴とする。 Further, a related invention of the present invention is a multiplexing method for forming a file by multiplexing encoded data created by predictive encoding between a plurality of moving images, in a file at the head of a frame of a moving image. Multiplexing position information, a moving picture number for distinguishing moving pictures, and a reference moving picture number that is a moving picture number of a moving picture necessary for decoding the frame, and setting it to a specific position of encoded data It is characterized by.

この多重化方法によれば,符号化データ中の特定の位置にある管理情報を復号することで,すべての符号化データを復号することなく,復号する対象のフレームを復号するために必要な動画像の動画像番号である参照動画像番号を求めて,その動画像の符号化データ全てを取り出すことができる。これにより,符号化データ中に含まれる動画像間の参照関係の情報を探索して復号することなく,低演算負荷かつ低遅延で,所望の動画像の符号化データを復号して再生することができる。   According to this multiplexing method, by decoding management information at a specific position in the encoded data, the moving image necessary for decoding the frame to be decoded without decoding all the encoded data. A reference moving image number which is a moving image number of an image is obtained, and all encoded data of the moving image can be extracted. As a result, it is possible to decode and reproduce the encoded data of a desired moving image with low computational load and low delay without searching for and decoding information on the reference relationship between the moving images included in the encoded data. Can do.

参照動画像番号の他に,参照動画像番号に対応する動画像番号のフレームのフレーム先頭位置情報を,管理情報として多重化してもよい。   In addition to the reference moving image number, frame head position information of a frame having a moving image number corresponding to the reference moving image number may be multiplexed as management information.

この発明において,参照動画像番号等の管理情報を符号化データに多重化する位置については,すべての符号化データの最後,すべての符号化データの前などの,予め定められたファイル中の位置や,符号化データを含むトラックの前や後などでもよい。   In the present invention, with respect to the position where the management information such as the reference video number is multiplexed with the encoded data, the position in the predetermined file such as the end of all the encoded data, before all the encoded data, etc. Or before or after the track including the encoded data.

また他の本発明の関連発明は,複数の動画像の間で予測符号化して作成された符号化データを多重化してファイルを構成する多重化方法であって,動画像のフレーム先頭のファイル中の位置情報と,動画像を区別する動画像番号と,該フレームを復号する際に必要な動画像の動画像番号である参照動画像番号を第一のトラックとし,符号化データと動画像間の予測符号化における参照関係情報を第二のトラックとして,第一のトラックと第二のトラックをそれぞれ独立に多重化することを特徴とする。 Another related invention of the present invention is a multiplexing method in which encoded data created by predictive encoding between a plurality of moving images is multiplexed to form a file. Position information, a moving image number for distinguishing moving images, and a reference moving image number which is a moving image number of a moving image necessary for decoding the frame as a first track, and between encoded data and moving images The reference relationship information in the predictive encoding is used as the second track, and the first track and the second track are multiplexed independently.

この多重化方法によれば,第一のトラックに含まれる参照動画像番号を復号することで,第二のトラックの符号化データを復号することなく,ファイルから復号する対象のフレームを復号するために必要な動画像の動画像番号を求めて,その動画像の符号化データ全てを取り出すことができる。これにより,符号化データ中に含まれる動画像間の参照関係の情報を復号することなく,低演算負荷かつ低遅延で,所望の動画像の符号化データを復号して再生することができる。   According to this multiplexing method, by decoding the reference video number included in the first track, the frame to be decoded from the file can be decoded without decoding the encoded data of the second track. Thus, it is possible to obtain the moving image number of the moving image necessary for obtaining all the encoded data of the moving image. As a result, the encoded data of the desired moving image can be decoded and reproduced with low computational load and low delay without decoding the reference relationship information between the moving images included in the encoded data.

さらに他の本発明の関連発明は,複数の動画像の間で予測符号化して作成された符号化データを多重化してファイルを構成する多重化方法であって,動画像のフレーム先頭のファイル中の位置情報と,動画像を区別する動画像番号と,該フレームの復号画像または符号化データが他の動画像の復号に利用される場合には,その利用先の動画像の動画像番号である利用先動画像番号を多重化し,符号化データの特定の位置に設定することを特徴とする。 Still another related invention of the present invention is a multiplexing method for forming a file by multiplexing encoded data created by predictive encoding between a plurality of moving images, and in a file at the head of a frame of a moving image. If the decoded image or encoded data of the frame is used for decoding other moving images, the position information of the moving image, the moving image number of the moving image of the use destination, It is characterized in that a certain use destination moving picture number is multiplexed and set at a specific position of encoded data.

この多重化方法によれば,符号化データ中の特定の位置にある情報を復号することで,すべての符号化データを復号することなく,特定のフレーム(処理対象フレーム)について,以後のフレーム(利用先フレーム)の符号化データを復号する際に,処理対象フレームの復号画像または符号化データを利用するかどうかを判定することができる。これにより,映像データを配信する際の配信サーバの処理負荷を低減できる。例えば,映像配信サーバがファイルを読み込んで,クライアントが所望の動画像の符号化データを要求する配信システムにおいて,クライアントが要求する動画像の利用先フレームの符号化データを配信する際に,利用先フレームの復号で必要な処理対象フレームの符号化データを選択して配信することができる。   According to this multiplexing method, by decoding the information at a specific position in the encoded data, the subsequent frame (frame to be processed) can be determined for a specific frame (processing target frame) without decoding all the encoded data. When decoding the encoded data of the use destination frame), it is possible to determine whether to use the decoded image or encoded data of the processing target frame. Thereby, the processing load of the distribution server when distributing the video data can be reduced. For example, in a distribution system in which a video distribution server reads a file and a client requests encoded data of a desired moving image, when the encoded data of a moving image usage frame requested by the client is distributed, It is possible to select and distribute encoded data of a processing target frame necessary for frame decoding.

この発明において,利用先動画像番号等の管理情報を符号化データに多重化する位置については,すべての符号化データの最後,すべての符号化データの前などの,予め定められたファイル中の位置や,符号化データを含むトラックの前や後などでもよい。   In the present invention, the position where the management information such as the use destination video number is multiplexed with the encoded data, the end of all the encoded data, before all the encoded data, etc. It may be before or after the position or the track containing the encoded data.

さらに他の本発明の関連発明は,複数の動画像の間で予測符号化して作成された符号化データを多重化してファイルを構成する多重化方法であって,動画像のフレーム先頭のファイル中の位置情報と,動画像を区別する動画像番号と,該フレームの復号画像または符号化データが他の動画像の復号に利用される場合には,その利用先の動画像の動画像番号である利用先動画像番号を第一のトラックとし,符号化データと動画像間の予測符号化における参照関係情報を第二のトラックとして,第一のトラックと第二のトラックをそれぞれ独立に多重化することを特徴とする。 Still another related invention of the present invention is a multiplexing method for forming a file by multiplexing encoded data created by predictive encoding between a plurality of moving images, and in a file at the head of a frame of a moving image. If the decoded image or encoded data of the frame is used for decoding other moving images, the position information of the moving image, the moving image number of the moving image of the use destination, A certain destination video number is set as the first track, reference relationship information in predictive encoding between the encoded data and the video is set as the second track, and the first track and the second track are multiplexed independently. It is characterized by doing.

この多重化方法によれば,第一のトラックに含まれる管理情報を復号することで,第二のトラックの符号化データを復号することなく,特定のフレーム(処理対象フレーム)について,以後のフレーム(利用先フレーム)の符号化データを復号する際に,処理対象フレームの復号画像または符号化データを利用するかどうかを判定することができる。これにより,映像データを配信する際の配信サーバの処理負荷を低減できる。例えば,映像配信サーバがファイルを読み込んで,クライアントが所望の動画像の符号化データを要求する配信システムにおいて,クライアントが要求する動画像の利用先フレームの符号化データを配信する際に,利用先フレームの復号で必要な処理対象フレームの符号化データを選択して配信することができる。   According to this multiplexing method, the management information contained in the first track is decoded, so that the subsequent frames of the specific frame (processing target frame) are decoded without decoding the encoded data of the second track. When decoding the encoded data of (use destination frame), it is possible to determine whether to use the decoded image or encoded data of the processing target frame. Thereby, the processing load of the distribution server when distributing the video data can be reduced. For example, in a distribution system in which a video distribution server reads a file and a client requests encoded data of a desired moving image, when the encoded data of a moving image usage frame requested by the client is distributed, It is possible to select and distribute encoded data of a processing target frame necessary for frame decoding.

なお,以上では,フレーム単位に管理情報を設定する例について説明したが,本発明において,フレームを分割したスライス単位に管理情報を設定してもよい。この場合には,管理情報はフレーム先頭位置の代わりに,スライス先頭位置情報を含む。また,多重化や読み取りもフレーム単位ではなく,スライス単位で行う。   Although an example in which management information is set for each frame has been described above, in the present invention, management information may be set for each slice obtained by dividing a frame. In this case, the management information includes slice head position information instead of the frame head position. In addition, multiplexing and reading are performed not on a frame basis but on a slice basis.

本発明によれば,複数の動画像をまとめて符号化した符号化データを多重化したファイルの中から,符号化データを復号することなく低演算負荷で,独立して復号できる動画像の符号化データや,所望の動画像の符号化データを取り出すことができる。   According to the present invention, a moving image code that can be decoded independently from a file obtained by multiplexing encoded data obtained by collectively encoding a plurality of moving images with low computational load without decoding the encoded data. Encoded data and encoded data of a desired moving image can be extracted.

以下,図面を用いて本発明および関連発明による多重化方法と,多重化されたファイルを読み込んで再生する方法の実施例を説明する。主に,以下で説明する第1の実施例が本発明の実施例であり,第2,第3の実施例が本発明の関連発明の実施例である。 Embodiments of a multiplexing method according to the present invention and related invention and a method for reading and reproducing a multiplexed file will be described below with reference to the drawings. The first embodiment described below is mainly an embodiment of the present invention, and the second and third embodiments are embodiments of the related invention of the present invention.

第1の実施例では,フレーム先頭の位置情報と動画像番号と独立復号識別情報を管理情報として多重化し,全ての符号化データを多重化した最後に設定する場合の例を示す。動画像はA,B,C,Dの4つあり,予め符号化されていて,各動画像におけるフレーム先頭の位置情報は分かっているものとする。   In the first embodiment, an example is shown in which the frame head position information, moving picture number, and independent decoding identification information are multiplexed as management information, and all encoded data are set at the end of multiplexing. It is assumed that there are four moving images A, B, C, and D, which are encoded in advance, and the position information of the frame head in each moving image is known.

図1に,多重化装置の構成を示す。この多重化装置10は,動画像A,B,C,Dの符号化データをそれぞれ入力する動画像A符号化データ入力部101,動画像B符号化データ入力部102,動画像C符号化データ入力部103,動画像D符号化データ入力部104と,各動画像のフレーム先頭の動画像中の位置情報をそれぞれ入力する動画像Aフレーム位置情報入力部106,動画像Bフレーム位置情報入力部107,動画像Cフレーム位置情報入力部108,動画像Dフレーム位置情報入力部109と,動画像間の参照関係を示す情報を入力する参照関係データ入力部105と,動画像の符号化データやフレーム位置情報の入力を切り替えるデータ切り替え部110と,符号化データを多重化する符号化データ多重化部111と,動画像番号を設定する動画像番号設定部112と,独立復号識別情報を設定する独立復号識別情報設定部113と,フレーム位置の先頭情報を設定するフレーム先頭位置情報設定部114と,管理情報を多重化する管理情報多重化部116と,符号化データと管理情報を多重化するファイル多重化部115とから構成される。   FIG. 1 shows the configuration of the multiplexing apparatus. The multiplexing apparatus 10 includes a moving image A encoded data input unit 101, a moving image B encoded data input unit 102, and a moving image C encoded data to which encoded data of moving images A, B, C, and D are input. Input unit 103, moving image D encoded data input unit 104, moving image A frame position information input unit 106 for inputting position information in the moving image at the head of each moving image, moving image B frame position information input unit 107, a moving image C frame position information input unit 108, a moving image D frame position information input unit 109, a reference relationship data input unit 105 for inputting information indicating a reference relationship between moving images, encoded data of a moving image, Data switching unit 110 that switches input of frame position information, encoded data multiplexing unit 111 that multiplexes encoded data, and moving image number setting unit that sets a moving image number 12, an independent decoding identification information setting unit 113 for setting independent decoding identification information, a frame head position information setting unit 114 for setting head information of a frame position, a management information multiplexing unit 116 for multiplexing management information, It comprises a file multiplexing unit 115 that multiplexes encoded data and management information.

以上のうち,動画像番号設定部112では,動画像A,B,C,Dに対してそれぞれ動画像番号0,1,2,3を設定するものとする。動画像AからDまでのフレーム位置情報入力部101〜104は,次のフレームの位置情報を入力するものとする。フレーム先頭位置情報設定部114は,各動画像のフレーム位置情報をカウントし,符号化データ多重化部111で符号化データを多重化した後における各フレームの位置情報を設定するものとする。独立復号識別情報設定部113は,独立して復号できる場合には独立復号識別情報として1を設定し,独立して復号できない場合には独立復号識別情報として0を設定するものとする。ファイル多重化部115は,符号化データ多重化部111で作成された符号化データの後に,管理情報多重化部116で作成された管理情報を設定するものとする。符号化データ多重化部111は,参照関係データがある場合には各動画像の符号化データの前に多重化するものとする。   Among the above, the moving image number setting unit 112 sets moving image numbers 0, 1, 2, and 3 for moving images A, B, C, and D, respectively. Frame position information input units 101 to 104 for moving images A to D are assumed to input position information of the next frame. The frame head position information setting unit 114 counts the frame position information of each moving image, and sets the position information of each frame after the encoded data multiplexing unit 111 multiplexes the encoded data. The independent decoding identification information setting unit 113 sets 1 as independent decoding identification information when independent decoding is possible, and sets 0 as independent decoding identification information when independent decoding is impossible. The file multiplexing unit 115 sets the management information created by the management information multiplexing unit 116 after the coded data created by the coded data multiplexing unit 111. When there is reference relation data, the encoded data multiplexing unit 111 multiplexes the encoded data before the encoded data of each moving image.

データ切り替え部110は,参照関係データに従い,次のように符号化データとファイル先頭位置情報を切り替えるものとする。動画像AからDまで順に,まず独立して復号できる動画像かどうかを判定する。独立して復号できる場合には,そのまま選択する。独立して復号できない場合には,参照する動画像の符号化データを既に選択したかどうかを判定する。既に選択した場合には,そのまま選択し,まだ選択していない場合には,参照する動画像が全て選択されるまで,その動画像を選択しない。   The data switching unit 110 switches between encoded data and file head position information as follows according to the reference relation data. In order from the moving images A to D, it is first determined whether the moving images can be decoded independently. If it can be decoded independently, select it as it is. If it cannot be decoded independently, it is determined whether the encoded data of the moving image to be referred to has already been selected. If it has already been selected, it is selected as it is. If it has not been selected yet, the moving image is not selected until all the moving images to be referenced are selected.

動画像間の参照関係は,次のようになっているとする。まず先頭から2フレームでは,動画像AとCは独立して復号でき,動画像Bは動画像Aを参照し,動画像Dは動画像Cを参照するものとする。その後2フレームでは,動画像AとDは独立して復号でき,動画像Bと動画像Cは動画像Aと動画像Dを参照するものとする。   Assume that the reference relationship between moving images is as follows. First, in the first two frames, moving images A and C can be decoded independently, moving image B refers to moving image A, and moving image D refers to moving image C. Thereafter, in two frames, moving images A and D can be decoded independently, and moving images B and C refer to moving images A and D.

以上の前提で動画像A,B,C,Dを4フレーム多重化する場合には,これらの動画像の各フレームは,次のように多重化される。   When four frames of the moving images A, B, C, and D are multiplexed on the above assumption, each frame of these moving images is multiplexed as follows.

まず,先頭フレームについては次のように多重化される。参照関係データ入力部105は,動画像間の参照関係データを入力する。データ切り替え部110は,参照関係データに従って符号化データを多重化する順序を決定する。ここでは,次の順序に決定する。動画像Aは独立して復号できるため,まず動画像Aを選択する。動画像Bは動画像Aのみを参照するため,次に動画像Bを選択する。動画像Cは独立して復号できるため,次に動画像Cを選択する。そして動画像Dを選択する。符号化データ多重化部111は,参照関係データを多重化する。フレーム先頭位置情報設定部114は,参照関係データのデータサイズ分だけファイルサイズを加算する。   First, the first frame is multiplexed as follows. The reference relationship data input unit 105 inputs reference relationship data between moving images. The data switching unit 110 determines the order in which the encoded data is multiplexed according to the reference relation data. Here, the order is determined as follows. Since the moving image A can be decoded independently, the moving image A is first selected. Since the moving image B refers only to the moving image A, the moving image B is selected next. Since the moving image C can be decoded independently, the moving image C is selected next. Then, the moving image D is selected. The encoded data multiplexing unit 111 multiplexes the reference relation data. The frame head position information setting unit 114 adds the file size by the data size of the reference relation data.

多重化する順序に従い,データ切り替え部110は,符号化データとフレーム先頭位置情報を切り替える。まず動画像Aを選択する。動画像A符号化データ入力部101は,符号化データを1フレーム分入力し,動画像Aフレーム位置情報入力部106は,次のフレームのフレーム位置情報を入力する。符号化データ多重化部111は,符号化データを多重化する。フレーム先頭位置情報設定部114は,入力されたフレーム位置情報をファイルサイズに加算し,ファイルのフレーム位置情報として設定する。動画像番号設定部112は,動画像番号0を設定する。独立復号識別情報設定部113は,独立復号識別情報として1を設定する。管理情報多重化部116は,フレーム位置情報と動画像番号と独立復号識別情報を多重化する。   In accordance with the order of multiplexing, the data switching unit 110 switches between encoded data and frame head position information. First, the moving image A is selected. The moving image A encoded data input unit 101 inputs encoded data for one frame, and the moving image A frame position information input unit 106 inputs frame position information of the next frame. The encoded data multiplexing unit 111 multiplexes encoded data. The frame head position information setting unit 114 adds the input frame position information to the file size and sets it as the frame position information of the file. The moving image number setting unit 112 sets moving image number 0. The independent decoding identification information setting unit 113 sets 1 as the independent decoding identification information. The management information multiplexing unit 116 multiplexes the frame position information, the moving image number, and the independent decoding identification information.

続いてデータ切り替え部110は,動画像Bを選択する。動画像B符号化データ入力部102は,符号化データを1フレーム分入力し,動画像Bフレーム位置情報入力部107は,次のフレームのフレーム位置情報を入力する。符号化データ多重化部111は,符号化データを多重化する。フレーム先頭位置情報設定部114は,入力されたフレーム位置情報をファイルサイズに加算し,ファイルのフレーム位置情報として設定する。動画像番号設定部112は,動画像番号1を設定する。独立復号識別情報設定部113は,独立復号識別情報として0を設定する。管理情報多重化部116は,フレーム位置情報と動画像番号と独立復号識別情報を多重化する。   Subsequently, the data switching unit 110 selects the moving image B. The moving image B encoded data input unit 102 inputs encoded data for one frame, and the moving image B frame position information input unit 107 inputs frame position information of the next frame. The encoded data multiplexing unit 111 multiplexes encoded data. The frame head position information setting unit 114 adds the input frame position information to the file size and sets it as the frame position information of the file. The moving image number setting unit 112 sets moving image number 1. The independent decoding identification information setting unit 113 sets 0 as the independent decoding identification information. The management information multiplexing unit 116 multiplexes the frame position information, the moving image number, and the independent decoding identification information.

続いてデータ切り替え部110は,動画像Cを選択する。動画像C符号化データ入力部103は,符号化データを1フレーム分入力し,動画像Cフレーム位置情報入力部108は,次のフレームのフレーム位置情報を入力する。符号化データ多重化部111は,符号化データを多重化する。フレーム先頭位置情報設定部114は,入力されたフレーム位置情報をファイルサイズに加算し,ファイルのフレーム位置情報として設定する。動画像番号設定部112は,動画像番号2を設定する。独立復号識別情報設定部113は,独立復号識別情報として1を設定する。管理情報多重化部116は,フレーム位置情報と動画像番号と独立復号識別情報を多重化する。   Subsequently, the data switching unit 110 selects the moving image C. The moving image C encoded data input unit 103 inputs encoded data for one frame, and the moving image C frame position information input unit 108 inputs the frame position information of the next frame. The encoded data multiplexing unit 111 multiplexes encoded data. The frame head position information setting unit 114 adds the input frame position information to the file size and sets it as the frame position information of the file. The moving image number setting unit 112 sets moving image number 2. The independent decoding identification information setting unit 113 sets 1 as the independent decoding identification information. The management information multiplexing unit 116 multiplexes the frame position information, the moving image number, and the independent decoding identification information.

続いてデータ切り替え部110は,動画像Dを選択する。動画像D符号化データ入力部104は,符号化データを1フレーム分入力し,動画像Dフレーム位置情報入力部109は,次のフレームのフレーム位置情報を入力する。符号化データ多重化部111は,符号化データを多重化する。フレーム先頭位置情報設定部114は,入力されたフレーム位置情報をファイルサイズに加算し,ファイルのフレーム位置情報として設定する。動画像番号設定部112は,動画像番号3を設定する。独立復号識別情報設定部113は,独立復号識別情報として0を設定する。管理情報多重化部116は,フレーム位置情報と動画像番号と独立復号識別情報を多重化する。   Subsequently, the data switching unit 110 selects the moving image D. The moving image D encoded data input unit 104 inputs encoded data for one frame, and the moving image D frame position information input unit 109 inputs frame position information of the next frame. The encoded data multiplexing unit 111 multiplexes encoded data. The frame head position information setting unit 114 adds the input frame position information to the file size and sets it as the frame position information of the file. The moving image number setting unit 112 sets moving image number 3. The independent decoding identification information setting unit 113 sets 0 as the independent decoding identification information. The management information multiplexing unit 116 multiplexes the frame position information, the moving image number, and the independent decoding identification information.

以上の動画像A,B,C,Dの処理をそれぞれさらに1フレーム分実行する。   The above processing of the moving images A, B, C, and D is further performed for one frame.

次に参照関係データ入力部105は,動画像間の参照関係データを入力する。データ切り替え部110は,参照関係データに従って符号化データを多重化する順序を決定する。ここでは,次の順序に決定する。動画像Aは独立して復号できるため,まず動画像Aを選択する。動画像Bは動画像Aと動画像Dを参照するため,動画像Bは選択しない。動画像Cは動画像Aと動画像Dを参照するため,動画像Cは選択しない。動画像Dは独立して復号できるため,次に動画像Dを選択する。そして動画像Bを選択し,動画像Cを選択する。符号化データ多重化部111は,参照関係データを多重化する。フレーム先頭位置情報設定部114は,参照関係データのデータサイズ分だけファイルサイズを加算する。   Next, the reference relationship data input unit 105 inputs reference relationship data between moving images. The data switching unit 110 determines the order in which the encoded data is multiplexed according to the reference relation data. Here, the order is determined as follows. Since the moving image A can be decoded independently, the moving image A is first selected. Since the moving image B refers to the moving image A and the moving image D, the moving image B is not selected. Since the moving image C refers to the moving image A and the moving image D, the moving image C is not selected. Since the moving image D can be decoded independently, the moving image D is selected next. Then, the moving image B is selected, and the moving image C is selected. The encoded data multiplexing unit 111 multiplexes the reference relation data. The frame head position information setting unit 114 adds the file size by the data size of the reference relation data.

多重化する順序に従い,データ切り替え部110は,符号化データとフレーム先頭位置情報を切り替える。まず動画像Aを選択する。動画像A符号化データ入力部101は,符号化データを1フレーム分入力し,動画像Aフレーム位置情報入力部106は,次のフレームのフレーム位置情報を入力する。符号化データ多重化部111は,符号化データを多重化する。フレーム先頭位置情報設定部114は,入力されたフレーム位置情報をファイルサイズに加算し,ファイルのフレーム位置情報として設定する。動画像番号設定部112は,動画像番号0を設定する。独立復号識別情報設定部113は,独立復号識別情報として1を設定する。管理情報多重化部116は,フレーム位置情報と動画像番号と独立復号識別情報を多重化する。   In accordance with the order of multiplexing, the data switching unit 110 switches between encoded data and frame head position information. First, the moving image A is selected. The moving image A encoded data input unit 101 inputs encoded data for one frame, and the moving image A frame position information input unit 106 inputs frame position information of the next frame. The encoded data multiplexing unit 111 multiplexes encoded data. The frame head position information setting unit 114 adds the input frame position information to the file size and sets it as the frame position information of the file. The moving image number setting unit 112 sets moving image number 0. The independent decoding identification information setting unit 113 sets 1 as the independent decoding identification information. The management information multiplexing unit 116 multiplexes the frame position information, the moving image number, and the independent decoding identification information.

続いてデータ切り替え部110は,動画像Dを選択する。動画像D符号化データ入力部104は,符号化データを1フレーム分入力し,動画像Dフレーム位置情報入力部109は,次のフレームのフレーム位置情報を入力する。符号化データ多重化部111は,符号化データを多重化する。フレーム先頭位置情報設定部114は,入力されたフレーム位置情報をファイルサイズに加算し,ファイルのフレーム位置情報として設定する。動画像番号設定部112は,動画像番号3を設定する。独立復号識別情報設定部113は,独立復号識別情報として1を設定する。管理情報多重化部116は,フレーム位置情報と動画像番号と独立復号識別情報を多重化する。   Subsequently, the data switching unit 110 selects the moving image D. The moving image D encoded data input unit 104 inputs encoded data for one frame, and the moving image D frame position information input unit 109 inputs frame position information of the next frame. The encoded data multiplexing unit 111 multiplexes encoded data. The frame head position information setting unit 114 adds the input frame position information to the file size and sets it as the frame position information of the file. The moving image number setting unit 112 sets moving image number 3. The independent decoding identification information setting unit 113 sets 1 as the independent decoding identification information. The management information multiplexing unit 116 multiplexes the frame position information, the moving image number, and the independent decoding identification information.

続いてデータ切り替え部110は,動画像Bを選択する。動画像B符号化データ入力部102は,符号化データを1フレーム分入力し,動画像Bフレーム位置情報入力部107は,次のフレームのフレーム位置情報を入力する。符号化データ多重化部111は,符号化データを多重化する。フレーム先頭位置情報設定部114は,入力されたフレーム位置情報をファイルサイズに加算し,ファイルのフレーム位置情報として設定する。動画像番号設定部112は,動画像番号1を設定する。独立復号識別情報設定部113は,独立復号識別情報として0を設定する。管理情報多重化部116は,フレーム位置情報と動画像番号と独立復号識別情報を多重化する。   Subsequently, the data switching unit 110 selects the moving image B. The moving image B encoded data input unit 102 inputs encoded data for one frame, and the moving image B frame position information input unit 107 inputs frame position information of the next frame. The encoded data multiplexing unit 111 multiplexes encoded data. The frame head position information setting unit 114 adds the input frame position information to the file size and sets it as the frame position information of the file. The moving image number setting unit 112 sets moving image number 1. The independent decoding identification information setting unit 113 sets 0 as the independent decoding identification information. The management information multiplexing unit 116 multiplexes the frame position information, the moving image number, and the independent decoding identification information.

続いてデータ切り替え部110は,動画像Cを選択する。動画像C符号化データ入力部103は,符号化データを1フレーム分入力し,動画像Cフレーム位置情報入力部108は,次のフレームのフレーム位置情報を入力する。符号化データ多重化部111は,符号化データを多重化する。フレーム先頭位置情報設定部114は,入力されたフレーム位置情報をファイルサイズに加算し,ファイルのフレーム位置情報として設定する。動画像番号設定部112は,動画像番号2を設定する。独立復号識別情報設定部113は,独立復号識別情報として0を設定する。管理情報多重化部116は,フレーム位置情報と動画像番号と独立復号識別情報を多重化する。   Subsequently, the data switching unit 110 selects the moving image C. The moving image C encoded data input unit 103 inputs encoded data for one frame, and the moving image C frame position information input unit 108 inputs the frame position information of the next frame. The encoded data multiplexing unit 111 multiplexes encoded data. The frame head position information setting unit 114 adds the input frame position information to the file size and sets it as the frame position information of the file. The moving image number setting unit 112 sets moving image number 2. The independent decoding identification information setting unit 113 sets 0 as the independent decoding identification information. The management information multiplexing unit 116 multiplexes the frame position information, the moving image number, and the independent decoding identification information.

以上の動画像A,D,B,Cの処理をそれぞれさらに1フレーム分実行する。最後にファイル多重化部115は,符号化データ多重化部111で得られる符号化データと,管理情報多重化部116で得られる管理情報を多重化してファイルを作成する。以上の処理でファイルに多重化することができる。   The above processing of the moving images A, D, B, and C is further executed for one frame. Finally, the file multiplexing unit 115 multiplexes the encoded data obtained by the encoded data multiplexing unit 111 and the management information obtained by the management information multiplexing unit 116 to create a file. By the above processing, it can be multiplexed into a file.

本実施例では,予め符号化して得られた符号化データとファイル先頭位置情報から多重化してファイルを作成する例を示したが,符号化データを作成しつつファイルを構成してもよい。   In the present embodiment, an example is shown in which a file is created by multiplexing from encoded data obtained by encoding in advance and file head position information, but a file may be configured while creating encoded data.

次に,多重化されたファイルから特定の動画像の符号化データを取り出すファイル読み込み方法について動作を説明する。図2にファイル読み込み装置の構成を示す。この図2に示すファイル読み込み装置20は,ファイルを読み込むファイル入力部201と,管理情報を読み取る管理情報読み取り部202と,管理情報から所望の動画像番号を探索する動画像番号探索部203と,管理情報から独立復号識別情報を判定する独立復号識別情報判定部204と,管理情報からフレーム先頭位置情報を読み取るフレーム先頭位置情報設定部205と,フレーム先頭位置情報に従ってファイルから符号化データを読み取る符号化データ読み取り部206とで構成される。   Next, the operation of a file reading method for extracting encoded data of a specific moving image from the multiplexed file will be described. FIG. 2 shows the configuration of the file reading apparatus. 2 includes a file input unit 201 that reads a file, a management information reading unit 202 that reads management information, a moving image number searching unit 203 that searches for a desired moving image number from the management information, An independent decoding identification information determination unit 204 that determines independent decoding identification information from management information, a frame head position information setting unit 205 that reads frame head position information from management information, and a code that reads encoded data from a file according to the frame head position information And a digitized data reading unit 206.

図1の多重化装置10で作成されたファイルから動画像Dで独立して復号できるフレームの符号化データを読み取る場合の動作を示す。   An operation when reading encoded data of a frame that can be independently decoded with a moving image D from a file created by the multiplexing apparatus 10 of FIG. 1 will be described.

ファイル入力部201は,ファイルを入力する。管理情報読み取り部202は,ファイルの後半にある管理情報を読み取る。動画像番号探索部203は,動画像Dの第1フレームの管理情報を探索する。独立復号識別情報判定部204は,探索して得られた管理情報の独立復号識別情報から独立して復号できるかどうかを判定する。第1フレームでは独立復号識別情報は0であるので独立して復号できない。   The file input unit 201 inputs a file. The management information reading unit 202 reads management information in the second half of the file. The moving image number search unit 203 searches for management information of the first frame of the moving image D. The independent decoding identification information determination unit 204 determines whether or not the decoding can be performed independently from the independent decoding identification information of the management information obtained by the search. Since the independent decoding identification information is 0 in the first frame, it cannot be decoded independently.

次に動画像番号探索部203は,動画像Dの第2フレームの管理情報を探索する。独立復号識別情報判定部204は,探索して得られた管理情報の独立復号識別情報から独立して復号できるかどうかを判定する。第2フレームでは独立復号識別情報は0であるので独立して復号できない。   Next, the moving image number search unit 203 searches for management information of the second frame of the moving image D. The independent decoding identification information determination unit 204 determines whether or not the decoding can be performed independently from the independent decoding identification information of the management information obtained by the search. In the second frame, the independent decoding identification information is 0 and cannot be decoded independently.

次に動画像番号探索部203は,動画像Dの第3フレームの管理情報を探索する。独立復号識別情報判定部204は,探索して得られた管理情報の独立復号識別情報から独立して復号できるかどうかを判定する。第3フレームでは独立復号識別情報は1であるので独立して復号できる。そしてフレーム先頭位置情報設定部205は,このフレームのフレーム先頭位置情報を設定する。符号化データ読み取り部206は,設定されたファイル位置から符号化データを読み取る。このとき,フレーム先頭位置情報設定部205で得られる次のフレームの先頭位置までを読み取る。   Next, the moving image number search unit 203 searches the management information of the third frame of the moving image D. The independent decoding identification information determination unit 204 determines whether or not the decoding can be performed independently from the independent decoding identification information of the management information obtained by the search. Since the independent decoding identification information is 1 in the third frame, it can be decoded independently. The frame head position information setting unit 205 sets the frame head position information of this frame. The encoded data reading unit 206 reads encoded data from the set file position. At this time, the frame head position information setting unit 205 reads up to the head position of the next frame.

次に動画像番号探索部203は,動画像Dの第4フレームの管理情報を探索する。独立復号識別情報判定部204は,探索して得られた管理情報の独立復号識別情報から独立して復号できるかどうかを判定する。第3フレームでは独立復号識別情報は1であるので独立して復号できる。そしてフレーム先頭位置情報設定部205は,このフレームのフレーム先頭位置情報を設定する。符号化データ読み取り部206は,設定されたファイル位置から符号化データを読み取る。このとき,フレーム先頭位置情報設定部205で得られる次のフレームの先頭位置までを読み取る。   Next, the moving image number search unit 203 searches for management information of the fourth frame of the moving image D. The independent decoding identification information determination unit 204 determines whether or not the decoding can be performed independently from the independent decoding identification information of the management information obtained by the search. Since the independent decoding identification information is 1 in the third frame, it can be decoded independently. The frame head position information setting unit 205 sets the frame head position information of this frame. The encoded data reading unit 206 reads encoded data from the set file position. At this time, the frame head position information setting unit 205 reads up to the head position of the next frame.

以上により,動画像Dについて,独立して復号できるフレームの符号化データを取り出すことができる。   As described above, the encoded data of the frame that can be decoded independently can be extracted from the moving image D.

次に,多重化されたファイルから独立して復号できる動画像の符号化データを取り出すファイル読み込み方法について動作を説明する。図3にファイル読み込み装置の構成を示す。この図3に示すファイル読み込み装置21は,ファイルを読み込むファイル入力部201と,管理情報を読み取る管理情報読み取り部202と,管理情報から所望の独立復号識別情報を探索する独立復号識別情報探索部207と,管理情報からフレーム先頭位置情報を読み取るフレーム先頭位置情報設定部205と,フレーム先頭位置情報に従ってファイルから符号化データを読み取る符号化データ読み取り部206とで構成される。   Next, the operation of a file reading method for extracting encoded data of moving images that can be decoded independently from the multiplexed file will be described. FIG. 3 shows the configuration of the file reading apparatus. The file reading apparatus 21 shown in FIG. 3 includes a file input unit 201 that reads a file, a management information reading unit 202 that reads management information, and an independent decoding identification information searching unit 207 that searches for desired independent decoding identification information from the management information. A frame head position information setting unit 205 that reads frame head position information from management information, and an encoded data reading unit 206 that reads encoded data from a file according to the frame head position information.

図1の多重化装置10で作成されたファイルから独立して復号できる動画像の符号化データを読み取る場合の動作を示す。   An operation when reading encoded data of a moving image that can be decoded independently from a file created by the multiplexing apparatus 10 of FIG. 1 will be described.

ファイル入力部201は,ファイルを入力する。管理情報読み取り部202は,ファイルの後半にある管理情報を読み取る。独立復号識別情報探索部207は,第1フレームの管理情報で独立復号識別情報が1のものを探索する。独立復号識別情報が1として,まず動画像Aが探索される。そしてフレーム先頭位置情報設定部205は,このフレームのフレーム先頭位置情報を設定する。符号化データ読み取り部206は,設定されたファイル位置から符号化データを読み取る。このとき,フレーム先頭位置情報設定部205で得られる次のフレームの先頭位置までを読み取る。続いて,独立復号識別情報探索部207では動画像Cが探索される。そしてフレーム先頭位置情報設定部205は,このフレームのフレーム先頭位置情報を設定する。符号化データ読み取り部206は,設定されたファイル位置から符号化データを読み取る。このとき,フレーム先頭位置情報設定部205で得られる次のフレームの先頭位置までを読み取る。以上から動画像Aと動画像Cの符号化データを読み取る。   The file input unit 201 inputs a file. The management information reading unit 202 reads management information in the second half of the file. The independent decoding identification information search unit 207 searches the management information of the first frame whose independent decoding identification information is 1. First, the moving image A is searched with the independent decoding identification information set to 1. The frame head position information setting unit 205 sets the frame head position information of this frame. The encoded data reading unit 206 reads encoded data from the set file position. At this time, the frame head position information setting unit 205 reads up to the head position of the next frame. Subsequently, the independent decoding identification information search unit 207 searches for the moving image C. The frame head position information setting unit 205 sets the frame head position information of this frame. The encoded data reading unit 206 reads encoded data from the set file position. At this time, the frame head position information setting unit 205 reads up to the head position of the next frame. From the above, the encoded data of the moving image A and the moving image C are read.

第2フレームについても同様にして動画像Aと動画像Cの符号化データを読み取る。   Similarly, the encoded data of the moving image A and the moving image C is read for the second frame.

次に独立復号識別情報探索部207は,第3フレームの管理情報で独立復号識別情報が1のものを探索する。独立復号識別情報が1として,まず動画像Aが探索される。そしてフレーム先頭位置情報設定部205は,このフレームのフレーム先頭位置情報を設定する。符号化データ読み取り部206は,設定されたファイル位置から符号化データを読み取る。このとき,フレーム先頭位置情報設定部205で得られる次のフレームの先頭位置までを読み取る。続いて,独立復号識別情報探索部207では動画像Dが探索される。そしてフレーム先頭位置情報設定部205は,このフレームのフレーム先頭位置情報を設定する。符号化データ読み取り部206は,設定されたファイル位置から符号化データを読み取る。このとき,フレーム先頭位置情報設定部205で得られる次のフレームの先頭位置までを読み取る。以上から動画像Aと動画像Dの符号化データを読み取る。   Next, the independent decoding identification information search unit 207 searches for the management information of the third frame whose independent decoding identification information is 1. First, the moving image A is searched with the independent decoding identification information set to 1. The frame head position information setting unit 205 sets the frame head position information of this frame. The encoded data reading unit 206 reads encoded data from the set file position. At this time, the frame head position information setting unit 205 reads up to the head position of the next frame. Subsequently, the independent decoding identification information search unit 207 searches for the moving image D. The frame head position information setting unit 205 sets the frame head position information of this frame. The encoded data reading unit 206 reads encoded data from the set file position. At this time, the frame head position information setting unit 205 reads up to the head position of the next frame. From the above, the encoded data of the moving image A and the moving image D are read.

第4フレームについても同様にして動画像Aと動画像Cの符号化データを読み取る。   Similarly, the encoded data of the moving image A and the moving image C are read for the fourth frame.

以上により,独立して復号できる動画像の符号化データを取り出すことができる。   As described above, encoded video data that can be decoded independently can be extracted.

このように本実施例によれば,符号化データ中に含まれる参照関係データを復号することなく,独立して復号できるフレームの符号化データを取り出すことができる。   As described above, according to this embodiment, it is possible to extract encoded data of a frame that can be decoded independently without decoding the reference relation data included in the encoded data.

なお,本実施例の多重化装置10では符号化データの後に管理情報を設定したが,ファイルにトラックの構造が設定されている場合には,管理情報を第一トラックに設定し,符号化データを第二トラックに設定してもよい。   In the multiplexing apparatus 10 of this embodiment, the management information is set after the encoded data. However, when the track structure is set in the file, the management information is set in the first track and the encoded data is set. May be set as the second track.

図4に,ファイル中におけるトラックや管理情報の構成例を示す。作成されたファイルには,符号化データトラック30と管理情報トラック40とがあり,符号化データトラック30には,動画像A符号化データ31,動画像B符号化データ32,…が格納される。また,管理情報トラック40には,各時刻Tnごとの管理情報41,42,43,…が格納され,これらには各々,フレーム先頭位置情報,動画像番号,独立復号識別情報などの情報が格納される。   FIG. 4 shows a configuration example of tracks and management information in a file. The created file includes an encoded data track 30 and a management information track 40. In the encoded data track 30, moving image A encoded data 31, moving image B encoded data 32,... Are stored. . Further, management information 41, 42, 43,... For each time Tn is stored in the management information track 40, and information such as frame head position information, moving picture number, independent decoding identification information is stored in each of these. Is done.

次に第2の実施例として,フレーム先頭の位置情報と動画像番号と参照動画像番号を管理情報として多重化し,全ての符号化データを多重化した最後に設定する場合の例を示す。第1の実施例と同様に,動画像はA,B,C,Dの4つあり,予め符号化されていて,各動画像におけるフレーム先頭の位置情報は分かっているものとする。   Next, as a second embodiment, an example is shown in which the frame head position information, moving picture number, and reference moving picture number are multiplexed as management information, and all encoded data are set at the end of multiplexing. As in the first embodiment, it is assumed that there are four moving images A, B, C, and D, which are encoded in advance, and the position information of the frame head in each moving image is known.

図5に多重化装置の構成を示す。図5に示す多重化装置11は,動画像A,B,C,Dの符号化データをそれぞれ入力する動画像A符号化データ入力部101,動画像B符号化データ入力部102,動画像C符号化データ入力部103,動画像D符号化データ入力部104と,各動画像のフレーム先頭の動画像中の位置情報をそれぞれ入力する動画像Aフレーム位置情報入力部106,動画像Bフレーム位置情報入力部107,動画像Cフレーム位置情報入力部108,動画像Dフレーム位置情報入力部109と,動画像間の参照関係を示す情報を入力する参照関係データ入力部105と,動画像の符号化データやフレーム位置情報の入力を切り替えるデータ切り替え部110と,符号化データを多重化する符号化データ多重化部111と,動画像番号を設定する動画像番号設定部112と,参照動画像番号を設定する参照動画像番号設定部117と,フレーム位置の先頭情報を設定するフレーム先頭位置情報設定部114と,管理情報を多重化する管理情報多重化部116と,符号化データと管理情報を多重化するファイル多重化部115とから構成される。   FIG. 5 shows the configuration of the multiplexing apparatus. The multiplexing apparatus 11 shown in FIG. 5 has a moving image A encoded data input unit 101, a moving image B encoded data input unit 102, and a moving image C that input encoded data of moving images A, B, C, and D, respectively. Encoded data input unit 103, moving image D encoded data input unit 104, moving image A frame position information input unit 106 for inputting position information in the moving image at the head of each moving image, moving image B frame position An information input unit 107, a moving image C frame position information input unit 108, a moving image D frame position information input unit 109, a reference relationship data input unit 105 for inputting information indicating a reference relationship between moving images, and a moving image code Data switching unit 110 that switches input of encoded data and frame position information, encoded data multiplexing unit 111 that multiplexes encoded data, and moving image number that sets a moving image number A fixed part 112, a reference moving picture number setting part 117 for setting a reference moving picture number, a frame head position information setting part 114 for setting head information of a frame position, and a management information multiplexing part 116 for multiplexing management information. And a file multiplexing unit 115 for multiplexing the encoded data and the management information.

以上のうち,動画像番号設定部112では,動画像A,B,C,Dに対してそれぞれ動画像番号0,1,2,3を設定するものとする。動画像AからDまでのフレーム位置情報入力部106〜109は,次のフレームの位置情報を入力するものとする。フレーム先頭位置情報設定部114は,各動画像のフレーム位置情報をカウントし,符号化データ多重化部111で符号化データを多重化した後における各フレームの位置情報を設定するものとする。参照動画像番号設定部117は,参照する動画像の動画像番号を設定するものとする。ファイル多重化部115は,符号化データ多重化部111で作成された符号化データの後に,管理情報多重化部116で作成された管理情報を設定するものとする。符号化データ多重化部111は,参照関係データがある場合には各動画像の符号化データの前に多重化するものとする。   Among the above, the moving image number setting unit 112 sets moving image numbers 0, 1, 2, and 3 for moving images A, B, C, and D, respectively. Frame position information input units 106 to 109 for moving images A to D are assumed to input position information of the next frame. The frame head position information setting unit 114 counts the frame position information of each moving image, and sets the position information of each frame after the encoded data multiplexing unit 111 multiplexes the encoded data. The reference moving image number setting unit 117 sets the moving image number of the moving image to be referred to. The file multiplexing unit 115 sets the management information created by the management information multiplexing unit 116 after the coded data created by the coded data multiplexing unit 111. When there is reference relation data, the encoded data multiplexing unit 111 multiplexes the encoded data before the encoded data of each moving image.

データ切り替え部110は,参照関係データに従い,次のように符号化データとファイル先頭位置情報を切り替えるものとする。動画像AからDまで順に,まず独立して復号できる動画像かどうかを判定する。独立して復号できる場合には,そのまま選択する。独立して復号できない場合には,参照する動画像の符号化データを既に選択したかどうかを判定する。既に選択した場合には,そのまま選択し,まだ選択していない場合には,参照する動画像が全て選択されるまで,その動画像を選択しない。   The data switching unit 110 switches between encoded data and file head position information as follows according to the reference relation data. In order from the moving images A to D, it is first determined whether the moving images can be decoded independently. If it can be decoded independently, select it as it is. If it cannot be decoded independently, it is determined whether the encoded data of the moving image to be referred to has already been selected. If it has already been selected, it is selected as it is. If it has not been selected yet, the moving image is not selected until all the moving images to be referenced are selected.

動画像間の参照関係は,次のようになっているとする。まず先頭から2フレームでは,動画像AとCは独立して復号でき,動画像Bは動画像Aを参照し,動画像Dは動画像Cを参照するものとする。その後2フレームでは,動画像AとDは独立して復号でき,動画像Bと動画像Cは動画像Aと動画像Dを参照するものとする。   Assume that the reference relationship between moving images is as follows. First, in the first two frames, moving images A and C can be decoded independently, moving image B refers to moving image A, and moving image D refers to moving image C. Thereafter, in two frames, moving images A and D can be decoded independently, and moving images B and C refer to moving images A and D.

以上の前提で動画像A,B,C,Dを4フレーム多重化する場合には,これらの動画像の各フレームは,次のように多重化される。   When four frames of the moving images A, B, C, and D are multiplexed on the above assumption, each frame of these moving images is multiplexed as follows.

まず先頭フレームについては,次のように多重化される。参照関係データ入力部105は,動画像間の参照関係データを入力する。データ切り替え部110は,参照関係データに従って符号化データを多重化する順序を決定する。ここでは,次の順序に決定する。動画像Aは独立して復号できるため,まず動画像Aを選択する。動画像Bは動画像Aのみを参照するため,次に動画像Bを選択する。動画像Cは独立して復号できるため,次に動画像Cを選択する。そして動画像Dを選択する。符号化データ多重化部111は,参照関係データを多重化する。フレーム先頭位置情報設定部114は,参照関係データのデータサイズ分だけファイルサイズを加算する。   First, the first frame is multiplexed as follows. The reference relationship data input unit 105 inputs reference relationship data between moving images. The data switching unit 110 determines the order in which the encoded data is multiplexed according to the reference relation data. Here, the order is determined as follows. Since the moving image A can be decoded independently, the moving image A is first selected. Since the moving image B refers only to the moving image A, the moving image B is selected next. Since the moving image C can be decoded independently, the moving image C is selected next. Then, the moving image D is selected. The encoded data multiplexing unit 111 multiplexes the reference relation data. The frame head position information setting unit 114 adds the file size by the data size of the reference relation data.

多重化する順序に従い,データ切り替え部110は,符号化データとフレーム先頭位置情報を切り替える。まず動画像Aを選択する。動画像A符号化データ入力部101は,符号化データを1フレーム分入力し,動画像Aフレーム位置情報入力部106は,次のフレームのフレーム位置情報を入力する。符号化データ多重化部111は,符号化データを多重化する。フレーム先頭位置情報設定部114は,入力されたフレーム位置情報をファイルサイズに加算し,ファイルのフレーム位置情報として設定する。動画像番号設定部112は,動画像番号0を設定する。参照動画像番号設定部117は,参照動画像番号として0を設定する。管理情報多重化部116は,フレーム位置情報と動画像番号と参照動画像番号を多重化する。   In accordance with the order of multiplexing, the data switching unit 110 switches between encoded data and frame head position information. First, the moving image A is selected. The moving image A encoded data input unit 101 inputs encoded data for one frame, and the moving image A frame position information input unit 106 inputs frame position information of the next frame. The encoded data multiplexing unit 111 multiplexes encoded data. The frame head position information setting unit 114 adds the input frame position information to the file size and sets it as the frame position information of the file. The moving image number setting unit 112 sets moving image number 0. The reference moving image number setting unit 117 sets 0 as the reference moving image number. The management information multiplexing unit 116 multiplexes the frame position information, the moving image number, and the reference moving image number.

続いてデータ切り替え部110は,動画像Bを選択する。動画像B符号化データ入力部102は,符号化データを1フレーム分入力し,動画像Bフレーム位置情報入力部107は,次のフレームのフレーム位置情報を入力する。符号化データ多重化部111は,符号化データを多重化する。フレーム先頭位置情報設定部114は,入力されたフレーム位置情報をファイルサイズに加算し,ファイルのフレーム位置情報として設定する。動画像番号設定部112は,動画像番号1を設定する。参照動画像番号設定部117は,参照動画像番号として0と1を設定する。管理情報多重化部116は,フレーム位置情報と動画像番号と参照動画像番号を多重化する。   Subsequently, the data switching unit 110 selects the moving image B. The moving image B encoded data input unit 102 inputs encoded data for one frame, and the moving image B frame position information input unit 107 inputs frame position information of the next frame. The encoded data multiplexing unit 111 multiplexes encoded data. The frame head position information setting unit 114 adds the input frame position information to the file size and sets it as the frame position information of the file. The moving image number setting unit 112 sets moving image number 1. The reference moving image number setting unit 117 sets 0 and 1 as reference moving image numbers. The management information multiplexing unit 116 multiplexes the frame position information, the moving image number, and the reference moving image number.

続いてデータ切り替え部110は,動画像Cを選択する。動画像C符号化データ入力部103は,符号化データを1フレーム分入力し,動画像Cフレーム位置情報入力部108は,次のフレームのフレーム位置情報を入力する。符号化データ多重化部111は,符号化データを多重化する。フレーム先頭位置情報設定部114は,入力されたフレーム位置情報をファイルサイズに加算し,ファイルのフレーム位置情報として設定する。動画像番号設定部112は,動画像番号2を設定する。参照動画像番号設定部117は,参照動画像番号として2を設定する。管理情報多重化部116は,フレーム位置情報と動画像番号と参照動画像番号を多重化する。   Subsequently, the data switching unit 110 selects the moving image C. The moving image C encoded data input unit 103 inputs encoded data for one frame, and the moving image C frame position information input unit 108 inputs the frame position information of the next frame. The encoded data multiplexing unit 111 multiplexes encoded data. The frame head position information setting unit 114 adds the input frame position information to the file size and sets it as the frame position information of the file. The moving image number setting unit 112 sets moving image number 2. The reference moving image number setting unit 117 sets 2 as the reference moving image number. The management information multiplexing unit 116 multiplexes the frame position information, the moving image number, and the reference moving image number.

続いてデータ切り替え部110は,動画像Dを選択する。動画像D符号化データ入力部104は,符号化データを1フレーム分入力し,動画像Dフレーム位置情報入力部109は,次のフレームのフレーム位置情報を入力する。符号化データ多重化部111は,符号化データを多重化する。フレーム先頭位置情報設定部114は,入力されたフレーム位置情報をファイルサイズに加算し,ファイルのフレーム位置情報として設定する。動画像番号設定部112は,動画像番号3を設定する。参照動画像番号設定部117は,参照動画像番号として2と3を設定する。管理情報多重化部116は,フレーム位置情報と動画像番号と参照動画像番号を多重化する。   Subsequently, the data switching unit 110 selects the moving image D. The moving image D encoded data input unit 104 inputs encoded data for one frame, and the moving image D frame position information input unit 109 inputs frame position information of the next frame. The encoded data multiplexing unit 111 multiplexes encoded data. The frame head position information setting unit 114 adds the input frame position information to the file size and sets it as the frame position information of the file. The moving image number setting unit 112 sets moving image number 3. The reference moving image number setting unit 117 sets 2 and 3 as reference moving image numbers. The management information multiplexing unit 116 multiplexes the frame position information, the moving image number, and the reference moving image number.

以上の動画像A,B,C,Dの処理をそれぞれさらに1フレーム分実行する。   The above processing of the moving images A, B, C, and D is further performed for one frame.

次に参照関係データ入力部105は,動画像間の参照関係データを入力する。データ切り替え部110は,参照関係データに従って符号化データを多重化する順序を決定する。ここでは,次の順序に決定する。動画像Aは独立して復号できるため,まず動画像Aを選択する。動画像Bは動画像Aと動画像Dを参照するため,動画像Bは選択しない。動画像Cは動画像Aと動画像Dを参照するため,動画像Cは選択しない。動画像Dは独立して復号できるため,次に動画像Dを選択する。そして動画像Bを選択し,動画像Cを選択する。符号化データ多重化部111は,参照関係データを多重化する。フレーム先頭位置情報設定部114は,参照関係データのデータサイズ分だけファイルサイズを加算する。   Next, the reference relationship data input unit 105 inputs reference relationship data between moving images. The data switching unit 110 determines the order in which the encoded data is multiplexed according to the reference relation data. Here, the order is determined as follows. Since the moving image A can be decoded independently, the moving image A is first selected. Since the moving image B refers to the moving image A and the moving image D, the moving image B is not selected. Since the moving image C refers to the moving image A and the moving image D, the moving image C is not selected. Since the moving image D can be decoded independently, the moving image D is selected next. Then, the moving image B is selected, and the moving image C is selected. The encoded data multiplexing unit 111 multiplexes the reference relation data. The frame head position information setting unit 114 adds the file size by the data size of the reference relation data.

多重化する順序に従い,データ切り替え部110は,符号化データとフレーム先頭位置情報を切り替える。まず動画像Aを選択する。動画像A符号化データ入力部101は,符号化データを1フレーム分入力し,動画像Aフレーム位置情報入力部106は,次のフレームのフレーム位置情報を入力する。符号化データ多重化部111は,符号化データを多重化する。フレーム先頭位置情報設定部114は,入力されたフレーム位置情報をファイルサイズに加算し,ファイルのフレーム位置情報として設定する。動画像番号設定部112は,動画像番号0を設定する。参照動画像番号設定部117は,参照動画像番号として0を設定する。管理情報多重化部116は,フレーム位置情報と動画像番号と参照動画像番号を多重化する。   In accordance with the order of multiplexing, the data switching unit 110 switches between encoded data and frame head position information. First, the moving image A is selected. The moving image A encoded data input unit 101 inputs encoded data for one frame, and the moving image A frame position information input unit 106 inputs frame position information of the next frame. The encoded data multiplexing unit 111 multiplexes encoded data. The frame head position information setting unit 114 adds the input frame position information to the file size and sets it as the frame position information of the file. The moving image number setting unit 112 sets moving image number 0. The reference moving image number setting unit 117 sets 0 as the reference moving image number. The management information multiplexing unit 116 multiplexes the frame position information, the moving image number, and the reference moving image number.

続いてデータ切り替え部110は,動画像Dを選択する。動画像D符号化データ入力部104は,符号化データを1フレーム分入力し,動画像Dフレーム位置情報入力部109は,次のフレームのフレーム位置情報を入力する。符号化データ多重化部111は,符号化データを多重化する。フレーム先頭位置情報設定部114は,入力されたフレーム位置情報をファイルサイズに加算し,ファイルのフレーム位置情報として設定する。動画像番号設定部112は,動画像番号3を設定する。参照動画像番号設定部117は,参照動画像番号として3を設定する。管理情報多重化部116は,フレーム位置情報と動画像番号と参照動画像番号を多重化する。   Subsequently, the data switching unit 110 selects the moving image D. The moving image D encoded data input unit 104 inputs encoded data for one frame, and the moving image D frame position information input unit 109 inputs frame position information of the next frame. The encoded data multiplexing unit 111 multiplexes encoded data. The frame head position information setting unit 114 adds the input frame position information to the file size and sets it as the frame position information of the file. The moving image number setting unit 112 sets moving image number 3. The reference moving image number setting unit 117 sets 3 as the reference moving image number. The management information multiplexing unit 116 multiplexes the frame position information, the moving image number, and the reference moving image number.

続いてデータ切り替え部110は,動画像Bを選択する。動画像B符号化データ入力部102は,符号化データを1フレーム分入力し,動画像Bフレーム位置情報入力部107は,次のフレームのフレーム位置情報を入力する。符号化データ多重化部111は,符号化データを多重化する。フレーム先頭位置情報設定部114は,入力されたフレーム位置情報をファイルサイズに加算し,ファイルのフレーム位置情報として設定する。動画像番号設定部112は,動画像番号1を設定する。参照動画像番号設定部117は,参照動画像番号として0と3と1を設定する。管理情報多重化部116は,フレーム位置情報と動画像番号と参照動画像番号を多重化する。   Subsequently, the data switching unit 110 selects the moving image B. The moving image B encoded data input unit 102 inputs encoded data for one frame, and the moving image B frame position information input unit 107 inputs frame position information of the next frame. The encoded data multiplexing unit 111 multiplexes encoded data. The frame head position information setting unit 114 adds the input frame position information to the file size and sets it as the frame position information of the file. The moving image number setting unit 112 sets moving image number 1. The reference moving image number setting unit 117 sets 0, 3, and 1 as reference moving image numbers. The management information multiplexing unit 116 multiplexes the frame position information, the moving image number, and the reference moving image number.

続いてデータ切り替え部110は,動画像Cを選択する。動画像C符号化データ入力部103は,符号化データを1フレーム分入力し,動画像Cフレーム位置情報入力部108は,次のフレームのフレーム位置情報を入力する。符号化データ多重化部111は,符号化データを多重化する。フレーム先頭位置情報設定部114は,入力されたフレーム位置情報をファイルサイズに加算し,ファイルのフレーム位置情報として設定する。動画像番号設定部112は,動画像番号2を設定する。参照動画像番号設定部117は,参照動画像番号として0と3と2を設定する。管理情報多重化部116は,フレーム位置情報と動画像番号と参照動画像番号を多重化する。   Subsequently, the data switching unit 110 selects the moving image C. The moving image C encoded data input unit 103 inputs encoded data for one frame, and the moving image C frame position information input unit 108 inputs the frame position information of the next frame. The encoded data multiplexing unit 111 multiplexes encoded data. The frame head position information setting unit 114 adds the input frame position information to the file size and sets it as the frame position information of the file. The moving image number setting unit 112 sets moving image number 2. The reference moving image number setting unit 117 sets 0, 3, and 2 as reference moving image numbers. The management information multiplexing unit 116 multiplexes the frame position information, the moving image number, and the reference moving image number.

以上の動画像A,D,B,Cの処理をそれぞれさらに1フレーム分実行する。最後にファイル多重化部115は,符号化データ多重化部111で得られる符号化データと,管理情報多重化部116で得られる管理情報を多重化してファイルを作成する。以上の処理でファイルに多重化することができる。   The above processing of the moving images A, D, B, and C is further executed for one frame. Finally, the file multiplexing unit 115 multiplexes the encoded data obtained by the encoded data multiplexing unit 111 and the management information obtained by the management information multiplexing unit 116 to create a file. By the above processing, it can be multiplexed into a file.

本実施例では予め符号化して得られた符号化データとファイル先頭位置情報から多重化してファイルを作成する例を示したが,符号化データを作成しつつファイルを構成してもよい。   In the present embodiment, an example is shown in which a file is created by multiplexing from encoded data obtained by encoding in advance and file head position information, but a file may be configured while generating encoded data.

次に,多重化されたファイルから特定の動画像の符号化データを取り出すファイル読み込み方法について動作を説明する。図6にファイル読み込み装置の構成を示す。図6に示すファイル読み込み装置22は,ファイルを読み込むファイル入力部201と,管理情報を読み取る管理情報読み取り部202と,管理情報から所望の動画像番号を探索する動画像番号探索部203と,管理情報から参照動画像番号で指定される動画像の管理情報を探索する参照動画像番号探索部208と,管理情報からフレーム先頭位置情報を読み取るフレーム先頭位置情報設定部205と,フレーム先頭位置情報に従ってファイルから符号化データを読み取る符号化データ読み取り部206とで構成される。   Next, the operation of a file reading method for extracting encoded data of a specific moving image from the multiplexed file will be described. FIG. 6 shows the configuration of the file reading apparatus. 6 includes a file input unit 201 that reads a file, a management information reading unit 202 that reads management information, a moving image number search unit 203 that searches for a desired moving image number from the management information, and a management The reference moving image number search unit 208 that searches for management information of the moving image specified by the reference moving image number from the information, the frame head position information setting unit 205 that reads the frame head position information from the management information, and the frame head position information An encoded data reading unit 206 that reads encoded data from a file.

図5の多重化装置11で作成されたファイルから動画像Dを復号するために必要な符号化データを読み取る場合の動作を示す。   The operation when reading the encoded data necessary for decoding the moving image D from the file created by the multiplexing device 11 of FIG. 5 will be described.

ファイル入力部201は,ファイルを入力する。管理情報読み取り部202は,ファイルの後半にある管理情報を読み取る。動画像番号探索部203は,動画像Dの第1フレームの管理情報を探索する。参照動画像番号探索部208は,参照動画像番号で指定される動画像番号についての管理情報を探索する。この場合には動画像番号2と3に関する管理情報を探索する。フレーム先頭位置情報設定部205は,動画像番号2のフレーム先頭位置情報を設定する。符号化データ読み取り部206は,設定されたファイル位置から符号化データを読み取る。このとき,フレーム先頭位置情報設定部205で得られる次のフレームの先頭位置までを読み取る。次にフレーム先頭位置情報設定部205は,動画像番号3のフレーム先頭位置情報を設定する。符号化データ読み取り部206は,設定されたファイル位置から符号化データを読み取る。このとき,フレーム先頭位置情報設定部205で得られる次のフレームの先頭位置までを読み取る。   The file input unit 201 inputs a file. The management information reading unit 202 reads management information in the second half of the file. The moving image number search unit 203 searches for management information of the first frame of the moving image D. The reference moving image number search unit 208 searches for management information regarding the moving image number specified by the reference moving image number. In this case, management information relating to the moving image numbers 2 and 3 is searched. The frame head position information setting unit 205 sets the frame head position information of the moving image number 2. The encoded data reading unit 206 reads encoded data from the set file position. At this time, the frame head position information setting unit 205 reads up to the head position of the next frame. Next, the frame head position information setting unit 205 sets the frame head position information of the moving image number 3. The encoded data reading unit 206 reads encoded data from the set file position. At this time, the frame head position information setting unit 205 reads up to the head position of the next frame.

第2フレームについても同様にして符号化データを読み取る。   The encoded data is read in the same manner for the second frame.

次に第3フレームについて,動画像番号探索部203は,動画像Dの第3フレームの管理情報を探索する。参照動画像番号探索部208は,参照動画像番号で指定される動画像番号についての管理情報を探索する。この場合には,動画像番号3に関する管理情報を探索する。フレーム先頭位置情報設定部205は,動画像番号3のフレーム先頭位置情報を設定する。符号化データ読み取り部206は,設定されたファイル位置から符号化データを読み取る。このとき,フレーム先頭位置情報設定部205で得られる次のフレームの先頭位置までを読み取る。   Next, for the third frame, the moving image number search unit 203 searches the management information of the third frame of the moving image D. The reference moving image number search unit 208 searches for management information regarding the moving image number specified by the reference moving image number. In this case, the management information relating to the moving image number 3 is searched. The frame head position information setting unit 205 sets the frame head position information of the moving image number 3. The encoded data reading unit 206 reads encoded data from the set file position. At this time, the frame head position information setting unit 205 reads up to the head position of the next frame.

第4フレームについても同様にして符号化データを読み取る。以上により,動画像Dを復号できる符号化データを取り出すことができる。   The encoded data is read in the same manner for the fourth frame. Thus, encoded data that can decode the moving image D can be extracted.

このように本実施例によれば,符号化データ中に含まれる参照関係データを復号することなく,所望の動画像の符号化データを取り出すことができる。   As described above, according to this embodiment, it is possible to extract encoded data of a desired moving image without decoding the reference relation data included in the encoded data.

なお,本実施例の多重化装置11では符号化データの後に管理情報を設定したが,ファイルにトラックの構造が設定されている場合には,管理情報を第一トラックに設定し,符号化データを第二トラックに設定してもよい。   In the multiplexing apparatus 11 of this embodiment, the management information is set after the encoded data. However, when the track structure is set in the file, the management information is set in the first track, and the encoded data is set. May be set as the second track.

図7に,ファイル中におけるトラックや管理情報の構成例を示す。作成されたファイルには,符号化データトラック30と管理情報トラック40とがあり,符号化データトラック30には,動画像A符号化データ31,動画像B符号化データ32,…が格納される。また,管理情報トラック40には,各時刻Tnごとの管理情報41,42,43,…が格納され,これらには各々,フレーム先頭位置情報,動画像番号,参照動画像番号などの情報が格納される。   FIG. 7 shows a configuration example of tracks and management information in a file. The created file includes an encoded data track 30 and a management information track 40. In the encoded data track 30, moving image A encoded data 31, moving image B encoded data 32,... Are stored. . Further, management information 41, 42, 43,... For each time Tn is stored in the management information track 40, and information such as frame head position information, moving image number, reference moving image number, etc. is stored in each of them. Is done.

なお本実施例では,独立して復号できる動画像の場合にも,参照動画像番号として自分の動画像番号を設定したが,この場合には参照動画像番号を設定しない方法や,参照動画像番号として予め定めた特別な値を設定する方法も好適である。   In this embodiment, even in the case of moving images that can be decoded independently, the own moving image number is set as the reference moving image number. However, in this case, a method that does not set the reference moving image number or the reference moving image A method of setting a predetermined special value as the number is also suitable.

また本実施例では,参照動画像番号で指定された動画像のフレームにつき,そのフレームに対する管理情報をさらに探索することで参照動画像のフレーム先頭位置情報を読み出したが,管理情報に予め参照動画像番号で指定される動画像のフレーム先頭位置情報を含めて多重化してもよい。   In this embodiment, for the frame of the moving image designated by the reference moving image number, the frame start position information of the reference moving image is read by further searching the management information for the frame. It may be multiplexed including the frame head position information of the moving image specified by the image number.

次に第3の実施例として,フレーム先頭の位置情報と動画像番号と利用先動画像番号を管理情報として多重化し,全ての符号化データを多重化した最後に設定する場合の例を示す。第1の実施例と同様に,動画像はA,B,C,Dの4つあり,予め符号化されていて,各動画像におけるフレーム先頭の位置情報は分かっているものとする。   Next, as a third embodiment, an example in which the position information at the beginning of the frame, the moving image number, and the usage destination moving image number are multiplexed as management information and all the encoded data is set at the end of multiplexing is shown. As in the first embodiment, it is assumed that there are four moving images A, B, C, and D, which are encoded in advance, and the position information of the frame head in each moving image is known.

図8に多重化装置の構成を示す。図8に示す多重化装置12は,動画像A,B,C,Dの符号化データをそれぞれ入力する動画像A符号化データ入力部101,動画像B符号化データ入力部102,動画像C符号化データ入力部103,動画像D符号化データ入力部104と,各動画像のフレーム先頭の動画像中の位置情報をそれぞれ入力する動画像Aフレーム位置情報入力部106,動画像Bフレーム位置情報入力部107,動画像Cフレーム位置情報入力部108,動画像Dフレーム位置情報入力部109と,動画像間の参照関係を示す情報を入力する参照関係データ入力部105と,動画像の符号化データやフレーム位置情報の入力を切り替えるデータ切り替え部110と,符号化データを多重化する符号化データ多重化部111と,動画像番号を設定する動画像番号設定部112と,利用先動画像番号を判定する利用先動画像番号判定部118と,利用先動画像番号を設定する利用先動画像番号設定部119と,フレーム位置の先頭情報を設定するフレーム先頭位置情報設定部114と,管理情報を多重化する管理情報多重化部116と,符号化データと管理情報を多重化するファイル多重化部115とから構成される。   FIG. 8 shows the configuration of the multiplexing apparatus. The multiplexing apparatus 12 shown in FIG. 8 includes a moving image A encoded data input unit 101, a moving image B encoded data input unit 102, and a moving image C that input encoded data of moving images A, B, C, and D, respectively. Encoded data input unit 103, moving image D encoded data input unit 104, moving image A frame position information input unit 106 for inputting position information in the moving image at the head of each moving image, moving image B frame position An information input unit 107, a moving image C frame position information input unit 108, a moving image D frame position information input unit 109, a reference relationship data input unit 105 for inputting information indicating a reference relationship between moving images, and a moving image code Data switching unit 110 that switches input of encoded data and frame position information, encoded data multiplexing unit 111 that multiplexes encoded data, and moving image number that sets a moving image number A determining unit 112, a used moving image number determining unit 118 for determining a used moving image number, a used moving image number setting unit 119 for setting a used moving image number, and a frame for setting head information of a frame position A head position information setting unit 114, a management information multiplexing unit 116 that multiplexes management information, and a file multiplexing unit 115 that multiplexes encoded data and management information.

以上のうち,動画像番号設定部112では,動画像A,B,C,Dに対してそれぞれ動画像番号0,1,2,3を設定するものとする。動画像AからDまでのフレーム位置情報入力部106〜109は,次のフレームの位置情報を入力するものとする。フレーム先頭位置情報設定部114は,各動画像のフレーム位置情報をカウントし,符号化データ多重化部111で符号化データを多重化した後における各フレームの位置情報を設定するものとする。ファイル多重化部115は,符号化データ多重化部111で作成された符号化データの後に,管理情報多重化部116で作成された管理情報を設定するものとする。符号化データ多重化部111は,参照関係データがある場合には各動画像の符号化データの前に多重化するものとする。   Among the above, the moving image number setting unit 112 sets moving image numbers 0, 1, 2, and 3 for moving images A, B, C, and D, respectively. Frame position information input units 106 to 109 for moving images A to D are assumed to input position information of the next frame. The frame head position information setting unit 114 counts the frame position information of each moving image, and sets the position information of each frame after the encoded data multiplexing unit 111 multiplexes the encoded data. The file multiplexing unit 115 sets the management information created by the management information multiplexing unit 116 after the coded data created by the coded data multiplexing unit 111. When there is reference relation data, the encoded data multiplexing unit 111 multiplexes the encoded data before the encoded data of each moving image.

データ切り替え部110は,参照関係データに従い,次のように符号化データとファイル先頭位置情報を切り替えるものとする。動画像AからDまで順に,まず独立して復号できる動画像かどうかを判定する。独立して復号できる場合には,そのまま選択する。独立して復号できない場合には,参照する動画像の符号化データを既に選択したかどうかを判定する。既に選択した場合には,そのまま選択し,まだ選択していない場合には,参照する動画像が全て選択されるまで,その動画像を選択しない。   The data switching unit 110 switches between encoded data and file head position information as follows according to the reference relation data. In order from the moving images A to D, it is first determined whether the moving images can be decoded independently. If it can be decoded independently, select it as it is. If it cannot be decoded independently, it is determined whether the encoded data of the moving image to be referred to has already been selected. If it has already been selected, it is selected as it is. If it has not been selected yet, the moving image is not selected until all the moving images to be referenced are selected.

動画像間の参照関係は,次のようになっているとする。まず先頭から2フレームでは,動画像AとCは独立して復号でき,動画像Bは動画像Aを参照し,動画像Dは動画像Cを参照するものとする。その後2フレームでは,動画像AとDは独立して復号でき,動画像Bと動画像Cは動画像Aと動画像Dを参照するものとする。   Assume that the reference relationship between moving images is as follows. First, in the first two frames, moving images A and C can be decoded independently, moving image B refers to moving image A, and moving image D refers to moving image C. Thereafter, in two frames, moving images A and D can be decoded independently, and moving images B and C refer to moving images A and D.

利用先動画像番号判定部118は,参照関係データから,各動画像について,その復号画像や符号化データが利用される動画像番号を判定する。動画像間の参照関係から,最初の2フレームについては,動画像Aの利用先動画像は動画像Aと動画像Bであり,動画像Bの利用先動画像は動画像Bであり,動画像Cの利用先動画像は動画像Cと動画像Dであり,動画像Dの利用先動画像は動画像Dであると判定される。その後2フレームについては,動画像Aの利用先動画像は動画像Aと動画像Bと動画像Cであり,動画像Bの利用先動画像は動画像Bであり,動画像Cの利用先動画像は動画像Cであり,動画像Dの利用先動画像は動画像Dと動画像Bと動画像Cであると判定される。   The use destination moving image number determination unit 118 determines, for each moving image, a moving image number for which the decoded image or encoded data is used from the reference relation data. From the reference relationship between the moving images, for the first two frames, the use destination moving image of the moving image A is the moving image A and the moving image B, the use destination moving image of the moving image B is the moving image B, and the moving image The usage destination moving image of the image C is the moving image C and the moving image D, and the usage destination moving image of the moving image D is determined to be the moving image D. After that, for two frames, the use destination moving image of the moving image A is the moving image A, the moving image B, and the moving image C, the use destination moving image of the moving image B is the moving image B, and the use destination of the moving image C is It is determined that the moving image is the moving image C, and the usage destination moving images of the moving image D are the moving image D, the moving image B, and the moving image C.

以上の前提で動画像A,B,C,Dを4フレーム多重化する場合には,次のように多重化される。   When the moving images A, B, C, and D are multiplexed in four frames based on the above premise, they are multiplexed as follows.

まず先頭フレームについては,次のように多重化される。参照関係データ入力部105は,動画像間の参照関係データを入力する。データ切り替え部110は,参照関係データに従って符号化データを多重化する順序を決定する。ここでは,次の順序に決定する。動画像Aは独立して復号できるため,まず動画像Aを選択する。動画像Bは動画像Aのみを参照するため,次に動画像Bを選択する。動画像Cは独立して復号できるため,次に動画像Cを選択する。そして動画像Dを選択する。符号化データ多重化部111は,参照関係データを多重化する。フレーム先頭位置情報設定部114は,参照関係データのデータサイズ分だけファイルサイズを加算する。利用先動画像番号判定部118は,各動画像について,参照データに対応した利用先動画像番号を判定する。   First, the first frame is multiplexed as follows. The reference relationship data input unit 105 inputs reference relationship data between moving images. The data switching unit 110 determines the order in which the encoded data is multiplexed according to the reference relation data. Here, the order is determined as follows. Since the moving image A can be decoded independently, the moving image A is first selected. Since the moving image B refers only to the moving image A, the moving image B is selected next. Since the moving image C can be decoded independently, the moving image C is selected next. Then, the moving image D is selected. The encoded data multiplexing unit 111 multiplexes the reference relation data. The frame head position information setting unit 114 adds the file size by the data size of the reference relation data. The use destination moving image number determination unit 118 determines the use destination moving image number corresponding to the reference data for each moving image.

多重化する順序に従い,データ切り替え部110は,符号化データとフレーム先頭位置情報を切り替える。まず動画像Aを選択する。動画像A符号化データ入力部101は,符号化データを1フレーム分入力し,動画像Aフレーム位置情報入力部106は,次のフレームのフレーム位置情報を入力する。符号化データ多重化部111は,符号化データを多重化する。フレーム先頭位置情報設定部114は,入力されたフレーム位置情報をファイルサイズに加算し,ファイルのフレーム位置情報として設定する。動画像番号設定部112は,動画像番号0を設定する。利用先動画像番号設定部119は,利用先動画像番号として0と1を設定する。管理情報多重化部116は,フレーム位置情報と動画像番号と利用先動画像番号を多重化する。   In accordance with the order of multiplexing, the data switching unit 110 switches between encoded data and frame head position information. First, the moving image A is selected. The moving image A encoded data input unit 101 inputs encoded data for one frame, and the moving image A frame position information input unit 106 inputs frame position information of the next frame. The encoded data multiplexing unit 111 multiplexes encoded data. The frame head position information setting unit 114 adds the input frame position information to the file size and sets it as the frame position information of the file. The moving image number setting unit 112 sets moving image number 0. The usage destination moving image number setting unit 119 sets 0 and 1 as the usage destination moving image numbers. The management information multiplexing unit 116 multiplexes the frame position information, the moving image number, and the usage destination moving image number.

続いてデータ切り替え部110は,動画像Bを選択する。動画像B符号化データ入力部102は,符号化データを1フレーム分入力し,動画像Bフレーム位置情報入力部107は,次のフレームのフレーム位置情報を入力する。符号化データ多重化部111は,符号化データを多重化する。フレーム先頭位置情報設定部114は,入力されたフレーム位置情報をファイルサイズに加算し,ファイルのフレーム位置情報として設定する。動画像番号設定部112は,動画像番号1を設定する。利用先動画像番号設定部119は,利用先動画像番号として1を設定する。管理情報多重化部116は,フレーム位置情報と動画像番号と利用先動画像番号を多重化する。   Subsequently, the data switching unit 110 selects the moving image B. The moving image B encoded data input unit 102 inputs encoded data for one frame, and the moving image B frame position information input unit 107 inputs frame position information of the next frame. The encoded data multiplexing unit 111 multiplexes encoded data. The frame head position information setting unit 114 adds the input frame position information to the file size and sets it as the frame position information of the file. The moving image number setting unit 112 sets moving image number 1. The usage destination moving image number setting unit 119 sets 1 as the usage destination moving image number. The management information multiplexing unit 116 multiplexes the frame position information, the moving image number, and the usage destination moving image number.

続いてデータ切り替え部110は,動画像Cを選択する。動画像C符号化データ入力部103は,符号化データを1フレーム分入力し,動画像Cフレーム位置情報入力部108は,次のフレームのフレーム位置情報を入力する。符号化データ多重化部111は,符号化データを多重化する。フレーム先頭位置情報設定部114は,入力されたフレーム位置情報をファイルサイズに加算し,ファイルのフレーム位置情報として設定する。動画像番号設定部112は,動画像番号2を設定する。利用先動画像番号設定部119は,利用先動画像番号として2と3を設定する。管理情報多重化部116は,フレーム位置情報と動画像番号と利用先動画像番号を多重化する。   Subsequently, the data switching unit 110 selects the moving image C. The moving image C encoded data input unit 103 inputs encoded data for one frame, and the moving image C frame position information input unit 108 inputs the frame position information of the next frame. The encoded data multiplexing unit 111 multiplexes encoded data. The frame head position information setting unit 114 adds the input frame position information to the file size and sets it as the frame position information of the file. The moving image number setting unit 112 sets moving image number 2. The usage destination moving image number setting unit 119 sets 2 and 3 as the usage destination moving image numbers. The management information multiplexing unit 116 multiplexes the frame position information, the moving image number, and the usage destination moving image number.

続いてデータ切り替え部110は,動画像Dを選択する。動画像D符号化データ入力部104は,符号化データを1フレーム分入力し,動画像Dフレーム位置情報入力部109は,次のフレームのフレーム位置情報を入力する。符号化データ多重化部111は,符号化データを多重化する。フレーム先頭位置情報設定部114は,入力されたフレーム位置情報をファイルサイズに加算し,ファイルのフレーム位置情報として設定する。動画像番号設定部112は,動画像番号3を設定する。利用先動画像番号設定部119は,利用先動画像番号として3を設定する。管理情報多重化部116は,フレーム位置情報と動画像番号と利用先動画像番号を多重化する。   Subsequently, the data switching unit 110 selects the moving image D. The moving image D encoded data input unit 104 inputs encoded data for one frame, and the moving image D frame position information input unit 109 inputs frame position information of the next frame. The encoded data multiplexing unit 111 multiplexes encoded data. The frame head position information setting unit 114 adds the input frame position information to the file size and sets it as the frame position information of the file. The moving image number setting unit 112 sets moving image number 3. The use destination moving image number setting unit 119 sets 3 as the use destination moving image number. The management information multiplexing unit 116 multiplexes the frame position information, the moving image number, and the usage destination moving image number.

以上の動画像A,B,C,Dの処理をそれぞれさらに1フレーム分実行する。   The above processing of the moving images A, B, C, and D is further performed for one frame.

次に参照関係データ入力部105は,動画像間の参照関係データを入力する。データ切り替え部110は,参照関係データに従って符号化データを多重化する順序を決定する。ここでは,次の順序に決定する。動画像Aは独立して復号できるため,まず動画像Aを選択する。動画像Bは動画像Aと動画像Dを参照するため,動画像Bは選択しない。動画像Cは動画像Aと動画像Dを参照するため,動画像Cは選択しない。動画像Dは独立して復号できるため,次に動画像Dを選択する。そして動画像Bを選択し,動画像Cを選択する。符号化データ多重化部111は,参照関係データを多重化する。フレーム先頭位置情報設定部114は,参照関係データのデータサイズ分だけファイルサイズを加算する。利用先動画像番号判定部118は,各動画像について,参照データに対応した利用先動画像番号を判定する。   Next, the reference relationship data input unit 105 inputs reference relationship data between moving images. The data switching unit 110 determines the order in which the encoded data is multiplexed according to the reference relation data. Here, the order is determined as follows. Since the moving image A can be decoded independently, the moving image A is first selected. Since the moving image B refers to the moving image A and the moving image D, the moving image B is not selected. Since the moving image C refers to the moving image A and the moving image D, the moving image C is not selected. Since the moving image D can be decoded independently, the moving image D is selected next. Then, the moving image B is selected, and the moving image C is selected. The encoded data multiplexing unit 111 multiplexes the reference relation data. The frame head position information setting unit 114 adds the file size by the data size of the reference relation data. The use destination moving image number determination unit 118 determines the use destination moving image number corresponding to the reference data for each moving image.

多重化する順序に従い,データ切り替え部110は,符号化データとフレーム先頭位置情報を切り替える。まず動画像Aを選択する。動画像A符号化データ入力部101は,符号化データを1フレーム分入力し,動画像Aフレーム位置情報入力部106は,次のフレームのフレーム位置情報を入力する。符号化データ多重化部111は,符号化データを多重化する。フレーム先頭位置情報設定部114は,入力されたフレーム位置情報をファイルサイズに加算し,ファイルのフレーム位置情報として設定する。動画像番号設定部112は,動画像番号0を設定する。利用先動画像番号設定部119は,参照動画像番号として0と1と2を設定する。管理情報多重化部116は,フレーム位置情報と動画像番号と利用先動画像番号を多重化する。   In accordance with the order of multiplexing, the data switching unit 110 switches between encoded data and frame head position information. First, the moving image A is selected. The moving image A encoded data input unit 101 inputs encoded data for one frame, and the moving image A frame position information input unit 106 inputs frame position information of the next frame. The encoded data multiplexing unit 111 multiplexes encoded data. The frame head position information setting unit 114 adds the input frame position information to the file size and sets it as the frame position information of the file. The moving image number setting unit 112 sets moving image number 0. The use destination moving image number setting unit 119 sets 0, 1 and 2 as reference moving image numbers. The management information multiplexing unit 116 multiplexes the frame position information, the moving image number, and the usage destination moving image number.

続いてデータ切り替え部110は,動画像Dを選択する。動画像D符号化データ入力部104は,符号化データを1フレーム分入力し,動画像Dフレーム位置情報入力部109は,次のフレームのフレーム位置情報を入力する。符号化データ多重化部111は,符号化データを多重化する。フレーム先頭位置情報設定部114は,入力されたフレーム位置情報をファイルサイズに加算し,ファイルのフレーム位置情報として設定する。動画像番号設定部112は,動画像番号3を設定する。利用先動画像番号設定部119は,利用先動画像番号として3と1と2を設定する。管理情報多重化部116は,フレーム位置情報と動画像番号と利用先動画像番号を多重化する。   Subsequently, the data switching unit 110 selects the moving image D. The moving image D encoded data input unit 104 inputs encoded data for one frame, and the moving image D frame position information input unit 109 inputs frame position information of the next frame. The encoded data multiplexing unit 111 multiplexes encoded data. The frame head position information setting unit 114 adds the input frame position information to the file size and sets it as the frame position information of the file. The moving image number setting unit 112 sets moving image number 3. The use destination moving image number setting unit 119 sets 3, 1 and 2 as the use destination moving image numbers. The management information multiplexing unit 116 multiplexes the frame position information, the moving image number, and the usage destination moving image number.

続いてデータ切り替え部110は,動画像Bを選択する。動画像B符号化データ入力部102は,符号化データを1フレーム分入力し,動画像Bフレーム位置情報入力部107は,次のフレームのフレーム位置情報を入力する。符号化データ多重化部111は,符号化データを多重化する。フレーム先頭位置情報設定部114は,入力されたフレーム位置情報をファイルサイズに加算し,ファイルのフレーム位置情報として設定する。動画像番号設定部112は,動画像番号1を設定する。利用先動画像番号設定部119は,利用先動画像番号として1を設定する。管理情報多重化部116は,フレーム位置情報と動画像番号と利用先動画像番号を多重化する。   Subsequently, the data switching unit 110 selects the moving image B. The moving image B encoded data input unit 102 inputs encoded data for one frame, and the moving image B frame position information input unit 107 inputs frame position information of the next frame. The encoded data multiplexing unit 111 multiplexes encoded data. The frame head position information setting unit 114 adds the input frame position information to the file size and sets it as the frame position information of the file. The moving image number setting unit 112 sets moving image number 1. The usage destination moving image number setting unit 119 sets 1 as the usage destination moving image number. The management information multiplexing unit 116 multiplexes the frame position information, the moving image number, and the usage destination moving image number.

続いてデータ切り替え部110は,動画像Cを選択する。動画像C符号化データ入力部103は,符号化データを1フレーム分入力し,動画像Cフレーム位置情報入力部108は,次のフレームのフレーム位置情報を入力する。符号化データ多重化部111は,符号化データを多重化する。フレーム先頭位置情報設定部114は,入力されたフレーム位置情報をファイルサイズに加算し,ファイルのフレーム位置情報として設定する。動画像番号設定部112は,動画像番号2を設定する。利用先動画像番号設定部119は,利用先動画像番号として2を設定する。管理情報多重化部116は,フレーム位置情報と動画像番号と利用先動画像番号を多重化する。   Subsequently, the data switching unit 110 selects the moving image C. The moving image C encoded data input unit 103 inputs encoded data for one frame, and the moving image C frame position information input unit 108 inputs the frame position information of the next frame. The encoded data multiplexing unit 111 multiplexes encoded data. The frame head position information setting unit 114 adds the input frame position information to the file size and sets it as the frame position information of the file. The moving image number setting unit 112 sets moving image number 2. The use destination moving image number setting unit 119 sets 2 as the use destination moving image number. The management information multiplexing unit 116 multiplexes the frame position information, the moving image number, and the usage destination moving image number.

以上の動画像A,D,B,Cの処理をそれぞれさらに1フレーム分実行する。最後にファイル多重化部115は,符号化データ多重化部111で得られる符号化データと,管理情報多重化部116で得られる管理情報を多重化してファイルを作成する。以上の処理でファイルに多重化することができる。   The above processing of the moving images A, D, B, and C is further executed for one frame. Finally, the file multiplexing unit 115 multiplexes the encoded data obtained by the encoded data multiplexing unit 111 and the management information obtained by the management information multiplexing unit 116 to create a file. By the above processing, it can be multiplexed into a file.

本実施例では,予め符号化して得られた符号化データとファイル先頭位置情報から多重化してファイルを作成する例を示したが,符号化データを作成しつつファイルを構成してもよい。   In the present embodiment, an example is shown in which a file is created by multiplexing from encoded data obtained by encoding in advance and file head position information, but a file may be configured while creating encoded data.

次に,多重化されたファイルから特定の動画像の符号化データを取り出すファイル読み込み方法について動作を説明する。図9にファイル読み込み装置の構成を示す。図9に示すファイル読み込み装置23は,ファイルを読み込むファイル入力部201と,管理情報を読み取る管理情報読み取り部202と,管理情報から所望の動画像に対応する利用先動画像番号を探索する利用先動画像番号探索部209と,管理情報からフレーム先頭位置情報を読み取るフレーム先頭位置情報設定部205と,フレーム先頭位置情報に従ってファイルから符号化データを読み取る符号化データ読み取り部206とで構成される。   Next, the operation of a file reading method for extracting encoded data of a specific moving image from the multiplexed file will be described. FIG. 9 shows the configuration of the file reading apparatus. The file reading device 23 shown in FIG. 9 includes a file input unit 201 that reads a file, a management information reading unit 202 that reads management information, and a usage destination that searches a usage destination moving image number corresponding to a desired moving image from the management information. A moving image number search unit 209, a frame head position information setting unit 205 that reads frame head position information from management information, and an encoded data reading unit 206 that reads encoded data from a file according to the frame head position information.

図8の多重化装置12で作成されたファイルから動画像Dを復号するために必要な符号化データを読み取る場合の動作を示す。   The operation when reading the encoded data necessary for decoding the moving picture D from the file created by the multiplexing device 12 of FIG. 8 will be described.

ファイル入力部201は,ファイルを入力する。管理情報読み取り部202は,ファイルの後半にある管理情報を読み取る。利用先動画像番号探索部209は,第1フレームの管理情報から利用先動画像番号として3がある動画像を,動画像Aの管理情報から順に探索する。動画像C(動画像番号2)の管理情報に利用先動画像番号が3であることを探索する。フレーム先頭位置情報設定部205は,動画像番号2のフレーム先頭位置情報を設定する。符号化データ読み取り部206は,設定されたファイル位置から符号化データを読み取る。このとき,フレーム先頭位置情報設定部205で得られる次のフレームの先頭位置までを読み取る。続いて,利用先動画像番号探索部209は,動画像D(動画像番号3)の管理情報に利用先動画像番号が3であることを探索する。フレーム先頭位置情報設定部205は,動画像番号3のフレーム先頭位置情報を設定する。符号化データ読み取り部206は,設定されたファイル位置から符号化データを読み取る。このとき,フレーム先頭位置情報設定部205で得られる次のフレームの先頭位置までを読み取る。   The file input unit 201 inputs a file. The management information reading unit 202 reads management information in the second half of the file. The use destination moving image number search unit 209 searches for the moving image having the use destination moving image number 3 from the management information of the first frame in order from the management information of the moving image A. The management information of the moving image C (moving image number 2) is searched for that the usage destination moving image number is 3. The frame head position information setting unit 205 sets the frame head position information of the moving image number 2. The encoded data reading unit 206 reads encoded data from the set file position. At this time, the frame head position information setting unit 205 reads up to the head position of the next frame. Subsequently, the use destination moving image number search unit 209 searches the management information of the moving image D (moving image number 3) that the use destination moving image number is 3. The frame head position information setting unit 205 sets the frame head position information of the moving image number 3. The encoded data reading unit 206 reads encoded data from the set file position. At this time, the frame head position information setting unit 205 reads up to the head position of the next frame.

第2フレームについても同様にして符号化データを読み取る。   The encoded data is read in the same manner for the second frame.

次に第3フレームについて,利用先動画像番号探索部209は,第3フレームの管理情報から利用先動画像番号として3がある動画像を,動画像Aの管理情報から順に探索する。動画像D(動画像番号3)の管理情報に利用先動画像番号が3であることを探索する。フレーム先頭位置情報設定部205は,動画像番号3のフレーム先頭位置情報を設定する。符号化データ読み取り部206は,設定されたファイル位置から符号化データを読み取る。このとき,フレーム先頭位置情報設定部205で得られる次のフレームの先頭位置までを読み取る。   Next, for the third frame, the use destination moving image number search unit 209 searches the management information of the moving image A for moving images having 3 as the use destination moving image number from the management information of the third frame. The management information of the moving image D (moving image number 3) is searched for that the usage destination moving image number is 3. The frame head position information setting unit 205 sets the frame head position information of the moving image number 3. The encoded data reading unit 206 reads encoded data from the set file position. At this time, the frame head position information setting unit 205 reads up to the head position of the next frame.

第4フレームについても同様にして符号化データを読み取る。以上により,動画像Dを復号できる符号化データを取り出すことができる。   The encoded data is read in the same manner for the fourth frame. Thus, encoded data that can decode the moving image D can be extracted.

このように本実施例によれば,符号化データ中に含まれる参照関係データを復号することなく,所望の動画像の符号化データを取り出すことができる。   As described above, according to this embodiment, it is possible to extract encoded data of a desired moving image without decoding the reference relation data included in the encoded data.

なお,本実施例の多重化装置12では,符号化データの後に管理情報を設定したが,ファイルにトラックの構造が設定されている場合には,管理情報を第一トラックに設定し,符号化データを第二トラックに設定してもよい。   In the multiplexing device 12 of this embodiment, management information is set after the encoded data. However, when the track structure is set in the file, the management information is set in the first track and the encoding is performed. Data may be set in the second track.

図10に,ファイル中におけるトラックや管理情報の構成例を示す。作成されたファイルには,符号化データトラック30と管理情報トラック40とがあり,符号化データトラック30には,動画像A符号化データ31,動画像B符号化データ32,…が格納される。また,管理情報トラック40には,各時刻Tnごとの管理情報41,42,43,…が格納され,これらには各々,フレーム先頭位置情報,動画像番号,利用先動画像番号などの情報が格納される。   FIG. 10 shows a configuration example of tracks and management information in a file. The created file includes an encoded data track 30 and a management information track 40. In the encoded data track 30, moving image A encoded data 31, moving image B encoded data 32,... Are stored. . Further, management information 41, 42, 43,... For each time Tn is stored in the management information track 40, and information such as frame head position information, moving picture number, use destination moving picture number, etc. is stored in each of them. Stored.

なお本実施例では,利用先動画像番号として自分の動画像番号も設定したが,利用先動画像番号として自分の動画像番号を設定しない方法や,利用先動画像番号として予め定めた特別な値を設定する方法も好適である。   In this embodiment, the user's moving image number is also set as the use destination moving image number. However, a method in which the user's moving image number is not set as the use destination moving image number, or a special method predetermined as the use destination moving image number. A method of setting the value is also suitable.

以上の実施例の説明では,フレーム単位に管理情報を設定する例について説明したが,フレームを分割したスライス単位に管理情報を設定してもよい。この場合には,管理情報はフレーム先頭位置の代わりに,スライス先頭位置情報を含む。また,多重化や読み取りもフレーム単位ではなく,スライス単位で行う。すなわち,上記実施例の説明において,フレームをスライスに読み替えて本発明を実施することも可能である。   In the above description of the embodiment, an example in which management information is set in units of frames has been described. However, management information may be set in units of slices obtained by dividing a frame. In this case, the management information includes slice head position information instead of the frame head position. In addition, multiplexing and reading are performed not on a frame basis but on a slice basis. That is, in the description of the above embodiment, the present invention can be implemented by replacing a frame with a slice.

以上の多重化装置およびファイル読み込み装置による処理は,コンピュータとソフトウェアプログラムとによって実現することもでき,そのプログラムをコンピュータ読み取り可能な記録媒体に記録して提供することも,ネットワークを通して提供することも可能である。   The above processing by the multiplexing device and the file reading device can be realized by a computer and a software program, and the program can be provided by being recorded on a computer-readable recording medium or provided through a network. It is.

第1の実施例における多重化装置の構成を示す図である。It is a figure which shows the structure of the multiplexing apparatus in 1st Example. 第1の実施例におけるファイル読み込み装置の構成1を示す図である。It is a figure which shows the structure 1 of the file reading apparatus in a 1st Example. 第1の実施例におけるファイル読み込み装置の構成2を示す図である。It is a figure which shows the structure 2 of the file reading apparatus in a 1st Example. 第1の実施例のファイル中におけるトラックと管理情報の構成例を示す図である。It is a figure which shows the structural example of the track | truck in the file of a 1st Example, and management information. 第2の実施例における多重化装置の構成を示す図である。It is a figure which shows the structure of the multiplexing apparatus in a 2nd Example. 第2の実施例におけるファイル読み込み装置の構成を示す図である。It is a figure which shows the structure of the file reading apparatus in a 2nd Example. 第2の実施例のファイル中におけるトラックと管理情報の構成例を示す図である。It is a figure which shows the structural example of the track | truck in the file of 2nd Example, and management information. 第3の実施例における多重化装置の構成を示す図である。It is a figure which shows the structure of the multiplexing apparatus in a 3rd Example. 第3の実施例におけるファイル読み込み装置の構成を示す図である。It is a figure which shows the structure of the file reading apparatus in a 3rd Example. 第3の実施例のファイル中におけるトラックと管理情報の構成例を示す図である。It is a figure which shows the structural example of the track | truck and management information in the file of 3rd Example. スケーラブル符号化の概念を示す図である。It is a figure which shows the concept of scalable encoding. MVCの参照関係の例を示す図である。It is a figure which shows the example of the reference relationship of MVC. MVCの符号化データの構成例を示す図である。It is a figure which shows the structural example of the encoding data of MVC. ファイル中におけるトラックや管理情報の構成例を示す図である。It is a figure which shows the structural example of the track | truck and management information in a file.

符号の説明Explanation of symbols

10,11,12 多重化装置
101 動画像A符号化データ入力部
102 動画像B符号化データ入力部
103 動画像C符号化データ入力部
104 動画像D符号化データ入力部
105 参照関係データ入力部
106 動画像Aフレーム位置情報入力部
107 動画像Bフレーム位置情報入力部
108 動画像Cフレーム位置情報入力部
109 動画像Dフレーム位置情報入力部
110 データ切り替え部
111 符号化データ多重化部
112 動画像番号設定部
113 独立復号識別情報設定部
114 フレーム先頭位置情報設定部
115 ファイル多重化部
116 管理情報多重化部
117 参照動画像番号設定部
118 利用先動画像番号判定部
119 利用先動画像番号設定部
20,21,22,23 ファイル読み込み装置
201 ファイル入力部
202 管理情報読み取り部
203 動画像番号探索部
204 独立復号識別情報判定部
205 フレーム先頭位置情報設定部
206 符号化データ読み取り部
207 独立復号識別情報探索部
208 参照動画像番号探索部
209 利用先動画像番号探索部
10, 11, 12 Multiplexer 101 Moving image A encoded data input unit 102 Moving image B encoded data input unit 103 Moving image C encoded data input unit 104 Moving image D encoded data input unit 105 Reference relation data input unit 106 moving image A frame position information input unit 107 moving image B frame position information input unit 108 moving image C frame position information input unit 109 moving image D frame position information input unit 110 data switching unit 111 encoded data multiplexing unit 112 moving image Number setting unit 113 Independent decoding identification information setting unit 114 Frame head position information setting unit 115 File multiplexing unit 116 Management information multiplexing unit 117 Reference moving image number setting unit 118 Usage destination moving image number determination unit 119 Usage destination moving image number setting Section 20, 21, 22, 23 File reading device 201 File input Power unit 202 Management information reading unit 203 Moving image number searching unit 204 Independent decoding identification information determining unit 205 Frame head position information setting unit 206 Encoded data reading unit 207 Independent decoding identification information searching unit 208 Reference moving image number searching unit 209 Usage destination Video number search section

Claims (10)

n個(n≧2)の動画像の間で予測符号化して作成された符号化データを多重化してファイルを構成する多重化方法であって,
動画像のフレームまたはスライスの時刻ごとに,動画像のフレームまたはスライス先頭のファイル中の位置情報と,動画像を区別する動画像番号と,該フレームまたはスライスを復号する際に他の動画像のフレームまたはスライスの復号画像情報が必要かどうかを示す独立復号識別情報とを含むn個の動画像分の管理情報を多重化する過程と,
前記多重化した情報を,各動画像のフレームまたはスライスの復号対象となる符号化データとは別の特定の位置に設定してファイルを構成する過程と,
を有することを特徴とする動画像の多重化方法。
A multiplexing method for multiplexing encoded data created by predictive encoding between n (n ≧ 2) moving images to form a file,
For each moving image frame or slice time , position information in the moving image frame or slice head file, a moving image number for distinguishing moving images, and other moving images when decoding the frame or slice. A process of multiplexing management information for n moving images including independent decoding identification information indicating whether decoded image information of a frame or a slice is necessary;
A process of configuring the multiplexed information at a specific position different from the encoded data to be decoded of each moving image frame or slice, and configuring a file;
A method for multiplexing moving images, comprising:
n個(n≧2)の動画像の間で予測符号化して作成された符号化データを多重化してファイルを構成する多重化方法であって,
動画像のフレームまたはスライス先頭のファイル中の位置情報と,動画像を区別する動画像番号と,該フレームまたはスライスを復号する際に他の動画像のフレームまたはスライスの復号画像情報が必要かどうかを示す独立復号識別情報とを含むn個の動画像分の管理情報を第一のトラックとし,
各フレームまたはスライスの符号化データと動画像間の予測符号化における参照関係情報を第二のトラックとして,
前記第一のトラックと前記第二のトラックとをそれぞれ独立に多重化してファイルを構成する
ことを特徴とする動画像の多重化方法。
A multiplexing method for multiplexing encoded data created by predictive encoding between n (n ≧ 2) moving images to form a file,
Position information in the file at the beginning of a moving image frame or slice, a moving image number for distinguishing moving images, and whether decoding image information of other moving image frames or slices is necessary when decoding the frame or slice Management information for n moving images including independent decoding identification information indicating
The reference relationship information in the predictive encoding between the encoded data of each frame or slice and the moving image is used as the second track.
A method for multiplexing moving images, wherein the first track and the second track are multiplexed independently to form a file.
n個(n≧2)の動画像の間で予測符号化して作成された符号化データを多重化してファイルを構成する多重化装置であって,
動画像のフレームまたはスライスの時刻ごとに,動画像のフレームまたはスライス先頭のファイル中の位置情報と,動画像を区別する動画像番号と,該フレームまたはスライスを復号する際に他の動画像のフレームまたはスライスの復号画像情報が必要かどうかを示す独立復号識別情報とを含むn個の動画像分の管理情報を多重化する管理情報多重化部と,
各動画像のフレームまたはスライスの復号対象となる符号化データとは別の特定の位置に前記管理情報多重化部で作成された管理情報を設定してファイルを構成するファイル多重化部と,
を備えることを特徴とする動画像の多重化装置。
A multiplexing device that multiplexes encoded data created by predictive encoding between n (n ≧ 2) moving images to form a file,
For each moving image frame or slice time , position information in the moving image frame or slice head file, a moving image number for distinguishing moving images, and other moving images when decoding the frame or slice. A management information multiplexing unit that multiplexes management information for n moving images including independent decoding identification information indicating whether decoded image information of a frame or a slice is necessary;
A file multiplexing unit that configures a file by setting the management information created by the management information multiplexing unit at a specific position different from the encoded data to be decoded for each moving image frame or slice;
An apparatus for multiplexing moving images, comprising:
n個(n≧2)の動画像の間で予測符号化して作成された符号化データを多重化してファイルを構成する多重化装置であって,
動画像のフレームまたはスライスの時刻ごとに,動画像のフレームまたはスライス先頭のファイル中の位置情報と,動画像を区別する動画像番号と,該フレームまたはスライスを復号する際に他の動画像のフレームまたはスライスの復号画像情報が必要かどうかを示す独立復号識別情報とを含むn個の動画像分の管理情報を第一のトラックとして多重化する管理情報多重化部と,
各フレームまたはスライスの符号化データと動画像間の予測符号化における参照関係情報を第二のトラックとして多重化する符号化データ多重化部と,
前記第一のトラックと前記第二のトラックとを多重化してファイルを構成するファイル多重化部と,
を備えることを特徴とする動画像の多重化装置。
A multiplexing device that multiplexes encoded data created by predictive encoding between n (n ≧ 2) moving images to form a file,
For each moving image frame or slice time , position information in the moving image frame or slice head file, a moving image number for distinguishing moving images, and other moving images when decoding the frame or slice. A management information multiplexing unit that multiplexes management information for n moving images including independent decoding identification information indicating whether decoded image information of a frame or a slice is necessary, as a first track;
An encoded data multiplexing unit that multiplexes the reference relationship information in the predictive encoding between the encoded data of each frame or slice and the moving image as a second track;
A file multiplexing unit configured to multiplex the first track and the second track to form a file;
An apparatus for multiplexing moving images, comprising:
n個(n≧2)の動画像の間で予測符号化して作成された符号化データを多重化してファイルを構成する多重化方法であって,
動画像のフレームまたはスライスの時刻ごとに,動画像のフレームまたはスライス先頭のファイル中の位置情報と,動画像を区別する動画像番号と,該フレームまたはスライスを復号する際に必要な動画像の動画像番号である参照動画像番号とを含むn個の動画像分の管理情報を多重化する過程と,
前記多重化した情報を,各動画像のフレームまたはスライスの復号対象となる符号化データとは別の特定の位置に設定してファイルを構成する過程と,
を有することを特徴とする動画像の多重化方法。
A multiplexing method for multiplexing encoded data created by predictive encoding between n (n ≧ 2) moving images to form a file,
For each moving image frame or slice time , position information in the moving image frame or slice head file, a moving image number for distinguishing the moving image, and a moving image necessary for decoding the frame or slice. A process of multiplexing management information for n moving images including a reference moving image number that is a moving image number;
A process of configuring the multiplexed information at a specific position different from the encoded data to be decoded of each moving image frame or slice, and configuring a file;
A method for multiplexing moving images, comprising:
n個(n≧2)の動画像の間で予測符号化して作成された符号化データを多重化してファイルを構成する多重化方法であって,
動画像のフレームまたはスライスの時刻ごとに,動画像のフレームまたはスライス先頭のファイル中の位置情報と,動画像を区別する動画像番号と,該フレームまたはスライスを復号する際に必要な動画像の動画像番号である参照動画像番号とを含むn個の動画像分の管理情報を第一のトラックとし,
各フレームまたはスライスの符号化データと動画像間の予測符号化における参照関係情報を第二のトラックとして,
前記第一のトラックと前記第二のトラックとをそれぞれ独立に多重化してファイルを構成する
ことを特徴とする動画像の多重化方法。
A multiplexing method for multiplexing encoded data created by predictive encoding between n (n ≧ 2) moving images to form a file,
For each moving image frame or slice time , position information in the moving image frame or slice head file, a moving image number for distinguishing the moving image, and a moving image necessary for decoding the frame or slice. Management information for n moving images including a reference moving image number that is a moving image number is set as a first track,
The reference relationship information in the predictive encoding between the encoded data of each frame or slice and the moving image is used as the second track.
A method for multiplexing moving images, wherein the first track and the second track are multiplexed independently to form a file.
n個(n≧2)の動画像の間で予測符号化して作成された符号化データを多重化してファイルを構成する多重化装置であって,
動画像のフレームまたはスライスの時刻ごとに,動画像のフレームまたはスライス先頭のファイル中の位置情報と,動画像を区別する動画像番号と,該フレームまたはスライスを復号する際に必要な動画像の動画像番号である参照動画像番号とを含むn個の動画像分の管理情報を多重化する管理情報多重化部と,
各動画像のフレームまたはスライスの復号対象となる符号化データとは別の特定の位置に前記管理情報多重化部で作成された管理情報を設定してファイルを構成するファイル多重化部と,
を備えることを特徴とする動画像の多重化装置。
A multiplexing device that multiplexes encoded data created by predictive encoding between n (n ≧ 2) moving images to form a file,
For each moving image frame or slice time , position information in the moving image frame or slice head file, a moving image number for distinguishing the moving image, and a moving image necessary for decoding the frame or slice. A management information multiplexing unit that multiplexes management information for n moving images including a reference moving image number that is a moving image number;
A file multiplexing unit that configures a file by setting the management information created by the management information multiplexing unit at a specific position different from the encoded data to be decoded for each moving image frame or slice;
An apparatus for multiplexing moving images, comprising:
n個(n≧2)の動画像の間で予測符号化して作成された符号化データを多重化してファイルを構成する多重化装置であって,
動画像のフレームまたはスライスの時刻ごとに,動画像のフレームまたはスライス先頭のファイル中の位置情報と,動画像を区別する動画像番号と,該フレームまたはスライスを復号する際に必要な動画像の動画像番号である参照動画像番号とを含むn個の動画像分の管理情報を第一のトラックとして多重化する管理情報多重化部と,
各フレームまたはスライスの符号化データと動画像間の予測符号化における参照関係情報を第二のトラックとして多重化する符号化データ多重化部と,
前記第一のトラックと前記第二のトラックとを多重化してファイルを構成するファイル多重化部と,
を備えることを特徴とする動画像の多重化装置。
A multiplexing device that multiplexes encoded data created by predictive encoding between n (n ≧ 2) moving images to form a file,
For each moving image frame or slice time , position information in the moving image frame or slice head file, a moving image number for distinguishing the moving image, and a moving image necessary for decoding the frame or slice. A management information multiplexing unit that multiplexes management information for n moving images including a reference moving image number that is a moving image number as a first track;
An encoded data multiplexing unit that multiplexes the reference relationship information in the predictive encoding between the encoded data of each frame or slice and the moving image as a second track;
A file multiplexing unit configured to multiplex the first track and the second track to form a file;
An apparatus for multiplexing moving images, comprising:
請求項1,請求項2,請求項5または請求項6に記載の動画像の多重化方法を,コンピュータに実行させるための動画像の多重化プログラム。 A moving picture multiplexing program for causing a computer to execute the moving picture multiplexing method according to claim 1, claim 2, claim 5 or claim 6 . 請求項に記載の動画像の多重化プログラムを記録したコンピュータ読み取り可能な記録媒体。 A computer-readable recording medium in which the moving picture multiplexing program according to claim 9 is recorded.
JP2008001009A 2008-01-08 2008-01-08 Multiplexing method and apparatus for moving picture, and program and computer-readable recording medium Active JP5171270B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008001009A JP5171270B2 (en) 2008-01-08 2008-01-08 Multiplexing method and apparatus for moving picture, and program and computer-readable recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008001009A JP5171270B2 (en) 2008-01-08 2008-01-08 Multiplexing method and apparatus for moving picture, and program and computer-readable recording medium

Publications (2)

Publication Number Publication Date
JP2009164936A JP2009164936A (en) 2009-07-23
JP5171270B2 true JP5171270B2 (en) 2013-03-27

Family

ID=40967010

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008001009A Active JP5171270B2 (en) 2008-01-08 2008-01-08 Multiplexing method and apparatus for moving picture, and program and computer-readable recording medium

Country Status (1)

Country Link
JP (1) JP5171270B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3598754B1 (en) 2011-12-15 2021-03-17 Tagivan Ii Llc Signaling of luminance-chrominance coded block flags (cbf) in video coding
KR101748779B1 (en) * 2013-01-18 2017-06-19 캐논 가부시끼가이샤 Method, device, and computer program for encapsulating partitioned timed media data

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3882822B2 (en) * 2004-03-11 2007-02-21 カシオ計算機株式会社 Compressed data recording apparatus, compressed data reproducing apparatus and method
KR101245251B1 (en) * 2006-03-09 2013-03-19 삼성전자주식회사 Method and apparatus for encoding and decoding multi-view video to provide uniform video quality

Also Published As

Publication number Publication date
JP2009164936A (en) 2009-07-23

Similar Documents

Publication Publication Date Title
CN106063271B (en) For executing cross-layer video coding/decoding method and its equipment and the cross-layer video coding method and its equipment for executing the prediction based on sub-block of the prediction based on sub-block
KR101265990B1 (en) System and method for processing video files
US20180192046A1 (en) Encoding method, decoding method, encoding apparatus, decoding apparatus, and encoding and decoding apparatus
WO2015152608A2 (en) Interlayer video decoding method for performing sub-block-based prediction and apparatus therefor, and interlayer video encoding method for performing sub-block-based prediction and apparatus therefor
JP2010515400A (en) Multi-view video encoding and decoding method and apparatus using global difference vector
TW201524192A (en) Multi-layer video file format designs
JPWO2015137237A1 (en) Image decoding device
TW201230747A (en) Arranging sub-track fragments for streaming video data
CN101617537A (en) Be used to handle the method and apparatus of vision signal
KR101087194B1 (en) Encoding System and Method of Moving Picture
CN114342402A (en) Information processing apparatus, information processing method, reproduction processing apparatus, and reproduction processing method
CN106464889A (en) Inter-layer video decoding method and apparatus therefor performing sub-block-based prediction, and inter-layer video encoding method and apparatus therefor performing sub-block-based prediction
CN112369016A (en) Information processing apparatus, information processing method, and program
JP2015195543A (en) Image decoder and image encoder
WO2013146636A1 (en) Image encoding device, image decoding device, image encoding method, image decoding method and program
KR101386651B1 (en) Multi-View video encoding and decoding method and apparatus thereof
US9648336B2 (en) Encoding apparatus and method
EP3800888A1 (en) Encoding and decoding a video
JP5171270B2 (en) Multiplexing method and apparatus for moving picture, and program and computer-readable recording medium
JP5128963B2 (en) Multiplexing method of moving image, method and apparatus for reading file, program thereof and computer-readable recording medium
JP2024533759A (en) Video processing method, device and medium
JP6320450B2 (en) Image encoding device, image decoding device, image encoding method, and image decoding method
US20140003502A1 (en) Systems and Methods for Decoding Video Encoded Using Predictions that Reference Higher Rate Video Sequences
JP6690536B2 (en) Image processing apparatus, image processing method, and program
KR101361317B1 (en) System for storage section of moving picture and method thereof

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20100331

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20101203

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120118

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120221

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120416

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20121225

R150 Certificate of patent or registration of utility model

Ref document number: 5171270

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350