JP2005348160A - Stream decoder - Google Patents
Stream decoder Download PDFInfo
- 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
Links
Images
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
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参照)。
図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
ビデオデコーダ922は、ビデオストリームをデコードしてその結果VOUTを出力し、オーディオデコーダ924は、オーディオストリームをデコードしてその結果AOUTを出力する。AVIフォーマットのファイルでは、オーディオとビデオとを同期させるための同期信号が含まれていないので、オーディオ及びビデオのデコード結果がそのまま順次出力される。
The
図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
図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
このように、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
請求項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
請求項18の発明では、請求項14に記載のストリーム復号装置において、前記第1のデコード情報は、前記ビデオストリームのうちの正常にデコードすることができた部分の再生に要する時間であり、前記第2のデコード情報は、前記オーディオストリームのうちの正常にデコードすることができた部分の再生に要する時間である。
In the invention according to claim 18, in the stream decoding device according to
請求項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
本発明によると、オーディオとビデオとの間の同期がずれてしまっても、同期情報を用いることなく、両者を再び同期させることができる。したがって、同期させるための信号を有しないビットストリームをデコードする場合において、オーディオとビデオとの間の同期を保つことができる。 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
入力ストリームバッファ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
ビデオデコーダ22は、ビデオストリームバッファ12からビデオストリームを読み出してデコードし、その結果をビデオ出力バッファ26に出力する。また、ビデオデコーダ22は、デコードの際に得られたデコード情報をデコード情報記憶部32に出力する。
The
オーディオデコーダ24は、オーディオストリームバッファ14からオーディオストリームを読み出してデコードし、その結果をオーディオ出力バッファ28に出力する。また、オーディオデコーダ24は、デコードの際に得られたデコード情報をデコード情報記憶部34に出力する。
The
例えば、ビデオデコーダ22は、入力されたビデオストリームのうち、正常にデコードすることができなかった部分、すなわち、エラーとなる部分のサイズ(以下では、エラーデータサイズと称する)を求めてデコード情報として出力する。同様に、オーディオデコーダ24は、入力されたオーディオストリームのうち、正常にデコードすることができなかった部分のサイズであるエラーデータサイズを求めてデコード情報として出力する。
For example, the
デコード情報記憶部32,34はいずれも、受け取ったデコード情報を格納し、出力制御部42に出力する。出力制御部42は、デコード情報記憶部32,34から出力されるデコード情報に応じて、ビデオ出力バッファ26及びオーディオ出力バッファ28を制御する。ビデオ出力バッファ26及びオーディオ出力バッファ28は、出力制御部42の制御に従って、ビデオデータVOUT及びオーディオデータAOUTをそれぞれ出力する。
Each of the decode
図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
図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
そこで、出力制御部42は、ビデオデコーダ22及びオーディオデコーダ24から出力されたデコード情報に従って、デコードされたビデオデータとデコードされたオーディオデータとが同期して出力されるように、ビデオ出力バッファ26及びオーディオ出力バッファ28を制御する。
Therefore, the
すなわち、出力制御部42は、デコード情報記憶部32から出力されるデコード情報(ビデオのエラーデータサイズ)をビデオのビットレートで割って、サイズがエラーデータサイズであるデータの再生に要する時間(エラー再生時間)をビデオについて求め、デコード情報記憶部34から出力されるデコード情報(オーディオのエラーデータサイズ)をオーディオのビットレートで割って、オーディオのエラー再生時間を求める。出力制御部42は、ビットストリームSTRMのヘッダ情報から、ビデオ及びオーディオのビットレートを既に求めているものとする。
That is, the
更に出力制御部42は、ビデオのエラー再生時間とオーディオのエラー再生時間との間の差を求め、ビデオ及びオーディオのうちの遅れている方、言い換えると、デコードされたビデオデータ及びオーディオデータのうちのエラーがなかった方のデータの出力を速くして、そのまま出力する場合に要する時間よりも求められた時間差だけ短い時間で出力するように、ビデオ出力バッファ26及びオーディオ出力バッファ28を制御する。
Further, the
図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
なお、出力制御部は、ビデオの出力をスキップさせる代わりに、例えば、そのまま出力する場合に要する時間よりも求められた時間差だけ短い時間で出力するように、ビデオ出力バッファ26にビデオを高速再生させるように(すなわち、ビデオのフレーム間隔を短くするように)してもよい。
Instead of skipping the video output, the output control unit causes the
図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
図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
以上のように、図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
また、本実施形態においては、ビデオデコーダ22及びオーディオデコーダ24は、エラーデータサイズをデコード情報として出力するものとして説明したが、これに代えて、入力されたストリームのうち、正常にデコードすることができた部分のサイズ(以下では、正常再生データサイズと称する)をデコード情報として出力するようにしてもよい。
Further, in the present embodiment, the
また、ビデオデコーダ及びオーディオデコーダが、ビットストリーム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
ビットストリームSTRMのヘッダ情報から、ビデオデコーダ222は、ビデオのビットレートを求め、オーディオデコーダ224は、オーディオのビットレートを求める。ビデオデコーダ222は、ビデオストリームバッファ12からビデオストリームを読み出してデコードし、その結果をビデオ出力バッファ26に出力する。また、ビデオデコーダ222は、デコードの際に得られたデコード情報をデコード情報記憶部232に出力する。
From the header information of the bitstream STRM, the
オーディオデコーダ224は、オーディオストリームバッファ14からオーディオストリームを読み出してデコードし、その結果をオーディオ出力バッファ28に出力する。また、オーディオデコーダ224は、デコードの際に得られたデコード情報をデコード情報記憶部232に出力する。
The
例えば、ビデオデコーダ222は、入力されたビデオストリームのエラーデータサイズを求め、これをビデオのビットレートで割り、得られた値(ビデオのエラー再生時間)をデコード情報として出力する。オーディオデコーダ224は、入力されたオーディオストリームのエラーデータサイズを求め、これをオーディオのビットレートで割り、得られた値(オーディオのエラー再生時間)をデコード情報として出力する。
For example, the
また、これに代えて、ビデオデコーダが、ビデオの正常データサイズを求め、これをビデオのビットレートで割り、得られた値(ビデオの正常再生時間)をデコード情報として出力するようにし、かつ、オーディオデコーダが、オーディオの正常データサイズを求め、これをオーディオのビットレートで割り、得られた値(オーディオの正常再生時間)をデコード情報として出力するようにしてもよい。 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
出力制御部242は、デコード情報記憶部232から出力されるデコード情報に基づいて、デコードされたビデオデータとデコードされたオーディオデータとが同期して出力されるように、ビデオ出力バッファ26及びオーディオ出力バッファ28を制御する。出力制御部242による制御の詳細な点については、ビデオのエラー再生時間とオーディオのエラー再生時間との間の時間差を求めた後における、図1の出力制御部42と同様であるので、説明を省略する。
Based on the decode information output from the decode
(第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
入力ストリームバッファ311、ビデオストリームバッファ312、オーディオストリームバッファ314、ビデオ出力バッファ326、オーディオ出力バッファ328、及びデコード情報記憶部332,334は、出力制御部342から出力されるリセット信号に従って、それぞれが格納しているデータを消去するように構成されている点が、図1の入力ストリームバッファ11、ビデオストリームバッファ12、オーディオストリームバッファ14、ビデオ出力バッファ26、オーディオ出力バッファ28、及びデコード情報記憶部32,34のそれぞれとは異なっている。ビデオデコーダ22、及びオーディオデコーダ24は、図1を参照して説明したものと同様である。
The
ビデオデコーダ22、及びオーディオデコーダ24は、デコード情報記憶部332,334のそれぞれに、デコード情報としてエラー再生データサイズ又はエラー再生時間を出力する。デコード情報記憶部332,334はいずれも、受け取ったデコード情報を格納し、出力制御部342に出力する。出力制御部342は、デコード情報記憶部332から受け取ったデコード情報とデコード情報記憶部334から受け取ったデコード情報とに基づいて、デコードされたビデオデータとデコードされたオーディオデータとの間の再生に要する時間差を求める。ここで、デコード情報がエラー再生データサイズである場合には、各エラー再生データサイズをビデオ及びオーディオのそれぞれのビットレートで割った後に差を求め、デコード情報がエラー再生時間である場合には、入力されたエラー再生時間の差を求める。
The
得られた値が所定の値よりも大きいことを検出した場合には、出力制御部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
その後、入力ストリームバッファ311には、次に処理すべきビットストリームSTRMの新たな部分が入力され、復号が開始される。このため、ビデオとオーディオとの間に時間差があっても、それが蓄積されることがなく、再びビデオとオーディオとを同期させて出力することができるようになる。
Thereafter, a new portion of the bit stream STRM to be processed next is input to the
なお、デコード情報として正常再生データサイズ又は正常再生時間を用いるようにすることも同様に可能である。 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
ビデオデコーダ422及びオーディオデコーダ424は、エラーなく正常にデコードすることができる場合に得られると予想されるデコード情報を、ビットストリームSTRMのヘッダ情報から予め算出しておき、基準情報として基準情報記憶部36,38にそれぞれ格納させる。デコード情報は、ここでは正常再生データサイズであるとするが、正常再生時間等であってもよい。
The
ビデオデコーダ422は、ビデオストリームバッファ12からビデオストリームを読み出してデコードし、その結果をビデオ出力バッファ26に出力する。また、ビデオデコーダ422は、デコードの際に得られたデコード情報をデコード情報記憶部32に出力する。
The
オーディオデコーダ424は、オーディオストリームバッファ14からオーディオストリームを読み出してデコードし、その結果をオーディオ出力バッファ28に出力する。また、オーディオデコーダ424は、デコードの際に得られたデコード情報をデコード情報記憶部34に出力する。
The
出力制御部442は、デコード情報記憶部32に格納されたデコード情報と、基準情報記憶部36に格納された基準情報との差を求め、求められた値に従って、ビデオ出力バッファ26を制御する。例えば、デコード情報が正常再生データサイズであって、デコード情報記憶部32に格納されたデコード情報の値が基準情報の値よりも小さい場合には、ビデオに正常に再生されない部分があったと考えられるので、出力制御部442は、両者の差をビデオのビットレートで割り、得られた時間だけ、ビデオデータVOUTの出力を遅らせる。
The
出力制御部442は、オーディオについても同様に、デコード情報記憶部34に格納されたデコード情報と、基準情報記憶部38に格納された基準情報との差を求め、求められた値に従って、オーディオ出力バッファ28を制御する。
Similarly, for the audio, the
このように、図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
ビデオデコーダ522は、エラーなく正常にデコードすることができる場合に得られると予想されるデコード情報を、ビットストリームSTRMのヘッダ情報から予め算出しておき、基準情報として基準情報記憶部536に格納させる。デコード情報は、ここでは例として正常再生時間であるとするが、エラー再生時間であってもよい。基準情報は、オーディオについてもビデオについてと同じ値となるので、ビデオデコーダ522に代えて、オーディオデコーダ524が、基準情報を算出して基準情報記憶部536に格納させるようにしてもよい。
The
ビットストリームSTRMのヘッダ情報から、ビデオデコーダ522は、ビデオのビットレートを求め、オーディオデコーダ524は、オーディオのビットレートを求める。ビデオデコーダ522は、ビデオストリームバッファ12からビデオストリームを読み出してデコードし、その結果をビデオ出力バッファ26に出力する。また、ビデオデコーダ522は、デコードの際に得られたデコード情報をデコード情報記憶部32に出力する。
From the header information of the bitstream STRM, the
オーディオデコーダ524は、オーディオストリームバッファ14からオーディオストリームを読み出してデコードし、その結果をオーディオ出力バッファ28に出力する。また、オーディオデコーダ524は、デコードの際に得られたデコード情報をデコード情報記憶部34に出力する。
The
ここで、ビデオデコーダ522は、入力されたビデオストリームの正常再生データサイズを求め、これをビデオのビットレートで割り、得られた値(ビデオの正常再生時間)をデコード情報として出力する。オーディオデコーダ524は、入力されたオーディオストリームの正常再生データサイズを求め、これをオーディオのビットレートで割り、得られた値(オーディオの正常再生時間)をデコード情報として出力する。
Here, the
基準情報記憶部536は、ビデオデコーダ522又はオーディオデコーダ524からデコード情報を受け取って格納し、これを出力制御部542に出力する。
The reference
出力制御部542は、デコード情報記憶部32に格納されたデコード情報と、基準情報記憶部536に格納された基準情報との差を求め、求められた値に従って、ビデオ出力バッファ26を制御する。例えば、デコード情報が正常再生時間であって、デコード情報記憶部32に格納されたデコード情報の値が基準情報の値よりも小さい場合には、ビデオに正常に再生されない部分があったと考えられるので、出力制御部542は、両者の差だけ、ビデオデータVOUTの出力を遅らせる。
The
出力制御部542は、オーディオについても同様に、デコード情報記憶部34に格納されたデコード情報と、基準情報記憶部536に格納された基準情報との差を求め、求められた値に従って、オーディオ出力バッファ28を制御する。
Similarly, for the audio, the
(第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
入力ストリームバッファ311、ビデオストリームバッファ312、オーディオストリームバッファ314、ビデオ出力バッファ326、オーディオ出力バッファ328、及びデコード情報記憶部332,334は、図5を参照して説明したものと同様である。ビデオデコーダ422及びオーディオデコーダ424は、図6を参照して説明したものと同様である。基準情報記憶部636,638は、出力制御部642から出力されるリセット信号に従ってクリアされる点が、図6の基準情報記憶部36,38のそれぞれとは異なっている。
The
ビデオデコーダ422、及びオーディオデコーダ424は、デコード情報記憶部332,334のそれぞれに、デコード情報として正常再生データサイズ又は正常再生時間を出力する。デコード情報記憶部332,334はいずれも、受け取ったデコード情報を格納し、出力制御部642に出力する。
The
出力制御部642は、デコード情報記憶部332から受け取ったデコード情報と基準情報記憶部636から受け取った基準情報との差を求め、得られた値が所定の値よりも大きいことを検出した場合には、フラッシュ処理を行う。すなわち、出力制御部642は、入力ストリームバッファ311、ビデオストリームバッファ312、オーディオストリームバッファ314、ビデオ出力バッファ326、オーディオ出力バッファ328、デコード情報記憶部332,334、及び基準情報記憶部636,638にリセット信号を出力し、これらのバッファ等をクリアする。その他の点は、図6のストリーム復号装置と同様である。
The
また、出力制御部642は、デコード情報記憶部334から受け取ったデコード情報と基準情報記憶部638から受け取った基準情報との差を求め、得られた値が所定の値よりも大きいことを検出した場合にも、同様にフラッシュ処理を行う。
Further, the
その後、入力ストリームバッファ311には、次に処理すべきビットストリームSTRMの新たな部分が入力され、復号が開始されるので、再びビデオとオーディオとを同期させて出力することができるようになる。
Thereafter, a new portion of the bit stream STRM to be processed next is input to the
以上の実施形態において、ビットストリーム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.
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
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のデコード情報は、
前記ビデオストリームのうちの正常にデコードすることができなかった部分のサイズであり、
前記第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のデコード情報は、
前記ビデオストリームのうちの正常にデコードすることができなかった部分の再生に要する時間であり、
前記第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.
前記出力制御部は、
前記第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のデコード情報は、
前記ビデオストリームのうちの正常にデコードすることができた部分の再生に要する時間であり、
前記第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.
前記出力制御部は、
前記第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.
前記出力制御部は、
前記デコードされたビデオデータと前記デコードされたオーディオデータとのうち、デコードの際に正常にデコードできない部分があった方の出力を遅くするように、前記ビデオ出力バッファ及び前記オーディオ出力バッファを制御するものである
ことを特徴とするストリーム復号装置。 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.
前記出力制御部は、
前記デコードされたビデオデータと前記デコードされたオーディオデータとのうち、デコードの際に正常にデコードできない部分がなかった方の出力を速くするように、前記ビデオ出力バッファ及び前記オーディオ出力バッファを制御するものである
ことを特徴とするストリーム復号装置。 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.
前記出力制御部は、
前記デコードされたビデオデータと前記デコードされたオーディオデータとのうち、進んでいる方の出力の進行を一時停止させるように、前記ビデオ出力バッファ及び前記オーディオ出力バッファを制御するものである
ことを特徴とするストリーム復号装置。 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.
前記出力制御部は、
前記デコードされたビデオデータと前記デコードされたオーディオデータとのうち、遅れている方をスキップさせるように、前記ビデオ出力バッファ及び前記オーディオ出力バッファを制御するものである
ことを特徴とするストリーム復号装置。 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 .
前記出力制御部は、
前記デコードされたビデオデータと前記デコードされたオーディオデータとのうち、進んでいる方を低速で再生させるように、前記ビデオ出力バッファ及び前記オーディオ出力バッファを制御するものである
ことを特徴とするストリーム復号装置。 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.
前記出力制御部は、
前記デコードされたビデオデータと前記デコードされたオーディオデータとのうち、遅れている方を高速で再生させるように、前記ビデオ出力バッファ及び前記オーディオ出力バッファを制御するものである
ことを特徴とするストリーム復号装置。 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及び第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又は第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.
前記基準情報は、
データサイズを表す情報である
ことを特徴とするストリーム復号装置。 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.
前記基準情報は、
データの再生に要する時間を表す情報である
ことを特徴とするストリーム復号装置。 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.
前記第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.
前記第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.
前記出力制御部は、
前記デコードされたビデオデータと前記デコードされたオーディオデータとのうち、進んでいる方の出力の進行を一時停止させるように、前記ビデオ出力バッファ及び前記オーディオ出力バッファを制御するものである
ことを特徴とするストリーム復号装置。 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.
前記出力制御部は、
前記デコードされたビデオデータと前記デコードされたオーディオデータとのうち、遅れている方をスキップさせるように、前記ビデオ出力バッファ及び前記オーディオ出力バッファを制御するものである
ことを特徴とするストリーム復号装置。 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 .
前記出力制御部は、
前記デコードされたビデオデータと前記デコードされたオーディオデータとのうち、進んでいる方を低速で再生させるように、前記ビデオ出力バッファ及び前記オーディオ出力バッファを制御するものである
ことを特徴とするストリーム復号装置。 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.
前記出力制御部は、
前記デコードされたビデオデータと前記デコードされたオーディオデータとのうち、遅れている方を高速で再生させるように、前記ビデオ出力バッファ及び前記オーディオ出力バッファを制御するものである
ことを特徴とするストリーム復号装置。 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.
前記ビットストリームを格納し、前記ビデオデコーダ及び前記オーディオデコーダに出力するストリームバッファを更に備え、
前記出力制御部は、
前記基準情報と前記第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.
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) |
-
2004
- 2004-06-03 JP JP2004166159A patent/JP2005348160A/en active Pending
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 |