JP2004040150A - Apparatus, method and system for reproducing compressed data - Google Patents

Apparatus, method and system for reproducing compressed data Download PDF

Info

Publication number
JP2004040150A
JP2004040150A JP2002190155A JP2002190155A JP2004040150A JP 2004040150 A JP2004040150 A JP 2004040150A JP 2002190155 A JP2002190155 A JP 2002190155A JP 2002190155 A JP2002190155 A JP 2002190155A JP 2004040150 A JP2004040150 A JP 2004040150A
Authority
JP
Japan
Prior art keywords
compressed data
frame
frame number
intra
reading
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.)
Pending
Application number
JP2002190155A
Other languages
Japanese (ja)
Inventor
Shigeyuki Kurahashi
倉橋 茂之
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.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP2002190155A priority Critical patent/JP2004040150A/en
Publication of JP2004040150A publication Critical patent/JP2004040150A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To reproduce MPEG (Moving Picture Experts Group) data at an accurate position, without taking much time for preparing a database. <P>SOLUTION: Prior to starting reading of the MPEG data, the MPEG data are equally divided into a plurality of data, the frame numbers of intra-frames around the position of equally divided data are obtained (step S2), and an interpolation function for interpolating the position of the overall MPEG file for the frame number of an intra-frame between the divided position is generated, by using some of the obtained frame numbers (step S4). When the frame number of a frame of a read request destination of the MPEG data is transmitted, the frame number is substituted for the interpolation function to determine the position for the entire MPEG file, the frame number of an intra-frame near the frame number from that is identified (step S5), and the MPEG data are reproduced at the intra-frame having the identified frame number (step S6). <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
本発明は、圧縮データ再生装置、方法及びシステムに関し、特に、MPEG(Moving Picture Experts Group)データなどの圧縮データ再生装置、方法及びシステムに関する。
【0002】
【従来の技術】
従来、MPEGデータを指定した時間から、再生するにはこれまで、再生開始位置を検出するために、再生が可能なイントラフレーム(Iフレーム(I−Frame))に割り当てられているプレゼンテーションタイムスタンプ(PTS)等のフレーム番号の全てを予めデータベースに記憶しておいたり、ファイルサイズおよびMPEGデータの先頭および終端のPTSを探索することにより得られる総再生時間から再生開始概算位置を求め、その直後のIフレームから再生していた。
【0003】
【発明が解決しようとする課題】
しかし、従来の技術は、MPEGデータが総再生時間の長いファイルの場合だと、データベースの作成に時間がかかるという問題がある。
【0004】
また、再生開始概算位置を求めるだけだと、正確な位置からMPEGデータの再生を行えないという問題がある。
【0005】
そこで、本発明は、データベースの作成に時間をかけることなく、正確な位置からMPEGデータの再生を行えるようにすることを課題とする。
【0006】
【課題を解決するための手段】
上記課題を解決するために、本発明は、複数のフレームを含む圧縮データを格納しておく格納手段と、前記格納手段に格納してある圧縮データを命令されたイントラフレームから読み出す読み出し手段とを備えた圧縮データ再生装置であって、前記読み出し手段で圧縮データの読み出しを開始するのに先立って、前記格納手段に格納してある圧縮データを複数に分割し、各分割位置周辺のイントラフレームのフレーム番号に対するMPEGファイル全体に対する位置を取得し、前記取得したフレーム番号のいくつかを用いて分割位置間のイントラフレームのフレーム番号に対するフレーム番号に対するMPEGファイル全体での位置を補う補間関数を作成しておき、前記圧縮データの読み出し要求先のフレームのフレーム番号が送られてきたときに、当該フレーム番号を前記補間関数に代入して求められたMPEGファイル全体に対する位置に近い、イントラフレームのフレーム番号を割り出し、割り出したフレーム番号のイントラフレームから読み出すように前記読み出し手段に命令する再生命令手段を備えることを特徴とする。
【0007】
また、本発明は、複数のフレームを含む圧縮データを格納しておく格納手段と、前記格納手段に格納してある圧縮データを命令されたイントラフレームから読み出す読み出し手段とを備えた圧縮データ再生装置であって、前記読み出し手段で圧縮データの読み出しを開始するのに先立って、前記格納手段に格納してある圧縮データを複数に等分割し、各分割位置周辺のイントラフレームのフレーム番号を取得しておき、前記圧縮データの読み出し要求先のフレームのフレーム番号が送られてきたときに二分木検索を行って、当該フレーム番号に近い、イントラフレームのフレーム番号を割り出し、割り出したフレーム番号のイントラフレームから読み出すように前記読み出し手段に命令する再生命令手段を備えることを特徴とする。
【0008】
さらに、本発明の表示装置は、上記何れかの圧縮データ再生装置に対して前記圧縮データの読み出し要求先のフレームのフレーム番号を送信し、当該フレーム番号の送信に応じて前記圧縮データ再生装置で読み出された圧縮データを表示することを特徴とする。
【0009】
さらにまた、本発明の圧縮データ再生システムは、上記いずれかの圧縮データ再生装置と、表示装置とを備える。
【0010】
また、本発明は、複数のフレームを含む圧縮データを、命令されたイントラフレームから読み出す圧縮データ再生方法であって、前記圧縮データの読み出しを開始するのに先立って、当該圧縮データを複数に等分割し、各分割位置周辺のイントラフレームのフレーム番号を取得し、前記取得したフレーム番号のいくつかを用いて分割位置間のイントラフレームのフレーム番号に対するフレーム番号に対するMPEGファイル全体での位置を補う補間関数を作成しておき、前記圧縮データの読み出し要求先のフレームのフレーム番号が送られてきたときに、当該フレーム番号を前記補間関数に代入して当該フレーム番号に近い、イントラフレームのフレーム番号を割り出し、割り出したフレーム番号のイントラフレームから読み出すことを特徴とする。
【0011】
さらに、本発明は、複数のフレームを含む圧縮データを、命令されたイントラフレームから読み出す圧縮データ再生方法であって、前記圧縮データの読み出しを開始するのに先立って、当該圧縮データを複数に等分割し、各分割位置周辺のイントラフレームのフレーム番号を取得しておき、前記圧縮データの読み出し要求先のフレームのフレーム番号が送られてきたときに二分木検索を行って、当該フレーム番号に近い、イントラフレームのフレーム番号を割り出し、割り出したフレーム番号のイントラフレームから読み出すことを特徴とする。
【0012】
さらにまた、本発明の表示方法は、上記いずれかの圧縮データ再生方法を実現する圧縮データ再生装置に対して前記圧縮データの読み出し要求先のフレームのフレーム番号を送信し、当該フレーム番号の送信に応じて前記圧縮データ再生装置で読み出された圧縮データを表示することを特徴とする。
【0013】
【発明の実施の形態】
以下、本発明の実施形態について図面を参照して説明する。
【0014】
(実施形態1)
[構成の説明]
図1は、本発明の実施形態1の圧縮データ再生システムの模式的な構成を示すブロック図である。
【0015】
図1には、以下説明するように、圧縮データであるMPEGデータが格納されたホームサーバ10と、ホームサーバ10にMPEGデータの再生、高速再生、停止、一時停止等の命令を出し、ホームサーバ10から配信されたMPEGデータをモニタに表示等するクライアントパーソナルコンピュータ(PC)20とを示している。
【0016】
ホームサーバ10は、MPEGデータを格納してあるファイル格納部11と、ファイル格納部11からMPEGデータを読み出すMPEG読み出し部12と、MPEG読み出し部12で読み出されたMPEGデータをクライアントPC20側へ配信する通信制御部13と、クライアントPC20側からの要求に応じてファイル格納部11に格納してあるMPEGデータを例えば16等分割していくつかの分割位置近傍のI−Frameのフレーム番号およびフレーム番号に対するMPEGファイル全体での位置を含むデータベースファイルを作成する再生命令部14と、再生命令部14で作成されたデータベースファイルを格納するデータベース15と、MPEGデータの再生の際にデータベース15に格納されたデータベースファイルが一時的に書き込まれるメモリ16とを備えている。
【0017】
クライアントPC20は、ホームサーバ10側から配信されたMPEGデータを受け取る通信制御部21と、通信制御部21で受信されたMPEGデータを復号するMPEG復号器22と、MPEG復号器22で復号されたデータを表示したりホームサーバ10へMPEGデータの配信要求等を出力するためのGUI(Graphical User Interface)23とを備えている。
【0018】
図2,図3は、図1のファイル格納部11に格納してあるMPEGデータの模式的な構造図である。
【0019】
図2に示すように、MPEGデータは、PACK101とPES102〜106等とを含んでいる。PESにはVideo(映像)PES102〜104,106とAudio(音声)PES105とがある。
【0020】
また、図3に示すように、PES102〜106等には、そこに記録されているVideoおよびAudioを再生するべきPTS(Presentation Time Stamp)が記録されている。なお、図3には、PES201のPTSを9009、PES202のPTSを12012、PES203のPTSを15015とした例を示している。VideoPES202には図示しているようにPESヘッダを含む各種情報が格納されている。
【0021】
ここで、例えば、クライアントPC20側から、MPEGデータの読み出し要求先のフレームのフレーム番号が送られてくると、このフレーム番号がI−frameのものであるかどうかが分からないので、このフレーム番号に相当するPTSが10000であれば、その近傍に位置するPTSが12012のI−frameから読み出しをするようにしている。
【0022】
[動作の説明]
図4は、図1の再生命令部14の動作の説明図である。
【0023】
図4を用いつつ図1の圧縮データ再生システムの動作について説明する。
【0024】
まず、ホームサーバ10側では、MPEGデータをファイル格納部11に格納しておく。この状態で、クライアントPC20側から、MPEGデータを再生するために、GUI23を通じて、MPEGデータの読み出し要求先のフレームのフレーム番号を含むMPEGデータの配信要求が出力されると、再生命令部14は、MPEGデータの再生に先立って、データベース15を参照してデータベースファイルが既に作成されて格納されているかどうかを判別する(ステップS1)。
【0025】
判別の結果、データベース15にデータベースファイルが格納されていない場合には、再生命令部14はデータベースファイルを作成する(ステップS2)。
【0026】
具体的には、以下のようにしてデータベースファイルを作成する。すなわち再生命令部14は、ファイル格納部11に格納してあるMPEGデータを例えば16等分割して各分割位置近傍のI−FrameのPESと、そのPESが割り当てられたI−frameのMPEGデータ全体に対する信号とを含むデータベースファイルを作成する。
【0027】
また、判別の結果、データベース15を参照してデータベースファイルが格納されている場合にはデータベース15からデータベースファイルを読み出し、また、再生命令部14によってデータベースファイルが作成された場合には、そのデータベースファイルをメモリ16に書き込む(ステップS3)。
【0028】
それから、再生命令部14は、メモリ16に書き込まれたデータベースファイルを参照して、例えばMPEGデータの読み出し要求先のフレームのフレーム番号周辺のN個のフレーム番号とそれらの位置とからN次補間関数を作成する(ステップS4)。
【0029】
そして、N次補間関数にクライアントPC20で指定されたMPEGデータの読み出し要求先のフレームのフレーム番号を代入して、MPEGファイル全体での位置情報を求め、その位置に近いI−Frameのフレーム番号およびそのMPEGファイル全体に対する位置を割り出す(ステップS5)。
【0030】
つぎに、再生命令部14は、割り出したフレーム番号のフレームからMPEGデータを読み出すように命令し、MPEG読み出し部12はその命令に従ってファイル格納部11に格納されているMPEGデータを読み出して、通信制御部13を通じてクライアントPCへ配信する(ステップS6)。
【0031】
同時に、MPEG読み出し部12によって読み出されたMPEGデータは、再生命令部14にも出力される。再生命令部14は、MPEG読み出し部12から出力されたMPEGデータのPESを参照して、I−Frameが検出されると、I−frameの位置及びフレーム番号を取得して、メモリ16に追加記録していく(ステップS7)。
【0032】
そして、再生命令部14は、クライアントPC20からMPEGデータの再生を終了する命令が出されたかどうかの判別を行う(ステップS8)。
【0033】
判別の結果、クライアントPC20からMPEGデータの再生を終了する命令が出されていなければステップS6に戻り、クライアントPC20からMPEGデータの再生を終了する命令が出されていればメモリ16のデータベースファイルを、データベース15へ格納して図4に示す処理を終了する。
【0034】
なお、クライアントPC20から、MPEGデータの再生の一時停止、再生の停止の命令がされたときにも、メモリ16のデータベースファイルを、データベース15へ格納するようにしてもよい。
【0035】
また、本実施形態では、MPEGデータを16等分割する場合を例に説明したが、これに限定されず、例えば10等分割でも、20等分割でもよいし、また等分割でなくてもよい。さらに、例えば16等分割しても、なお分割した領域が大きすぎて、有効な位置検出を行えない場合には、圧縮データの読み出し要求先のフレーム番号を受信したときなどに、さらに、適当な領域を例えば16等分割して、補間関数の信頼性を向上するようにしてもよい。
【0036】
(実施形態2)
図5は、本発明の実施形態2に係る再生命令部14の動作の説明図である。
【0037】
なお、本実施形態の圧縮データ再生システムの構成は図1と同様である。また、データベースファイルの作成手法も実施形態1で説明した通りである。
【0038】
まず、実施形態1で説明したように、再生命令部14は、データベース15を参照してデータベースファイル既に作成されて格納されているかどうかを判別する(ステップS11)。
【0039】
判別の結果、データベース15にデータベースファイルが格納されていない場合には、再生命令部14はMPEGのデータの先端及び終端近傍のI−frameのフレーム番号に対応したMPEGファイル全体に対する位置を求め、それらを検出開始位置及び検出終了位置とする(ステップS12)。
【0040】
一方、判別の結果、データベース15にデータベースファイルが格納されている場合には、読み出し要求先のフレーム番号を最も狭く挟めるI−frameのフレーム番号に対応したMPEGファイル全体に対する位置をデータベース15を参照することによって算出して、それらを検出開始位置及び検出終了位置とする(ステップS13)。
【0041】
それから、検出開始位置と検出終了位置との中点近傍のI−frameのフレーム番号を求める(ステップS14)。
【0042】
そして、検出開始位置と検出終了位置との間の長さがSkbyte以下になったかどうかを判別する(ステップS15)。
【0043】
ここで、Sは例えばGOPの長さと同程度としている。これは、MPEGデータのほとんどが、GOP内に基本的にはI−frameが一つしかないので、これ以上狭い範囲内でI−frameが存在することは稀であり、これ以上二分木検索を行う必要性がないためである。
【0044】
判別の結果、検出開始位置と検出終了位置との間の長さがSkbyte以下であった場合には、検出開始位置と検出終了位置との中点近傍のI−frameからMPEGデータの再生を開始して、図5に示す処理を終了する(ステップS19)。
【0045】
一方、判別の結果、検出開始位置と検出終了位置との間の長さがSkbyte以下でなかった場合には、読み出し要求先のフレーム番号が、検出開始位置と検出終了位置との中点近傍のI−frameのフレーム番号よりも大きいかどうか判別する(ステップS16)。
【0046】
そして、読み出し要求先のフレーム番号が、検出開始位置と検出終了位置との中点近傍のI−frameのフレーム番号よりも大きい場合には、その中点近傍のI−frameのフレーム番号を検出開始位置として、ステップS14へ戻る(ステップS17)。
【0047】
一方、読み出し要求先のフレーム番号が、検出開始位置と検出終了位置との中点近傍のI−frameのフレーム番号よりも大きくない場合には、その中点近傍のI−frameのフレーム番号を検出終了位置として、ステップS14へ戻る(ステップS18)。
【0048】
なお、図5に示す処理の終了後は、図4のステップS6移行の処理と同様である。
【0049】
【発明の効果】
以上、説明したように、本発明は、全てのイントラフレームのフレーム番号を予め記憶しておく必要がないので、ファイルが長くてもデータベースの作成時間を少なくすることができるし、再生開始概算位置を求めるのではないので、圧縮データの読み出し要求に対して正確な位置から圧縮データの再生を行うことができる。
【0050】
特に、圧縮データを再生しているときに、データベースを更新するためにデータベースファイルを作成しているので、圧縮データの読み出し先を検出するまでの検出時間を短縮できたり、検出レベルを向上できる。
【図面の簡単な説明】
【図1】本発明の実施形態1の圧縮データ再生システムの模式的な構成を示すブロック図である。
【図2】図1のファイル格納部11に格納してあるMPEGデータの模式的な構造図である。
【図3】図1のファイル格納部11に格納してあるMPEGデータの模式的な構造図である。
【図4】図1の再生命令部14の動作の説明図である。
【図5】本発明の実施形態2に係る再生命令部14の動作の説明図である。
【符号の説明】
10 ホームサーバ
11 ファイル格納部
12 MPEG読み出し部
13 通信制御部
14 再生命令部
15 データベース
16 メモリ
20 クライアントPC
21 通信制御部
22 MPEG復号器
23 GUI
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a compressed data reproducing apparatus, method, and system, and more particularly, to a compressed data reproducing apparatus, method, and system for MPEG (Moving Picture Experts Group) data and the like.
[0002]
[Prior art]
Conventionally, to reproduce MPEG data from a designated time, a presentation time stamp (I-Frame) assigned to a reproducible intra-frame (I-frame) for detecting a reproduction start position has been used. (PTS) or the like, the entire reproduction number is stored in a database in advance, or the approximate reproduction start position is obtained from the total reproduction time obtained by searching for the file size and the PTS at the beginning and end of the MPEG data. It was playing from the I frame.
[0003]
[Problems to be solved by the invention]
However, the conventional technique has a problem that it takes a long time to create a database when the MPEG data is a file having a long total reproduction time.
[0004]
Further, there is a problem that if only the approximate reproduction start position is obtained, the MPEG data cannot be reproduced from an accurate position.
[0005]
Accordingly, it is an object of the present invention to enable MPEG data to be reproduced from an accurate position without taking time to create a database.
[0006]
[Means for Solving the Problems]
In order to solve the above problem, the present invention provides a storage unit for storing compressed data including a plurality of frames, and a reading unit for reading compressed data stored in the storage unit from a commanded intra frame. A compressed data reproducing apparatus comprising: before starting reading of compressed data by the reading means, divides the compressed data stored in the storage means into a plurality of pieces; By obtaining the position of the entire MPEG file with respect to the frame number, and using some of the obtained frame numbers, creating an interpolation function for compensating the position of the entire MPEG file with respect to the frame number of the intra frame between the division positions. The frame number of the frame to which the compressed data read request is sent. At this time, the frame number of the intra frame close to the position with respect to the whole MPEG file obtained by substituting the frame number into the interpolation function is determined, and the reading means is instructed to read from the intra frame of the determined frame number. It is characterized by comprising reproduction instruction means.
[0007]
According to another aspect of the present invention, there is provided a compressed data reproducing apparatus comprising: storage means for storing compressed data including a plurality of frames; and reading means for reading the compressed data stored in the storage means from a commanded intra frame. Prior to the start of reading compressed data by the reading unit, the compressed data stored in the storage unit is equally divided into a plurality of pieces, and the frame numbers of intra frames around each division position are acquired. In advance, when the frame number of the frame of the compressed data read request destination is transmitted, a binary tree search is performed to determine a frame number of an intra frame close to the frame number, and an intra frame of the determined frame number Reproduction command means for instructing the reading means to read from the memory.
[0008]
Further, the display device of the present invention transmits the frame number of the frame to which the compressed data is requested to be read to any one of the compressed data reproducing devices, and the compressed data reproducing device responds to the transmission of the frame number. The read compressed data is displayed.
[0009]
Furthermore, a compressed data reproducing system according to the present invention includes any one of the above compressed data reproducing devices and a display device.
[0010]
The present invention also relates to a compressed data reproducing method for reading compressed data including a plurality of frames from a commanded intra frame, wherein the compressed data is divided into a plurality of pieces before starting reading the compressed data. Interpolation that divides and obtains the frame numbers of the intra frames around each division position, and uses some of the obtained frame numbers to compensate for the position in the entire MPEG file with respect to the frame number of the intra frame between the division positions A function is created, and when the frame number of the frame of the compressed data read request destination is sent, the frame number is substituted into the interpolation function and a frame number of an intra frame close to the frame number is set. Identify and read from the determined intra-frame of the frame number To.
[0011]
Further, the present invention is a compressed data reproducing method for reading compressed data including a plurality of frames from a commanded intra frame, wherein the compressed data is divided into a plurality of pieces before starting reading the compressed data. Divide and obtain the frame numbers of the intra frames around each division position, perform a binary tree search when the frame number of the frame of the compressed data read request destination is transmitted, and find , The frame number of the intra frame is determined, and the frame number is read from the intra frame of the determined frame number.
[0012]
Still further, the display method of the present invention transmits a frame number of a frame to which a request for reading the compressed data is transmitted to a compressed data reproducing apparatus that realizes any of the above compressed data reproducing methods, and transmits the frame number. Accordingly, the compressed data read by the compressed data reproducing device is displayed.
[0013]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
[0014]
(Embodiment 1)
[Description of configuration]
FIG. 1 is a block diagram illustrating a schematic configuration of the compressed data reproduction system according to the first embodiment of the present invention.
[0015]
FIG. 1 shows a home server 10 storing MPEG data, which is compressed data, as described below, and issues commands to the home server 10 such as reproduction, high-speed reproduction, stop, and pause of the MPEG data. 10 shows a client personal computer (PC) 20 for displaying the MPEG data distributed from 10 on a monitor or the like.
[0016]
The home server 10 distributes to the client PC 20 the file storage unit 11 storing the MPEG data, the MPEG read unit 12 for reading the MPEG data from the file storage unit 11, and the MPEG data read by the MPEG read unit 12. The communication control unit 13 and the MPEG data stored in the file storage unit 11 in response to a request from the client PC 20 are divided into, for example, 16 equal parts, and the I-Frame frame numbers and frame numbers near some division positions , A playback command section 14 for creating a database file including the position of the entire MPEG file, a database 15 for storing the database file created by the playback command section 14, and a database 15 stored in the database 15 when the MPEG data is played. One database file And a memory 16 to be written to specifically.
[0017]
The client PC 20 includes a communication control unit 21 that receives the MPEG data distributed from the home server 10, an MPEG decoder 22 that decodes the MPEG data received by the communication control unit 21, and a data that is decoded by the MPEG decoder 22. And a GUI (Graphical User Interface) 23 for displaying, for example, a request for distributing MPEG data to the home server 10 and the like.
[0018]
FIGS. 2 and 3 are schematic structural diagrams of MPEG data stored in the file storage unit 11 of FIG.
[0019]
As shown in FIG. 2, the MPEG data includes a PACK 101, PESs 102 to 106, and the like. The PES includes Video (video) PESs 102 to 104 and 106 and Audio (audio) PES 105.
[0020]
As shown in FIG. 3, PTSs (Presentation Time Stamp) for reproducing the Video and Audio recorded therein are recorded in the PESs 102 to 106 and the like. FIG. 3 shows an example in which the PTS of the PES 201 is 9009, the PTS of the PES 202 is 12012, and the PTS of the PES 203 is 15015. Various information including a PES header is stored in the Video PES 202 as illustrated.
[0021]
Here, for example, when the frame number of the frame to which the reading of the MPEG data is requested is sent from the client PC 20 side, it is not known whether or not this frame number is of the I-frame. If the corresponding PTS is 10000, the PTS located in the vicinity is read from the I-frame of 12012.
[0022]
[Description of operation]
FIG. 4 is an explanatory diagram of the operation of the reproduction command unit 14 of FIG.
[0023]
The operation of the compressed data reproduction system of FIG. 1 will be described with reference to FIG.
[0024]
First, the home server 10 stores MPEG data in the file storage unit 11. In this state, when the client PC 20 outputs an MPEG data distribution request including the frame number of the frame to which MPEG data is requested to be read through the GUI 23 in order to reproduce the MPEG data, the reproduction command unit 14 Prior to the reproduction of the MPEG data, it is determined whether or not a database file has already been created and stored with reference to the database 15 (step S1).
[0025]
If the result of the determination is that a database file is not stored in the database 15, the reproduction command unit 14 creates a database file (step S2).
[0026]
Specifically, a database file is created as follows. That is, the playback command unit 14 divides the MPEG data stored in the file storage unit 11 into 16 equal parts, for example, and splits the I-Frame PES near each division position and the entire I-frame MPEG data to which the PES is assigned. Create a database file containing the signals for
[0027]
As a result of the determination, if the database file is stored with reference to the database 15, the database file is read from the database 15, and if the database file is created by the reproduction command unit 14, the database file is read. Is written into the memory 16 (step S3).
[0028]
Then, the reproduction command unit 14 refers to the database file written in the memory 16 and determines, for example, an N-order interpolation function based on the N frame numbers around the frame number of the frame to which MPEG data is requested to be read and their positions. Is created (step S4).
[0029]
Then, the position information of the entire MPEG file is obtained by substituting the frame number of the frame of the read request destination of the MPEG data specified by the client PC 20 into the N-order interpolation function, and the I-Frame frame number close to the position is obtained. The position of the entire MPEG file is determined (step S5).
[0030]
Next, the reproduction command section 14 commands the reading of the MPEG data from the frame of the determined frame number, and the MPEG reading section 12 reads the MPEG data stored in the file storage section 11 according to the command, and performs the communication control. The data is distributed to the client PC through the unit 13 (step S6).
[0031]
At the same time, the MPEG data read by the MPEG reading unit 12 is also output to the reproduction command unit 14. When the I-Frame is detected by referring to the PES of the MPEG data output from the MPEG reading unit 12, the reproduction command unit 14 acquires the position and the frame number of the I-frame, and additionally records it in the memory 16. (Step S7).
[0032]
Then, the reproduction command section 14 determines whether or not a command to end the reproduction of the MPEG data has been issued from the client PC 20 (step S8).
[0033]
As a result of the determination, if the command to end the reproduction of the MPEG data has not been issued from the client PC 20, the process returns to step S 6. If the command to end the reproduction of the MPEG data has been issued from the client PC 20, the database file in the memory 16 is read. The result is stored in the database 15 and the processing shown in FIG.
[0034]
The database file in the memory 16 may be stored in the database 15 even when a command to temporarily stop or stop the playback of the MPEG data is issued from the client PC 20.
[0035]
Further, in the present embodiment, the case where the MPEG data is divided into 16 equal parts has been described as an example. However, the present invention is not limited to this. For example, the MPEG data may be divided into ten equal parts, twenty equal parts, or not equally divided. Further, for example, if the divided area is too large to perform effective position detection even after being divided into 16 equal parts, when the frame number of the compressed data read request destination is received, a more appropriate For example, the area may be divided into 16 equal parts to improve the reliability of the interpolation function.
[0036]
(Embodiment 2)
FIG. 5 is an explanatory diagram of the operation of the reproduction command unit 14 according to the second embodiment of the present invention.
[0037]
Note that the configuration of the compressed data reproduction system of the present embodiment is the same as that of FIG. The method of creating the database file is also the same as described in the first embodiment.
[0038]
First, as described in the first embodiment, the reproduction command unit 14 determines whether or not a database file has already been created and stored with reference to the database 15 (step S11).
[0039]
If the database file is not stored in the database 15 as a result of the determination, the playback command unit 14 obtains the position of the entire MPEG file corresponding to the I-frame frame number near the start and end of the MPEG data, and Are the detection start position and the detection end position (step S12).
[0040]
On the other hand, if the database file is stored in the database 15 as a result of the determination, the database 15 is referred to for the position with respect to the entire MPEG file corresponding to the I-frame frame number in which the frame number of the read request destination is narrowest. These are used as the detection start position and the detection end position (step S13).
[0041]
Then, an I-frame frame number near the midpoint between the detection start position and the detection end position is obtained (step S14).
[0042]
Then, it is determined whether or not the length between the detection start position and the detection end position has become equal to or less than Skbyte (step S15).
[0043]
Here, S is, for example, approximately equal to the length of the GOP. This is because most of MPEG data basically has only one I-frame in a GOP, so it is rare that an I-frame exists within a narrower range. There is no need to do it.
[0044]
As a result of the determination, when the length between the detection start position and the detection end position is equal to or smaller than Skbyte, the reproduction of the MPEG data is started from the I-frame near the middle point between the detection start position and the detection end position. Then, the processing illustrated in FIG. 5 ends (step S19).
[0045]
On the other hand, as a result of the determination, if the length between the detection start position and the detection end position is not equal to or smaller than Skbyte, the frame number of the read request destination is set near the middle point between the detection start position and the detection end position. It is determined whether the frame number is larger than the I-frame frame number (step S16).
[0046]
If the frame number of the read request destination is larger than the frame number of the I-frame near the middle point between the detection start position and the detection end position, the detection of the frame number of the I-frame near the middle point is started. The process returns to step S14 as the position (step S17).
[0047]
On the other hand, if the frame number of the read request destination is not larger than the frame number of the I-frame near the middle point between the detection start position and the detection end position, the frame number of the I-frame near the middle point is detected. The process returns to step S14 as the end position (step S18).
[0048]
After the end of the process shown in FIG. 5, the process is the same as the process of step S6 in FIG.
[0049]
【The invention's effect】
As described above, according to the present invention, it is not necessary to previously store the frame numbers of all the intra frames, so that the database creation time can be reduced even if the file is long, and the reproduction start approximate position can be reduced. Therefore, the compressed data can be reproduced from an accurate position in response to the compressed data read request.
[0050]
In particular, since the database file is created to update the database while the compressed data is being reproduced, the detection time required to detect the read destination of the compressed data can be reduced, and the detection level can be improved.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a schematic configuration of a compressed data reproduction system according to a first embodiment of the present invention.
FIG. 2 is a schematic structural diagram of MPEG data stored in a file storage unit 11 of FIG.
FIG. 3 is a schematic structural diagram of MPEG data stored in a file storage unit 11 of FIG.
FIG. 4 is an explanatory diagram of an operation of a reproduction command unit 14 of FIG. 1;
FIG. 5 is an explanatory diagram of an operation of a reproduction command unit 14 according to the second embodiment of the present invention.
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 10 Home server 11 File storage unit 12 MPEG reading unit 13 Communication control unit 14 Playback instruction unit 15 Database 16 Memory 20 Client PC
21 Communication control unit 22 MPEG decoder 23 GUI

Claims (16)

複数のフレームを含む圧縮データを格納しておく格納手段と、前記格納手段に格納してある圧縮データを命令されたイントラフレームから読み出す読み出し手段とを備えた圧縮データ再生装置であって、
前記読み出し手段で圧縮データの読み出しを開始するのに先立って、前記格納手段に格納してある圧縮データを複数に分割し、各分割位置周辺のイントラフレームのフレーム番号を取得し、前記取得したフレーム番号のいくつかを用いて分割位置間のイントラフレームのフレーム番号に対するそのMPEGファイル全体での位置を補う補間関数を作成しておき、前記圧縮データの読み出し要求先のフレームのフレーム番号が送られてきたときに、当該フレーム番号を前記補間関数に代入して当該フレーム番号に近い、イントラフレームのフレーム番号に対するMPEGファイル全体での位置を割り出し、割り出したフレーム番号のイントラフレームから読み出すように前記読み出し手段に命令する再生命令手段を備えることを特徴とする圧縮データ再生装置。
A compressed data reproducing apparatus comprising: storage means for storing compressed data including a plurality of frames; and reading means for reading compressed data stored in the storage means from a commanded intra frame,
Prior to starting the reading of the compressed data by the reading unit, the compressed data stored in the storage unit is divided into a plurality of parts, and the frame numbers of the intra frames around each division position are obtained. Using some of the numbers, an interpolation function for compensating the position in the entire MPEG file with respect to the frame number of the intra frame between the division positions is created, and the frame number of the frame to which the compressed data is requested to be read is sent. When the frame number is substituted into the interpolation function, the position of the frame number of the intra-frame, which is close to the frame number, with respect to the frame number of the intra-frame is determined, and the read-out means is read from the intra-frame of the determined frame number. Characterized by comprising a reproduction command means for commanding Over data reproducing apparatus.
複数のフレームを含む圧縮データを格納しておく格納手段と、前記格納手段に格納してある圧縮データを命令されたイントラフレームから読み出す読み出し手段とを備えた圧縮データ再生装置であって、
前記読み出し手段で圧縮データの読み出しを開始するのに先立って、前記格納手段に格納してある圧縮データを複数に等分割し、各分割位置周辺のイントラフレームのフレーム番号を取得しておき、前記圧縮データの読み出し要求先のフレームのフレーム番号が送られてきたときに二分木検索を行って、当該フレーム番号に近い、イントラフレームのフレーム番号を割り出し、割り出したフレーム番号のイントラフレームから読み出すように前記読み出し手段に命令する再生命令手段を備えることを特徴とする圧縮データ再生装置。
A compressed data reproducing apparatus comprising: storage means for storing compressed data including a plurality of frames; and reading means for reading compressed data stored in the storage means from a commanded intra frame,
Prior to the start of reading compressed data by the reading unit, the compressed data stored in the storage unit is equally divided into a plurality of parts, and the frame numbers of intra frames around each division position are obtained. A binary tree search is performed when the frame number of the compressed data read request destination frame is sent, a frame number of an intra frame close to the frame number is determined, and the frame number is read from the intra frame of the determined frame number. A compressed data reproducing apparatus, comprising: a reproducing instruction unit for instructing the reading unit.
さらに、前記再生命令手段で取得したイントラフレームの各フレーム番号を含むファイルの位置を記憶しておくデータベースを備えることを特徴とする請求項1又は2記載の圧縮データ再生装置。3. The compressed data reproducing apparatus according to claim 1, further comprising a database for storing a position of a file including each frame number of the intra frame acquired by said reproducing instruction means. さらに、前記データベースに記憶してあるファイルを保存するメモリを備え、前記再生命令手段で割り出したフレーム番号を前記メモリに上書きすると共に、前記読み出し手段で圧縮データを読み出しているときに、前記再生命令手段で読み出し対象のイントラフレームのフレーム番号からファイルの位置を取得して、前記メモリのファイルを上書きすることを特徴とする請求項3記載の圧縮データ再生装置。Further, a memory for saving a file stored in the database is provided, and the frame number determined by the reproduction command means is overwritten on the memory. 4. The compressed data reproducing apparatus according to claim 3, wherein the means obtains the position of the file from the frame number of the intra frame to be read, and overwrites the file in the memory. 前記再生命令手段は、前記読み出し手段で圧縮データを読み出し終えた後に、前記メモリに記憶してあるファイルを前記データベースに戻すことを特徴とする請求項4記載の圧縮データ再生装置。5. The compressed data reproducing apparatus according to claim 4, wherein the reproducing command unit returns the file stored in the memory to the database after reading the compressed data by the reading unit. さらに、前記読み出し手段によって読み出された圧縮データを配信する通信制御手段を備えることを特徴とする請求項1から5のいずれか1項記載の圧縮データ再生装置。6. The compressed data reproducing apparatus according to claim 1, further comprising communication control means for distributing the compressed data read by said reading means. 請求項1から6のいずれか1項記載の圧縮データ再生装置に対して前記圧縮データの読み出し要求先のフレームのフレーム番号を送信し、当該フレーム番号の送信に応じて前記圧縮データ再生装置で読み出された圧縮データを表示することを特徴とする表示装置。A frame number of a frame to which the read request of the compressed data is requested is transmitted to the compressed data reproducing apparatus according to any one of claims 1 to 6, and the compressed data reproducing apparatus reads the frame number in response to the transmission of the frame number. A display device for displaying the output compressed data. さらに、前記圧縮データからの圧縮データを受信する通信制御手段と、前記通信制御手段によって受信された圧縮データを復号する復号手段と、前記復号手段で復号された圧縮データを表示する表示手段とを備えることを特徴とする請求項7記載の表示装置。Further, communication control means for receiving compressed data from the compressed data, decoding means for decoding the compressed data received by the communication control means, and display means for displaying the compressed data decoded by the decoding means The display device according to claim 7, further comprising: 請求項1から6のいずれか1項記載の圧縮データ再生装置と、請求項7又は8記載の表示装置とを備える圧縮データ再生システム。A compressed data reproduction system comprising: the compressed data reproduction device according to claim 1; and the display device according to claim 7. 複数のフレームを含む圧縮データを、命令されたイントラフレームから読み出す圧縮データ再生方法であって、
前記圧縮データの読み出しを開始するのに先立って、当該圧縮データを複数に等分割し、各分割位置周辺のイントラフレームのフレーム番号を取得し、前記取得したフレーム番号のいくつかを用いて分割位置間のイントラフレームのフレーム番号に対するそのMPEGファイル全体での位置を補う補間関数を作成しておき、前記圧縮データの読み出し要求先のフレームのフレーム番号が送られてきたときに、当該フレーム番号を前記補間関数に代入して当該フレーム番号に近い、イントラフレームのフレーム番号を割り出し、割り出したフレーム番号から読み出すことを特徴とする圧縮データ再生方法。
A compressed data reproduction method for reading compressed data including a plurality of frames from a commanded intra frame,
Prior to starting the reading of the compressed data, the compressed data is equally divided into a plurality of parts, the frame numbers of the intra frames around each division position are obtained, and the division position is obtained by using some of the obtained frame numbers. An interpolation function for compensating the position in the entire MPEG file with respect to the frame number of the intra frame between them is created, and when the frame number of the requested frame for reading the compressed data is sent, the frame number is A compressed data reproducing method characterized by determining a frame number of an intra frame that is close to the frame number by substituting the frame number into an interpolation function, and reading out the frame number from the determined frame number.
複数のフレームを含む圧縮データを、命令されたイントラフレームから読み出す圧縮データ再生方法であって、
前記圧縮データの読み出しを開始するのに先立って、当該圧縮データを複数に等分割し、各分割位置周辺のイントラフレームのフレーム番号を取得しておき、前記圧縮データの読み出し要求先のフレームのフレーム番号が送られてきたときに二分木検索を行って、当該フレーム番号に近い、イントラフレームのフレーム番号を割り出し、割り出したフレーム番号のイントラフレームから読み出すことを特徴とする圧縮データ再生方法。
A compressed data reproduction method for reading compressed data including a plurality of frames from a commanded intra frame,
Prior to starting the reading of the compressed data, the compressed data is equally divided into a plurality of parts, the frame numbers of the intra frames around each division position are obtained, A compressed data reproducing method characterized by performing a binary tree search when a number is sent, determining a frame number of an intra frame close to the frame number, and reading the frame number from the intra frame of the determined frame number.
前記イントラフレームの各フレーム番号およびそのファイル全体に対する位置情報を記憶しておくことを特徴とする請求項10又は11記載の圧縮データ再生方法。12. The compressed data reproducing method according to claim 10, wherein each frame number of the intra frame and position information for the entire file are stored. 前記割り出したフレーム番号を取得して前記ファイルを上書きし、前記圧縮データを読み出しているときに、読み出し対象の圧縮データのイントラフレームのフレーム番号およびファイル全体に対する位置を取得して、前記ファイルを上書きすることを特徴とする請求項12記載の圧縮データ再生方法。Obtain the calculated frame number and overwrite the file, and when reading the compressed data, obtain the frame number of the intra frame of the compressed data to be read and the position with respect to the entire file, and overwrite the file 13. The compressed data reproducing method according to claim 12, wherein: 前記読み出した圧縮データを配信することを特徴とする請求項10から13いずれか1項記載の圧縮データ再生方法。14. The compressed data reproducing method according to claim 10, wherein the read compressed data is distributed. 請求項10から14のいずれか1項記載の圧縮データ再生方法を実現する圧縮データ再生装置に対して前記圧縮データの読み出し要求先のフレームのフレーム番号を送信し、当該フレーム番号の送信に応じて前記圧縮データ再生装置で読み出された圧縮データを表示することを特徴とする表示方法。15. A frame number of a frame to which a read request of the compressed data is requested is transmitted to a compressed data reproducing apparatus for realizing the compressed data reproducing method according to any one of claims 10 to 14, and according to the transmission of the frame number. A display method comprising displaying compressed data read by the compressed data reproducing device. 前記圧縮データからの圧縮データを受信し、当該圧縮データを復号して表示することを特徴とする請求項15記載の表示方法。The display method according to claim 15, further comprising receiving compressed data from the compressed data, decoding the compressed data, and displaying the decoded data.
JP2002190155A 2002-06-28 2002-06-28 Apparatus, method and system for reproducing compressed data Pending JP2004040150A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002190155A JP2004040150A (en) 2002-06-28 2002-06-28 Apparatus, method and system for reproducing compressed data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002190155A JP2004040150A (en) 2002-06-28 2002-06-28 Apparatus, method and system for reproducing compressed data

Publications (1)

Publication Number Publication Date
JP2004040150A true JP2004040150A (en) 2004-02-05

Family

ID=31700150

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002190155A Pending JP2004040150A (en) 2002-06-28 2002-06-28 Apparatus, method and system for reproducing compressed data

Country Status (1)

Country Link
JP (1) JP2004040150A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100803862B1 (en) 2006-09-29 2008-02-14 주식회사 팬택앤큐리텔 Video streaming method on the vertical handoff over the differential network environment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100803862B1 (en) 2006-09-29 2008-02-14 주식회사 팬택앤큐리텔 Video streaming method on the vertical handoff over the differential network environment

Similar Documents

Publication Publication Date Title
JP3491365B2 (en) Encoded data decoding method and decoding device
US6480667B1 (en) Method of time shifting to simultaneously record and play a data stream
US6763178B1 (en) Method and apparatus for digital recording/reproduction of video with superimposed sub-information
US20070031110A1 (en) Method of recording and of replaying and video recording and replay systems
JP2007243907A (en) Recorder, recording method, program of recording method, recording program storage medium with the recording stored, player, playing method, playing program and storage medium with the playing program stored
JP3772023B2 (en) Image display device and image switching display method applied to the same
US7343088B2 (en) Disc apparatus, disc recording method, disc playback method, recording medium, and program
KR100223163B1 (en) Disc format for multiple speed reproduction and method for multiple speed reproduction of mpeg data thereby, and device thereof
US6377748B1 (en) Replay bit stream searching
US6453114B2 (en) Random picture decoding
JP2002112193A (en) Transfer control method for coded data and storage reproduction system
KR101172835B1 (en) Method and apparatus for providing a video signal
JP2004040150A (en) Apparatus, method and system for reproducing compressed data
KR20040042821A (en) Recording device and recording method, recording medium and program
US20030016946A1 (en) Audio/video recording apparatus and method of multiplexing audio/video data
JP4682267B1 (en) Progressive download playback method and playback program
JP2003091936A (en) Stream data storage device, program and method
JP2004192774A (en) Audio and visual data recording method, audio and visual data recording device, data recording medium, program and program recording medium
EP1005226A2 (en) MPEG reproducing apparatus and methods
JP3861045B2 (en) Video signal recording apparatus, video signal recording method, and video signal recording program
JP4312783B2 (en) AV data reproducing method, AV data reproducing apparatus, program, and recording medium
JPH0998382A (en) Device and method for reproducing dynamic image information
JP2001008168A (en) Picture recording/reproducing device, its method and computer readable storage medium
JP2001016546A (en) Moving image recording and reproducing device
JP2004295963A (en) Data recording and reproducing device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040426

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20040518

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20061219

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070129

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20070604