JP5219122B2 - Electronics - Google Patents

Electronics Download PDF

Info

Publication number
JP5219122B2
JP5219122B2 JP2007288945A JP2007288945A JP5219122B2 JP 5219122 B2 JP5219122 B2 JP 5219122B2 JP 2007288945 A JP2007288945 A JP 2007288945A JP 2007288945 A JP2007288945 A JP 2007288945A JP 5219122 B2 JP5219122 B2 JP 5219122B2
Authority
JP
Japan
Prior art keywords
time
data
unit
time information
minimum unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2007288945A
Other languages
Japanese (ja)
Other versions
JP2009118179A (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.)
Panasonic Corp
Panasonic Holdings Corp
Original Assignee
Panasonic Corp
Matsushita Electric Industrial Co Ltd
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 Panasonic Corp, Matsushita Electric Industrial Co Ltd filed Critical Panasonic Corp
Priority to JP2007288945A priority Critical patent/JP5219122B2/en
Publication of JP2009118179A publication Critical patent/JP2009118179A/en
Application granted granted Critical
Publication of JP5219122B2 publication Critical patent/JP5219122B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、H.264タイプで符号化された映像データについて、その映像復号化の最小単位の開始点を、符号化トランスポートストリーム(TS)データを復号化することなく符号化TSデータのままで探索するための技術に関する。   The present invention relates to H.264. A technique for searching for the start point of the minimum unit of video decoding for video data encoded in the H.264 type without decoding the encoded transport stream (TS) data. About.

現在、光等の高速インターネット通信網の整備によりデータ量の大きな映像データでも容易に送信できるまでに伝送路容量が向上したこと、また映像符号化効率が向上し送信データサイズがコンパクトになったことなどを受けて、実用的なレベルでのストリーミング映像配信サービスが様々提供されている。   Currently, the development of high-speed Internet communication networks such as light has improved the transmission path capacity so that even large amounts of video data can be transmitted easily, and the video encoding efficiency has improved and the transmission data size has become compact. Various streaming video distribution services at a practical level have been provided.

ところで、ストリーミング映像配信は、符号化TS(トランスポートストリーム)データが再生時系列に沿って順次クライアント端末に送信されるシーケンシャルなデータ送信方式である。したがってクライアント端末側でスキップ操作などのランダムアクセス操作を行った場合には以下のような手順をとる。すなわち、まず、クライアント端末から「2分30秒」などのスキップ先の再生位置を含むリクエストデータを映像配信サーバに対して送信する。すると映像配信サーバでは、予め用意されているタイムチャート(再生位置とその位置の符号化TSデータとを示すテーブル)を参照し、リクエストに応じた位置から符号化TSデータをクライアント端末に返信する、という具合である。   By the way, streaming video distribution is a sequential data transmission method in which encoded TS (transport stream) data is sequentially transmitted to a client terminal along a reproduction time series. Therefore, when a random access operation such as a skip operation is performed on the client terminal side, the following procedure is taken. That is, first, request data including a playback position at a skip destination such as “2 minutes 30 seconds” is transmitted from the client terminal to the video distribution server. Then, the video distribution server refers to a prepared time chart (a table indicating the reproduction position and the encoded TS data at the position), and returns the encoded TS data to the client terminal from the position according to the request. That's it.

また、H.264タイプを含むMpeg系の映像符号化データは、フレーム間予測(前後のフレームを参照して符号化/復号化する技術)を利用するため、単独での復号化ができないフレーム(P,Bフレームなど)を含んでいる。そのため上記タイムチャートは、単独で復号化可能な映像復号化最小単位の先頭フレーム(Iフレームなど)の符号化TSデータから送信されるよう作成されている。つまり、上記タイムチャートでは、例えば「2分29秒(49番目のIフレームの符号化TSデータ位置)」、「2分32秒(50番目のIフレームの符号化TSデータ位置)」、・・・と言った具合に、映像復号化最小単位での再生位置が示されている。したがって前記リクエストに含まれる「23分30秒」地点の符号化TSデータは単独復号化が不可能な例えばBフレームなどであり、そのためリクエスト位置に近似する2分29秒のIフレームからの符号化TSデータがクライアント端末に返信されることになる、という具合である。
特開2003−018568号公報
H. Since the MPEG encoded video data including the H.264 type uses inter-frame prediction (a technique for encoding / decoding with reference to the preceding and succeeding frames), frames that cannot be decoded independently (P, B frames) Etc.). Therefore, the time chart is created so as to be transmitted from the encoded TS data of the first frame (I frame or the like) of the minimum video decoding unit that can be decoded independently. That is, in the above time chart, for example, “2 minutes 29 seconds (the encoded TS data position of the 49th I frame)”, “2 minutes 32 seconds (the encoded TS data position of the 50th I frame)”,.・ The playback position in the minimum video decoding unit is shown. Therefore, the encoded TS data at the “23 minutes 30 seconds” point included in the request is, for example, a B frame that cannot be decoded independently, and is therefore encoded from an I frame of 2 minutes 29 seconds that approximates the request position. That is, TS data is returned to the client terminal.
JP 2003-018568 A

しかし従来の技術には以下のような課題がある。すなわち、上記のようにタイムチャートでは、映像復号化最小単位でその再生位置が示されている必要がある。ここで、Mpeg2タイプで符号化された符号化TSデータであれば、いわゆる「GOP(グループ・オブ・ピクチャ)」と呼ばれる映像復号化が可能な最小単位で符号化されているデータ構造の先頭に、GOPの開始を示すスタートコードが定義されている。したがって、符号化TSデータを復号化しフレーム情報を取得せずとも、符号化TSデータのままGOPのスタートコードを探索することで前記条件を満たすタイムチャートを生成することができる。   However, the conventional techniques have the following problems. That is, as described above, in the time chart, the reproduction position needs to be shown in the minimum video decoding unit. Here, in the case of encoded TS data encoded in the Mpeg2 type, a so-called “GOP (Group of Pictures)” called “GOP (Group of Pictures)” is encoded at the beginning of the data structure encoded in the smallest unit that can be decoded. A start code indicating the start of GOP is defined. Therefore, a time chart satisfying the above condition can be generated by searching the start code of the GOP with the encoded TS data without decoding the encoded TS data and acquiring the frame information.

ところが、Mpeg2タイプは、一般にH.264タイプと比較して1/2から1/3の符号化圧縮効率と言われており、一定以上の画質を維持するには符号化TSデータのデータ量が極めて大きくなる傾向がある。そのため、Mpeg2タイプはストリーミング映像配信に適した圧縮符号化形式ではない。   However, the Mpeg2 type is generally H.264. Compared to the H.264 type, it is said to have an encoding compression efficiency of 1/2 to 1/3, and the amount of encoded TS data tends to be extremely large in order to maintain a certain level of image quality. Therefore, the Mpeg2 type is not a compression encoding format suitable for streaming video distribution.

しかし、ストリーミング動画配信に適した圧縮符号化形式であるH.264タイプ(その他のMpeg4のパートを含む)においては、上記GOPのスタートコードに相当する定義がなされていない。そのためタイムチャートを生成する場合には、いったん符号化TSデータをフレームデータに復号化しそのフレーム情報を取得することで映像復号化最小単位の再生位置を探索する必要がある。   However, H.P. is a compression encoding format suitable for streaming video distribution. In the H.264 type (including other Mpeg4 parts), the definition corresponding to the start code of the GOP is not made. Therefore, when generating a time chart, it is necessary to search the reproduction position of the minimum unit of video decoding by once decoding the encoded TS data into frame data and acquiring the frame information.

したがって、H.264タイプで符号化された映像データをストリーミング配信する場合、従来ではタイムチャートの生成に時間と計算機資源とが必要となり、手間がかかってしまっている、という課題がある。   Therefore, H.H. In the case of streaming distribution of video data encoded in the H.264 type, there is a problem that time and computer resources are conventionally required to generate a time chart, which is troublesome.

以上の課題を解決するために、本発明は、H.264タイプの符号化TSデータを復号化することなく、映像復号化の最小単位の開始点を探索することができる技術を提供する。具体的には、映像復号化最小単位には一の「SPS(シーケンス単位での符号化情報が含まれるデータ)」が含まれているとして、そのSPSの前にある「AU Delimiter(データのアクセス単位の先頭を示すデータ)」を映像復号化最小単位の境界であると判断する機能を備える電子機器を提供する。   In order to solve the above-described problems, the present invention provides H.264. The present invention provides a technique capable of searching for the starting point of the minimum unit of video decoding without decoding H.264 type encoded TS data. Specifically, assuming that one “SPS (data including encoding information in sequence units)” is included in the minimum video decoding unit, “AU Delimiter (data access) in front of the SPS is assumed. Provided is an electronic device having a function of determining that “the data indicating the head of a unit” ”is a boundary of a minimum unit of video decoding.

さらに詳細には、H.264タイプの符号化トランスポートストリームデータのトランスポートストリームヘッダの直後に配置される時間基準を取得する「時間基準取得部」と、映像復号化最小単位の先頭バイト位置を探索する「先頭探索部」と、取得した時間基準と、その時間基準が配置されるバイト位置と、先頭探索部にて探索された映像復号化最小単位の先頭バイト位置と、再生装置でデコードする際のデコードビットレートと、から各映像復号化最小単位の先頭位置が再生されるべき時間を示す先頭時間情報を取得する「先頭時間情報取得部」と、を有する電子機器である。   More particularly, A “time reference acquisition unit” that acquires a time reference arranged immediately after the transport stream header of H.264 type encoded transport stream data, and a “start search unit” that searches for the start byte position of the video decoding minimum unit And the acquired time reference, the byte position where the time reference is arranged, the start byte position of the video decoding minimum unit searched by the start search unit, the decoding bit rate when decoding by the playback device, The “start time information acquisition unit” that acquires start time information indicating the time at which the start position of each video decoding minimum unit is to be reproduced.

また、上記機能を実現するよう電子機器を制御する電子機器の制御方法なども合わせて提供する。なお、本発明はH.264タイプ(すなわちMpeg4のパート10をはじめとする各種規格)の符号化TSデータに必ずしも限定されず、Mpeg4のパート10以外のパートで規格化されている符号化タイプも含むものである。   In addition, an electronic device control method for controlling the electronic device so as to realize the above function is also provided. In addition, this invention is H.264. It is not necessarily limited to the encoded TS data of H.264 type (that is, various standards including Mpeg4 part 10), and includes an encoding type standardized by parts other than Mpeg4 part 10.

以上のような構成をとる本発明によって、H.264タイプの符号化TSデータのままで探索可能なSPSを見つけ出し、そのSPSの前にあるAUデリミターの再生時間を映像復号化最小単位の先頭位置の再生時間として取得することができる。したがって、H.264タイプであっても、その符号化TSデータを復号化することなく、映像復号化の最小単位の開始位置を探索して、その再生時間を示すタイムチャートを生成することができる。   According to the present invention having the above-described configuration, H.264 can be used. It is possible to find an SPS that can be searched with H.264 type encoded TS data as it is, and obtain the reproduction time of the AU delimiter before the SPS as the reproduction time of the start position of the video decoding minimum unit. Therefore, H.H. Even in the H.264 type, it is possible to search for the start position of the minimum unit of video decoding without decoding the encoded TS data and generate a time chart showing the reproduction time.

以下に、図を用いて本発明の実施の形態を説明する。なお、本発明はこれら実施の形態に何ら限定されるものではなく、その要旨を逸脱しない範囲において、種々なる態様で実施しうる。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. Note that the present invention is not limited to these embodiments, and can be implemented in various modes without departing from the spirit of the present invention.

なお、実施例1は、主に請求項1、5、6、7、8について説明する。また、実施例2は、主に請求項2について説明する。また、実施例3は、主に請求項3について説明する。また、実施例4は、主に請求項4について説明する。   In the first embodiment, claims 1, 5, 6, 7, and 8 will be mainly described. In the second embodiment, claim 2 will be mainly described. In the third embodiment, claim 3 will be mainly described. In the fourth embodiment, claim 4 will be mainly described.

≪実施例1≫   Example 1

<概要>     <Overview>

図1は、本実施例の電子機器の一例である映像配信サーバから配信される符号化TSデータ、およびそのタイムチャートの一例を説明するための概念図である。この図1(a)にあるように、符号化TSデータは、AUD(AUデリミター)によりその境界が示されている「アクセスユニット」が集まって構成されている。しかし、例えばAUD2のアクセスユニットに含まれる動画データ2は、図1(b)に示すようにBフレームから始まる動画データであるため、そこを送信データの先頭としても、ストリーム送信先にてフレームデータに復号することは出来ない。   FIG. 1 is a conceptual diagram for explaining an example of encoded TS data distributed from a video distribution server which is an example of an electronic apparatus of the present embodiment, and a time chart thereof. As shown in FIG. 1A, the encoded TS data is composed of “access units” whose boundaries are indicated by an AUD (AU delimiter). However, for example, the moving image data 2 included in the access unit of the AUD 2 is moving image data starting from the B frame as shown in FIG. 1B. Cannot be decrypted.

一方、SPSの直前にあるAUD1やAUD3のアクセスユニットに含まれる動画データ1や動画データ3は、図1(b)に示すようにIフレームから始まる動画データであるため、そこを映像復号化の最小単位の先頭としてストリーム送信することが出来る。   On the other hand, the video data 1 and video data 3 included in the access units of AUD1 and AUD3 immediately before the SPS are video data starting from an I frame as shown in FIG. A stream can be transmitted as the head of the minimum unit.

そこで本実施例の電子機器では映像復号化最小単位の先頭として、例えば上記のようにSPS部分の直前に配置されるAUD(AUデリミター)の位置を探索する。そして、探索したAUデリミターの先頭位置の再生時間(再生位置)、例えば「00:02.29」、「00:02.32」等を算出することで、符号化TSデータを復号化することなく図1(c)に示すようなタイムチャートを生成することを特徴とする。   Therefore, in the electronic apparatus of this embodiment, the position of the AUD (AU delimiter) arranged immediately before the SPS portion is searched as the head of the video decoding minimum unit, for example, as described above. Then, by calculating the reproduction time (reproduction position) of the head position of the searched AU delimiter, for example, “00: 02.29”, “00: 02.32”, etc., without decoding the encoded TS data. A time chart as shown in FIG. 1C is generated.

ここで本実施例において、データの復号化をせずにこのAUデリミターなどの先頭位置の再生時間を算出する方法について、図2に示す符号化TSデータのさらに詳細なデータ構造を参照して以下に説明する。この図にあるように、符号化TSデータは、例えば188バイトのTSパケットの集まりで構成されている。そして、前述のように例えばSPS(α1)の直前にあるAUDの先頭位置(β1)を、映像復号化最小単位の先頭位置とすることができる。そして当該先頭位置の再生時間を算出するために、ここではPCR(γ1)を利用する例を挙げて説明する。「PCR」とは、その直後の動画データがデコーダバッファから再生のために出力されるタイミングを示す情報(例えば140秒)を含み、符号化TSデータ中に配置されている。そこで、このPCRの配置位置と、前記SPSの直前にあるAUDの先頭位置との距離、すなわち符号化データ量を算出し、ビットレート(デコードされた映像データの単位時間当たりのデータ量)からその経過時間(例えば9秒)を算出する。そして、その経過時間をPCRで示される時間基準に加えたり減じたりすることで、映像復号化最小単位の先頭位置の再生時間「149秒」を算出する、という具合である。   Here, in this embodiment, a method for calculating the reproduction time of the head position such as this AU delimiter without decoding the data will be described below with reference to a more detailed data structure of the encoded TS data shown in FIG. Explained. As shown in this figure, the encoded TS data is composed of a collection of TS packets of, for example, 188 bytes. As described above, for example, the head position (β1) of the AUD immediately before SPS (α1) can be set as the head position of the video decoding minimum unit. An example of using PCR (γ1) in order to calculate the reproduction time of the head position will be described here. “PCR” includes information (for example, 140 seconds) indicating the timing at which moving image data immediately after that is output from the decoder buffer for reproduction, and is arranged in the encoded TS data. Therefore, the distance between this PCR placement position and the head position of the AUD immediately before the SPS, that is, the encoded data amount is calculated, and the bit rate (data amount per unit time of the decoded video data) is calculated. The elapsed time (for example, 9 seconds) is calculated. Then, the playback time “149 seconds” of the head position of the video decoding minimum unit is calculated by adding or subtracting the elapsed time to or from the time reference indicated by PCR.

<機能的構成>     <Functional configuration>

図3は、本実施例の電子機器における機能ブロックの一例を表す図である。この図にあるように本実施例の「電子機器」(0300)は、「時間基準取得部」(0301)と、「先頭探索部」(0302)と、「先頭時間情報取得部」(0303)と、を有する。   FIG. 3 is a diagram illustrating an example of functional blocks in the electronic apparatus according to the present embodiment. As shown in this figure, the “electronic device” (0300) of the present embodiment includes a “time reference acquisition unit” (0301), a “first search unit” (0302), and a “first time information acquisition unit” (0303). And having.

なお、「電子機器」とは、演算回路とメモリ、I/O(インプット/アウトプット)を備えた機器をいい、ここでは映像データの再生や配信をする機能をさらに備える機器をいう。また、本発明における電子機器は、例えば上記構成と機能を備えたサーバ装置に組み込まれても良いし、P2P(ピアツーピア)技術による映像配信を行う機能を備えるクライアント端末装置に組み込まれても良い。あるいは、放送映像データをTSストリームのまま保存し再生するレコーダーなどに組み込まれても良い。   Note that “electronic device” refers to a device including an arithmetic circuit, a memory, and an I / O (input / output), and here refers to a device further provided with a function of reproducing and distributing video data. In addition, the electronic apparatus according to the present invention may be incorporated into, for example, a server apparatus having the above-described configuration and functions, or may be incorporated into a client terminal apparatus having a function of performing video distribution using P2P (peer to peer) technology. Alternatively, it may be incorporated in a recorder or the like that stores and reproduces broadcast video data as a TS stream.

また、以下に記載する本電子機器の機能ブロックは、ハードウェア、ソフトウェア、又はハードウェア及びソフトウェアの両方として実現され得る。具体的には、コンピュータを利用するものであれば、CPUや主メモリ、バス、あるいは二次記憶装置(ハードディスクや不揮発性メモリ、CDやDVDどの記憶メディアとそれらメディアの読取ドライブなど)、印刷機器や表示装置、その他の外部周辺装置などのハードウェア構成部、またその外部周辺装置用のI/Oポート、それらハードウェアを制御するためのドライバプログラムやその他アプリケーションプログラム、情報入力に利用されるユーザーインターフェースなどが挙げられる。   The functional blocks of the electronic device described below can be realized as hardware, software, or both hardware and software. Specifically, if a computer is used, a CPU, a main memory, a bus, or a secondary storage device (a hard disk, a non-volatile memory, a storage medium such as a CD or a DVD, a reading drive for the medium, etc.), a printing device And display devices, hardware components such as other external peripheral devices, I / O ports for the external peripheral devices, driver programs and other application programs for controlling these hardware, and users used for information input Examples include interfaces.

そして主メモリ上に展開したプログラムに従ったCPUの演算処理によって、インターフェースを介して入力されメモリやハードディスク上に保持されているデータなどが加工、蓄積されたり、上記各ハードウェアやソフトウェアを制御するための命令が生成されたりする。また、上記のような汎用コンピュータ以外に、上記演算回路やプログラムを一のハードウェア上にて実現した専用機器として実現し、サーバ装置や端末装置に組み込んでも良い。   Then, by CPU processing according to the program developed on the main memory, the data input via the interface and stored in the memory and hard disk are processed and stored, and the above hardware and software are controlled. Instructions are generated. In addition to the general-purpose computer as described above, the arithmetic circuit and the program may be realized as a dedicated device realized on a single hardware, and may be incorporated into a server device or a terminal device.

また、この発明は電子機器として実現できるのみでなく、方法としても実現可能である。また、このような発明の一部をソフトウェアとして構成することができる。さらに、そのようなソフトウェアをコンピュータに実行させるために用いるソフトウェア製品、及び同製品を記録媒体に固定した記録媒体も、当然にこの発明の技術的な範囲に含まれる(本明細書の全体を通じて同様である)。   In addition, the present invention can be realized not only as an electronic device but also as a method. A part of the invention can be configured as software. Furthermore, a software product used for causing a computer to execute such software and a recording medium in which the product is fixed to a recording medium are naturally included in the technical scope of the present invention (the same applies throughout the present specification). Is).

「時間基準取得部」(0301)は、符号化TSデータから時間基準を取得する機能を有する。「時間基準」は、H.264タイプの符号化TSデータのTSパケットヘッダに配置され、その直後に含まれるフレームのデコードや再生などの各種タイミングを示す情報をいう。具体的には、例えば、自身の直後に含まれるフレームの再生時間や、デコーダバッファからの出力タイミングなどが挙げられる。したがって、例えば、時間基準において「2分29秒」というタイミングが示されていれば、符号化TSデータ中でその時間基準の直後に配置されているフレームは「2分29秒」にデコーダバッファから再生のためにVRAMなどに出力されることになる。そして、図2で説明したように、この時間基準から映像復号化最小単位の先頭バイト位置までの距離を利用して、その映像復号化最小単位の再生時間を算出する、という具合である。またそのために、ここで取得される時間基準と関連付けてその配置位置を示す情報も含み取得すると良い。   The “time reference acquisition unit” (0301) has a function of acquiring a time reference from the encoded TS data. “Time reference” This is information indicating various timings such as decoding and reproduction of a frame that is arranged in the TS packet header of H.264 type encoded TS data and immediately after that. Specifically, for example, the playback time of a frame included immediately after itself, the output timing from the decoder buffer, and the like can be mentioned. Therefore, for example, if the timing “2 minutes 29 seconds” is indicated in the time reference, the frame arranged immediately after the time reference in the encoded TS data is “2 minutes 29 seconds” from the decoder buffer. It will be output to VRAM for playback. Then, as described with reference to FIG. 2, the playback time of the video decoding minimum unit is calculated using the distance from the time reference to the first byte position of the video decoding minimum unit. For this purpose, it is preferable to acquire information including information indicating the arrangement position in association with the time reference acquired here.

なお時間基準としては、例えば前述の「PCR」などが挙げられる。その場合この時間基準取得部は、図4に示すようにトランスポートストリームのPCR部分から時間基準を取得する「PCR取得手段」(0404)を有すると良い。具体的に、PCRはTSパケット内での配置位置は決まっている(TSヘッダの直後にある)が、すべてのTSパケットに含まれているとは限らない(どのTSパケットにPCRが配置されるかは、エンコーダの設定次第である)。   Examples of the time reference include the above-mentioned “PCR”. In this case, the time reference acquisition unit may include “PCR acquisition means” (0404) for acquiring the time reference from the PCR portion of the transport stream as shown in FIG. Specifically, the placement position of the PCR in the TS packet is fixed (immediately after the TS header), but is not necessarily included in all TS packets (the PCR is placed in which TS packet) This depends on the encoder settings).

したがってPCR取得手段は、まず、図2に示すような188バイトのTSパケット内にPCRが配置されているか、を判断することになる。そして、その配置有無の判断処理においては、前述のようにTSパケット内でのPCRの配置位置は決まっていることから、TSパケット内のPCRの配置されるべき所定の位置に有る値を判定することで判断できる。そして、PCRが含まれている旨判断されれば、そのPCRで示される時間基準やその配置位置を取得することができる。   Therefore, the PCR acquisition means first determines whether the PCR is arranged in a 188-byte TS packet as shown in FIG. In the determination process of the presence / absence of the arrangement, since the arrangement position of the PCR in the TS packet is determined as described above, a value at a predetermined position where the PCR is to be arranged in the TS packet is determined. Can be judged. If it is determined that the PCR is included, the time reference indicated by the PCR and the arrangement position thereof can be acquired.

以下、このPCR取得手段によるPCRの取得処理の一例を、図5及び図6のフロー図を用いて説明する。PCR取得手段では、前述のように、まずTSパケット内にPCRが配置されているかの判断を行う。すなわち図5にあるように、符号化TSデータの所定の読込データ位置から188バイト分(一パケット分)のTSパケットを読み込み(ステップS0501)、主メモリなどに格納する。続いて、読み込んだ188バイトのデータの27ビット目の値aを取得する(ステップS0502)。そしてCPUの論理演算処理(ステップS0503)によってaの値が1では無いと判断された場合は、当該パケットにはPCRが含まれていないとして(ステップS0507)、図示しないループカウンターに1を加えて、さらに次のTSパケットの読み込みを実行し、上記判断処理を繰り返す。   Hereinafter, an example of the PCR acquisition process by the PCR acquisition means will be described with reference to the flowcharts of FIGS. As described above, the PCR acquisition unit first determines whether a PCR is arranged in the TS packet. That is, as shown in FIG. 5, 188 bytes (one packet) of TS packets are read from a predetermined read data position of the encoded TS data (step S0501) and stored in the main memory or the like. Subsequently, the 27th bit value a of the read 188-byte data is acquired (step S0502). If it is determined by the CPU logical operation processing (step S0503) that the value of a is not 1, the packet is not included in the PCR (step S0507), and 1 is added to a loop counter (not shown). Further, the next TS packet is read and the above determination process is repeated.

一方、a=1との判断結果が出力された場合、今度は、188バイトのデータの先頭から44ビット目の値bを取得し(ステップS0504)、その値が1であるか否かの判断処理を実行する(ステップS0505)。そして、その判断処理の結果、b=1であるとの判断結果が出力されれば、読み込んだTSパケットにPCRが含まれているとして(ステップS0506)、つづいて図6で示すように時間基準の算出される。また、それとともにPCRの配置位置の算出処理が実行されても良い。   On the other hand, when the determination result that a = 1 is output, the value b of the 44th bit from the beginning of the 188-byte data is acquired (step S0504), and it is determined whether the value is 1 or not. Processing is executed (step S0505). If the determination result that b = 1 is output as a result of the determination process, it is assumed that the read TS packet includes the PCR (step S0506), and then, as shown in FIG. Is calculated. In addition, the calculation processing of the PCR arrangement position may be executed together with it.

図6(a)にあるように、前述の処理によってPCRが有る旨の判断がなされると、読み込んだ188バイトのデータの先頭から48ビットから81ビットの2進数値(PCR baseの値)を10進数eに変換する(ステップS0601)。   As shown in FIG. 6A, when it is determined that there is a PCR by the above-described processing, a binary value (PCR base value) of 48 bits to 81 bits from the head of the read 188 bytes of data is obtained. Conversion into a decimal number e (step S0601).

なおPCR Base(ISO/IEC13818-1 2.4.3.4に規定)は、処理タイミングを90kHzのベースクロックにおけるクロック数で示しているので、この値eをH.264のベースクロックに対応する値に換算する必要がある。ここで例えばH.264のベースクロックが27MHzであれば、値eを300倍すれば良い。そこで本処理例では、PCR baseの値eを例えば300倍(この値はベースクロックに応じて様々であって良い)した値Eを算出する(ステップS0602)。   PCR Base (specified in ISO / IEC13818-1 2.4.3.4) indicates the processing timing in terms of the number of clocks in a 90 kHz base clock. It is necessary to convert to a value corresponding to the H.264 base clock. Here, for example, H.R. If the H.264 base clock is 27 MHz, the value e may be multiplied by 300. Therefore, in this processing example, a value E obtained by multiplying the PCR base value e by, for example, 300 times (this value may vary depending on the base clock) is calculated (step S0602).

しかし、このように値Eを300倍などとした場合、PCR Base値の精度が低下してしまう。そこで精度低下分を補完するため、PCRにて示されるPCR Extension(ISO/IEC13818-1 2.4.3.4に規定)のデータを利用する。具体的には188バイトのデータの先頭から88から97ビットの2進数値(PCR Extension)を10進数fに変換する(ステップS0603)。そして、その補完値fをEに加え、その値を「秒」などに換算するためH.264のベースクロック(例えば27MHz)で除することで、PCRで示される時間基準(秒数など)を算出する(ステップS0604)、という具合である。   However, when the value E is set to 300 times as described above, the accuracy of the PCR Base value is lowered. Therefore, in order to compensate for the decrease in accuracy, PCR Extension data (specified in ISO / IEC13818-1 2.4.3.4) indicated by PCR is used. Specifically, a binary value (PCR Extension) of 88 to 97 bits from the head of the 188-byte data is converted into a decimal number f (step S0603). Then, in order to add the complement value f to E and convert the value into “seconds”, etc. By dividing by H.264 base clock (for example, 27 MHz), a time reference (such as the number of seconds) indicated by PCR is calculated (step S0604).

また、図6(b)に示すように、ここでそのPCRの配置位置を算出しても良い。具体的には、図5に示すようなPCR有無の判定処理の結果、PCRがある旨の判断がされると、データの読み込み位置を算出する。具体的には、例えば188バイトのTSパケット内にPCRが含まれているかの判定処理を繰り返す際にループカウンターのカウントを行う。そしてループカウンターの値が4、すなわち4個目のTSパケットにPCRが含まれていた場合、その読込位置は188×4バイト=752バイトに、「12バイト」を加えた値となる。なお、これはPCRのTSパケット(188バイトのデータ)内での配置位置は固定であり、その位置はTSパケットの先頭から12バイト目であるからである。   In addition, as shown in FIG. 6B, the arrangement position of the PCR may be calculated here. Specifically, when it is determined that there is PCR as a result of the PCR presence / absence determination process as shown in FIG. 5, the data reading position is calculated. Specifically, for example, the loop counter is counted when the process of determining whether a PCR is included in a 188-byte TS packet is repeated. When the value of the loop counter is 4, that is, when PCR is included in the fourth TS packet, the read position is a value obtained by adding “12 bytes” to 188 × 4 bytes = 752 bytes. This is because the arrangement position in the PCR TS packet (188-byte data) is fixed, and the position is the 12th byte from the beginning of the TS packet.

続いて本実施例の電子機器では、以下の構成にて映像復号化最小単位の先頭バイト位置を取得する。   Subsequently, in the electronic apparatus of the present embodiment, the first byte position of the minimum video decoding unit is acquired with the following configuration.

「先頭探索部」(0302)は、映像復号化最小単位の先頭バイト位置を探索する機能を有する。「映像復号化最小単位」とは、符号化TSデータにおいて、単独での復号化が可能なデータ構造の最小単位をいい、例えば「IBB・・P」のフレームを含むデータ構造単位などが挙げられる。そして本発明では、この映像復号化最小単位の先頭を探索するために符号化TSデータ内に配置される「SPS」を利用することを特徴とする。「SPS(シーケンス・パラメータ・セット)」とは、符号化プロファイルや符号化レベルなど、参照シークエンスの符号化に関する情報が示される符号化TSストリーム内のヘッダ部分をいう。具体的には、SPSの先頭バイト位置や、その近傍のバイト位置などを映像復号化最小単位の先頭バイト位置として探索する、という具合である。   The “head search section” (0302) has a function of searching for the head byte position of the minimum video decoding unit. The “video decoding minimum unit” refers to the minimum unit of a data structure that can be decoded independently in encoded TS data, and includes, for example, a data structure unit including a frame of “IBB • P”. . The present invention is characterized in that “SPS” arranged in the encoded TS data is used to search for the head of this video decoding minimum unit. “SPS (sequence parameter set)” refers to a header portion in an encoded TS stream in which information related to encoding of a reference sequence such as an encoding profile and an encoding level is indicated. More specifically, a search is made such that the first byte position of the SPS, the neighboring byte position, and the like are searched as the first byte position of the video decoding minimum unit.

そして、例えば先の時間基準取得部にて取得した「時間基準の配置位置」と、ここで取得される「映像復号化最小単位の先頭バイト位置」までの距離を利用して、本実施例では映像復号化最小単位の再生時間を算出することができる、という具合である。   For example, in this embodiment, using the distance between the “time reference arrangement position” acquired by the previous time reference acquisition unit and the “first byte position of the minimum video decoding unit” acquired here, That is, it is possible to calculate the playback time of the minimum video decoding unit.

なお、この映像復号化最小単位の先頭バイト位置としては、SPSそのものの先頭バイト位置のみならず、前述のように例えば「SPS部分の直前に配置されるAUデリミターの先頭バイト位置」なども挙げられる。その場合、この先頭探索部は、図4に示すように、SPS部分の直前に配置されるAUデリミターを映像復号化最小単位の先頭バイト位置として取得するAUデリミター(Delimiter)取得手段(0405)を有すると良い。具体的には、まずTSパケット単位(188バイト単位)で読込んだデータ内に、SPSを示す所定の値が含まれているかを判断し、含まれていると判断されればその直前にあるAUデリミターの先頭バイト位置を取得する、という具合である。   As the first byte position of the video decoding minimum unit, not only the first byte position of the SPS itself but also the “first byte position of the AU delimiter arranged immediately before the SPS part” as described above can be cited. . In this case, as shown in FIG. 4, the head search unit includes AU delimiter acquisition means (0405) for acquiring the AU delimiter arranged immediately before the SPS portion as the head byte position of the video decoding minimum unit. It is good to have. Specifically, first, it is determined whether or not a predetermined value indicating SPS is included in the data read in TS packet units (188 byte units). For example, the first byte position of the AU delimiter is acquired.

以下、AUデリミター取得手段によるSPS部分の直前に配置されるAUデリミターの取得処理の一例を、図7のフロー図を用いて説明する。この図にあるように、まずループカウンターを0にセットし(ステップS0701)、符号化TSデータの所定の読込データ位置(最初はデータの先頭)から、符号化TSデータを188バイト分読み込む(ステップS0702)。   Hereinafter, an example of the acquisition process of the AU delimiter arranged immediately before the SPS portion by the AU delimiter acquisition unit will be described with reference to the flowchart of FIG. As shown in this figure, first, the loop counter is set to 0 (step S0701), and 188 bytes of encoded TS data are read from a predetermined read data position of the encoded TS data (initially the beginning of the data) (step S0701). S0702).

続いて、読み込んだデータ内にA(0x00000127)、B(0x00000147)、C(0x00000167)のいずれかが含まれるか、をCPUの論理演算処理にて判断する(ステップS0703)。なお、上記A,B,Cのいずれかの値は、SPSに必ず含まれるSPSの識別値である。そして、上記値が含まれていなければ、読み込んだ一パケット分の188バイトのデータ内にSPSは含まれていないとして、ループカウンターに1を加えて(ステップS0704)、読込データ位置を188バイト先に設定して(ステップS0705)、上記処理を繰り返す。   Subsequently, it is determined by logical operation processing of the CPU whether any one of A (0x00000127), B (0x00000147), and C (0x00000167) is included in the read data (step S0703). Note that one of the values A, B, and C is an SPS identification value that is always included in the SPS. If the above-mentioned value is not included, SPS is not included in the read 188-byte data for one packet, and 1 is added to the loop counter (step S0704), and the read data position is set to 188 bytes ahead. (Step S0705) and the above process is repeated.

また、読み込んだTSパケット内に上記A、B、Cいずれかの値がある場合、当該TSパケット内にSPS部分が含まれていると判断することができる。ここで、AUデリミターではなくSPSそのものを利用する場合、読込んだTSパケット内でのSPSの出現バイト位置と、ループカウンター値(SPS発見までに読込んだ188バイトのTSパケットの数)から、符号化TSデータ全体の中での当該SPSの先頭バイト位置を、映像復号化最小単位の先頭バイト位置として算出すると良い。   If any of the values A, B, and C is present in the read TS packet, it can be determined that the SPS portion is included in the TS packet. Here, when using the SPS itself instead of the AU delimiter, from the appearance byte position of the SPS in the read TS packet and the loop counter value (the number of 188-byte TS packets read until the SPS discovery), The first byte position of the SPS in the entire encoded TS data may be calculated as the first byte position of the video decoding minimum unit.

一方、AUデリミター取得手段においてAUデリミターを取得する場合、前述の処理により発見されたSPSの直前にあるAUデリミターの先頭バイト位置を取得することになる。   On the other hand, when the AU delimiter acquisition unit acquires the AU delimiter, the first byte position of the AU delimiter immediately before the SPS found by the above-described processing is acquired.

ただし、符号化TSデータを188バイトのTSパケットに分割した場合、例えば図2に示す3個目のパケットのように、一つのAUデリミターが分断され、前後のパケットに分離して存在することがある。そこで、AUデリミター取得手段では、例えば以下のような処理を実行すると良い。   However, when the encoded TS data is divided into TS packets of 188 bytes, one AU delimiter may be divided and exist separately in the preceding and following packets, for example, as in the third packet shown in FIG. is there. Therefore, the AU delimiter acquisition unit may execute the following processing, for example.

すなわち、図7にあるように、ステップS0703での判断処理によって読込んだTSパケット内にSPSが有る旨の判断結果が出力されると、続いて読込んだ188バイトのデータ内に、AUデリミターの識別値D(0x00000109)が含まれているか判断する(ステップS0706)。   That is, as shown in FIG. 7, when a determination result indicating that there is an SPS in the TS packet read by the determination processing in step S0703 is output, the AU delimiter is included in the subsequently read 188-byte data. It is determined whether or not the identification value D (0x00000109) is included (step S0706).

そして値Dが含まれていれば、SPSが含まれている188バイトのデータ内にAUデリミターの先頭がある(AUデリミターが分離されていない)ことになり、現在読込んでいるTSパケット内にAUデリミターの先頭が存在することになる。したがって、まず、読込んだ188バイトのデータの先頭からのDの出現バイト数x1を取得する(ステップS0707y)。つづいて、ループカウンターr×188+x1を、映像復号化最小単位の先頭バイト位置(SPSの直前にあるAUデリミターの先頭バイト位置)として取得する(ステップS0708y)、という具合である。   If the value D is included, the AU delimiter is included in the 188-byte data including the SPS (the AU delimiter is not separated), and the AU is included in the TS packet currently read. The head of the delimiter will be present. Therefore, first, the number of appearance bytes x1 of D from the head of the read 188-byte data is acquired (step S0707y). Subsequently, the loop counter r × 188 + x1 is acquired as the first byte position of the video decoding minimum unit (the first byte position of the AU delimiter immediately before the SPS) (step S0708y).

一方、ステップS0706にて値Dが含まれていないと判断された場合、AUデリミターが分離(あるいはちょうどAUデリミターとSPSとの境界で分離)され、その先頭は読込んだパケットデータの1つ前のパケットデータ内に存在していることになる。したがって、この場合には、読込んだデータの1つ前の188バイトのデータの先頭からのDの出現バイト数x2を取得する(ステップS0707n)。つづいて、(r−1)×188+x2を、映像復号化最小単位の先頭バイト位置として取得する(ステップS0708n)、という具合である。   On the other hand, if it is determined in step S0706 that the value D is not included, the AU delimiter is separated (or just separated at the boundary between the AU delimiter and the SPS), and the head thereof is one before the read packet data. Existing in the packet data. Therefore, in this case, the number of appearance bytes x2 of D from the head of the 188-byte data immediately before the read data is acquired (step S0707n). Subsequently, (r−1) × 188 + x2 is acquired as the first byte position of the video decoding minimum unit (step S0708n).

ところでAUデリミターのバイト数は6バイトと固定であるため、例えば、発見されたSPSの先頭から6バイト前をAUデリミターの先頭バイト位置と特定し、その先頭バイト位置を取得しても良い。具体的には、図26にあるように先頭バイト位置を取得することができる。図26にあるS2601からS2605はS0701からS0705と同じ処理内容である。読込んだTSパケット内にSPSが有る旨の判断結果が出力される(ステップS2603)と、続いて読込んだ188バイトのデータの先頭とA、B、Cいずれかの出現バイト位置の差が6バイト以上かを判断する(ステップS2606)。   By the way, since the number of bytes of the AU delimiter is fixed at 6 bytes, for example, 6 bytes before the head of the found SPS may be specified as the head byte position of the AU delimiter, and the head byte position may be acquired. Specifically, the head byte position can be acquired as shown in FIG. S2601 to S2605 in FIG. 26 have the same processing contents as S0701 to S0705. When a determination result indicating that an SPS is present in the read TS packet is output (step S2603), the difference between the beginning of the read 188-byte data and the appearance byte position of any of A, B, and C is obtained. It is determined whether it is 6 bytes or more (step S2606).

そして差が6バイト以上であれば、SPSが含まれている188バイトのデータ内にAUデリミターの先頭がある(AUデリミターが分離されていない)ことになり、現在読込んでいるTSパケット内にAUデリミターの先頭が存在することになる。したがって、まず、読込んだ188バイトのデータの先頭からのA、B、Cいずれかの出現バイト数y1を取得する(ステップS2607y)。つづいて、ループカウンターr×188+y1+6を、映像復号化最小単位の先頭バイト位置(SPSの直前にあるAUデリミターの先頭バイト位置)として取得する(ステップS2608y)、という具合である。   If the difference is 6 bytes or more, the head of the AU delimiter is present in the 188-byte data including the SPS (AU delimiter is not separated), and the AU is included in the TS packet currently read. The head of the delimiter will be present. Therefore, first, the number of appearance bytes y1 of any one of A, B, and C from the head of the read 188-byte data is acquired (step S2607y). Subsequently, the loop counter r × 188 + y1 + 6 is acquired as the first byte position of the video decoding minimum unit (the first byte position of the AU delimiter immediately before the SPS) (step S2608y).

一方、ステップS2606にて差が6バイト未満と判断された場合、AUデリミターが分離(あるいはちょうどAUデリミターとSPSとの境界で分離)され、その先頭は読込んだパケットデータの1つ前のパケットデータ内に存在していることになる。したがって、この場合には、読込んだデータの1つ前の188バイトのデータの先頭からのA、B、Cいずれかの出現バイト数y2を取得する(ステップS2607n)。つづいて、(r−1)×188+y2を、映像復号化最小単位の先頭バイト位置として取得する(ステップS2608n)、という具合である。   On the other hand, if it is determined in step S2606 that the difference is less than 6 bytes, the AU delimiter is separated (or just separated at the boundary between the AU delimiter and the SPS), and the head of the packet is one packet before the read packet data. It exists in the data. Therefore, in this case, the number of occurrence bytes y2 of any one of A, B, and C from the head of the 188-byte data immediately before the read data is acquired (step S2607n). Subsequently, (r−1) × 188 + y2 is acquired as the first byte position of the video decoding minimum unit (step S2608n).

そして本実施例では、このように算出された「PCR時間(時間基準)」と「時間基準の配置位置」と、「映像復号化最小単位の先頭バイト位置」と、を利用して、以下のようにして映像復号化最小単位の先頭位置が再生されるべき時間を算出する。   In this embodiment, the “PCR time (time reference)”, “time reference arrangement position”, and “starting byte position of video decoding minimum unit” calculated in this way are used as follows. In this way, the time for reproducing the head position of the video decoding minimum unit is calculated.

「先頭時間情報取得部」(0303)は、取得した時間基準と、その時間基準が配置されるバイト位置と、先頭探索部にて探索された映像復号化最小単位の先頭バイト位置と、再生装置でデコードする際のデコードビットレートと、から先頭時間情報を取得する機能を有する。「先頭時間情報」とは、各映像復号化最小単位の先頭位置が再生されるべき時間を示す情報をいい、例えばデコーダバッファから出力されるタイミングなどで示される時間情報が挙げられる。そして、この先頭時間情報を用いてランダムアクセス用のタイムチャートが生成される。また、「デコードビットレート」とはデコードされた映像データの単位時間当たりのデータ量をいい、例えば500kbps(1秒あたりの映像データ量が500kbit)などの値が挙げられる。   The “start time information acquisition unit” (0303) includes the acquired time reference, the byte position where the time reference is arranged, the start byte position of the video decoding minimum unit searched by the start search unit, and the playback device It has a function to acquire the start time information from the decoding bit rate when decoding with. “Head time information” refers to information indicating the time at which the head position of each video decoding minimum unit is to be reproduced, and includes time information indicated by timing output from the decoder buffer, for example. And the time chart for random access is produced | generated using this head time information. The “decode bit rate” refers to the amount of data per unit time of decoded video data, and includes values such as 500 kbps (the amount of video data per second is 500 kbit).

なお、先頭時間情報を算出するためのパラメータである「時間基準」、「時間基準の配置(バイト)位置」、および「映像復号化最小単位の先頭バイト位置」の取得については、すでに上記各構成要件にて記載したのでその説明は省略する。ここでは、もう一つの算出用パラメータである「デコードビットレート」の取得処理、および、これらパラメータを用いた先頭時間情報の算出処理について以下に詳述する。   Regarding the acquisition of “time reference”, “time reference arrangement (byte) position”, and “starting byte position of video decoding minimum unit”, which are parameters for calculating the start time information, the above-described configurations The description is omitted because it is described in the requirements. Here, another process for obtaining “decoding bit rate”, which is a parameter for calculation, and calculation process for head time information using these parameters will be described in detail below.

まず、デコードビットレートの算出方法としては以下のような方法が挙げられる。すなわち、例えば2つのPCRの配置位置を取得し、そのPCR間の距離(データ量)を算出する。また、それぞれのPCRの値はデコーダへの入力時間を示す時間基準を表すので、その時間基準の差分値が2つのPCR間の映像データ再生時間を示すことになる。そこで、「2つのPCR間の距離(データ量)」を「2つのPCR間の映像データの再生時間(時間基準の差分値)」で除することでデコード映像データの単位時間当たりのデータ量、すなわちデコードビットレートを算出する、という具合である。   First, the decoding bit rate calculation method includes the following method. That is, for example, the arrangement positions of two PCRs are acquired, and the distance (data amount) between the PCRs is calculated. Since each PCR value represents a time reference indicating the input time to the decoder, the difference value of the time reference indicates the video data reproduction time between the two PCRs. Therefore, by dividing “distance between two PCRs (data amount)” by “reproduction time of video data between two PCRs (time-based difference value)”, the data amount per unit time of decoded video data, That is, the decoding bit rate is calculated.

図8は、符号化TSデータのデコードビットレートを取得する上記処理の流れの一例を表すフローチャートである。この図にあるように、まず図6に示す処理により一のPCR時刻T1を取得する。続いて、次のPCRを取得するため、先の読込みデータ位置から188バイト加えた位置を読込みデータ位置として設定する(ステップS0801)。   FIG. 8 is a flowchart showing an example of the above-described processing flow for acquiring the decoding bit rate of encoded TS data. As shown in this figure, first, one PCR time T1 is acquired by the process shown in FIG. Subsequently, in order to acquire the next PCR, a position obtained by adding 188 bytes from the previous read data position is set as the read data position (step S0801).

また、次のPCR発見処理にあたり、ビットレート算出用のループカウンターrbを1に設定する(ステップS0802)。そしてS0801で設定した読込みデータ位置から188バイト分(一パケット分)のデータを読込む(ステップS0803)。続いて図5で示すような処理を行い次のPCRが読込んだ188バイトのデータに含まれるか判定処理を実行する(ステップS0804)。そして、その判定処理の結果(ステップS0805)、次のPCRが含まれていなければ、読込みデータ位置を188バイト加えた先の位置に設定し(ステップS0806)、ループカウンターrbに1を加え(ステップS0807)、上記処理を繰り返す。   In the next PCR discovery process, the loop counter rb for bit rate calculation is set to 1 (step S0802). Then, 188 bytes (one packet) of data is read from the read data position set in S0801 (step S0803). Subsequently, the process as shown in FIG. 5 is performed to determine whether the next PCR is included in the read 188-byte data (step S0804). As a result of the determination process (step S0805), if the next PCR is not included, the read data position is set to the position after adding 188 bytes (step S0806), and 1 is added to the loop counter rb (step S0805). S0807), the above process is repeated.

そしてPCR有無の判定処理の結果、次のPCRがあるとの判定がされると、図6に示す処理を実行し次のPCRの時間基準T2を取得する(ステップS0808)。そして、先のPCR時間T1と、次のPCR時間T2の差分値tを、そのPCR間の動画データの再生時間を示す値として取得する(ステップS0809)。また、PCRは188バイトのデータ(TSパケット)のTSヘッダ直後に配置されるため、両PCR間にあるデータ量は、読込んだデータ量と等しくなる。したがって、一のPCR発見から次のPCR発見までにかかった繰返し回数rb×188を演算し、そのデータ量dを算出する(ステップS0810)。   If it is determined that there is a next PCR as a result of the PCR presence / absence determination process, the process shown in FIG. 6 is executed to obtain a time reference T2 for the next PCR (step S0808). Then, the difference value t between the previous PCR time T1 and the next PCR time T2 is acquired as a value indicating the reproduction time of the moving image data between the PCRs (step S0809). Since the PCR is arranged immediately after the TS header of 188-byte data (TS packet), the amount of data between both PCRs is equal to the amount of data read. Accordingly, the number of repetitions rb × 188 required from the discovery of one PCR to the discovery of the next PCR is calculated, and the data amount d is calculated (step S0810).

そして、最後に「両PCR間のデータ量d」を、「両PCR間の差分時間t」で除することで単位時間当たりのデコードビットレートが算出される、という具合である。なおデコードビットレートの算出にあたり、上記処理例では、PCRやSPSヘッダなどの映像データ以外のデータも含めてそのデコードビットレートを算出したが、映像データのみのデコードビットレートを算出するよう構成しても良い。   Finally, the “decoding bit rate per unit time” is calculated by dividing the “data amount d between both PCRs” by the “difference time t between both PCRs”. In calculating the decoding bit rate, in the above processing example, the decoding bit rate is calculated including data other than video data such as PCR and SPS header. However, the decoding bit rate is calculated only for video data. Also good.

そして、図2に示すようなデータ構造をとる符号化TSデータにおいて、「時間基準の配置バイト位置」(γ1)と「映像復号化最小単位の先頭バイト位置」(β1)の差分から、そのデータ量を算出する。そして、算出したデータ量を「デコードビットレート」で除することで、当該データに含まれるフレームのデコーダバッファへの出力タイミングなどで示される再生時間を算出する。そして、算出した再生時間を、PCRで示される「時間基準」に加えることで、β1における再生時間、すなわち先頭時間情報を算出することができる。   Then, in the encoded TS data having the data structure as shown in FIG. 2, the data is obtained from the difference between the “time-based arrangement byte position” (γ1) and the “first byte position of the video decoding minimum unit” (β1). Calculate the amount. Then, by dividing the calculated data amount by the “decoding bit rate”, the reproduction time indicated by the output timing to the decoder buffer of the frame included in the data is calculated. Then, by adding the calculated reproduction time to the “time reference” indicated by PCR, it is possible to calculate the reproduction time in β1, that is, the head time information.

このように、本実施例の電子機器によって、符号化TSデータを復号せずに、その映像復号化最小単位の再生時間である先頭時間情報を取得することができる。そして、符号化TSデータ内の各先頭時間情報を上記処理を繰り返すことで順次取得し、ランダムアクセス用のタイムチャートを生成することができる。   As described above, the electronic device of the present embodiment can acquire the start time information that is the reproduction time of the video decoding minimum unit without decoding the encoded TS data. Then, each head time information in the encoded TS data can be sequentially acquired by repeating the above processing, and a time chart for random access can be generated.

なお、本実施例の電子機器では時間基準の取得その他の処理においてTSパケットを前から順に読込む構成を例に挙げて説明しているが、もちろん、後ろから順に読込んで上記各処理を行うよう構成しても良い。   In the electronic apparatus according to the present embodiment, the configuration in which TS packets are read sequentially from the front in the acquisition of time reference and other processes has been described as an example. Of course, the above processes are performed by reading sequentially from the back. It may be configured.

<処理の流れ>     <Process flow>

以下、本実施例の先頭時間情報算出処理における全体の流れについて、その一例を図9から図11を用いて説明する。なお、以下に示すステップは、媒体に記録され計算機を制御するためのプログラムを構成する処理ステップであっても構わない。まず、本実施例の電子機器では、先頭時間情報を算出するため各種パラメータの初期化処理を行う。   Hereinafter, an example of the overall flow in the start time information calculation process of the present embodiment will be described with reference to FIGS. Note that the steps shown below may be processing steps that constitute a program for controlling a computer recorded on a medium. First, in the electronic apparatus of the present embodiment, various parameters are initialized in order to calculate head time information.

図9は、この初期化処理の一例を表すフローチャートである。この図にあるように、PCR位置を0とし(ステップS0901)、PCR時間も0とする(ステップS0902)。また、ループカウンターを0とする(ステップS0903)。   FIG. 9 is a flowchart showing an example of this initialization process. As shown in this figure, the PCR position is set to 0 (step S0901), and the PCR time is also set to 0 (step S0902). Further, the loop counter is set to 0 (step S0903).

そして、ビットレート値を0とし(ステップS0904)、ビットレート用ループカウンターを0とする(ステップS0905)。また、読込みデータ位置を0とし(ステップS0906)、ビットレート用読込みデータ位置も0と設定する(ステップS0907)。また、AUデリミター値を0とし(ステップS0908)、差分値も0と設定する(0909)。   The bit rate value is set to 0 (step S0904), and the bit rate loop counter is set to 0 (step S0905). Further, the read data position is set to 0 (step S0906), and the bit rate read data position is also set to 0 (step S0907). Further, the AU delimiter value is set to 0 (step S0908), and the difference value is also set to 0 (0909).

そしてこのように各パラメータの初期化を行った後、つづいてビットレートの算出処理を行う。なお、ここで、映像復号化最小単位の先頭バイト位置探索の前にビットレートの算出処理を行う理由は、以下の例外処理に対応するためである。すなわち、前述の処理においては、ビットレートの算出のためにまずPCRを取得している。しかし、例外的にPCR取得の前に映像復号化最小単位が取得された場合、その映像復号化最小単位の先頭バイト位置までのビットレートは不明なままとなってしまう。そこで、このような例外時の対応のために、まずビットレートを最初に求めておく、という具合である。   After the parameters are initialized as described above, the bit rate calculation process is performed. Here, the reason why the bit rate calculation process is performed before the search for the first byte position of the video decoding minimum unit is to deal with the following exception process. That is, in the above-described processing, the PCR is first acquired for the calculation of the bit rate. However, if the video decoding minimum unit is acquired before the PCR acquisition exceptionally, the bit rate up to the first byte position of the video decoding minimum unit remains unknown. Therefore, in order to deal with such an exception, the bit rate is first obtained.

図10は、この例外処理のためのビットレート算出処理の一例を表すフローチャートである。この図にあるように、まず前述の各種パラメータの初期化処理を実行し(ステップS1001)、続いて、読込みデータ位置から188バイト分(一パケット分)のデータを読込む(ステップS1002)。そして図5に示すようなPCR有無の判定処理を実行し(ステップS1003)、PCRが読込んだデータ内に含まれていなければ読込み位置を188バイト加えた先に設定し(ステップS1004)、PCR有無の判定処理を繰り返す。そして、PCRが有る旨の判定結果が出力されると、図6や図8に示すような処理によりビットレートを(暫定的に)算出する(ステップS1004)。   FIG. 10 is a flowchart showing an example of a bit rate calculation process for this exceptional process. As shown in this figure, first, the above-described various parameter initialization processing is executed (step S1001), and then 188 bytes (one packet) of data is read from the read data position (step S1002). Then, the PCR presence / absence determination process as shown in FIG. 5 is executed (step S1003). If the PCR is not included in the read data, the read position is set to 188 bytes (step S1004). Repeat the presence / absence determination process. Then, when a determination result indicating that there is a PCR is output, the bit rate is (provisionally) calculated by a process as shown in FIG. 6 or FIG. 8 (step S1004).

そして、読込みデータ位置を0に戻し(ステップS1005)、PCR位置およびPCR時間を0と設定して(ステップS1006)、次の先頭時間情報の算出処理を実行する。   Then, the read data position is returned to 0 (step S1005), the PCR position and the PCR time are set to 0 (step S1006), and the next start time information calculation process is executed.

なおH.264タイプで符号化される場合、ビットレートは単位時間当たりの符号量が可変となるいわゆる「VBR」である。そのため、ビットレートの算出は、映像復号化最小単位ごとにその近辺のPCRを利用して実行されることが望ましい。   H. When encoding with the H.264 type, the bit rate is a so-called “VBR” in which the code amount per unit time is variable. Therefore, it is desirable to calculate the bit rate by using a PCR in the vicinity of each video decoding minimum unit.

図11は、上記例外処理の後に実行される先頭時間情報の算出の一例を表すフローチャートである。この図にあるように、まず、図5に示す処理を実行し、188バイト分のデータの読込みと、その読込んだデータ内にPCRが有るか否かの判定処理を行う(ステップS1101)。ここで、読込んだ188バイトのデータ内にPCRが無い旨の判定結果であり、かつステップS1105にてSPSとAUデリミターが有る旨の判断結果が出力された場合、先頭時間の算出処理において、前述の例外処理にて算出されたビットレートが使用されることになる。   FIG. 11 is a flowchart showing an example of calculation of head time information executed after the exception processing. As shown in this figure, first, the process shown in FIG. 5 is executed to read 188 bytes of data and determine whether there is a PCR in the read data (step S1101). Here, if the determination result that there is no PCR in the read 188-byte data and the determination result that the SPS and the AU delimiter are present is output in step S1105, The bit rate calculated in the above exception process is used.

一方、ステップS1101にてPCRが有る旨の判定結果が出力された場合、図6にて示すようにPCR時間の取得(ステップS1102)、およびPCR位置の取得(ステップS1103)が実行される。また、続いて、図8に示すような処理を実行し、新たにビットレートが算出される(ステップS1104)。   On the other hand, if a determination result indicating that PCR is present is output in step S1101, PCR time acquisition (step S1102) and PCR position acquisition (step S1103) are executed as shown in FIG. Subsequently, processing as shown in FIG. 8 is executed, and a new bit rate is calculated (step S1104).

続いて、図7に示すようにして、読込んだ188バイトのデータ内にSPSが有るか否かの判定処理が実行される(ステップS1105)。その結果、SPSが無いと判定された場合、ループカウンターrに1を加えて(ステップS1106)、PCRの判定からの処理が繰り返される。   Subsequently, as shown in FIG. 7, a process for determining whether or not there is an SPS in the read 188-byte data is executed (step S1105). As a result, when it is determined that there is no SPS, 1 is added to the loop counter r (step S1106), and the processing from the PCR determination is repeated.

一方、SPSが有ると判定され、図7に示すようにそのSPSの直前にあるAUデリミターの先頭バイト位置が取得される(ステップS1107)、その「AUデリミター位置」から「PCR位置」を減じ、差分位置L(バイト)を算出する(ステップS1108)。そして、「差分位置L」を「ビットレート」で除し、さらに「PCR時間」を加算することで、先頭時間情報が算出される(ステップS1109)。また、このように算出した先頭時間情報、およびAUデリミター位置をタイムチャートに出力し、ランダムアクセスの際に参照する、という具合である。   On the other hand, it is determined that there is an SPS, and as shown in FIG. 7, the first byte position of the AU delimiter immediately before the SPS is acquired (step S1107), and the “PCR position” is subtracted from the “AU delimiter position”. A difference position L (bytes) is calculated (step S1108). Then, the “difference position L” is divided by the “bit rate”, and the “PCR time” is added to calculate head time information (step S1109). Further, the head time information and the AU delimiter position calculated in this way are output to a time chart and referred to at the time of random access.

<ハードウェア的構成>     <Hardware configuration>

図12は、上記機能的な各構成要件をハードウェアとして実現した際の、電子機器における構成の一例を表す概略図である。この図を利用して先頭時間情報の取得処理におけるそれぞれのハードウェア構成部の働きについて説明する。   FIG. 12 is a schematic diagram illustrating an example of the configuration of the electronic device when the functional components are realized as hardware. The operation of each hardware component in the acquisition process of the start time information will be described using this figure.

この図にあるように、電子機器は、各種演算処理を行うための「CPU(中央演算装置)」(1201)と、「主メモリ」(1202)と、を備えている。またストリーム映像配信用の符号化TSデータやランダムアクセス用のタイムチャートを保持する「HDD」(1203)や、ストリーミングにて映像を配信するためネットワークに接続された「通信IF(インターフェース)」(0804)も備えている。そしてそれらが「システムバス」などのデータ通信経路によって相互に接続され、情報の送受信や処理を行う。   As shown in this figure, the electronic apparatus includes a “CPU (central processing unit)” (1201) and a “main memory” (1202) for performing various arithmetic processes. Also, an “HDD” (1203) that holds encoded TS data for stream video distribution and a time chart for random access, and a “communication IF (interface)” (0804) connected to a network for distributing video by streaming. ). They are connected to each other via a data communication path such as a “system bus” to transmit / receive information and process information.

また、「主メモリ」にはプログラムが読み出され、「CPU」は読み出された当該プログラムを解釈して各種演算処理を実行する。また、この「主メモリ」や「HDD」、「CPU」内のキャッシュなどにはそれぞれ複数のアドレスが割り当てられており、「CPU」の演算処理においては、そのアドレスを特定し格納されているデータにアクセスすることで、データを用いた演算処理を行うことが可能になっている。   A program is read into the “main memory”, and the “CPU” interprets the read program and executes various arithmetic processes. In addition, a plurality of addresses are assigned to the “main memory”, “HDD”, cache in the “CPU”, and the like, and in the arithmetic processing of the “CPU”, the address is specified and stored. It is possible to perform arithmetic processing using data by accessing.

ここで、まず、タイムチャート生成プログラムに従い、「HDD」から符号化TSデータの先頭から188バイト分のデータが「主メモリ」のアドレス1に読込まれる。続いて、「主メモリ」の各アドレスに格納されたループカウンター、PCR時間、PCR位置、AUデリミター位置、ビットレートなどのセット(初期化)が実行され、それにより各パラメータ値が0と設定される。   Here, first, according to the time chart generation program, 188 bytes of data from the beginning of the encoded TS data is read from “HDD” to address 1 of “main memory”. Subsequently, the loop counter, PCR time, PCR position, AU delimiter position, bit rate, etc. set (initialization) stored in each address of the “main memory” are executed, whereby each parameter value is set to 0. The

そして「CPU」はプログラムに従い、前述のようにPCR有無の判定処理を行う。すなわち「主メモリ」のアドレス1に読込まれた188バイトのデータ中の先頭から27ビット目の値aと44ビット目の値bを取得する。そして、両者の値が1であるか否かの判断処理が「CPU」の論理演算処理によって実行される。ここで、a、bのいずれかの値が1でないとの判断結果が出力されると、「主メモリ」のアドレス2に格納されているループカウンターの値が+1されて、次の188バイト分の符号化TSデータの読込み、及びPCR有無の判定処理が繰り返される。   Then, the “CPU” performs the PCR presence / absence determination process as described above according to the program. That is, the value a of the 27th bit and the value b of the 44th bit from the head in the 188-byte data read at the address 1 of the “main memory” are acquired. Then, the process of determining whether or not both values are 1 is executed by the logical operation process of “CPU”. Here, when a determination result that either one of the values of a and b is not 1 is output, the value of the loop counter stored at the address 2 of the “main memory” is incremented by 1 and the next 188 bytes worth is obtained. The encoded TS data reading and the PCR presence / absence determination process are repeated.

そして、a、bの両値が1であるとの判断結果が出力されると、「CPU」はプログラムに従い、続いて前述のようにPCR時間およびPCR位置の算出処理を実行する。すなわち、読込んだ188バイトのデータの48から81ビットの値(PCR Base)を、「CPU」の演算処理により10進数に変換し300倍する。そして188バイトのデータの88から97ビットの値(PCR Extension)を、「CPU」の演算処理により10進数に変換し、前記算出した値に加算する。そして、その値を27Mにて除算し、"PCR時間"として「主メモリ」のアドレス3に格納する。また「CPU」の演算処理によって、ループカウンターに格納されている値を188倍し、その値に12バイトが加算されることで"PCR位置"が算出され、「主メモリ」のアドレス4に格納される。   When the determination result that both values a and b are 1 is output, the “CPU” executes the calculation process of the PCR time and the PCR position as described above according to the program. That is, the 48- to 81-bit value (PCR Base) of the read 188-byte data is converted to a decimal number by the arithmetic processing of “CPU” and multiplied by 300. Then, the 88- to 97-bit value (PCR Extension) of the 188-byte data is converted into a decimal number by the arithmetic processing of “CPU” and added to the calculated value. Then, the value is divided by 27M and stored as “PCR time” at address 3 of “main memory”. In addition, the value stored in the loop counter is multiplied by 188 by the arithmetic processing of “CPU”, and 12 bytes are added to the value to calculate “PCR position”, which is stored in address 4 of “main memory”. Is done.

つづいて、「CPU」はプログラムに従い、前述のようにデコードビットレートの算出処理を行う。すなわち、次の188バイト分のデータを読込み、次のPCRを検出する。そして、2つのPCR時間の差分値tを、そのPCR間の動画データの再生時間を示す値tとして算出する。また、「主メモリ」のアドレス6に格納されたビットレート算出用ループカウンター値を188倍し、両PCR間にあるデータ量dを算出する。そして、「CPU」の演算処理によって「t/d」の値を算出し、"デコードビットレート値"として「主メモリ」のアドレス7に格納する。   Subsequently, the “CPU” performs the decoding bit rate calculation process as described above according to the program. That is, the next 188 bytes of data are read and the next PCR is detected. Then, the difference value t between the two PCR times is calculated as a value t indicating the reproduction time of the moving image data between the PCRs. Also, the loop counter value for bit rate calculation stored at the address 6 of the “main memory” is multiplied by 188 to calculate the data amount d between both PCRs. Then, the value of “t / d” is calculated by the calculation process of “CPU”, and stored as “decode bit rate value” at address 7 of “main memory”.

つづいて、「CPU」はプログラムに従い、前述のように映像復号化最小単位の先頭バイト位置の取得処理を行う。すなわち、読み込んだデータ内にA(0x00000127)、B(0x00000147)、C(0x00000167)のいずれかが含まれるか、を「CPU」の論理演算処理にて判断する。そして、上記値が含まれていないとの判断結果が出力されると、「主メモリ」のアドレス2に格納されているループカウンターに1を加えた後、次の188バイト分のデータを「主メモリ」のアドレス1に読込み、上記処理を繰り返す。   Subsequently, the “CPU” performs the acquisition process of the first byte position of the video decoding minimum unit as described above according to the program. That is, it is determined by logical operation processing of “CPU” whether any one of A (0x00000127), B (0x00000147), and C (0x00000167) is included in the read data. When the determination result that the above value is not included is output, 1 is added to the loop counter stored at address 2 of the “main memory”, and then the next 188 bytes of data are stored in the “main memory”. Read to address 1 of “memory” and repeat the above process.

そして、上記A、B、Cいずれかの値が読み込んだデータ内に含まれているとの判断結果が出力されている場合、図7に示すようにAUデリミターが分断され、前後のパケットに分離して存在しているかの判断処理を実行する。そして、ループカウンターの値とAUデリミターの先頭バイト位置の値を変数とし、「CPU」の演算処理によって"映像復号化最小単位の先頭バイト位置"を算出し、「主メモリ」のアドレス5に格納する。   If the determination result that any one of the values A, B, and C is included in the read data is output, the AU delimiter is divided as shown in FIG. To determine whether it exists. Then, using the value of the loop counter and the value of the first byte position of the AU delimiter as variables, the “first byte position of the minimum video decoding unit” is calculated by “CPU” calculation processing and stored in address 5 of “main memory”. To do.

そして、各アドレスに格納された、「PCR時間」、「PCR位置」、「デコードビットレート値」、「映像復号化最小単位の先頭バイト位置」をパラメータとして、前述のように「CPU」の演算処理によって先頭時間情報を算出する。すなわち、「時間基準の配置バイト位置」と「映像復号化最小単位の先頭バイト位置」の差分から、そのデータ量を算出する。そして、算出したデータ量を「デコードビットレート」で除することで、当該データに含まれるフレームの再生時間を算出する。そして、算出した再生時間を、PCRで示される「時間基準」に加えることで当該映像復号化最小単位の先頭の再生時間、すなわち先頭時間情報を算出し、「主メモリ」のアドレス8に格納する、という具合である。   Then, as described above, the calculation of “CPU” is performed using “PCR time”, “PCR position”, “decoding bit rate value”, and “starting byte position of video decoding minimum unit” stored in each address as parameters. First time information is calculated by processing. That is, the data amount is calculated from the difference between the “time-based arrangement byte position” and the “first byte position of the minimum video decoding unit”. Then, the reproduction time of the frame included in the data is calculated by dividing the calculated data amount by the “decoding bit rate”. Then, by adding the calculated playback time to the “time reference” indicated by PCR, the top playback time of the video decoding minimum unit, that is, the top time information is calculated and stored in address 8 of “main memory”. , And so on.

そして、このようにして取得した先頭時間情報を、映像復号化最小単位の先頭バイト位置と関連付けてタイムチャートとして「HDD」に格納することで、ネットワーク上のクライアント端末からのランダムアクセス命令に対応することが出来る。   Then, the head time information obtained in this way is stored in the “HDD” as a time chart in association with the head byte position of the video decoding minimum unit, thereby responding to a random access command from a client terminal on the network. I can do it.

≪実施例1のその他の例≫   << Other Examples of Example 1 >>

<概要>     <Overview>

上記実施例では、時間基準としてPCRを利用する例を挙げたが、それ以外にも、例えば符号化TSデータがタイムスタンプ付トランスポートストリームデータであれば時間基準としてタイムスタンプを利用する例も挙げられる。   In the above-described embodiment, an example in which PCR is used as a time reference has been described. In addition to this, for example, if encoded TS data is transport stream data with a time stamp, an example in which a time stamp is used as a time reference is also given. It is done.

図13は、タイムスタンプ付トランスポートストリームのTTSパケットの一例を表す概念図である。なお、この図に示すTSパケット部分(188バイトのデータ部分)は図2に示すTSパケットと同様のデータ構造をもつ。そして、TTSパケットのデータ構造の特徴点は、TSパケットの先頭に4バイト分のデータが、タイムスタンプ(時間基準)として必ず付加されている点である。   FIG. 13 is a conceptual diagram illustrating an example of a TTS packet of a transport stream with a time stamp. Note that the TS packet part (188-byte data part) shown in this figure has the same data structure as the TS packet shown in FIG. A feature of the data structure of the TTS packet is that data of 4 bytes is always added as a time stamp (time reference) at the head of the TS packet.

つまり、TSパケットにおける時間基準である「PCR」は必ずしもTSパケット内に配置されているとは限らず、したがって、前述のようにそのPCRの検出(配置有無の判定)処理を行う必要がある。一方、タイムスタンプ付トランスポートストリームにおけるTTSパケットの場合、パケットの先頭に必ず時間基準である「タイムスタンプ」が配置されているため、その配置有無の判定処理を前述の処理から省略できる、という具合である。   That is, the “PCR” that is the time reference in the TS packet is not necessarily arranged in the TS packet, and therefore it is necessary to perform the detection (determination of arrangement presence / absence) processing of the PCR as described above. On the other hand, in the case of a TTS packet in a transport stream with a time stamp, a time reference “time stamp” is always placed at the beginning of the packet, so that the determination processing of the presence / absence of the placement can be omitted from the above processing. It is.

<機能的構成>     <Functional configuration>

図14は、本実施例の電子機器における、さらに別の機能ブロックの一例を表す図である。この図にあるように、本実施例の別の構成をとる「電子機器」(1400)は、「時間基準取得部」(1401)にて「タイムスタンプ時間基準取得手段」(1404)をさらに備えることを特徴とする。なお、その他の構成(時間基準取得部、先頭探索部、先頭時間情報取得部、AUデリミター取得手段)については、すでに記載済みであるのでその説明は省略する。   FIG. 14 is a diagram illustrating an example of still another functional block in the electronic apparatus according to the present embodiment. As shown in this figure, an “electronic device” (1400) having another configuration of the present embodiment further includes a “time stamp time reference acquisition unit” (1404) in a “time reference acquisition unit” (1401). It is characterized by that. Other configurations (time reference acquisition unit, head search unit, head time information acquisition unit, AU delimiter acquisition unit) have already been described, and thus description thereof is omitted.

「タイムスタンプ時間基準取得手段」(1404)は、タイムスタンプ付トランスポートストリームのTSパケットの先頭に位置するタイムスタンプから時間基準を取得する機能を有する。そして、タイムスタンプはTTSパケットの先頭に必ず付加されているため、その有無の判定処理を省略した前述の処理を実行することで先頭時間情報を取得することができる。   The “time stamp time reference acquisition unit” (1404) has a function of acquiring a time reference from a time stamp located at the beginning of a TS packet of a transport stream with a time stamp. Since the time stamp is always added to the head of the TTS packet, the head time information can be acquired by executing the above-described processing in which the presence / absence determination processing is omitted.

<処理の流れ>     <Process flow>

図15、および図16は、本実施例の別の電子機器における先頭時間情報算出処理の流れの一例を表すフローチャートである。この図15にあるように、まず、ループカウンターを0とし(ステップS1501)、読込みデータ位置を0とし(ステップS1502)、そしてAUデリミター値を0として(ステップS1503)、各パラメータの初期化処理を実行する。   FIG. 15 and FIG. 16 are flowcharts illustrating an example of the flow of the start time information calculation process in another electronic device of the present embodiment. As shown in FIG. 15, first, the loop counter is set to 0 (step S1501), the read data position is set to 0 (step S1502), and the AU delimiter value is set to 0 (step S1503). Run.

そして図16に示すように、上記各パラメータの初期化処理(ステップS1601)を行った後、符号化TSデータの所定の読込データ位置(最初はデータの先頭)から、符号化TSデータを192バイト分読み込む(ステップS1602)。   Then, as shown in FIG. 16, after the initialization process of each parameter (step S1601), the encoded TS data is transferred from the predetermined read data position (initially, the top of the data) to 192 bytes. Minutes are read (step S1602).

続いて、読み込んだデータ内にA(0x00000127)、B(0x00000147)、C(0x00000167)のいずれかが含まれるか、をCPUの論理演算処理にて判断する(ステップS1603)。そして、上記値が含まれていなければ、読み込んだ一パケット分の192バイトのデータ内にSPSは含まれていないとして、ループカウンターに1を加えて(ステップS1604)、読込データ位置を192バイト先に設定して(ステップS1605)、上記処理を繰り返す。   Subsequently, it is determined by logical operation processing of the CPU whether any one of A (0x00000127), B (0x00000147), and C (0x00000167) is included in the read data (step S1603). If the above-mentioned value is not included, SPS is not included in the read 192-byte data for one packet, and 1 is added to the loop counter (step S1604), and the read data position is set to 192 bytes ahead. (Step S1605) and the above process is repeated.

そして、上記A、B、Cいずれかの値が読み込んだデータ内に含まれていた場合、当該データ内にSPS部分が含まれているので、続いてその直前に配置されるAUデリミターの先頭位置の取得処理を行う。ここでも、前述の場合と同様、192バイトのTTSパケットに、一つのAUデリミターが分断されていることを考慮し、読込んだ192バイトのデータ内に、AUデリミターの先頭の値D(0x00000109)が含まれているか判断する(ステップS1606)。   If any of the values A, B, or C is included in the read data, the SPS portion is included in the data, so that the head position of the AU delimiter that is placed immediately before that is included. Perform the acquisition process. In this case as well, in consideration of the fact that one AU delimiter is divided in the 192-byte TTS packet, the leading value D (0x00000109) of the AU delimiter is included in the read 192-byte data. Is included (step S1606).

そして値Dが含まれていれば、SPSが含まれている192バイトのデータ内にAUデリミターの先頭がある(AUデリミターが分離されていない)とする。そして、まず、読込んだ192バイトのデータの先頭から4バイトのタイムスタンプの値を取得する(1607y)。また、192×ループカウンターrの値を、そのタイムスタンプ位置として取得する。つづいてその192バイトのデータの先頭からのDの出現バイト数x1を取得し、そのx1の値にループカウンターr×188の値を加算することで、映像復号化最小単位の先頭バイト位置を取得する(ステップS1608y)。という具合である。   If the value D is included, it is assumed that the head of the AU delimiter is present in the 192-byte data including the SPS (AU delimiter is not separated). First, a 4-byte time stamp value is acquired from the beginning of the read 192-byte data (1607y). Further, the value of 192 × loop counter r is acquired as the time stamp position. Subsequently, the number of appearance bytes x1 of D from the beginning of the 192-byte data is obtained, and the value of the loop counter r × 188 is added to the value of x1, thereby obtaining the beginning byte position of the video decoding minimum unit. (Step S1608y). That's it.

一方、ステップS1606にて値Dが含まれていないと判断された場合、AUデリミターが分離され、その先頭は読込んだパケットデータの1つ前のパケットデータ内に存在していることになる。したがって、この場合には、読込んだデータの1つ前の192バイトのデータの先頭から4バイトのタイムスタンプの値を取得する(ステップS1607n)。また、192×(r−1)の値をタイムスタンプ位置として取得する。また読込んだデータの先頭からのDの出現バイト数x2を取得して、(r−1)×188+x2を、映像復号化最小単位の先頭バイト位置として取得する(ステップS1608n)。   On the other hand, if it is determined in step S1606 that the value D is not included, the AU delimiter is separated, and the head thereof is present in the packet data immediately before the read packet data. Therefore, in this case, a 4-byte time stamp value is acquired from the head of the 192-byte data immediately before the read data (step S1607n). Also, a value of 192 × (r−1) is acquired as the time stamp position. Also, the number of appearance bytes x2 of D from the head of the read data is acquired, and (r-1) × 188 + x2 is acquired as the head byte position of the video decoding minimum unit (step S1608n).

つづいて、上記いずれの場合でも、取得したタイムスタンプの値を27Mで除することでその時間基準の値を算出する(ステップS1609)、という具合である。このように、本実施例では、時間基準の有無判定処理を省いて上記処理を実行することが出来る。   In any case, the time reference value is calculated by dividing the acquired time stamp value by 27M (step S1609). Thus, in the present embodiment, the above process can be executed without the time reference presence / absence determination process.

そして、取得された「映像復号化最小単位の先頭バイト位置」、「タイムスタンプ時間」、「タイムスタンプ位置」、そして「デコードビットレート値」をパラメータとして、先頭時間情報が算出することができる。なお「デコードビットレート値」の算出処理、および先頭時間情報の取得処理は、前述の処理と同様であるのでその説明は省略する。   Then, using the acquired “starting byte position of minimum video decoding unit”, “time stamp time”, “time stamp position”, and “decoding bit rate value”, the starting time information can be calculated. The “decoding bit rate value” calculation process and the start time information acquisition process are the same as those described above, and a description thereof will be omitted.

<ハードウェア的構成>     <Hardware configuration>

図17は、上記機能的な各構成要件をハードウェアとして実現した際の、電子機器における構成の一例を表す概略図である。この図を利用してタイムスタンプ情報を参照した先頭時間情報の取得処理におけるそれぞれのハードウェア構成部の働きについて説明する。なお、前述の通り、タイムスタンプ情報の有無判定処理を省くこと意外、ほぼ上記PCRを参照した先頭時間情報の取得処理と同様である。   FIG. 17 is a schematic diagram illustrating an example of a configuration of an electronic device when the functional components described above are realized as hardware. The operation of each hardware component in the acquisition process of the start time information with reference to the time stamp information will be described using this figure. As described above, except for omitting the time stamp information presence / absence determination process, the process is almost the same as the process for acquiring the start time information with reference to the PCR.

この図にあるように、電子機器は、「CPU」(1701)と、「主メモリ」(1702)と、「HDD」(1703)と、「通信IF」(1704)と、を備えている。   As shown in this figure, the electronic device includes a “CPU” (1701), a “main memory” (1702), an “HDD” (1703), and a “communication IF” (1704).

ここで、まず、タイムチャート生成プログラムに従い、「HDD」から符号化TSデータの先頭から192バイト分のデータが「主メモリ」のアドレス1に読込まれる。続いて、「主メモリ」の各アドレスに格納されたループカウンターをはじめとするパラメータ値の初期化処理が実行される。   Here, according to the time chart generation program, first, 192 bytes of data from the head of the encoded TS data is read from “HDD” to address 1 of “main memory”. Subsequently, initialization processing of parameter values including a loop counter stored at each address of the “main memory” is executed.

そして「CPU」はプログラムに従い、まず前述のように映像復号化最小単位の先頭バイト位置の取得処理を行う。具体的には、読み込んだデータ内にA(0x00000127)、B(0x00000147)、C(0x00000167)のいずれかが含まれるか、を「CPU」の論理演算処理にて判断する。そして、上記値が含まれていないとの判断結果が出力されると、「主メモリ」のアドレス2に格納されているループカウンターに1を加えた後、次の192バイト分のデータを「主メモリ」のアドレス1に読込み、上記処理を繰り返す。   Then, according to the program, the “CPU” first performs the acquisition process of the first byte position of the video decoding minimum unit as described above. Specifically, it is determined by logical operation processing of “CPU” whether any one of A (0x00000127), B (0x00000147), and C (0x00000167) is included in the read data. When the determination result that the above value is not included is output, 1 is added to the loop counter stored at address 2 of the “main memory”, and then the next 192 bytes of data are stored in the “main memory”. Read to address 1 of “memory” and repeat the above process.

そして、上記A、B、Cいずれかの値が読み込んだデータ内に含まれているとの判断結果が出力されている場合、ループカウンターの値とAUデリミターの先頭バイト位置の値を変数とし、「CPU」の演算処理によって"映像復号化最小単位の先頭バイト位置"を算出し、「主メモリ」のアドレス5に格納する。   If the determination result that the value of any one of A, B, and C is included in the read data is output, the value of the loop counter and the value of the first byte position of the AU delimiter are used as variables, The “starting byte position of minimum video decoding unit” is calculated by the calculation process of “CPU” and stored in address 5 of “main memory”.

続いて、「CPU」はプログラムに従い、前述のようにタイムスタンプ時間およびタイムスタンプ位置の算出処理を実行する。すなわち、読込んだ192の先頭4バイトのデータからその値を取得し、その値を27Mにて除算することで算出した"タイムスタンプ時間"を「主メモリ」のアドレス3に格納する。また「CPU」の演算処理によって、ループカウンターに格納されている値を188倍することで"タイムスタンプ位置"が算出され、「主メモリ」のアドレス4に格納される。なお、AUデリミターがTTSパケットに分離して存在している場合は、一つの前のTTSパケットに関し、そのループカウンターを(r−1)として、上記タイムスタンプ時間とタイムスタンプ位置を算出すると良い。   Subsequently, according to the program, the “CPU” executes time stamp time and time stamp position calculation processing as described above. That is, the value is acquired from the read 4-byte data of the 192 read, and the “time stamp time” calculated by dividing the value by 27M is stored in the address 3 of the “main memory”. Further, the “time stamp position” is calculated by multiplying the value stored in the loop counter by 188 by the calculation processing of “CPU”, and is stored in the address 4 of “main memory”. When the AU delimiter exists separately in the TTS packet, the time stamp time and the time stamp position may be calculated for the previous TTS packet with the loop counter set to (r−1).

つづいて、「CPU」はプログラムに従い、前述のように"デコードビットレート"の算出し、「主メモリ」のアドレス6に格納する。そして、「タイムスタンプ位置」と「映像復号化最小単位の先頭バイト位置」の差分から、そのデータ量を算出する。そして、算出したデータ量を「デコードビットレート」で除することで、当該データに含まれるフレームの再生時間を算出する。そして、算出した再生時間を、「タイムスタンプ時間」に加えることで先頭時間情報を算出し、「主メモリ」のアドレス7に格納する、という具合である。   Subsequently, according to the program, the “CPU” calculates the “decode bit rate” as described above and stores it in the address 6 of the “main memory”. Then, the data amount is calculated from the difference between the “time stamp position” and the “first byte position of the minimum video decoding unit”. Then, the reproduction time of the frame included in the data is calculated by dividing the calculated data amount by the “decoding bit rate”. Then, the start time information is calculated by adding the calculated reproduction time to the “time stamp time” and stored in the address 7 of the “main memory”.

<効果の簡単な説明>     <Brief description of effect>

以上のように本実施例の電子機器では、H.264タイプ(その他タイプのMpeg4も含む)の符号化TSデータのままで映像復号化最小単位の先頭位置の再生時間を取得することができる。したがって、H.264タイプであっても、その符号化TSデータを復号化することなく、映像復号化の最小単位の開始位置を探索してその再生時間を示すタイムチャートを生成することができる。   As described above, in the electronic apparatus of this embodiment, the The reproduction time of the head position of the video decoding minimum unit can be acquired with the H.264 type (including other types of Mpeg4) encoded TS data. Therefore, H.H. Even in the H.264 type, it is possible to search for the start position of the minimum unit of video decoding without decoding the encoded TS data and generate a time chart indicating the reproduction time.

≪実施例2≫   << Example 2 >>

<概要>     <Overview>

本実施例の電子機器は、前記実施例1を基本として、算出した先頭時間情報をHDDなどに保持する機能をさらに有することを特徴とする。そして、本実施例のように先頭時間情報をHDD等に保持し、タイムチャートを生成することで、ストリーミング配信映像データに対するランダムアクセスなどに対応することが出来る。   The electronic apparatus according to the present embodiment is further characterized in that, based on the first embodiment, further has a function of holding the calculated start time information in an HDD or the like. Then, as in the present embodiment, the head time information is held in the HDD or the like, and a time chart is generated, so that it is possible to deal with random access to streaming distribution video data.

<機能的構成>     <Functional configuration>

図18は、本実施例の電子機器における機能ブロックの一例を表す図である。この図にあるように、本実施例の「電子機器」(1800)は、実施例1を基本として、「時間基準取得部」(1801)と、「先頭探索部」(1802)と、「先頭時間情報取得部」(1803)と、を有する。また、図示しない「PCR取得手段」や「AUデリミター取得手段」、「タイムスタンプ時間基準取得手段」などを有していても良い。なお、これら構成要件は、上記実施例にてすでに記載済みであるので、その説明は省略する。   FIG. 18 is a diagram illustrating an example of functional blocks in the electronic apparatus of the present embodiment. As shown in this figure, the “electronic device” (1800) of the present embodiment is based on the first embodiment and includes a “time reference acquisition unit” (1801), a “first search unit” (1802), Time information acquisition unit "(1803). Further, it may have “PCR acquisition means”, “AU delimiter acquisition means”, “time stamp time reference acquisition means”, etc. (not shown). In addition, since these component requirements have already been described in the said Example, the description is abbreviate | omitted.

そして、本実施例の電子機器の特徴点は、さらに「先頭時間情報保持部」(1804)を有する点である。   A feature point of the electronic apparatus of the present embodiment is that it further includes a “first time information holding unit” (1804).

「先頭時間情報保持部」(1804)は、先頭時間情報取得部にて取得した先頭時間情報を保持する機能を有し、例えばHDDやフラッシュメモリ、その他記憶媒体にて実現することが出来る。   The “first time information holding unit” (1804) has a function of holding the first time information acquired by the first time information acquisition unit, and can be realized by, for example, an HDD, a flash memory, or another storage medium.

図19は、この先頭時間情報保持部にて保持される先頭時間情報を含むタイムチャートの一例を表す概念図である。この図にあるように、前記処理により算出された先頭時間情報を、そのAUデリミターの先頭バイト位置と関連付けてタイムチャート化することで、リクエストのあった再生時間に近似する映像復号化最小単位を先頭とする符号化TSデータを、リクエスト端末に返信することができる、という具合である。   FIG. 19 is a conceptual diagram showing an example of a time chart including head time information held by the head time information holding unit. As shown in this figure, the video decoding minimum unit that approximates the requested playback time is obtained by correlating the start time information calculated by the above processing with the start byte position of the AU delimiter and making a time chart. The encoded TS data at the head can be returned to the requesting terminal.

<処理の流れ>     <Process flow>

図20は、本実施例の電子機器における処理の流れの一例を表すフローチャートである。なお、以下に示すステップは、媒体に記録され計算機を制御するためのプログラムを構成する処理ステップであっても構わない。   FIG. 20 is a flowchart illustrating an example of a processing flow in the electronic apparatus of the present embodiment. Note that the steps shown below may be processing steps that constitute a program for controlling a computer recorded on a medium.

この図にあるように、上記実施例1で記載したような処理が実行され、先頭時間情報が取得される(ステップS2001)。すると、その取得した先頭時間情報を、例えばHDDなどの保持部に記録し(ステップS2002)、その記録され保持されている先頭時間情報を用いて、例えば図19に示すようなタイムチャートを作成する(ステップS2003)。   As shown in this figure, the process as described in the first embodiment is executed, and the start time information is acquired (step S2001). Then, the acquired start time information is recorded in a holding unit such as an HDD (step S2002), and a time chart as shown in FIG. 19 is created using the recorded and held start time information, for example. (Step S2003).

<効果の簡単な説明>     <Brief description of effect>

以上のように本実施例の電子機器によって、先頭時間情報をHDD等に保持することができる。そして、その保持している先頭時間情報を用いてタイムチャートを生成することで、ストリーミング配信映像データに対するランダムアクセスなどに対応することが出来る。   As described above, the first time information can be held in the HDD or the like by the electronic apparatus of the present embodiment. Then, by generating a time chart using the held start time information, it is possible to deal with random access to streaming delivery video data.

≪実施例3≫   Example 3

<概要>     <Overview>

本実施例の電子機器は、上記実施例を基本として、映像再生端末からのランダムアクセスのリクエストを受付けて、その受付けたリクエストに応じて送信すべき映像復号化最小単位を識別する識別情報を特定する機能をさらに備えることを特徴とする。   Based on the above embodiment, the electronic device of this embodiment accepts a random access request from a video playback terminal, and specifies identification information for identifying a video decoding minimum unit to be transmitted according to the received request. It further has the function to perform.

<機能的構成>     <Functional configuration>

図21は、本実施例の電子機器における機能ブロックの一例を表す図である。この図にあるように、本実施例の「電子機器」(2100)は、実施例1を基本として、「時間基準取得部」(2101)と、「先頭探索部」(2102)と、「先頭時間情報取得部」(2103)と、を有する。また、図示しない「PCR取得手段」や「AUデリミター取得手段」、「タイムスタンプ時間基準取得手段」などを有していても良い。なお、これら構成要件は、上記実施例にてすでに記載済みであるので、その説明は省略する。   FIG. 21 is a diagram illustrating an example of functional blocks in the electronic apparatus according to the present embodiment. As shown in this figure, the “electronic device” (2100) of the present embodiment is based on the first embodiment and includes a “time reference acquisition unit” (2101), a “first search unit” (2102), Time information acquisition unit "(2103). Further, it may have “PCR acquisition means”, “AU delimiter acquisition means”, “time stamp time reference acquisition means”, etc. (not shown). In addition, since these component requirements have already been described in the said Example, the description is abbreviate | omitted.

そして、本実施例の電子機器の特徴点は、さらに「再生開始位置入力受付部」(2104)と、「再生開始最小単位ID取得部」(2105)と、を有する点である。   The feature of the electronic apparatus of the present embodiment is that it further includes a “reproduction start position input receiving unit” (2104) and a “reproduction start minimum unit ID acquisition unit” (2105).

「再生開始位置入力受付部」(2104)は、再生開始位置をコンテンツの再生開始後経過時間で指定する入力を受付ける機能を有する。なお、この入力受付は、本発明の基本的な実施例が映像配信であることを考えるとネットワーク経由で別端末にて入力された指定情報を受付ける「通信IF」にて実現することができる。   The “playback start position input receiving unit” (2104) has a function of receiving an input for designating the playback start position by the elapsed time after the start of playback of the content. This input reception can be realized by a “communication IF” that receives designation information input from another terminal via a network, considering that the basic embodiment of the present invention is video distribution.

具体的には、別端末の映像再生プレイヤーの例えばシークバーが操作され、その操作によって指定された「2分30秒」といった再生開始後経過時間情報を、リクエスト情報として受付ける、という具合である。   Specifically, for example, a seek bar of a video playback player of another terminal is operated, and elapsed time information after playback start such as “2 minutes 30 seconds” specified by the operation is received as request information.

「再生開始最小単位ID取得部」(2105)は、受付けた再生開始後経過時間と、先頭時間情報と、を利用して最初に再生すべき映像復号化最小単位IDを取得する機能を有する。「映像復号化最小単位ID」とは、前記先頭探索部にて探索された映像復号化最小単位を示す識別情報をいい、その映像復号化最小単位の先頭バイト位置や、その並び順に応じて映像復号化最小単位に付された連番などが挙げられる。この再生開始最小単位ID取得部は、例えば前述の図19に示すようなタイムチャートを参照し、CPUの論理演算処理による検索処理を実行することで実現することが出来る。そして、このように再生開始最小単位IDである、例えばその先頭バイト位置などを取得することで、映像再生端末からリクエストのあった再生開始後経過時間に近似する時間に再生されるべき映像復号化最小単位を取得することが出来る。   The “reproduction start minimum unit ID acquisition unit” (2105) has a function of acquiring the video decoding minimum unit ID to be reproduced first using the received elapsed time after reproduction start and the start time information. The “video decoding minimum unit ID” refers to identification information indicating the video decoding minimum unit searched by the head search unit. The video decoding minimum unit ID is determined according to the start byte position of the video decoding minimum unit and the arrangement order thereof. Examples include a serial number assigned to the minimum decryption unit. This reproduction start minimum unit ID acquisition unit can be realized by referring to a time chart as shown in FIG. 19, for example, and executing a search process by a logical operation process of the CPU. Then, by obtaining the reproduction start minimum unit ID, for example, the start byte position, etc., the video decoding to be reproduced at a time approximate to the elapsed time after the reproduction start requested from the video reproduction terminal. The minimum unit can be acquired.

<ハードウェア的構成>     <Hardware configuration>

図22は、上記機能的な各構成要件をハードウェアとして実現した際の、電子機器における構成の一例を表す概略図である。この図を利用して再生開始最小単位IDの取得処理におけるそれぞれのハードウェア構成部の働きについて説明する。   FIG. 22 is a schematic diagram illustrating an example of a configuration of an electronic device when the functional components described above are realized as hardware. The operation of each hardware component in the process of acquiring the reproduction start minimum unit ID will be described using this figure.

この図にあるように、電子機器は、上記実施例と同様に「CPU」(2201)と、「主メモリ」(2202)と、「HDD」(2203)と、「通信IF」(2204)と、を備えている。   As shown in this figure, the electronic device includes a “CPU” (2201), a “main memory” (2202), an “HDD” (2203), a “communication IF” (2204), as in the above-described embodiment. It is equipped with.

ここで、まず、前述のタイムチャート生成プログラムに従い、先頭時間情報が取得され
「HDD」に当該先頭時間情報を用いたタイムチャートが格納される。つづいて「通信IF」にて、ネットワーク上のクライアント端末から「2分30秒」といった具合に再生開始後経過時間が取得されると、「主メモリ」のアドレス1に格納される。すると、その再生開始後経過時間をキーとして、「HDD」に格納されているタイムチャートの検索処理が「CPU」の論理演算処理により実行される。そして、タイムチャートにて再生開始後経過時間に近似する先頭時間情報と関連付けられた再生開始最小単位の先頭バイト位置が取得され、「主メモリ」のアドレス2に格納される、という具合である。
First, in accordance with the above-described time chart generation program, first time information is acquired, and a time chart using the first time information is stored in “HDD”. Subsequently, when the elapsed time after the reproduction start is acquired from the client terminal on the network, such as “2 minutes 30 seconds”, in the “communication IF”, it is stored in the address 1 of the “main memory”. Then, the search processing of the time chart stored in “HDD” is executed by the logical operation processing of “CPU” using the elapsed time after the start of reproduction as a key. In the time chart, the start byte position of the minimum playback start unit associated with the start time information approximate to the elapsed time after the start of playback is acquired and stored in address 2 of the “main memory”.

<処理の流れ>     <Process flow>

図23は、本実施例の電子機器における処理の流れの一例を表すフローチャートである。なお、以下に示すステップは、媒体に記録され計算機を制御するためのプログラムを構成する処理ステップであっても構わない。   FIG. 23 is a flowchart illustrating an example of a processing flow in the electronic apparatus of the present embodiment. Note that the steps shown below may be processing steps that constitute a program for controlling a computer recorded on a medium.

この図にあるように、上記実施例1で記載したような処理が実行され、先頭時間情報が取得される(ステップS2301)。そして、その後、再生開始後経過時間の指定入力を受付ける(ステップS2302)と、指定入力された再生開始後経過時間と先頭時間情報とから再生開始最小単位IDである、例えばその先頭バイト位置を取得する(ステップS2303)。   As shown in this figure, the processing as described in the first embodiment is executed, and the start time information is acquired (step S2301). After that, when the designation input of the elapsed time after the start of reproduction is received (step S2302), the reproduction start minimum unit ID, for example, the first byte position is obtained from the designated input elapsed time after the reproduction start and the first time information. (Step S2303).

<効果の簡単な説明>     <Brief description of effect>

以上のように本実施例の電子機器によって、映像再生端末からリクエストのあった再生開始後経過時間に近似する時間に再生されるべき映像復号化最小単位を取得することが出来る。   As described above, the video decoding minimum unit to be played back at the time approximate to the elapsed time after the start of playback requested by the video playback terminal can be acquired by the electronic apparatus of the present embodiment.

≪実施例4≫   Example 4

<概要>     <Overview>

本実施例の電子機器は、前記実施例3を基本として、前記取得された再生開始最小単位IDである、例えばその先頭バイト位置などを利用して映像再生端末からのランダムアクセス再生リクエストに応じる機能をさらに備えることを特徴とする。   The electronic apparatus according to the present embodiment is based on the third embodiment, and functions to respond to a random access playback request from a video playback terminal using the acquired playback start minimum unit ID, for example, the start byte position thereof. Is further provided.

<機能的構成>     <Functional configuration>

図24は、本実施例の電子機器における機能ブロックの一例を表す図である。この図にあるように、本実施例の「電子機器」(2400)は、実施例3を基本として、「時間基準取得部」(2401)と、「先頭探索部」(2402)と、「先頭時間情報取得部」(2403)と、「再生開始位置入力受付部」(2404)と、「再生開始最小単位ID取得部」(2405)と、を有する。また、図示しない「PCR取得手段」や「AUデリミター取得手段」、「タイムスタンプ時間基準取得手段」などを有していても良い。なお、これら構成要件は、上記実施例にてすでに記載済みであるので、その説明は省略する。   FIG. 24 is a diagram illustrating an example of functional blocks in the electronic apparatus of the present embodiment. As shown in this figure, the “electronic device” (2400) of the present embodiment is based on the third embodiment and includes a “time reference acquisition unit” (2401), a “first search unit” (2402), A "time information acquisition unit" (2403), a "reproduction start position input reception unit" (2404), and a "reproduction start minimum unit ID acquisition unit" (2405). Further, it may have “PCR acquisition means”, “AU delimiter acquisition means”, “time stamp time reference acquisition means”, etc. (not shown). In addition, since these component requirements have already been described in the said Example, the description is abbreviate | omitted.

そして、本実施例の電子機器の特徴点は、さらに「保持部」(2406)と、「再生開始最小単位ID取得部」(2407)と、を有する点である。   The feature of the electronic apparatus of the present embodiment is that it further includes a “holding unit” (2406) and a “reproduction start minimum unit ID acquisition unit” (2407).

「保持部」(2406)は、H.264タイプの符号化トランスポートストリームと関連付けて先頭時間情報を保持する機能を有し、例えばHDDやフラッシュメモリ、その記憶媒体により実現することが出来る。   The “holding unit” (2406) It has a function of holding head time information in association with an H.264 type encoded transport stream, and can be realized by, for example, an HDD, a flash memory, or a storage medium thereof.

「送出部」(2407)は、H.264タイプの符号化トランスポートストリームを再生開始最小単位IDにて特定されるバイト位置から送出する機能を有し、例えば通信IFやその制御回路、通信用アプリケーションなどで実現することができる。   The “sending unit” (2407) It has a function of sending a H.264 type encoded transport stream from the byte position specified by the reproduction start minimum unit ID, and can be realized by, for example, a communication IF, its control circuit, or a communication application.

そして上記構成によって、映像再生端末のリクエスト(再生開始後経過時間)によって取得された再生開始最小単位IDを利用して、その再生開始後経過時間に近似する時間にて再生されるべき映像復号化最小単位を先頭とする映像データの送信を実行することができる。   With the above configuration, the video decoding to be played back at the time approximate to the elapsed time after the start of playback using the playback start minimum unit ID acquired by the request of the video playback terminal (the elapsed time after the start of playback) Transmission of video data starting from the smallest unit can be executed.

<処理の流れ>     <Process flow>

図25は、本実施例の電子機器における処理の流れの一例を表すフローチャートである。なお、以下に示すステップは、媒体に記録され計算機を制御するためのプログラムを構成する処理ステップであっても構わない。   FIG. 25 is a flowchart illustrating an example of a processing flow in the electronic apparatus of the present embodiment. Note that the steps shown below may be processing steps that constitute a program for controlling a computer recorded on a medium.

この図にあるように、上記実施例1で記載したような処理が実行され、先頭時間情報が取得される(ステップS2501)。そして取得した先頭時間情報を符号化TSデータと関連づけて保持部に記録する(ステップS2502)。   As shown in this figure, the process as described in the first embodiment is executed, and the start time information is acquired (step S2501). The acquired first time information is recorded in the holding unit in association with the encoded TS data (step S2502).

その後、再生開始後経過時間の指定入力を受付ける(ステップS2503)と、指定入力された再生開始後経過時間と先頭時間情報とから再生開始最小単位IDである、例えばその先頭バイト位置などを取得する(ステップS2504)。そして、取得した再生開始最小単位の先頭バイト位置などにて特定されるバイト位置から符号化TSデータを送信する(ステップS2505)。   After that, when the designation input of the elapsed time after the start of reproduction is received (step S2503), the reproduction start minimum unit ID, for example, the first byte position thereof is acquired from the designated input elapsed time after the reproduction start and the first time information. (Step S2504). Then, the encoded TS data is transmitted from the byte position specified by the acquired first byte position of the minimum reproduction start unit (step S2505).

<効果の簡単な説明>     <Brief description of effect>

以上のように本実施例の電子機器によって、映像再生端末のリクエスト(再生開始後経過時間)によって取得された再生開始最小単位の先頭バイト位置などを利用して、その再生開始後経過時間に近似する時間にて再生されるべき映像復号化最小単位を先頭とする映像データの送信を実行することができる。   As described above, the electronic device of the present embodiment approximates the elapsed time after the start of playback by using the start byte position of the minimum playback start unit acquired by the request of the video playback terminal (the elapsed time after the start of playback). It is possible to execute transmission of video data starting from the minimum video decoding unit to be reproduced at the time to be played.

実施例1の電子機器の一例である映像配信サーバから配信される符号化TSデータ、およびそのタイムチャートの一例を説明するための概念図Conceptual diagram for describing an example of encoded TS data distributed from a video distribution server, which is an example of the electronic apparatus according to the first embodiment, and a time chart thereof. 実施例1の電子機器にて配信される符号化TSデータのさらに詳細なデータ構造の一例を表す概念図Conceptual diagram showing an example of a more detailed data structure of encoded TS data distributed by the electronic apparatus of the first embodiment 実施例1の電子機器における機能ブロックの一例を表す図FIG. 6 is a diagram illustrating an example of functional blocks in the electronic apparatus according to the first embodiment. 実施例1の電子機器における、別の機能ブロックの一例を表す図FIG. 6 is a diagram illustrating an example of another functional block in the electronic apparatus according to the first embodiment. 実施例1の電子機器のPCR取得手段によるPCRの有無判定処理の一例を表すフローチャート7 is a flowchart illustrating an example of PCR presence / absence determination processing by the PCR acquisition unit of the electronic device according to the first embodiment. 実施例1の電子機器のPCR取得手段によるPCRの取得処理の一例を表すフローチャート7 is a flowchart illustrating an example of a PCR acquisition process by a PCR acquisition unit of the electronic device according to the first embodiment. 実施例1の電子機器のAUデリミター取得手段によるSPS部分の直前に配置されるAUデリミターの取得処理の一例を表すフローチャート7 is a flowchart illustrating an example of acquisition processing of an AU delimiter arranged immediately before the SPS portion by the AU delimiter acquisition unit of the electronic device according to the first embodiment. 実施例1の電子機器における符号化TSデータのデコードビットレートを取得する処理の流れの一例を表すフローチャート8 is a flowchart illustrating an example of a flow of processing for obtaining a decoding bit rate of encoded TS data in the electronic apparatus according to the first embodiment. 実施例1の電子機器の先頭時間情報算出処理における初期化処理の一例を表すフローチャート7 is a flowchart illustrating an example of an initialization process in the first time information calculation process of the electronic device according to the first embodiment. 実施例1の電子機器の先頭時間情報算出処理における例外処理のためのビットレート算出処理の一例を表すフローチャート7 is a flowchart illustrating an example of a bit rate calculation process for exception processing in the first time information calculation process of the electronic device according to the first embodiment. 実施例1の電子機器における先頭時間情報算出処理の一例を表すフローチャート7 is a flowchart illustrating an example of a start time information calculation process in the electronic device according to the first embodiment. 実施例1の電子機器におけるハードウェア構成の一例を表す図1 is a diagram illustrating an example of a hardware configuration in an electronic device according to a first embodiment. 実施例1の電子機器にて配信されるタイムスタンプ付トランスポートストリームのTTSパケットの一例を表す概念図Conceptual diagram showing an example of a TTS packet of a transport stream with a time stamp distributed by the electronic device of the first embodiment 実施例1の電子機器における、さらに別の機能ブロックの一例を表す図FIG. 10 is a diagram illustrating an example of still another functional block in the electronic apparatus according to the first embodiment. 実施例1の別の電子機器の先頭時間情報算出処理における初期化処理の流れの一例を表すフローチャート7 is a flowchart illustrating an example of a flow of an initialization process in the start time information calculation process of another electronic device according to the first embodiment. 実施例1の別の電子機器における先頭時間情報算出処理の流れの一例を表すフローチャート10 is a flowchart illustrating an example of the flow of start time information calculation processing in another electronic device according to the first embodiment. 実施例1の電子機器における、別のハードウェア構成の一例を表す図FIG. 6 is a diagram illustrating an example of another hardware configuration in the electronic apparatus according to the first embodiment. 実施例2の電子機器における機能ブロックの一例を表す図FIG. 6 is a diagram illustrating an example of functional blocks in an electronic device according to a second embodiment. 実施例2の電子機器の先頭時間情報保持部にて保持される先頭時間情報を含むタイムチャートの一例を表す概念図The conceptual diagram showing an example of the time chart containing the head time information hold | maintained in the head time information holding part of the electronic device of Example 2. 実施例2の電子機器における処理の流れの一例を表すフローチャート7 is a flowchart illustrating an example of a process flow in the electronic device according to the second embodiment. 実施例3の電子機器における機能ブロックの一例を表す図FIG. 6 is a diagram illustrating an example of functional blocks in an electronic apparatus according to a third embodiment. 実施例3の電子機器におけるハードウェア構成の一例を表す図FIG. 6 is a diagram illustrating an example of a hardware configuration in an electronic device according to a third embodiment. 実施例3の電子機器における処理の流れの一例を表すフローチャート10 is a flowchart illustrating an example of a process flow in the electronic device according to the third embodiment. 実施例4の電子機器における機能ブロックの一例を表す図FIG. 6 is a diagram illustrating an example of functional blocks in an electronic device according to a fourth embodiment. 実施例4の電子機器における処理の流れの一例を表すフローチャート10 is a flowchart illustrating an example of a process flow in the electronic device according to the fourth embodiment. 実施例1の電子機器のAUデリミター取得手段によるSPS部分の直前に配置されるAUデリミターの取得処理の一例を表すフローチャート7 is a flowchart illustrating an example of acquisition processing of an AU delimiter arranged immediately before the SPS portion by the AU delimiter acquisition unit of the electronic device according to the first embodiment.

符号の説明Explanation of symbols

0300 電子機器
0301 時間基準取得部
0302 先頭探索部
0303 先頭時間情報取得部
0404 PCR取得手段
0405 AUデリミター取得手段
1404 タイムスタンプ時間基準取得手段
0300 Electronic equipment 0301 Time reference acquisition unit 0302 First search unit 0303 First time information acquisition unit 0404 PCR acquisition unit 0405 AU delimiter acquisition unit 1404 Time stamp time reference acquisition unit

Claims (13)

圧縮した映像情報の符号化トランスポートストリームデータに配置される時間基準を取得する時間基準取得部と、
映像復号化最小単位の先頭バイト位置を探索する先頭探索部と、
前記時間基準が配置されるバイト位置と前記映像復号化最小単位の先頭バイト位置との差分を再生装置でデコードする際のデコードビットレートで除したものに前記時間基準を加えることにより、各映像復号化最小単位の先頭位置が再生されるべき時間を示す先頭時間情報を取得する先頭時間情報取得部と、
を有する電子機器。
A time reference acquisition unit for acquiring a time reference arranged in the encoded transport stream data of the compressed video information;
A head search unit for searching for the head byte position of the video decoding minimum unit;
Each video decoding is performed by adding the time reference to the difference between the byte position where the time reference is arranged and the first byte position of the video decoding minimum unit divided by the decoding bit rate when decoding by the playback device. A start time information acquisition unit for acquiring start time information indicating the time at which the start position of the minimum unit is to be reproduced;
Electronic equipment having
先頭時間情報取得部にて取得した先頭時間情報を保持する先頭時間情報保持部を有する請求項1に記載の電子機器。   The electronic device according to claim 1, further comprising a start time information holding unit that holds start time information acquired by the start time information acquisition unit. 再生開始位置をコンテンツの再生開始後経過時間で指定する入力を受付ける再生開始位置入力受付部と、
受付けた再生開始後経過時間と、先頭時間情報と、を利用して最初に再生すべき映像復号化最小単位IDを取得する再生開始最小単位ID取得部と、
を有する請求項1又は2に記載の電子機器。
A playback start position input receiving unit for receiving an input for specifying a playback start position by an elapsed time after starting playback of the content;
A reproduction start minimum unit ID acquisition unit for acquiring a video decoding minimum unit ID to be reproduced first using the received elapsed time after reproduction start and the start time information;
The electronic device according to claim 1, comprising:
圧縮した映像情報の符号化トランスポートストリームと関連付けて先頭時間情報を保持する保持部と、
圧縮した映像情報の符号化トランスポートストリームを再生開始最小単位IDにて特定されるバイト位置から送出する送出部と、
をさらに有する請求項3に記載の電子機器。
A holding unit for holding head time information in association with the encoded transport stream of compressed video information;
A sending unit for sending an encoded transport stream of compressed video information from a byte position specified by a reproduction start minimum unit ID;
The electronic device according to claim 3, further comprising:
前記時間基準取得部は、トランスポートストリームのPCR部分から時間基準を取得するPCR取得手段を有する請求項1から4のいずれか一に記載の電子機器。   The electronic device according to claim 1, wherein the time reference acquisition unit includes a PCR acquisition unit that acquires a time reference from a PCR portion of a transport stream. 前記時間基準取得部は、タイムスタンプ付トランスポートストリームのTSパケットの先頭に位置するタイムスタンプから時間基準を取得するタイムスタンプ時間基準取得手段を有する請求項1から5のいずれか一に記載の電子機器。   The electronic apparatus according to any one of claims 1 to 5, wherein the time reference acquisition unit includes time stamp time reference acquisition means for acquiring a time reference from a time stamp located at the beginning of a TS packet of a transport stream with a time stamp. machine. 前記先頭探索部は、SPS部分の直前に配置されるAUデリミターを映像復号化最小単位の先頭バイト位置として取得するAUデリミター取得手段を有する請求項1から6のいずれか一に記載の電子機器。   The electronic device according to claim 1, wherein the head search unit includes an AU delimiter acquisition unit configured to acquire an AU delimiter arranged immediately before the SPS portion as a head byte position of a video decoding minimum unit. 圧縮した映像情報の符号化トランスポートストリームデータに配置される時間基準を取得する時間基準取得ステップと、
映像復号化最小単位の先頭バイト位置を探索する先頭探索ステップと、
前記時間基準が配置されるバイト位置と前記映像復号化最小単位の先頭バイト位置との差分を再生装置でデコードする際のデコードビットレートで除したものに前記時間基準を加えることにより、各映像復号化最小単位の先頭位置が再生されるべき時間を示す先頭時間情報を取得する先頭時間情報取得ステップと、
を計算機に実行させる電子機器の制御方法。
A time reference acquisition step of acquiring a time reference arranged in the encoded transport stream data of the compressed video information;
A head search step for searching a head byte position of a video decoding minimum unit;
Each video decoding is performed by adding the time reference to the difference between the byte position where the time reference is arranged and the first byte position of the video decoding minimum unit divided by the decoding bit rate when decoding by the playback device. A start time information acquisition step for acquiring start time information indicating a time at which the start position of the minimum unit is to be reproduced;
For controlling electronic equipment that causes a computer to execute the above.
先頭時間情報取得ステップにて取得した先頭時間情報を保持するために記録する先頭時間情報記録ステップをさらに計算機に実行させる請求項8に記載の電子機器の制御方法。   9. The method of controlling an electronic device according to claim 8, further causing the computer to execute a first time information recording step for recording the first time information acquired in the first time information acquisition step. 再生開始位置をコンテンツの再生開始後経過時間で指定する入力を受付ける再生開始位置入力受付ステップと、
受付けた再生開始後経過時間と、先頭時間情報と、を利用して最初に再生すべき映像復号化最小単位IDを取得する再生開始最小単位ID取得ステップと、
をさらに計算機に実行させる請求項8又は9に記載の電子機器の制御方法。
A playback start position input receiving step for receiving an input for specifying a playback start position by an elapsed time after the start of playback of the content;
A reproduction start minimum unit ID obtaining step for obtaining a video decoding minimum unit ID to be reproduced first using the received elapsed time after reproduction start and the start time information;
10. The method for controlling an electronic device according to claim 8, further comprising: causing the computer to execute.
圧縮した映像情報の符号化トランスポートストリームと関連付けて先頭時間情報を保持する保持部を有する電子機器の制御方法であって、
圧縮した映像情報の符号化トランスポートストリームを再生開始最小単位IDにて特定されるバイト位置から送出する送出ステップをさらに計算機に実行させる請求項10に記載の電子機器の制御方法。
A method for controlling an electronic device having a holding unit that holds head time information in association with an encoded transport stream of compressed video information,
11. The method of controlling an electronic device according to claim 10, further causing a computer to execute a sending step of sending a compressed transport stream of compressed video information from a byte position specified by a reproduction start minimum unit ID.
前記先頭時間情報取得部は、前記映像復号化最小単位の先頭バイト位置の算出を行う前に、前記デコードビットレートの算出を行う請求項1に記載の電子機器。The electronic apparatus according to claim 1, wherein the start time information acquisition unit calculates the decode bit rate before calculating the start byte position of the video decoding minimum unit. 前記先頭時間情報取得ステップは、前記映像復号化最小単位の先頭バイト位置の算出を行う前に、前記デコードビットレートの算出を行う請求項8に記載の電子機器の制御方法。9. The method of controlling an electronic device according to claim 8, wherein the start time information acquisition step calculates the decode bit rate before calculating the start byte position of the video decoding minimum unit.
JP2007288945A 2007-11-06 2007-11-06 Electronics Expired - Fee Related JP5219122B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007288945A JP5219122B2 (en) 2007-11-06 2007-11-06 Electronics

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007288945A JP5219122B2 (en) 2007-11-06 2007-11-06 Electronics

Publications (2)

Publication Number Publication Date
JP2009118179A JP2009118179A (en) 2009-05-28
JP5219122B2 true JP5219122B2 (en) 2013-06-26

Family

ID=40784811

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007288945A Expired - Fee Related JP5219122B2 (en) 2007-11-06 2007-11-06 Electronics

Country Status (1)

Country Link
JP (1) JP5219122B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5120364B2 (en) * 2009-11-18 2013-01-16 船井電機株式会社 Optical disk playback device
CN102972024A (en) * 2011-05-11 2013-03-13 松下电器产业株式会社 Video transmission device and video transmission method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4145103B2 (en) * 2002-08-30 2008-09-03 富士通株式会社 Movie data playback method and playback apparatus
JP2005123907A (en) * 2003-10-16 2005-05-12 Matsushita Electric Ind Co Ltd Data reconstruction apparatus
JP2006100885A (en) * 2004-09-28 2006-04-13 Vodafone Kk Streaming data receiving and reproducing terminal

Also Published As

Publication number Publication date
JP2009118179A (en) 2009-05-28

Similar Documents

Publication Publication Date Title
CN100456825C (en) Information recording medium, and apparatus and method for recording information to information recording medium
JP4421156B2 (en) Image reproducing apparatus and image recording / reproducing apparatus
WO2013008867A1 (en) Transmission device, method for controlling transmission device, control program, and recording medium
CN100525423C (en) Information recording apparatus and recording method
CN1992054B (en) Method and apparatus for utilizing DVD contents through home network
JP2005278202A (en) Method and apparatus for creating and recording management information for digital data stream
US20100166387A1 (en) Method and apparatus for playing video data of high bit rate format by a player capable of playing video data of low bit rate format
CN101583007A (en) Information recording medium for recording convertible stream at high-speed, recording apparatus and recording method
CN111356023B (en) Playing mode determining method and device
JP3300983B2 (en) Method for generating search information of recorded digital data stream and search method and apparatus using the same
CN100518283C (en) Information recording recording apparatus wherein stream convertible at high-speed is recorded and recording method thereof
US20090136204A1 (en) System and method for remote live pause
CA2628043C (en) Method for reproducing multi-angle data in a seamless manner
JP3552929B2 (en) Decoding device and decoding method
JP5219122B2 (en) Electronics
KR100643867B1 (en) Electronic equipment and data processing method therefor
KR100676723B1 (en) Video reproducing apparatus
JP2003179871A (en) Method for dvd recording of data stream and dvd recorder
JP2008294638A (en) Transmission system, recording apparatus, transmission method, recording method, and program
JP3785107B2 (en) Moving picture and audio data recording / reproducing apparatus and reproducing method
CN101707705A (en) Information recording medium wherein stream convertible at high-speed is recorded, and recording apparatus and recording method therefor
JP2012034210A (en) Video/audio recording/playback device and video/audio recording/playback method
JP5120479B2 (en) Data signal recording apparatus and data signal reproducing apparatus
JP2001285800A (en) Data signal recording and reproducing device and data signal recording and reproducing method
JP2005223794A (en) Apparatus and method of recording audio-visual content

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100705

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120802

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120820

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20121015

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130228

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

Free format text: PAYMENT UNTIL: 20160315

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 5219122

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees