[go: up one dir, main page]

JP2009049855A - Content-playback apparatus - Google Patents

Content-playback apparatus Download PDF

Info

Publication number
JP2009049855A
JP2009049855A JP2007215580A JP2007215580A JP2009049855A JP 2009049855 A JP2009049855 A JP 2009049855A JP 2007215580 A JP2007215580 A JP 2007215580A JP 2007215580 A JP2007215580 A JP 2007215580A JP 2009049855 A JP2009049855 A JP 2009049855A
Authority
JP
Japan
Prior art keywords
image data
content
frame
image
final
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.)
Withdrawn
Application number
JP2007215580A
Other languages
Japanese (ja)
Inventor
Masaaki Aiba
雅彰 相場
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.)
Victor Company of Japan Ltd
Original Assignee
Victor Company of Japan 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 Victor Company of Japan Ltd filed Critical Victor Company of Japan Ltd
Priority to JP2007215580A priority Critical patent/JP2009049855A/en
Publication of JP2009049855A publication Critical patent/JP2009049855A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a content-playback apparatus capable of outputting a frame of a final GOP in a case where the end of a file is reached by fast forwarding. <P>SOLUTION: A content-playback apparatus includes a decision means 25 for deciding on the presence/absence of image data in a skip destination; a calculating means 12 for calculating the time stamp of a key image frame in a final group to which a final image frame belongs, based on a time stamp of the final image frame in contents and the number of frames in dividing a plurality of image frames into groups, when there are not image data; a temporal position acquiring means 24 for acquiring a temporal position of arbitrary image data, preceding the image data of the key image frame; a request means 10 for requesting acquisition of content data containing image data following the temporal position; and an acquisition means 25 for decoding image data after the key image frame of the final group, based on the time stamp of an image frame, corresponding to the image data received in response to the request and the time stamp of the key image frame. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、ネットワークを経由して、映像・音声などを再生するコンテンツ再生装置に関する。   The present invention relates to a content reproduction apparatus for reproducing video / audio and the like via a network.

現在、動画圧縮技術であるMPEG(Moving Picture Experts Group)が、DVD−Video、デジタルテレビ放送などで広く普及している。MPEGは、図9に示すように、I、B、P-Picture(ピクチャ)で構成されている。IピクチャはIntra符号化画像(フレーム内符号化画像)、PピクチャはPredictive符号化画像(フレーム間順方向予測符号化画像)、BピクチャはBidirectionally predictive符号化画像(双方向予測符号化画像)である。   Currently, MPEG (Moving Picture Experts Group), which is a moving image compression technique, is widely used in DVD-Video, digital television broadcasting, and the like. As shown in FIG. 9, MPEG is composed of I, B, and P-Picture (picture). The I picture is an Intra encoded image (intra-frame encoded image), the P picture is a Predictive encoded image (inter-frame forward predictive encoded image), and the B picture is a Bidirectionally predictive encoded image (bidirectional predictive encoded image). is there.

Pピクチャは、前の画面(Iピクチャ若しくはPピクチャ)を基にして作られており、Bピクチャは、前後の画面データ(Iピクチャ若しくはPピクチャ)を基にして作られている。そのため、PピクチャとBピクチャは、1画面だけで完結したフレームにはならない。そのため、何枚かのフレームを1つのまとまりにしたGOP(Group Of Picture)を単位としてランダムアクセスを実現させている。図9の例では1GOPは15フレームである。   The P picture is created based on the previous screen (I picture or P picture), and the B picture is created based on the previous and subsequent screen data (I picture or P picture). For this reason, the P picture and the B picture do not become a complete frame with only one screen. Therefore, random access is realized in units of GOP (Group Of Picture), which is a group of several frames. In the example of FIG. 9, 1 GOP is 15 frames.

また、PC(パーソナルコンピュータ)やネットワーク機器の高速化により、ネットワークを経由して、ネットワーク越しのサーバに記録されている映像・音声などを再生するネットワークメディアプレーヤ(ネットワークプレーヤ装置とも言い、下記の非特許文献1を参照)が出現した。また、様々なメーカーのサーバ、クライアントの相互接続性を実現するために、Digital Living Network Alliance(以下、DLNAとも言い、下記の非特許文献2を参照)で標準化が進められている。しかし、ネットワークを用いたファイルアクセスは、通常の(ローカルの)ファイルアクセスに比べて遅いため、早送り、早戻しなどのトリックプレイはローカルのビデオ再生とは異なる。DLNAでは、早送り/早戻しを実現する方法の1つとして、図10に示すようなスキップ処理(早送り処理、早戻し処理)を提示している。
http://www.regza.jp/product/tv/z2000/index.html http://itpro.nikkeibp.co.jp/NNW/index.html,「はじめてのDLNA」日経ネットワーク2006年3月号
In addition, network media players (also referred to as network player devices) that play back video / audio recorded on a server over a network via a network due to the speedup of PCs (personal computers) and network devices are also described below. (See Patent Document 1). Also, in order to realize interoperability between servers and clients of various manufacturers, standardization is being promoted by Digital Living Network Alliance (hereinafter also referred to as DLNA, see Non-Patent Document 2 below). However, since file access using the network is slower than normal (local) file access, trick play such as fast forward and fast reverse is different from local video playback. DLNA presents skip processing (fast-forward processing and fast-reverse processing) as shown in FIG. 10 as one method for realizing fast-forward / fast-reverse.
http://www.regza.jp/product/tv/z2000/index.html http://itpro.nikkeibp.co.jp/NNW/index.html, “First DLNA” Nikkei Network March 2006 issue

しかし、スキップ処理(早送り処理)による早送りでファイルの終端まで達した場合、必ずしも終端近傍のフレームを出力できるとは限らない。例えば、図11に示すように、シーク位置がファイル終端を超えてしまった場合は、最終フレームから遠く離れたフレームが最後に表示されることとなる。この現象は、例えば60倍速、100倍速といった高速の早送りの際に特に顕著に表れる(スキップするサイズが大きいため)。これを解決するためには、最終GOPのシーク位置(先頭からのバイト数)を知る必要があるが、現在、広く使用されているMPEG2規格のビデオデータは可変ビットレートをサポートしているため、ビットレートから正確な最終GOPのシーク位置を求めることができない。   However, when the end of the file is reached by fast-forwarding by skip processing (fast-forward processing), a frame near the end cannot always be output. For example, as shown in FIG. 11, when the seek position exceeds the end of the file, a frame far from the last frame is displayed last. This phenomenon appears particularly remarkably during high-speed fast feed such as 60 times speed and 100 times speed (because the skip size is large). In order to solve this, it is necessary to know the seek position (number of bytes from the beginning) of the final GOP. However, currently widely used video data of the MPEG2 standard supports a variable bit rate. An accurate seek position of the final GOP cannot be obtained from the bit rate.

本発明は、上記課題を解決するためのものであり、早送りでファイルの終端まで達した場合に、最終GOP(上述した最終グループの一例)のフレームを出力することができるコンテンツ再生装置を提供することを目的とする。   The present invention is to solve the above-described problems, and provides a content playback apparatus capable of outputting a frame of the final GOP (an example of the final group described above) when the end of a file is reached by fast-forwarding. For the purpose.

上記目的を達成するために、本発明によれば、複数の画像フレームを構成する画像データと音声データとを含むコンテンツデータであって、外部又は内部の記憶手段から取得された前記コンテンツデータをデコード手段によりデコードしコンテンツを再生している際に、所定の画像データ量ごとにスキップさせて前記コンテンツをスキップ再生させるスキップ再生指示を受け付けることによりスキップ再生を行うコンテンツ再生装置において、受け付けた前記スキップ再生指示に基づいて、スキップ先に前記画像データが存在するか否かを判断する判断手段と、前記スキップ先に前記画像データが存在しないと判断された場合、前記コンテンツの時系列的に最終の画像フレームの時間情報を示すタイムスタンプと、複数の前記画像フレームを所定のフレーム数で複数のグループに分けた際の前記所定のフレーム数とに基づいて、前記コンテンツの最終の前記画像フレームが属する前記グループである最終のグループの基礎となるフレーム内符号化によって得られるキー画像フレームの前記タイムスタンプを求める算出手段と、前記最終のグループの前記キー画像フレームを構成する画像データより時系列的に前の任意の画像データの、前記コンテンツの画像データ全体の時間配列における時間的位置を所定の演算又はプログラムによって求める時間位置取得手段と、求められた前記時間的位置よりも時系列的に後の画像データを含む前記コンテンツデータを前記外部又は内部の記憶手段から取得するための要求を行う要求手段と、前記要求により受信された前記画像データに対応する前記画像フレームの前記タイムスタンプと、前記最終のグループの前記キー画像フレームの前記タイムスタンプとに基づいて、前記最終のグループの前記キー画像フレームを含むそれ以降の画像フレームに対応する画像データを取得して前記デコード手段にデコードさせる取得手段とを、備えることを特徴とするコンテンツ再生装置が提供される。この構成により、早送りでファイルの終端まで達した場合に、最終GOP(上述した最終グループの一例)のフレームを出力することができる。なお、上述するグループは、例えばGOPに相当する。また、キー画像フレームは、例えば後述するIピクチャフレームに相当する。また、所定の画像データ量は、例えば後述するスキップバイト数に相当する。また、所定の演算とは、例えば後述する式(2)を用いてseek_posを求める操作を言い、所定のプログラムとは、例えば式(2)によってseek_posを求めるためのアルゴリズムを言う。   To achieve the above object, according to the present invention, content data including image data and audio data constituting a plurality of image frames, the content data acquired from an external or internal storage means is decoded. In the content playback apparatus that performs skip playback by receiving a skip playback instruction for skipping the content and skipping the content every predetermined amount of image data when the content is decoded and played back by the means, the skip playback received Based on the instruction, when it is determined that the image data does not exist at the skip destination, and a determination unit that determines whether the image data exists at the skip destination, the final image in time series of the content A time stamp indicating frame time information and a plurality of the image frames Based on the predetermined number of frames when divided into a plurality of groups with a fixed number of frames, obtained by intra-frame coding that is the basis of the final group to which the final image frame of the content belongs. Calculating means for obtaining the time stamp of the key image frame to be obtained, and time arrangement of the entire image data of the content of arbitrary image data time-sequentially before the image data constituting the key image frame of the final group Time position obtaining means for obtaining a temporal position in the image by a predetermined calculation or program, and obtaining the content data including the image data time-sequentially after the obtained time position from the external or internal storage means Requesting means for making a request to perform the request, and corresponding to the image data received by the request Obtain image data corresponding to subsequent image frames including the key image frame of the final group based on the time stamp of the image frame and the time stamp of the key image frame of the final group. Then, a content reproducing apparatus is provided, comprising: an acquisition unit that causes the decoding unit to decode. With this configuration, the frame of the last GOP (an example of the last group described above) can be output when the end of the file is reached by fast-forwarding. Note that the above-described group corresponds to, for example, a GOP. The key image frame corresponds to, for example, an I picture frame described later. The predetermined image data amount corresponds to, for example, the number of skip bytes described later. The predetermined calculation refers to an operation for obtaining seek_pos using, for example, an expression (2) described later, and the predetermined program refers to an algorithm for obtaining seek_pos using, for example, expression (2).

本発明のコンテンツ再生装置は、上記構成を有し、早送りでファイルの終端まで達した場合に、最終GOP(上述した最終グループの一例)のフレームを出力することができる。   The content reproduction apparatus of the present invention has the above-described configuration, and can output a frame of the last GOP (an example of the above-mentioned final group) when the end of the file is reached by fast-forwarding.

以下、本発明のネットワークプレーヤ装置(コンテンツ再生装置に相当)について説明する。図1は、早送りでMPEGファイル(MPEGデータから構成される)の終端に達した場合に、最終GOPのフレームを出力することができるネットワークプレーヤ装置(以下、単にプレーヤとも言う)の構成の一例を示す構成図である。図1に示すように、プレーヤ100は、サーバ101と同一の通信ネットワーク102に接続されている。本発明の実施の形態におけるサーバ101は、MPEG2−PSフォーマットのビデオファイル(以下、MPEGファイルとも言う)を有しており、プレーヤ100からのリクエスト(要求)に応じて、プレーヤ100へMPEGファイル送信する機能を有している。また、サーバ101は、バイトシーク(データの先頭から任意の位置をシークする)機能を有する。   Hereinafter, a network player device (corresponding to a content reproduction device) of the present invention will be described. FIG. 1 shows an example of the configuration of a network player device (hereinafter also simply referred to as a player) that can output the frame of the final GOP when the end of an MPEG file (consisting of MPEG data) is reached by fast-forwarding. FIG. As shown in FIG. 1, the player 100 is connected to the same communication network 102 as the server 101. The server 101 in the embodiment of the present invention has an MPEG2-PS format video file (hereinafter also referred to as an MPEG file), and transmits an MPEG file to the player 100 in response to a request (request) from the player 100. It has a function to do. The server 101 also has a byte seek function (seeks an arbitrary position from the beginning of data).

プレーヤ100は、サーバ101が有するMPEGファイルを受信し、再生することができ、また、早送り、早戻し機能を有する。本発明の実施の形態では、プレーヤ100は、サーバ101が有するMPEGファイルと、そのファイルサイズとをあらかじめ知っているものとする。   The player 100 can receive and play back the MPEG file that the server 101 has, and has fast forward and fast reverse functions. In the embodiment of the present invention, it is assumed that the player 100 knows in advance the MPEG file that the server 101 has and its file size.

ここで、本発明の実施の形態で用いるMPEG2−PSのシステム構造について簡単に説明する。MPEG2−PSデータ(MPEGデータ)は、複数の個別ストリーム(Video(ビデオ)、Audio(オーディオ)など)が適当な長さにパケット化され、多重化されている。通常、複数(若しくは1つ)のパケットを束ねたパックと呼ばれる単位で扱われる。図2にMPEG2−PSデータの構造を示す。図3に示すように、各パケットはヘッダ部(パケット開始コードからその他までの部分)とデータ部(データの部分)からなる。   Here, a system structure of MPEG2-PS used in the embodiment of the present invention will be briefly described. In MPEG2-PS data (MPEG data), a plurality of individual streams (Video (video), Audio (audio), etc.) are packetized to an appropriate length and multiplexed. Usually, it is handled in a unit called a pack in which a plurality of (or one) packets are bundled. FIG. 2 shows the structure of MPEG2-PS data. As shown in FIG. 3, each packet includes a header portion (portion from the packet start code to the rest) and a data portion (data portion).

パケット開始コードは、パケットに割り振られたコード番号などである。ストリームIDは、ビデオデータ、オーディオデータのストリームIDであって、MPEG規格で規定されている。パケット長はパケットの長さを示すものであり、フラグ類はパケットの種類などを示すものであり、ヘッダ長はヘッダの長さを示すものであり、タイムスタンプは、AV同期のための時間情報である。   The packet start code is a code number assigned to the packet. The stream ID is a stream ID of video data and audio data, and is defined by the MPEG standard. The packet length indicates the packet length, the flags indicate the packet type, the header length indicates the header length, and the time stamp indicates time information for AV synchronization. It is.

また、図2に示すパックヘッダにはSCR(System Clock Reference)が書き込まれている。SCRは、デコーダがAV同期を行う際に、デコーダのクロックを設定するための値である。すなわち、デコーダはパックヘッダ内のSCRと、ビデオパケット、オーディオパケットのタイムスタンプとを用いてAV同期を実現する。また、不図示のシステムヘッダには、ビットレートなどが書き込まれている。以上が、MPEG2−PSのシステム構造の概要である。   Also, an SCR (System Clock Reference) is written in the pack header shown in FIG. The SCR is a value for setting the decoder clock when the decoder performs AV synchronization. That is, the decoder realizes AV synchronization using the SCR in the pack header and the time stamps of the video packet and the audio packet. A bit rate and the like are written in a system header (not shown). The above is the outline of the MPEG2-PS system structure.

以下、プレーヤ100の構成について図1を用いて説明する。まず、送受信手段10について説明する。送受信手段10は、受信したデータ量をカウントする受信データ量カウンタを保持している。そして、送受信手段10は、後述する制御手段25から制御命令を受けて、サーバ101にMPEGファイル(MPEGデータ)を要求し、MPEGデータを受信し、受信したMPEGデータをバッファ手段11に書き込む。ここで、送受信手段10が受信する制御命令は、受信開始命令と、受信停止命令、カウンタリセット命令の3種類の命令である。   Hereinafter, the configuration of the player 100 will be described with reference to FIG. First, the transmission / reception means 10 will be described. The transmission / reception means 10 holds a received data amount counter that counts the received data amount. The transmission / reception means 10 receives a control command from the control means 25 described later, requests the server 101 for an MPEG file (MPEG data), receives the MPEG data, and writes the received MPEG data in the buffer means 11. Here, the control commands received by the transmission / reception means 10 are three types of commands: a reception start command, a reception stop command, and a counter reset command.

受信開始命令を受けた場合は、サーバ101からMPEGデータを受信し、受信したMPEGデータをバッファ手段11に書き込む。また、受信したデータ量だけ、受信データ量カウンタをインクリメントする。また、受信停止命令を受けた場合は受信を停止する。また、カウンタリセット命令を受けた場合は、受信データ量カウンタをゼロクリアする。   When a reception start command is received, MPEG data is received from the server 101 and the received MPEG data is written in the buffer means 11. Further, the received data amount counter is incremented by the received data amount. If a reception stop command is received, reception is stopped. When a counter reset command is received, the received data amount counter is cleared to zero.

バッファ手段11は、送受信手段10がサーバ101から受信したMPEGデータをバッファリングし、Demux手段12へ出力する。次に、ビットレート管理手段20、GOP管理手段21、時間情報管理手段22、フレームレート管理手段23について説明する。ビットレート管理手段20は、上述したDemux手段12から入力されるビットレート情報を記憶するものである。GOP管理手段21は、後述するビデオデコード手段15から入力されるGOP内のピクチャ枚数を記憶するものである。   The buffer unit 11 buffers the MPEG data received from the server 101 by the transmission / reception unit 10 and outputs it to the Demux unit 12. Next, the bit rate management means 20, GOP management means 21, time information management means 22, and frame rate management means 23 will be described. The bit rate management means 20 stores the bit rate information input from the Demux means 12 described above. The GOP management means 21 stores the number of pictures in the GOP input from the video decoding means 15 described later.

時間情報管理手段22は、ビデオデコード手段15から入力される時間情報、すなわち、ビデオデコード手段15が処理したピクチャのタイムスタンプを記憶するものである。フレームレート管理手段は、ビデオデコード手段15から入力されるフレームレート情報を記憶するものである。   The time information management unit 22 stores time information input from the video decoding unit 15, that is, a time stamp of a picture processed by the video decoding unit 15. The frame rate management means stores the frame rate information input from the video decoding means 15.

次に、Demux手段12について説明する。Demux手段12は後述する制御手段25からの制御命令を受けて、バッファ手段11のMPEGデータをビデオパケット、オーディオパケット、不図示のシステム情報(システムに関する情報)、ビットレート情報に分離し、切り替えスイッチ(SW)26を介してビデオパケットをビデオバッファ手段14へ出力し、オーディオパケットをオーディオバッファ手段17へ出力し、不図示のシステム情報をシステムデコード手段13へ出力する。また、Demux手段12はビットレート情報をビットレート管理手段20へ出力する。   Next, the Demux means 12 will be described. The Demux unit 12 receives a control command from the control unit 25 to be described later, and separates the MPEG data in the buffer unit 11 into a video packet, an audio packet, unillustrated system information (system information) and bit rate information, and a changeover switch. The video packet is output to the video buffer means 14 via the (SW) 26, the audio packet is output to the audio buffer means 17, and system information (not shown) is output to the system decoding means 13. The Demux unit 12 outputs the bit rate information to the bit rate management unit 20.

ここで、制御手段25からDemux手段12への制御命令について説明する。制御手段25がDemux手段12に対して出力する制御命令は、通常Demuxと、タイムスタンプ指定のDemuxがある。Demux手段12は、通常Demux命令を受けた場合は、バッファ手段11のMPEGデータを上述のとおり分離する。一方、タイムスタンプ指定Demux命令を受けた場合は、指定されたタイムスタンプ以降のデータのみ出力する。   Here, a control command from the control means 25 to the Demux means 12 will be described. Control commands output from the control unit 25 to the Demux unit 12 include a normal Demux and a Demux with a time stamp designation. When receiving the normal Demux command, the Demux unit 12 separates the MPEG data in the buffer unit 11 as described above. On the other hand, when a time stamp designation Demux command is received, only data after the designated time stamp is output.

次に、ビデオデコード手段15について説明する。ビデオデコード手段15は、制御手段25からのデコード開始命令、キャプチャ命令、デコード停止命令を受けて動作し、ビデオバッファ手段14に書き込まれたビデオデータをデコードし、ビデオ出力手段16へ出力する。また、デコード中にGOP情報を検出した場合は、それをGOP情報管理手段21に出力し、タイムスタンプを検出した場合は、それを時間情報管理手段22に出力し、フレームレート情報を検出した場合は、フレームレート管理手段23にそれぞれ出力する。また、キャプチャ命令を受けた場合は、デコード開始から1枚のピクチャのデコード完了の時点で、制御手段25にキャプチャ完了を通知する。   Next, the video decoding means 15 will be described. The video decoding unit 15 operates in response to a decoding start command, a capture command, and a decoding stop command from the control unit 25, decodes the video data written in the video buffer unit 14, and outputs it to the video output unit 16. When GOP information is detected during decoding, it is output to the GOP information management means 21. When a time stamp is detected, it is output to the time information management means 22 and frame rate information is detected. Are output to the frame rate management means 23, respectively. When a capture command is received, the control means 25 is notified of the capture completion at the time when the decoding of one picture is completed from the start of decoding.

次に、オーディオデコード手段18について説明する。オーディオデコード手段18は、制御手段25から制御命令を受けて動作する。オーディオデコード手段18が、受信する制御命令は、デコード開始命令とデコード停止命令の2種類である。デコード開始命令を受信した場合は、オーディオバッファ手段17に書き込まれたオーディオデータをデコードし、オーディオ出力手段19へ出力する。一方、デコード停止命令を受信すると、デコード処理を停止する。   Next, the audio decoding means 18 will be described. The audio decoding unit 18 operates in response to a control command from the control unit 25. The audio decoding means 18 receives two types of control commands: a decode start command and a decode stop command. When the decoding start command is received, the audio data written in the audio buffer means 17 is decoded and output to the audio output means 19. On the other hand, when the decoding stop instruction is received, the decoding process is stopped.

ビデオ出力手段16は、ビデオデコード手段15によってデコードされた画像を不図示の表示手段に表示する。また、オーディオ出力手段19は、オーディオデコード手段18によってデコードされた音声データを出力する。   The video output means 16 displays the image decoded by the video decoding means 15 on a display means (not shown). The audio output means 19 outputs the audio data decoded by the audio decoding means 18.

最終GOPシーク位置計算手段24は、ビットレート管理手段20に記憶されているビットレートと、GOP情報管理手段21に記憶されているGOPのピクチャ枚数と、時間情報管理手段22に記憶されているタイムスタンプとから最終GOPのシーク位置を求め、制御手段25へ出力する。ここで、シーク位置の情報は、MPEGファイルの先頭からのバイト数を表す。制御手段25は、ユーザからのコマンドを受けて、プレーヤ100の各モジュール(各手段)を制御し、ユーザ操作を実現する。制御手段25の動作に関しては、後述するプレーヤ100の動作で説明する。以上が、本発明の実施の形態に係るプレーヤの構成の一例の説明である。   The final GOP seek position calculation means 24 includes the bit rate stored in the bit rate management means 20, the number of GOP pictures stored in the GOP information management means 21, and the time stored in the time information management means 22. The seek position of the final GOP is obtained from the stamp and output to the control means 25. Here, the seek position information represents the number of bytes from the beginning of the MPEG file. The control means 25 receives commands from the user, controls each module (each means) of the player 100, and realizes user operations. The operation of the control means 25 will be described in the operation of the player 100 described later. The above is an example of the configuration of the player according to the embodiment of the present invention.

次に、本発明の実施の形態に係るプレーヤの動作について図4を用いて説明する。プレーヤ100を起動すると、制御手段25は、ユーザからのコマンド(ユーザ操作)を待ち、ユーザ操作が何であるか判断する(ステップS401)。ユーザから再生コマンドを受け付けた場合は、再生ステップS402へ移行し、早送りコマンドを受けた場合は早送りキャプチャステップS404へ移行し、早戻しコマンドを受けた場合は早戻しキャプチャステップS406へ移行し、終了コマンドを受けた場合は終了となる。   Next, the operation of the player according to the embodiment of the present invention will be described with reference to FIG. When the player 100 is activated, the control unit 25 waits for a command (user operation) from the user and determines what the user operation is (step S401). If a playback command is received from the user, the process proceeds to playback step S402. If a fast forward command is received, the process proceeds to fast forward capture step S404. If a fast reverse command is received, the process proceeds to fast reverse capture step S406. If a command is received, the process ends.

まず、再生コマンドを受け付けた場合について説明する。ステップS402では、サーバ101からMPEGデータを受信し、デコードし、出力する。ステップS403では、再生後、ユーザ操作が何であるかを判断し(ステップS403)、停止コマンドの場合には停止ステップS408へ移行し、終了コマンドの場合には終了する。ユーザ操作がなかった場合は、再生ステップS402へ戻り、再生処理を継続する。早送りコマンドの場合には早送りキャプチャステップS404へ移行し、早戻しコマンドの場合には早戻しキャプチャステップS406へ移行する。   First, a case where a reproduction command is received will be described. In step S402, MPEG data is received from the server 101, decoded, and output. In step S403, it is determined what the user operation is after reproduction (step S403). If it is a stop command, the process proceeds to stop step S408, and if it is an end command, the process ends. When there is no user operation, the process returns to the reproduction step S402 and the reproduction process is continued. If it is a fast-forward command, the process proceeds to fast-forward capture step S404. If it is a fast-return command, the process proceeds to fast-reverse capture step S406.

また、ステップS401において、ユーザからの操作が早送りコマンドであった場合は、早送りキャプチャステップS404へ移行し、その後、ステップS405において停止コマンドがあった場合は、停止ステップS408へ移行する。一方、ステップS401において、ユーザからの操作が早戻しコマンドであった場合は、早戻しキャプチャステップS406へ移行し、その後、ステップS407において停止コマンドがあった場合は、停止ステップS408へ移行する。停止ステップS408では、ビデオデコード手段15、オーディオデコード手段18に対して停止命令を発行し、送受信手段10に受信停止命令を発行し、送受信手段10の受信データ量カウンタをゼロクリアし、ステップS401へ戻り、再びユーザ操作を待つ。   In step S401, if the operation from the user is a fast-forward command, the process proceeds to fast-forward capture step S404. If there is a stop command in step S405, the process proceeds to stop step S408. On the other hand, if the operation from the user is a fast reverse command in step S401, the process proceeds to fast reverse capture step S406, and if there is a stop command in step S407, the process proceeds to stop step S408. In stop step S408, a stop command is issued to the video decoding unit 15 and the audio decoding unit 18, a reception stop command is issued to the transmission / reception unit 10, the reception data amount counter of the transmission / reception unit 10 is cleared to zero, and the process returns to step S401. Wait for user operation again.

ここで、再生ステップS402の詳細について図5を用いて説明する。図5は再生ステップS402の動作の一例を示すフローチャートである。受信ステップS501において、送受信手段10は、MPEGデータを受信し、バッファ手段11に書き込む。DemuxステップS502において、Demux手段12は、バッファ手段11のMPEGデータを分離する。ビデオデコードステップS503において、ビデオデコード手段15は、分離されたビデオデータをデコードし、ビデオ出力手段16に出力する。オーディオデコードステップS504において、オーディオデコード手段18は、オーディオバッファ手段17に書き込まれたオーディオデータをデコードし、オーディオ出力手段19に出力する。   Details of the reproduction step S402 will be described with reference to FIG. FIG. 5 is a flowchart showing an example of the operation of the reproduction step S402. In the reception step S501, the transmission / reception means 10 receives MPEG data and writes it in the buffer means 11. In the Demux step S502, the Demux means 12 separates the MPEG data in the buffer means 11. In the video decoding step S503, the video decoding unit 15 decodes the separated video data and outputs the decoded video data to the video output unit 16. In the audio decoding step S504, the audio decoding means 18 decodes the audio data written in the audio buffer means 17 and outputs it to the audio output means 19.

ここで、ビデオデコードステップS503の詳細について図6を用いて説明する。デコードステップS601において、ビデオデコード手段15は、ビデオバッファ手段14に書き込まれたビデオデータをデコードし、ビデオ出力手段16へ出力する。ステップS602において、ビデオデコード手段15は、GOP情報の有無を判断し、GOP情報があった場合は、GOP情報管理ステップS603において、GOP管理手段21にGOP情報を記憶する。   Here, the details of the video decoding step S503 will be described with reference to FIG. In the decoding step S 601, the video decoding unit 15 decodes the video data written in the video buffer unit 14 and outputs it to the video output unit 16. In step S602, the video decoding unit 15 determines the presence or absence of GOP information. If GOP information is present, the GOP information is stored in the GOP management unit 21 in GOP information management step S603.

一方、GOP情報がない場合、ステップS604において、ビデオデコード手段15は、タイムスタンプの有無を判断し、タイムスタンプがあった場合には、タイムスタンプ管理ステップS605において、時間情報管理手段22に記憶する。一方、タイムスタンプがない場合、ステップS606において、ビデオデコード手段15は、フレームレート情報の有無を判断し、フレームレート情報があった場合には、フレームレート管理ステップS607において、フレームレート管理手段23に記憶する。一方、フレームレート情報がない場合には終了する。以上の処理を行うことで、サーバ101から受信したMPEGデータを再生し、またGOP情報、時間情報、フレームレート情報を得ることができる。   On the other hand, if there is no GOP information, in step S604, the video decoding unit 15 determines whether or not there is a time stamp. If there is a time stamp, the video decoding unit 15 stores it in the time information management unit 22 in time stamp management step S605. . On the other hand, if there is no time stamp, in step S606, the video decoding unit 15 determines the presence / absence of frame rate information. If there is frame rate information, the video decoding unit 15 sends the frame rate management unit 23 to the frame rate management unit 23 in frame rate management step S607. Remember. On the other hand, if there is no frame rate information, the process ends. By performing the above processing, MPEG data received from the server 101 can be reproduced, and GOP information, time information, and frame rate information can be obtained.

次に、早戻し処理について説明する。早戻し処理は、図4に示すように、早戻しキャプチャ処理(ステップS406、S407)を繰り返し行うことで実現される。早戻しキャプチャステップS406では、サーバ101から受信するMPEGデータのシーク位置を決定し、そのシーク位置からMPEGデータをサーバ101に要求する。そして、受信データを分離(Demux)し、デコードし、画像をキャプチャ(取得)する。詳細については後述する。   Next, the fast reverse process will be described. As shown in FIG. 4, the fast reverse process is realized by repeatedly performing the fast reverse capture process (steps S406 and S407). In the fast reverse capture step S406, the seek position of the MPEG data received from the server 101 is determined, and the MPEG data is requested to the server 101 from the seek position. Then, the received data is separated (Demux), decoded, and an image is captured (acquired). Details will be described later.

ステップS407では、ユーザ操作が何かを判断し、ユーザ操作がなかった場合は、早戻しキャプチャステップS406へ戻り、処理を継続する。ユーザから再生コマンドがあった場合は、再生ステップS402へ移行し、ユーザから停止コマンドがあった場合は、停止ステップS408へ移行する。   In step S407, it is determined what the user operation is, and if there is no user operation, the process returns to the fast reverse capture step S406 to continue the process. If there is a reproduction command from the user, the process proceeds to reproduction step S402, and if there is a stop command from the user, the process proceeds to stop step S408.

ここで、早戻しキャプチャステップS406について図7を用いて説明する。シーク位置決定ステップS701では、送受信手段10の受信データ量カウンタの値から、任意のスキップバイト数を引いた値をシーク位置とする。このスキップバイト数を小さくすれば、低速早戻しとなり、大きくすれば高速早戻しとなる。要求ステップS702では、制御手段25は、送受信手段10の受信データ量カウンタに、ステップS701で求めたシーク位置をセットし、送受信手段10は、サーバ101に対して、シーク位置からデータを要求する。   Here, the fast reverse capture step S406 will be described with reference to FIG. In the seek position determination step S701, a value obtained by subtracting an arbitrary number of skip bytes from the value of the reception data amount counter of the transmission / reception means 10 is set as the seek position. If the number of skip bytes is reduced, low-speed rewind is performed, and if it is increased, high-speed rewind is performed. In request step S702, the control unit 25 sets the seek position obtained in step S701 in the received data amount counter of the transmission / reception unit 10, and the transmission / reception unit 10 requests the server 101 for data from the seek position.

受信ステップS703では、送受信手段10は、サーバ101からMPEGデータを受信し、受信したデータをバッファ手段11に書き込む。DemuxステップS704では、Demux手段12が、バッファ手段11に書き込まれたMPEGデータからビデオデータを分離し、ビデオバッファ手段14に書き込む。この際、ビデオデータ以外は破棄する。ビデオデコードステップS705では、ビデオデコード手段15は、再生処理で説明した、図5のビデオデコードステップS503と同様の処理を行う。   In the reception step S 703, the transmission / reception unit 10 receives MPEG data from the server 101 and writes the received data in the buffer unit 11. In the Demux step S 704, the Demux unit 12 separates the video data from the MPEG data written in the buffer unit 11 and writes the video data in the video buffer unit 14. At this time, other than the video data is discarded. In the video decoding step S705, the video decoding means 15 performs the same process as the video decoding step S503 in FIG.

ステップS706では、ビデオデコードステップS705で、画像が1枚出力されたかどうかを判断し、出力されていない場合は受信ステップS703へ戻り、処理を継続する。画像が1枚出力された場合は、早戻しキャプチャステップS406の処理は終了となる。以上が早戻しキャプチャステップS406の詳細である。これにより、スキップとキャプチャを繰り返し、早戻し処理の動作を実現する。   In step S706, it is determined whether or not one image has been output in video decoding step S705. If not, the process returns to reception step S703 to continue the processing. When one image is output, the process of fast reverse capture step S406 ends. The above is the details of the fast reverse capture step S406. Thereby, skip and capture are repeated, and the operation of fast reverse processing is realized.

次に、早送り処理について説明する。早送り処理は、早戻し処理と同様に、図4のように早送りキャプチャ処理(ステップS404、S405)を繰り返し行うことで実現する。早送りキャプチャステップS404では、サーバ101から受信するMPEGデータのシーク位置を決定し、データを受信し、画像をキャプチャする。詳細は後述する。ステップS405では、ユーザ操作が何かを判断し、ユーザ操作がなかった場合は、早送りキャプチャステップS404へ戻り、処理を継続する。ユーザから再生コマンドがあった場合は、再生ステップS402へ移行し、ユーザから停止コマンドがあった場合は、停止ステップS408へ移行する。   Next, the fast-forward process will be described. Similar to the fast reverse process, the fast forward process is realized by repeatedly performing the fast forward capture process (steps S404 and S405) as shown in FIG. In the fast forward capture step S404, the seek position of the MPEG data received from the server 101 is determined, the data is received, and the image is captured. Details will be described later. In step S405, it is determined what the user operation is, and if there is no user operation, the process returns to the fast-forward capture step S404 and the process is continued. If there is a reproduction command from the user, the process proceeds to reproduction step S402, and if there is a stop command from the user, the process proceeds to stop step S408.

ここで、早送りキャプチャステップS404について図8を用いて説明する。ここで、図8の手順は、キャプチャのみを目的としたステップS801からS807の手順と、最終GOPのフレームをキャプチャすることを目的とした手順の2つに分けられる。キャプチャのみの場合は、ステップS801からステップS807を実行することで実現される。一方、最終GOPのフレームをキャプチャする場合は、ステップS809からステップS816を実行し、最終GOPのシーク位置と、最終Iピクチャのタイムスタンプとを求め、その後ステップS803からステップS807を実行し、最終Iピクチャフレームをキャプチャすることで実現できる。以下に詳細を述べる。   Here, the fast-forward capture step S404 will be described with reference to FIG. Here, the procedure of FIG. 8 can be divided into two procedures: steps S801 to S807 for the purpose of capturing only and procedures for capturing the frame of the final GOP. The case of only capture is realized by executing steps S801 to S807. On the other hand, when capturing the frame of the last GOP, steps S809 to S816 are executed, the seek position of the final GOP and the time stamp of the final I picture are obtained, and then the steps I803 to S807 are executed. This can be achieved by capturing a picture frame. Details are described below.

シーク位置決定ステップS801では、制御手段25が、MPEGデータ(コンテンツ)が再生されている際に、ユーザから早送り指示(スキップ再生指示)を受け付けると、送受信手段10の受信データ量カウンタの値から、任意のスキップバイト数(所定の画像データ量)を加えた値をシーク位置とする。スキップバイト数を小さくすれば低速早送りとなり、大きくすれば高速早送りとなる。   In seek position determination step S801, when the control means 25 receives a fast-forward instruction (skip reproduction instruction) from the user while MPEG data (content) is being reproduced, the value of the received data amount counter of the transmission / reception means 10 is calculated. A value obtained by adding an arbitrary number of skip bytes (predetermined amount of image data) is set as a seek position. If the number of skip bytes is reduced, low-speed fast-forwarding is performed, and if it is increased, high-speed fast-forwarding is performed.

シーク位置判定ステップS802では、制御手段25(上述する判断手段)が、シーク位置決定ステップS801で求めたシーク位置がMPEGファイルサイズの範囲内か否かを判定する。すなわち、早送り指示に基づいて、スキップ先にMPEGデータが存在するか否かを判断する。範囲内であれば、要求ステップS803へ移行し、範囲外、すなわちMPEGファイルサイズよりも大きい値が求められた場合であれば、最終Iピクチャを出力するために、最終フレームシーク位置決定ステップS809へ移行する。   In seek position determination step S802, the control means 25 (determining means described above) determines whether or not the seek position obtained in seek position determination step S801 is within the MPEG file size range. That is, based on the fast-forward instruction, it is determined whether or not MPEG data exists at the skip destination. If it is within the range, the process proceeds to request step S803. If it is out of the range, that is, when a value larger than the MPEG file size is obtained, the process proceeds to final frame seek position determination step S809 to output the final I picture. Transition.

要求ステップS803では、送受信手段10が、ステップS801若しくは後述する最終Iピクチャシーク位置決定ステップS816で求めたシーク位置で、サーバ101にMPEGデータを要求する。受信ステップS804では、送受信手段10が、サーバ101からMPEGデータを受信し、受信したMPEGデータをバッファ手段11に書き込む。DemuxステップS805では、Demux手段12が、バッファ手段11に書き込まれたMPEGデータからビデオデータを分離し、ビデオバッファ手段14に書き込む。この際、ビデオデータ以外は破棄する。   In request step S803, the transmission / reception means 10 requests the server 101 for MPEG data at the seek position obtained in step S801 or the final I picture seek position determination step S816 described later. In the reception step S804, the transmission / reception means 10 receives MPEG data from the server 101 and writes the received MPEG data in the buffer means 11. In the Demux step S 805, the Demux unit 12 separates video data from the MPEG data written in the buffer unit 11 and writes the video data in the video buffer unit 14. At this time, other than the video data is discarded.

ビデオデコードステップS806では、ビデオデコード手段15は、再生処理で説明した、図5のビデオデコードステップS503と同様の処理を行う。ステップS807では、制御手段25又はビデオデコード手段15が、ビデオデコードステップS806で、画像が1枚出力されたかどうかを判断し、出力されていない場合はステップS808へ移行し、画像が出力された場合は、早送りキャプチャステップは終了となる。ステップS808では、送受信手段10が、受信終了か否かを判定する。すなわち、MPEGファイルの終端まで受信したかどうかを判定する。   In the video decoding step S806, the video decoding means 15 performs the same process as the video decoding step S503 in FIG. In step S807, the control unit 25 or the video decoding unit 15 determines whether one image is output in the video decoding step S806. If not, the process proceeds to step S808, and the image is output. The fast-forward capture step ends. In step S808, the transmission / reception means 10 determines whether or not reception is completed. That is, it is determined whether the end of the MPEG file has been received.

受信終了でない場合は、受信ステップS804へ戻り、処理を継続する。一方、受信終了の場合は、キャプチャできずにMPEGファイルの終端まで達した場合であり、最終GOPのフレームを出力するために、最終フレームシーク位置検出ステップS809へ移行する。   If the reception is not finished, the process returns to the reception step S804 and the processing is continued. On the other hand, the reception end is a case where the end of the MPEG file is reached without being captured, and the process proceeds to the final frame seek position detection step S809 in order to output the final GOP frame.

ここで、最終GOPのフレームをキャプチャする手順(ステップS809〜S816)について説明する。最終フレームシーク位置決定ステップS809では、例えば最終GOPシーク位置計算手段24又は制御手段25が、ビットレート管理手段20に記憶されているビットレートから、最終フレームのシーク位置を決定する。シーク位置は、例えば以下の式(1)を用いて求めることができる。   Here, the procedure (steps S809 to S816) for capturing the frame of the final GOP will be described. In the final frame seek position determination step S809, for example, the final GOP seek position calculation unit 24 or the control unit 25 determines the seek position of the final frame from the bit rate stored in the bit rate management unit 20. The seek position can be obtained using, for example, the following equation (1).

Figure 2009049855
Figure 2009049855

ここで、bitrateは、ビットレート情報管理手段20に記憶されているビットレートであり、frame_rateはフレームレート情報管理手段23に記憶されているフレームレートである。file_sizeはMPEGファイルの大きさである。しかし、式(1)で求めたシーク位置は、最終フレームのシーク位置とは限らない。そこで、まず、ステップS810からS814を実行することで、最終フレームのタイムスタンプを求める。要求ステップS810では、送受信手段10が、サーバ101に対してステップS809で求めたシーク位置からMPEGデータを要求する。   Here, bitrate is a bit rate stored in the bit rate information management unit 20, and frame_rate is a frame rate stored in the frame rate information management unit 23. file_size is the size of the MPEG file. However, the seek position obtained by equation (1) is not necessarily the seek position of the final frame. Therefore, first, the time stamp of the final frame is obtained by executing steps S810 to S814. In request step S810, the transmitting / receiving means 10 requests the server 101 for MPEG data from the seek position obtained in step S809.

受信ステップS811では、送受信手段10が、受信データをバッファ手段11に書き込み、DemuxステップS812では、Demux手段12が、バッファ手段11に書き込まれたMPEGデータからビデオデータを分離し、ビデオバッファ手段14に書き込む。この際、ビデオデータ以外は破棄する。タイムスタンプ検出ステップS813では、ビデオデコード手段15が、ビデオデータのタイムスタンプを検出し、時間情報管理手段22に記憶する。ステップS814では、送受信手段10が受信終了か否かを判定する。すなわち、MPEGファイルの終端まで受信したか否かを判定する。   In the reception step S811, the transmission / reception means 10 writes the received data into the buffer means 11, and in the Demux step S812, the Demux means 12 separates the video data from the MPEG data written in the buffer means 11, and sends it to the video buffer means 14. Write. At this time, other than the video data is discarded. In time stamp detection step S813, the video decoding means 15 detects the time stamp of the video data and stores it in the time information management means 22. In step S814, the transmission / reception means 10 determines whether or not reception is complete. That is, it is determined whether the end of the MPEG file has been received.

MPEGファイルの終端まで受信していない場合は、受信ステップS811へ戻り、処理を継続する。以上のステップS811からS813までの処理を行うことで、最終フレームのタイムスタンプが時間情報記憶手段22に書き込まれる。次に、Demux手段設定ステップS815では、最終Iピクチャのタイムスタンプを求め、Demux手段12にタイムスタンプ指定の命令を行う。最終Iピクチャのタイムスタンプは、ステップS809からS813までの処理で求めた最終フレームのタイムスタンプから、GOP枚数分を引いた値である。   If the end of the MPEG file has not been received, the process returns to the reception step S811, and the processing is continued. By performing the processing from step S811 to S813, the time stamp of the last frame is written in the time information storage unit 22. Next, in the Demux means setting step S815, the time stamp of the final I picture is obtained, and the Demux means 12 is instructed to specify the time stamp. The time stamp of the final I picture is a value obtained by subtracting the number of GOPs from the time stamp of the final frame obtained by the processing from steps S809 to S813.

すなわち、Demux手段12(上述する算出手段)が、コンテンツの時系列的に最終の画像フレームにおける、画像フレームの時間情報を示すタイムスタンプと、複数の画像フレームを所定のフレーム数で複数のグループ(GOP)に分けた際の所定のフレーム数とに基づいて、コンテンツの最終の画像フレームが属するグループである最終グループの基礎となるフレーム内符号化によって得られるキー画像フレーム(最終Iピクチャ)のタイムスタンプを求める。   That is, the Demux unit 12 (the calculation unit described above) includes a time stamp indicating time information of an image frame in a final image frame in time series of content, and a plurality of groups of image frames with a predetermined number of frames ( GOP) based on the predetermined number of frames and the time of the key image frame (final I picture) obtained by intraframe coding as the basis of the final group, which is the group to which the final image frame of the content belongs. Ask for a stamp.

次に、最終Iピクチャシーク位置決定ステップS816では、最終GOPシーク位置計算手段24(上述する時間位置取得手段)が、最終のIピクチャ付近の位置である最終Iピクチャのシーク位置を求める。すなわち、最終GOPシーク位置計算手段24が、最終のキー画像フレーム(最終のIピクチャフレーム)を構成する画像データより時系列的に前の任意の画像データの、コンテンツの画像データ全体の時間配列における時間的位置(シーク位置)を所定のプログラム(後述する式(2)に対応するプログラム)によって決定する。   Next, in the final I picture seek position determination step S816, the final GOP seek position calculation means 24 (time position acquisition means described above) obtains the seek position of the final I picture that is a position near the final I picture. In other words, the final GOP seek position calculation means 24 in the time sequence of the entire image data of the content of arbitrary image data time-sequentially before the image data constituting the final key image frame (final I picture frame) A temporal position (seek position) is determined by a predetermined program (a program corresponding to Equation (2) described later).

シーク位置は、最終GOPシーク位置計算手段24が、GOP情報管理手段21に記憶されているGOP情報(GOP_frames:1GOPのピクチャ枚数)と、ビットレート管理手段20に記憶されているビットレート(bitrate)と、MPEGファイルサイズ(file_size)と、フレームレート(frame_rate)とに基づいて、以下の式(2)を用いて求める。   The seek position is determined by the GOP information stored in the GOP information management unit 21 (GOP_frames: number of pictures of 1 GOP) and the bit rate (bitrate) stored in the bit rate management unit 20. Based on the MPEG file size (file_size) and the frame rate (frame_rate), the following equation (2) is used.

Figure 2009049855
Figure 2009049855

そして、送受信手段10(上述する要求手段)が、求められたシーク位置(すなわち、シーク位置よりも時系列的に後)からMPEGデータを要求し、先に求められた最終Iピクチャフレームのタイムスタンプに基づいて、最終GOPのIピクチャをキャプチャすることができる。すなわち、制御手段25(上述する取得手段)が、決定された位置(シーク位置)以降の画像データを含むコンテンツデータの受信により得られる画像データによる画像フレームのタイムスタンプと、最終のキー画像フレーム(最終のIピクチャフレーム)のタイムスタンプとに基づいて、最終のキー画像フレームを取得(キャプチャ)し、最終のキー画像フレームを含むそれ以降の画像フレームをビデオデコード手段15に表示させる。要求ステップS803からステップS807を上述のように実行することにより、最終GOPのIピクチャをキャプチャすることができる。   Then, the transmitting / receiving means 10 (the request means described above) requests MPEG data from the obtained seek position (that is, after the seek position in time series), and the time stamp of the last I picture frame obtained earlier. The I picture of the final GOP can be captured based on That is, the control unit 25 (the acquisition unit described above) performs the time stamp of the image frame based on the image data obtained by receiving the content data including the image data after the determined position (seek position), and the final key image frame ( The final key image frame is acquired (captured) based on the time stamp of the last I picture frame), and the subsequent image frames including the final key image frame are displayed on the video decoding unit 15. By executing the request steps S803 to S807 as described above, the I picture of the final GOP can be captured.

以上のように、MPEGファイル終端のMPEGデータを受信して、最終フレームのタイムスタンプを求め、そのタイムスタンプとGOP情報とから、最終GOPのIピクチャのタイムスタンプを求め、さらに最終Iピクチャのシーク位置を求め、求められたシーク位置から受信するMPEGデータと最終GOPのIピクチャのタイムスタンプとにより、最終GOPのフレームキャプチャを実現できる。これにより、スキップによる早送りをし、MPEGファイルの終端まで達した場合でも、必ず最終GOPのフレームを出力することができるようになる。   As described above, the MPEG data at the end of the MPEG file is received, the time stamp of the final frame is obtained, the time stamp of the I picture of the final GOP is obtained from the time stamp and GOP information, and the seek of the final I picture is further obtained. The frame capture of the final GOP can be realized by obtaining the position and using the MPEG data received from the obtained seek position and the time stamp of the I picture of the final GOP. This makes it possible to always output the frame of the final GOP even when fast-forwarding by skipping and reaching the end of the MPEG file.

なお、式(2)のGOP_framesに、例えば1より大きい数を掛け合わせることにより、シーク位置がコンテンツの開始地点により近づくため、受信するMPEGデータの量が多くなり、確実に最終GOPのIピクチャフレームをキャプチャすることができる。このように余分なMPEGデータを受信することにより、受信開始時の不具合などにより最初のMPEGデータがうまく受信できない場合であっても、確実に最終GOPのIピクチャフレームはキャプチャすることができるため、多くのMPEGデータを受信することは有用である。また、求められたシーク位置からMPEGデータをサーバ101に要求しているが、最終GOPのIピクチャのタイムスタンプを求める際に一度MPEGデータを受信しているため、一度受信したMPEGデータを所定の記憶領域に記憶しておくことにより、再度のMPEGデータの要求を不要とすることも可能である。   Note that by multiplying GOP_frames in Expression (2) by a number greater than 1, for example, the seek position is closer to the start point of the content, so that the amount of MPEG data to be received increases, and the I picture frame of the final GOP is surely received. Can be captured. By receiving extra MPEG data in this way, the I picture frame of the final GOP can be reliably captured even when the first MPEG data cannot be received successfully due to a malfunction at the start of reception. It is useful to receive a lot of MPEG data. Also, MPEG data is requested from the server 101 from the obtained seek position, but since MPEG data is received once when obtaining the time stamp of the I picture of the final GOP, the MPEG data received once is predetermined. By storing in the storage area, it is possible to eliminate the need for MPEG data again.

また、上述したプレーヤの機能をプログラムによりコンピュータに実現させるようにしてもよい。このプログラムは、記録媒体から読み取られてコンピュータに取り込まれてもよいし、通信ネットワークを介して伝送されてコンピュータに取り込まれてもよい。   Further, the above-described player functions may be realized by a computer by a program. This program may be read from a recording medium and loaded into a computer, or may be transmitted via a communication network and loaded into a computer.

本発明に係るネットワークプレーヤ装置は、早送りでファイルの終端まで達した場合に、最終GOP(上述した最終グループの一例)のフレームを出力することができるため、ネットワークを経由して、映像・音声などを再生するネットワークプレーヤ装置などに有用である。   The network player device according to the present invention can output a frame of the final GOP (an example of the above-mentioned final group) when fast-forwarding reaches the end of the file. This is useful for a network player device that reproduces

本発明の実施の形態に係るコンテンツ再生装置(ネットワークプレーヤ装置)の構成の一例を示す構成図である。It is a block diagram which shows an example of a structure of the content reproduction apparatus (network player apparatus) which concerns on embodiment of this invention. 本発明の実施の形態におけるMPEG2−PSデータの構造の一例を示す図である。It is a figure which shows an example of the structure of MPEG2-PS data in embodiment of this invention. 本発明の実施の形態におけるパケットの構成の一例を示す構成図である。It is a block diagram which shows an example of the structure of the packet in embodiment of this invention. 本発明の実施の形態に係るコンテンツ再生装置の動作フローの一例を示すフローチャートである。It is a flowchart which shows an example of the operation | movement flow of the content reproduction apparatus which concerns on embodiment of this invention. 本発明の実施の形態における再生ステップの詳細について説明するためのフローチャートである。It is a flowchart for demonstrating the detail of the reproduction | regeneration step in embodiment of this invention. 本発明の実施の形態におけるビデオデコードステップの詳細について説明するためのフローチャートである。It is a flowchart for demonstrating the detail of the video decoding step in embodiment of this invention. 本発明の実施の形態における早戻しキャプチャステップの詳細について説明するためのフローチャートである。It is a flowchart for demonstrating the detail of the fast reverse capture step in embodiment of this invention. 本発明の実施の形態における早送りキャプチャステップの詳細について説明するためのフローチャートである。It is a flowchart for demonstrating the detail of the fast-forward capture step in embodiment of this invention. 従来から存在するMPEGについて説明するための図である。It is a figure for demonstrating MPEG which exists conventionally. 従来の早送り/早戻しを実現する方法の1つを説明するための図である。It is a figure for demonstrating one of the methods of implement | achieving the conventional fast forward / fast reverse. 従来におけるシーク位置がファイル終端を超えてしまう問題点を説明するための図である。It is a figure for demonstrating the problem that the seek position in the past will exceed the end of a file.

符号の説明Explanation of symbols

10 送受信手段(要求手段)
11 バッファ手段
12 Demux手段(算出手段)
13 システムデコード手段
14 ビデオバッファ手段
15 ビデオデコード手段
16 ビデオ出力手段
17 オーディオバッファ手段
18 オーディオデコード手段
19 オーディオ出力手段
20 ビットレート管理手段
21 GOP情報管理手段
22 時間情報管理手段
23 フレームレート管理手段
24 最終GOPシーク位置計算手段(時間位置取得手段)
25 制御手段(判断手段、取得手段)
26 切り替えスイッチ(SW)
100 プレーヤ
101 サーバ
102 通信ネットワーク
10 Transmission / reception means (request means)
11 Buffer means 12 Demux means (calculation means)
13 System decoding means 14 Video buffer means 15 Video decoding means 16 Video output means 17 Audio buffer means 18 Audio decoding means 19 Audio output means 20 Bit rate management means 21 GOP information management means 22 Time information management means 23 Frame rate management means 24 Final GOP seek position calculation means (time position acquisition means)
25 Control means (judgment means, acquisition means)
26 changeover switch (SW)
100 player 101 server 102 communication network

Claims (1)

複数の画像フレームを構成する画像データと音声データとを含むコンテンツデータであって、外部又は内部の記憶手段から取得された前記コンテンツデータをデコード手段によりデコードしコンテンツを再生している際に、所定の画像データ量ごとにスキップさせて前記コンテンツをスキップ再生させるスキップ再生指示を受け付けることによりスキップ再生を行うコンテンツ再生装置において、
受け付けた前記スキップ再生指示に基づいて、スキップ先に前記画像データが存在するか否かを判断する判断手段と、
前記スキップ先に前記画像データが存在しないと判断された場合、前記コンテンツの時系列的に最終の画像フレームの時間情報を示すタイムスタンプと、複数の前記画像フレームを所定のフレーム数で複数のグループに分けた際の前記所定のフレーム数とに基づいて、前記コンテンツの最終の前記画像フレームが属する前記グループである最終のグループの基礎となるフレーム内符号化によって得られるキー画像フレームの前記タイムスタンプを求める算出手段と、
前記最終のグループの前記キー画像フレームを構成する画像データより時系列的に前の任意の画像データの、前記コンテンツの画像データ全体の時間配列における時間的位置を所定の演算又はプログラムによって求める時間位置取得手段と、
求められた前記時間的位置よりも時系列的に後の画像データを含む前記コンテンツデータを前記外部又は内部の記憶手段から取得するための要求を行う要求手段と、
前記要求により受信された前記画像データに対応する前記画像フレームの前記タイムスタンプと、前記最終のグループの前記キー画像フレームの前記タイムスタンプとに基づいて、前記最終のグループの前記キー画像フレームを含むそれ以降の画像フレームに対応する画像データを取得して前記デコード手段にデコードさせる取得手段とを、
備えることを特徴とするコンテンツ再生装置。
Content data including image data and audio data constituting a plurality of image frames, and the content data acquired from an external or internal storage means is decoded by a decoding means, and the content is reproduced. In a content playback apparatus that performs skip playback by accepting a skip playback instruction for skipping playback of the content by skipping each image data amount,
Determining means for determining whether or not the image data exists at a skip destination based on the received skip reproduction instruction;
When it is determined that the image data does not exist at the skip destination, a time stamp indicating time information of the last image frame in time series of the content, and a plurality of groups of the plurality of image frames with a predetermined number of frames The time stamp of the key image frame obtained by intra-frame coding that is the basis of the final group that is the group to which the final image frame of the content belongs based on the predetermined number of frames Calculating means for obtaining
A time position for obtaining a temporal position in a time sequence of the entire image data of the content of arbitrary image data time-sequentially before the image data constituting the key image frame of the final group by a predetermined calculation or program Acquisition means;
Request means for making a request for acquiring the content data including image data after time series from the obtained temporal position from the external or internal storage means;
Including the key image frame of the final group based on the time stamp of the image frame corresponding to the image data received by the request and the time stamp of the key image frame of the final group. Acquisition means for acquiring image data corresponding to subsequent image frames and decoding the decoding means;
A content playback apparatus comprising:
JP2007215580A 2007-08-22 2007-08-22 Content-playback apparatus Withdrawn JP2009049855A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007215580A JP2009049855A (en) 2007-08-22 2007-08-22 Content-playback apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007215580A JP2009049855A (en) 2007-08-22 2007-08-22 Content-playback apparatus

Publications (1)

Publication Number Publication Date
JP2009049855A true JP2009049855A (en) 2009-03-05

Family

ID=40501609

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007215580A Withdrawn JP2009049855A (en) 2007-08-22 2007-08-22 Content-playback apparatus

Country Status (1)

Country Link
JP (1) JP2009049855A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011134415A (en) * 2009-12-25 2011-07-07 Toshiba Corp Video recording/playing-back device and video recording/playing-back method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011134415A (en) * 2009-12-25 2011-07-07 Toshiba Corp Video recording/playing-back device and video recording/playing-back method

Similar Documents

Publication Publication Date Title
EP1239674B1 (en) Recording broadcast data
TWI465113B (en) Content reproduction system, content reproduction apparatus, program, content reproduction method, and providing content server
WO2005062614A1 (en) Video data processing method and vide data processing device
US8434119B2 (en) Communication apparatus and communication method
JP4846002B2 (en) File transfer system and file transfer method
CN101626516A (en) Reproduction device and method
KR20150106351A (en) Method and system for playback of motion video
EP2635025A1 (en) Video processing method and video appliance implementing the method
JP4322944B2 (en) VIDEO REPRODUCTION DEVICE, VIDEO REPRODUCTION METHOD, AND VIDEO REPRODUCTION PROCESSING PROGRAM
US20090136204A1 (en) System and method for remote live pause
JP3072971B2 (en) Video-on-demand system, video server device and terminal device constituting the system
KR101731829B1 (en) Device and method for processing digital contents in digital video receiver
JP4295079B2 (en) Special video data processing method, special video data processing apparatus and special video data processing system
TWI415432B (en) Data flow transfer method from data source to data filer and data file device and data source device used for performing the method
JP2009049855A (en) Content-playback apparatus
US20120251086A1 (en) Trick mode technique for a bandwidth limited channel
JP3749715B2 (en) Image data transmitting apparatus and image data transmitting method
JP2005197839A (en) Special reproduction method of transport stream and recording and reproducing apparatus for transport stream
JP2007048378A (en) Device and method for recording, recording method program, and recording medium with the recording method program recorded
JP2008135845A (en) Transport stream recording / reproducing method and apparatus
JP4350638B2 (en) Video recording device
JP5100852B2 (en) Digital signal recording / reproducing apparatus and method, digital signal reproducing apparatus and method
JP2009164964A (en) Information processing apparatus, information processing method, information processing system, and information processing program
JP3872672B2 (en) Transport stream playback device, transport stream processing device, transport stream playback method, transport stream processing method
JP2006050078A (en) Data transfer control device and electronic device

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20101102