JP2006319956A - Mpeg coded stream decoding device - Google Patents

Mpeg coded stream decoding device Download PDF

Info

Publication number
JP2006319956A
JP2006319956A JP2006093996A JP2006093996A JP2006319956A JP 2006319956 A JP2006319956 A JP 2006319956A JP 2006093996 A JP2006093996 A JP 2006093996A JP 2006093996 A JP2006093996 A JP 2006093996A JP 2006319956 A JP2006319956 A JP 2006319956A
Authority
JP
Japan
Prior art keywords
unit
video
audio
data
stc
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.)
Granted
Application number
JP2006093996A
Other languages
Japanese (ja)
Other versions
JP4613860B2 (en
JP2006319956A5 (en
Inventor
Tetsushi Oyama
哲史 大山
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 Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2006093996A priority Critical patent/JP4613860B2/en
Publication of JP2006319956A publication Critical patent/JP2006319956A/en
Publication of JP2006319956A5 publication Critical patent/JP2006319956A5/ja
Application granted granted Critical
Publication of JP4613860B2 publication Critical patent/JP4613860B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

<P>PROBLEM TO BE SOLVED: To provide an MPEG coded stream decoding device having excellent characteristics to be used by a Video On Demand (VOD) system for solving the problem that the delay of a response or the disturbance of an output video voice is generated, and for realizing a high speed response to the thriving business request of a user and the establishment of the synchronization of high speed video and voice during status transition between a normal reproduction status and a specific reproduction status. <P>SOLUTION: This MPEG coded stream encoding device is provided with a clock memory part 114 for storing an STC value to be outputted by an STC generating part 113 in a designated timing, and when a temporary stop control request is made from a user, an STC value is immediately stored, and the output to an output monitor part 108 and an output speaker part 11 is stopped. Afterwards, when a reproduction request is made, an elapsed time is calculated, and PTS and DTS values stored in a video ES buffer 105 and an audio data buffer 109 are updated. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明はMPEG符号化画像データおよびMPEG符号化音声データを多重化したMPEG多重化ストリーム(MPEGトランスポート・ストリーム)を復号して復号画像データおよび復号音声データを生成するMPEG符号化ストリーム復号装置に関するものである。   The present invention relates to an MPEG encoded stream decoding apparatus that decodes an MPEG multiplexed stream (MPEG transport stream) obtained by multiplexing MPEG encoded image data and MPEG encoded audio data to generate decoded image data and decoded audio data. Is.

近年、MPEGに代表される画像音声圧縮技術の発展や高速通信ネットワークの普及とともにネットワーク経由による映像・音声サービスが広まりつつある。このような通信ネットワークによる映像・音声サービスでは従来の放送型サービスと異なる特徴の1つとして、ユーザの要求に応じた、番組の種類、開始時刻の選択や、一時停止、早送り、早戻し等の特殊再生操作等が実現可能なオン・デマンド性が挙げられる。   In recent years, video / audio services via a network are spreading along with the development of video / audio compression techniques represented by MPEG and the spread of high-speed communication networks. One of the features of the video / audio service using such a communication network is that it is different from the conventional broadcast type service, such as selection of program type and start time, pause, fast forward, and fast reverse according to the user's request. On-demand performance that enables special playback operations and the like can be mentioned.

以下に従来のMPEG符号化ストリーム復号装置について説明する。   A conventional MPEG encoded stream decoding apparatus will be described below.

従来、MPEG符号化ストリーム復号装置は特許文献1に記載されたものが知られている。そのMPEG符号化ストリーム復号装置を図12に示す。   Conventionally, an MPEG coded stream decoding device described in Patent Document 1 is known. The MPEG encoded stream decoding apparatus is shown in FIG.

図12は従来のMPEG符号化ストリーム復号装置の機能ブロック図を示すものである。図12において、1はMPEG符号化多重データのビット・ストリームを一時記憶し蓄積するストリーム・バッファ・メモリである。2はストリーム・バッファ・メモリ1に一時記憶されているPackストリーム・データを読み出すとともにビデオ・バッファ・メモリ6に一時格納されているビデオPESストリーム・データを読み出し制御するバッファ・メモリ制御部である。3はPackヘッダ内のストリームIDを検出し、システム時刻基準の抽出およびPackヘッダの分離をするPackヘッダ処理部である。4はPESパケット・ヘッダ分離およびPESパケット・ヘッダ内のPTS抽出を行ない、Pack毎にビデオ・パケットとオーディオ・パケットとに分離するPESパケット処理部である。5はPack毎のビデオ・パケットからGOPビデオ・ストリームの始まりを示すGOPフラグを検出するGOP検出部である。6はビデオ・ストリームを一時格納し、1ピクチャフレーム単位で読み出すビデオ・バッファ・メモリである。7はビデオ・バッファ・メモリ6から1ピクチャフレーム分のビデオ・データをピクチャ・フレーム周期で読み出すとともに、ビデオ表示処理部10に記憶されている1ピクチャ・フレーム毎に読み出す制御信号を出力するバッファ・メモリ制御部である。8はビデオ・バッファ・メモリ6から1ピクチャ・フレーム毎に読み出されるビデオ・データをMPEGデコード処理するビデオMPEGデコード部である。9はビデオMPEGデコード部8でデコードされたビデオ・データを1ピクチャフレーム分1時記憶し、欠落等データ・エラーの有無を検出するデコードデータ格納部である。10は1ピクチャ・フレームのビデオ・データをビデオ表示タイミングに合わせて出力するビデオ表示処理部である。11はビデオ表示タイミング信号を出力する表示タイミング生成部である。12は表示ビデオ・データをディジタル/アナログ(D/A)変換して画像モニタへ出力するビデオD/A変換部である。13はデコードデータ格納部9に格納されたビデオ・データにエラーがあった場合にエラー情報とともにデータ・エラー検出信号を出力するフレーム・チェック検出部である。14はフレーム・チェック検出部13の出力するデータ・エラー検出信号とエラー情報を元にデータ・エラーがあったピクチャ・フレームの再送要求を出力するビデオ・エラー情報処理部である。15はPackヘッダ処理部3で抽出されたSCRを元にMPEGデコード処理等のための装置内クロック信号を生成するクロック生成部である。16はPESパケット処理部で抽出されたPTS情報を元にMPEGデコードされたピクチャ・フレーム・データの読み出しタイミングおよびオーディオ/ビデオ同期タイミングのための装置内時刻情報を生成する時刻情報生成部である。17はCPUバスである。18はホストCPUである。19はPESパケット処理部4から入力されるオーディオ・ストリームを一時記憶するオーディオ・バッファ・メモリである。20は時刻情報生成部16の出力する装置内時刻情報に基づいてMPEGデコードされたビデオとオーディオとの同期をとるためのAV同期タイミング信号を生成するAV同期タイミング生成部である。21はオーディオ・バッファ・メモリ19から読み出されるオーディオ・ストリームをMPEGデコード処理するオーディオMPEGデコード部である。22はオーディオMPEGデコード部の出力する復号オーディオ・データをディジタル/アナログ変換して出力するオーディオD/A変換部である。25はクロック生成部15からの装置内クロック信号と時刻情報生成部16からの装置内時刻情報とGOP検出部5からのGOP検出信号とエラー情報処理部14からのエラー情報信号とを入力されてCPUバス17およびホストメモリ23を介してホストCPU18を制御しビデオMPEGデコード部8とオーディオMPEGデコード部21とバッファ・メモリ制御部7等との間で当該データの制御・応答を行なうとともに回線インタフェース部24を通してMPEG符号化多重側へデータの欠落等エラーがあったピクチャ・フレームのビデオ・データを再送あるいはビデオ送出停止の要求信号等エラー情報の送出を制御するCPU制御部である。   FIG. 12 is a functional block diagram of a conventional MPEG encoded stream decoding apparatus. In FIG. 12, reference numeral 1 denotes a stream buffer memory for temporarily storing and storing a bit stream of MPEG encoded multiplexed data. Reference numeral 2 denotes a buffer memory control unit that reads the Pack stream data temporarily stored in the stream buffer memory 1 and reads and controls the video PES stream data temporarily stored in the video buffer memory 6. A Pack header processing unit 3 detects a stream ID in the Pack header, extracts a system time reference, and separates the Pack header. A PES packet processing unit 4 performs PES packet header separation and PTS extraction in the PES packet header and separates video packets and audio packets for each pack. A GOP detection unit 5 detects a GOP flag indicating the start of a GOP video stream from a video packet for each pack. Reference numeral 6 denotes a video buffer memory that temporarily stores a video stream and reads it in units of one picture frame. 7 is a buffer for outputting video data for one picture frame from the video buffer memory 6 in a picture frame cycle and outputting a control signal read for each picture frame stored in the video display processing unit 10. It is a memory control unit. A video MPEG decoding unit 8 decodes video data read from the video buffer memory 6 for each picture frame. A decode data storage unit 9 stores the video data decoded by the video MPEG decoding unit 8 for one picture frame at one hour, and detects the presence or absence of a data error such as missing. A video display processing unit 10 outputs video data of one picture frame in accordance with video display timing. A display timing generation unit 11 outputs a video display timing signal. Reference numeral 12 denotes a video D / A converter which converts display video data from digital / analog (D / A) to an image monitor. A frame check detection unit 13 outputs a data error detection signal together with error information when there is an error in the video data stored in the decoded data storage unit 9. A video error information processing unit 14 outputs a retransmission request for a picture frame having a data error based on the data error detection signal output from the frame check detection unit 13 and error information. Reference numeral 15 denotes a clock generation unit that generates an in-device clock signal for MPEG decoding based on the SCR extracted by the Pack header processing unit 3. Reference numeral 16 denotes a time information generation unit that generates in-device time information for picture frame data read timing and audio / video synchronization timing decoded in MPEG based on the PTS information extracted by the PES packet processing unit. Reference numeral 17 denotes a CPU bus. Reference numeral 18 denotes a host CPU. Reference numeral 19 denotes an audio buffer memory for temporarily storing an audio stream input from the PES packet processing unit 4. Reference numeral 20 denotes an AV synchronization timing generation unit that generates an AV synchronization timing signal for synchronizing MPEG-decoded video and audio based on the in-device time information output from the time information generation unit 16. An audio MPEG decoding unit 21 performs MPEG decoding on the audio stream read from the audio buffer memory 19. Reference numeral 22 denotes an audio D / A converter for digital / analog conversion of decoded audio data output from the audio MPEG decoder. 25 is inputted with the in-device clock signal from the clock generation unit 15, the in-device time information from the time information generation unit 16, the GOP detection signal from the GOP detection unit 5, and the error information signal from the error information processing unit 14. The host CPU 18 is controlled via the CPU bus 17 and the host memory 23 to control and respond to the data among the video MPEG decoding unit 8, the audio MPEG decoding unit 21, the buffer memory control unit 7, etc., and the line interface unit. 24 is a CPU control unit that controls the transmission of error information such as a request signal for video transmission stop or retransmission of picture frame video data having an error such as data loss to the MPEG encoding multiplexing side.

以上のように構成された従来のMPEG符号化ストリーム復号装置について、以下その動作について説明する。   The operation of the conventional MPEG encoded stream decoding apparatus configured as described above will be described below.

MPEG多重化ビット・ストリームは伝送回線を通して回線インタフェース部26を介してストリーム・バッファ・メモリ1に記憶蓄積される。   The MPEG multiplexed bit stream is stored and accumulated in the stream buffer memory 1 through the transmission line via the line interface unit 26.

バッファ・メモリ制御部2は、GOP検出部5からのGOP検出信号により制御されてストリーム・バッファ・メモリ1を制御し、GOPフラグが検出されるごとにPackパケットのストリーム・データを読み出し、これを繰り返す。   The buffer memory control unit 2 is controlled by the GOP detection signal from the GOP detection unit 5 to control the stream buffer memory 1 and reads the stream data of the Pack packet every time the GOP flag is detected. repeat.

Packヘッダ処理部3では、Packヘッダをヘッダ内におけるPackスタートコードおよびストリームIDコードをもとにヘッダ検出分離部30で分離するとともに、分離したヘッダ内に配列されてあるシステムクロック基準となるSCR情報をSCR抽出部31で抽出して、復号化側で使用される装置内クロック信号を生成するクロック生成部15へ供給する。   The Pack header processing unit 3 separates the Pack header by the header detection / separation unit 30 based on the Pack start code and the stream ID code in the header, and SCR information serving as a system clock reference arranged in the separated header. Is extracted by the SCR extraction unit 31 and supplied to the clock generation unit 15 that generates the in-device clock signal used on the decoding side.

PESパケット処理部4では、Packヘッダが分離されたPESパケットストリームからPESパケット・ヘッダ内のパケットスタートおよびストリームIDコードをもとにパケット分離部1042、ヘッダ分離部1040、でPESパケット・ヘッダを分離して、その分離したヘッダ内に配列されてある時刻情報の基準となるPTS情報をPTS抽出部で抽出し、復号化側で使用されるAV同期をとるタイミング情報としての時刻情報を時刻情報生成部16へ供給するとともに、メディアごとのPESパケットに分離し出力する。   In the PES packet processing unit 4, the PES packet header is separated from the PES packet stream from which the Pack header is separated by the packet separation unit 1042 and the header separation unit 1040 based on the packet start and the stream ID code in the PES packet header. Then, the PTS information serving as a reference for the time information arranged in the separated header is extracted by the PTS extraction unit, and time information is generated as timing information for obtaining AV synchronization used on the decoding side. In addition to being supplied to the unit 16, it is separated into PES packets for each medium and output.

そして、ピクチャ・バッファ・メモリ6は、PESパケット処理部4から入力されるビデオPESパケットのピクチャ・ストリームを記憶蓄積し、また、オーディオ・バッファ・メモリ19は、入力されるオーディオPESパケットのオーディオ・ストリームを記憶蓄積する。   The picture buffer memory 6 stores and accumulates the picture stream of the video PES packet input from the PES packet processing unit 4, and the audio buffer memory 19 stores the audio stream of the input audio PES packet. Store and store streams.

GOP検出部5では、ストリーム・バッファ・メモリ1およびピクチャ・バッファ・メモリ6のそれぞれから、各ストリーム・データをGOP周期で読み出すためのタイミングを生成するため、PESパケット処理部4のGOP出力ポートから入力されるPESパケット・ヘッダが分離されたビデオPESパケットからその先頭に配列されているGOPフラグを検出してGOP検出信号として出力し、バッファ・メモリ制御部2へ供給する。   The GOP detection unit 5 generates a timing for reading each stream data in a GOP cycle from each of the stream buffer memory 1 and the picture buffer memory 6, and therefore from the GOP output port of the PES packet processing unit 4. A GOP flag arranged at the head of the video PES packet from which the input PES packet header is separated is detected, output as a GOP detection signal, and supplied to the buffer memory control unit 2.

これによって、バッファ・メモリ制御部2は、ストリーム・バッファ・メモリ1への読み出しを行なうと同時に、ピクチャ・バッファ・メモリ6に対しても読み出し制御を行なう。   As a result, the buffer memory control unit 2 performs reading control for the picture buffer memory 6 at the same time as reading to the stream buffer memory 1.

ビデオMPEGデコード部8では、ピクチャ・バッファ・メモリ6から1ピクチャフレーム単位で読み出されるピクチャストリームデータをMPEG復号化して、デコードデータ格納部9の1フレームメモリ(ピクチャ・デコード・データ・フレーム・メモリ1090)に記憶させる。   The video MPEG decoding unit 8 MPEG-decodes the picture stream data read from the picture buffer memory 6 in units of one picture frame, and the 1-frame memory (picture decoding data frame memory 1090) of the decoding data storage unit 9 ).

デコードデータ格納部9のメモリ管理部1091では、ビデオMPEGデコード部8から入力される1ピクチャフレーム分のデコードデータがピクチャデコードデータフレームメモリ1090内に揃う(つまり正常に記憶される)と、その1ピクチャフレーム分のピクチャ・デコード・データを出力してビデオ表示処理部10のビデオ表示フレーム・メモリ1100に記憶させる。ここで、もしピクチャデコードデータフレームメモリ1090内に1ピクチャフレーム分のデコードデータが全て揃わない場合、つまりピクチャ・デコード・データの欠落があると、そのデータ欠落のあったピクチャ・フレームのピクチャ位置情報等エラー情報をエラー検出信号と共に出力する。そして、ピクチャ・デコード・データが全て揃って正常に記憶された場合には、記憶完了とともに記憶正常信号を出力し、同時にその記憶されたピクチャ・デコード・データをビデオ表示フレーム・メモリ1100へ出力する。   In the memory management unit 1091 of the decode data storage unit 9, when the decode data for one picture frame input from the video MPEG decoding unit 8 is aligned in the picture decode data frame memory 1090 (that is, stored normally), the 1 Picture decode data for the picture frame is output and stored in the video display frame memory 1100 of the video display processing unit 10. Here, if all of the decoded data for one picture frame is not prepared in the picture decode data frame memory 1090, that is, if there is a missing picture decode data, the picture position information of the picture frame having the missing data The error information is output together with the error detection signal. When all of the picture decode data is stored normally, the storage normal signal is output upon completion of the storage, and at the same time, the stored picture decode data is output to the video display frame memory 1100. .

ビデオ表示処理部10のビデオ表示フレーム・メモリ1100では、ピクチャデコードデータフレームメモリ1090から出力される正常なピクチャ・デコード・データを数ピクチャフレーム分記憶する。つまり、メモリ管理部1091からデータ欠落のエラー検出信号が出力されて、CPU制御部25を介してエラー情報処理部14からのピクチャ再送要求信号がMPEG符号化多重側へ送出され、その再送要求によって再送されMPEGデコードされて再びピクチャデコードデータフレームメモリ1090に記憶されるまでの間に、それまでビデオ表示フレーム・メモリ1100に格納されていた数ピクチャフレーム分のピクチャ・デコード・データが画面へのビデオ表示のために読み出されてしまうと、次のデータ欠落のあったピクチャ・フレームの画面表示のところで表示画面が1つ前のピクチャ・フレームの画面を表示したままポーズ状態となって、その間数ピクチャ・フレーム分の画像が抜けてしまうため、再送要求から再送ピクチャ・デコード・データの記憶完了までの時間を稼ぐために所要ピクチャ・フレーム数分のピクチャ・デコード・データをビデオ表示フレーム・メモリ1100内に蓄積するものである。   The video display frame memory 1100 of the video display processing unit 10 stores normal picture decode data output from the picture decode data frame memory 1090 for several picture frames. That is, a data missing error detection signal is output from the memory management unit 1091, and a picture retransmission request signal from the error information processing unit 14 is sent to the MPEG encoding multiplexing side via the CPU control unit 25, The picture decode data for several picture frames stored in the video display frame memory 1100 until the time is retransmitted, MPEG decoded and stored in the picture decode data frame memory 1090 again. If it is read out for display, the display screen will be in a pause state while displaying the previous picture frame screen at the next screen display of the picture frame with missing data. Since the picture and frame images are lost, the resend pict Picture decoding data corresponding to the number of required picture frame to make the time until the storage completion of the decoded data is to accumulate the video display frame memory 1100 in the.

そして、ビデオ表示処理部10の表示制御部1101では、バッファ・メモリ制御部7からの制御によりピクチャ・フレーム周期で画面表示出力のために読み出されるビデオ表示フレーム・メモリ1100からの1ピクチャフレームごとのピクチャ・デコード・データを表示タイミング生成部11から供給されるビデオ表示タイミング信号に制御されて、ビデオD/A変換部12へ出力する。   Then, the display control unit 1101 of the video display processing unit 10 controls each one picture frame from the video display frame memory 1100 that is read out for screen display output in a picture frame cycle under the control of the buffer memory control unit 7. The picture decode data is controlled by the video display timing signal supplied from the display timing generation unit 11 and output to the video D / A conversion unit 12.

ここで、表示タイミング生成部11が出力するビデオ表示タイミング信号は、例えばNTSC方式のビデオ垂直同期信号である1/30秒周期のフレーム信号である。   Here, the video display timing signal output from the display timing generation unit 11 is a frame signal having a period of 1/30 second, which is a video vertical synchronization signal of the NTSC system, for example.

フレーム・チェック検出部13では、デコードデータフレームメモリ1090のメモリ管理部1091出力を表示タイミング生成部11から供給されるビデオ表示タイミング信号周期で監視し、ビデオ表示タイミングごとに記憶正常信号が出力されていれば何も出力しないが、ビデオ表示タイミングでエラー検出信号が出力されていればそのエラー情報をエラー検出信号とともにエラー情報処理部14へ出力する。   The frame check detection unit 13 monitors the output of the memory management unit 1091 of the decoded data frame memory 1090 at the video display timing signal period supplied from the display timing generation unit 11 and outputs a normal storage signal at each video display timing. If the error detection signal is output at the video display timing, the error information is output to the error information processing unit 14 together with the error detection signal.

エラー情報処理部14では、フレーム・チェック検出部13を通してメモリ管理部1091から供給されるピクチャ位置情報等エラー情報をもとに、CPU制御部25を介してMPEG符号化多重側へ当該エラーの発生したピクチャ・フレームあるいはそのピクチャ・フレームを含む1GOP分のビデオ・データの再送を要求するためのビデオ再送要求信号を生成してCPU制御部25へ供給する。   The error information processing unit 14 generates the error to the MPEG encoding multiplexing side via the CPU control unit 25 based on error information such as picture position information supplied from the memory management unit 1091 through the frame check detection unit 13. Then, a video retransmission request signal for requesting retransmission of video data for one GOP including the picture frame or the picture frame is generated and supplied to the CPU control unit 25.

CPU制御部25は、クロック生成部15からの装置内クロック信号と時刻情報生成部16からの装置内時刻情報およびGOP検出部5からのGOP検出信号等をもとにホストメモリ23およびホストCPU18を介してビデオMPEGデコード部8,オーディオMPEGデコード部21およびバッファ・メモリ制御部7を制御してMPEGデコード処理およびバッファ・メモリからの読み出し処理等の制御を行なうとともに、エラー情報処理部14からのビデオ再送要求信号にもとづいて、回線インタフェース部24を通してMPEG符号化多重側へデータ欠落のあったピクチャ・フレーム単位あるいはGOP単位のビデオ・データの再送要求を行なう。
特許第3087826号公報(段落番号[0018]〜[0032])
The CPU control unit 25 controls the host memory 23 and the host CPU 18 based on the in-device clock signal from the clock generation unit 15, the in-device time information from the time information generation unit 16, the GOP detection signal from the GOP detection unit 5, and the like. The video MPEG decoding unit 8, the audio MPEG decoding unit 21, and the buffer memory control unit 7 are controlled through the control of the MPEG decoding process, the reading process from the buffer memory, and the like, and the video from the error information processing unit 14 Based on the retransmission request signal, a retransmission request for video data in units of picture frames or GOPs with missing data is made to the MPEG encoding and multiplexing side through the line interface unit 24.
Japanese Patent No. 3087826 (paragraph numbers [0018] to [0032])

しかしながら上記従来の構成では、受信したピクチャ単位で管理するため、ユーザの制御要求を受信端末側からサーバ側へ送信し、その後、要求に対応する処理結果を受信端末が受信するまで要求する結果を得られず、応答が遅れるという問題点を有していた。   However, in the above-described conventional configuration, in order to manage in units of received pictures, a user control request is transmitted from the receiving terminal side to the server side, and then a request result is received until the receiving terminal receives a processing result corresponding to the request. It was not obtained, and there was a problem that the response was delayed.

例えば図13に従来のMPEGストリーム符号化復号装置の一時停止制御におけるタイミング・チャートを示す。   For example, FIG. 13 shows a timing chart in pause control of a conventional MPEG stream encoding / decoding apparatus.

まず、時刻T−2fから時刻T+2fまでは通常再生時の状態を示している。通常再生時は順番にピクチャ・データ1301a,1302a,1303a,1304aが受信される。時刻T−fの時点においてピクチャ・データ1301aがビデオMPEGデコード部8に入力され、デコード結果の画像データはビデオ表示処理部10に蓄積される。次に時刻Tの時点においてピクチャ・データ1302aがビデオMPEGデコード部8に入力され、デコード結果の画像データ1302bがビデオD/A変換部12に出力される。続いて時刻T+fの時にピクチャ・データ1303aがビデオMPEGデコード部8に入力され、デコードされた画像データ1303bがビデオD/A変換部12に出力される。   First, from time T-2f to time T + 2f, a state during normal reproduction is shown. During normal playback, picture data 1301a, 1302a, 1303a, 1304a are received in order. The picture data 1301a is input to the video MPEG decoding unit 8 at time Tf, and the decoded image data is stored in the video display processing unit 10. Next, at time T, the picture data 1302 a is input to the video MPEG decoding unit 8, and the decoded image data 1302 b is output to the video D / A conversion unit 12. Subsequently, at time T + f, picture data 1303 a is input to the video MPEG decoding unit 8, and decoded image data 1303 b is output to the video D / A conversion unit 12.

時刻T+2fの時点でユーザが一時停止制御を要求すると、CPU制御部は回線インタフェース部24を通してMPEG多重化側へ一時停止制御の要求を行なう。   When the user requests suspension control at time T + 2f, the CPU control unit requests suspension control to the MPEG multiplexing side through the line interface unit 24.

MPEG多重化側は一時停止制御要求を受信するとMPEG符号化多重ストリームの送出を停止する。そしてMPEG多重化側がストリームを停止するまで(=d1)に受信されるピクチャ・データ1305a,1306aまでがデコード出力されることになり、ユーザが一時停止制御を要求してから実際に出力画像が停止するまでに応答遅延時間(=d3)がかかることになる。   When receiving the pause control request, the MPEG multiplexing side stops sending the MPEG encoded multiplexed stream. Until the MPEG multiplexing side stops the stream (= d1), the received picture data 1305a and 1306a are decoded and output, and the output image is actually stopped after the user requests the pause control. It takes a response delay time (= d3) until this is done.

また、そして時刻T’+2f(ただしT’=T+p)の時点で再び、ユーザが再生制御を要求すると、CPU制御部は回線インタフェース部24を通してMPEG多重化側へ再生制御の要求を行なう。MPEG多重化側は一時停止制御要求を受信するとMPEG符号化多重ストリームの送出を開始する。そして一定の制御遅延時間(=d2)経過後、再びストリームの受信が再開されることになり、ユーザが再生制御を要求してから実際に再生画像が出力されるまでに応答遅延時間(=d4)がかかることになる。   When the user requests reproduction control again at time T ′ + 2f (where T ′ = T + p), the CPU control unit requests reproduction control to the MPEG multiplexing side through the line interface unit 24. When the MPEG multiplexing side receives the pause control request, it starts sending an MPEG encoded multiplexed stream. Then, after a certain control delay time (= d2) has elapsed, the reception of the stream is resumed, and the response delay time (= d4) from when the user requests playback control until the playback image is actually output. ).

この様に従来のMPEGストリーム符号化復号装置における一時停止制御では、一時停止を要求した時点T+2fから実際に出力画像が停止するまでにデコード遅延+制御処理遅延相当分の遅延時間を要していた。   As described above, in the pause control in the conventional MPEG stream encoding / decoding apparatus, a delay time corresponding to the decode delay + control processing delay is required from the time T + 2f at which the pause is requested until the output image is actually stopped. .

また、応答時間を高速化するために一時停止要求時にバッファ内のデータを消去する方法も考えられるが、この場合は通常再生の再開時により多くの遅延時間を要したり、出力される映像音声に乱れたりするという問題が生じる。   In order to speed up the response time, a method of erasing the data in the buffer at the time of a pause request is also conceivable. In this case, more delay time is required when normal playback is resumed, and the output video and audio The problem of being disturbed occurs.

本発明は上記従来の問題点を解決するもので、一時停止や早送り、早戻し等の制御要求に対して高速に応答するMPEGストリーム符号化復号装置を提供することを目的とする。   The present invention solves the above-described conventional problems, and an object thereof is to provide an MPEG stream encoding / decoding device that responds at high speed to control requests such as temporary stop, fast forward, and fast reverse.

本発明の請求項1に記載の発明は、MPEG圧縮符号化された画像データおよび音声データとストリーム中の絶対的な時刻基準値を示すプログラム時刻基準値を含むMPEGトランスポート・ストリームを復号するMPEGストリーム復号装置であって、少なくともペイロード情報解析部と、ビデオESバッファ部と、オーディオESバッファ部と、ビデオ・デコーダ部と、オーディオ・デコーダ部と、STC発生部と、システム制御部と、クロック・メモリ部と、ビデオ・タイム・スタンプ書き換えインタフェース部と、オーディオ・タイム・スタンプ書き換えインタフェース部とを備えたものであり、通常再生時においては、ペイロード情報解析部により抽出分離され、それぞれに対応する復号時刻情報、提示時刻情報とともにビデオESバッファ部、オーディオESバッファ部に一時記憶したビデオESデータとオーディオESデータとを所定のタイミングでビデオ・デコーダ、およびオーディオ・デコーダに入力し、一時停止時にはシステム制御部に一時停止制御信号が入力されたタイミングでSTC発生部の出力するSTC値をクロック・メモリ部に保持すると同時にビデオ・デコーダ部への入力とオーディオ・デコーダ部への入力とを停止し、再び、通常再生が要求された時点で、ビデオ・タイム・スタンプ書き換えインタフェースによりビデオESバッファ部に格納されている復号時刻情報及び表示時刻情報を補正し、オーディオ・タイム・スタンプ書き換えインタフェースによりオーディオESバッファ部に格納されている復号時刻情報及び提示時刻情報を補正し、ビデオ・デコーダ部への入力とオーディオ・デコーダ部への入力とを再開するという作用を有する。   According to the first aspect of the present invention, there is provided an MPEG decoding method for decoding an MPEG transport stream including MPEG compressed and encoded image data and audio data and a program time reference value indicating an absolute time reference value in the stream. A stream decoding device comprising at least a payload information analysis unit, a video ES buffer unit, an audio ES buffer unit, a video decoder unit, an audio decoder unit, an STC generation unit, a system control unit, a clock A memory unit, a video time stamp rewriting interface unit, and an audio time stamp rewriting interface unit are provided. During normal playback, they are extracted and separated by the payload information analysis unit, and decoding corresponding to each is performed. Video E with time information and presentation time information The video ES data and audio ES data temporarily stored in the buffer unit and the audio ES buffer unit are input to the video decoder and the audio decoder at a predetermined timing, and a pause control signal is input to the system control unit at the time of pause. At the same time, the STC value output from the STC generation unit is held in the clock memory unit, and at the same time, the input to the video decoder unit and the input to the audio decoder unit are stopped, and when normal playback is requested again. The decoding time information and display time information stored in the video ES buffer unit are corrected by the video time stamp rewriting interface, and the decoding time information stored in the audio ES buffer unit by the audio time stamp rewriting interface and Correct the presentation time information It has the effect of restarting the inputs to the input and the audio decoder section to the video decoder section.

請求項2に記載の発明は、MPEG圧縮符号化された画像データおよび音声データとストリーム中の相対的な時刻基準値を示す固定のプログラム時刻基準値を含むMPEGトランスポート・ストリームを復号するMPEGストリーム復号装置であって、少なくともペイロード情報解析部と、ビデオESバッファ部と、オーディオESバッファ部と、ビデオ・デコーダ部と、オーディオ・デコーダ部と、STC発生部と、システム制御部と、クロック・メモリ部と、STC補正インタフェースとを備えたものであり、通常再生時においては、ペイロード情報解析部により抽出分離され、それぞれに対応する復号時刻情報、提示時刻情報とともにビデオESバッファ部、オーディオESバッファ部に一時記憶したビデオESデータとオーディオESデータとを所定のタイミングでビデオ・デコーダ、およびオーディオ・デコーダに入力し、一時停止時にはシステム制御部に一時停止制御信号が入力されたタイミングでSTC発生部の出力するSTC値をクロック・メモリ部に保持すると同時にビデオ・デコーダ部への入力とオーディオ・デコーダ部への入力とを停止し、再び、通常再生が要求された時点で、STC補正インタフェースによりSTC発生部の出力するSTC値をクロック・メモリ部に保持されたSTC値に補正し、ビデオ・デコーダ部への入力とオーディオ・デコーダ部への入力とを再開するという作用を有する。   According to a second aspect of the present invention, there is provided an MPEG stream for decoding an MPEG transport stream that includes MPEG compression encoded image data and audio data and a fixed program time reference value indicating a relative time reference value in the stream. A decoding device comprising at least a payload information analysis unit, a video ES buffer unit, an audio ES buffer unit, a video decoder unit, an audio decoder unit, an STC generation unit, a system control unit, and a clock memory And a STC correction interface, and during normal playback, the video ES buffer unit and the audio ES buffer unit are extracted and separated by the payload information analysis unit, together with the corresponding decoding time information and presentation time information. Video ES data and audio E stored temporarily Data is input to the video decoder and the audio decoder at a predetermined timing, and the STC value output from the STC generation unit is input to the clock memory unit at the timing when the suspension control signal is input to the system control unit at the time of suspension. At the same time, the input to the video decoder unit and the input to the audio decoder unit are stopped, and when normal reproduction is requested again, the STC value output from the STC generation unit by the STC correction interface is again stored in the clock memory. The STC value held in the unit is corrected and the input to the video decoder unit and the input to the audio decoder unit are resumed.

請求項3に記載の発明は、MPEG圧縮符号化された画像データおよび音声データとストリーム中の相対的な時刻基準値を示す固定のプログラム時刻基準値を含むMPEGトランスポート・ストリームを復号するMPEGストリーム復号装置であって、少なくともペイロード情報解析部と、ビデオESバッファ部と、オーディオESバッファ部と、ビデオ・デコーダ部と、オーディオ・デコーダ部と、STC発生部と、システム制御部と、クロック・メモリ部と、STC補正インタフェースと、タイム・スタンプ・メモリ部とを備えたものであり、早送りまたは早戻し制御時に、システム制御部に早送りまたは早戻し制御要求が入力されたタイミングでSTC発生部の出力するSTC値をクロック・メモリ部に保持し、また、タイム・スタンプ・メモリ部に、ビデオESバッファ部に最後に受信したビデオESデータの復号時刻情報の値を保持し、再び、通常再生が要求された時点で、最初に受信されるビデオESデータの復号時刻情報とタイム・スタンプ・メモリ部に保持された時刻値との差分値と、クロック・メモリ部に記憶されたSTC値とからSTC発生部の発生するSTC値を補正するという作用を有する。   According to a third aspect of the present invention, there is provided an MPEG stream for decoding an MPEG transport stream including MPEG compression encoded image data and audio data and a fixed program time reference value indicating a relative time reference value in the stream. A decoding device comprising at least a payload information analysis unit, a video ES buffer unit, an audio ES buffer unit, a video decoder unit, an audio decoder unit, an STC generation unit, a system control unit, and a clock memory Unit, an STC correction interface, and a time stamp memory unit, and output of the STC generation unit at the timing when a fast-forward or fast-reverse control request is input to the system control unit during fast-forward or fast-reverse control The STC value to be stored is held in the clock memory unit, and the time The value of the decoding time information of the video ES data received last in the video ES buffer unit is held in the memory unit, and the decoding time information of the video ES data received first when normal playback is requested again And the STC value generated by the STC generation unit from the difference value between the time value held in the time stamp memory unit and the STC value stored in the clock memory unit.

請求項4に記載の発明は、MPEG圧縮符号化された画像データおよび音声データとストリーム中の相対的な時刻基準値を示す固定のプログラム時刻基準値を含むMPEGトランスポート・ストリームを復号するMPEGストリーム復号装置であって、少なくともペイロード情報解析部と、ビデオESバッファ部と、オーディオESバッファ部と、ビデオ・デコーダ部と、オーディオ・デコーダ部と、STC発生部と、システム制御部と、クロック・メモリ部と、STC補正インタフェースとビデオ・リオーダリング・バッファ部とを備え、通常再生時においては、ペイロード情報解析部により抽出分離され、それぞれに対応する復号時刻情報、提示時刻情報とともにビデオESバッファ部、オーディオESバッファ部に一時記憶したビデオESデータとオーディオESデータとを所定のタイミングでビデオ・デコーダ、およびオーディオ・デコーダに入力し、一時停止時には同時にビデオ・デコーダ部への入力およびビデオ・リオーダリング・バッファ部の出力、オーディオ・デコーダ部への入力とを停止し、受信データが中断されたタイミングでSTC発生部の出力するSTC値をクロック・メモリ部に保持し、再び、通常再生が要求された時点で、STC補正インタフェースによりSTC発生部の出力するSTC値をクロック・メモリ部に保持されたSTC値に補正し、ビデオESバッファ部、オーディオESバッファ部、ビデオ・リオーダリング・バッファ部に蓄積された各データの復号時刻情報、提示時刻情報とを補正し、ビデオ・デコーダ部への入力およびビデオ・リオーダリング・バッファ部の出力とオーディオ・デコーダ部への入力とを再開する、という作用を有する   According to a fourth aspect of the present invention, there is provided an MPEG stream for decoding an MPEG transport stream including MPEG compressed and encoded image data and audio data and a fixed program time reference value indicating a relative time reference value in the stream. A decoding device comprising at least a payload information analysis unit, a video ES buffer unit, an audio ES buffer unit, a video decoder unit, an audio decoder unit, an STC generation unit, a system control unit, and a clock memory Unit, an STC correction interface, and a video reordering buffer unit. During normal playback, the video information is extracted and separated by the payload information analysis unit, and the video ES buffer unit together with the corresponding decoding time information and presentation time information, Video temporarily stored in the audio ES buffer S data and audio ES data are input to a video decoder and an audio decoder at a predetermined timing, and simultaneously input to the video decoder unit and an output of the video reordering buffer unit at the time of pause, an audio decoder unit When the received data is interrupted, the STC value output from the STC generator is held in the clock memory unit. When normal reproduction is requested again, STC is generated by the STC correction interface. The STC value output from the unit is corrected to the STC value held in the clock memory unit, and the decoding time information and presentation of each data stored in the video ES buffer unit, audio ES buffer unit, and video reordering buffer unit are presented. The time information is corrected and input to the video decoder and video Resume the inputs to the output and the audio decoder section of Daringu buffer unit, has the effect of

以上のように本発明はユーザの制御要求に対してかつ迅速かつシームレスな応答出力が得られるという優れた効果が得られる。   As described above, the present invention provides an excellent effect that a quick and seamless response output can be obtained in response to a user's control request.

以下、本発明の実施の形態について、図1から図11を用いて説明する。   Hereinafter, embodiments of the present invention will be described with reference to FIGS.

(実施の形態1)
図1は本発明のMPEG符号化ストリーム復号装置の機能ブロック図である。
(Embodiment 1)
FIG. 1 is a functional block diagram of an MPEG encoded stream decoding apparatus according to the present invention.

図1において、101は送信側からリアルタイムに生成されるPCR,PTS,DTSを含んだMPEGトランスポート・ストリームを受信するストリーム受信部、102はストリーム受信部101が受信したMPEGトランスポート・ストリームを構成する個々のトランスポート・ストリーム・パケットのヘッダ情報を解析するヘッダ情報解析部、103はトランスポート・ストリーム・パケットのアダプテーション・フィールド情報を解析するアダプテーション・フィールド情報解析部、104はトランスポート・ストリーム・パケットのペイロード情報を解析するペイロード情報解析部、105はビデオESバッファ部、106はビデオ・デコーダ部、107はビデオ・リオーダリング・バッファ部108は出力モニタ部、109はオーディオESバッファ部、110はオーディオ・デコーダ部、111は出力スピーカ部、112はシステム制御部、113はSTC発生部、114はクロック・メモリ部である。   In FIG. 1, 101 is a stream receiver that receives an MPEG transport stream including PCR, PTS, and DTS generated in real time from the transmission side, and 102 is an MPEG transport stream received by the stream receiver 101. A header information analysis unit for analyzing header information of individual transport stream packets to be performed; 103, an adaptation field information analysis unit for analyzing adaptation field information of transport stream packets; and 104, a transport stream packet Payload information analysis unit for analyzing packet payload information; 105, video ES buffer unit; 106, video decoder unit; 107, video reordering buffer unit 108: output monitor unit; Dio ES buffer unit, 110 audio decoder, 111 an output speaker, 112 system control unit, 113 STC generating unit, 114 is a clock memory unit.

115はビデオ・タイム・スタンプ書き換えインタフェースである。116はオーディオ・タイム・スタンプ書き換えインタフェースである。   Reference numeral 115 denotes a video time stamp rewriting interface. Reference numeral 116 denotes an audio time stamp rewriting interface.

図2はMPEG画像符号化における符号化および復号時のフレーム順序を説明する模式図である。   FIG. 2 is a schematic diagram for explaining the frame order during encoding and decoding in MPEG image encoding.

図2において201aから215aは圧縮符号化前の画像データの各フレームの並び順序を示す。また201bから215b圧縮符号化後のピクチャの並びを示す。201cから215cは復号後の画像データを表示順に並べなおした状態を示す。   In FIG. 2, 201a to 215a indicate the arrangement order of the frames of the image data before compression encoding. In addition, the arrangement of pictures after 201b to 215b compression coding is shown. Reference numerals 201c to 215c denote states in which the decoded image data are rearranged in the display order.

MPEG符号化において、1枚の動画像画面(フレーム)データをピクチャと呼び、符号化の型に応じて、I(Intra−coded)ピクチャ、P(Predictive−coded)ピクチャ、B(Bidirectionally−predictive−coded)ピクチャと呼ばれる3種類のピクチャが使用される。この時、Iピクチャは、入力された画像フレーム・データを単独で符号化するフレームである。Pピクチャは順方向の動き補償予測を用いるフレームである。Bピクチャは双方向予測を用いるフレームである。そして連続するピクチャ・データを所定数毎に区切ったGOP(Group Of Pictures)と呼ばれる単位でフレーム間予測が独立して処理される。   In MPEG encoding, one moving picture screen (frame) data is called a picture, and I (Intra-coded) picture, P (Predictive-coded) picture, B (Bidirectionally-predictive-), depending on the encoding type. Three types of pictures called “coded” pictures are used. At this time, the I picture is a frame that independently encodes the input image frame data. A P picture is a frame that uses motion compensation prediction in the forward direction. A B picture is a frame that uses bidirectional prediction. Then, inter-frame prediction is independently processed in a unit called GOP (Group Of Pictures) in which continuous picture data is divided every predetermined number.

各GOPはその基準ピクチャとなるIピクチャを最初に符号化する。このため、GOP構造上Iピクチャとなる203aフレームを単独で符号化した後(203bとなる)、Bピクチャとなる201aフレーム,202aフレームは203aフレームを参照して順に符号化され、圧縮符号化ストリーム(エレメンタリ・ストリーム)を形成する(それぞれ201b,202bとなる)。   Each GOP first encodes an I picture as its reference picture. For this reason, after the 203a frame that is an I picture in the GOP structure is encoded independently (becomes 203b), the 201a frame and the 202a frame that are B pictures are sequentially encoded with reference to the 203a frame, and a compressed encoded stream (Elementary stream) is formed (respectively 201b and 202b).

204a,205a,206aにおいても同様に、203aを参照して206aを符号化し(206bとなる)、204a,205aは203aと206aとを参照して順に符号化する(204b,205bとなる)。以降、同様の処理を繰り返す。圧縮符号化ストリームとしては符号化処理の順序に従い203b,201b、202b,206b,204b,205b,…という順序で構成される。   Similarly, in 204a, 205a and 206a, 206a is encoded with reference to 203a (becomes 206b), and 204a and 205a are sequentially encoded with reference to 203a and 206a (becomes 204b and 205b). Thereafter, the same processing is repeated. The compressed encoded stream is configured in the order of 203b, 201b, 202b, 206b, 204b, 205b,... According to the order of the encoding process.

一方、復号時は、圧縮符号化ストリームから203b,201b、202b,206b,204b,205b,…の順で符号化データを受け取り、その順序で復号を開始する。   On the other hand, at the time of decoding, encoded data is received in the order of 203b, 201b, 202b, 206b, 204b, 205b,... From the compressed encoded stream, and decoding is started in that order.

ただし、復号順序が元の入力画像と異なるため、復号後の画像を元の画像フレーム順序に並べ替えて表示する必要がある。   However, since the decoding order is different from the original input image, it is necessary to rearrange the decoded images in the original image frame order for display.

図3はMPEGトランスポート・ストリームの階層構成を示す模式図である。   FIG. 3 is a schematic diagram showing a hierarchical structure of an MPEG transport stream.

ビデオおよびオーディオのエレメンタリ・ストリーム(ES)にはそれぞれアクセス・ユニット(ビデオは1ピクチャ、オーディオは1オーディオ・フレーム)と呼ばれる復号・再生の単位がある。パケタイズド・エレメンタリ・ストリーム(PES)はエレメンタリ・ストリームをアクセス・ユニット単位で分割し、ヘッダを付加したものであり、PESパケット・ヘッダにはそのアクセス・ユニット単位毎にどの基準時刻で復号し、いつ再生すればよいかを示すタイム・スタンプがそれぞれ、プレゼンテーション・タイム・スタンプ(PTS),デコーディング・タイム・スタンプ(DTS)として記述される。そして復号器のSTCと各アクセス・ユニットのPTSが一致した時に、各アクセス・ユニットの復号結果が復号器から出力される。また、MPEG−2ビデオで符号化されたストリームは復号する順序と再生する順序が異なる場合があるため、この場合にはPTSに加えて復号する時刻を示すDTSが付加される。これらのタイム・スタンプにより映像と音声を同期再生することができる。   Each elementary stream (ES) of video and audio has a decoding / playback unit called an access unit (one picture for video and one audio frame for audio). A packetized elementary stream (PES) is obtained by dividing an elementary stream in units of access units and adding a header. The PES packet header is decoded at any reference time for each unit of access units. Time stamps indicating whether or not playback should be performed are described as a presentation time stamp (PTS) and a decoding time stamp (DTS), respectively. When the STC of the decoder matches the PTS of each access unit, the decoding result of each access unit is output from the decoder. In addition, since a stream encoded with MPEG-2 video may have a different decoding order and reproduction order, a DTS indicating a decoding time is added to the PTS in this case. With these time stamps, video and audio can be played back synchronously.

さらに、PESパケット・ヘッダには個別のストリーム種別を識別するコード(ストリームID)やパケットのサイズ、その他の制御情報など(スクランブルの有無や著作権の有無、CRCの付加など)が記述される。   Further, a code (stream ID) for identifying an individual stream type, a packet size, other control information (scrambled presence / absence of copyright, CRC addition, etc.) are described in the PES packet header.

そしてビデオ・エレメンタリ・ストリームやオーディオ・エレメンタリ・ストリームなどの個別ストリームが収められたPESパケットは複数のトランスポート・ストリーム(TS)・パケットのペイロードに分割して伝送される。TSパケットは188バイトの固定長パケットであり、4バイト固定長のパケット・ヘッダと可変長のアダプテーション・フィールド(adaptation field)およびペイロード(payload)で構成される。パケット・ヘッダにはPID(パケット識別子)や各種のフラグが定義されている。このPIDにより個々のエレメンタリ・ストリームが識別される。adaptation_fieldとpayloadはどちらかだけが存在する場合と両方が存在する場合があり、その有無はパケット・ヘッダ内のフラグ(adaptation_field_control)により示される。   A PES packet containing individual streams such as a video elementary stream and an audio elementary stream is divided into a plurality of transport stream (TS) packet payloads and transmitted. The TS packet is a 188-byte fixed-length packet, and includes a 4-byte fixed-length packet header, a variable-length adaptation field (adaptation field), and a payload (payload). PID (packet identifier) and various flags are defined in the packet header. Each elementary stream is identified by this PID. There is a case where only one of adaptation_field and payload is present or both, and the presence / absence thereof is indicated by a flag (adaption_field_control) in the packet header.

adaptation_fieldにはPCR(Program_Clock_Reference)などの情報の伝送およびTSパケットを188バイト固定長にするためのTSパケット内でのスタッフィング機能がある。PCRは27MHzのタイム・スタンプで、符号化した時の基準時刻を復号器のSTCで再現するためにPCRの値が参照される。   The adaptation_field has a stuffing function in the TS packet for transmitting information such as PCR (Program_Clock_Reference) and making the TS packet a fixed length of 188 bytes. The PCR is a 27 MHz time stamp, and the value of the PCR is referred to reproduce the reference time when encoded by the STC of the decoder.

図3において301から303はそれぞれ連続するビデオ・アクセス・ユニットを示し、304から307はそれぞれ連続するオーディオ・アクセス・ユニットを示す。308から310は連続するビデオPESパケットを示し、311から314は連続するオーディオPESパケットを示す。315から325はそれぞれ連続するTSパケットを示す。   In FIG. 3, reference numerals 301 to 303 denote continuous video access units, and reference numerals 304 to 307 denote continuous audio access units. Reference numerals 308 to 310 denote continuous video PES packets, and reference numerals 311 to 314 denote continuous audio PES packets. Reference numerals 315 to 325 denote consecutive TS packets.

図4はPESパケットの構造を示す模式図である。   FIG. 4 is a schematic diagram showing the structure of a PES packet.

図4において401はPESパケットの開始符号であるパケット開始符号プリフィックス、402はPESパケット内のデータ・ストリームの種類を示すストリームID、403はPESパケットの長さを示すPESパケット長、404はPESヘッダにおけるオプションデータとなるPESヘッダ・オプション、405はパケット長を調整するために挿入されるスタッフィング・バイト、406はPESパケットのデータ部に相当するESデータが配置されるPESパケット・データ・バイトである。PESヘッダ・オプションにおいて407は常に2ビットの固定値‘10’となる固定ビット、408はPES優先度や著作権の有無を示すフラグ1、409はパケット中のPTS,DTSフィールドの有無を示すPTS_DTSフラグ、410はPESヘッダ・データ中の各種データ・フィールドの有無を示すフラグ2、411はPESヘッダの長さを示すPESヘッダ・データ長、412はオプション・フィールド、413はこのPESパケット中に始まるアクセス・ユニットの出力時刻および復号時刻を90kHzのクロックでカウントした値を示すPTSおよびDTS、414はフラグ2で存在が示されたデータが配置されるデータ・フィールドである。   4, 401 is a packet start code prefix which is a start code of a PES packet, 402 is a stream ID indicating the type of data stream in the PES packet, 403 is a PES packet length indicating the length of the PES packet, and 404 is a PES header. 405 is a stuffing byte inserted to adjust the packet length, and 406 is a PES packet data byte in which ES data corresponding to the data portion of the PES packet is arranged. . In the PES header option, 407 is a fixed bit which is always a fixed value “10” of 2 bits, 408 is a flag 1 indicating the presence or absence of PES priority or copyright, and 409 is a PTS_DTS indicating the presence or absence of a PTS or DTS field in the packet. Flag, 410 indicates the presence or absence of various data fields in the PES header data, 411 indicates a PES header data length indicating the length of the PES header, 412 indicates an option field, and 413 starts in this PES packet PTS and DTS 414 indicating values obtained by counting the output time and decoding time of the access unit with a clock of 90 kHz are data fields in which data indicated by the flag 2 is arranged.

図5(a)はTSパケットの構造を示す模式図である。先に述べたようにTSパケットは188バイトの固定長パケットで、図5(a)に示すように4バイトのパケット・ヘッダと、可変長のアダプテーション・フィールドおよびペイロードで構成される。   FIG. 5A is a schematic diagram showing the structure of a TS packet. As described above, the TS packet is a 188-byte fixed-length packet, and includes a 4-byte packet header, a variable-length adaptation field, and a payload as shown in FIG.

図5(a)において501はTSパケットの先頭を示す同期バイト、502はこのTSパケットの誤りの有無を示すトランスポート・エラー・インジケータ、503はこのTSパケット中にPES、セクション等の先頭バイトが含まれているかどうかを示すペイロード・ユニット開始インジケータ、504はこのTSパケットの優先度を示すトランスポート優先度、505はこのTSパケットに含まれるストリーム番号を識別するPID、506はペイロード部のスクランブルの有無を示すトランスポート・スクランブル制御、507はアダプテーション・フィールドおよびペイロードの有無を示すアダプテーション・フィールド制御、508はPID毎のパケットの連続性を示す連続性指標、509はアダプテーション・フィールド制御507の値に応じてアダプテーション・フィールドまたはペイロードまたはそれらの両方となる。   In FIG. 5A, 501 is a synchronization byte indicating the head of a TS packet, 502 is a transport error indicator indicating the presence or absence of an error in the TS packet, and 503 is a head byte such as PES or section in the TS packet. Payload unit start indicator indicating whether or not it is included, 504 is a transport priority indicating the priority of this TS packet, 505 is a PID identifying a stream number included in this TS packet, 506 is a scramble of the payload part Transport scramble control indicating presence / absence, 507 is an adaptation field and adaptation field control indicating presence / absence of payload, 508 is a continuity index indicating continuity of packets for each PID, and 509 is adaptation field control 5 The adaptation field or payload, or both depending on the value of 7.

図5(b)はTSパケットにおけるアダプテーション・フィールドの構造を示す模式図である。   FIG. 5B is a schematic diagram showing the structure of the adaptation field in the TS packet.

図5(b)において510はアダプテーション・フィールドの長さを示すアダプテーション・フィールド長、511はパケットの不連続を示す不連続性インジケータ、512はこのTSパケットがランダム・アクセスする場合のポイントとなることを示すランダム・アクセス・インジケータ、513はこのTSパケットのペイロードの優先度を示すエレメンタリ・ストリーム優先度インジケータ、514はアダプテーション・フィールド中の各データの有無を示すフラグ、515はフラグ514に存在が示されたデータが配置されるオプション・フィールド、516はパケットの長さを調整するためのスタッフィング・フィールドである。   In FIG. 5B, 510 is an adaptation field length indicating the length of the adaptation field, 511 is a discontinuity indicator indicating packet discontinuity, and 512 is a point when this TS packet is randomly accessed. 513 is an elementary stream priority indicator indicating the priority of the payload of this TS packet, 514 is a flag indicating the presence / absence of each data in the adaptation field, 515 is present in the flag 514 An option field 516 in which the processed data is arranged is a stuffing field for adjusting the length of the packet.

図5(c)はアダプテーション・フィールドにおけるオプション・フィールドの構造を示す模式図である。   FIG. 5C is a schematic diagram showing the structure of the option field in the adaptation field.

図5(c)において517は27MHzでカウントしたストリームの現在時刻を示すPCR(プログラム時刻基準値)、518はPCR517の値を付け替えた場合に元の値を残しておくためのOPCR(オリジナルPCR)、519は編集ポイントまでの同一PIDでのTSパケット数を示すスプライス・カウントダウン、520はユーザ独自定義のデータを示すトランスポート・プライベート・データ、521は拡張されたアダプテーション・フィールド・データを示すアダプテーション・フィールド拡張である。   In FIG. 5C, 517 is a PCR (program time reference value) indicating the current time of the stream counted at 27 MHz, and 518 is an OPCR (original PCR) for leaving the original value when the value of the PCR 517 is changed. 519 is a splice countdown indicating the number of TS packets with the same PID up to the editing point, 520 is transport private data indicating user-defined data, 521 is an adaptation field indicating expanded adaptation field data It is a field extension.

図6(a),(b)はビデオESバッファ105に蓄積されるデータの構成を示す模式図である。図6に示すようにビデオESバッファ105にはピクチャ・データとともに対応するPTSおよびDTSの値が蓄積される。また、DTSを持たないBピクチャ・データを受信した場合にはDTSの値としてPTSと同じ値を記憶するものとする。   6A and 6B are schematic diagrams showing the configuration of data stored in the video ES buffer 105. FIG. As shown in FIG. 6, the video ES buffer 105 stores the corresponding PTS and DTS values together with the picture data. When B picture data without DTS is received, the same value as PTS is stored as the value of DTS.

以上のように構成されたMPEG符号化ストリーム復号装置について図1,図6を用いてその動作を説明する。   The operation of the MPEG encoded stream decoding apparatus configured as described above will be described with reference to FIGS.

通常再生時にはストリーム受信部101で受信したMPEGトランスポート・ストリームは各TSパケット毎にヘッダ情報解析部102によってヘッダ情報が解析され、PIDに従って画像データまたは音声データに識別される。そして画像データについてはビデオESバッファ部105に、音声データについてはオーディオESバッファ部109にそれぞれ蓄積される。   During normal playback, the header information of the MPEG transport stream received by the stream receiving unit 101 is analyzed by the header information analysis unit 102 for each TS packet, and is identified as image data or audio data according to the PID. The image data is stored in the video ES buffer unit 105, and the audio data is stored in the audio ES buffer unit 109.

ビデオESバッファ部105にピクチャ単位で蓄積されたデータは、STC発生部113の出力するSTCの値がDTSの値と一致する毎にビデオ・デコーダ部106に入力される。そして復号された画像データは、対応するPTSの値がDTSの値と等しい場合にはそのまま出力モニタ部108を通して出力表示され、DTSに比べて遅れる場合には、一旦、ビデオ・リオーダリング・バッファ107に蓄積され出力タイミングが調整される。   Data accumulated in units of pictures in the video ES buffer unit 105 is input to the video decoder unit 106 every time the STC value output from the STC generation unit 113 matches the DTS value. The decoded image data is output and displayed as it is through the output monitor unit 108 when the corresponding PTS value is equal to the DTS value. When the decoded image data is delayed as compared with the DTS, the video reordering buffer 107 is temporarily displayed. And the output timing is adjusted.

オーディオESバッファ部109にオーディオ・フレーム単位で蓄積されたデータもビデオと同様にデコードされる。   Data stored in the audio ES buffer unit 109 in units of audio frames is also decoded in the same manner as video.

そして、映像データおよび音声データそれぞれのDTSで示されるデコードのタイミングとPTSで示される出力のタイミングをSTCと合わせることで、出力される映像と音声とを同期させることができる。   Then, by synchronizing the decoding timing indicated by the DTS and the output timing indicated by the PTS of the video data and the audio data with the STC, the output video and audio can be synchronized.

ユーザから一時停止制御が要求された場合、一時停止制御情報がシステム制御部112に入力される。この時、システム制御部は一時停止制御が要求されたタイミングのSTC発生部113から出力されるSTC値をクロック・メモリ部114に記憶する。また、同時にビデオ・デコーダ部106およびオーディオ・デコーダ部110のデータ入力と出力モニタ部108および出力スピーカ部111のデータ入力を停止する。   When the suspension control is requested by the user, the suspension control information is input to the system control unit 112. At this time, the system control unit stores the STC value output from the STC generation unit 113 at the timing when the suspension control is requested in the clock memory unit 114. At the same time, the data input of the video decoder unit 106 and the audio decoder unit 110 and the data input of the output monitor unit 108 and the output speaker unit 111 are stopped.

また、ユーザからの一時停止制御要求は図には示さない通信回線を通して送信サーバ側へも通知され、一定時間の後、送信サーバからのストリームの送出が停止される。   Further, the suspension control request from the user is also notified to the transmission server side through a communication line not shown in the figure, and after a certain time, the transmission of the stream from the transmission server is stopped.

その結果、例えば図6(a)に示すようなデータがビデオESバッファには蓄積される。図6(a)ではP6ピクチャ・データ,B4ピクチャ・データ、B5ピクチャ・データの3つのピクチャ・データと対応するPTS,DTSの値が記憶されている状態を示している。   As a result, for example, data as shown in FIG. 6A is accumulated in the video ES buffer. FIG. 6A shows a state in which three picture data of P6 picture data, B4 picture data, and B5 picture data and corresponding PTS and DTS values are stored.

その後、再びユーザから再生制御が要求された場合、再生制御情報がシステム制御部112に入力される。この時、システム制御部は再生制御が要求されたタイミングのSTC発生部113から出力されるSTC値を読み出し、クロック・メモリ部114に記憶したSTC値との差分値から一時停止状態であった時間(=p)を算出する。そして、ビデオ・タイム・スタンプ書き換えインタフェース115、オーディオ・タイム・スタンプ書き換えインタフェース116によりビデオESバッファ部に記憶された各ピクチャ・データに対応する一時停止時間分加算した値として更新する。図6(a)の状態からPTS,DTSを更新した結果の状態を図6(b)に示す。   Thereafter, when the user requests reproduction control again, reproduction control information is input to the system control unit 112. At this time, the system control unit reads the STC value output from the STC generation unit 113 at the timing when the reproduction control is requested, and the time during which the system control unit has been in a suspended state from the difference value from the STC value stored in the clock memory unit 114 (= P) is calculated. Then, the video time stamp rewriting interface 115 and the audio time stamp rewriting interface 116 are updated as a value obtained by adding the pause time corresponding to each picture data stored in the video ES buffer unit. FIG. 6B shows the result of updating the PTS and DTS from the state of FIG.

オーディオESバッファ部に記憶された各オーディオ・フレーム・データのPTS,DTSについても同様に更新する。また、ビデオ・デコーダ部106およびオーディオ・デコーダ部110のデータ入力と出力モニタ部108および出力スピーカ部111のデータ入力を再開する。   The PTS and DTS of each audio frame data stored in the audio ES buffer unit are similarly updated. Further, the data input of the video decoder unit 106 and the audio decoder unit 110 and the data input of the output monitor unit 108 and the output speaker unit 111 are resumed.

以上の結果バッファに蓄積されたデータのPTS,DTSを再生再開時のSTC発生部113の発生するSTCに合わせることが可能となり、バッファに蓄積されたデータから再生を再開することが可能となる。   As a result, the PTS and DTS of the data stored in the buffer can be matched with the STC generated by the STC generation unit 113 when playback is resumed, and playback can be resumed from the data stored in the buffer.

図7は本発明の「再生〜一時停止〜再生」への状態遷移時のビデオ・データの様子を示すタイミング・チャート図である。   FIG. 7 is a timing chart showing the state of the video data at the time of the state transition from “reproduction to pause to reproduction” according to the present invention.

まず、時刻T−2fから時刻T+2fまでは通常再生時の状態を示している。通常再生時は順番にピクチャ・データ701a,702a,703a,704aが受信される。これらは各ピクチャの対応するPTS,DTSの値と共にバッファに蓄積される。時刻T−fの時点においてピクチャ・データ701aがビデオ・デコーダ部106に入力され、デコード結果の画像データはビデオ・リオーダリング・バッファ107に蓄積される。次に時刻Tの時点においてピクチャ・データ702aがビデオ・デコーダ部106に入力され、デコード結果の画像データ702bが出力モニタ部108に出力される。続いて時刻T+fの時にピクチャ・データ703aがビデオ・デコーダ部106に入力され、デコードされた画像データ703bが出力モニタ部108に出力される。   First, from time T-2f to time T + 2f, a state during normal reproduction is shown. During normal playback, picture data 701a, 702a, 703a, and 704a are received in order. These are stored in the buffer together with the corresponding PTS and DTS values of each picture. At time Tf, picture data 701 a is input to the video decoder unit 106, and image data obtained as a result of decoding is stored in the video reordering buffer 107. Next, at time T, picture data 702 a is input to the video decoder unit 106, and image data 702 b as a decoding result is output to the output monitor unit 108. Subsequently, at time T + f, picture data 703 a is input to the video decoder unit 106, and decoded image data 703 b is output to the output monitor unit 108.

時刻T+2fの時点でユーザが一時停止制御を要求すると、直ちにビデオ・デコーダ部106への入力および出力モニタ部108への入力を停止する。その後、受信されるピクチャ・データ705a,706aについてはビデオESバッファ部105に蓄積する。   When the user requests pause control at time T + 2f, the input to the video decoder unit 106 and the input to the output monitor unit 108 are stopped immediately. Thereafter, the received picture data 705 a and 706 a is stored in the video ES buffer unit 105.

そして時刻T’+2f(ただしT’=T+p)の時点で再びユーザが再生制御を要求すると、ビデオ・タイム・スタンプ書き換えインタフェース115によりビデオESバッファ部105に蓄積されたデータのPTS,DTSをそれぞれ更新し、ビデオ・デコーダ部106への入力および出力モニタ部108への入力を再開する。   When the user again requests playback control at time T ′ + 2f (where T ′ = T + p), the video time stamp rewriting interface 115 updates the PTS and DTS of the data stored in the video ES buffer unit 105, respectively. Then, the input to the video decoder unit 106 and the input to the output monitor unit 108 are resumed.

この結果、まず、ピクチャ・データ704aがビデオ・デコーダ部106に入力され、デコード結果の画像データはビデオ・リオーダリング・バッファ107に蓄積される。同時にビデオ・リオーダリング・バッファ107から画像データ701bが読み出され出力モニタ部108から出力される。続いて、時刻T’+3fの時点において、ピクチャ・データ705aがビデオ・デコーダ部106に入力され、デコード結果の画像データ705bが出力モニタ部108に出力される。以降も同様に処理することによって一時停止状態からシームレスに画像データを出力することが可能となる。また、オーディオ・データについてもビデオ・データと同様に処理することで、映像と音声を同期させることができる。   As a result, first, the picture data 704 a is input to the video decoder unit 106, and the decoded image data is stored in the video reordering buffer 107. At the same time, the image data 701 b is read from the video reordering buffer 107 and output from the output monitor unit 108. Subsequently, at time T ′ + 3f, the picture data 705 a is input to the video decoder unit 106, and the decoded image data 705 b is output to the output monitor unit 108. By performing the same processing thereafter, it is possible to output image data seamlessly from the paused state. Also, by processing audio data in the same way as video data, video and audio can be synchronized.

以上のように本実施の形態によれば通常再生時から一時停止制御時にSTC値を保持する時刻基準値保持手段を設けることにより、制御要求への応答時間を高速化し、また一時停止状態からの再生制御時にバッファ内のPTS,DTSを更新することにより高速かつシームレスに再生を再開することが可能となる。   As described above, according to the present embodiment, by providing the time reference value holding means for holding the STC value from the normal reproduction to the pause control, the response time to the control request is increased, and the time from the pause state is increased. By updating the PTS and DTS in the buffer during playback control, playback can be resumed quickly and seamlessly.

(実施の形態2)
図8は本発明におけるMPEG符号化ストリーム復号装置の構成を示すブロック図である。
(Embodiment 2)
FIG. 8 is a block diagram showing the configuration of the MPEG encoded stream decoding apparatus according to the present invention.

図8において図1と同じ符号を持つ各構成要素については図1と同じ意味とする。図1の構成と異なるのはシステム制御部112がビデオ・タイム・スタンプ書き換えインタフェース115、オーディオ・タイム・スタンプ書き換えインタフェース116によりビデオESバッファ部105およびビデオESバッファ部109のデータを更新するのではなく、STC補正インタフェース801によりSTC発生部113の発生するSTC値を変更するようにした点である。   8, each component having the same reference numeral as in FIG. 1 has the same meaning as in FIG. 1 is different from the configuration of FIG. 1 in that the system control unit 112 does not update the data of the video ES buffer unit 105 and the video ES buffer unit 109 by the video time stamp rewriting interface 115 and the audio time stamp rewriting interface 116. The STC correction interface 801 changes the STC value generated by the STC generator 113.

また、本発明において受信されるMPEGトランスポート・ストリームは送信側に予めファイルとして記録された場合の様に、ストリーム中に固定的な値としてPCR,PTS,DTSの値が含まれているものとする。   In addition, the MPEG transport stream received in the present invention includes PCR, PTS, and DTS values as fixed values in the stream, as in the case where the file is recorded in advance on the transmission side. To do.

以上の様に構成されたMPEG符号化ストリーム復号装置について、図8を用いてその動作を説明する。   The operation of the MPEG encoded stream decoding apparatus configured as described above will be described with reference to FIG.

まず、ユーザから一時停止制御が要求された場合、一時停止制御情報がシステム制御部112に入力される。この時、システム制御部112は一時停止制御が要求されたタイミングのSTC発生部113から出力されるSTC値をクロック・メモリ部114に記憶する。また、同時にビデオ・デコーダ部106およびオーディオ・デコーダ部110のデータ入力と出力モニタ部108および出力スピーカ部111のデータ入力を停止する。   First, when the user requests the suspension control, the suspension control information is input to the system control unit 112. At this time, the system control unit 112 stores the STC value output from the STC generation unit 113 at the timing when the suspension control is requested in the clock memory unit 114. At the same time, the data input of the video decoder unit 106 and the audio decoder unit 110 and the data input of the output monitor unit 108 and the output speaker unit 111 are stopped.

その後、再びユーザから再生制御が要求された場合、再生制御情報がシステム制御部112に入力される。この時、システム制御部112は再生制御が要求されたタイミングで、クロック・メモリ部114に記憶したSTC値を読み出し、STC補正インタフェース801によりSTC発生部113の発生するSTC値を書き換える。そして、ビデオ・デコーダ部106およびオーディオ・デコーダ部110のデータ入力と出力モニタ部108および出力スピーカ部111のデータ入力を再開する。   Thereafter, when the user requests reproduction control again, reproduction control information is input to the system control unit 112. At this time, the system control unit 112 reads the STC value stored in the clock memory unit 114 at the timing when the reproduction control is requested, and rewrites the STC value generated by the STC generation unit 113 by the STC correction interface 801. Then, data input to the video decoder unit 106 and the audio decoder unit 110 and data input to the output monitor unit 108 and the output speaker unit 111 are resumed.

以上の結果バッファに蓄積されたデータのPTS,DTSと再生再開時にSTC発生部113の発生するSTCとを合わせることが可能となり、バッファに蓄積されたデータの再生を再開することが可能となる。   As a result, the PTS and DTS of the data stored in the buffer can be matched with the STC generated by the STC generation unit 113 when the reproduction is resumed, and the reproduction of the data accumulated in the buffer can be resumed.

図9は「再生〜一時停止〜再生」への状態遷移時におけるビデオ・データの様子を示すタイミング・チャート図である。   FIG. 9 is a timing chart showing the state of video data at the time of transition from “playback to pause to playback”.

まず、時刻0から時刻4fまでは通常再生時の状態を示している。通常再生時は順番にピクチャ・データ901a,902a,903a,904aが受信される。これらは各ピクチャの対応するPTS,DTSの値と共にバッファに蓄積される。時刻fの時点においてSTCの値がfとなるため、ピクチャ・データ901aがビデオ・デコーダ部106に入力され、デコード結果の画像データはビデオ・リオーダリング・バッファ107に蓄積される。次にSTCの値が2fの時点でピクチャ・データ902aがビデオ・デコーダ部106に入力され、デコード結果の画像データ902bが出力モニタ部108に出力される。続いてSTCの値が3fの時にピクチャ・データ903aがビデオ・デコーダ部106に入力され、デコードされた画像データ903bが出力モニタ部108に出力される。   First, the normal playback state is shown from time 0 to time 4f. During normal playback, picture data 901a, 902a, 903a, and 904a are received in order. These are stored in the buffer together with the corresponding PTS and DTS values of each picture. Since the STC value is f at time f, the picture data 901 a is input to the video decoder unit 106, and the decoded image data is stored in the video reordering buffer 107. Next, when the STC value is 2f, the picture data 902a is input to the video decoder unit 106, and the decoded image data 902b is output to the output monitor unit 108. Subsequently, when the STC value is 3f, the picture data 903a is input to the video decoder unit 106, and the decoded image data 903b is output to the output monitor unit 108.

時刻4fの時点でユーザが一時停止制御を要求すると、直ちにビデオ・デコーダ部106への入力および出力モニタ部108への入力を停止する。その後、受信されるピクチャ・データ905a,906aについてはビデオESバッファ部105に蓄積する。   When the user requests pause control at time 4f, the input to the video decoder unit 106 and the input to the output monitor unit 108 are stopped immediately. Thereafter, the received picture data 905 a and 906 a are stored in the video ES buffer unit 105.

そして時刻p+4fの時点で再びユーザが再生制御を要求すると、STCの値を一時停止が要求された時刻のSTC値であった4fに戻し、ビデオ・デコーダ部106への入力および出力モニタ部108への入力を再開する。   When the user requests playback control again at time p + 4f, the STC value is returned to 4f which was the STC value at the time when the pause was requested, and the input to the video decoder unit 106 and the output monitor unit 108 are performed. Resume input.

この結果、まず、ピクチャ・データ904aがビデオ・デコーダ部106に入力され、デコード結果の画像データはビデオ・リオーダリング・バッファ107に蓄積される。同時にビデオ・リオーダリング・バッファ107から画像データ901bが読み出され出力モニタ部108から出力される。続いて、STCが5fの時点において、ピクチャ・データ905aがビデオ・デコーダ部106に入力され、デコード結果の画像データ905bが出力モニタ部108に出力される。以降も同様に処理することによって一時停止状態からシームレスに画像データを出力することが可能となる。また、オーディオ・データについてもビデオ・データと同様に処理することで、映像と音声を同期させることができる。   As a result, first, picture data 904 a is input to the video decoder unit 106, and image data as a decoding result is stored in the video reordering buffer 107. At the same time, image data 901 b is read from the video reordering buffer 107 and output from the output monitor unit 108. Subsequently, when the STC is 5f, the picture data 905a is input to the video decoder unit 106, and the decoded image data 905b is output to the output monitor unit 108. By performing the same processing thereafter, it is possible to output image data seamlessly from the paused state. Also, by processing audio data in the same way as video data, video and audio can be synchronized.

以上のように本実施の形態によれば通常再生時から一時停止制御時にSTC値を保持する時刻基準値保持手段を設けることにより、制御要求への応答時間を高速化し、また一時停止状態からの再生制御時にSTC値を更新することにより高速かつシームレスに再生を再開することが可能となる。   As described above, according to the present embodiment, by providing the time reference value holding means for holding the STC value from the normal reproduction to the pause control, the response time to the control request is increased, and the time from the pause state is increased. By updating the STC value during playback control, playback can be resumed quickly and seamlessly.

(実施の形態3)
図10は本発明におけるMPEG符号化ストリーム復号装置の構成を示すブロック図である。
(Embodiment 3)
FIG. 10 is a block diagram showing the configuration of an MPEG encoded stream decoding apparatus according to the present invention.

図10において各構成要素については図8と同様なものとする。図8の構成と異なるのは1001にビデオESバッファ部105に蓄積されたピクチャ・データのDTSを記憶するタイム・スタンプ・メモリ部を設けた点である。   In FIG. 10, each component is the same as in FIG. 8 differs from the configuration of FIG. 8 in that a time stamp memory unit for storing DTS of picture data accumulated in the video ES buffer unit 105 is provided in 1001.

本発明において受信されるMPEGトランスポート・ストリームは送信側に予めファイルとして記録された場合の様に、ストリーム中に固定的な値としてPCR,PTS,DTSの値が含まれているものとする。   It is assumed that the MPEG transport stream received in the present invention includes PCR, PTS, and DTS values as fixed values in the stream, as in the case where the MPEG transport stream is recorded in advance on the transmission side as a file.

以上の様に構成されたMPEG符号化ストリーム復号装置について、図10を用いてその動作を説明する。   The operation of the MPEG encoded stream decoding apparatus configured as described above will be described with reference to FIG.

まず、ユーザから早送り制御が要求された場合、早送り制御情報がシステム制御部112に入力される。この時、システム制御部は早送り制御が要求されたタイミングのSTC発生部113から出力されるSTC値をクロック・メモリ部114に記憶し、また、ビデオESバッファ部105に最後に記憶したピクチャ・データのDTS値をタイム・スタンプ・メモリ部1001に記憶する。また、同時にオーディオ・デコーダ部110のデータ入力を停止する。そして、一旦、ビデオESバッファ部105に記憶されているピクチャ・データをクリアする。   First, when fast-forward control is requested by the user, fast-forward control information is input to the system control unit 112. At this time, the system control unit stores the STC value output from the STC generation unit 113 at the timing when the fast-forward control is requested in the clock memory unit 114, and the picture data stored last in the video ES buffer unit 105. Are stored in the time stamp memory unit 1001. At the same time, the data input to the audio decoder unit 110 is stopped. Then, the picture data stored in the video ES buffer unit 105 is once cleared.

また、ユーザからの早送り制御要求は図には示さない通信回線を通して送信サーバ側へも通知され、早送り再生中は、送信サーバからは早送り再生用のストリームが断続的に送出される。   Further, the fast-forward control request from the user is also notified to the transmission server through a communication line not shown in the figure, and during the fast-forward playback, the stream for fast-forward playback is intermittently sent from the transmission server.

そしてMPEG符号化ストリーム復号装置側では受信されるストリームの中から単独で復号可能なIピクチャのみを受信される毎にDTS,PTSに関係なくデコードおよび出力するものとする。   The MPEG encoded stream decoding device side decodes and outputs only the I picture that can be independently decoded from the received stream regardless of DTS and PTS.

その後、再びユーザから再生制御が要求される場合、再生制御情報がシステム制御部112に入力される。この時、システム制御部112は再生制御が要求されたタイミングで、ビデオESバッファ105に記憶されている全ピクチャ・データをクリアする。そして最初にビデオESバッファ部105に記憶されるピクチャ・データのDTS値を抽出し、タイム・スタンプ・メモリ部1001に記憶したDTS値との差分値から早送り制御により進められたストリーム上の時間増分値を算出する。そして、算出された時間増分値とクロック・メモリ部114に記憶されたSTC値とを用いてSTC発生部113の発生するSTC値を更新し、通常再生動作を再開する。   Thereafter, when the user requests reproduction control again, reproduction control information is input to the system control unit 112. At this time, the system control unit 112 clears all picture data stored in the video ES buffer 105 at the timing when the reproduction control is requested. First, the DTS value of the picture data stored in the video ES buffer unit 105 is extracted, and the time increment on the stream advanced by the fast-forward control from the difference value from the DTS value stored in the time stamp memory unit 1001 Calculate the value. Then, the STC value generated by the STC generation unit 113 is updated using the calculated time increment value and the STC value stored in the clock memory unit 114, and the normal reproduction operation is resumed.

以上の結果、早送り操作によって進められたストリーム上のPCRおよびPTS,DTSをSTC発生部113の発生するSTCに合わせることが可能となり、正常に再生を再開することが可能となる。   As a result, the PCR, PTS, and DTS on the stream advanced by the fast-forward operation can be matched with the STC generated by the STC generation unit 113, and the reproduction can be resumed normally.

図11は「再生〜早送り〜再生」への状態遷移時のビデオ・データの様子を示すタイミング・チャート図である。   FIG. 11 is a timing chart showing a state of video data at the time of transition from “playback to fast forward to playback”.

まず、時刻0から時刻4fまでは通常再生時の状態を示している。通常再生時は順番にピクチャ・データ1101a,1102a,1103a,1104aが受信される。これらは各ピクチャの対応するPTS,DTSの値と共にビデオESバッファ部105に蓄積される。時刻fの時点においてSTCの値がfとなるため、ピクチャ・データ1101aがビデオ・デコーダ部106に入力され、デコード結果の画像データはビデオ・リオーダリング・バッファ107に蓄積される。次にSTCの値が2fの時点でピクチャ・データ1102aがビデオ・デコーダ部106に入力され、デコード結果の画像データ1102bが出力モニタ部108に出力される。続いてSTCの値が3fの時にピクチャ・データ1103aがビデオ・デコーダ部106に入力され、デコードされた画像データ1103bが出力モニタ部108に出力される。   First, the normal playback state is shown from time 0 to time 4f. During normal playback, picture data 1101a, 1102a, 1103a, and 1104a are received in order. These are stored in the video ES buffer unit 105 together with the corresponding PTS and DTS values of each picture. Since the STC value is f at time f, the picture data 1101 a is input to the video decoder unit 106, and the decoded image data is stored in the video reordering buffer 107. Next, when the STC value is 2f, the picture data 1102 a is input to the video decoder unit 106, and the decoded image data 1102 b is output to the output monitor unit 108. Subsequently, when the STC value is 3f, the picture data 1103a is input to the video decoder unit 106, and the decoded image data 1103b is output to the output monitor unit 108.

時刻4fの時点でユーザが早送り再生制御を要求すると、一旦、ビデオESバッファ部105内の全ピクチャ・データを廃棄する。そして、早送り再生制御では、単独で復号可能なIピクチャのデータ1105a,1106aをDTS,PTSとは無関係に、受信される毎にビデオ・デコーダ部106へ入力し、デコード結果の画像データを1105b,1106bとして、出力モニタ部108から出力表示する。   When the user requests fast-forward playback control at time 4f, all picture data in the video ES buffer unit 105 is once discarded. In fast-forward playback control, independently decoded I-picture data 1105a and 1106a are input to the video decoder unit 106 each time they are received regardless of DTS and PTS, and the decoded image data is 1105b, As 1106b, an output is displayed from the output monitor unit.

そして時刻w+4fの時点で再びユーザが再生制御を要求すると、STCの値を早送り制御が要求された時刻のSTC値であったSTC1(=4f)、その時点で最後に受信したピクチャ・データのDTS値D1(=4f)、早送り再生制御が要求後に最初に受信するピクチャ・データのDTS値D2(=46f)とから、新たなSTC値をSTC2=STC1+(D2−D1)=4f+(46f−4f)=46fに更新し、通常再生動作を再開する。   When the user requests reproduction control again at time w + 4f, the STC value is STC1 (= 4f), which is the STC value at the time when fast-forwarding control is requested, and the DTS of the last received picture data at that time From the value D1 (= 4f) and the DTS value D2 (= 46f) of the first picture data received after the fast-forward playback control request, the new STC value is STC2 = STC1 + (D2-D1) = 4f + (46f-4f ) = 46f, and the normal reproduction operation is resumed.

この結果、時刻w+6f(STC=46f)の時点で、ピクチャ・データ1107aがビデオ・デコーダ部106に入力され、デコード結果の画像データはビデオ・リオーダリング・バッファ107に蓄積される。続いて、STCが47fの時点において、ピクチャ・データ1108aがビデオ・デコーダ部106に入力され、デコード結果の画像データ1108bが出力モニタ部108に出力される。以降も同様に処理することによって早送り再生状態から直ちに通常再生状態に移行することが可能となる。また、オーディオ・データについてもビデオ・データと同様に処理することで、映像と音声を同期させることができる。   As a result, at time w + 6f (STC = 46f), the picture data 1107a is input to the video decoder unit 106, and the decoded image data is stored in the video reordering buffer 107. Subsequently, when the STC is 47 f, the picture data 1108 a is input to the video decoder unit 106, and the decoded image data 1108 b is output to the output monitor unit 108. By performing the same processing thereafter, it is possible to immediately shift from the fast-forward playback state to the normal playback state. Also, by processing audio data in the same way as video data, video and audio can be synchronized.

以上のように本実施の形態によれば通常再生時からの早送り制御時に、受信したピクチャ・データのDTS値を保持する復号時刻情報保持手段と、STC値を保持する時刻基準値保持手段とを設けることにより、制御要求への応答時間を高速化し、また早送り再生状態からの通常再生移行時にSTC値を更新することにより高速に映像と音声との同期を合わせ、再生を再開することが可能となる。   As described above, according to the present embodiment, the decoding time information holding unit that holds the DTS value of the received picture data and the time reference value holding unit that holds the STC value during the fast-forward control from the normal reproduction time. By providing it, the response time to the control request can be increased, and the STC value can be updated at the time of transition to the normal playback from the fast-forward playback state so that the video and audio can be synchronized at high speed and playback can be resumed. Become.

なお、以上の説明では早送り再生時の動作について説明したが、早戻し再生、スロー再生、逆再生においても同様に制御することが可能である。   In the above description, the operation during fast-forward playback has been described. However, the same control can be performed in fast-rewind playback, slow playback, and reverse playback.

(実施の形態4)
図14は「再生〜一時停止〜再生」への状態遷移時におけるSTCおよびビデオ・データの様子を示すタイミング・チャート図である。
(Embodiment 4)
FIG. 14 is a timing chart showing the state of STC and video data at the time of transition from “playback to pause to playback”.

なお、本発明におけるMPEG符号化ストリーム復号装置の構成は図8と同じとする。本発明のMPEG符号化ストリーム復号装置について、図8を用いてその動作を説明する。   The configuration of the MPEG encoded stream decoding apparatus in the present invention is the same as that in FIG. The operation of the MPEG encoded stream decoding apparatus of the present invention will be described with reference to FIG.

まず、ユーザから一時停止制御が要求された場合、一時停止制御情報がシステム制御部112に入力される。この時、ビデオ・デコーダ部106およびオーディオ・デコーダ部110のデータ入力と出力モニタ部108および出力スピーカ部111のデータ入力を停止する。   First, when the user requests the suspension control, the suspension control information is input to the system control unit 112. At this time, the data input of the video decoder unit 106 and the audio decoder unit 110 and the data input of the output monitor unit 108 and the output speaker unit 111 are stopped.

そして、その後、実際にストリームが中断した時点のSTC値をクロック・メモリ部114に記憶する
その後、再びユーザから再生制御が要求された場合、再生制御情報がシステム制御部112に入力される。この時、システム制御部112は再生制御が要求されたタイミングで、クロック・メモリ部114に記憶したSTC値を読み出し、STC補正インタフェース801によりSTC発生部113の発生するSTC値を書き換える。そして、ビデオ・デコーダ部106およびオーディオ・デコーダ部110のデータ入力と出力モニタ部108および出力スピーカ部111のデータ入力を再開する。
After that, the STC value at the time when the stream is actually interrupted is stored in the clock memory unit 114. Then, when the reproduction control is requested again from the user, the reproduction control information is input to the system control unit 112. At this time, the system control unit 112 reads the STC value stored in the clock memory unit 114 at the timing when the reproduction control is requested, and rewrites the STC value generated by the STC generation unit 113 by the STC correction interface 801. Then, the data input of the video decoder unit 106 and the audio decoder unit 110 and the data input of the output monitor unit 108 and the output speaker unit 111 are resumed.

この時、ビデオESバッファ部105、オーディオESバッファ部109に蓄積されているデータに関して、実際のストリーム停止期間に相当する時間分をPTS値,DTS値に加算し補正する。また、再開以降に受信されるデータについても時刻補正値を加算してバッファに蓄積する。   At this time, the data stored in the video ES buffer unit 105 and the audio ES buffer unit 109 is corrected by adding the time corresponding to the actual stream stop period to the PTS value and the DTS value. Also, the time correction value is added to the data received after the restart and is accumulated in the buffer.

以上の結果バッファに蓄積されたデータのPTS,DTSと再生再開時にSTC発生部113の発生するSTCとを合わせることが可能となり、バッファに蓄積されたデータの再生を再開することが可能となる。   As a result, the PTS and DTS of the data stored in the buffer can be matched with the STC generated by the STC generation unit 113 when the reproduction is resumed, and the reproduction of the data accumulated in the buffer can be resumed.

図14において(a)は時刻T0からT0+11fにおけるSTC値を示す。図中の丸印はその時刻でPCR情報が受信されることを示す。(b)は時刻T0からT0+11fまでの間に受信されるフレーム・データを示す。また、(c)は時刻T0からT0+11fの間に表示出力されるフレーム・データを示す。   In FIG. 14, (a) shows STC values from time T0 to T0 + 11f. Circles in the figure indicate that PCR information is received at that time. (B) shows frame data received between time T0 and T0 + 11f. (C) shows frame data that is displayed and output between time T0 and T0 + 11f.

まず、時刻T0から時刻T0+4fまでは通常再生時の状態を示している。(b)に示すようにこの間、フレーム・データ1401b,1402b,1403b,1404bが受信される。これらは各フレームの対応するPTS,DTSの値と共にバッファに蓄積される。また、同時に1401c、1402c、1403c、1404cの各フレームが順番に出力表示される。   First, from time T0 to time T0 + 4f, a state during normal reproduction is shown. During this time, frame data 1401b, 1402b, 1403b, and 1404b are received as shown in FIG. These are stored in the buffer together with the corresponding PTS and DTS values of each frame. At the same time, the frames 1401c, 1402c, 1403c, and 1404c are output and displayed in order.

時刻T0+4fの時点でユーザが一時停止制御を要求すると、直ちにビデオ・デコーダ部106への入力および出力モニタ部108への入力を停止する。その後、受信されるフレーム・データ1405b,1406bについてはビデオESバッファ部105に蓄積する。   When the user requests pause control at time T0 + 4f, the input to the video decoder unit 106 and the input to the output monitor unit 108 are stopped immediately. Thereafter, the received frame data 1405 b and 1406 b are stored in the video ES buffer unit 105.

そして時刻T0+7fの時点で再びユーザが再生制御を要求すると、STCの値を受信が中断した時刻T0+6fのSTC値C0+5fに戻す。また、受信が中断した時刻T0+6fと再生再開が指定された時刻T0+7fとの間隔+fを時刻補正量とし、各バッファに蓄積されているフレーム・データのPTS,DTSの値に加算し、ビデオ・デコーダ部106への入力および出力モニタ部108への入力を再開する。さらに、また以後受信されるフレーム・データに関してもPTS,DTS値に+f加算してバッファに蓄積するものとする。 この結果、再生再開時のSTC値はC0+5fとなり再生が再開される。   When the user again requests playback control at time T0 + 7f, the STC value is returned to the STC value C0 + 5f at time T0 + 6f at which reception was interrupted. Also, the interval + f between the time T0 + 6f at which reception is interrupted and the time T0 + 7f at which playback is resumed is set as a time correction amount, and is added to the PTS and DTS values of the frame data stored in each buffer. The input to the unit 106 and the input to the output monitor unit 108 are resumed. Further, the frame data received thereafter is added to the PTS and DTS values by + f and stored in the buffer. As a result, the STC value at the time of resuming reproduction becomes C0 + 5f, and reproduction is resumed.

図15は各受信フレーム・データのPTS値、DTS値を示す表である。図16は各バッファに蓄積されるフレーム・データのDTS,PTS値を示す。図中の(a)は受信中断時に(1)ビデオESバッファおよび(2)ビデオリオーダリングバッファに蓄積されるデータを示し、(b)は再生再開後にDTS値,PTS値を補正した状態のデータ示す。   FIG. 15 is a table showing the PTS value and DTS value of each received frame data. FIG. 16 shows the DTS and PTS values of the frame data stored in each buffer. (A) in the figure shows data accumulated in (1) video ES buffer and (2) video reordering buffer when reception is interrupted, and (b) data in a state where DTS value and PTS value are corrected after resuming reproduction. Show.

図16(b)(1)に示すように再生再開後のフレームB5のDTS値およびPTS値はC0+5fに補正され、再生再開時に補正されるSTC値C0+5fと一致するため、すぐにデコードおよび表示出力される。以降受信されるフレーム・データのDTS値およびPTS値についても+f分補正することで、受信されるPCR値とSTC値を一致させることが可能となる。すなわち一時停止状態からシームレスに画像データを出力することが可能となる。また、オーディオ・データについてもビデオ・データと同様に処理することで、映像と音声を同期させることができる。   As shown in FIGS. 16B and 16A, the DTS value and the PTS value of the frame B5 after the resumption of reproduction are corrected to C0 + 5f and coincide with the STC value C0 + 5f corrected at the time of resumption of reproduction. Is done. The DTS value and the PTS value of the frame data received thereafter are also corrected by + f, so that the received PCR value and the STC value can be matched. That is, it becomes possible to output image data seamlessly from the paused state. Also, by processing audio data in the same way as video data, video and audio can be synchronized.

以上のように本実施の形態によれば、通常再生時から一時停止制御時にSTC値を保持する時刻基準値保持手段を設けることにより、制御要求への応答時間を高速化し、また一時停止制御要求時刻から受信中断までの遅延時間と再生再開制御要求と受信再開までの遅延時間が異なる場合にも一時停止状態からの再生制御時にSTC値とPTS値,DTS値を更新することにより高速かつシームレスに再生を再開することが可能となる。   As described above, according to the present embodiment, by providing the time reference value holding means for holding the STC value from the normal reproduction to the pause control, the response time to the control request is increased, and the pause control request is made. Even when the delay time from the time to the reception interruption and the delay time from the playback resumption control request and the reception resumption are different, the STC value, the PTS value, and the DTS value are updated at high speed and seamlessly during the reproduction control from the paused state. Playback can be resumed.

本発明にかかるMPEG符号化ストリーム復号装置は、通常再生からの一時停止、早送り制御等において高速かつシームレスに応答が可能となる効果を有し、MPEG符号化ストリームを用いたビデオ・オン・デマンド(VOD)・システムの特殊再生制御方式等として有用である。   The MPEG encoded stream decoding apparatus according to the present invention has an effect of enabling a high-speed and seamless response in pause from normal reproduction, fast-forward control, etc., and video on demand using an MPEG encoded stream ( VOD) · Useful as a special playback control system for the system.

本発明の実施の形態1におけるMPEG符号化ストリーム復号装置の機能ブロック図Functional block diagram of an MPEG encoded stream decoding apparatus in Embodiment 1 of the present invention MPEG画像符号化における符号化および復号時のフレーム順序を示す模式図Schematic diagram showing the frame order during encoding and decoding in MPEG image encoding MPEGトランスポート・ストリームの階層構造を示す模式図Schematic diagram showing the hierarchical structure of an MPEG transport stream PESパケットの構造を示す模式図Schematic diagram showing the structure of a PES packet TSパケットの構造を示す模式図Schematic diagram showing the structure of TS packet 本発明の実施の形態1におけるビデオESバッファに蓄積されるデータの構成を示す模式図FIG. 2 is a schematic diagram showing a configuration of data stored in a video ES buffer according to Embodiment 1 of the present invention. 本発明の実施の形態1における「再生〜一時停止〜再生」への状態遷移時におけるビデオ・データの様子を示すタイミング・チャートTiming chart showing a state of video data at the time of transition from “playback to pause to playback” in the first embodiment of the present invention 本発明の実施の形態2におけるMPEG符号化ストリーム復号装置の機能ブロック図Functional block diagram of an MPEG encoded stream decoding apparatus in Embodiment 2 of the present invention 本発明の実施の形態2における「再生〜一時停止〜再生」への状態遷移時におけるビデオ・データの様子を示すタイミング・チャートTiming chart showing the state of video data at the time of transition from “playback to pause to playback” in Embodiment 2 of the present invention 本発明の実施の形態3におけるMPEG符号化ストリーム復号装置の機能ブロック図Functional block diagram of an MPEG encoded stream decoding apparatus in Embodiment 3 of the present invention 本発明の実施の形態3における「再生〜早送り〜再生」への状態遷移時におけるビデオ・データの様子を示すタイミング・チャートTiming chart showing the state of video data at the time of transition from “playback to fast forward to playback” in Embodiment 3 of the present invention 従来のMPEG符号化ストリーム復号装置の機能ブロック図Functional block diagram of a conventional MPEG encoded stream decoding device 従来のMPEG符号化ストリーム復号装置における「再生〜一時停止〜再生」への状態遷移時におけるビデオ・データの様子を示すタイミング・チャートTiming chart showing the state of video data at the time of transition from “playback to pause to playback” in a conventional MPEG encoded stream decoding apparatus 本発明の実施の形態4における「再生〜一時停止〜再生」への状態遷移時におけるビデオ・データの様子を示すタイミング・チャートTiming chart showing the state of video data at the time of transition from “playback to pause to playback” in Embodiment 4 of the present invention 各受信フレームデータのDTS値,PTS値を示す図The figure which shows DTS value and PTS value of each received frame data 各バッファに蓄積されるフレームデータのDTS値,PTS値を示す図The figure which shows the DTS value and PTS value of the frame data accumulate | stored in each buffer

符号の説明Explanation of symbols

101 ストリーム受信部
102 ヘッダ情報解析部
103 アダプテーション・フィールド情報解析部
104 ペイロード情報解析部
105 ビデオESバッファ部
106 ビデオ・デコーダ部
107 ビデオ・リオーダリング・バッファ部
108 出力モニタ部
109 オーディオESバッファ部
110 オーディオ・デコーダ部
111 出力スピーカ部
112 システム制御部
113 STC発生部
114 クロック・メモリ部
115 ビデオ・タイム・スタンプ書き換えインタフェース
116 オーディオ・タイム・スタンプ書き換えインタフェース
DESCRIPTION OF SYMBOLS 101 Stream receiving part 102 Header information analysis part 103 Adaptation field information analysis part 104 Payload information analysis part 105 Video ES buffer part 106 Video decoder part 107 Video reordering buffer part 108 Output monitor part 109 Audio ES buffer part 110 Audio Decoder unit 111 Output speaker unit 112 System control unit 113 STC generation unit 114 Clock memory unit 115 Video time stamp rewriting interface 116 Audio time stamp rewriting interface

Claims (4)

MPEG圧縮符号化された画像データおよび音声データとストリーム中の絶対的な時刻基準値を示すプログラム時刻基準値を含むMPEGトランスポート・ストリームを復号するMPEGストリーム復号装置であって、少なくともペイロード情報解析部と、ビデオESバッファ部と、オーディオESバッファ部と、ビデオ・デコーダ部と、オーディオ・デコーダ部と、STC発生部と、システム制御部と、クロック・メモリ部と、ビデオ・タイム・スタンプ書き換えインタフェース部と、オーディオ・タイム・スタンプ書き換えインタフェース部とを備え、通常再生時においては、ペイロード情報解析部により抽出分離され、それぞれに対応する復号時刻情報、提示時刻情報とともにビデオESバッファ部、オーディオESバッファ部に一時記憶したビデオESデータとオーディオESデータとを所定のタイミングでビデオ・デコーダ、およびオーディオ・デコーダに入力し、一時停止時にはシステム制御部に一時停止制御信号が入力されたタイミングでSTC発生部の出力するSTC値をクロック・メモリ部に保持すると同時にビデオ・デコーダ部への入力とオーディオ・デコーダ部への入力とを停止し、再び、通常再生が要求された時点で、ビデオ・タイム・スタンプ書き換えインタフェースによりビデオESバッファ部に格納されている復号時刻情報及び表示時刻情報を補正し、オーディオ・タイム・スタンプ書き換えインタフェースによりオーディオESバッファ部に格納されている復号時刻情報及び提示時刻情報を補正し、ビデオ・デコーダ部への入力とオーディオ・デコーダ部への入力とを再開することを特徴とするMPEG符号化ストリーム復号装置。 An MPEG stream decoding apparatus for decoding an MPEG transport stream including MPEG compression-encoded image data and audio data and a program time reference value indicating an absolute time reference value in the stream, at least a payload information analysis unit A video ES buffer unit, an audio ES buffer unit, a video decoder unit, an audio decoder unit, an STC generation unit, a system control unit, a clock memory unit, and a video time stamp rewriting interface unit And an audio time stamp rewriting interface unit, which are extracted and separated by the payload information analysis unit during normal reproduction, and together with the corresponding decoding time information and presentation time information, a video ES buffer unit and an audio ES buffer unit Temporarily The stored video ES data and audio ES data are input to the video decoder and the audio decoder at a predetermined timing, and when paused, the STC generation unit outputs at the timing when the pause control signal is input to the system controller. The STC value is held in the clock memory unit, and at the same time, the input to the video decoder unit and the input to the audio decoder unit are stopped. When normal playback is requested again, the video time stamp rewriting interface Correction of decoding time information and display time information stored in the video ES buffer unit, correction of decoding time information and presentation time information stored in the audio ES buffer unit by an audio time stamp rewriting interface, Input to the decoder section and audio data MPEG encoded stream decoding apparatus characterized by resuming the input to chromatography reader unit. MPEG圧縮符号化された画像データおよび音声データとストリーム中の相対的な時刻基準値を示す固定のプログラム時刻基準値を含むMPEGトランスポート・ストリームを復号するMPEGストリーム復号装置であって、少なくともペイロード情報解析部と、ビデオESバッファ部と、オーディオESバッファ部と、ビデオ・デコーダ部と、オーディオ・デコーダ部と、STC発生部と、システム制御部と、クロック・メモリ部と、STC補正インタフェースとを備え、通常再生時においては、ペイロード情報解析部により抽出分離され、それぞれに対応する復号時刻情報、提示時刻情報とともにビデオESバッファ部、オーディオESバッファ部に一時記憶したビデオESデータとオーディオESデータとを所定のタイミングでビデオ・デコーダ、およびオーディオ・デコーダに入力し、一時停止時にはシステム制御部に一時停止制御信号が入力されたタイミングでSTC発生部の出力するSTC値をクロック・メモリ部に保持すると同時にビデオ・デコーダ部への入力とオーディオ・デコーダ部への入力とを停止し、再び、通常再生が要求された時点で、STC補正インタフェースによりSTC発生部の出力するSTC値をクロック・メモリ部に保持されたSTC値に補正し、ビデオ・デコーダ部への入力とオーディオ・デコーダ部への入力とを再開することを特徴とするMPEG符号化ストリーム復号装置。 An MPEG stream decoding apparatus for decoding an MPEG transport stream including MPEG compression encoded image data and audio data and a fixed program time reference value indicating a relative time reference value in the stream, and at least payload information An analysis unit, a video ES buffer unit, an audio ES buffer unit, a video decoder unit, an audio decoder unit, an STC generation unit, a system control unit, a clock memory unit, and an STC correction interface are provided. In normal playback, the video ES data and the audio ES data that are extracted and separated by the payload information analysis unit and temporarily stored in the video ES buffer unit and the audio ES buffer unit together with the corresponding decoding time information and presentation time information, Video at a given timing The STC value output from the STC generation unit is held in the clock memory unit at the timing when the pause control signal is input to the system control unit and is input to the decoder and audio decoder. The input and the input to the audio decoder unit are stopped, and when the normal reproduction is requested again, the STC value output from the STC generation unit is corrected to the STC value held in the clock memory unit by the STC correction interface. And an MPEG encoded stream decoding apparatus, wherein input to the video decoder unit and input to the audio decoder unit are resumed. MPEG圧縮符号化された画像データおよび音声データとストリーム中の相対的な時刻基準値を示す固定のプログラム時刻基準値を含むMPEGトランスポート・ストリームを復号するMPEGストリーム復号装置であって、少なくともペイロード情報解析部と、ビデオESバッファ部と、オーディオESバッファ部と、ビデオ・デコーダ部と、オーディオ・デコーダ部と、STC発生部と、システム制御部と、クロック・メモリ部と、STC補正インタフェースと、タイム・スタンプ・メモリ部とを備え、早送りまたは早戻し制御時に、システム制御部に早送りまたは早戻し制御要求が入力されたタイミングでSTC発生部の出力するSTC値をクロック・メモリ部に保持し、また、タイム・スタンプ・メモリ部に、ビデオESバッファ部に最後に受信したビデオESデータの復号時刻情報の値を保持し、再び、通常再生が要求された時点で、最初に受信されるビデオESデータの復号時刻情報とタイム・スタンプ・メモリ部に保持された時刻値との差分値と、クロック・メモリ部に記憶されたSTC値とからSTC発生部の発生するSTC値を補正することを特徴とするMPEG符号化ストリーム復号装置。 An MPEG stream decoding apparatus for decoding an MPEG transport stream including MPEG compression encoded image data and audio data and a fixed program time reference value indicating a relative time reference value in the stream, and at least payload information Analysis unit, video ES buffer unit, audio ES buffer unit, video decoder unit, audio decoder unit, STC generation unit, system control unit, clock memory unit, STC correction interface, time A stamp memory unit that holds the STC value output from the STC generation unit in the clock memory unit at the time when the fast-forward or fast-reverse control request is input to the system control unit during fast-forward or fast-reverse control; , Time stamp memory part, video ES buffer part The value of the decoding time information of the video ES data received last is held, and when the normal playback is requested again, it is held in the decoding time information and time stamp memory unit of the video ES data received first. An MPEG encoded stream decoding apparatus, wherein an STC value generated by an STC generation unit is corrected based on a difference value between the time value and an STC value stored in a clock memory unit. MPEG圧縮符号化された画像データおよび音声データとストリーム中の相対的な時刻基準値を示す固定のプログラム時刻基準値を含むMPEGトランスポート・ストリームを復号するMPEGストリーム復号装置であって、少なくともペイロード情報解析部と、ビデオESバッファ部と、オーディオESバッファ部と、ビデオ・デコーダ部と、オーディオ・デコーダ部と、STC発生部と、システム制御部と、クロック・メモリ部と、STC補正インタフェースとビデオ・リオーダリング・バッファ部とを備え、通常再生時においては、ペイロード情報解析部により抽出分離され、それぞれに対応する復号時刻情報、提示時刻情報とともにビデオESバッファ部、オーディオESバッファ部に一時記憶したビデオESデータとオーディオESデータとを所定のタイミングでビデオ・デコーダ、およびオーディオ・デコーダに入力し、一時停止時には同時にビデオ・デコーダ部への入力およびビデオ・リオーダリング・バッファ部の出力、オーディオ・デコーダ部への入力とを停止し、受信データが中断されたタイミングでSTC発生部の出力するSTC値をクロック・メモリ部に保持し、再び、通常再生が要求された時点で、STC補正インタフェースによりSTC発生部の出力するSTC値をクロック・メモリ部に保持されたSTC値に補正し、ビデオESバッファ部、オーディオESバッファ部、ビデオ・リオーダリング・バッファ部に蓄積された各データの復号時刻情報、提示時刻情報とを補正し、ビデオ・デコーダ部への入力およびビデオ・リオーダリング・バッファ部の出力とオーディオ・デコーダ部への入力とを再開することを特徴とするMPEG符号化ストリーム復号装置。 An MPEG stream decoding apparatus for decoding an MPEG transport stream including MPEG compression encoded image data and audio data and a fixed program time reference value indicating a relative time reference value in the stream, and at least payload information Analysis unit, video ES buffer unit, audio ES buffer unit, video decoder unit, audio decoder unit, STC generation unit, system control unit, clock memory unit, STC correction interface, video A reordering buffer unit, which is extracted and separated by the payload information analysis unit during normal playback, and temporarily stored in the video ES buffer unit and the audio ES buffer unit together with the corresponding decoding time information and presentation time information ES data and audio E Data is input to the video decoder and audio decoder at a predetermined timing. At the time of pause, the input to the video decoder unit, the output of the video reordering buffer unit, and the input to the audio decoder unit are performed simultaneously. The STC value output from the STC generation unit is held in the clock memory unit at the timing when the received data is interrupted, and the STC output from the STC generation unit is output by the STC correction interface when normal reproduction is requested again. The value is corrected to the STC value held in the clock memory unit, and the decoding time information and presentation time information of each data stored in the video ES buffer unit, audio ES buffer unit, and video reordering buffer unit are corrected. Video decoder unit and video reordering buffer unit MPEG encoded stream decoding apparatus characterized by resuming the input to the output and the audio decoder unit.
JP2006093996A 2005-04-13 2006-03-30 MPEG encoded stream decoding apparatus Active JP4613860B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006093996A JP4613860B2 (en) 2005-04-13 2006-03-30 MPEG encoded stream decoding apparatus

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2005115319 2005-04-13
JP2006093996A JP4613860B2 (en) 2005-04-13 2006-03-30 MPEG encoded stream decoding apparatus

Publications (3)

Publication Number Publication Date
JP2006319956A true JP2006319956A (en) 2006-11-24
JP2006319956A5 JP2006319956A5 (en) 2007-06-21
JP4613860B2 JP4613860B2 (en) 2011-01-19

Family

ID=37540146

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006093996A Active JP4613860B2 (en) 2005-04-13 2006-03-30 MPEG encoded stream decoding apparatus

Country Status (1)

Country Link
JP (1) JP4613860B2 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010087546A (en) * 2008-09-29 2010-04-15 Sony Corp Electronic apparatus, reproducing method for content, and program
JP2010171919A (en) * 2008-12-26 2010-08-05 Mitsubishi Electric Corp Video display apparatus
WO2010116588A1 (en) * 2009-04-08 2010-10-14 パナソニック株式会社 Digital television broadcasting reproduction device and reproduction method therefor
WO2011155173A1 (en) * 2010-06-11 2011-12-15 三菱電機株式会社 Video display device
CN111061722A (en) * 2018-10-16 2020-04-24 阿里巴巴集团控股有限公司 Data compression method, data decompression method, device and equipment
CN113949866A (en) * 2021-10-20 2022-01-18 江苏经贸职业技术学院 Audio and video file storage and transmission method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08331511A (en) * 1995-03-31 1996-12-13 Toshiba Corp Dynamic image reproducing device and dynamic image reproducing processing circuit
JP2001346147A (en) * 2000-05-31 2001-12-14 Fujitsu Ltd Video/audio reproducing device and video/audio reproducing method
JP2003348543A (en) * 2002-05-28 2003-12-05 Fujitsu Ltd Data decoder and data decoding method
JP2004088321A (en) * 2002-08-26 2004-03-18 Hitachi Ltd Digital broadcast reception storage reproducing apparatus and mobile receiver

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08331511A (en) * 1995-03-31 1996-12-13 Toshiba Corp Dynamic image reproducing device and dynamic image reproducing processing circuit
JP2001346147A (en) * 2000-05-31 2001-12-14 Fujitsu Ltd Video/audio reproducing device and video/audio reproducing method
JP2003348543A (en) * 2002-05-28 2003-12-05 Fujitsu Ltd Data decoder and data decoding method
JP2004088321A (en) * 2002-08-26 2004-03-18 Hitachi Ltd Digital broadcast reception storage reproducing apparatus and mobile receiver

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8190762B2 (en) 2008-09-29 2012-05-29 Sony Corporation Electronic apparatus, content reproduction method, and program
JP4735697B2 (en) * 2008-09-29 2011-07-27 ソニー株式会社 Electronic device, content reproduction method and program
JP2010087546A (en) * 2008-09-29 2010-04-15 Sony Corp Electronic apparatus, reproducing method for content, and program
JP2010171919A (en) * 2008-12-26 2010-08-05 Mitsubishi Electric Corp Video display apparatus
WO2010116588A1 (en) * 2009-04-08 2010-10-14 パナソニック株式会社 Digital television broadcasting reproduction device and reproduction method therefor
JP5020422B2 (en) * 2010-06-11 2012-09-05 三菱電機株式会社 Video display device
WO2011155173A1 (en) * 2010-06-11 2011-12-15 三菱電機株式会社 Video display device
CN102934435A (en) * 2010-06-11 2013-02-13 三菱电机株式会社 Video display device
JP2013236355A (en) * 2010-06-11 2013-11-21 Mitsubishi Electric Corp Video image display device
CN102934435B (en) * 2010-06-11 2015-09-23 三菱电机株式会社 Video display devices
CN111061722A (en) * 2018-10-16 2020-04-24 阿里巴巴集团控股有限公司 Data compression method, data decompression method, device and equipment
CN111061722B (en) * 2018-10-16 2023-06-06 阿里巴巴集团控股有限公司 Data compression and data decompression method, device and equipment
CN113949866A (en) * 2021-10-20 2022-01-18 江苏经贸职业技术学院 Audio and video file storage and transmission method

Also Published As

Publication number Publication date
JP4613860B2 (en) 2011-01-19

Similar Documents

Publication Publication Date Title
JP4118232B2 (en) Video data processing method and video data processing apparatus
JP5047607B2 (en) Stream recording apparatus, stream recording method, recording system, and recording / reproducing system
EP1002424B1 (en) Processing coded video
WO2013136754A1 (en) Display device and transmitter
WO2005071970A1 (en) Method and apparatus for determining timing information from a bit stream
JP2008160748A5 (en)
JP2004297577A (en) Image reproducing device
JP2009521164A (en) Processing apparatus and processing method of input data stream composed of input frame sequence
JP4613860B2 (en) MPEG encoded stream decoding apparatus
CN102326403B (en) Utilize exterior artwork attribute flags to carry out accelerating channel and change the time
KR20060099687A (en) Device of video-synchronization using time stamp and method thereof
JP2001204032A (en) Mpeg decoder
KR20070049504A (en) Apparatus of playing digital contents and method for saving and playing contents in a reverse direction
KR20030026590A (en) Method for stream jump
US8254764B2 (en) Recording apparatus, image reproducing apparatus, and special reproduction method therefor
KR20040010155A (en) Image data reproducing device and method
JPH1093841A (en) Video synchronizing signal correction device
JP4763589B2 (en) Playback device and playback method thereof
KR100266311B1 (en) Method and apparatus for forward and reverse playback of MPG system streams
JP3671969B2 (en) Data multiplexing method and multiple data decoding method
JPH099215A (en) Data multiplex method, data transmission method, multiplex data decoding method and multiplex data decoder
US8571392B2 (en) Apparatus for video recording and reproducing, and method for trick play of video
US9219930B1 (en) Method and system for timing media stream modifications
JP4967402B2 (en) Multiplexed stream conversion apparatus and method
JP5016335B2 (en) Playback apparatus and playback method

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070507

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070507

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20091127

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100302

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100428

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100622

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100804

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20100921

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20101004

R151 Written notification of patent or utility model registration

Ref document number: 4613860

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

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

Free format text: PAYMENT UNTIL: 20131029

Year of fee payment: 3