JP2005348160A - Stream decoder - Google Patents

Stream decoder Download PDF

Info

Publication number
JP2005348160A
JP2005348160A JP2004166159A JP2004166159A JP2005348160A JP 2005348160 A JP2005348160 A JP 2005348160A JP 2004166159 A JP2004166159 A JP 2004166159A JP 2004166159 A JP2004166159 A JP 2004166159A JP 2005348160 A JP2005348160 A JP 2005348160A
Authority
JP
Japan
Prior art keywords
stream
audio
video
decoded
output buffer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2004166159A
Other languages
Japanese (ja)
Inventor
Shuhei Yamada
周平 山田
Hideyuki Sumino
英之 角野
Yoshiaki Sawada
慶昭 澤田
Kosuke Nishio
孝祐 西尾
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 JP2004166159A priority Critical patent/JP2005348160A/en
Publication of JP2005348160A publication Critical patent/JP2005348160A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To synchronize audio and video without using synchronization information. <P>SOLUTION: In a stream decoder, it is provided with a video decoder which decodes video streams and outputs a first piece of decoding information according to the size of a part which can not normally be decoded, etc. in the video streams and decoded video data, an audio decoder which decodes audio streams and outputs a second piece of decoding information according to the size of a part which can not normally be decoded, etc. in the audio streams and decoded video data, a video output buffer which stores and outputs the decoded video data, an audio output buffer which stores and outputs the decoded audio data and an output control part which controls the video output buffer and the audio output buffer so that the decoded video data and the decoded audio data are synchronized and outputted according to the first and second pieces of decoding information. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、ビットストリームをデコードして出力するストリーム復号装置に関し、特に、デコードされたビデオデータとオーディオデータとを同期させる技術に関する。   The present invention relates to a stream decoding apparatus that decodes and outputs a bit stream, and more particularly to a technique for synchronizing decoded video data and audio data.

近年、インターネットのブロードバンド化が広まったことにより、大きなデータサイズのファイルのやり取りが盛んに行われるようになっている。ブロードバンド化後に特に頻繁に転送されるようになったのは、高画質、高音質の動画ファイルである。動画ファイルのフォーマットには、WMV(Windows Media Video)、ASF(Advanced systems format)、MPEG(Moving Picture Experts Group)、AVI(Audio Video Interleaving)等の様々なものがある。   In recent years, with the spread of broadband Internet, large data size files have been actively exchanged. High-quality, high-quality video files have been transferred particularly frequently after broadband. There are various video file formats such as WMV (Windows Media Video), ASF (Advanced Systems Format), MPEG (Moving Picture Experts Group), and AVI (Audio Video Interleaving).

例えばAVIフォーマットに関しては、ファイルを圧縮するためのアルゴリズムがシステムから独立しているので、様々な圧縮コーデックを用意することによって様々な圧縮技術を使うことが可能である。つまり、オーディオとビデオの圧縮に使う圧縮コーデックを統一する必要がなく、例えば、オーディオにMP3(MPEG Audio Layer 3)、ビデオにDivXの圧縮技術を組み合わせて用いることができる。   For example, for the AVI format, the algorithm for compressing the file is independent of the system, so that various compression techniques can be used by preparing various compression codecs. That is, it is not necessary to unify the compression codec used for audio and video compression, and for example, MP3 (MPEG Audio Layer 3) for audio and DivX compression technology for video can be used in combination.

しかし、このフォーマットは自由度が大きいので、AVIフォーマットのファイルにはオーディオとビデオとの間の同期に関する情報は含まれていないことが多い。このため、再生の際に、オーディオとビデオとの間の同期が一度ずれてしまったら、再び同期させることができない。そこで、オーディオ及びビデオのうちのいずれかのデコード処理が遅れそうになった場合には、遅れそうになった方のデコード処理の質を落とす技術、すなわち、デコード処理として軽い処理を用いて処理が遅れないようにし、同期ずれを起こさないようにする技術が知られている(例えば、特許文献1参照)。
特開平11−112936号公報
However, since this format has a high degree of freedom, the AVI format file often does not contain information about synchronization between audio and video. For this reason, at the time of reproduction, if the synchronization between the audio and the video is once shifted, it cannot be synchronized again. Therefore, when the decoding process of either audio or video is likely to be delayed, the technology that degrades the quality of the decoding process that is likely to be delayed, that is, the process is performed using a light process as the decoding process. There is known a technique for preventing a delay and preventing a synchronization error (see, for example, Patent Document 1).
Japanese Patent Laid-Open No. 11-112936

図9は、従来のストリーム復号装置の構成例を示すブロック図である。入力ストリームバッファ911には、AVIフォーマットのファイルを伝送するビットストリームSTRMが入力されているとする。そのうちのビデオストリームがビデオストリームバッファ912を経由してビデオデコーダ922に入力され、オーディオストリームがオーディオストリームバッファ914を経由してオーディオデコーダ924に入力される。   FIG. 9 is a block diagram illustrating a configuration example of a conventional stream decoding apparatus. It is assumed that a bit stream STRM for transmitting an AVI format file is input to the input stream buffer 911. Of these, the video stream is input to the video decoder 922 via the video stream buffer 912, and the audio stream is input to the audio decoder 924 via the audio stream buffer 914.

ビデオデコーダ922は、ビデオストリームをデコードしてその結果VOUTを出力し、オーディオデコーダ924は、オーディオストリームをデコードしてその結果AOUTを出力する。AVIフォーマットのファイルでは、オーディオとビデオとを同期させるための同期信号が含まれていないので、オーディオ及びビデオのデコード結果がそのまま順次出力される。   The video decoder 922 decodes the video stream and outputs the result VOUT, and the audio decoder 924 decodes the audio stream and outputs the result AOUT. Since the AVI format file does not include a synchronization signal for synchronizing audio and video, the audio and video decoding results are sequentially output as they are.

図10(a)は、図9において、ビデオデコーダ922に入力されるビデオストリーム、及びオーディオデコーダ924に入力されるオーディオストリームの例を示す説明図である。図10(b)は、図10(a)のビットストリームがデコードされて得られたビデオデータ及びオーディオデータの例を示す説明図である。   FIG. 10A is an explanatory diagram illustrating an example of a video stream input to the video decoder 922 and an audio stream input to the audio decoder 924 in FIG. FIG. 10B is an explanatory diagram showing an example of video data and audio data obtained by decoding the bit stream of FIG.

図10(a)のように、ビデオストリームにはエラーがなく、オーディオストリームにはエラーがある場合には、オーディオデコーダ924は、エラーの部分をスキップしてデコードしてしまう。このため、オーディオとビデオをそのまま順次出力していくと、図10(b)のように、エラーのあった個所から後では、オーディオがビデオよりも先に進んでしまい、オーディオとビデオとの間の同期がずれてしまう。   As shown in FIG. 10A, when there is no error in the video stream and there is an error in the audio stream, the audio decoder 924 skips the error part and decodes it. For this reason, when audio and video are output sequentially as they are, as shown in FIG. 10 (b), after the point where there is an error, the audio advances ahead of the video, and between the audio and video. Will be out of sync.

このように、AVIフォーマットのファイルのように同期情報を含まないファイルを伝送するストリームにおいて、オーディオ又はビデオのいずれかのストリーム自身にエラーがあると、復号の際にオーディオとビデオとの間の同期がずれてしまう。そして、同期情報がないので、オーディオとビデオとの間の同期がずれてしまった場合、両者のタイミングを修正して再び同期させることができなかった。   Thus, in a stream that transmits a file that does not include synchronization information, such as an AVI format file, if there is an error in either the audio or video stream itself, the synchronization between the audio and video is performed during decoding. Will shift. And since there is no synchronization information, when the synchronization between the audio and the video is out of sync, the timing of both cannot be corrected and synchronized again.

本発明は、オーディオとビデオとの間の同期がずれてしまっても、同期情報を用いることなく、両者を再び同期させることができるストリーム復号装置を提供することを目的とする。   An object of the present invention is to provide a stream decoding device that can synchronize audio and video again without using synchronization information even if the synchronization between the audio and video is lost.

前記課題を解決するため、請求項1の発明が講じた手段は、オーディオストリームとビデオストリームとを有し、その少なくとも一方には同期情報が含まれていないビットストリームをデコードするストリーム復号装置であって、前記ビデオストリームをデコードし、そのうちの正常にデコードできた部分又は正常にデコードできなかった部分のサイズに応じた第1のデコード情報と、デコードされたビデオデータとを出力するビデオデコーダと、前記オーディオストリームをデコードし、そのうちの正常にデコードできた部分又は正常にデコードできなかった部分のサイズに応じた第2のデコード情報と、デコードされたオーディオデータとを出力するオーディオデコーダと、前記デコードされたビデオデータを格納して出力するビデオ出力バッファと、前記デコードされたオーディオデータを格納して出力するオーディオ出力バッファと、前記第1及び第2のデコード情報に従って、前記デコードされたビデオデータと前記デコードされたオーディオデータとが同期して出力されるように、前記ビデオ出力バッファ及び前記オーディオ出力バッファを制御する出力制御部とを備えるものである。   In order to solve the above-mentioned problem, the means taken by the invention of claim 1 is a stream decoding apparatus that decodes a bit stream having an audio stream and a video stream, at least one of which does not include synchronization information. A video decoder that decodes the video stream, and outputs first decoding information according to a size of a part that can be normally decoded or a part that cannot be decoded normally, and decoded video data; An audio decoder that decodes the audio stream, and outputs second decoding information according to a size of a part that can be normally decoded or a part that cannot be decoded normally; and the decoded audio data; and the decoding Video output to store and output recorded video data A buffer; an audio output buffer for storing and outputting the decoded audio data; and the decoded video data and the decoded audio data are output in synchronization according to the first and second decoding information. As described above, an output control unit that controls the video output buffer and the audio output buffer is provided.

これによると、ビットストリームにエラー等が含まれるために正常にデコードできなかった部分があり、ビデオとオーディオとの間の同期がずれてしまっても、第1及び第2のデコード情報によってビデオとオーディオとの間の時間差を知ることができるので、ビデオとオーディオとを同期させることができる。   According to this, even if there is a part that could not be normally decoded due to an error included in the bitstream, even if the synchronization between the video and the audio is out of sync, the first and second decoding information causes the video and Since the time difference between the audio and the audio can be known, the video and audio can be synchronized.

請求項2の発明では、請求項1に記載のストリーム復号装置において、前記第1のデコード情報は、前記ビデオストリームのうちの正常にデコードすることができなかった部分のサイズであり、前記第2のデコード情報は、前記オーディオストリームのうちの正常にデコードすることができなかった部分のサイズである。   According to a second aspect of the present invention, in the stream decoding device according to the first aspect, the first decoding information is a size of a portion of the video stream that has not been successfully decoded, and the second decoding information Is the size of the portion of the audio stream that could not be decoded normally.

請求項3の発明では、請求項1に記載のストリーム復号装置において、前記第1のデコード情報は、前記ビデオストリームのうちの正常にデコードすることができなかった部分の再生に要する時間であり、前記第2のデコード情報は、前記オーディオストリームのうちの正常にデコードすることができなかった部分の再生に要する時間である。   According to a third aspect of the present invention, in the stream decoding device according to the first aspect, the first decoding information is a time required for reproducing a portion of the video stream that has not been normally decoded, The second decoding information is a time required for reproducing a portion of the audio stream that could not be normally decoded.

請求項4の発明では、請求項3に記載のストリーム復号装置において、前記出力制御部は、前記第1のデコード情報と前記第2のデコード情報との差に基づいて、前記ビデオ出力バッファ及び前記オーディオ出力バッファを制御するものである。   According to a fourth aspect of the present invention, in the stream decoding device according to the third aspect, the output control unit, based on a difference between the first decoded information and the second decoded information, The audio output buffer is controlled.

請求項5の発明では、請求項1に記載のストリーム復号装置において、前記第1のデコード情報は、前記ビデオストリームのうちの正常にデコードすることができた部分の再生に要する時間であり、前記第2のデコード情報は、前記オーディオストリームのうちの正常にデコードすることができた部分の再生に要する時間である。   According to a fifth aspect of the present invention, in the stream decoding device according to the first aspect, the first decoding information is a time required to reproduce a portion of the video stream that has been successfully decoded, The second decoding information is a time required for reproducing a portion of the audio stream that has been successfully decoded.

請求項6の発明では、請求項5に記載のストリーム復号装置において、前記出力制御部は、前記第1のデコード情報と前記第2のデコード情報との差に基づいて、前記ビデオ出力バッファ及び前記オーディオ出力バッファを制御するものである。   According to a sixth aspect of the present invention, in the stream decoding device according to the fifth aspect, the output control unit, based on a difference between the first decoded information and the second decoded information, The audio output buffer is controlled.

請求項7の発明では、請求項1に記載のストリーム復号装置において、前記出力制御部は、前記デコードされたビデオデータと前記デコードされたオーディオデータとのうち、デコードの際に正常にデコードできない部分があった方の出力を遅くするように、前記ビデオ出力バッファ及び前記オーディオ出力バッファを制御するものである。   According to a seventh aspect of the present invention, in the stream decoding device according to the first aspect, the output control unit is a portion of the decoded video data and the decoded audio data that cannot be normally decoded during decoding. The video output buffer and the audio output buffer are controlled so as to delay the output of the one having the error.

請求項8の発明では、請求項1に記載のストリーム復号装置において、前記出力制御部は、前記デコードされたビデオデータと前記デコードされたオーディオデータとのうち、デコードの際に正常にデコードできない部分がなかった方の出力を速くするように、前記ビデオ出力バッファ及び前記オーディオ出力バッファを制御するものである。   According to an eighth aspect of the present invention, in the stream decoding device according to the first aspect, the output control unit is a portion of the decoded video data and the decoded audio data that cannot be normally decoded at the time of decoding. The video output buffer and the audio output buffer are controlled so as to speed up the output of which there is no signal.

請求項9の発明では、請求項1に記載のストリーム復号装置において、前記出力制御部は、前記デコードされたビデオデータと前記デコードされたオーディオデータとのうち、進んでいる方の出力の進行を一時停止させるように、前記ビデオ出力バッファ及び前記オーディオ出力バッファを制御するものである。   According to a ninth aspect of the present invention, in the stream decoding device according to the first aspect, the output control unit determines the progress of the output that is advanced between the decoded video data and the decoded audio data. The video output buffer and the audio output buffer are controlled so as to be paused.

請求項10の発明では、請求項1に記載のストリーム復号装置において、前記出力制御部は、前記デコードされたビデオデータと前記デコードされたオーディオデータとのうち、遅れている方をスキップさせるように、前記ビデオ出力バッファ及び前記オーディオ出力バッファを制御するものである。   According to a tenth aspect of the present invention, in the stream decoding device according to the first aspect, the output control unit skips the delayed one of the decoded video data and the decoded audio data. The video output buffer and the audio output buffer are controlled.

請求項11の発明では、請求項1に記載のストリーム復号装置において、前記出力制御部は、前記デコードされたビデオデータと前記デコードされたオーディオデータとのうち、進んでいる方を低速で再生させるように、前記ビデオ出力バッファ及び前記オーディオ出力バッファを制御するものである。   In the invention of claim 11, in the stream decoding device according to claim 1, the output control unit reproduces the advanced one of the decoded video data and the decoded audio data at a low speed. Thus, the video output buffer and the audio output buffer are controlled.

請求項12の発明では、請求項1に記載のストリーム復号装置において、前記出力制御部は、前記デコードされたビデオデータと前記デコードされたオーディオデータとのうち、遅れている方を高速で再生させるように、前記ビデオ出力バッファ及び前記オーディオ出力バッファを制御するものである。   According to a twelfth aspect of the present invention, in the stream decoding device according to the first aspect, the output control unit reproduces the delayed one of the decoded video data and the decoded audio data at high speed. Thus, the video output buffer and the audio output buffer are controlled.

請求項13の発明は、請求項1に記載のストリーム復号装置において、前記ビットストリームを格納し、前記ビデオデコーダ及び前記オーディオデコーダに出力するストリームバッファを更に備え、前記出力制御部は、前記第1及び第2のデコード情報に基づいて、前記デコードされたビデオデータと前記デコードされたオーディオデータとの間の再生に要する時間差が所定の値よりも大きいことを検出した場合には、前記ストリームバッファ、前記ビデオ出力バッファ、及び前記オーディオ出力バッファをクリアするものである。   The invention according to claim 13 is the stream decoding device according to claim 1, further comprising a stream buffer that stores the bit stream and outputs the bit stream to the video decoder and the audio decoder, wherein the output control unit includes the first decoder. And when detecting that a time difference required for reproduction between the decoded video data and the decoded audio data is larger than a predetermined value based on the second decoding information, the stream buffer, The video output buffer and the audio output buffer are cleared.

請求項14の発明は、請求項1に記載のストリーム復号装置において、正常にデコードすることができない部分がない場合に前記第1又は第2のデコード情報として得られるべき情報を、基準情報として格納して出力する基準情報記憶部を更に備え、前記出力制御部は、前記基準情報と前記第1のデコード情報とに応じて、前記ビデオ出力バッファを制御し、前記基準情報と前記第2のデコード情報とに応じて、前記オーディオ出力バッファを制御するものである。   According to a fourteenth aspect of the present invention, in the stream decoding device according to the first aspect, information to be obtained as the first or second decoding information when there is no portion that cannot be normally decoded is stored as reference information. A reference information storage unit that outputs the reference information, and the output control unit controls the video output buffer according to the reference information and the first decode information, and the reference information and the second decode The audio output buffer is controlled according to the information.

これによると、ビデオストリーム又はオーディオストリームを正常にデコードすることができたとした場合を基準として、ビデオ及びオーディオの出力をそれぞれ制御することができるので、ビデオとオーディオとの間の同期を保つことができる。   According to this, since the video and audio outputs can be controlled based on the case where the video stream or the audio stream can be normally decoded, the synchronization between the video and the audio can be maintained. it can.

請求項15の発明では、請求項14に記載のストリーム復号装置において、前記基準情報は、データサイズを表す情報である。   According to a fifteenth aspect of the present invention, in the stream decoding device according to the fourteenth aspect, the reference information is information representing a data size.

請求項16の発明では、請求項14に記載のストリーム復号装置において、前記基準情報は、データの再生に要する時間を表す情報である。   According to a sixteenth aspect of the present invention, in the stream decoding device according to the fourteenth aspect, the reference information is information representing a time required for data reproduction.

請求項17の発明では、請求項14に記載のストリーム復号装置において、前記第1のデコード情報は、前記ビデオストリームのうちの正常にデコードすることができた部分のサイズであり、前記第2のデコード情報は、前記オーディオストリームのうちの正常にデコードすることができた部分のサイズである。   In the invention of claim 17, in the stream decoding device according to claim 14, the first decoding information is a size of a part of the video stream that can be normally decoded, and the second decoding information The decode information is the size of the portion of the audio stream that has been successfully decoded.

請求項18の発明では、請求項14に記載のストリーム復号装置において、前記第1のデコード情報は、前記ビデオストリームのうちの正常にデコードすることができた部分の再生に要する時間であり、前記第2のデコード情報は、前記オーディオストリームのうちの正常にデコードすることができた部分の再生に要する時間である。   In the invention according to claim 18, in the stream decoding device according to claim 14, the first decode information is a time required to reproduce a portion of the video stream that has been successfully decoded, The second decoding information is a time required for reproducing a portion of the audio stream that has been successfully decoded.

請求項19の発明では、請求項14に記載のストリーム復号装置において、前記出力制御部は、前記デコードされたビデオデータと前記デコードされたオーディオデータとのうち、進んでいる方の出力の進行を一時停止させるように、前記ビデオ出力バッファ及び前記オーディオ出力バッファを制御するものである。   According to a nineteenth aspect of the present invention, in the stream decoding device according to the fourteenth aspect, the output control unit determines the progress of the output that is advanced between the decoded video data and the decoded audio data. The video output buffer and the audio output buffer are controlled so as to be paused.

請求項20の発明では、請求項14に記載のストリーム復号装置において、前記出力制御部は、前記デコードされたビデオデータと前記デコードされたオーディオデータとのうち、遅れている方をスキップさせるように、前記ビデオ出力バッファ及び前記オーディオ出力バッファを制御するものである。   According to a twentieth aspect of the present invention, in the stream decoding device according to the fourteenth aspect, the output control unit skips a delayed one of the decoded video data and the decoded audio data. The video output buffer and the audio output buffer are controlled.

請求項21の発明では、請求項14に記載のストリーム復号装置において、前記出力制御部は、前記デコードされたビデオデータと前記デコードされたオーディオデータとのうち、進んでいる方を低速で再生させるように、前記ビデオ出力バッファ及び前記オーディオ出力バッファを制御するものである。   According to a twenty-first aspect of the invention, in the stream decoding device according to the fourteenth aspect, the output control unit reproduces the advanced one of the decoded video data and the decoded audio data at a low speed. Thus, the video output buffer and the audio output buffer are controlled.

請求項22の発明では、請求項14に記載のストリーム復号装置において、前記出力制御部は、前記デコードされたビデオデータと前記デコードされたオーディオデータとのうち、遅れている方を高速で再生させるように、前記ビデオ出力バッファ及び前記オーディオ出力バッファを制御するものである。   According to a twenty-second aspect of the present invention, in the stream decoding device according to the fourteenth aspect, the output control section reproduces the delayed one of the decoded video data and the decoded audio data at a high speed. Thus, the video output buffer and the audio output buffer are controlled.

請求項23の発明は、請求項14に記載のストリーム復号装置において、前記ビットストリームを格納し、前記ビデオデコーダ及び前記オーディオデコーダに出力するストリームバッファを更に備え、前記出力制御部は、前記基準情報と前記第1又は第2のデコード情報との間の差が所定の値よりも大きいことを検出した場合には、前記ストリームバッファ、前記ビデオ出力バッファ、及び前記オーディオ出力バッファをクリアするものである。   The invention according to claim 23 is the stream decoding device according to claim 14, further comprising a stream buffer that stores the bit stream and outputs the bit stream to the video decoder and the audio decoder, wherein the output control unit includes the reference information And the stream buffer, the video output buffer, and the audio output buffer are cleared when it is detected that the difference between the first decoding information and the second decoding information is larger than a predetermined value. .

本発明によると、オーディオとビデオとの間の同期がずれてしまっても、同期情報を用いることなく、両者を再び同期させることができる。したがって、同期させるための信号を有しないビットストリームをデコードする場合において、オーディオとビデオとの間の同期を保つことができる。   According to the present invention, even if the audio and video are out of synchronization, they can be synchronized again without using synchronization information. Therefore, when decoding a bitstream that does not have a signal for synchronization, synchronization between audio and video can be maintained.

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

(第1の実施形態)
図1は、本発明の第1の実施形態に係るストリーム復号装置の構成例を示すブロック図である。図1のストリーム復号装置は、ビデオデコーダ22と、オーディオデコーダ24と、ビデオ出力バッファ26と、オーディオ出力バッファ28と、デコード情報記憶部32,34と、出力制御部42とを備え、ストリームバッファとして、入力ストリームバッファ11と、ビデオストリームバッファ12と、オーディオストリームバッファ14とを備えている。
(First embodiment)
FIG. 1 is a block diagram showing a configuration example of a stream decoding apparatus according to the first embodiment of the present invention. The stream decoding apparatus of FIG. 1 includes a video decoder 22, an audio decoder 24, a video output buffer 26, an audio output buffer 28, decode information storage units 32 and 34, and an output control unit 42, and serves as a stream buffer. , An input stream buffer 11, a video stream buffer 12, and an audio stream buffer 14.

入力ストリームバッファ11には、AVIフォーマットのファイルを伝送するビットストリームSTRMが入力されているとする。ビットストリームSTRMは、オーディオストリームとビデオストリームとを有し、これらのいずれにも同期情報が含まれていない。入力ストリームバッファ11は、ビットストリームSTRMを所定のサイズずつ格納し、ビデオストリームバッファ12及びオーディオストリームバッファ14は、格納されたビットストリームSTRMのうちのビデオストリーム及びオーディオストリームをそれぞれ格納する。   It is assumed that a bit stream STRM for transmitting an AVI format file is input to the input stream buffer 11. The bit stream STRM includes an audio stream and a video stream, and none of them includes synchronization information. The input stream buffer 11 stores the bit stream STRM by a predetermined size, and the video stream buffer 12 and the audio stream buffer 14 store the video stream and the audio stream of the stored bit stream STRM, respectively.

ビデオデコーダ22は、ビデオストリームバッファ12からビデオストリームを読み出してデコードし、その結果をビデオ出力バッファ26に出力する。また、ビデオデコーダ22は、デコードの際に得られたデコード情報をデコード情報記憶部32に出力する。   The video decoder 22 reads and decodes the video stream from the video stream buffer 12 and outputs the result to the video output buffer 26. Further, the video decoder 22 outputs the decode information obtained at the time of decoding to the decode information storage unit 32.

オーディオデコーダ24は、オーディオストリームバッファ14からオーディオストリームを読み出してデコードし、その結果をオーディオ出力バッファ28に出力する。また、オーディオデコーダ24は、デコードの際に得られたデコード情報をデコード情報記憶部34に出力する。   The audio decoder 24 reads and decodes the audio stream from the audio stream buffer 14 and outputs the result to the audio output buffer 28. Further, the audio decoder 24 outputs the decode information obtained at the time of decoding to the decode information storage unit 34.

例えば、ビデオデコーダ22は、入力されたビデオストリームのうち、正常にデコードすることができなかった部分、すなわち、エラーとなる部分のサイズ(以下では、エラーデータサイズと称する)を求めてデコード情報として出力する。同様に、オーディオデコーダ24は、入力されたオーディオストリームのうち、正常にデコードすることができなかった部分のサイズであるエラーデータサイズを求めてデコード情報として出力する。   For example, the video decoder 22 obtains the size of the part of the input video stream that could not be decoded normally, that is, the part that causes an error (hereinafter referred to as the error data size) as decoding information. Output. Similarly, the audio decoder 24 obtains an error data size that is the size of a portion of the input audio stream that could not be normally decoded and outputs it as decode information.

デコード情報記憶部32,34はいずれも、受け取ったデコード情報を格納し、出力制御部42に出力する。出力制御部42は、デコード情報記憶部32,34から出力されるデコード情報に応じて、ビデオ出力バッファ26及びオーディオ出力バッファ28を制御する。ビデオ出力バッファ26及びオーディオ出力バッファ28は、出力制御部42の制御に従って、ビデオデータVOUT及びオーディオデータAOUTをそれぞれ出力する。   Each of the decode information storage units 32 and 34 stores the received decode information and outputs it to the output control unit 42. The output control unit 42 controls the video output buffer 26 and the audio output buffer 28 according to the decode information output from the decode information storage units 32 and 34. The video output buffer 26 and the audio output buffer 28 output video data VOUT and audio data AOUT, respectively, under the control of the output control unit 42.

図2(a)は、図1において、ビデオデコーダ22に入力されるビデオストリーム、及びオーディオデコーダ24に入力されるオーディオストリームの例を示す説明図である。図2(b)は、図2(a)のビットストリームがデコードされて得られたビデオデータ及びオーディオデータの例を示す説明図である。図2(c)は、図1において、ビデオ出力バッファ26から出力されるビデオデータVOUT、及びオーディオ出力バッファ28から出力されるオーディオデータAOUTの例を示す説明図である。   FIG. 2A is an explanatory diagram illustrating an example of a video stream input to the video decoder 22 and an audio stream input to the audio decoder 24 in FIG. FIG. 2B is an explanatory diagram illustrating an example of video data and audio data obtained by decoding the bit stream of FIG. FIG. 2C is an explanatory diagram showing an example of the video data VOUT output from the video output buffer 26 and the audio data AOUT output from the audio output buffer 28 in FIG.

図2(a)のように、ビデオストリームにはエラーがなく、オーディオストリームにはエラーがあるとすると、オーディオデコーダ24は、エラーの部分をスキップしてデコードしてしまう。このため、ビデオデコーダ22及びオーディオデコーダ24の出力は図2(b)のようになり、エラーのあった個所から後では、オーディオがビデオよりも先に進んでしまい、オーディオとビデオとの間の同期がずれてしまう。図2(b)において、デコードされたビデオデータの再生に要する時間はY、デコードされたオーディオデータの再生に要する時間はX(X<Y)である。   As shown in FIG. 2A, if there is no error in the video stream and there is an error in the audio stream, the audio decoder 24 skips the error portion and decodes it. For this reason, the outputs of the video decoder 22 and the audio decoder 24 are as shown in FIG. 2 (b). After the point where the error has occurred, the audio advances ahead of the video. Synchronization will be lost. In FIG. 2B, the time required for reproducing the decoded video data is Y, and the time required for reproducing the decoded audio data is X (X <Y).

そこで、出力制御部42は、ビデオデコーダ22及びオーディオデコーダ24から出力されたデコード情報に従って、デコードされたビデオデータとデコードされたオーディオデータとが同期して出力されるように、ビデオ出力バッファ26及びオーディオ出力バッファ28を制御する。   Therefore, the output control unit 42, in accordance with the decode information output from the video decoder 22 and the audio decoder 24, outputs the video output buffer 26 and the video output buffer 26 and the decoded audio data in synchronization with each other. The audio output buffer 28 is controlled.

すなわち、出力制御部42は、デコード情報記憶部32から出力されるデコード情報(ビデオのエラーデータサイズ)をビデオのビットレートで割って、サイズがエラーデータサイズであるデータの再生に要する時間(エラー再生時間)をビデオについて求め、デコード情報記憶部34から出力されるデコード情報(オーディオのエラーデータサイズ)をオーディオのビットレートで割って、オーディオのエラー再生時間を求める。出力制御部42は、ビットストリームSTRMのヘッダ情報から、ビデオ及びオーディオのビットレートを既に求めているものとする。   That is, the output control unit 42 divides the decode information (video error data size) output from the decode information storage unit 32 by the video bit rate, and the time required to reproduce the data whose size is the error data size (error Reproduction time) is obtained for the video, and the decoding information (audio error data size) output from the decoding information storage unit 34 is divided by the audio bit rate to obtain the audio error reproduction time. It is assumed that the output control unit 42 has already obtained the video and audio bit rates from the header information of the bitstream STRM.

更に出力制御部42は、ビデオのエラー再生時間とオーディオのエラー再生時間との間の差を求め、ビデオ及びオーディオのうちの遅れている方、言い換えると、デコードされたビデオデータ及びオーディオデータのうちのエラーがなかった方のデータの出力を速くして、そのまま出力する場合に要する時間よりも求められた時間差だけ短い時間で出力するように、ビデオ出力バッファ26及びオーディオ出力バッファ28を制御する。   Further, the output control unit 42 obtains the difference between the video error reproduction time and the audio error reproduction time, and in other words, the delayed one of the video and audio, in other words, the decoded video data and audio data. The video output buffer 26 and the audio output buffer 28 are controlled so that the output of the data having no error is made faster and output in a time shorter than the time required to output the data as it is.

図2(b)の場合は、エラーがなかったビデオの方が遅れているので、出力制御部42は、求められた時間差の分だけ、ビデオ出力バッファ26にビデオデータをスキップさせ、ビデオとオーディオとを同期させる。言い換えると、デコードされたビデオデータを時間Xの間に再生させるようにする。すると、ビデオ出力バッファ26及びオーディオ出力バッファ28からそれぞれ出力されるビデオデータVOUT及びオーディオデータAOUTは、図2(c)のようになり、ビデオとオーディオとの間の同期を保つことができる。   In the case of FIG. 2B, since the video without error is delayed, the output control unit 42 causes the video output buffer 26 to skip the video data by the determined time difference, and the video and audio. Synchronize with. In other words, the decoded video data is reproduced during time X. Then, the video data VOUT and the audio data AOUT output from the video output buffer 26 and the audio output buffer 28 are as shown in FIG. 2C, and synchronization between video and audio can be maintained.

なお、出力制御部は、ビデオの出力をスキップさせる代わりに、例えば、そのまま出力する場合に要する時間よりも求められた時間差だけ短い時間で出力するように、ビデオ出力バッファ26にビデオを高速再生させるように(すなわち、ビデオのフレーム間隔を短くするように)してもよい。   Instead of skipping the video output, the output control unit causes the video output buffer 26 to reproduce the video at a high speed so that, for example, the output is performed in a time shorter than the time required for the output as it is. (That is, to shorten the video frame interval).

図3は、図1において、ビデオ出力バッファから出力されるビデオデータVOUT、及びオーディオ出力バッファから出力されるオーディオデータAOUTの他の例を示す説明図である。図1の出力制御部は、次のように構成されていてもよい。   FIG. 3 is an explanatory diagram showing another example of the video data VOUT output from the video output buffer and the audio data AOUT output from the audio output buffer in FIG. The output control unit in FIG. 1 may be configured as follows.

すなわち、出力制御部は、ビデオのエラー再生時間とオーディオのエラー再生時間との間の差を求め、ビデオ及びオーディオのうちの進んでいる方、言い換えると、ビデオ及びオーディオのうちのエラーがあった方のデータの出力を遅くして、そのまま出力する場合に要する時間よりも求められた時間差だけ長い時間で出力するように、ビデオ出力バッファ26及びオーディオ出力バッファ28を制御するようにしてもよい。   That is, the output control unit obtains the difference between the video error playback time and the audio error playback time, and there is an error in the video and audio, in other words, the more advanced video and audio. The video output buffer 26 and the audio output buffer 28 may be controlled so that the data output is delayed and output in a time longer than the time required to output the data as it is.

図2(b)の場合は、エラーがあったオーディオの方が進んでいるので、出力制御部は、求められた時間差だけ、オーディオ出力バッファ28にオーディオの出力の進行を一時停止させ、ビデオとオーディオとを同期させる。言い換えると、デコードされたオーディオデータを時間Yの間に再生させるようにする。すると、ビデオ出力バッファ26及びオーディオ出力バッファ28からそれぞれ出力されるビデオデータVOUT及びオーディオデータAOUTは、図3のようになり、ビデオとオーディオとの間の同期を保つことができる。   In the case of FIG. 2B, since the audio having the error is advanced, the output control unit causes the audio output buffer 28 to temporarily stop the progress of the audio output by the determined time difference, and Synchronize with audio. In other words, the decoded audio data is reproduced during time Y. Then, the video data VOUT and the audio data AOUT output from the video output buffer 26 and the audio output buffer 28 are as shown in FIG. 3, and synchronization between video and audio can be maintained.

以上のように、図1のストリーム復号装置によると、ビデオとオーディオとが同期しなくなっても、同期情報を用いることなく、また、デコードされたビデオデータ又はオーディオデータにデータを付加することなく、ビデオとオーディオとの間の同期を再び保つようにすることができる。   As described above, according to the stream decoding device of FIG. 1, even when video and audio are not synchronized, without using synchronization information and without adding data to decoded video data or audio data, The synchronization between video and audio can be kept again.

なお、出力制御部は、オーディオの出力の進行を一時停止させる代わりに、例えば、そのまま出力する場合に要する時間よりも求められた時間差だけ長い時間で出力するように、オーディオ出力バッファ28にオーディオを低速再生させるようにしてもよい。   Instead of temporarily stopping the progress of audio output, the output control unit, for example, outputs audio to the audio output buffer 28 so that the audio output buffer 28 outputs the audio data in a time difference that is longer than the time required to output the audio data as it is. You may make it reproduce at low speed.

また、本実施形態においては、ビデオデコーダ22及びオーディオデコーダ24は、エラーデータサイズをデコード情報として出力するものとして説明したが、これに代えて、入力されたストリームのうち、正常にデコードすることができた部分のサイズ(以下では、正常再生データサイズと称する)をデコード情報として出力するようにしてもよい。   Further, in the present embodiment, the video decoder 22 and the audio decoder 24 have been described as outputting error data sizes as decode information, but instead of this, normal decoding of the input stream may be performed. The size of the completed portion (hereinafter referred to as normal reproduction data size) may be output as decode information.

また、ビデオデコーダ及びオーディオデコーダが、ビットストリームSTRMのヘッダ情報から、ビデオ及びオーディオのビットレートをそれぞれ既に求めているものとし、ビデオ及びオーディオについて、正常にデコードすることができなかった部分の再生に要する時間をそれぞれ求め、デコード情報として出力するようにしてもよい。すなわち、ビデオ及びオーディオのエラーデータサイズをそれぞれのビットレートで割り、それぞれ得られた値(ビデオ及びオーディオのエラー再生時間)をデコード情報として出力するようにしてもよい。   In addition, it is assumed that the video decoder and the audio decoder have already obtained the video and audio bit rates from the header information of the bitstream STRM, respectively, and the video and audio cannot be normally decoded. Each time required may be obtained and output as decode information. That is, the error data sizes of video and audio may be divided by the respective bit rates, and the obtained values (video and audio error reproduction times) may be output as decode information.

また、ビデオデコーダ及びオーディオデコーダが、ビットストリームSTRMのヘッダ情報から、ビデオ及びオーディオのビットレートをそれぞれ既に求めているものとし、ビデオ及びオーディオについて、正常にデコードすることができた部分の再生に要する時間をそれぞれ求め、デコード情報として出力するようにしてもよい。すなわち、ビデオ及びオーディオの正常再生データサイズを求め、それぞれの正常再生データサイズをそれぞれのビットレートで割り、それぞれ得られた値(ビデオ及びオーディオの正常再生時間)をデコード情報として出力するようにしてもよい。   Further, it is assumed that the video decoder and the audio decoder have already obtained the bit rates of video and audio from the header information of the bit stream STRM, respectively, and it is necessary to reproduce the part that has been successfully decoded for video and audio. Each time may be obtained and output as decode information. That is, the normal playback data sizes of video and audio are obtained, the respective normal playback data sizes are divided by the respective bit rates, and the obtained values (normal playback times of video and audio) are output as decode information. Also good.

(第1の実施形態の変形例)
図4は、本発明の第1の実施形態の変形例に係るストリーム復号装置の構成例を示すブロック図である。図4のストリーム復号装置は、図1のストリーム復号装置において、デコード情報記憶部32,34に代えてデコード情報記憶部232を備え、ビデオデコーダ22、オーディオデコーダ24、及び出力制御部42に代えて、ビデオデコーダ222と、オーディオデコーダ224と、出力制御部242とを備えるものである。その他の構成要素は、図1を参照して説明したものと同様である。
(Modification of the first embodiment)
FIG. 4 is a block diagram showing a configuration example of a stream decoding apparatus according to a modification of the first embodiment of the present invention. The stream decoding device in FIG. 4 includes the decode information storage unit 232 in place of the decode information storage units 32 and 34 in the stream decoding device in FIG. 1, and instead of the video decoder 22, the audio decoder 24, and the output control unit 42. , A video decoder 222, an audio decoder 224, and an output control unit 242. Other components are the same as those described with reference to FIG.

ビットストリームSTRMのヘッダ情報から、ビデオデコーダ222は、ビデオのビットレートを求め、オーディオデコーダ224は、オーディオのビットレートを求める。ビデオデコーダ222は、ビデオストリームバッファ12からビデオストリームを読み出してデコードし、その結果をビデオ出力バッファ26に出力する。また、ビデオデコーダ222は、デコードの際に得られたデコード情報をデコード情報記憶部232に出力する。   From the header information of the bitstream STRM, the video decoder 222 obtains the video bit rate, and the audio decoder 224 obtains the audio bit rate. The video decoder 222 reads and decodes the video stream from the video stream buffer 12 and outputs the result to the video output buffer 26. In addition, the video decoder 222 outputs the decode information obtained at the time of decoding to the decode information storage unit 232.

オーディオデコーダ224は、オーディオストリームバッファ14からオーディオストリームを読み出してデコードし、その結果をオーディオ出力バッファ28に出力する。また、オーディオデコーダ224は、デコードの際に得られたデコード情報をデコード情報記憶部232に出力する。   The audio decoder 224 reads and decodes the audio stream from the audio stream buffer 14 and outputs the result to the audio output buffer 28. Also, the audio decoder 224 outputs the decode information obtained at the time of decoding to the decode information storage unit 232.

例えば、ビデオデコーダ222は、入力されたビデオストリームのエラーデータサイズを求め、これをビデオのビットレートで割り、得られた値(ビデオのエラー再生時間)をデコード情報として出力する。オーディオデコーダ224は、入力されたオーディオストリームのエラーデータサイズを求め、これをオーディオのビットレートで割り、得られた値(オーディオのエラー再生時間)をデコード情報として出力する。   For example, the video decoder 222 obtains the error data size of the input video stream, divides this by the video bit rate, and outputs the obtained value (video error reproduction time) as decode information. The audio decoder 224 obtains the error data size of the input audio stream, divides this by the audio bit rate, and outputs the obtained value (audio error reproduction time) as decode information.

また、これに代えて、ビデオデコーダが、ビデオの正常データサイズを求め、これをビデオのビットレートで割り、得られた値(ビデオの正常再生時間)をデコード情報として出力するようにし、かつ、オーディオデコーダが、オーディオの正常データサイズを求め、これをオーディオのビットレートで割り、得られた値(オーディオの正常再生時間)をデコード情報として出力するようにしてもよい。   Alternatively, the video decoder obtains the normal data size of the video, divides this by the video bit rate, outputs the obtained value (normal video playback time) as decode information, and The audio decoder may obtain the normal data size of audio, divide this by the audio bit rate, and output the obtained value (normal audio reproduction time) as decode information.

デコード情報記憶部232は、ビデオデコーダ22及びオーディオデコーダ24からデコード情報を受け取り、ビデオデコーダ22のデコード情報とオーディオデコーダ24のデコード情報との差を求めて格納し、これを出力制御部242に出力する。デコード情報記憶部232が格納する値は、ビデオとオーディオとの間の時間差を示す値となっている。   The decode information storage unit 232 receives the decode information from the video decoder 22 and the audio decoder 24, obtains and stores the difference between the decode information of the video decoder 22 and the decode information of the audio decoder 24, and outputs this to the output control unit 242. To do. The value stored in the decode information storage unit 232 is a value indicating the time difference between video and audio.

出力制御部242は、デコード情報記憶部232から出力されるデコード情報に基づいて、デコードされたビデオデータとデコードされたオーディオデータとが同期して出力されるように、ビデオ出力バッファ26及びオーディオ出力バッファ28を制御する。出力制御部242による制御の詳細な点については、ビデオのエラー再生時間とオーディオのエラー再生時間との間の時間差を求めた後における、図1の出力制御部42と同様であるので、説明を省略する。   Based on the decode information output from the decode information storage unit 232, the output control unit 242 outputs the video output buffer 26 and the audio output so that the decoded video data and the decoded audio data are output in synchronization. The buffer 28 is controlled. The details of the control by the output control unit 242 are the same as those of the output control unit 42 of FIG. 1 after the time difference between the video error playback time and the audio error playback time is obtained. Omitted.

(第2の実施形態)
図5は、本発明の第2の実施形態に係るストリーム復号装置の構成例を示すブロック図である。図5のストリーム復号装置は、入力ストリームバッファ311と、ビデオストリームバッファ312と、オーディオストリームバッファ314と、ビデオデコーダ22と、オーディオデコーダ24と、ビデオ出力バッファ326と、オーディオ出力バッファ328と、デコード情報記憶部332,334と、出力制御部342とを備えている。
(Second Embodiment)
FIG. 5 is a block diagram showing a configuration example of a stream decoding apparatus according to the second embodiment of the present invention. 5 includes an input stream buffer 311, a video stream buffer 312, an audio stream buffer 314, a video decoder 22, an audio decoder 24, a video output buffer 326, an audio output buffer 328, and decoding information. Storage units 332 and 334 and an output control unit 342 are provided.

入力ストリームバッファ311、ビデオストリームバッファ312、オーディオストリームバッファ314、ビデオ出力バッファ326、オーディオ出力バッファ328、及びデコード情報記憶部332,334は、出力制御部342から出力されるリセット信号に従って、それぞれが格納しているデータを消去するように構成されている点が、図1の入力ストリームバッファ11、ビデオストリームバッファ12、オーディオストリームバッファ14、ビデオ出力バッファ26、オーディオ出力バッファ28、及びデコード情報記憶部32,34のそれぞれとは異なっている。ビデオデコーダ22、及びオーディオデコーダ24は、図1を参照して説明したものと同様である。   The input stream buffer 311, the video stream buffer 312, the audio stream buffer 314, the video output buffer 326, the audio output buffer 328, and the decode information storage units 332 and 334 are stored according to the reset signal output from the output control unit 342, respectively. The configuration is such that the data being deleted is erased from the input stream buffer 11, the video stream buffer 12, the audio stream buffer 14, the video output buffer 26, the audio output buffer 28, and the decode information storage unit 32 of FIG. 1. , 34 are different from each other. The video decoder 22 and the audio decoder 24 are the same as those described with reference to FIG.

ビデオデコーダ22、及びオーディオデコーダ24は、デコード情報記憶部332,334のそれぞれに、デコード情報としてエラー再生データサイズ又はエラー再生時間を出力する。デコード情報記憶部332,334はいずれも、受け取ったデコード情報を格納し、出力制御部342に出力する。出力制御部342は、デコード情報記憶部332から受け取ったデコード情報とデコード情報記憶部334から受け取ったデコード情報とに基づいて、デコードされたビデオデータとデコードされたオーディオデータとの間の再生に要する時間差を求める。ここで、デコード情報がエラー再生データサイズである場合には、各エラー再生データサイズをビデオ及びオーディオのそれぞれのビットレートで割った後に差を求め、デコード情報がエラー再生時間である場合には、入力されたエラー再生時間の差を求める。   The video decoder 22 and the audio decoder 24 output the error reproduction data size or the error reproduction time as decode information to the decode information storage units 332 and 334, respectively. Each of the decode information storage units 332 and 334 stores the received decode information and outputs it to the output control unit 342. The output control unit 342 is required for reproduction between the decoded video data and the decoded audio data based on the decode information received from the decode information storage unit 332 and the decode information received from the decode information storage unit 334. Find the time difference. Here, when the decoding information is the error reproduction data size, the difference is obtained after dividing each error reproduction data size by the respective bit rates of video and audio, and when the decoding information is the error reproduction time, Find the difference in input error playback time.

得られた値が所定の値よりも大きいことを検出した場合には、出力制御部342は、フラッシュ処理を行う。すなわち、出力制御部342は、入力ストリームバッファ311、ビデオストリームバッファ312、オーディオストリームバッファ314、ビデオ出力バッファ326、オーディオ出力バッファ328、及びデコード情報記憶部332,334にリセット信号を出力し、これらのバッファ等をクリアして、既に求められたデータを出力しないようにする。その他の点は、図1のストリーム復号装置と同様である。   When it is detected that the obtained value is larger than the predetermined value, the output control unit 342 performs a flash process. That is, the output control unit 342 outputs a reset signal to the input stream buffer 311, the video stream buffer 312, the audio stream buffer 314, the video output buffer 326, the audio output buffer 328, and the decode information storage units 332 and 334, Clear the buffer etc. so that the data already obtained is not output. Other points are the same as those of the stream decoding apparatus of FIG.

その後、入力ストリームバッファ311には、次に処理すべきビットストリームSTRMの新たな部分が入力され、復号が開始される。このため、ビデオとオーディオとの間に時間差があっても、それが蓄積されることがなく、再びビデオとオーディオとを同期させて出力することができるようになる。   Thereafter, a new portion of the bit stream STRM to be processed next is input to the input stream buffer 311 and decoding is started. For this reason, even if there is a time difference between the video and the audio, it is not accumulated, and the video and the audio can be output again in synchronization.

なお、デコード情報として正常再生データサイズ又は正常再生時間を用いるようにすることも同様に可能である。   It is also possible to use the normal reproduction data size or the normal reproduction time as the decode information.

(第3の実施形態)
図6は、本発明の第3の実施形態に係るストリーム復号装置の構成例を示すブロック図である。図6のストリーム復号装置は、図1のストリーム復号装置において、ビデオデコーダ22、オーディオデコーダ24、及び出力制御部42に代えて、ビデオデコーダ422、オーディオデコーダ424、及び出力制御部442をそれぞれ備え、かつ、基準情報記憶部36,38を更に備えるものである。その他の構成要素は、図1を参照して説明したものと同様であるので、同一の参照番号を付してその説明を省略する。
(Third embodiment)
FIG. 6 is a block diagram showing a configuration example of a stream decoding apparatus according to the third embodiment of the present invention. The stream decoding device in FIG. 6 includes a video decoder 422, an audio decoder 424, and an output control unit 442 in place of the video decoder 22, the audio decoder 24, and the output control unit 42 in the stream decoding device in FIG. In addition, reference information storage units 36 and 38 are further provided. The other components are the same as those described with reference to FIG. 1, and thus the same reference numerals are assigned and description thereof is omitted.

ビデオデコーダ422及びオーディオデコーダ424は、エラーなく正常にデコードすることができる場合に得られると予想されるデコード情報を、ビットストリームSTRMのヘッダ情報から予め算出しておき、基準情報として基準情報記憶部36,38にそれぞれ格納させる。デコード情報は、ここでは正常再生データサイズであるとするが、正常再生時間等であってもよい。   The video decoder 422 and the audio decoder 424 calculate in advance decoding information expected to be obtained when normal decoding can be performed without error from the header information of the bitstream STRM, and use the reference information storage unit as reference information. 36 and 38, respectively. The decode information here is a normal reproduction data size, but may be a normal reproduction time.

ビデオデコーダ422は、ビデオストリームバッファ12からビデオストリームを読み出してデコードし、その結果をビデオ出力バッファ26に出力する。また、ビデオデコーダ422は、デコードの際に得られたデコード情報をデコード情報記憶部32に出力する。   The video decoder 422 reads and decodes the video stream from the video stream buffer 12 and outputs the result to the video output buffer 26. In addition, the video decoder 422 outputs the decode information obtained at the time of decoding to the decode information storage unit 32.

オーディオデコーダ424は、オーディオストリームバッファ14からオーディオストリームを読み出してデコードし、その結果をオーディオ出力バッファ28に出力する。また、オーディオデコーダ424は、デコードの際に得られたデコード情報をデコード情報記憶部34に出力する。   The audio decoder 424 reads and decodes the audio stream from the audio stream buffer 14 and outputs the result to the audio output buffer 28. Also, the audio decoder 424 outputs the decode information obtained at the time of decoding to the decode information storage unit 34.

出力制御部442は、デコード情報記憶部32に格納されたデコード情報と、基準情報記憶部36に格納された基準情報との差を求め、求められた値に従って、ビデオ出力バッファ26を制御する。例えば、デコード情報が正常再生データサイズであって、デコード情報記憶部32に格納されたデコード情報の値が基準情報の値よりも小さい場合には、ビデオに正常に再生されない部分があったと考えられるので、出力制御部442は、両者の差をビデオのビットレートで割り、得られた時間だけ、ビデオデータVOUTの出力を遅らせる。   The output control unit 442 obtains a difference between the decode information stored in the decode information storage unit 32 and the reference information stored in the reference information storage unit 36, and controls the video output buffer 26 according to the obtained value. For example, when the decode information has a normal reproduction data size and the value of the decode information stored in the decode information storage unit 32 is smaller than the value of the reference information, it is considered that there is a portion that is not normally reproduced in the video. Therefore, the output control unit 442 divides the difference between the two by the video bit rate, and delays the output of the video data VOUT by the obtained time.

出力制御部442は、オーディオについても同様に、デコード情報記憶部34に格納されたデコード情報と、基準情報記憶部38に格納された基準情報との差を求め、求められた値に従って、オーディオ出力バッファ28を制御する。   Similarly, for the audio, the output control unit 442 obtains the difference between the decode information stored in the decode information storage unit 34 and the reference information stored in the reference information storage unit 38, and outputs the audio according to the obtained value. The buffer 28 is controlled.

このように、図6のストリーム復号装置によると、ビットストリームを正常にデコードすることができたとした場合を基準として、ビデオ及びオーディオの出力をそれぞれ制御することによって、ビデオとオーディオとの間の同期を保つことができる。   As described above, according to the stream decoding apparatus of FIG. 6, synchronization between video and audio is performed by controlling the output of video and audio on the basis of the case where the bit stream can be normally decoded. Can keep.

(第3の実施形態の変形例)
図7は、本発明の第3の実施形態の変形例に係るストリーム復号装置の構成例を示すブロック図である。図7のストリーム復号装置は、図6のストリーム復号装置において、基準情報記憶部36,38に代えて基準情報記憶部536を備え、ビデオデコーダ422、オーディオデコーダ424、及び出力制御部442に代えて、ビデオデコーダ522と、オーディオデコーダ524と、出力制御部542とを備えるものである。その他の構成要素は、図1を参照して説明したものと同様である。
(Modification of the third embodiment)
FIG. 7 is a block diagram showing a configuration example of a stream decoding apparatus according to a modification of the third embodiment of the present invention. The stream decoding device in FIG. 7 includes the reference information storage unit 536 in place of the reference information storage units 36 and 38 in the stream decoding device in FIG. 6, and instead of the video decoder 422, the audio decoder 424, and the output control unit 442. , A video decoder 522, an audio decoder 524, and an output control unit 542. Other components are the same as those described with reference to FIG.

ビデオデコーダ522は、エラーなく正常にデコードすることができる場合に得られると予想されるデコード情報を、ビットストリームSTRMのヘッダ情報から予め算出しておき、基準情報として基準情報記憶部536に格納させる。デコード情報は、ここでは例として正常再生時間であるとするが、エラー再生時間であってもよい。基準情報は、オーディオについてもビデオについてと同じ値となるので、ビデオデコーダ522に代えて、オーディオデコーダ524が、基準情報を算出して基準情報記憶部536に格納させるようにしてもよい。   The video decoder 522 calculates in advance from the header information of the bitstream STRM the decoding information that is expected to be obtained when it can be normally decoded without error, and stores it in the reference information storage unit 536 as reference information. . The decode information is assumed to be a normal reproduction time here as an example, but may be an error reproduction time. Since the reference information has the same value for audio as that for video, the audio decoder 524 may calculate the reference information and store it in the reference information storage unit 536 instead of the video decoder 522.

ビットストリームSTRMのヘッダ情報から、ビデオデコーダ522は、ビデオのビットレートを求め、オーディオデコーダ524は、オーディオのビットレートを求める。ビデオデコーダ522は、ビデオストリームバッファ12からビデオストリームを読み出してデコードし、その結果をビデオ出力バッファ26に出力する。また、ビデオデコーダ522は、デコードの際に得られたデコード情報をデコード情報記憶部32に出力する。   From the header information of the bitstream STRM, the video decoder 522 obtains the video bit rate, and the audio decoder 524 obtains the audio bit rate. The video decoder 522 reads the video stream from the video stream buffer 12, decodes it, and outputs the result to the video output buffer 26. In addition, the video decoder 522 outputs the decode information obtained at the time of decoding to the decode information storage unit 32.

オーディオデコーダ524は、オーディオストリームバッファ14からオーディオストリームを読み出してデコードし、その結果をオーディオ出力バッファ28に出力する。また、オーディオデコーダ524は、デコードの際に得られたデコード情報をデコード情報記憶部34に出力する。   The audio decoder 524 reads and decodes the audio stream from the audio stream buffer 14 and outputs the result to the audio output buffer 28. Also, the audio decoder 524 outputs the decode information obtained at the time of decoding to the decode information storage unit 34.

ここで、ビデオデコーダ522は、入力されたビデオストリームの正常再生データサイズを求め、これをビデオのビットレートで割り、得られた値(ビデオの正常再生時間)をデコード情報として出力する。オーディオデコーダ524は、入力されたオーディオストリームの正常再生データサイズを求め、これをオーディオのビットレートで割り、得られた値(オーディオの正常再生時間)をデコード情報として出力する。   Here, the video decoder 522 obtains the normal reproduction data size of the input video stream, divides this by the video bit rate, and outputs the obtained value (normal video reproduction time) as decoding information. The audio decoder 524 obtains the normal reproduction data size of the input audio stream, divides this by the audio bit rate, and outputs the obtained value (audio normal reproduction time) as decode information.

基準情報記憶部536は、ビデオデコーダ522又はオーディオデコーダ524からデコード情報を受け取って格納し、これを出力制御部542に出力する。   The reference information storage unit 536 receives and stores the decoding information from the video decoder 522 or the audio decoder 524, and outputs this to the output control unit 542.

出力制御部542は、デコード情報記憶部32に格納されたデコード情報と、基準情報記憶部536に格納された基準情報との差を求め、求められた値に従って、ビデオ出力バッファ26を制御する。例えば、デコード情報が正常再生時間であって、デコード情報記憶部32に格納されたデコード情報の値が基準情報の値よりも小さい場合には、ビデオに正常に再生されない部分があったと考えられるので、出力制御部542は、両者の差だけ、ビデオデータVOUTの出力を遅らせる。   The output control unit 542 obtains a difference between the decode information stored in the decode information storage unit 32 and the reference information stored in the reference information storage unit 536, and controls the video output buffer 26 according to the obtained value. For example, if the decode information is a normal reproduction time and the value of the decode information stored in the decode information storage unit 32 is smaller than the value of the reference information, it is considered that there was a part that was not normally reproduced in the video. The output control unit 542 delays the output of the video data VOUT by the difference between the two.

出力制御部542は、オーディオについても同様に、デコード情報記憶部34に格納されたデコード情報と、基準情報記憶部536に格納された基準情報との差を求め、求められた値に従って、オーディオ出力バッファ28を制御する。   Similarly, for the audio, the output control unit 542 obtains a difference between the decode information stored in the decode information storage unit 34 and the reference information stored in the reference information storage unit 536, and outputs the audio according to the obtained value. The buffer 28 is controlled.

(第4の実施形態)
図8は、本発明の第4の実施形態に係るストリーム復号装置の構成例を示すブロック図である。図8のストリーム復号装置は、入力ストリームバッファ311と、ビデオストリームバッファ312と、オーディオストリームバッファ314と、ビデオデコーダ422と、オーディオデコーダ424と、ビデオ出力バッファ326と、オーディオ出力バッファ328と、デコード情報記憶部332,334と、基準情報記憶部636,638と、出力制御部642とを備えている。
(Fourth embodiment)
FIG. 8 is a block diagram showing a configuration example of a stream decoding apparatus according to the fourth embodiment of the present invention. 8 includes an input stream buffer 311, a video stream buffer 312, an audio stream buffer 314, a video decoder 422, an audio decoder 424, a video output buffer 326, an audio output buffer 328, and decoding information. Storage units 332 and 334, reference information storage units 636 and 638, and an output control unit 642 are provided.

入力ストリームバッファ311、ビデオストリームバッファ312、オーディオストリームバッファ314、ビデオ出力バッファ326、オーディオ出力バッファ328、及びデコード情報記憶部332,334は、図5を参照して説明したものと同様である。ビデオデコーダ422及びオーディオデコーダ424は、図6を参照して説明したものと同様である。基準情報記憶部636,638は、出力制御部642から出力されるリセット信号に従ってクリアされる点が、図6の基準情報記憶部36,38のそれぞれとは異なっている。   The input stream buffer 311, video stream buffer 312, audio stream buffer 314, video output buffer 326, audio output buffer 328, and decode information storage units 332 and 334 are the same as those described with reference to FIG. The video decoder 422 and the audio decoder 424 are the same as those described with reference to FIG. The reference information storage units 636 and 638 are different from the reference information storage units 36 and 38 of FIG. 6 in that the reference information storage units 636 and 638 are cleared according to a reset signal output from the output control unit 642.

ビデオデコーダ422、及びオーディオデコーダ424は、デコード情報記憶部332,334のそれぞれに、デコード情報として正常再生データサイズ又は正常再生時間を出力する。デコード情報記憶部332,334はいずれも、受け取ったデコード情報を格納し、出力制御部642に出力する。   The video decoder 422 and the audio decoder 424 output the normal reproduction data size or the normal reproduction time as decode information to the decode information storage units 332 and 334, respectively. Each of the decode information storage units 332 and 334 stores the received decode information and outputs it to the output control unit 642.

出力制御部642は、デコード情報記憶部332から受け取ったデコード情報と基準情報記憶部636から受け取った基準情報との差を求め、得られた値が所定の値よりも大きいことを検出した場合には、フラッシュ処理を行う。すなわち、出力制御部642は、入力ストリームバッファ311、ビデオストリームバッファ312、オーディオストリームバッファ314、ビデオ出力バッファ326、オーディオ出力バッファ328、デコード情報記憶部332,334、及び基準情報記憶部636,638にリセット信号を出力し、これらのバッファ等をクリアする。その他の点は、図6のストリーム復号装置と同様である。   The output control unit 642 obtains a difference between the decode information received from the decode information storage unit 332 and the reference information received from the reference information storage unit 636, and detects that the obtained value is larger than a predetermined value. Performs the flash process. That is, the output control unit 642 includes the input stream buffer 311, the video stream buffer 312, the audio stream buffer 314, the video output buffer 326, the audio output buffer 328, the decode information storage units 332 and 334, and the reference information storage units 636 and 638. A reset signal is output to clear these buffers and the like. Other points are the same as those of the stream decoding apparatus of FIG.

また、出力制御部642は、デコード情報記憶部334から受け取ったデコード情報と基準情報記憶部638から受け取った基準情報との差を求め、得られた値が所定の値よりも大きいことを検出した場合にも、同様にフラッシュ処理を行う。   Further, the output control unit 642 obtains a difference between the decode information received from the decode information storage unit 334 and the reference information received from the reference information storage unit 638, and detects that the obtained value is larger than a predetermined value. In this case, the flash process is performed in the same manner.

その後、入力ストリームバッファ311には、次に処理すべきビットストリームSTRMの新たな部分が入力され、復号が開始されるので、再びビデオとオーディオとを同期させて出力することができるようになる。   Thereafter, a new portion of the bit stream STRM to be processed next is input to the input stream buffer 311 and decoding is started, so that the video and audio can be synchronized again and output.

以上の実施形態において、ビットストリームSTRMはAVIフォーマットのファイルを伝送するビットストリームであるとして説明したが、オーディオストリームとビデオストリームとを有し、その少なくとも一方に同期情報が含まれていないようなビットストリームであれば同様に説明することができる。   In the above embodiment, the bit stream STRM has been described as a bit stream for transmitting an AVI format file. However, the bit stream has an audio stream and a video stream, and at least one of them does not include synchronization information. A stream can be described similarly.

以上説明したように、本発明は、同期情報を用いることなく、オーディオとビデオとを同期させることができるので、ストリーム復号装置として有用である。   As described above, since the present invention can synchronize audio and video without using synchronization information, it is useful as a stream decoding apparatus.

本発明の第1の実施形態に係るストリーム復号装置の構成例を示すブロック図である。It is a block diagram which shows the structural example of the stream decoding apparatus which concerns on the 1st Embodiment of this invention. (a)は、図1において、ビデオデコーダに入力されるビデオストリーム、及びオーディオデコーダに入力されるオーディオストリームの例を示す説明図である。(b)は、(a)のビットストリームがデコードされて得られたビデオデータ及びオーディオデータの例を示す説明図である。(c)は、図1において、ビデオ出力バッファから出力されるビデオデータVOUT、及びオーディオ出力バッファから出力されるオーディオデータAOUTの例を示す説明図である。(A) is explanatory drawing which shows the example of the audio stream input into the video stream input into a video decoder, and an audio decoder in FIG. (B) is explanatory drawing which shows the example of the video data and audio data which were obtained by decoding the bit stream of (a). FIG. 3C is an explanatory diagram illustrating an example of the video data VOUT output from the video output buffer and the audio data AOUT output from the audio output buffer in FIG. 1. 図1において、ビデオ出力バッファから出力されるビデオデータVOUT、及びオーディオ出力バッファから出力されるオーディオデータAOUTの他の例を示す説明図である。In FIG. 1, it is explanatory drawing which shows the other example of the video data VOUT output from a video output buffer, and the audio data AOUT output from an audio output buffer. 本発明の第1の実施形態の変形例に係るストリーム復号装置の構成例を示すブロック図である。It is a block diagram which shows the structural example of the stream decoding apparatus which concerns on the modification of the 1st Embodiment of this invention. 本発明の第2の実施形態に係るストリーム復号装置の構成例を示すブロック図である。It is a block diagram which shows the structural example of the stream decoding apparatus which concerns on the 2nd Embodiment of this invention. 本発明の第3の実施形態に係るストリーム復号装置の構成例を示すブロック図である。It is a block diagram which shows the structural example of the stream decoding apparatus which concerns on the 3rd Embodiment of this invention. 本発明の第3の実施形態の変形例に係るストリーム復号装置の構成例を示すブロック図である。It is a block diagram which shows the structural example of the stream decoding apparatus which concerns on the modification of the 3rd Embodiment of this invention. 本発明の第4の実施形態に係るストリーム復号装置の構成例を示すブロック図である。It is a block diagram which shows the structural example of the stream decoding apparatus which concerns on the 4th Embodiment of this invention. 従来のストリーム復号装置の構成例を示すブロック図である。It is a block diagram which shows the structural example of the conventional stream decoding apparatus. (a)は、図9において、ビデオデコーダに入力されるビデオストリーム、及びオーディオデコーダに入力されるオーディオストリームの例を示す説明図である。(b)は、(a)のビットストリームがデコードされて得られたビデオデータ及びオーディオデータの例を示す説明図である。FIG. 9A is an explanatory diagram illustrating an example of a video stream input to the video decoder and an audio stream input to the audio decoder in FIG. 9. (B) is explanatory drawing which shows the example of the video data and audio data which were obtained by decoding the bit stream of (a).

符号の説明Explanation of symbols

11,311 入力ストリームバッファ
12,312 ビデオストリームバッファ
14,314 オーディオストリームバッファ
22,222,422,522 ビデオデコーダ
24,224,424,524 オーディオデコーダ
26,326 ビデオ出力バッファ
28,328 オーディオ出力バッファ
32,34,232,332,334 デコード情報記憶部
36,38,536,636,638 基準情報記憶部
42,242,342,442,542,642 出力制御部
11, 311 Input stream buffer 12, 312 Video stream buffer 14, 314 Audio stream buffer 22, 222, 422, 522 Video decoder 24, 224, 424, 524 Audio decoder 26, 326 Video output buffer 28, 328 Audio output buffer 32, 34, 232, 332, 334 Decode information storage unit 36, 38, 536, 636, 638 Reference information storage unit 42, 242, 342, 442, 542, 642 Output control unit

Claims (23)

オーディオストリームとビデオストリームとを有し、その少なくとも一方には同期情報が含まれていないビットストリームをデコードするストリーム復号装置であって、
前記ビデオストリームをデコードし、そのうちの正常にデコードできた部分又は正常にデコードできなかった部分のサイズに応じた第1のデコード情報と、デコードされたビデオデータとを出力するビデオデコーダと、
前記オーディオストリームをデコードし、そのうちの正常にデコードできた部分又は正常にデコードできなかった部分のサイズに応じた第2のデコード情報と、デコードされたオーディオデータとを出力するオーディオデコーダと、
前記デコードされたビデオデータを格納して出力するビデオ出力バッファと、
前記デコードされたオーディオデータを格納して出力するオーディオ出力バッファと、
前記第1及び第2のデコード情報に従って、前記デコードされたビデオデータと前記デコードされたオーディオデータとが同期して出力されるように、前記ビデオ出力バッファ及び前記オーディオ出力バッファを制御する出力制御部とを備える
ストリーム復号装置。
A stream decoding apparatus that decodes a bit stream that includes an audio stream and a video stream, and at least one of which does not include synchronization information,
A video decoder that decodes the video stream, and outputs first decoding information according to a size of a part that can be normally decoded or a part that cannot be decoded normally, and decoded video data;
An audio decoder that decodes the audio stream, and outputs second decoding information corresponding to a size of a part that has been successfully decoded or a part that has not been correctly decoded, and decoded audio data;
A video output buffer for storing and outputting the decoded video data;
An audio output buffer for storing and outputting the decoded audio data;
An output control unit for controlling the video output buffer and the audio output buffer so that the decoded video data and the decoded audio data are output in synchronization according to the first and second decoding information. A stream decoding apparatus.
請求項1に記載のストリーム復号装置において、
前記第1のデコード情報は、
前記ビデオストリームのうちの正常にデコードすることができなかった部分のサイズであり、
前記第2のデコード情報は、
前記オーディオストリームのうちの正常にデコードすることができなかった部分のサイズである
ことを特徴とするストリーム復号装置。
The stream decoding device according to claim 1,
The first decoding information is:
The size of the portion of the video stream that could not be successfully decoded;
The second decoding information is:
A stream decoding apparatus characterized in that it is the size of a portion of the audio stream that could not be normally decoded.
請求項1に記載のストリーム復号装置において、
前記第1のデコード情報は、
前記ビデオストリームのうちの正常にデコードすることができなかった部分の再生に要する時間であり、
前記第2のデコード情報は、
前記オーディオストリームのうちの正常にデコードすることができなかった部分の再生に要する時間である
ことを特徴とするストリーム復号装置。
The stream decoding device according to claim 1,
The first decoding information is:
A time required to reproduce a portion of the video stream that could not be normally decoded;
The second decoding information is:
A stream decoding apparatus characterized by a time required for reproducing a portion of the audio stream that could not be normally decoded.
請求項3に記載のストリーム復号装置において、
前記出力制御部は、
前記第1のデコード情報と前記第2のデコード情報との差に基づいて、前記ビデオ出力バッファ及び前記オーディオ出力バッファを制御するものである
ことを特徴とするストリーム復号装置。
The stream decoding device according to claim 3,
The output control unit
A stream decoding apparatus, wherein the video output buffer and the audio output buffer are controlled based on a difference between the first decoding information and the second decoding information.
請求項1に記載のストリーム復号装置において、
前記第1のデコード情報は、
前記ビデオストリームのうちの正常にデコードすることができた部分の再生に要する時間であり、
前記第2のデコード情報は、
前記オーディオストリームのうちの正常にデコードすることができた部分の再生に要する時間である
ことを特徴とするストリーム復号装置。
The stream decoding device according to claim 1,
The first decoding information is:
A time required to reproduce a portion of the video stream that has been successfully decoded;
The second decoding information is:
A stream decoding apparatus characterized by a time required for reproducing a portion of the audio stream that has been successfully decoded.
請求項5に記載のストリーム復号装置において、
前記出力制御部は、
前記第1のデコード情報と前記第2のデコード情報との差に基づいて、前記ビデオ出力バッファ及び前記オーディオ出力バッファを制御するものである
ことを特徴とするストリーム復号装置。
The stream decoding device according to claim 5,
The output control unit
A stream decoding apparatus, wherein the video output buffer and the audio output buffer are controlled based on a difference between the first decoding information and the second decoding information.
請求項1に記載のストリーム復号装置において、
前記出力制御部は、
前記デコードされたビデオデータと前記デコードされたオーディオデータとのうち、デコードの際に正常にデコードできない部分があった方の出力を遅くするように、前記ビデオ出力バッファ及び前記オーディオ出力バッファを制御するものである
ことを特徴とするストリーム復号装置。
The stream decoding device according to claim 1,
The output control unit
The video output buffer and the audio output buffer are controlled so as to delay the output of the decoded video data and the decoded audio data that has a portion that cannot be normally decoded during decoding. A stream decoding apparatus characterized by being a device.
請求項1に記載のストリーム復号装置において、
前記出力制御部は、
前記デコードされたビデオデータと前記デコードされたオーディオデータとのうち、デコードの際に正常にデコードできない部分がなかった方の出力を速くするように、前記ビデオ出力バッファ及び前記オーディオ出力バッファを制御するものである
ことを特徴とするストリーム復号装置。
The stream decoding device according to claim 1,
The output control unit
The video output buffer and the audio output buffer are controlled so as to speed up the output of the decoded video data and the decoded audio data in which there is no portion that cannot be normally decoded during decoding. A stream decoding apparatus characterized by being a device.
請求項1に記載のストリーム復号装置において、
前記出力制御部は、
前記デコードされたビデオデータと前記デコードされたオーディオデータとのうち、進んでいる方の出力の進行を一時停止させるように、前記ビデオ出力バッファ及び前記オーディオ出力バッファを制御するものである
ことを特徴とするストリーム復号装置。
The stream decoding device according to claim 1,
The output control unit
The video output buffer and the audio output buffer are controlled so as to temporarily stop the progress of the output of the decoded video data and the decoded audio data. A stream decoding device.
請求項1に記載のストリーム復号装置において、
前記出力制御部は、
前記デコードされたビデオデータと前記デコードされたオーディオデータとのうち、遅れている方をスキップさせるように、前記ビデオ出力バッファ及び前記オーディオ出力バッファを制御するものである
ことを特徴とするストリーム復号装置。
The stream decoding device according to claim 1,
The output control unit
A stream decoding apparatus for controlling the video output buffer and the audio output buffer so as to skip a delayed one of the decoded video data and the decoded audio data .
請求項1に記載のストリーム復号装置において、
前記出力制御部は、
前記デコードされたビデオデータと前記デコードされたオーディオデータとのうち、進んでいる方を低速で再生させるように、前記ビデオ出力バッファ及び前記オーディオ出力バッファを制御するものである
ことを特徴とするストリーム復号装置。
The stream decoding device according to claim 1,
The output control unit
A stream characterized by controlling the video output buffer and the audio output buffer so that the advanced one of the decoded video data and the decoded audio data is reproduced at a low speed. Decoding device.
請求項1に記載のストリーム復号装置において、
前記出力制御部は、
前記デコードされたビデオデータと前記デコードされたオーディオデータとのうち、遅れている方を高速で再生させるように、前記ビデオ出力バッファ及び前記オーディオ出力バッファを制御するものである
ことを特徴とするストリーム復号装置。
The stream decoding device according to claim 1,
The output control unit
A stream for controlling the video output buffer and the audio output buffer so that the delayed one of the decoded video data and the decoded audio data is reproduced at high speed. Decoding device.
請求項1に記載のストリーム復号装置において、
前記ビットストリームを格納し、前記ビデオデコーダ及び前記オーディオデコーダに出力するストリームバッファを更に備え、
前記出力制御部は、
前記第1及び第2のデコード情報に基づいて、前記デコードされたビデオデータと前記デコードされたオーディオデータとの間の再生に要する時間差が所定の値よりも大きいことを検出した場合には、前記ストリームバッファ、前記ビデオ出力バッファ、及び前記オーディオ出力バッファをクリアするものである
ことを特徴とするストリーム復号装置。
The stream decoding device according to claim 1,
A stream buffer for storing the bit stream and outputting the bit stream to the video decoder and the audio decoder;
The output control unit
Based on the first and second decoding information, when it is detected that the time difference required for reproduction between the decoded video data and the decoded audio data is larger than a predetermined value, A stream decoding apparatus for clearing a stream buffer, the video output buffer, and the audio output buffer.
請求項1に記載のストリーム復号装置において、
正常にデコードすることができない部分がない場合に前記第1又は第2のデコード情報として得られるべき情報を、基準情報として格納して出力する基準情報記憶部を更に備え、
前記出力制御部は、
前記基準情報と前記第1のデコード情報とに応じて、前記ビデオ出力バッファを制御し、前記基準情報と前記第2のデコード情報とに応じて、前記オーディオ出力バッファを制御するものである
ことを特徴とするストリーム復号装置。
The stream decoding device according to claim 1,
A reference information storage unit that stores and outputs information to be obtained as the first or second decoding information as reference information when there is no portion that cannot be normally decoded;
The output control unit
The video output buffer is controlled according to the reference information and the first decode information, and the audio output buffer is controlled according to the reference information and the second decode information. A characteristic stream decoding apparatus.
請求項14に記載のストリーム復号装置において、
前記基準情報は、
データサイズを表す情報である
ことを特徴とするストリーム復号装置。
The stream decoding device according to claim 14, wherein
The reference information is
A stream decoding apparatus characterized by being information representing a data size.
請求項14に記載のストリーム復号装置において、
前記基準情報は、
データの再生に要する時間を表す情報である
ことを特徴とするストリーム復号装置。
The stream decoding device according to claim 14, wherein
The reference information is
A stream decoding apparatus characterized in that the stream decoding apparatus is information indicating a time required for data reproduction.
請求項14に記載のストリーム復号装置において、
前記第1のデコード情報は、
前記ビデオストリームのうちの正常にデコードすることができた部分のサイズであり、
前記第2のデコード情報は、
前記オーディオストリームのうちの正常にデコードすることができた部分のサイズである
ことを特徴とするストリーム復号装置。
The stream decoding device according to claim 14, wherein
The first decoding information is:
The size of the portion of the video stream that was successfully decoded;
The second decoding information is:
A stream decoding apparatus having a size of a portion of the audio stream that has been successfully decoded.
請求項14に記載のストリーム復号装置において、
前記第1のデコード情報は、
前記ビデオストリームのうちの正常にデコードすることができた部分の再生に要する時間であり、
前記第2のデコード情報は、
前記オーディオストリームのうちの正常にデコードすることができた部分の再生に要する時間である
ことを特徴とするストリーム復号装置。
The stream decoding device according to claim 14, wherein
The first decoding information is:
A time required to reproduce a portion of the video stream that has been successfully decoded;
The second decoding information is:
A stream decoding apparatus characterized by a time required for reproducing a portion of the audio stream that has been successfully decoded.
請求項14に記載のストリーム復号装置において、
前記出力制御部は、
前記デコードされたビデオデータと前記デコードされたオーディオデータとのうち、進んでいる方の出力の進行を一時停止させるように、前記ビデオ出力バッファ及び前記オーディオ出力バッファを制御するものである
ことを特徴とするストリーム復号装置。
The stream decoding device according to claim 14, wherein
The output control unit
The video output buffer and the audio output buffer are controlled so as to temporarily stop the progress of the output of the decoded video data and the decoded audio data. A stream decoding device.
請求項14に記載のストリーム復号装置において、
前記出力制御部は、
前記デコードされたビデオデータと前記デコードされたオーディオデータとのうち、遅れている方をスキップさせるように、前記ビデオ出力バッファ及び前記オーディオ出力バッファを制御するものである
ことを特徴とするストリーム復号装置。
The stream decoding device according to claim 14, wherein
The output control unit
A stream decoding apparatus for controlling the video output buffer and the audio output buffer so as to skip a delayed one of the decoded video data and the decoded audio data .
請求項14に記載のストリーム復号装置において、
前記出力制御部は、
前記デコードされたビデオデータと前記デコードされたオーディオデータとのうち、進んでいる方を低速で再生させるように、前記ビデオ出力バッファ及び前記オーディオ出力バッファを制御するものである
ことを特徴とするストリーム復号装置。
The stream decoding device according to claim 14, wherein
The output control unit
A stream characterized by controlling the video output buffer and the audio output buffer so that the advanced one of the decoded video data and the decoded audio data is reproduced at a low speed. Decoding device.
請求項14に記載のストリーム復号装置において、
前記出力制御部は、
前記デコードされたビデオデータと前記デコードされたオーディオデータとのうち、遅れている方を高速で再生させるように、前記ビデオ出力バッファ及び前記オーディオ出力バッファを制御するものである
ことを特徴とするストリーム復号装置。
The stream decoding device according to claim 14, wherein
The output control unit
A stream for controlling the video output buffer and the audio output buffer so that the delayed one of the decoded video data and the decoded audio data is reproduced at high speed. Decoding device.
請求項14に記載のストリーム復号装置において、
前記ビットストリームを格納し、前記ビデオデコーダ及び前記オーディオデコーダに出力するストリームバッファを更に備え、
前記出力制御部は、
前記基準情報と前記第1又は第2のデコード情報との間の差が所定の値よりも大きいことを検出した場合には、前記ストリームバッファ、前記ビデオ出力バッファ、及び前記オーディオ出力バッファをクリアするものである
ことを特徴とするストリーム復号装置。
The stream decoding device according to claim 14, wherein
A stream buffer for storing the bitstream and outputting the bitstream to the video decoder and the audio decoder;
The output control unit
When it is detected that the difference between the reference information and the first or second decoding information is larger than a predetermined value, the stream buffer, the video output buffer, and the audio output buffer are cleared. A stream decoding apparatus characterized by being a device.
JP2004166159A 2004-06-03 2004-06-03 Stream decoder Pending JP2005348160A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004166159A JP2005348160A (en) 2004-06-03 2004-06-03 Stream decoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004166159A JP2005348160A (en) 2004-06-03 2004-06-03 Stream decoder

Publications (1)

Publication Number Publication Date
JP2005348160A true JP2005348160A (en) 2005-12-15

Family

ID=35500104

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004166159A Pending JP2005348160A (en) 2004-06-03 2004-06-03 Stream decoder

Country Status (1)

Country Link
JP (1) JP2005348160A (en)

Similar Documents

Publication Publication Date Title
JP3900050B2 (en) Data processing apparatus, video camera, and data processing method
US7881584B2 (en) Reproducing apparatus and method, and recording medium
JP4684319B2 (en) Data recording method, data editing method, data decoding method, apparatus therefor, and recording medium
JP2006260762A (en) Method for generating additional information for guaranteeing seamless playback between data streams, recording medium storing information, and recording, editing and/or playback apparatus
JP4906344B2 (en) Audio / video recording apparatus, recording method, reproducing apparatus, and reproducing method
JP2006324848A (en) Apparatus and method for information processing
JPH10285548A (en) Encoding device and method, decoding device and method and editing method
JP4902935B2 (en) Information processing apparatus, information processing method, program, and recording medium
JP2005348160A (en) Stream decoder
JP2006352587A (en) Information processor
JP3986147B2 (en) Acoustic signal processing apparatus and audio high-speed playback method
JP5775006B2 (en) Information processing apparatus, information processing method, and semiconductor device
JP5168105B2 (en) Audio reproduction device and audio reproduction method
JP2009111608A (en) Reproduction apparatus and reproduction method
KR100964671B1 (en) Method for playing of digital video stream
JP4322216B2 (en) Data recording method
JP2007066511A (en) Recording and reproducing apparatus, recording apparatus, reproducing apparatus, and recording and reproducing method
JP2006014179A (en) Apparatus and method for transmitting data
JPH11187361A (en) Method for multiplexing data and device therefor
JP2006054728A (en) Device and method for decoding and reproducing data
JP2006211577A (en) Digital broadcast accumulating and reproducing apparatus and method
JP2005276246A (en) Information reproducing method and information reproducing apparatus
WO2001006779A1 (en) Recording and editing of a/v streams
JP2011077846A (en) Information processing device
JP2005236719A (en) Device and method for multiplexing code