JP2010016506A - Reproducing device for reproducing encoded stream, and reproducing method - Google Patents

Reproducing device for reproducing encoded stream, and reproducing method Download PDF

Info

Publication number
JP2010016506A
JP2010016506A JP2008172973A JP2008172973A JP2010016506A JP 2010016506 A JP2010016506 A JP 2010016506A JP 2008172973 A JP2008172973 A JP 2008172973A JP 2008172973 A JP2008172973 A JP 2008172973A JP 2010016506 A JP2010016506 A JP 2010016506A
Authority
JP
Japan
Prior art keywords
frame
decoding
section
decoded
playback
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
JP2008172973A
Other languages
Japanese (ja)
Inventor
Jin Terasawa
仁 寺沢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Corp
Original Assignee
Panasonic 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 Panasonic Corp filed Critical Panasonic Corp
Priority to JP2008172973A priority Critical patent/JP2010016506A/en
Publication of JP2010016506A publication Critical patent/JP2010016506A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Television Signal Processing For Recording (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a reproducing device capable of starting section reproduction at a high speed without decoding a reference frame to be needed in decoding of the start frame of the section reproduction when starting the optional section reproduction of a stream. <P>SOLUTION: In order to reproduce the optional section of the stream, a PlayList registering the position information of a start frame and a stop frame for performing the section reproduction and the position information of a reference frame to be needed in decoding of the start frame, and the reference frame to be needed in decoding of the start frame, are stored in a storage medium. When starting the section reproduction, by using the position information of the reference frame to be needed in the decoding of the start frame registered in the PlayList, acquiring the reference frame from the storage medium, and referring to it, decoding is performed from the start frame without performing the decoding of a reference frame to be needed in the decoding of the start frame, and the section reproduction is started at a high speed. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、フレーム内予測符号化と、フレーム間予測符号化とで符号化されたストリームを再生する再生装置、及び、方法に関するものである。特に、任意の区間再生を高速に開始する技術に関するものである。   The present invention relates to a playback apparatus and method for playing back a stream encoded by intraframe predictive coding and interframe predictive coding. In particular, the present invention relates to a technique for starting arbitrary section reproduction at high speed.

動画像の圧縮符号化する方法として、フレーム間の相互関係を利用する方法が知られている。国際標準化規格であるMPEG(Moving Picture Expert Group)方式もこのような方法のひとつである。図1は、フレーム内予測とフレーム間予測とで符号化されたデータ形式を示した図である。MPEG方式のデータ構造は、図1に示すように、Iフレーム、Pフレーム、Bフレームで構成される。Iフレームは、フレーム内予測で符号化される。Pフレームは、Iフレーム、または、Pフレームを参照して、順方向のフレーム間予測で符号化される。Bフレームは、Iフレーム、または、Pフレームを参照して、双方向のフレーム間予測で符号化される。また、GOP(Group Of Pictures)は、IフレームからIフレームまでのフレームの集合である。   As a method for compressing and encoding a moving image, a method using a correlation between frames is known. The MPEG (Moving Picture Expert Group) system, which is an international standard, is one of such methods. FIG. 1 is a diagram showing a data format encoded by intra-frame prediction and inter-frame prediction. As shown in FIG. 1, the MPEG data structure is composed of an I frame, a P frame, and a B frame. I frames are encoded with intra-frame prediction. The P frame is encoded by forward inter-frame prediction with reference to the I frame or the P frame. The B frame is encoded by bidirectional inter-frame prediction with reference to the I frame or the P frame. GOP (Group Of Pictures) is a set of frames from I frame to I frame.

任意の区間再生を行うとき、PlayListが利用されることがある。図2は、従来の再生区間を記憶するときのテーブルの構成を示した図である。例えば、図2に示すように、PlayListは、再生する複数のストリームの順序を登録して、管理する。また、再生するストリーム毎に開始フレーム、停止フレームを登録して、管理する。図3は、特許文献1に記載されている参照テーブルの構成示した図である。再生を開始するフレームの位置情報を記憶する第1の参照テーブルを備えている。さらに、1つのフレームに対して、参照フレームの位置情報を記憶する第2の参照テーブルを備えている。第1の参照テーブルと第2の参照テーブルは、リンクされている。そのため、再生を開始したいフレームの復号に必要となる参照フレームの位置情報、また、参照フレームの復号に必要となる参照フレームの位置情報を、GOPの先頭であるIフレームから、ヘッダ解析を行う。そして、参照フレームでなければ、デコードをスキップする。このように、次フレームのヘッダ解析を行う処理を順次繰り返すことを必要とせず、高速に得ることができる。しかし、再生を開始したいフレームの復号に必要となる参照フレームを復号する必要がある。
特開2000−175143号公報
When performing arbitrary section reproduction, PlayList may be used. FIG. 2 is a diagram showing the configuration of a table when storing a conventional playback section. For example, as shown in FIG. 2, PlayList registers and manages the order of a plurality of streams to be reproduced. In addition, a start frame and a stop frame are registered and managed for each stream to be reproduced. FIG. 3 is a diagram showing a configuration of a reference table described in Patent Document 1. There is provided a first reference table for storing position information of a frame to start reproduction. Further, a second reference table that stores reference frame position information is provided for one frame. The first reference table and the second reference table are linked. Therefore, the header analysis is performed from the I frame that is the head of the GOP for the position information of the reference frame necessary for decoding the frame to be reproduced and the position information of the reference frame necessary for decoding the reference frame. If it is not a reference frame, decoding is skipped. Thus, it is not necessary to sequentially repeat the process of performing header analysis of the next frame, and it can be obtained at high speed. However, it is necessary to decode a reference frame necessary for decoding a frame to be reproduced.
JP 2000-175143 A

前述のとおり、MPEG方式は、Iフレーム、Pフレーム、Bフレームで構成されており、単独で復号できるフレームは、Iフレームのみである。図4は、従来技術における区間再生する方式を説明するための図である。図4に示すように、PlayListに登録されたB11フレームから再生を開始するとき、まず、I0フレームを復号する。続いて、I0フレームを参照して、P3フレームを復号する。順に、P6、P9、P12フレームを復号する。P9、P12フレームを復号した後、B11フレームを復号して、再生を開始する。従って、B11フレームの復号までに、I0、P3、P6、P9、P12フレームと複数の参照フレームを復号する必要があり、B11フレームの再生表示が開始されるまでに時間を要するという問題があった。   As described above, the MPEG system is composed of I frames, P frames, and B frames, and only I frames can be decoded independently. FIG. 4 is a diagram for explaining a section reproduction method in the prior art. As shown in FIG. 4, when playback is started from the B11 frame registered in the PlayList, the I0 frame is first decoded. Subsequently, the P3 frame is decoded with reference to the I0 frame. In order, the P6, P9, and P12 frames are decoded. After decoding the P9 and P12 frames, the B11 frame is decoded and playback is started. Therefore, it is necessary to decode the I0, P3, P6, P9, and P12 frames and a plurality of reference frames before decoding the B11 frame, and there is a problem that it takes time until the reproduction display of the B11 frame is started. .

また、PlayListに登録されている各ストリームの区間再生を途切れなくシームレス再生を行うとき、区間再生の切り替わりで、後続する区間再生の開始フレームの復号までに、複数の参照フレームを復号する必要があり、後続する区間再生の開始フレームへの表示の切り替えを途切れなく行うことができないという問題もあった。   In addition, when seamless playback is performed without segmental playback of each stream registered in the PlayList, it is necessary to decode a plurality of reference frames until the start frame of subsequent segment playback is switched by switching between segment playbacks. There is also a problem that the display cannot be switched to the start frame of the subsequent section reproduction without interruption.

本発明は、上記のような問題を解決するためになされたもので、ストリームの任意の区間再生を開始するとき、区間再生の開始フレームの復号に必要となる参照フレームの復号を行うことなく、予め登録された区間再生の再生開始、シームレス再生の表示の切り替えを高速に行うことができる再生方法、及び、装置を提供するものである。   The present invention has been made to solve the above-described problem, and when starting playback of an arbitrary section of a stream, without performing decoding of a reference frame necessary for decoding of a start frame of section playback, The present invention provides a playback method and apparatus that can perform playback start of segment playback registered in advance and display switching of seamless playback at high speed.

上記目的を達成するために、本発明は、フレーム内予測符号化と、フレーム間予測符号化とで符号化されたストリームを任意の区間で再生するために、区間の開始フレームと停止フレームとの指定を受け付けることができる手段を有し、指定されたフレームから、ストリーム上の位置情報を解析して、区間の開始フレームと停止フレームの位置情報と、開始フレームの復号に必要となる参照フレームの位置情報とを管理情報に登録して、管理情報を記憶媒体に記憶する記憶手段と、開始フレームの復号に必要となる参照フレームを復号された復号化フレームとして記憶媒体に記憶する記憶手段を有することを特徴とする。   In order to achieve the above-mentioned object, the present invention provides a start frame and a stop frame of a section in order to reproduce a stream encoded by intra-frame predictive coding and inter-frame predictive coding in an arbitrary section. It has a means that can accept the designation, analyzes the position information on the stream from the designated frame, the position information of the start frame and stop frame of the section, and the reference frame necessary for decoding the start frame Storage means for registering position information in the management information and storing the management information in the storage medium, and storage means for storing the reference frame necessary for decoding the start frame in the storage medium as a decoded frame It is characterized by that.

以上のように、本発明は、任意の区間を再生するために登録する管理情報として、PlayList(これ以降、管理情報をPlayListと表記)を拡張するものである。MPEG方式など、フレーム内予測符号化と、フレーム間予測符号化とで符号化されたストリームに対して、PlayListに登録された任意の区間再生を開始するとき、区間再生の開始フレームの復号に必要となる参照フレームの復号を行うことなく、開始フレームから復号を行うことができる。そのため、予め登録された区間再生の再生開始を高速に行うことができる。更に、複数の区間再生がPlayListに登録され、途切れなくシームレス再生を行うとき、表示の切り替えを高速に行うことができる。   As described above, the present invention extends PlayList (hereinafter, management information is expressed as PlayList) as management information to be registered for reproducing an arbitrary section. Necessary for decoding the start frame of section playback when starting playback of any section registered in PlayList for a stream encoded by intra-frame prediction encoding and inter-frame prediction encoding, such as MPEG. It is possible to perform decoding from the start frame without decoding the reference frame. For this reason, it is possible to start reproduction of pre-registered section reproduction at high speed. Furthermore, when a plurality of segment reproductions are registered in the PlayList and seamless reproduction is performed without interruption, display switching can be performed at high speed.

例えば、従来の手法では、図4において、PlayListに登録された開始フレームB11の再生表示が開始されるまでに要する時間に、参照フレームであるI0、P3、P6、P9、P12フレームの復号時間と、開始フレームであるB11の復号時間とを要した。そのため、その復号時間だけ表示の切り替わりが行われず、画面が停止しているかのように見えることとなる。   For example, in the conventional method, the decoding time of the reference frames I0, P3, P6, P9, and P12 in the time required for starting the reproduction and display of the start frame B11 registered in the PlayList in FIG. The decoding time of B11 which is the start frame is required. Therefore, the display is not switched for the decoding time, and the screen appears to be stopped.

本発明では、図4において、PlayListに登録された開始フレームB11までの参照フレームI0、P3、P6、P9、P12の復号を行うことなく、参照フレームの復号時間を無くすことで、開始フレームB11の復号時間のみで再生表示を開始することができる。   In the present invention, in FIG. 4, without decoding the reference frames I0, P3, P6, P9, and P12 up to the start frame B11 registered in the PlayList, and by eliminating the decoding time of the reference frame, the start frame B11 Reproduction display can be started only with the decoding time.

以下、本発明の実施の形態について、図面を参照しながら説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

(実施の形態)
図5は、本発明の再生装置の構成を示した図である。
(Embodiment)
FIG. 5 is a diagram showing the configuration of the playback apparatus of the present invention.

復号部100は、SDムービーやDVDプレーヤーなどで再生を行うとき、フレーム内予測符号化と、フレーム間予測符号化とで符号化されたストリームが入力される。符号化されたストリームとは、フラッシュメモリや光ディスクなどに記憶されているMPEGなどである。また、復号部100は、入力されたストリームである符号化データを復号化する。ここで、符号化データには、フレームの復号と表示のタイムラグ分に相当する参照フレームが含まれている。そして、復号部100は、復号された復号化フレームを表示部101に出力する。さらに、復号化された参照フレームについては、表示部101で復号化フレームが表示され終わるまで、復号化フレームとしてフレームメモリに保持する。   When the decoding unit 100 performs playback using an SD movie or a DVD player, a stream encoded by intraframe predictive coding and interframe predictive coding is input. The encoded stream is MPEG or the like stored in a flash memory or an optical disk. Further, the decoding unit 100 decodes encoded data that is an input stream. Here, the encoded data includes a reference frame corresponding to a time lag between frame decoding and display. Then, the decoding unit 100 outputs the decoded decoded frame to the display unit 101. Further, the decoded reference frame is held in the frame memory as a decoded frame until the display unit 101 finishes displaying the decoded frame.

また、復号部100は、入力されるストリームである符号化データのPTS(Presentation Time Stamp)が、記憶媒体103に記憶されているPlayListに登録されている区間再生の開始フレームのPTSに達するまで、復号処理をスキップする。記憶媒体103に記憶されているPlayListは、ユーザ操作などにより作成されたものである。入力される符号化データのPTSが区間再生の開始フレームのPTSに達してから復号を開始して、区間再生の停止フレームのPTSまで復号する。入力される符号化データの復号の際には、参照フレームの復号を行うことなく、区間再生の開始フレームの復号を行う。具体的には、記憶媒体103上の参照フレームの先頭アドレスを用いて、PlayListに登録されている参照フレームを記憶媒体103から取得し、参照フレームをフレームメモリに書き出して参照する。   In addition, the decoding unit 100 determines that the PTS (Presentation Time Stamp) of the encoded data that is an input stream reaches the PTS of the start frame of the section reproduction registered in the PlayList stored in the storage medium 103. Skip the decryption process. The PlayList stored in the storage medium 103 is created by a user operation or the like. Decoding is started after the PTS of the input encoded data reaches the PTS of the start frame of the interval reproduction, and the decoding is performed up to the PTS of the stop frame of the interval reproduction. When decoding the input encoded data, the start frame of the interval reproduction is decoded without decoding the reference frame. Specifically, the reference frame registered in PlayList is acquired from the storage medium 103 using the head address of the reference frame on the storage medium 103, and the reference frame is written to the frame memory for reference.

表示部101は、復号部100から入力された復号化フレームを表示する。また、SDムービーなどでは、表示部101をタッチパネルなどにすることで、ストリームが再生されている状態のときでも表示されるフレームを確認しながら、ユーザ操作による区間再生の開始フレームと停止フレームとの指定を受け付けることができる。   The display unit 101 displays the decoded frame input from the decoding unit 100. In addition, in an SD movie or the like, the display unit 101 is set to a touch panel or the like, so that a frame that is displayed even when a stream is being played is confirmed while a start frame and a stop frame of segment playback by a user operation are confirmed. The specification can be accepted.

管理情報制御部102は、フレーム指定部104で区間再生の開始フレームが指定されると、開始フレームに指定された復号化フレームのPTSを区間再生の開始フレームとして、PlayListに登録する。PlayListは、記憶媒体103に記憶される。また、開始フレームに指定されたフレームの復号に必要となる参照フレームを、ストリーム上の位置情報を解析して、参照フレームを復号する。そして、復号した参照フレームを、復号化フレームとして記憶媒体103に記憶する。ストリームが再生されている状態のとき、復号部100のフレームメモリから復号化された参照フレームを取得して、復号化フレームとして記憶媒体103に記憶する。記憶媒体103に記憶した参照フレームの先頭アドレスをPlayListに登録する。すでに記憶媒体103に復号化フレームが記憶されているとき、その先頭アドレスをPlayListに登録する。フレーム指定部104で区間再生の停止フレームが指定されると、停止フレームに指定されたフレームのPTSを区間再生の停止フレームとして、PlayListに登録する。   When the frame designation unit 104 designates the start frame for section playback, the management information control unit 102 registers the PTS of the decoded frame specified as the start frame in the PlayList as the section playback start frame. The PlayList is stored in the storage medium 103. Further, the reference frame necessary for decoding the frame designated as the start frame is analyzed for position information on the stream, and the reference frame is decoded. Then, the decoded reference frame is stored in the storage medium 103 as a decoded frame. When the stream is being reproduced, the decoded reference frame is acquired from the frame memory of the decoding unit 100 and stored in the storage medium 103 as a decoded frame. The head address of the reference frame stored in the storage medium 103 is registered in the PlayList. When the decrypted frame is already stored in the storage medium 103, the head address is registered in the PlayList. When the stop frame for the section playback is specified by the frame specifying unit 104, the PTS of the frame specified as the stop frame is registered in the PlayList as the stop frame for the section playback.

記憶媒体103には、PlayListが記憶される。PlayListは、区間再生の開始フレームと停止フレームのPTSと、更に、開始フレームの復号に必要となる参照フレームの先頭アドレスとから構成される。また、PlayListに登録されている開始フレームの復号に必要となる参照フレームが、復号されて、復号化フレームとして記憶される。   The storage medium 103 stores PlayList. The PlayList includes a start frame and a stop frame PTS for section reproduction, and a reference frame start address necessary for decoding the start frame. Further, a reference frame necessary for decoding the start frame registered in the PlayList is decoded and stored as a decoded frame.

記憶媒体103は、HDD、SD、フラッシュメモリや光ディスクなどの不揮発性メモリ、または、ROMなどの揮発性メモリのどちらでも使用することができる。また、区間再生を行いたいストリームとともに、PlayListと復号化フレームとがフラッシュメモリや光ディスクなどに記憶されている場合には、持ち運ぶことが可能となる。したがって、本再生装置を用いて、区間再生の再生開始を高速に行うことができる。   The storage medium 103 can be either a nonvolatile memory such as an HDD, SD, flash memory, or optical disk, or a volatile memory such as a ROM. Further, when a PlayList and a decoded frame are stored in a flash memory, an optical disc, or the like together with a stream to be reproduced, it can be carried. Therefore, the playback of the section playback can be started at high speed using this playback device.

フレーム指定部104は、区間再生の開始フレームと停止フレームとの指定を受け付けることができる。フレームの指定は、ストリームが再生されている状態のときでも、表示部101で表示されているフレームを確認しながら、ユーザ操作により行うことができる。また、ユーザが予めストリームの再生をさせたい区間の情報を指定することで、入力されるストリームの区間再生の開始フレームと停止フレームとを決定できる。フレームが指定されると、フレーム指定部104は、管理情報制御部102に対して、指定されたフレームの情報を通知する。   The frame designation unit 104 can accept designation of a start frame and a stop frame for section reproduction. The designation of a frame can be performed by a user operation while checking the frame displayed on the display unit 101 even when the stream is being reproduced. In addition, the user can determine the start frame and the stop frame of the section playback of the input stream by designating the information of the section that the user wants to play the stream in advance. When a frame is designated, the frame designation unit 104 notifies the management information control unit 102 of information on the designated frame.

図6は、本発明の再生装置における、再生区間を記憶するときのフローチャートである。再生区間とは、PlayListに区間再生の開始フレーム、停止フレームによって示される区間である。   FIG. 6 is a flowchart when storing the playback section in the playback apparatus of the present invention. The playback section is a section indicated by PlayList by a start frame and a stop frame of the section playback.

まず、復号部100で符号化データを復号して、表示部101に出力する(ステップS100)。次に、表示部101で復号部100から入力された復号化フレームを表示する(ステップS101)。次に、表示部101で表示される復号化フレームが、ユーザ操作などにより、フレーム指定部104で区間再生の開始フレームに指定されたかチェックする(ステップS102)。   First, the decoding unit 100 decodes the encoded data and outputs it to the display unit 101 (step S100). Next, the display unit 101 displays the decoded frame input from the decoding unit 100 (step S101). Next, it is checked whether or not the decoded frame displayed on the display unit 101 is designated as the start frame of the segment reproduction by the frame designation unit 104 by a user operation or the like (step S102).

復号化フレームが区間再生の開始フレームに指定されたとき(S102:Yes)、管理情報制御部102は、復号化フレームのPTSを区間再生の開始フレームとして、PlayListに登録して、記憶媒体103に記憶する(ステップS104)。ストリームが再生されている状態のときに、復号部100のフレームメモリから、復号化された参照したフレームを取得する。取得した参照フレームは、開始フレームに指定されたフレームの復号を行う際に参照されたフレームである。そして、取得した参照フレームを、復号化フレームとして記憶媒体103に記憶する(ステップS105)。記憶媒体103に記憶した参照フレームの先頭アドレスをPlayListに登録して、記憶媒体103に記憶する(ステップS106)。   When the decoded frame is designated as the section reproduction start frame (S102: Yes), the management information control unit 102 registers the PTS of the decoded frame as the section reproduction start frame in the PlayList and stores it in the storage medium 103. Store (step S104). When the stream is being reproduced, the decoded referenced frame is acquired from the frame memory of the decoding unit 100. The acquired reference frame is a frame referred to when decoding the frame specified as the start frame. Then, the acquired reference frame is stored in the storage medium 103 as a decoded frame (step S105). The head address of the reference frame stored in the storage medium 103 is registered in the PlayList and stored in the storage medium 103 (step S106).

次に、復号化フレームが区間再生の開始フレームに指定なかったとき(S102:No)、または、登録したPlayListを記憶媒体103に記憶した(ステップS106)後は、表示部101で表示される復号化フレームが、ユーザ操作などにより、フレーム指定部104で区間再生の停止フレームに指定されたかチェックする(ステップS103)。   Next, when the decoded frame is not designated as the start frame for the section reproduction (S102: No), or after the registered PlayList is stored in the storage medium 103 (step S106), the decoding displayed on the display unit 101 is performed. It is checked whether the framed frame has been designated as a stop frame for section playback by the frame designation unit 104 by a user operation or the like (step S103).

復号化フレームが区間再生の停止フレームに指定された場合(S103:Yes)、管理情報制御部102は、復号化フレームのPTSを区間再生の停止フレームとして、PlayListに登録する。そして、記憶媒体103に記憶する(ステップS107)。フレーム指定部104で区間再生の停止フレームに指定されていないと判断された場合(S103:No)には、最初の処理に戻る。   When the decoded frame is designated as the stop frame for section playback (S103: Yes), the management information control unit 102 registers the PTS of the decoded frame in the PlayList as the stop frame for section playback. And it memorize | stores in the storage medium 103 (step S107). If the frame designating unit 104 determines that it is not designated as a stop frame for section reproduction (S103: No), the process returns to the first process.

図7は、本発明の再生装置における、区間再生するときのフローチャートである。まず、入力されるストリームである符号化データのPTSと区間再生の開始フレームのPTSと比較する(ステップS200)。入力されるストリームである符号化データのPTSが区間再生の開始フレームのPTSに満たない場合(S200:No)、復号部100で符号化データの復号処理をスキップする(ステップS206)。次に、符号化データのPTSが区間再生の開始フレームのPTSに達している場合(S200:Yes)、参照フレームの記憶媒体103上のアドレスを取得する(ステップS201)。参照フレームとは、PlayListに登録されている区間再生の開始フレームの復号に必要となるフレームである。   FIG. 7 is a flowchart when the section playback is performed in the playback apparatus of the present invention. First, the PTS of the encoded data that is the input stream is compared with the PTS of the start frame of the section reproduction (step S200). When the PTS of the encoded data that is the input stream is less than the PTS of the start frame of the section reproduction (S200: No), the decoding unit 100 skips the decoding process of the encoded data (step S206). Next, when the PTS of the encoded data has reached the PTS of the start frame of the section reproduction (S200: Yes), the address of the reference frame on the storage medium 103 is acquired (step S201). The reference frame is a frame necessary for decoding the start frame of the section reproduction registered in the PlayList.

次に、取得した参照フレームの先頭アドレスを用いて、記憶媒体103に記憶されている復号化フレームを取得して、復号部100のフレームメモリに書き出す(ステップS202)。次に、復号部100でフレームメモリに書き出された復号化フレームを参照して、符号化データを復号する(ステップS203)。次に、復号化されたフレームを表示部101に出力する(ステップS204)。次に、表示部101に出力された復号化フレームが、区間再生の停止フレームかチェックする(ステップS205)。区間再生の停止フレームである場合(S205:Yes)、区間再生を停止する(ステップS207)。表示部101に出力された復号化フレームが、区間再生の停止フレームでない場合(S205:No)には、S203に処理が戻る。   Next, the decoded frame stored in the storage medium 103 is acquired using the acquired head address of the reference frame, and is written in the frame memory of the decoding unit 100 (step S202). Next, the decoded data is decoded with reference to the decoded frame written in the frame memory by the decoding unit 100 (step S203). Next, the decoded frame is output to the display unit 101 (step S204). Next, it is checked whether the decoded frame output to the display unit 101 is a stop frame for section reproduction (step S205). If it is the stop frame for the section playback (S205: Yes), the section playback is stopped (step S207). If the decoded frame output to the display unit 101 is not a section reproduction stop frame (S205: No), the process returns to S203.

図8は、本発明の実施の形態における、区間再生する方式を説明するための図である。具体的には、ストリームが再生されている状態で、区間再生の開始フレームをB11フレーム、停止フレームをB14フレームに登録するときの状態を示した図である。   FIG. 8 is a diagram for explaining a section reproduction method according to the embodiment of the present invention. Specifically, in a state where a stream is being played back, it is a diagram showing a state when the start frame for section playback is registered in the B11 frame and the stop frame is registered in the B14 frame.

復号部100は、符号化データが入力されるとI0フレームから順に復号して、表示部101に出力する。表示部101でB11フレームが表示され、フレーム指定部104でB11フレームが区間再生の開始フレームに指定されると、管理情報制御部102は、B11フレームのPTSを区間再生の開始フレームとして、PlayListに登録する。そして、記憶媒体103に記憶する。また、B11フレームの復号に参照したP9、P12フレームを復号部100のフレームメモリから取得して、復号化フレームとして記憶媒体103に記憶する。そして、記憶媒体103に記憶したP9フレームのアドレス1000、P12フレームのアドレス2000をPlayListに登録して、記憶媒体103に記憶する。表示部101でB14フレームが表示され、フレーム指定部104でB14フレームが区間再生の停止フレームに指定されると、管理情報制御部102は、B14フレームのPTSを区間再生の停止フレームとして、PlayListに登録して、記憶媒体103に記憶する。   When the encoded data is input, the decoding unit 100 sequentially decodes the I0 frame and outputs the decoded data to the display unit 101. When the B11 frame is displayed on the display unit 101 and the B11 frame is designated as the section playback start frame by the frame designation unit 104, the management information control unit 102 sets the PTS of the B11 frame as the section playback start frame in the PlayList. sign up. Then, it is stored in the storage medium 103. Further, the P9 and P12 frames referred to for decoding the B11 frame are acquired from the frame memory of the decoding unit 100 and stored in the storage medium 103 as decoded frames. Then, the address 1000 of the P9 frame and the address 2000 of the P12 frame stored in the storage medium 103 are registered in the PlayList and stored in the storage medium 103. When the B14 frame is displayed on the display unit 101 and the B14 frame is designated as the stop playback frame for the frame specification unit 104, the management information control unit 102 sets the P14 of the B14 frame as the stop playback frame for the PlayList. Register and store in the storage medium 103.

上記で記憶媒体103に記憶されたPlayListに登録されている区間再生の開始フレームB11から停止フレームB14までの再生手順を示す。   The playback procedure from the start frame B11 to the stop frame B14 of the section playback registered in the PlayList stored in the storage medium 103 will be described.

復号部100は、符号化データが入力されると、符号化データのPTSがPlayListに登録されている区間再生の開始フレームB11のPTSに達するまで、復号部100で復号処理をスキップする。符号化データのPTSがB11フレームのPTSに達すると復号を開始する。B11フレームの復号には、PlayListに登録されている参照フレームP9のアドレス1000、P12のアドレス2000を用いて、記憶媒体103に記憶されている参照フレームである復号化フレームP9、P12を取得して、復号部100のフレームメモリに書き出して参照する。符号化データは、順に復号して、表示部101に出力する。P12フレームは、すでに記憶媒体103に存在するため、記憶媒体103からフレームメモリに書き出されており、復号を行うことなく、表示部101に出力する。PlayListに登録されている区間再生の停止フレームB14まで復号して、表示部101に出力する。   When the encoded data is input, the decoding unit 100 skips the decoding process until the PTS of the encoded data reaches the PTS of the section reproduction start frame B11 registered in PlayList. Decoding is started when the PTS of the encoded data reaches the PTS of the B11 frame. For the decoding of the B11 frame, the reference frames P9 and P12 which are reference frames stored in the storage medium 103 are obtained by using the addresses 1000 and 2000 of the reference frame P9 registered in the PlayList. The data is written into the frame memory of the decoding unit 100 for reference. The encoded data is sequentially decoded and output to the display unit 101. Since the P12 frame already exists in the storage medium 103, it is written from the storage medium 103 to the frame memory, and is output to the display unit 101 without being decoded. Decoding is performed up to the stop playback frame B14 registered in the PlayList and output to the display unit 101.

開始フレームB11の復号までに、I0、P3、P6、P9、P12フレームと複数の参照フレームを復号する必要がないため、再生を高速に開始することが可能となる。   Since it is not necessary to decode the I0, P3, P6, P9, and P12 frames and the plurality of reference frames before the start frame B11 is decoded, the reproduction can be started at high speed.

なお、本願は、複数の区間再生を途切れなくシームレス再生を行うことも可能である。以下に、その処理を示す。   In the present application, it is also possible to perform seamless reproduction without interruption in a plurality of sections. The process is shown below.

図9は、複数の区間再生を途切れなくシームレス再生を行うときの方式を説明するための図である。例えば、第1の符号化データを開始フレームB11から停止フレームB14まで再生した後、第2の符号化データを開始フレームB7から停止フレームB10まで再生する。   FIG. 9 is a diagram for explaining a method when seamless playback is performed without interruption in a plurality of sections. For example, after the first encoded data is reproduced from the start frame B11 to the stop frame B14, the second encoded data is reproduced from the start frame B7 to the stop frame B10.

復号部100は、第1の符号化データを停止フレームB14まで復号した後、B14フレームを表示部101に出力して、第1の符号化データの復号を停止する。その後、第2の符号化データを復号する。第2の符号化データは、区間再生の開始フレームのPTSがB7フレームに指定されているため、B7フレームまで、復号部100で復号処理をスキップする。B7フレームの復号には、PlayListに登録されている参照フレームP6のアドレス3000、P9のアドレス4000を用いて、記憶媒体103に記憶されている復号化フレームP6、P9を取得して、復号部100のフレームメモリに書き出して参照する。B7フレームを復号した後、表示部101に出力する。PlayListに登録されている区間再生の停止フレームB10まで復号して、表示部101に出力する。   After decoding the first encoded data up to the stop frame B14, the decoding unit 100 outputs the B14 frame to the display unit 101, and stops the decoding of the first encoded data. Thereafter, the second encoded data is decoded. In the second encoded data, since the PTS of the start frame of the interval reproduction is designated as the B7 frame, the decoding unit 100 skips the decoding process up to the B7 frame. For decoding the B7 frame, the decoding frames 100 and P9 stored in the storage medium 103 are acquired using the addresses 3000 and P9 of the reference frame P6 registered in the PlayList, and the decoding unit 100 Export to frame memory for reference. After decoding the B7 frame, it is output to the display unit 101. It decodes to the stop frame B10 of the section reproduction registered in the PlayList, and outputs it to the display unit 101.

第1の符号化データの停止フレームB14と、第2の符号化データの開始フレームB7とを途切れなく復号して、表示部101に出力することにより、シームレス再生の表示の切り替えを高速に行うことが可能となる。   By seamlessly decoding the stop frame B14 of the first encoded data and the start frame B7 of the second encoded data and outputting them to the display unit 101, the display of seamless playback can be switched at high speed. Is possible.

以上のように、本発明に係る再生装置は、フレーム内予測符号化と、フレーム間予測符号化とで符号化されたストリームの任意の区間再生を行うとき、区間再生の開始フレームの復号に必要となる参照フレームの復号を行うことなく、開始フレームから復号を行うことができ、区間再生を高速に開始することができる。   As described above, the playback apparatus according to the present invention is necessary for decoding the start frame of section playback when performing playback of an arbitrary section of a stream encoded by intraframe prediction encoding and interframe prediction encoding. Therefore, it is possible to perform decoding from the start frame without decoding the reference frame, and to start the section reproduction at high speed.

また、複数の区間再生を途切れなくシームレス再生を行うとき、区間再生の切り替わりで、後続する区間再生の開始フレームから復号を行うことができ、シームレス再生の表示の切り替えを高速に行うことができる。   In addition, when seamless playback is performed without interruption for a plurality of segment playbacks, decoding can be performed from the start frame of subsequent segment playback by switching between segment playbacks, and the display of seamless playback can be switched at high speed.

フレーム内予測とフレーム間予測とで符号化されたデータ形式を示した図Diagram showing the data format encoded by intra-frame prediction and inter-frame prediction 従来の再生区間を記憶するときのテーブルの構成を示した図The figure which showed the structure of the table when memorize | storing the conventional reproduction area 特許文献における参照テーブルの構成示した図The figure which showed the composition of the reference table in patent documents 従来技術における区間再生する方式を説明するための図The figure for demonstrating the method to reproduce the area in a prior art 本発明の再生装置における、構成を示した図The figure which showed the structure in the reproducing | regenerating apparatus of this invention 本発明の再生装置における、再生区間を記憶するときのフローチャートFlowchart when storing a playback section in the playback apparatus of the present invention 本発明の再生装置における、区間再生するときのフローチャートFlowchart when section playback is performed in the playback apparatus of the present invention 本発明の実施の形態における、区間再生する方式を説明するための図The figure for demonstrating the system which reproduces | regenerates in the embodiment of this invention 本発明の実施の形態における、シームレス再生する方式を説明するための図The figure for demonstrating the method of seamless reproduction | regeneration in embodiment of this invention

符号の説明Explanation of symbols

100 復号部
101 表示部
102 管理情報制御部
103 記憶媒体
104 フレーム指定部
DESCRIPTION OF SYMBOLS 100 Decoding part 101 Display part 102 Management information control part 103 Storage medium 104 Frame designation | designated part

Claims (4)

フレーム内予測符号化と、フレーム間予測符号化とで符号化されたストリームを任意の区間で再生するために、区間の開始フレームと停止フレームとの指定を受け付けることができる手段を有し、
指定された前記フレームから、ストリーム上の位置情報を解析して、前記区間の開始フレームと停止フレームの位置情報と、前記開始フレームの復号に必要となる参照フレームの位置情報とを管理情報に登録して、前記管理情報を記憶媒体に記憶する記憶手段と、
前記開始フレームの復号に必要となる参照フレームを復号された復号化フレームとして記憶媒体に記憶する記憶手段を有することを特徴とする再生装置。
In order to reproduce a stream encoded by intraframe predictive encoding and interframe predictive encoding in an arbitrary section, it has means capable of accepting designation of the start frame and stop frame of the section,
The position information on the stream is analyzed from the designated frame, and the position information of the start frame and stop frame of the section and the position information of the reference frame necessary for decoding the start frame are registered in the management information. Storage means for storing the management information in a storage medium;
A playback apparatus comprising storage means for storing a reference frame required for decoding the start frame as a decoded frame in a storage medium.
区間再生を行うための開始フレームの指定を受け付けたとき、前記ストリームが復号されている状態において、復号手段のフレームメモリから、前記開始フレームの復号に必要となる参照フレームを取得して、記憶媒体に記憶することを特徴とする請求項1に記載の再生装置。 When a designation of a start frame for performing section reproduction is received, a reference frame necessary for decoding the start frame is obtained from a frame memory of a decoding means in a state where the stream is being decoded, and a storage medium The playback apparatus according to claim 1, wherein the playback apparatus is stored. 区間再生を行うための開始フレームと停止フレームの位置情報はタイムスタンプとして、開始フレームの復号に必要となる参照フレームの位置情報は記憶媒体上の参照フレームの先頭アドレスとして、管理情報に登録することを特徴とする請求項1に記載の再生装置。 The position information of the start frame and the stop frame for performing the interval reproduction is registered in the management information as the time stamp, and the position information of the reference frame necessary for decoding the start frame is registered in the management information as the start address of the reference frame on the storage medium. The playback apparatus according to claim 1. 前記管理情報に登録されている開始フレームから停止フレームまでの区間再生を行うとき、前記復号手段は管理情報に登録されている開始フレームの復号に必要となる参照フレームの位置情報を用いて、記憶媒体から参照フレームを取得して、前記復号手段のフレームメモリに書き出して参照することにより、開始フレームから復号を行い、復号した開始フレームから表示を行い、
停止フレームまで復号を行い、復号した停止フレームまで表示を行うことを特徴とする請求項1に記載の再生装置。
When performing the interval reproduction from the start frame to the stop frame registered in the management information, the decoding means stores the reference frame position information necessary for decoding the start frame registered in the management information. Obtaining a reference frame from the medium, writing to the frame memory of the decoding means and referring to it, decoding from the start frame, displaying from the decoded start frame,
The playback apparatus according to claim 1, wherein decoding is performed up to a stop frame, and display is performed up to the decoded stop frame.
JP2008172973A 2008-07-02 2008-07-02 Reproducing device for reproducing encoded stream, and reproducing method Pending JP2010016506A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008172973A JP2010016506A (en) 2008-07-02 2008-07-02 Reproducing device for reproducing encoded stream, and reproducing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008172973A JP2010016506A (en) 2008-07-02 2008-07-02 Reproducing device for reproducing encoded stream, and reproducing method

Publications (1)

Publication Number Publication Date
JP2010016506A true JP2010016506A (en) 2010-01-21

Family

ID=41702208

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008172973A Pending JP2010016506A (en) 2008-07-02 2008-07-02 Reproducing device for reproducing encoded stream, and reproducing method

Country Status (1)

Country Link
JP (1) JP2010016506A (en)

Similar Documents

Publication Publication Date Title
JP4355659B2 (en) Data processing device
JPWO2005088964A1 (en) Recording / playback editing device
WO2009139302A1 (en) Recording/playback device
JP2006279262A (en) Coded video conversion apparatus, conversion method and program therefor
JP4534971B2 (en) Moving picture recording apparatus, moving picture recording method, moving picture transmission method, moving picture recording method program, and recording medium recording the moving picture recording method program
WO2012046437A1 (en) Recording medium and data copy method
JP2006049988A (en) Digital data recording and reproducing device
JP2007049504A (en) Recording medium, reproduction apparatus, and reproduction method
JP2010016506A (en) Reproducing device for reproducing encoded stream, and reproducing method
KR20060082380A (en) Method and apparatus for managing information for edition of recorded data
JP4784466B2 (en) Video information playback method
JP4301250B2 (en) Signal reproducing apparatus and method
US20150172619A1 (en) Storage medium, reproducing apparatus and method for recording and playing image data
JP2001238208A (en) Moving picture decoding method and moving picture decoder
JP2007243414A (en) Recorder
JP2008211474A (en) Recorder and reproducing device
JP2009065486A (en) Compressed image and compressed sound reproducing apparatus
JP5347714B2 (en) Video information playback method and video information playback apparatus
JP4284830B2 (en) Moving picture editing / decoding apparatus and method
JP2009171380A (en) Reproduction device and method
JP2009105477A (en) Reproducing device and reproducing method
JP2006129338A (en) Video recording and reproducing apparatus and recording medium
JP2005167489A (en) Recorder and recording method, reproducer and reproducing method, and recorder/reproducer and recording/reproducing method
JP5782098B2 (en) Digital data recording / reproducing method and digital data recording / reproducing apparatus
JP2002157820A (en) Recording medium reproducing device and information recording medium